Skip to content

Commit 5f02d0a

Browse files
authored
chore: Remove unused dpendencies from repositories (#336)
1 parent f4f99d1 commit 5f02d0a

File tree

20 files changed

+65
-146
lines changed

20 files changed

+65
-146
lines changed

modules/experimental/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,16 @@
3131
},
3232
"dependencies": {
3333
"@deck.gl/core": "~9.2.1",
34-
"@deck.gl/extensions": "~9.2.1",
3534
"@deck.gl/geo-layers": "~9.2.1",
3635
"@deck.gl/layers": "~9.2.1",
3736
"@deck.gl/mesh-layers": "~9.2.1",
38-
"@deck.gl/react": "~9.2.1",
39-
"@deck.gl/widgets": "~9.2.1",
4037
"@loaders.gl/core": "^4.2.0",
4138
"@loaders.gl/i3s": "^4.2.0",
4239
"@loaders.gl/loader-utils": "^4.2.0",
4340
"@loaders.gl/schema": "^4.2.0",
4441
"@loaders.gl/tiles": "^4.2.0",
4542
"@luma.gl/core": "~9.2.0",
4643
"@luma.gl/engine": "~9.2.0",
47-
"@luma.gl/shadertools": "~9.2.0",
48-
"react": "^18.3.1",
49-
"react-dom": "^18.3.1"
44+
"@luma.gl/shadertools": "~9.2.0"
5045
}
5146
}

modules/geo-layers/package.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,15 @@
3131
},
3232
"dependencies": {
3333
"@deck.gl/core": "~9.2.1",
34-
"@deck.gl/extensions": "~9.2.1",
3534
"@deck.gl/geo-layers": "~9.2.1",
3635
"@deck.gl/layers": "~9.2.1",
37-
"@deck.gl/mesh-layers": "~9.2.1",
38-
"@deck.gl/react": "~9.2.1",
39-
"@deck.gl/widgets": "~9.2.1",
40-
"@loaders.gl/core": "^4.2.0",
41-
"@loaders.gl/i3s": "^4.2.0",
4236
"@loaders.gl/loader-utils": "^4.2.0",
43-
"@loaders.gl/schema": "^4.2.0",
44-
"@loaders.gl/tiles": "^4.2.0",
45-
"@luma.gl/constants": "~9.2.0",
4637
"@luma.gl/core": "~9.2.0",
4738
"@luma.gl/engine": "~9.2.0",
4839
"@luma.gl/shadertools": "~9.2.0",
4940
"@math.gl/core": "^4.0.0",
5041
"a5-js": "^0.5.0",
51-
"h3-js": "^4.2.1",
52-
"react": "^18.3.1",
53-
"react-dom": "^18.3.1"
42+
"h3-js": "^4.2.1"
5443
},
5544
"devDependencies": {
5645
"@deck.gl/test-utils": "~9.2.1",

modules/graph-layers/src/core/graph-engine.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class GraphEngine extends EventTarget {
8080
* @fires GraphEngine#onLayoutStart
8181
*/
8282
_onLayoutStart = () => {
83-
log.log(0, 'GraphEngine: layout start')();
83+
log.log(0, 'GraphEngine: layout start');
8484
/**
8585
* @event GraphEngine#onLayoutStart
8686
* @type {CustomEvent}
@@ -92,7 +92,7 @@ export class GraphEngine extends EventTarget {
9292
* @fires GraphEngine#onLayoutChange
9393
*/
9494
_onLayoutChange = () => {
95-
log.log(0, 'GraphEngine: layout update event')();
95+
log.log(0, 'GraphEngine: layout update event');
9696
/**
9797
* @event GraphEngine#onLayoutChange
9898
* @type {CustomEvent}
@@ -104,7 +104,7 @@ export class GraphEngine extends EventTarget {
104104
* @fires GraphEngine#onLayoutDone
105105
*/
106106
_onLayoutDone = () => {
107-
log.log(0, 'GraphEngine: layout end')();
107+
log.log(0, 'GraphEngine: layout end');
108108
/**
109109
* @event GraphEngine#onLayoutDone
110110
* @type {CustomEvent}
@@ -140,7 +140,7 @@ export class GraphEngine extends EventTarget {
140140
/** Layout calculations */
141141

142142
run = () => {
143-
log.log(1, 'GraphEngine: run')();
143+
log.log(1, 'GraphEngine: run');
144144
// TODO: throw if running on a cleared engine
145145

146146
this._graph.addEventListener('transactionStart', this._onTransactionStart);
@@ -160,7 +160,7 @@ export class GraphEngine extends EventTarget {
160160
};
161161

162162
clear = () => {
163-
log.log(1, 'GraphEngine: end')();
163+
log.log(1, 'GraphEngine: end');
164164
this._graph.removeEventListener('transactionStart', this._onTransactionStart);
165165
this._graph.removeEventListener('transactionEnd', this._onTransactionEnd);
166166
this._graph.removeEventListener('onNodeAdded', this._onGraphStructureChanged);
@@ -185,7 +185,7 @@ export class GraphEngine extends EventTarget {
185185
};
186186

187187
_updateLayout = () => {
188-
log.log(0, 'GraphEngine: layout update')();
188+
log.log(0, 'GraphEngine: layout update');
189189
this._layout.updateGraph(this._graph);
190190
this._layout.update();
191191
this._layoutDirty = false;

modules/graph-layers/src/core/graph-layout.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class GraphLayout<
9898

9999
/** @fires GraphLayout#onLayoutStart */
100100
protected _onLayoutStart = (): void => {
101-
log.log(0, `GraphLayout(${this._name}): start`)();
101+
log.log(0, `GraphLayout(${this._name}): start`);
102102
this._updateState('calculating');
103103

104104
/**
@@ -111,7 +111,7 @@ export class GraphLayout<
111111

112112
/** @fires GraphLayout#onLayoutChange */
113113
protected _onLayoutChange = (): void => {
114-
log.log(0, `GraphLayout(${this._name}): update`)();
114+
log.log(0, `GraphLayout(${this._name}): update`);
115115
this._updateState('calculating');
116116

117117
/**
@@ -124,7 +124,7 @@ export class GraphLayout<
124124

125125
/** @fires GraphLayout#onLayoutDone */
126126
protected _onLayoutDone = (): void => {
127-
log.log(0, `GraphLayout(${this._name}): end`)();
127+
log.log(0, `GraphLayout(${this._name}): end`);
128128
this._updateState('done');
129129

130130
/**

modules/graph-layers/src/graph/graph.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class Graph extends EventTarget {
157157
const targetNode = this.findNode(edge.getTargetNodeId());
158158

159159
if (!sourceNode || !targetNode) {
160-
log.warn(`Unable to add edge ${edge.id}, source or target node is missing.`)();
160+
log.warn(`Unable to add edge ${edge.id}, source or target node is missing.`);
161161
return;
162162
}
163163

@@ -194,7 +194,7 @@ export class Graph extends EventTarget {
194194
removeNode(nodeId: string | number): void {
195195
const node = this.findNode(nodeId);
196196
if (!node) {
197-
log.warn(`Unable to remove node ${nodeId} - doesn't exist`)();
197+
log.warn(`Unable to remove node ${nodeId} - doesn't exist`);
198198
return;
199199
}
200200
// remove all edges connect to this node from map
@@ -232,7 +232,7 @@ export class Graph extends EventTarget {
232232
removeEdge(edgeId: string | number): void {
233233
const edge = this.findEdge(edgeId);
234234
if (!edge) {
235-
log.warn(`Unable to remove edge ${edgeId} - doesn't exist`)();
235+
log.warn(`Unable to remove edge ${edgeId} - doesn't exist`);
236236
return;
237237
}
238238
const sourceNode = this.findNode(edge.getSourceNodeId());
@@ -261,7 +261,7 @@ export class Graph extends EventTarget {
261261
getConnectedEdges(nodeId: string | number): Edge[] {
262262
const node = this.findNode(nodeId);
263263
if (!node) {
264-
log.warn(`Unable to find node ${nodeId} - doesn't exist`)();
264+
log.warn(`Unable to find node ${nodeId} - doesn't exist`);
265265
return [];
266266
}
267267
return node.getConnectedEdges();
@@ -275,7 +275,7 @@ export class Graph extends EventTarget {
275275
getNodeSiblings(nodeId: string | number): Node[] {
276276
const node = this.findNode(nodeId);
277277
if (!node) {
278-
log.warn(`Unable to find node ${nodeId} - doesn't exist`)();
278+
log.warn(`Unable to find node ${nodeId} - doesn't exist`);
279279
return [];
280280
}
281281
return node.getSiblingIds().map((siblingNodeId) => this.findNode(siblingNodeId));
@@ -289,7 +289,7 @@ export class Graph extends EventTarget {
289289
getDegree(nodeId: string | number): number {
290290
const node = this.findNode(nodeId);
291291
if (!node) {
292-
log.warn(`Unable to find node ${nodeId} - doesn't exist`)();
292+
log.warn(`Unable to find node ${nodeId} - doesn't exist`);
293293
return 0;
294294
}
295295
return node.getDegree();

modules/graph-layers/src/layers/graph-layer.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import {
2020
normalizeGraphLayerStylesheet,
2121
type GraphLayerEdgeStyle,
2222
type GraphLayerNodeStyle,
23-
type GraphLayerStylesheet
23+
type GraphLayerStylesheet,
24+
type NormalizedGraphLayerStylesheet
2425
} from '../style/graph-layer-stylesheet';
2526

2627
// node layers
@@ -185,18 +186,18 @@ export class GraphLayer extends CompositeLayer<GraphLayerProps> {
185186
this._removeGraphEngine();
186187
}
187188

188-
private _getResolvedStylesheet() {
189+
private _getResolvedStylesheet(): NormalizedGraphLayerStylesheet {
189190
const {stylesheet, nodeStyle, edgeStyle} = this.props;
190191

191192
const usingNodeStyle = typeof nodeStyle !== 'undefined';
192193
if (usingNodeStyle && !NODE_STYLE_DEPRECATION_WARNED) {
193-
log.warn(NODE_STYLE_DEPRECATION_MESSAGE)();
194+
log.warn(NODE_STYLE_DEPRECATION_MESSAGE);
194195
NODE_STYLE_DEPRECATION_WARNED = true;
195196
}
196197

197198
const usingEdgeStyle = typeof edgeStyle !== 'undefined';
198199
if (usingEdgeStyle && !EDGE_STYLE_DEPRECATION_WARNED) {
199-
log.warn(EDGE_STYLE_DEPRECATION_MESSAGE)();
200+
log.warn(EDGE_STYLE_DEPRECATION_MESSAGE);
200201
EDGE_STYLE_DEPRECATION_WARNED = true;
201202
}
202203

@@ -241,7 +242,7 @@ export class GraphLayer extends CompositeLayer<GraphLayerProps> {
241242
const {pickable = true, visible = true, data = (nodes) => nodes, ...restStyle} = style;
242243
const LayerType = NODE_LAYER_MAP[style.type];
243244
if (!LayerType) {
244-
log.error(`Invalid node type: ${style.type}`)();
245+
log.error(`Invalid node type: ${style.type}`);
245246
throw new Error(`Invalid node type: ${style.type}`);
246247
}
247248
const stylesheet = new GraphStyleEngine(restStyle, {
@@ -304,7 +305,7 @@ export class GraphLayer extends CompositeLayer<GraphLayerProps> {
304305
const decoratorLayers = decorators.filter(Boolean).flatMap((decoratorStyle, idx2) => {
305306
const DecoratorLayer = EDGE_DECORATOR_LAYER_MAP[decoratorStyle.type];
306307
if (!DecoratorLayer) {
307-
log.error(`Invalid edge decorator type: ${decoratorStyle.type}`)();
308+
log.error(`Invalid edge decorator type: ${decoratorStyle.type}`);
308309
throw new Error(`Invalid edge decorator type: ${decoratorStyle.type}`);
309310
}
310311
const decoratorStylesheet = new GraphStyleEngine(decoratorStyle, {

modules/graph-layers/src/layouts/d3-force/d3-force-layout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class D3ForceLayout extends GraphLayout<D3ForceLayoutOptions> {
8383
});
8484

8585
this._worker.onmessage = (event) => {
86-
log.log(0, 'D3ForceLayout: worker message', event.data?.type, event.data)();
86+
log.log(0, 'D3ForceLayout: worker message', event.data?.type, event.data);
8787
if (event.data.type !== 'end') {
8888
return;
8989
}

modules/graph-layers/src/loaders/edge-parsers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function basicEdgeParser(edge: any): Omit<EdgeOptions, 'data'> {
99
const {id, directed, sourceId, targetId} = edge;
1010

1111
if (sourceId === undefined || targetId === undefined) {
12-
log.error('Invalid edge: sourceId or targetId is missing.')();
12+
log.error('Invalid edge: sourceId or targetId is missing.');
1313
return null;
1414
}
1515

modules/graph-layers/src/loaders/json-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {log} from '../utils/log';
1010
export const JSONLoader = ({json, nodeParser = basicNodeParser, edgeParser = basicEdgeParser}) => {
1111
const {name = 'default', nodes, edges} = json;
1212
if (!nodes) {
13-
log.error('Invalid graph: nodes is missing.')();
13+
log.error('Invalid graph: nodes is missing.');
1414
return null;
1515
}
1616

modules/graph-layers/src/loaders/node-parsers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {log} from '../utils/log';
77

88
export function basicNodeParser(node: any): Pick<NodeOptions, 'id'> {
99
if (node.id === undefined) {
10-
log.error('Invalid node: id is missing.')();
10+
log.error('Invalid node: id is missing.');
1111
return null;
1212
}
1313
return {id: node.id};

0 commit comments

Comments
 (0)