Skip to content

Commit

Permalink
chore: migrate formatting to use newer MS APIs (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
dm-p committed May 7, 2024
1 parent ff0a855 commit 133ca30
Show file tree
Hide file tree
Showing 90 changed files with 1,444 additions and 1,655 deletions.
176 changes: 0 additions & 176 deletions capabilities.json

Large diffs are not rendered by default.

89 changes: 0 additions & 89 deletions config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import capabilities from '../capabilities.json';
import features from './features.json';
import { devDependencies } from '../package.json';
import { visual } from '../pbiviz.json';
import { SelectionMode } from '@deneb-viz/core-dependencies';

/**
* This is an object that contains the visual's metadata. This is used to
Expand All @@ -16,16 +15,6 @@ export const APPLICATION_INFORMATION = visual;
*/
export const CAPABILITIES = capabilities;

/**
* Specifies the limits (and step size) for handling cross-filtering.
*/
export const CROSS_FILTER_LIMITS = {
minDataPointsValue: 1,
maxDataPointsValue: 250,
maxDataPointsAdvancedValue: 2500,
dataPointsStepValue: 1
};

/**
* The primary set of feature switches for the packaged application. These are
* loaded from the `config/features.json` file, so that we can hot-swap them
Expand Down Expand Up @@ -126,16 +115,6 @@ export const KEY_BINDINGS = {
}
};

/**
* Default values for the data table in the preview pane (AKA the debug pane).
*/
export const PREVIEW_PANE_DATA_TABLE = {
rowsPerPage: {
default: 50,
values: [10, 25, 50, 100, 150, 200]
}
};

/**
* Default configuration for the preview pane (AKA the debug pane).
*/
Expand Down Expand Up @@ -171,74 +150,6 @@ export const PREVIEW_PANE_DEFAULTS = {
]
};

/**
* Default values for the visual properties.
*/
export const PROPERTY_DEFAULTS = {
dataLimit: {
override: false,
showCustomVisualNotes: true
},
developer: {
locale: 'en-US',
showVersionNotification: false
},
editor: {
backgroundPassThrough: true,
dataTableRowsPerPage: PREVIEW_PANE_DATA_TABLE.rowsPerPage.default,
debounceInterval: 200,
fontSize: {
default: 10,
min: 8,
max: 30
},
localCompletion: false,
maxLineLength: 40,
position: 'left',
previewScrollbars: false,
showGutter: true,
showLineNumbers: true,
showViewportMarker: true,
tabSize: 2,
theme: 'light',
wordWrap: true
},
vega: {
jsonSpec: null,
jsonConfig: '{}',
provider: 'vegaLite',
logLevel: 3,
renderMode: 'svg',
enableContextMenu: true,
enableTooltips: true,
enableSelection: false,
enableHighlight: false,
selectionMode: <SelectionMode>'simple',
selectionMaxDataPoints: 50,
tooltipDelay: 0,
isNewDialogOpen: true
},
theme: {
ordinalColorCount: {
default: 10,
min: 1,
max: 100
}
},
display: {
scrollbarColor: '#000000',
scrollbarOpacity: 20,
scrollbarRadius: {
min: 0,
max: 3,
default: 0
}
},
performance: {
enableResizeRecalc: false
}
};

/**
* Additional resources neede for each provider in the application (Vega,
* Vega-Lite and Deneb). These are used to provide links to documentation,
Expand Down
68 changes: 66 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@
"overrides": {
"vscode-uri": "3.0.7"
}
}
}
9 changes: 9 additions & 0 deletions packages/core-dependencies/src/constants/debug-area.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* Default values for the data table in the preview pane (AKA the debug pane).
*/
export const PREVIEW_PANE_DATA_TABLE = {
rowsPerPage: {
default: 50,
values: [10, 25, 50, 100, 150, 200]
}
};
2 changes: 1 addition & 1 deletion packages/core-dependencies/src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export * from './dataset';
export * from './debug-area';
export * from './integration-powerbi';
export * from './json-processing';
export * from './properties';
export * from './template-usermeta-schema';
export * from './utils-base64';
export * from './vega-extensibility';
Loading

0 comments on commit 133ca30

Please sign in to comment.