Skip to content

Commit

Permalink
Eslint 2022 09 07 (#535)
Browse files Browse the repository at this point in the history
* eslint

* redeploy
  • Loading branch information
danmarshall authored Sep 7, 2022
1 parent 286f2e6 commit f3e005f
Show file tree
Hide file tree
Showing 16 changed files with 86 additions and 86 deletions.
6 changes: 3 additions & 3 deletions docs/dist/sanddance-explorer/v4/sanddance-explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -36896,9 +36896,9 @@ function $09e8510904f131d2$export$2be97f482a239d30(transition, currentData, sele
case "position":
{
const dimensions = {
"x": cubelayer.positionsX,
"y": cubelayer.positionsY,
"z": cubelayer.positionsZ
x: cubelayer.positionsX,
y: cubelayer.positionsY,
z: cubelayer.positionsZ
};
const positions = dimensions[transition.dimension];
const values1 = new Float64Array(currentData.length);
Expand Down
12 changes: 6 additions & 6 deletions docs/dist/sanddance/v4/sanddance.js
Original file line number Diff line number Diff line change
Expand Up @@ -3717,7 +3717,7 @@
}
:
{
value: 0
value: 0,
},
],
}),
Expand Down Expand Up @@ -4131,7 +4131,7 @@
}
:
{
value: 0
value: 0,
},
],
}),
Expand Down Expand Up @@ -4335,7 +4335,7 @@
}
:
{
value: 0
value: 0,
},
],
}),
Expand Down Expand Up @@ -27443,9 +27443,9 @@ f 5/6/6 1/12/6 8/11/6`;
}
case 'position': {
const dimensions = {
'x': cubelayer.positionsX,
'y': cubelayer.positionsY,
'z': cubelayer.positionsZ,
x: cubelayer.positionsX,
y: cubelayer.positionsY,
z: cubelayer.positionsZ,
};
const positions = dimensions[transition.dimension];
const values = new Float64Array(currentData.length);
Expand Down
6 changes: 3 additions & 3 deletions docs/tests/sanddance-specs/v1/js/sanddance-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3702,7 +3702,7 @@
}
:
{
value: 0
value: 0,
},
],
}),
Expand Down Expand Up @@ -4116,7 +4116,7 @@
}
:
{
value: 0
value: 0,
},
],
}),
Expand Down Expand Up @@ -4320,7 +4320,7 @@
}
:
{
value: 0
value: 0,
},
],
}),
Expand Down
6 changes: 3 additions & 3 deletions docs/tests/v4/es6/js/sanddance-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42108,9 +42108,9 @@ function assignTransitionStagger(transition, currentData, selection, presenter)
case "position":
{
const dimensions = {
"x": cubelayer.positionsX,
"y": cubelayer.positionsY,
"z": cubelayer.positionsZ
x: cubelayer.positionsX,
y: cubelayer.positionsY,
z: cubelayer.positionsZ
};
const positions = dimensions[transition.dimension];
const values1 = new Float64Array(currentData.length);
Expand Down
6 changes: 3 additions & 3 deletions docs/tests/v4/es6/js/sanddance-test-es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -86896,9 +86896,9 @@ function assignTransitionStagger(transition, currentData, selection, presenter)
case "position":
{
const dimensions = {
"x": cubelayer.positionsX,
"y": cubelayer.positionsY,
"z": cubelayer.positionsZ
x: cubelayer.positionsX,
y: cubelayer.positionsY,
z: cubelayer.positionsZ
};
const positions = dimensions[transition.dimension];
const values1 = new Float64Array(currentData.length);
Expand Down
10 changes: 5 additions & 5 deletions packages/powerbi/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export class SandDanceConfig {
}

export class SandDanceMainSettings {
showchrome: boolean = true;
showdebug: boolean = false;
darktheme: boolean = false;
showchrome: boolean = true;
showdebug: boolean = false;
darktheme: boolean = false;
}

export interface IVisualSettings {
Expand All @@ -54,6 +54,6 @@ export interface IVisualSettings {
}

export class VisualSettings extends DataViewObjectsParser implements IVisualSettings {
public sandDanceConfig = new SandDanceConfig();
public sandDanceMainSettings = new SandDanceMainSettings();
public sandDanceConfig = new SandDanceConfig();
public sandDanceMainSettings = new SandDanceMainSettings();
}
6 changes: 3 additions & 3 deletions packages/sanddance-explorer/src/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export const defaultRenderer: SandDance.VegaMorphCharts.types.MorphChartsRendere
dofFocusRange: 0.25,
isFxaaEnabled: false,
isShadowEnabled: true,
isSsaoEnabled: true
isSsaoEnabled: true,
},
basicOptions: {
antialias: true
}
antialias: true,
},
};

export function initialExplorerState(props: Props) {
Expand Down
8 changes: 4 additions & 4 deletions packages/sanddance-explorer/src/dialogs/chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ function _Chart(_props: Props) {
switch (props.chart) {
case 'scatterplot':
case 'stacks':
{
insightColumns = props.insightColumns;
break;
}
{
insightColumns = props.insightColumns;
break;
}
}
if (!insightColumns) {
insightColumns = props.explorer.changeChartType('scatterplot');
Expand Down
2 changes: 1 addition & 1 deletion packages/sanddance-explorer/src/dialogs/transition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function _TransitionEditor(_props: Props) {
this.autoScrubber.stop();
}
this.setScrubState(scrub);
}
},
);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/sanddance-explorer/src/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ function _Explorer(_props: Props) {
}
}
return ret;
})
}
}),
},
},
this.viewerOptions,
viewerOptions,
Expand Down
4 changes: 2 additions & 2 deletions packages/sanddance-explorer/src/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ themePalettes[''] = {
neutralPrimary: '#000000',
neutralDark: '#151515',
black: '#0b0b0b',
white: '#ffffff'
white: '#ffffff',
};

themePalettes['dark-theme'] = {
Expand All @@ -60,7 +60,7 @@ themePalettes['dark-theme'] = {
neutralPrimary: '#ffffff',
neutralDark: '#f4f4f4',
black: '#f8f8f8',
white: '#000000'
white: '#000000',
};

export function getColorSettingsFromThemePalette(themePalette: Partial<FluentUITypes.IPalette>): Partial<ColorSettings> {
Expand Down
86 changes: 43 additions & 43 deletions packages/sanddance-specs/src/layouts/scatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,52 +210,52 @@ export class Scatter extends Layout {
reverse: boolean,
signal: string
}[] = [
{
column: x,
xyz: 'x',
scaleName: names.xScale,
domain: backgroundImageExtents ?
{
signal: names.xExtent,
}
:
{
data: globalScope.data.name,
field: safeFieldName(x.name),
},
reverse: false,
signal: parentScope.sizeSignals.layoutWidth,
},
{
column: y,
xyz: 'y',
scaleName: names.yScale,
domain: backgroundImageExtents ?
{
signal: names.yExtent,
}
:
{
data: globalScope.data.name,
field: safeFieldName(y.name),
},
reverse: true,
signal: parentScope.sizeSignals.layoutHeight,
},
{
column: z,
xyz: 'z',
scaleName: names.zScale,
domain: {
{
column: x,
xyz: 'x',
scaleName: names.xScale,
domain: backgroundImageExtents ?
{
signal: names.xExtent,
}
:
{
data: globalScope.data.name,
field: z ? safeFieldName(z.name) : null,
field: safeFieldName(x.name),
},
reverse: false,
signal: view === '3d'
? `(${globalScope.zSize}) * ${SignalNames.ZProportion}`
: `10 * ${SignalNames.ZProportion}`,
reverse: false,
signal: parentScope.sizeSignals.layoutWidth,
},
{
column: y,
xyz: 'y',
scaleName: names.yScale,
domain: backgroundImageExtents ?
{
signal: names.yExtent,
}
:
{
data: globalScope.data.name,
field: safeFieldName(y.name),
},
reverse: true,
signal: parentScope.sizeSignals.layoutHeight,
},
{
column: z,
xyz: 'z',
scaleName: names.zScale,
domain: {
data: globalScope.data.name,
field: z ? safeFieldName(z.name) : null,
},
];
reverse: false,
signal: view === '3d'
? `(${globalScope.zSize}) * ${SignalNames.ZProportion}`
: `10 * ${SignalNames.ZProportion}`,
},
];
columnSignals.forEach(cs => {
const { column, domain, reverse, scaleName, signal, xyz } = cs;
if (!column) return;
Expand Down
2 changes: 1 addition & 1 deletion packages/sanddance-specs/src/layouts/square.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class Square extends Layout {
}
:
{
value: 0
value: 0,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/sanddance-specs/src/layouts/strip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class Strip extends Layout {
}
:
{
value: 0
value: 0,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/sanddance-specs/src/layouts/treemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export class Treemap extends Layout {
}
:
{
value: 0
value: 0,
},
],
},
Expand Down
10 changes: 5 additions & 5 deletions packages/sanddance/src/transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import * as VegaMorphCharts from '@msrvida/vega-morphcharts';
import { Transition } from "./types";
import { Transition } from './types';
import { getStats } from '@msrvida/sanddance-specs';
import { scaleLinear } from 'd3-scale';
import { GL_ORDINAL } from './constants';
Expand Down Expand Up @@ -59,9 +59,9 @@ export function assignTransitionStagger(transition: Transition, currentData: obj
}
case 'position': {
const dimensions: { [key in Dimension3D]: Float64Array } = {
'x': cubelayer.positionsX,
'y': cubelayer.positionsY,
'z': cubelayer.positionsZ,
x: cubelayer.positionsX,
y: cubelayer.positionsY,
z: cubelayer.positionsZ,
};
const positions = dimensions[transition.dimension];
const values = new Float64Array(currentData.length);
Expand All @@ -80,5 +80,5 @@ export function assignTransitionStagger(transition: Transition, currentData: obj
}
layerStagger.cubes = { staggerOrders, maxStaggerOrder: 1, minStaggerOrder: 0 };
}
cubelayer.update(morphChartsRenderResult.bounds, selection, layerStagger.cubes)
cubelayer.update(morphChartsRenderResult.bounds, selection, layerStagger.cubes);
}

0 comments on commit f3e005f

Please sign in to comment.