fix: skip rendering label text if content is empty

This commit is contained in:
yuqi.pyq 2023-08-31 14:46:30 +08:00
parent e430b942ea
commit e8dd7704a5
12 changed files with 449 additions and 109 deletions

View File

@ -201,7 +201,8 @@ export abstract class BaseEdge {
const { keyShape } = shapeMap;
const { labelShape: shapeStyle } = this.mergedStyles;
if (!shapeStyle) return;
if (!shapeStyle || !shapeStyle.text || !model.data.labelShape) return;
const {
position,
offsetX: propsOffsetX,

View File

@ -247,7 +247,7 @@ export abstract class BaseNode {
diffState?: { previous: State[]; current: State[] },
): DisplayObject {
const { labelShape: shapeStyle } = this.mergedStyles;
if (!shapeStyle) return;
if (!shapeStyle || !shapeStyle.text || !model.data.labelShape) return;
const { keyShape } = shapeMap;
this.boundsCache.keyShapeLocal =
this.boundsCache.keyShapeLocal || keyShape.getLocalBounds();
@ -350,7 +350,7 @@ export abstract class BaseNode {
diffState?: { oldState: State[]; newState: State[] },
): DisplayObject {
const { labelShape } = shapeMap;
if (!labelShape || !model.data.labelShape) return;
if (!labelShape || !labelShape.style.text || !model.data.labelShape) return;
if (
!this.boundsCache.labelShapeGeometry ||
labelShape.getAttribute(LOCAL_BOUNDS_DIRTY_FLAG_KEY)

View File

@ -10,4 +10,5 @@ if (window) {
(window as any).Chart = require('@antv/chart-node-g6');
(window as any).AntVUtil = require('@antv/util');
(window as any).GraphLayoutPredict = require('@antv/vis-predict-engine');
(window as any).stats = require('stats.js');
}

View File

@ -1,4 +1,5 @@
import { Graph, Extensions, extend } from '@antv/g6';
import Stats from 'stats.js';
const dataFormat = (data, options = {}, userGraphCore) => {
const map = new Map();
@ -166,3 +167,19 @@ fetch('https://gw.alipayobjects.com/os/basement_prod/0b9730ff-0850-46ff-84d0-1d4
const edgeLen = graph.getAllEdgesData().length;
descriptionDiv.innerHTML = `节点数量:${nodeLen}, 边数量:${edgeLen}, 图元数量:${nodeLen * 3 + edgeLen}`;
});
// stats
const stats = new Stats();
stats.showPanel(0);
const $stats = stats.dom;
$stats.style.position = 'absolute';
$stats.style.left = '0px';
$stats.style.top = '0px';
container.appendChild($stats);
const update = () => {
if (stats) {
stats.update();
}
requestAnimationFrame(update);
};
update();

View File

@ -0,0 +1,185 @@
import { Graph, Extensions, extend } from '@antv/g6';
import Stats from 'stats.js';
const dataFormat = (data, options = {}, userGraphCore) => {
const map = new Map();
const nodes: any = [];
data.nodes.forEach((node) => {
if (map.has(node.id)) return;
nodes.push(node);
map.set(node.id, true);
});
data.edges.forEach((edge) => {
const sourceDegree = map.get(edge.source) || 0;
map.set(edge.source, sourceDegree + 1);
const targetDegree = map.get(edge.target) || 0;
map.set(edge.target, targetDegree + 1);
});
return {
nodes: nodes.map((node) => {
const { id, x, y, olabel } = node;
return {
id,
data: {
x,
y,
label: olabel,
degree: map.get(id),
},
};
}),
edges: data.edges.map((edge) => ({
id: `edge-${Math.random()}`,
source: edge.source,
target: edge.target,
})),
};
};
const ExtGraph = extend(Graph, {
transforms: {
'data-format': dataFormat,
},
behaviors: {
'brush-select': Extensions.BrushSelect,
'activate-relations': Extensions.ActivateRelations,
},
});
const container = document.getElementById('container') as HTMLElement;
const descriptionDiv = document.createElement('div');
descriptionDiv.innerHTML = `正在渲染大规模数据,请稍等……`;
container.appendChild(descriptionDiv);
const width = container.scrollWidth;
const height = container.scrollHeight || 500;
const graph = new ExtGraph({
container: 'container',
width,
height,
transform: [
'data-format',
{
type: 'map-node-size',
field: 'degree',
range: [2, 24],
},
],
modes: {
default: ['brush-select', 'zoom-canvas', 'activate-relations', 'drag-canvas', 'drag-node'],
},
node: (model) => {
const { id, data } = model;
const { degree, label } = data;
let labelLod;
if (degree > 30) labelLod = -2;
else if (degree > 20) labelLod = -1;
else if (degree > 15) labelLod = 0;
else if (degree > 10) labelLod = 1;
else if (degree > 6) labelLod = 2;
else if (degree > 3) labelLod = 3;
const config = {
id,
data: {
...data,
animates: {
hide: [
{
fields: ['opacity'],
duration: 200,
shapeId: 'labelShape',
},
],
update: [
{
fields: ['lineWidth'],
shapeId: 'keyShape',
duration: 100,
},
{
fields: ['opacity'],
shapeId: 'haloShape',
},
],
},
},
};
if (labelLod !== undefined) {
config.data.labelShape = {
text: label,
opacity: 0.8,
maxWidth: '250%',
lod: labelLod,
};
config.data.labelBackgroundShape = {
lod: labelLod,
};
config.data.lodStrategy = {
levels: [
{ zoomRange: [0, 1] }, // -2
{ zoomRange: [1, 1.2] }, // -1
{ zoomRange: [1.2, 0.4], primary: true }, // 0
{ zoomRange: [1.4, 1.6] }, // 1
{ zoomRange: [1.6, 1.8] }, // 2
{ zoomRange: [1.8, 2.5] }, // 3
{ zoomRange: [2.5, Infinity] }, // 4
],
animateCfg: {
duration: 500,
},
};
}
return config;
},
edge: {
keyShape: {
lineWidth: 0.3,
opacity: 0.5,
},
},
nodeState: {
selected: {
keyShape: {
lineWidth: 1,
},
haloShape: {
lineWidth: 4,
},
},
},
edgeState: {
selected: {
keyShape: {
lineWidth: 2,
},
haloShape: {
lineWidth: 4,
},
},
},
});
fetch('https://gw.alipayobjects.com/os/basement_prod/0b9730ff-0850-46ff-84d0-1d4afecd43e6.json')
.then((res) => res.json())
.then((res) => {
graph.read(res);
const nodeLen = graph.getAllNodesData().length;
const edgeLen = graph.getAllEdgesData().length;
descriptionDiv.innerHTML = `节点数量:${nodeLen}, 边数量:${edgeLen}, 图元数量:${nodeLen * 3 + edgeLen}`;
});
// stats
const stats = new Stats();
stats.showPanel(0);
const $stats = stats.dom;
$stats.style.position = 'absolute';
$stats.style.left = '0px';
$stats.style.top = '0px';
container.appendChild($stats);
const update = () => {
if (stats) {
stats.update();
}
requestAnimationFrame(update);
};
update();

View File

@ -7,24 +7,48 @@
{
"filename": "netscience.ts",
"title": {
"zh": "5000+ 图元",
"en": "5000+ Graphic Shapes"
"zh": "5000+ 图元使用 Canvas 渲染",
"en": "5000+ Graphic Shapes Rendered by Canvas"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*Q6eRT7RNwBYAAAAAAAAAAABkARQnAQ"
},
{
"filename": "netscienceWebGL.ts",
"title": {
"zh": "5000+ 图元使用 WebGL 渲染",
"en": "5000+ Graphic Shapes Rendered by WebGL"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*Q6eRT7RNwBYAAAAAAAAAAABkARQnAQ"
},
{
"filename": "eva.ts",
"title": {
"zh": "~20000 图元",
"en": "~20000 Graphic Shapes"
"zh": "~20000 图元使用 Canvas 渲染",
"en": "~20000 Graphic Shapes Rendered by Canvas"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*mysRTLxipwMAAAAAAAAAAABkARQnAQ"
},
{
"filename": "evaWebGL.ts",
"title": {
"zh": "~20000 图元使用 WebGL 渲染",
"en": "~20000 Graphic Shapes Rendered by WebGL"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*mysRTLxipwMAAAAAAAAAAABkARQnAQ"
},
{
"filename": "moreData.js",
"title": {
"zh": "50000+ 图元",
"en": "50000+ Graphic Shapes"
"zh": "50000+ 图元使用 Canvas 渲染",
"en": "50000+ Graphic Shapes Rendered by Canvas"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*6U-cSrdpBjYAAAAAAAAAAABkARQnAQ"
},
{
"filename": "moreDataWebGL.js",
"title": {
"zh": "50000+ 图元使用 WebGL 渲染",
"en": "50000+ Graphic Shapes Rendered by WebGL"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*6U-cSrdpBjYAAAAAAAAAAABkARQnAQ"
}

View File

@ -1,4 +1,5 @@
import { Graph, Extensions, extend } from '@antv/g6';
import Stats from 'stats.js';
const ExtGraph = extend(Graph, {
behaviors: {
@ -12,22 +13,22 @@ descriptionDiv.innerHTML = `正在渲染大规模数据,请稍等……`;
container.appendChild(descriptionDiv);
const width = container.scrollWidth;
const height = container.scrollHeight || 500;
const graph = new ExtGraph({
container: 'container',
width,
height,
renderer: 'canvas',
transform: ['transform-v4-data'],
modes: {
default: [
{
type: 'zoom-canvas',
enableOptimize: true,
enableOptimize: false,
optimizeZoom: 0.9,
},
{
type: 'drag-canvas',
enableOptimize: true,
enableOptimize: false,
},
'drag-node',
'brush-select',
@ -61,3 +62,19 @@ if (typeof window !== 'undefined')
if (!container || !container.scrollWidth || !container.scrollHeight) return;
graph.setSize([container.scrollWidth, container.scrollHeight]);
};
// stats
const stats = new Stats();
stats.showPanel(0);
const $stats = stats.dom;
$stats.style.position = 'absolute';
$stats.style.left = '0px';
$stats.style.top = '0px';
container.appendChild($stats);
const update = () => {
if (stats) {
stats.update();
}
requestAnimationFrame(update);
};
update();

View File

@ -0,0 +1,81 @@
import { Graph, Extensions, extend } from '@antv/g6';
import Stats from 'stats.js';
const ExtGraph = extend(Graph, {
behaviors: {
'brush-select': Extensions.BrushSelect,
},
});
const container = document.getElementById('container');
const descriptionDiv = document.createElement('div');
descriptionDiv.innerHTML = `正在渲染大规模数据,请稍等……`;
container.appendChild(descriptionDiv);
const width = container.scrollWidth;
const height = container.scrollHeight || 500;
const graph = new ExtGraph({
container: 'container',
width,
height,
renderer: 'webgl',
transform: ['transform-v4-data'],
modes: {
default: [
{
type: 'zoom-canvas',
enableOptimize: false,
optimizeZoom: 0.9,
},
{
type: 'drag-canvas',
enableOptimize: false,
},
'drag-node',
'brush-select',
],
},
node: {
keyShape: {
r: 2,
},
},
edge: {
keyShape: {
opacity: 0.3,
},
},
});
fetch('https://gw.alipayobjects.com/os/bmw-prod/f1565312-d537-4231-adf5-81cb1cd3a0e8.json')
.then((res) => res.json())
.then((data) => {
data.edges.forEach((edge) => (edge.id = `edge-${Math.random()}`));
graph.read(data);
const nodeLen = data.nodes.length;
const edgeLen = data.edges.length;
descriptionDiv.innerHTML = `节点数量:${nodeLen}, 边数量:${edgeLen}, 图元数量:${nodeLen + edgeLen}`;
});
if (typeof window !== 'undefined')
window.onresize = () => {
if (!graph || graph.destroyed) return;
if (!container || !container.scrollWidth || !container.scrollHeight) return;
graph.setSize([container.scrollWidth, container.scrollHeight]);
};
// stats
const stats = new Stats();
stats.showPanel(0);
const $stats = stats.dom;
$stats.style.position = 'absolute';
$stats.style.left = '0px';
$stats.style.top = '0px';
container.appendChild($stats);
const update = () => {
if (stats) {
stats.update();
}
requestAnimationFrame(update);
};
update();

View File

@ -1,4 +1,5 @@
import { Graph, Extensions, extend } from '@antv/g6';
import Stats from 'stats.js';
const ExtGraph = extend(Graph, {
behaviors: {
@ -57,3 +58,19 @@ fetch('https://gw.alipayobjects.com/os/basement_prod/da5a1b47-37d6-44d7-8d10-f3e
nodes.length * 2 + edges.length
}`;
});
// stats
const stats = new Stats();
stats.showPanel(0);
const $stats = stats.dom;
$stats.style.position = 'absolute';
$stats.style.left = '0px';
$stats.style.top = '0px';
container.appendChild($stats);
const update = () => {
if (stats) {
stats.update();
}
requestAnimationFrame(update);
};
update();

View File

@ -0,0 +1,77 @@
import { Graph, Extensions, extend } from '@antv/g6';
import Stats from 'stats.js';
const ExtGraph = extend(Graph, {
behaviors: {
'brush-select': Extensions.BrushSelect,
'activate-relations': Extensions.ActivateRelations,
},
});
const container = document.getElementById('container') as HTMLElement;
const descriptionDiv = document.createElement('div');
descriptionDiv.innerHTML = `正在渲染大规模数据,请稍等……`;
container.appendChild(descriptionDiv);
const width = container.scrollWidth;
const height = container.scrollHeight || 500;
const graph = new ExtGraph({
container: 'container',
width,
height,
renderer: 'webgl',
modes: {
default: ['brush-select', 'zoom-canvas', 'activate-relations', 'drag-canvas', 'drag-node'],
},
node: {
keyShape: {
r: 8,
},
},
});
fetch('https://gw.alipayobjects.com/os/basement_prod/da5a1b47-37d6-44d7-8d10-f3e046dabf82.json')
.then((res) => res.json())
.then((res) => {
const nodes = res.nodes.map((node) => {
return {
id: node.id,
data: {
x: node.x,
y: node.y,
},
};
});
const edges = res.edges.map((edge, index) => {
const { source, target } = edge;
return {
id: `${index}_${source}_to_${target}`,
source,
target,
data: {},
};
});
const data = { nodes, edges };
graph.read(data);
descriptionDiv.innerHTML = `节点数量:${nodes.length}, 边数量:${edges.length}, 图元数量:${
nodes.length * 2 + edges.length
}`;
});
// stats
const stats = new Stats();
stats.showPanel(0);
const $stats = stats.dom;
$stats.style.position = 'absolute';
$stats.style.left = '0px';
$stats.style.top = '0px';
container.appendChild($stats);
const update = () => {
if (stats) {
stats.update();
}
requestAnimationFrame(update);
};
update();

View File

@ -49,6 +49,7 @@
"@microsoft/api-extractor": "^7.33.6",
"dumi": "^2.2.4",
"insert-css": "^2.0.0",
"stats.js": "^0.17.0",
"typedoc": "^0.24.8",
"typedoc-plugin-markdown": "^3.14.0",
"typescript": "^4.6.3"

View File

@ -1,9 +1,5 @@
lockfileVersion: '6.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
overrides:
prettier: ^2.8.8
@ -34,7 +30,7 @@ importers:
version: 0.17.0
vite:
specifier: ^4.2.1
version: 4.2.2(@types/node@20.4.7)
version: 4.2.2(@types/node@13.11.1)(less@3.13.1)(stylus@0.54.8)
packages/g6:
dependencies:
@ -285,6 +281,9 @@ importers:
insert-css:
specifier: ^2.0.0
version: 2.0.0
stats.js:
specifier: ^0.17.0
version: 0.17.0
typedoc:
specifier: ^0.24.8
version: 0.24.8(typescript@4.6.3)
@ -11218,7 +11217,7 @@ packages:
dependencies:
'@babel/core': 7.21.0
postcss: 8.4.28
postcss-syntax: 0.36.2(postcss@8.4.28)
postcss-syntax: 0.36.2(postcss-html@0.36.0)(postcss-jsx@0.36.4)(postcss-less@3.1.4)(postcss-markdown@0.36.0)(postcss-scss@2.1.1)(postcss@7.0.39)
transitivePeerDependencies:
- supports-color
dev: false
@ -13134,7 +13133,7 @@ packages:
esbuild: 0.17.19
regenerate: 1.4.2
regenerate-unicode-properties: 10.1.0
spdy: 4.0.2
spdy: 4.0.2(supports-color@6.1.0)
transitivePeerDependencies:
- supports-color
dev: false
@ -13150,7 +13149,7 @@ packages:
less: 4.1.3
postcss-preset-env: 7.5.0(postcss@8.4.28)
rollup-plugin-visualizer: 5.9.0(rollup@2.33.3)
vite: 4.3.1(@types/node@20.4.7)(less@3.13.1)(stylus@0.54.8)
vite: 4.3.1(@types/node@20.4.7)(less@4.1.3)(sass@1.66.1)(stylus@0.54.8)
transitivePeerDependencies:
- '@types/node'
- postcss
@ -13452,7 +13451,7 @@ packages:
eslint-plugin-react: 7.32.2(eslint@7.22.0)
eslint-plugin-react-hooks: 4.6.0(eslint@7.22.0)
postcss: 8.4.28
postcss-syntax: 0.36.2(postcss@8.4.28)
postcss-syntax: 0.36.2(postcss-html@0.36.0)(postcss-jsx@0.36.4)(postcss-less@3.1.4)(postcss-markdown@0.36.0)(postcss-scss@2.1.1)(postcss@7.0.39)
stylelint-config-standard: 25.0.0(stylelint@14.16.1)
transitivePeerDependencies:
- eslint
@ -13626,7 +13625,7 @@ packages:
'@babel/plugin-transform-react-jsx-self': 7.22.5(@babel/core@7.22.10)
'@babel/plugin-transform-react-jsx-source': 7.22.5(@babel/core@7.22.10)
react-refresh: 0.14.0
vite: 4.3.1(@types/node@20.4.7)(less@3.13.1)(stylus@0.54.8)
vite: 4.3.1(@types/node@20.4.7)(less@4.1.3)(sass@1.66.1)(stylus@0.54.8)
transitivePeerDependencies:
- supports-color
dev: false
@ -32175,30 +32174,6 @@ packages:
postcss-markdown: 0.36.0(postcss-syntax@0.36.2)(postcss@7.0.39)
postcss-scss: 2.1.1
/postcss-syntax@0.36.2(postcss@8.4.28):
resolution: {integrity: sha512-nBRg/i7E3SOHWxF3PpF5WnJM/jQ1YpY9000OaVXlAQj6Zp/kIqJxEDWIZ67tAd7NLuk7zqN4yqe9nc0oNAOs1w==}
peerDependencies:
postcss: '>=5.0.0'
postcss-html: '*'
postcss-jsx: '*'
postcss-less: '*'
postcss-markdown: '*'
postcss-scss: '*'
peerDependenciesMeta:
postcss-html:
optional: true
postcss-jsx:
optional: true
postcss-less:
optional: true
postcss-markdown:
optional: true
postcss-scss:
optional: true
dependencies:
postcss: 8.4.28
dev: false
/postcss-unique-selectors@4.0.1:
resolution: {integrity: sha512-+JanVaryLo9QwZjKrmJgkI4Fn8SBgRO6WXQBJi7KiAVPlmxikB5Jzc4EvXMT2H0/m0RjrVVm9rGNhZddm/8Spg==}
engines: {node: '>=6.9.0'}
@ -37303,19 +37278,6 @@ packages:
/spdx-license-ids@3.0.13:
resolution: {integrity: sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==}
/spdy-transport@3.0.0:
resolution: {integrity: sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==}
dependencies:
debug: 4.3.4(supports-color@5.5.0)
detect-node: 2.1.0
hpack.js: 2.1.6
obuf: 1.1.2
readable-stream: 3.6.2
wbuf: 1.7.3
transitivePeerDependencies:
- supports-color
dev: false
/spdy-transport@3.0.0(supports-color@6.1.0):
resolution: {integrity: sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==}
dependencies:
@ -37328,19 +37290,6 @@ packages:
transitivePeerDependencies:
- supports-color
/spdy@4.0.2:
resolution: {integrity: sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==}
engines: {node: '>=6.0.0'}
dependencies:
debug: 4.3.4(supports-color@5.5.0)
handle-thing: 2.0.1
http-deceiver: 1.2.7
select-hose: 2.0.0
spdy-transport: 3.0.0
transitivePeerDependencies:
- supports-color
dev: false
/spdy@4.0.2(supports-color@6.1.0):
resolution: {integrity: sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==}
engines: {node: '>=6.0.0'}
@ -37492,7 +37441,6 @@ packages:
/stats.js@0.17.0:
resolution: {integrity: sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw==}
dev: true
/statuses@1.5.0:
resolution: {integrity: sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==}
@ -40413,41 +40361,7 @@ packages:
fsevents: 2.3.3
dev: true
/vite@4.2.2(@types/node@20.4.7):
resolution: {integrity: sha512-PcNtT5HeDxb3QaSqFYkEum8f5sCVe0R3WK20qxgIvNBZPXU/Obxs/+ubBMeE7nLWeCo2LDzv+8hRYSlcaSehig==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
peerDependencies:
'@types/node': '>= 14'
less: '*'
sass: '*'
stylus: '*'
sugarss: '*'
terser: ^5.4.0
peerDependenciesMeta:
'@types/node':
optional: true
less:
optional: true
sass:
optional: true
stylus:
optional: true
sugarss:
optional: true
terser:
optional: true
dependencies:
'@types/node': 20.4.7
esbuild: 0.17.19
postcss: 8.4.28
resolve: 1.22.4
rollup: 3.28.1
optionalDependencies:
fsevents: 2.3.3
dev: true
/vite@4.3.1(@types/node@20.4.7)(less@3.13.1)(stylus@0.54.8):
/vite@4.3.1(@types/node@20.4.7)(less@4.1.3)(sass@1.66.1)(stylus@0.54.8):
resolution: {integrity: sha512-EPmfPLAI79Z/RofuMvkIS0Yr091T2ReUoXQqc5ppBX/sjFRhHKiPPF/R46cTdoci/XgeQpB23diiJxq5w30vdg==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
@ -40474,9 +40388,10 @@ packages:
dependencies:
'@types/node': 20.4.7
esbuild: 0.17.19
less: 3.13.1
less: 4.1.3
postcss: 8.4.28
rollup: 3.28.1
sass: 1.66.1
stylus: 0.54.8
optionalDependencies:
fsevents: 2.3.3
@ -41683,3 +41598,7 @@ packages:
/zwitch@2.0.4:
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
dev: false
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false