Skip to content

Commit

Permalink
Remove log output
Browse files Browse the repository at this point in the history
  • Loading branch information
zBritva committed Nov 17, 2023
1 parent 43f320d commit 26849fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion visual/src/views/Application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { FluentProvider, teamsLightTheme } from "@fluentui/react-components";
// tslint:disable-next-line
export const Application: React.FC = () => {

console.log('Application');
// console.log('Application');
const dataView = useAppSelector((store) => store.visual.dataview);
const dataset = useAppSelector((store) => store.visual.dataset);
const selections = useAppSelector((store) => store.visual.selections);
Expand Down
2 changes: 1 addition & 1 deletion visual/src/views/ChartViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const ChartViewer: React.FC<ViewerProps> = ({
onSelect,
onContextMenu
}) => {
console.log('ChartViewer');
// console.log('ChartViewer');

const container = React.useMemo(() => {
const container = new ChartContainer({ chart, defaultAttributes }, dataset, undefined, localizaiton, utcTimeZone);
Expand Down
6 changes: 3 additions & 3 deletions visual/src/views/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ export const Editor: React.FC<EditorProps> = ({
onExport,
onImport
}) => {
console.log('Editor');
// console.log('Editor');
const settings = useAppSelector((store) => store.visual.settings);
const template = useAppSelector((store) => store.visual.template);
console.log('editor template', template);
// console.log('editor template', template);
const dataset = useAppSelector((store) => store.visual.dataset);
// const { height, width } = useAppSelector((store) => store.visual.viewport);
// const mapping = useAppSelector((store) => store.visual.mapping);
Expand Down Expand Up @@ -177,7 +177,7 @@ export const Editor: React.FC<EditorProps> = ({
onImportTemplateClick: async () => {
// TODO refactor
const specification = await onImport();
console.log(specification);
// console.log(specification);
appStore.dispatcher.dispatch(
new Actions.ImportChartAndDataset(
specification,
Expand Down
6 changes: 3 additions & 3 deletions visual/src/visual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class Visual implements IVisual {
private settings: VisualSettings;

constructor(options?: VisualConstructorOptions) {
console.log('Visual constructor', options);
// console.log('Visual constructor', options);
if (!options) {
return;
}
Expand All @@ -75,15 +75,15 @@ export class Visual implements IVisual {
}

public update(options: VisualUpdateOptions) {
console.log('update');
// console.log('update');
const dispatch = store.dispatch;
this.settings = Visual.parseSettings(options && options.dataViews && options.dataViews[0]);
dispatch(setViewport(deepClone(options.viewport)));
dispatch(setDataView(deepClone(options.dataViews[0])));
dispatch(setMode(options.editMode));
dispatch(setViewMode(options.viewMode));
dispatch(setSettings(deepClone(this.settings)));
console.log('end');
// console.log('end');
}

private static parseSettings(dataView: DataView): VisualSettings {
Expand Down

0 comments on commit 26849fd

Please sign in to comment.