From 4e0d998d785bd47fa7ce5127c86e49112a7ccdf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vy=C4=8D=C3=ADtal?= Date: Sun, 27 Oct 2019 15:50:18 +0100 Subject: [PATCH] feat(build): add standalone and peer builds (#85) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(build): add standalone and peer builds * chore(dist): update * style: reformat new files * fix(build): update to core-js 3 Also ditches rollup-plugin-babel-minify in favor of directly configuring babel plugin as the former doesn't work with core-js 3. * fix(build): make it actually work without errors * chore(dist): update * chore(package): fix clean script It missed all the new vis-network.* files. Now it deletes them. * fix(build): use folder structure instead of big mess * chore(types): remove useless d.ts file I have no idea why I put it there, it's not imported from anywhere. * fix(build): fix image copying and watch * chore(examples): use standalone build * chore(examples): add standalone/peer build examples * fix(build): get rid of default import from util Every UMD package overwrites the default and breaks everything. This will work as long as no two packages use the same name for one of their exports (seems to be the case right now). * fix(build): don't reexport data and util from peer DataSet, utils etc. can't be reexported because that would cause stack overflow in UMD builds. They all export vis namespace therefore reexporting leads to loading vis to load vis to load vis… * chore(dist): update * fix(build): update d.ts files for recent changes * chore(examples): fix script and style paths * style: reformat * chore(examples): add code examples to basic usage * chore(examples): add new builds examples to the index * chore(examples): add legacy build example * chore(examples): fix URL errors * docs: update how to * docs: fix typo * fix(build): don't capitalize nonconstructor objects * docs: update Gephi and DOT exports * chore(dist): update * chore(build): transpile dependencies This ensures that all dependencies match our browser list. * chore(dist): update * chore(build): don't ignore declarations * chore(dist): update * chore(build): use concat instead of flatMap This greatly increases compatibility as Array.prototype.flatMap is quite new and only recently supported by Node. * chore(build): add styles to files * chore(scripts): clean all generated files --- .babelrc | 7 +- .eslintrc.js | 2 - .gitignore | 9 +- README.md | 5 +- dev-lib/bundle-peer.d.ts | 1 + dev-lib/bundle-standalone.d.ts | 1 + {lib => dev-lib}/header.js | 0 docs/network/index.html | 72 +- examples/index.html | 25087 ---------------- examples/network/basicUsage.html | 3 +- examples/network/basic_usage/legacy.html | 210 + examples/network/basic_usage/peer.html | 201 + examples/network/basic_usage/standalone.html | 205 + examples/network/data/datasets.html | 3 +- .../data/dotLanguage/dotEdgeStyles.html | 5 +- .../network/data/dotLanguage/dotLanguage.html | 6 +- .../data/dotLanguage/dotPlayground.html | 5 +- examples/network/data/dynamicData.html | 3 +- examples/network/data/dynamicFiltering.html | 5 +- examples/network/data/importingFromGephi.html | 5 +- examples/network/data/scalingCustom.html | 3 +- examples/network/data/scalingNodesEdges.html | 3 +- .../network/data/scalingNodesEdgesLabels.html | 3 +- .../network/edgeStyles/arrowAlignment.html | 10 +- examples/network/edgeStyles/arrowTypes.html | 3 +- examples/network/edgeStyles/arrows.html | 3 +- examples/network/edgeStyles/background.html | 3 +- examples/network/edgeStyles/colors.html | 3 +- examples/network/edgeStyles/dashes.html | 3 +- examples/network/edgeStyles/smooth.html | 3 +- .../network/edgeStyles/smoothWorldCup.html | 3 +- .../network/events/interactionEvents.html | 3 +- examples/network/events/physicsEvents.html | 3 +- examples/network/events/renderEvents.html | 3 +- .../disassemblerExample.html | 3 +- .../exampleApplications/lesMiserables.html | 3 +- .../exampleApplications/loadingBar.html | 3 +- .../neighbourhoodHighlight.html | 3 +- .../exampleApplications/nodeLegend.html | 3 +- .../worldCupPerformance.html | 3 +- .../network/imageSelected/imageSelected.html | 3 +- examples/network/labels/labelAlignment.html | 3 +- examples/network/labels/labelBackground.html | 3 +- .../network/labels/labelColorAndSize.html | 5 +- examples/network/labels/labelMargins.html | 3 +- examples/network/labels/labelMultifont.html | 3 +- examples/network/labels/labelStroke.html | 5 +- examples/network/labels/multilineText.html | 3 +- .../network/layout/hierarchicalLayout.html | 4 +- .../hierarchicalLayoutBigUserDefined.html | 3 +- .../layout/hierarchicalLayoutMethods.html | 3 +- .../layout/hierarchicalLayoutUserdefined.html | 4 +- .../hierarchicalLayoutWithoutPhysics.html | 6 +- examples/network/layout/randomSeed.html | 3 +- examples/network/nodeStyles/HTMLInNodes.html | 3 +- .../network/nodeStyles/circularImages.html | 3 +- examples/network/nodeStyles/colors.html | 3 +- examples/network/nodeStyles/customGroups.html | 5 +- examples/network/nodeStyles/groups.html | 5 +- examples/network/nodeStyles/icons.html | 3 +- examples/network/nodeStyles/images.html | 3 +- .../network/nodeStyles/imagesWithBorders.html | 3 +- .../imagesWithBordersAndPadding.html | 3 +- .../network/nodeStyles/overwriteGroups.html | 10 +- examples/network/nodeStyles/shadows.html | 5 +- examples/network/nodeStyles/shapes.html | 3 +- .../nodeStyles/shapesWithDashedBorders.html | 3 +- examples/network/nodeStyles/widthHeight.html | 3 +- examples/network/other/animationShowcase.html | 3 +- .../other/changingClusteredEdgesNodes.html | 3 +- examples/network/other/chosen.html | 3 +- examples/network/other/clustering.html | 3 +- examples/network/other/clusteringByZoom.html | 3 +- .../network/other/clustersOfclusters.html | 5 +- examples/network/other/configuration.html | 3 +- examples/network/other/cursorChange.html | 3 +- examples/network/other/manipulation.html | 3 +- .../other/manipulationEditEdgeNoDrag.html | 3 +- examples/network/other/navigation.html | 17 +- examples/network/other/onLoadAnimation.html | 5 +- examples/network/other/performance.html | 3 +- examples/network/other/saveAndLoad.html | 5 +- .../network/physics/physicsConfiguration.html | 3 +- examples/network/tests/hidden_edge_test.html | 5 +- .../manipulationEditEdgeNoDrag.html | 7 +- ...2a21a29dcdb704de03d4134ff4b8479129008a.png | Bin 23526 -> 0 bytes ...08a4918882bc3827c0a8daf79abab7f56d18f8.png | Bin 17713 -> 0 bytes ...b55861f002bd9f22cba5b4466398bf7ad98429.png | Bin 16534 -> 0 bytes ...af40e250aa44bf2e87240f9990f852297d1061.png | Bin 17483 -> 0 bytes ...f1840f26d27326e2aea30ff2a751366b919ede.png | Bin 34570 -> 0 bytes ...1c6015237b254756b3f522910cce806b22892c.png | Bin 10169 -> 0 bytes ...a3b8d68712b1b24d66a427b03cb304dfb75191.png | Bin 2213 -> 0 bytes ...3812129250d68a79c50ba18636ed881678e7cb.png | Bin 23717 -> 0 bytes ...e1db4ae72537ff6953d340eaebd818019a6f8d.png | Bin 8578 -> 0 bytes ...8a255cf1957786b78a8f5ebb8a0d3c8a1f2985.png | Bin 17289 -> 0 bytes ...29383a9af5659524daaebbb57d13c78e31f118.png | Bin 21766 -> 0 bytes ...d9b749e42f57636c2aed3622cd349bd8bbed08.png | Bin 10276 -> 0 bytes ...8a959719ea5ff296abb393ed3d45593aa86dde.png | Bin 9261 -> 0 bytes ...1fadbe692501ebb755343c8947bed655c4c218.png | Bin 16379 -> 0 bytes ...d080ed5cb71993ab3c0b757b223c4866c01ec3.png | Bin 419196 -> 0 bytes ...49d67131be868f44554faa22a6385a256055d4.png | Bin 12623 -> 0 bytes ...d2bb25e637672de0d493e5039729ec6c731715.png | Bin 12125 -> 0 bytes ...73710c93ddb8da296fbca6783d0c36fa9c629b.png | Bin 12674 -> 0 bytes ...c17f17bcc82ddbb6c09f85bfbc6c012787ec06.png | Bin 17484 -> 0 bytes ...938f751cae49cc4b7642a62b7fd46922cd2e48.png | Bin 26730 -> 0 bytes ...88c9ac806ab2ec2d509f62723eceaf6d44632f.png | Bin 12387 -> 0 bytes ...5b4a0c804f2a529c7e1ff367c44f9fa5688c3a.png | Bin 21797 -> 0 bytes ...2a7511a7bb9b0f9160f72388a7d930a6005aaf.png | Bin 36008 -> 0 bytes ...a67dfdb5bfcb63af7a2fcb8a03dc51e62df021.png | Bin 21826 -> 0 bytes ...bddc7d8a2ac5756e1351c1792abfc1afec635d.png | Bin 20608 -> 0 bytes ...60f7d789d8fcdbea172c6bf5944195569981fd.png | Bin 10877 -> 0 bytes ...e37446e25aa88eac944f342d97269a95d9cb54.png | Bin 36866 -> 0 bytes ...8c5955a7299a7360cbf88ca549dee7a7710f90.png | Bin 45902 -> 0 bytes ...ef4daa3b6855aea62fe3a7a474bf1829856b6d.png | Bin 21704 -> 0 bytes ...66218beaa37a3bc3c9bb8821729d595bf65388.png | Bin 4666 -> 0 bytes ...bfe9a57a5a8a3c178aca036b0ccca370894155.png | Bin 75258 -> 0 bytes ...2bdaff6083c69bb695b1d28ea9536a657c715b.png | Bin 32560 -> 0 bytes ...8779e05229c15fdf2b645c45d812cc4580e1c8.png | Bin 10157 -> 0 bytes ...963d0b0e0cc52312dd68d9734eebc9e0041585.png | Bin 10276 -> 0 bytes ...67b771be236f57fe07d73bdd0ea5f498cb8399.png | Bin 20608 -> 0 bytes ...27044c3e0eae599c78bedfb5dbd5dc6d880df5.png | Bin 8394 -> 0 bytes ...afe17ece1f4120096191e529fab39d0f3e5e75.png | Bin 15489 -> 0 bytes ...fbd4175df794e9bf1f0ba20c36f5a81039ad55.png | Bin 9139 -> 0 bytes ...c13c823f6b1cff2469babd0f6d0e24b38fa2cb.png | Bin 15206 -> 0 bytes ...e1fd22f5e3bd61e24870b1f7d14ab6bd42ba72.png | Bin 17323 -> 0 bytes ...8b68e18836794bcbd2b047426e01fa6c9d2a7d.png | Bin 11957 -> 0 bytes ...e6f712088637699bf4e73b67b10de045151de0.png | Bin 7532 -> 0 bytes ...4f4654542441355028a02189be639232f1bc7d.png | Bin 16660 -> 0 bytes ...0e8e6578e56709e5c903166a29bb5b552a7184.png | Bin 4418 -> 0 bytes ...ce39cf3375507f8524b2e05aa38a46610ee507.png | Bin 19297 -> 0 bytes ...e0b9ac4b34650ad089a0153a7fcc4e3d695bfe.png | Bin 26992 -> 0 bytes ...0c1473f20fabaf189718257e3919f66ab7c87e.png | Bin 14834 -> 0 bytes ...2595034840c9155be8eed0fa8633daa690f922.png | Bin 155700 -> 0 bytes ...6062bad7ffb30dc33f8df715e17875619b926c.png | Bin 13941 -> 0 bytes ...405aa20d0ba13cbb2ca60ee86876afa55a7b7f.png | Bin 23035 -> 0 bytes ...754a0696189376b1e4a8a630510349b75b1efa.png | Bin 15103 -> 0 bytes ...eb0bdb81c4c8448dceac28a969f8b3b13fd583.png | Bin 11040 -> 0 bytes ...6da40c90a49d6f6b78cc8e0b68d8521bde5aec.png | Bin 155714 -> 0 bytes ...0a80c7a0c7ceeb881b0ffbc3d960cd11d60a18.png | Bin 14725 -> 0 bytes ...6af7d7bfff1904e0d558a3d316e6b6be1e670c.png | Bin 17170 -> 0 bytes ...06899573a272b95bee522d1023bedbed9d1f5e.png | Bin 24958 -> 0 bytes ...4af6e73f9bfb00f4a32015669906eb66f78494.png | Bin 13260 -> 0 bytes ...d2ed075976095c7e570fda91f3c8ba2899e588.png | Bin 10276 -> 0 bytes ...1a48de763226e059b6cca975d574c6946581c5.png | Bin 10980 -> 0 bytes ...7e262b49b2ef9042a5b9ad42c6d2e0cf6e3ca7.png | Bin 12375 -> 0 bytes ...df08126e9dac5a3538c02b39cf67c6f623ce55.png | Bin 36150 -> 0 bytes ...1f0caa13939788892b3cd53bda329d5f3ca805.png | Bin 34710 -> 0 bytes ...b95a9500b4f468c89bd5f262bb5361da108860.png | Bin 31066 -> 0 bytes ...ac019b474e3264dd401a45ec128f58b915fdeb.png | Bin 7605 -> 0 bytes ...c993db20a26d231dffe77079c1b975c8ba055d.png | Bin 15895 -> 0 bytes ...2fbd198ecc29fc5297985d67f2462b1ef02f72.png | Bin 15711 -> 0 bytes ...b555812164b9a4627e703868bd56f68af83103.png | Bin 15369 -> 0 bytes ...abe9c177d5a7db7b044d4bec602307ed33cfd2.png | Bin 5368 -> 0 bytes ...d6c599ef394f3c07d20a2e517b4662b1708e3b.png | Bin 20856 -> 0 bytes ...dd3478d757a01f95d5a5eb1ae4962ee1089e87.png | Bin 57856 -> 0 bytes ...34cb72bec5254992f1e19fd4f18d9a56d680e2.png | Bin 74154 -> 0 bytes ...816b97289b52dcddecc7a3c8936b9f86df5c17.png | Bin 13941 -> 0 bytes ...6792fff5c2655f21d9cee659a89f67b7215f7e.png | Bin 17277 -> 0 bytes ...49ebad36fa62b4550eb4a935661c6df1e4b834.png | Bin 19897 -> 0 bytes .../img => assets}/acceptDeleteIcon.png | Bin lib/{network/img => assets}/addNodeIcon.png | Bin lib/{network/img => assets}/backIcon.png | Bin lib/{network/img => assets}/connectIcon.png | Bin lib/{network/img => assets}/cross.png | Bin lib/{network/img => assets}/cross2.png | Bin lib/{network/img => assets}/deleteIcon.png | Bin lib/{network/img => assets}/downArrow.png | Bin lib/{network/img => assets}/editIcon.png | Bin lib/{network/img => assets}/leftArrow.png | Bin lib/{network/img => assets}/minus.png | Bin lib/{network/img => assets}/plus.png | Bin lib/{network/img => assets}/rightArrow.png | Bin lib/{network/img => assets}/upArrow.png | Bin lib/{network/img => assets}/zoomExtends.png | Bin lib/index-bundle.ts | 6 - lib/index-legacy-bundle.ts | 6 + lib/index-legacy.ts | 37 + lib/index-peer.ts | 18 + lib/index-standalone.ts | 10 + lib/index.ts | 37 - lib/network/Network.js | 2 +- lib/network/NetworkUtil.js | 4 +- lib/network/modules/Canvas.js | 2 +- lib/network/modules/CanvasRenderer.js | 2 +- lib/network/modules/Clustering.js | 2 +- lib/network/modules/EdgesHandler.js | 2 +- lib/network/modules/Groups.js | 2 +- lib/network/modules/InteractionHandler.js | 2 +- lib/network/modules/LayoutEngine.js | 2 +- lib/network/modules/ManipulationSystem.css | 12 +- lib/network/modules/ManipulationSystem.js | 2 +- lib/network/modules/NodesHandler.js | 2 +- lib/network/modules/PhysicsEngine.js | 2 +- lib/network/modules/SelectionHandler.js | 2 +- lib/network/modules/View.js | 2 +- lib/network/modules/components/Edge.js | 2 +- .../modules/components/NavigationHandler.css | 16 +- lib/network/modules/components/Node.js | 2 +- .../modules/components/nodes/Cluster.js | 2 +- .../components/shared/ComponentUtil.js | 2 +- .../modules/components/shared/Label.js | 2 +- lib/shared/ColorPicker.js | 2 +- lib/shared/Configurator.js | 2 +- lib/shared/Validator.js | 2 +- package-lock.json | 2856 +- package.json | 44 +- rollup.build.js | 131 + rollup.config.js | 14 +- styles/vis-network.css | 718 + styles/vis-network.css.map | 1 + styles/vis-network.min.css | 2 + styles/vis-network.min.css.map | 1 + tsconfig.declarations.json | 9 + tsconfig.types.json | 1 + types/network/Images.d.ts | 2 + types/network/dotparser.d.ts | 2 + types/network/options.d.ts | 2 + 217 files changed, 4520 insertions(+), 25536 deletions(-) create mode 100644 dev-lib/bundle-peer.d.ts create mode 100644 dev-lib/bundle-standalone.d.ts rename {lib => dev-lib}/header.js (100%) delete mode 100644 examples/index.html create mode 100644 examples/network/basic_usage/legacy.html create mode 100644 examples/network/basic_usage/peer.html create mode 100644 examples/network/basic_usage/standalone.html delete mode 100644 examples/thumbnails/01314bf69c64aaed499725910a2a21a29dcdb704de03d4134ff4b8479129008a.png delete mode 100644 examples/thumbnails/02538c76de6b26fe4d5c6a7ca308a4918882bc3827c0a8daf79abab7f56d18f8.png delete mode 100644 examples/thumbnails/07c3fee8c7388725dda10406b7b55861f002bd9f22cba5b4466398bf7ad98429.png delete mode 100644 examples/thumbnails/07c631d714d73556ae43a24cffaf40e250aa44bf2e87240f9990f852297d1061.png delete mode 100644 examples/thumbnails/0840bf73e94256fed523c2321ef1840f26d27326e2aea30ff2a751366b919ede.png delete mode 100644 examples/thumbnails/09f56750343be2d9d8728cefaf1c6015237b254756b3f522910cce806b22892c.png delete mode 100644 examples/thumbnails/0bdc4b4f3f3091a4a2605f0a62a3b8d68712b1b24d66a427b03cb304dfb75191.png delete mode 100644 examples/thumbnails/108a704c43120cb66fdbaee70d3812129250d68a79c50ba18636ed881678e7cb.png delete mode 100644 examples/thumbnails/1500dd082d3184fb7b31b91acbe1db4ae72537ff6953d340eaebd818019a6f8d.png delete mode 100644 examples/thumbnails/156974012457784b755a6bfc3e8a255cf1957786b78a8f5ebb8a0d3c8a1f2985.png delete mode 100644 examples/thumbnails/1c12e3425cbcde797ad03af11329383a9af5659524daaebbb57d13c78e31f118.png delete mode 100644 examples/thumbnails/1ca4f3a1ba5c3cb5d1c70d5e8ed9b749e42f57636c2aed3622cd349bd8bbed08.png delete mode 100644 examples/thumbnails/1e0a3e44818cef581dfa285b468a959719ea5ff296abb393ed3d45593aa86dde.png delete mode 100644 examples/thumbnails/216a43994b85014e118975741e1fadbe692501ebb755343c8947bed655c4c218.png delete mode 100644 examples/thumbnails/2330d0df1a367cbe7625e7a924d080ed5cb71993ab3c0b757b223c4866c01ec3.png delete mode 100644 examples/thumbnails/25c7199e7afc2c7423338b2a1d49d67131be868f44554faa22a6385a256055d4.png delete mode 100644 examples/thumbnails/2962eb102acd5d2e0700b0af4ed2bb25e637672de0d493e5039729ec6c731715.png delete mode 100644 examples/thumbnails/2a04bd22b1f65d1f95593b980b73710c93ddb8da296fbca6783d0c36fa9c629b.png delete mode 100644 examples/thumbnails/2d4a91daf946c35a2b192a3078c17f17bcc82ddbb6c09f85bfbc6c012787ec06.png delete mode 100644 examples/thumbnails/3631ddaddbbd6445b3d9b8bcda938f751cae49cc4b7642a62b7fd46922cd2e48.png delete mode 100644 examples/thumbnails/3987bed8021704457b5911358488c9ac806ab2ec2d509f62723eceaf6d44632f.png delete mode 100644 examples/thumbnails/3f47bf0c31b5f02ff29a289d145b4a0c804f2a529c7e1ff367c44f9fa5688c3a.png delete mode 100644 examples/thumbnails/41b7017c611e621a0709dbf43d2a7511a7bb9b0f9160f72388a7d930a6005aaf.png delete mode 100644 examples/thumbnails/43af978e4c07fab2b596e648caa67dfdb5bfcb63af7a2fcb8a03dc51e62df021.png delete mode 100644 examples/thumbnails/4562462dc25a94f52d8c97fc09bddc7d8a2ac5756e1351c1792abfc1afec635d.png delete mode 100644 examples/thumbnails/4607b73c2988979a66b460b3b460f7d789d8fcdbea172c6bf5944195569981fd.png delete mode 100644 examples/thumbnails/46f542b5145d5ad74b0e364209e37446e25aa88eac944f342d97269a95d9cb54.png delete mode 100644 examples/thumbnails/46f860fa00a0a59a2c392cfd0f8c5955a7299a7360cbf88ca549dee7a7710f90.png delete mode 100644 examples/thumbnails/47b82826ab7f0195cb45197469ef4daa3b6855aea62fe3a7a474bf1829856b6d.png delete mode 100644 examples/thumbnails/49a82aadf3559a8121a48034e266218beaa37a3bc3c9bb8821729d595bf65388.png delete mode 100644 examples/thumbnails/4b440421da00087ae9c75222d7bfe9a57a5a8a3c178aca036b0ccca370894155.png delete mode 100644 examples/thumbnails/4dca4f9bca2bbd3029d5e7e4a22bdaff6083c69bb695b1d28ea9536a657c715b.png delete mode 100644 examples/thumbnails/4e3a5e012e7e8141bfb659fe968779e05229c15fdf2b645c45d812cc4580e1c8.png delete mode 100644 examples/thumbnails/4f1852b8f3a0faa7a98b070af6963d0b0e0cc52312dd68d9734eebc9e0041585.png delete mode 100644 examples/thumbnails/4fd510a54ffab70d70810fef2767b771be236f57fe07d73bdd0ea5f498cb8399.png delete mode 100644 examples/thumbnails/5f7985d4f32c100639fbbb747027044c3e0eae599c78bedfb5dbd5dc6d880df5.png delete mode 100644 examples/thumbnails/6413d2544cfac75a09fae7aa95afe17ece1f4120096191e529fab39d0f3e5e75.png delete mode 100644 examples/thumbnails/6456bf2b233b408bdf4fedc0d0fbd4175df794e9bf1f0ba20c36f5a81039ad55.png delete mode 100644 examples/thumbnails/666403951e442aba398d3485f0c13c823f6b1cff2469babd0f6d0e24b38fa2cb.png delete mode 100644 examples/thumbnails/6e4a2016992ae345b2c01cb8dee1fd22f5e3bd61e24870b1f7d14ab6bd42ba72.png delete mode 100644 examples/thumbnails/72b380787085a0477ff61f24458b68e18836794bcbd2b047426e01fa6c9d2a7d.png delete mode 100644 examples/thumbnails/769fe02fbbd8c05b62bbe9b23de6f712088637699bf4e73b67b10de045151de0.png delete mode 100644 examples/thumbnails/76bcf8ea14cb899ead2eb77adc4f4654542441355028a02189be639232f1bc7d.png delete mode 100644 examples/thumbnails/786cc9458faf5b2b0d0f5044570e8e6578e56709e5c903166a29bb5b552a7184.png delete mode 100644 examples/thumbnails/8083c2b46de87054e7617f83dfce39cf3375507f8524b2e05aa38a46610ee507.png delete mode 100644 examples/thumbnails/81e9adda1bc6902ed4da55bd7be0b9ac4b34650ad089a0153a7fcc4e3d695bfe.png delete mode 100644 examples/thumbnails/8e1fb1c7afd038d0e2b284b2ca0c1473f20fabaf189718257e3919f66ab7c87e.png delete mode 100644 examples/thumbnails/948bcd9d1620e90501f90b76c52595034840c9155be8eed0fa8633daa690f922.png delete mode 100644 examples/thumbnails/99d82a833d8c0606c6ef7a04046062bad7ffb30dc33f8df715e17875619b926c.png delete mode 100644 examples/thumbnails/a0324c238323686f12c0dc8229405aa20d0ba13cbb2ca60ee86876afa55a7b7f.png delete mode 100644 examples/thumbnails/a5f9d2b64c37e3e86d83f30bbe754a0696189376b1e4a8a630510349b75b1efa.png delete mode 100644 examples/thumbnails/a7770b255dbd750beb448a8305eb0bdb81c4c8448dceac28a969f8b3b13fd583.png delete mode 100644 examples/thumbnails/a813e20bf59fe573f2861c0b2f6da40c90a49d6f6b78cc8e0b68d8521bde5aec.png delete mode 100644 examples/thumbnails/ab1318d2099292643d6ba8500f0a80c7a0c7ceeb881b0ffbc3d960cd11d60a18.png delete mode 100644 examples/thumbnails/abb9bc1671e8f48332041f97fb6af7d7bfff1904e0d558a3d316e6b6be1e670c.png delete mode 100644 examples/thumbnails/acdf282337303f5369d82023eb06899573a272b95bee522d1023bedbed9d1f5e.png delete mode 100644 examples/thumbnails/ad355c1587dec88eda1651bd1d4af6e73f9bfb00f4a32015669906eb66f78494.png delete mode 100644 examples/thumbnails/aee898c2d3eb2076225df6c797d2ed075976095c7e570fda91f3c8ba2899e588.png delete mode 100644 examples/thumbnails/be625b0494b04a0c79ef5f60651a48de763226e059b6cca975d574c6946581c5.png delete mode 100644 examples/thumbnails/c3918052b7e5925e2eb66c50277e262b49b2ef9042a5b9ad42c6d2e0cf6e3ca7.png delete mode 100644 examples/thumbnails/c57c6ee9d730fa018ce7592038df08126e9dac5a3538c02b39cf67c6f623ce55.png delete mode 100644 examples/thumbnails/c5e9205c4b69d36781d3d0e6031f0caa13939788892b3cd53bda329d5f3ca805.png delete mode 100644 examples/thumbnails/d15c3bd39e5ff42c2decc1d916b95a9500b4f468c89bd5f262bb5361da108860.png delete mode 100644 examples/thumbnails/d24b2416886bce5be8071a92d4ac019b474e3264dd401a45ec128f58b915fdeb.png delete mode 100644 examples/thumbnails/dba8e20f8e75e8abd660d0c176c993db20a26d231dffe77079c1b975c8ba055d.png delete mode 100644 examples/thumbnails/eaaa2cb1a04b89c324269565182fbd198ecc29fc5297985d67f2462b1ef02f72.png delete mode 100644 examples/thumbnails/ec464417eff03387ad54cacb4cb555812164b9a4627e703868bd56f68af83103.png delete mode 100644 examples/thumbnails/eddd5e815c5cafce058ff9c941abe9c177d5a7db7b044d4bec602307ed33cfd2.png delete mode 100644 examples/thumbnails/f15e35bd72f13419ff80079a90d6c599ef394f3c07d20a2e517b4662b1708e3b.png delete mode 100644 examples/thumbnails/f3cfd794065006254e0132673add3478d757a01f95d5a5eb1ae4962ee1089e87.png delete mode 100644 examples/thumbnails/f482744abcc1d4fdf6b76b647434cb72bec5254992f1e19fd4f18d9a56d680e2.png delete mode 100644 examples/thumbnails/f498a37a3ea66927d186994953816b97289b52dcddecc7a3c8936b9f86df5c17.png delete mode 100644 examples/thumbnails/f97a1c623473886ecae96304f16792fff5c2655f21d9cee659a89f67b7215f7e.png delete mode 100644 examples/thumbnails/ff0945a6e1f00a1b437809c78049ebad36fa62b4550eb4a935661c6df1e4b834.png rename lib/{network/img => assets}/acceptDeleteIcon.png (100%) rename lib/{network/img => assets}/addNodeIcon.png (100%) rename lib/{network/img => assets}/backIcon.png (100%) rename lib/{network/img => assets}/connectIcon.png (100%) rename lib/{network/img => assets}/cross.png (100%) rename lib/{network/img => assets}/cross2.png (100%) rename lib/{network/img => assets}/deleteIcon.png (100%) rename lib/{network/img => assets}/downArrow.png (100%) rename lib/{network/img => assets}/editIcon.png (100%) rename lib/{network/img => assets}/leftArrow.png (100%) rename lib/{network/img => assets}/minus.png (100%) rename lib/{network/img => assets}/plus.png (100%) rename lib/{network/img => assets}/rightArrow.png (100%) rename lib/{network/img => assets}/upArrow.png (100%) rename lib/{network/img => assets}/zoomExtends.png (100%) delete mode 100644 lib/index-bundle.ts create mode 100644 lib/index-legacy-bundle.ts create mode 100644 lib/index-legacy.ts create mode 100644 lib/index-peer.ts create mode 100644 lib/index-standalone.ts delete mode 100644 lib/index.ts create mode 100644 rollup.build.js create mode 100644 styles/vis-network.css create mode 100644 styles/vis-network.css.map create mode 100644 styles/vis-network.min.css create mode 100644 styles/vis-network.min.css.map create mode 100644 tsconfig.declarations.json create mode 100644 types/network/Images.d.ts create mode 100644 types/network/dotparser.d.ts create mode 100644 types/network/options.d.ts diff --git a/.babelrc b/.babelrc index a78771c4bb..f77f4dcb12 100644 --- a/.babelrc +++ b/.babelrc @@ -3,7 +3,9 @@ [ "@babel/preset-env", { - "targets": "> 0.1% or not dead" + "targets": "> 0.1% or not dead", + "useBuiltIns": "usage", + "corejs": 3 } ], "@babel/preset-typescript" @@ -11,8 +13,7 @@ "plugins": [ "css-modules-transform", "@babel/proposal-class-properties", - "@babel/proposal-object-rest-spread", - "@babel/plugin-transform-runtime" + "@babel/proposal-object-rest-spread" ], "env": { "test": { diff --git a/.eslintrc.js b/.eslintrc.js index e4b33ffb8e..2c177ad783 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -103,8 +103,6 @@ module.exports = { }, { files: [ - "lib/index-bundle.ts", - "lib/index.ts", "lib/network/gephiParser.ts", "test/NodesHandler.test.ts", "test/dot-parser/dot-parser.test.ts", diff --git a/.gitignore b/.gitignore index 88ee4168c6..dc9f43a575 100644 --- a/.gitignore +++ b/.gitignore @@ -17,5 +17,12 @@ gen/ .nyc_output/ coverage/ .rpt2_cache -vis-network-*.tgz + +# built files +/declarations/ /dist/ +/examples/index.html +/examples/thumbnails/ +/peer/ +/standalone/ +vis-network-*.tgz diff --git a/README.md b/README.md index e6ef87648d..c76a81929f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Install via npm: ## Example -A basic example on loading a Timeline is shown below. More examples can be +A basic example on loading a Network is shown below. More examples can be found in the [examples directory](https://github.com/visjs/vis-network/tree/master/examples/) of the project. @@ -27,8 +27,7 @@ of the project. Network - - + - - -
-
-

Vis Network

-
-
- Basic usage
- -
- -
-
-
-
- Basic usage
-
-
-

Data

-
-
- Custom Scaling
- -
- -
-
-
-
- Custom Scaling
- DataSet
- -
- -
-
-
-
- DataSet
- DOT edge styles
- -
- -
-
-
-
- DOT edge styles
- DOT Language
- -
- -
-
-
-
- DOT Language
- DOT language playground
- -
- -
-
-
-
- DOT language playground
- Dynamic Data
- -
- -
-
-
-
- Dynamic Data
- Dynamic filtering
- -
- -
-
-
-
- Dynamic filtering
- Importing from Gephi (JSON)
- -
- -
-
-
-
- Importing from Gephi (JSON)
- Scaling Labels
- -
- -
-
-
-
- Scaling Labels
- Scaling Nodes and Edges
- -
- -
-
-
-
- Scaling Nodes and Edges
-
-
-
-

Edge Styles

-
-
- Arrow Alignment
- -
- -
-
-
-
- Arrow Alignment
- Arrow Types
- -
- -
-
-
-
- Arrow Types
- Arrows
- -
- -
-
-
-
- Arrows
- Colors
- -
- -
-
-
-
- Colors
- Dashes
- -
- -
-
-
-
- Dashes
- Edge background
- -
- -
-
-
-
- Edge background
- Static smooth curves
- -
- -
-
-
-
- Static smooth curves
-
- Static smooth curves - World Cup Network
-
-
-
-

Events

-
-
- Interaction events
- -
- -
-
-
-
- Interaction events
- Physics Events
- -
- -
-
-
-
- Physics Events
- Rendering Events
- -
- -
-
-
-
- Rendering Events
-
-
-
-

Example Applications

-
-
- Disassembler
- -
- -
-
-
-
- Disassembler
- Les miserables
- -
- -
-
-
-
- Les miserables
- Loading Bar
- -
- -
-
-
-
- Loading Bar
- Neighbourhood Highlighting
- -
- -
-
-
-
- Neighbourhood Highlighting
- Node Legend
- -
- -
-
-
-
- Node Legend
- World Cup Network
- -
- -
-
-
-
- World Cup Network
-
-
-
-

Labels

-
-
- Label Alignment
- -
- -
-
-
-
- Label Alignment
- Label Background
- -
- -
-
-
-
- Label Background
- Label Color and Size
- -
- -
-
-
-
- Label Color and Size
- Label Margins
- -
- -
-
-
-
- Label Margins
- Label stroke
- -
- -
-
-
-
- Label stroke
- Multifont Labels
- -
- -
-
-
-
- Multifont Labels
- Multiline text
- -
- -
-
-
-
- Multiline text
-
-
-
-

Layouts

-
-
- Dynamic Hierarchical Layout Changes
- -
- -
-
-
-
- Dynamic Hierarchical Layout Changes
- Hierarchical Layout
- -
- -
-
-
-
- Hierarchical Layout
- Hierarchical Layout Difference
- -
- -
-
-
-
- Hierarchical Layout Difference
- Hierarchical Layout without Physics
- -
- -
-
-
-
- Hierarchical Layout without Physics
- Setting the Random Seed
- -
- -
-
-
-
- Setting the Random Seed
- User Defined Hierarchical Layout (Big)
- -
- -
-
-
-
- User Defined Hierarchical Layout (Big)
-
- User Defined Hierarchical Layout (Configurable)
-
-
-
-

Manipulation

-
-
- Edit Edge Without Drag
- -
- -
-
-
-
- Edit Edge Without Drag
- Manipulation with Localization
- -
- -
-
-
-
- Manipulation with Localization
-
-
-
-

Migrating from 5.4.1 to 6.0.0

-
-
- Edit Edge Without Drag
- -
- -
-
-
-
- Edit Edge Without Drag
-
-
-
-

Node Styles

-
-
- Circular Images
- -
- -
-
-
-
- Circular Images
- Colors
- -
- -
-
-
-
- Colors
- Custom Groups
- -
- -
-
-
-
- Custom Groups
- Groups
- -
- -
-
-
-
- Groups
- HTML in Nodes
- -
- -
-
-
-
- HTML in Nodes
- Icons
- -
- -
-
-
-
- Icons
- Images
- -
- -
-
-
-
- Images
- Images with Borders
- -
- -
-
-
-
- Images with Borders
- Images with Borders and Image Padding
- -
- -
-
-
-
- Images with Borders and Image Padding
- Label Width and Height Settings
- -
- -
-
-
-
- Label Width and Height Settings
- Overriding Group Styles
- -
- -
-
-
-
- Overriding Group Styles
- Selected/Unselected Image
- -
- -
-
-
-
- Selected/Unselected Image
- Shadows
- -
- -
-
-
-
- Shadows
- Shapes
- -
- -
-
-
-
- Shapes
- Shapes with Dashed Borders
- -
- -
-
-
-
- Shapes with Dashed Borders
-
-
-
-

Other

-
-
- Animations
- -
- -
-
-
-
- Animations
- Changing Clustered Edges and Nodes
- -
- -
-
-
-
- Changing Clustered Edges and Nodes
- Chosen Elements
- -
- -
-
-
-
- Chosen Elements
- Clustering
- -
- -
-
-
-
- Clustering
- Clustering by Zoom Level
- -
- -
-
-
-
- Clustering by Zoom Level
- Clustering Clusters
- -
- -
-
-
-
- Clustering Clusters
- Cursor Change
- -
- -
-
-
-
- Cursor Change
- Navigation
- -
- -
-
-
-
- Navigation
- On Load Animation
- -
- -
-
-
-
- On Load Animation
- Performance
- -
- -
-
-
-
- Performance
- Playing with Physics
- -
- -
-
-
-
- Playing with Physics
- Saving and Loading Networks
- -
- -
-
-
-
- Saving and Loading Networks
-
-
-
-

Physics

-
-
- Playing with Physics
- -
- -
-
-
-
- Playing with Physics
-
-
-
-

Tests

-
-
- Hidden Edge Test
- -
- -
-
-
-
- Hidden Edge Test
-
-
-
-
- - diff --git a/examples/network/basicUsage.html b/examples/network/basicUsage.html index c06c072ff0..44c0d6a9b0 100644 --- a/examples/network/basicUsage.html +++ b/examples/network/basicUsage.html @@ -3,8 +3,7 @@ Vis Network | Basic usage - - + + + + + + + +
+
+

Vis Network

+

Basic Usage

+

Legacy Build

+
+ +

+ Create a simple network with some nodes and edges. +

+ +

+ This is kept only for backwards compatibility as this build is broken. + It doesn't play well with tree shaking, doesn't work with other Vis + family packages and atop of that contains bloatware that is not used by + Vis Network at all. +

+ +

When to use

+

+ Please don't use this. Use the + standalone build + instead. +

+ +

Content

+ + +

How to use

+ +
Browser UMD
+

+<script type="text/javascript" src="https://unpkg.com/vis-network/dist/vis-network.min.js"></script>
+<link rel="stylesheet" type="text/css" href="https://unpkg.com/vis-network/dist/vis-network.min.css" />
+<!--
+  Including other packages like Vis Timeline or Vis Graph3D here won't work.
+  You need the peer build to do that.
+-->
+
+<script type="text/javascript">
+  // create an array with nodes
+  var nodes = new vis.DataSet([
+    { id: 1, label: "Node 1" },
+    { id: 2, label: "Node 2" },
+    { id: 3, label: "Node 3" },
+    { id: 4, label: "Node 4" },
+    { id: 5, label: "Node 5" }
+  ]);
+
+  // create an array with edges
+  var edges = new vis.DataSet([
+    { from: 1, to: 3 },
+    { from: 1, to: 2 },
+    { from: 2, to: 4 },
+    { from: 2, to: 5 },
+    { from: 3, to: 3 }
+  ]);
+
+  // create a network
+  var container = document.getElementById("mynetwork");
+  var data = {
+    nodes: nodes,
+    edges: edges
+  };
+  var options = {};
+  var network = new vis.Network(container, data, options);
+</script>
+      
+ +
Bundled ESM
+

+import { DataSet, Network } from "vis-network";
+import "vis-network/styles/vis-network.css";
+
+// create an array with nodes
+const nodes = new DataSet([
+  { id: 1, label: "Node 1" },
+  { id: 2, label: "Node 2" },
+  { id: 3, label: "Node 3" },
+  { id: 4, label: "Node 4" },
+  { id: 5, label: "Node 5" }
+]);
+
+// create an array with edges
+const edges = new DataSet([
+  { from: 1, to: 3 },
+  { from: 1, to: 2 },
+  { from: 2, to: 4 },
+  { from: 2, to: 5 },
+  { from: 3, to: 3 }
+]);
+
+// create a network
+const container = document.getElementById("mynetwork");
+const data = {
+  nodes: nodes,
+  edges: edges
+};
+const options = {};
+const network = new Network(container, data, options);
+      
+
+ +
+ + + diff --git a/examples/network/basic_usage/peer.html b/examples/network/basic_usage/peer.html new file mode 100644 index 0000000000..1a5d45b994 --- /dev/null +++ b/examples/network/basic_usage/peer.html @@ -0,0 +1,201 @@ + + + + + + Network | Basic Usage | Peer Build + + + + + + + + + + + +
+
+

Vis Network

+

Basic Usage

+

Peer Build

+
+ +

+ Create a simple network with some nodes and edges. +

+ +

+ Peer build is designed to work well with other packages from the Vis + family. Compared to the standalone or legacy builds it doesn't include + dependencies which allows the same DataSet (and other dependencies) to + be used in Network and other packages (e.g. Timeline). In UMD version + this build doesn't suffer from the bug where exported members from + different packages get overwritten rendering some functionality + unusable. +

+ +

When to use

+

+ When you need multiple packages from the Vis family on the same page or + finer control over what gets loaded. +

+ +

Content

+ + +

How to use

+ +
Browser UMD
+

+<script type="text/javascript" src="https://unpkg.com/vis-util/peer/umd/vis-util.min.js"></script>
+<script type="text/javascript" src="https://unpkg.com/vis-data/peer/umd/vis-data.min.js"></script>
+<script type="text/javascript" src="https://unpkg.com/vis-network/peer/umd/vis-network.min.js"></script>
+<link rel="stylesheet" type="text/css" href="https://unpkg.com/vis-network/styles/vis-network.min.css" />
+<!-- You may include other packages like Vis Timeline or Vis Graph3D here. -->
+
+<script type="text/javascript">
+  // create an array with nodes
+  var nodes = new vis.DataSet([
+    { id: 1, label: "Node 1" },
+    { id: 2, label: "Node 2" },
+    { id: 3, label: "Node 3" },
+    { id: 4, label: "Node 4" },
+    { id: 5, label: "Node 5" }
+  ]);
+
+  // create an array with edges
+  var edges = new vis.DataSet([
+    { from: 1, to: 3 },
+    { from: 1, to: 2 },
+    { from: 2, to: 4 },
+    { from: 2, to: 5 },
+    { from: 3, to: 3 }
+  ]);
+
+  // create a network
+  var container = document.getElementById("mynetwork");
+  var data = {
+    nodes: nodes,
+    edges: edges
+  };
+  var options = {};
+  var network = new vis.Network(container, data, options);
+</script>
+      
+ +
Bundled ESM
+

+import { DataSet } from "vis-data/peer/esm/vis-data";
+import { Network } from "vis-network/peer/esm/vis-network";
+import "vis-network/styles/vis-network.css";
+
+// create an array with nodes
+const nodes = new DataSet([
+  { id: 1, label: "Node 1" },
+  { id: 2, label: "Node 2" },
+  { id: 3, label: "Node 3" },
+  { id: 4, label: "Node 4" },
+  { id: 5, label: "Node 5" }
+]);
+
+// create an array with edges
+const edges = new DataSet([
+  { from: 1, to: 3 },
+  { from: 1, to: 2 },
+  { from: 2, to: 4 },
+  { from: 2, to: 5 },
+  { from: 3, to: 3 }
+]);
+
+// create a network
+const container = document.getElementById("mynetwork");
+const data = {
+  nodes: nodes,
+  edges: edges
+};
+const options = {};
+const network = new Network(container, data, options);
+      
+
+ +
+ + + diff --git a/examples/network/basic_usage/standalone.html b/examples/network/basic_usage/standalone.html new file mode 100644 index 0000000000..36ffed12c1 --- /dev/null +++ b/examples/network/basic_usage/standalone.html @@ -0,0 +1,205 @@ + + + + + + Network | Basic Usage | Standalone Build + + + + + + + + +
+
+

Vis Network

+

Basic Usage

+

Standalone Build

+
+ +

+ Create a simple network with some nodes and edges. +

+ +

+ Standalone build doesn't work with other packages from the Vis family + because it bundles all dependencies. This leads to situation where + DataSets (and other dependencies) from one package (e.g. Timeline) don't + work in Network because Network expects it's own bundled DataSets to be + used. It is inteded as a convenience build for cases where multiple + packages are not necessary but ease of use is (like JSFiddle MEWs or + examples). This build is available in ESM and UMD versions each of them + has minified and unminified variant. +

+ +

When to use

+

+ When you don't need only Network (no Timeline, Graph3D etc.) and don't + want to deal with dependencies and styles (everything is bundled in this + build ready to use). +

+ +

Content

+ + +

How to use

+ +
Browser UMD
+

+<script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
+<!--
+  Including other packages like Vis Timeline or Vis Graph3D here won't work.
+  You need the peer build to do that.
+-->
+
+<script type="text/javascript">
+  // create an array with nodes
+  var nodes = new vis.DataSet([
+    { id: 1, label: "Node 1" },
+    { id: 2, label: "Node 2" },
+    { id: 3, label: "Node 3" },
+    { id: 4, label: "Node 4" },
+    { id: 5, label: "Node 5" }
+  ]);
+
+  // create an array with edges
+  var edges = new vis.DataSet([
+    { from: 1, to: 3 },
+    { from: 1, to: 2 },
+    { from: 2, to: 4 },
+    { from: 2, to: 5 },
+    { from: 3, to: 3 }
+  ]);
+
+  // create a network
+  var container = document.getElementById("mynetwork");
+  var data = {
+    nodes: nodes,
+    edges: edges
+  };
+  var options = {};
+  var network = new vis.Network(container, data, options);
+</script>
+      
+ +
Bundled ESM
+

+import { DataSet, Network } from "vis-network/standalone/esm/vis-network";
+// CSS will be automatically injected into the page.
+
+// create an array with nodes
+const nodes = new DataSet([
+  { id: 1, label: "Node 1" },
+  { id: 2, label: "Node 2" },
+  { id: 3, label: "Node 3" },
+  { id: 4, label: "Node 4" },
+  { id: 5, label: "Node 5" }
+]);
+
+// create an array with edges
+const edges = new DataSet([
+  { from: 1, to: 3 },
+  { from: 1, to: 2 },
+  { from: 2, to: 4 },
+  { from: 2, to: 5 },
+  { from: 3, to: 3 }
+]);
+
+// create a network
+const container = document.getElementById("mynetwork");
+const data = {
+  nodes: nodes,
+  edges: edges
+};
+const options = {};
+const network = new Network(container, data, options);
+      
+
+ +
+ + + diff --git a/examples/network/data/datasets.html b/examples/network/data/datasets.html index 565528f9db..3038d372ea 100644 --- a/examples/network/data/datasets.html +++ b/examples/network/data/datasets.html @@ -3,8 +3,7 @@ Vis Network | Data | Dynamic Data - - + - - + - + + + - - + - + - + - + diff --git a/examples/network/edgeStyles/arrowTypes.html b/examples/network/edgeStyles/arrowTypes.html index 3a6ddeb1d0..0c6177ceb0 100644 --- a/examples/network/edgeStyles/arrowTypes.html +++ b/examples/network/edgeStyles/arrowTypes.html @@ -3,8 +3,7 @@ Vis Network | Edge Styles | Arrow Types - - + - - + diff --git a/examples/network/exampleApplications/lesMiserables.html b/examples/network/exampleApplications/lesMiserables.html index 7decb4a85f..39a151084e 100644 --- a/examples/network/exampleApplications/lesMiserables.html +++ b/examples/network/exampleApplications/lesMiserables.html @@ -11,8 +11,7 @@ } - - + - + - + diff --git a/examples/network/exampleApplications/nodeLegend.html b/examples/network/exampleApplications/nodeLegend.html index 0815ce7805..f1e8445f84 100644 --- a/examples/network/exampleApplications/nodeLegend.html +++ b/examples/network/exampleApplications/nodeLegend.html @@ -18,8 +18,7 @@ } - - + - + diff --git a/examples/network/imageSelected/imageSelected.html b/examples/network/imageSelected/imageSelected.html index e7ad36cc81..78cbc4a7d8 100644 --- a/examples/network/imageSelected/imageSelected.html +++ b/examples/network/imageSelected/imageSelected.html @@ -2,8 +2,7 @@ Vis Network | Node Styles | Selected/Unselected Image - - + - diff --git a/examples/network/labels/labelMargins.html b/examples/network/labels/labelMargins.html index c2a7e2f211..6b24e138f4 100644 --- a/examples/network/labels/labelMargins.html +++ b/examples/network/labels/labelMargins.html @@ -3,8 +3,7 @@ Vis Network | Labels | Label Margins - - + - diff --git a/examples/network/labels/multilineText.html b/examples/network/labels/multilineText.html index 010cb48b13..a99e905676 100644 --- a/examples/network/labels/multilineText.html +++ b/examples/network/labels/multilineText.html @@ -11,8 +11,7 @@ } - - + - - - + - + - + - - + + + + - + - - + - + - + - - + - - diff --git a/examples/network/nodeStyles/groups.html b/examples/network/nodeStyles/groups.html index 71bdcb2a45..93a602405f 100644 --- a/examples/network/nodeStyles/groups.html +++ b/examples/network/nodeStyles/groups.html @@ -18,10 +18,7 @@ } - - - - + diff --git a/examples/network/nodeStyles/icons.html b/examples/network/nodeStyles/icons.html index 9ce4e3655e..d198f5d713 100644 --- a/examples/network/nodeStyles/icons.html +++ b/examples/network/nodeStyles/icons.html @@ -7,8 +7,7 @@ - - + diff --git a/examples/network/nodeStyles/images.html b/examples/network/nodeStyles/images.html index e1f8c24575..6b97b05a5d 100644 --- a/examples/network/nodeStyles/images.html +++ b/examples/network/nodeStyles/images.html @@ -11,8 +11,7 @@ } - - + - + - + - + diff --git a/examples/network/nodeStyles/shadows.html b/examples/network/nodeStyles/shadows.html index 16373d151b..1cf564dbc4 100644 --- a/examples/network/nodeStyles/shadows.html +++ b/examples/network/nodeStyles/shadows.html @@ -18,10 +18,7 @@ } - - - - + diff --git a/examples/network/nodeStyles/shapes.html b/examples/network/nodeStyles/shapes.html index d462d5f78f..7dfd92fbea 100644 --- a/examples/network/nodeStyles/shapes.html +++ b/examples/network/nodeStyles/shapes.html @@ -11,8 +11,7 @@ } - - + - + - + - - + - + - - + - - + - - + - + + + - - + - - - - + diff --git a/examples/network/physics/physicsConfiguration.html b/examples/network/physics/physicsConfiguration.html index 70873f6f28..d8e3a950fa 100644 --- a/examples/network/physics/physicsConfiguration.html +++ b/examples/network/physics/physicsConfiguration.html @@ -23,8 +23,7 @@ - - + - + + +