@dxos/plugin-explorer 0.6.9 → 0.6.10-main.bbdfaa4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{ExplorerArticle-IPAJQMAX.mjs → ExplorerArticle-2LF7QANN.mjs} +2 -2
- package/dist/lib/browser/{ExplorerMain-3KFXOEYO.mjs → ExplorerMain-K6Z6UVZR.mjs} +2 -2
- package/dist/lib/browser/{chunk-7YEM64IQ.mjs → chunk-XKITKIPQ.mjs} +9 -8
- package/dist/lib/browser/chunk-XKITKIPQ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +5 -37862
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/{ExplorerArticle-PYOGBY3Z.cjs → ExplorerArticle-PQEEN244.cjs} +6 -6
- package/dist/lib/node/{ExplorerMain-HGCLO5O4.cjs → ExplorerMain-IGUMYIAN.cjs} +6 -6
- package/dist/lib/node/{chunk-2GOPBQBC.cjs → chunk-K4PB5A4K.cjs} +9 -8
- package/dist/lib/node/chunk-K4PB5A4K.cjs.map +7 -0
- package/dist/lib/node/index.cjs +9 -37862
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/types/src/components/Chart/Chart.stories.d.ts +1 -1
- package/dist/types/src/components/Chart/Chart.stories.d.ts.map +1 -1
- package/dist/types/src/components/Globe/Globe.stories.d.ts +1 -1
- package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
- package/dist/types/src/components/Graph/Graph.d.ts +1 -0
- package/dist/types/src/components/Graph/Graph.d.ts.map +1 -1
- package/dist/types/src/components/Graph/Graph.stories.d.ts +1 -1
- package/dist/types/src/components/Graph/Graph.stories.d.ts.map +1 -1
- package/dist/types/src/components/Tree/Tree.stories.d.ts +1 -1
- package/dist/types/src/components/Tree/Tree.stories.d.ts.map +1 -1
- package/package.json +28 -23
- package/src/components/Chart/Chart.stories.tsx +9 -15
- package/src/components/Globe/Globe.stories.tsx +14 -38
- package/src/components/Globe/Globe.tsx +3 -3
- package/src/components/Graph/Graph.stories.tsx +1 -1
- package/src/components/Graph/Graph.tsx +13 -13
- package/src/components/Tree/Tree.stories.tsx +1 -1
- package/src/components/Tree/Tree.tsx +3 -3
- package/dist/lib/browser/chunk-7YEM64IQ.mjs.map +0 -7
- package/dist/lib/node/chunk-2GOPBQBC.cjs.map +0 -7
- /package/dist/lib/browser/{ExplorerArticle-IPAJQMAX.mjs.map → ExplorerArticle-2LF7QANN.mjs.map} +0 -0
- /package/dist/lib/browser/{ExplorerMain-3KFXOEYO.mjs.map → ExplorerMain-K6Z6UVZR.mjs.map} +0 -0
- /package/dist/lib/node/{ExplorerArticle-PYOGBY3Z.cjs.map → ExplorerArticle-PQEEN244.cjs.map} +0 -0
- /package/dist/lib/node/{ExplorerMain-HGCLO5O4.cjs.map → ExplorerMain-IGUMYIAN.cjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytes":1465,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytes":4935,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytes":527,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/public/countries-110m.json?json":{"bytes":421483,"imports":[]},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytes":7502,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/public/countries-110m.json?json","kind":"import-statement","original":"../../../public/countries-110m.json?json"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytes":527,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytes":15323,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17760,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytes":8819,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytes":9322,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts":{"bytes":1156,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytes":3749,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytes":10029,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"../Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytes":525,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytes":16586,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"../Tree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytes":630,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/ExplorerMain.tsx":{"bytes":3322,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/ExplorerArticle.tsx":{"bytes":2443,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytes":1576,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerMain.tsx","kind":"dynamic-import","original":"./ExplorerMain"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerArticle.tsx","kind":"dynamic-import","original":"./ExplorerArticle"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/meta.tsx":{"bytes":2012,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytes":1473,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/meta.tsx","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/view.ts":{"bytes":1394,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/types.ts":{"bytes":1762,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/meta.tsx","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/index.ts":{"bytes":596,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/types/view.ts","kind":"import-statement","original":"./view"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx":{"bytes":15313,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.tsx","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/index.ts":{"bytes":1004,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/experimental/plugin-explorer/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":857974},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-JIDPF2GF.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-7YEM64IQ.mjs","kind":"import-statement"},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerMain-3KFXOEYO.mjs","kind":"dynamic-import"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerArticle-IPAJQMAX.mjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerArticle","ExplorerMain","ExplorerPlugin","Globe","Graph","SpaceGraphModel","Tree","default","defaultTreeLayoutSlots"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/index.ts","inputs":{"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx":{"bytesInOutput":3977},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytesInOutput":188},"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytesInOutput":1031},"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytesInOutput":133},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytesInOutput":1707},"packages/plugins/experimental/plugin-explorer/public/countries-110m.json?json":{"bytesInOutput":420420},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytesInOutput":271},"packages/plugins/experimental/plugin-explorer/src/index.ts":{"bytesInOutput":34}},"bytes":429116},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/meta.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs","kind":"import-statement"}],"exports":["EXPLORER_PLUGIN","default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/meta.tsx","inputs":{},"bytes":165},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/types/index.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-JIDPF2GF.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs","kind":"import-statement"}],"exports":["ExplorerAction","ViewType"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","inputs":{},"bytes":178},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-JIDPF2GF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1523},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-JIDPF2GF.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["ExplorerAction","ViewType"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/types/view.ts":{"bytesInOutput":208},"packages/plugins/experimental/plugin-explorer/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/types/types.ts":{"bytesInOutput":232}},"bytes":721},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":983},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs":{"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["EXPLORER_PLUGIN","meta_default"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/meta.tsx":{"bytesInOutput":448}},"bytes":601},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerMain-3KFXOEYO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1722},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerMain-3KFXOEYO.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-7YEM64IQ.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerMain.tsx","inputs":{"packages/plugins/experimental/plugin-explorer/src/components/ExplorerMain.tsx":{"bytesInOutput":757}},"bytes":984},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerArticle-IPAJQMAX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1213},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerArticle-IPAJQMAX.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-7YEM64IQ.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerArticle.tsx","inputs":{"packages/plugins/experimental/plugin-explorer/src/components/ExplorerArticle.tsx":{"bytesInOutput":522}},"bytes":758},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-7YEM64IQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":40511},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-7YEM64IQ.mjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["Graph","SpaceGraphModel","Tree","defaultTreeLayoutSlots"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytesInOutput":3490},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2106},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2144},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1324},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1553},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytesInOutput":699},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytesInOutput":4022},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":16144}}}
|
|
1
|
+
{"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytes":1465,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytes":4935,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytes":527,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytes":7555,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"#data_countries-110m.json","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytes":527,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytes":15323,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17760,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytes":8819,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytes":9322,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts":{"bytes":1156,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytes":3749,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytes":9943,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"../Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytes":525,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytes":16574,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/gem-spore/styles","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"../Tree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytes":630,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/ExplorerMain.tsx":{"bytes":3322,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/ExplorerArticle.tsx":{"bytes":2443,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytes":1576,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerMain.tsx","kind":"dynamic-import","original":"./ExplorerMain"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerArticle.tsx","kind":"dynamic-import","original":"./ExplorerArticle"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/meta.tsx":{"bytes":2012,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytes":1473,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/meta.tsx","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/view.ts":{"bytes":1394,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/types.ts":{"bytes":1762,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/meta.tsx","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/index.ts":{"bytes":596,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/types/view.ts","kind":"import-statement","original":"./view"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx":{"bytes":15313,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.tsx","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/index.ts":{"bytes":1004,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/experimental/plugin-explorer/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15070},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-JIDPF2GF.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-XKITKIPQ.mjs","kind":"import-statement"},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"#data_countries-110m.json","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerMain-K6Z6UVZR.mjs","kind":"dynamic-import"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerArticle-2LF7QANN.mjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerArticle","ExplorerMain","ExplorerPlugin","Globe","Graph","SpaceGraphModel","Tree","default","defaultTreeLayoutSlots"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/index.ts","inputs":{"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx":{"bytesInOutput":3977},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytesInOutput":188},"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytesInOutput":1031},"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytesInOutput":133},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytesInOutput":1744},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytesInOutput":271},"packages/plugins/experimental/plugin-explorer/src/index.ts":{"bytesInOutput":34}},"bytes":8570},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/meta.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs","kind":"import-statement"}],"exports":["EXPLORER_PLUGIN","default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/meta.tsx","inputs":{},"bytes":165},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/types/index.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-JIDPF2GF.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs","kind":"import-statement"}],"exports":["ExplorerAction","ViewType"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","inputs":{},"bytes":178},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-JIDPF2GF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1523},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-JIDPF2GF.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["ExplorerAction","ViewType"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/types/view.ts":{"bytesInOutput":208},"packages/plugins/experimental/plugin-explorer/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/types/types.ts":{"bytesInOutput":232}},"bytes":721},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":983},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-TL6ADY3P.mjs":{"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["EXPLORER_PLUGIN","meta_default"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/meta.tsx":{"bytesInOutput":448}},"bytes":601},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerMain-K6Z6UVZR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1722},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerMain-K6Z6UVZR.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-XKITKIPQ.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerMain.tsx","inputs":{"packages/plugins/experimental/plugin-explorer/src/components/ExplorerMain.tsx":{"bytesInOutput":757}},"bytes":984},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerArticle-2LF7QANN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1213},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/ExplorerArticle-2LF7QANN.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-XKITKIPQ.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerArticle.tsx","inputs":{"packages/plugins/experimental/plugin-explorer/src/components/ExplorerArticle.tsx":{"bytesInOutput":522}},"bytes":758},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-XKITKIPQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":40431},"packages/plugins/experimental/plugin-explorer/dist/lib/browser/chunk-XKITKIPQ.mjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/gem-spore/styles","kind":"import-statement","external":true}],"exports":["Graph","SpaceGraphModel","Tree","defaultTreeLayoutSlots"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytesInOutput":3490},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2073},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2144},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1324},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1553},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytesInOutput":699},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytesInOutput":4022},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":16111}}}
|
|
@@ -26,12 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var ExplorerArticle_PQEEN244_exports = {};
|
|
30
|
+
__export(ExplorerArticle_PQEEN244_exports, {
|
|
31
31
|
default: () => ExplorerArticle_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(ExplorerArticle_PQEEN244_exports);
|
|
34
|
+
var import_chunk_K4PB5A4K = require("./chunk-K4PB5A4K.cjs");
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_plugin_search = require("@dxos/plugin-search");
|
|
37
37
|
var import_echo = require("@dxos/react-client/echo");
|
|
@@ -44,10 +44,10 @@ var ExplorerArticle = ({ view }) => {
|
|
|
44
44
|
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
45
45
|
role: "none",
|
|
46
46
|
className: "row-span-2 overflow-auto"
|
|
47
|
-
}, /* @__PURE__ */ import_react.default.createElement(
|
|
47
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_chunk_K4PB5A4K.Graph, {
|
|
48
48
|
space,
|
|
49
49
|
match
|
|
50
50
|
}));
|
|
51
51
|
};
|
|
52
52
|
var ExplorerArticle_default = ExplorerArticle;
|
|
53
|
-
//# sourceMappingURL=ExplorerArticle-
|
|
53
|
+
//# sourceMappingURL=ExplorerArticle-PQEEN244.cjs.map
|
|
@@ -26,12 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var ExplorerMain_IGUMYIAN_exports = {};
|
|
30
|
+
__export(ExplorerMain_IGUMYIAN_exports, {
|
|
31
31
|
default: () => ExplorerMain_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(ExplorerMain_IGUMYIAN_exports);
|
|
34
|
+
var import_chunk_K4PB5A4K = require("./chunk-K4PB5A4K.cjs");
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_plugin_search = require("@dxos/plugin-search");
|
|
37
37
|
var import_echo = require("@dxos/react-client/echo");
|
|
@@ -50,10 +50,10 @@ var ExplorerMain = ({ view }) => {
|
|
|
50
50
|
import_react_ui_theme.topbarBlockPaddingStart,
|
|
51
51
|
import_react_ui_theme.bottombarBlockPaddingEnd
|
|
52
52
|
]
|
|
53
|
-
}, /* @__PURE__ */ import_react.default.createElement(
|
|
53
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_chunk_K4PB5A4K.Graph, {
|
|
54
54
|
space,
|
|
55
55
|
match
|
|
56
56
|
}));
|
|
57
57
|
};
|
|
58
58
|
var ExplorerMain_default = ExplorerMain;
|
|
59
|
-
//# sourceMappingURL=ExplorerMain-
|
|
59
|
+
//# sourceMappingURL=ExplorerMain-IGUMYIAN.cjs.map
|
|
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_K4PB5A4K_exports = {};
|
|
30
|
+
__export(chunk_K4PB5A4K_exports, {
|
|
31
31
|
Graph: () => Graph,
|
|
32
32
|
SpaceGraphModel: () => SpaceGraphModel,
|
|
33
33
|
Tree: () => Tree,
|
|
34
34
|
defaultTreeLayoutSlots: () => defaultTreeLayoutSlots
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(chunk_K4PB5A4K_exports);
|
|
37
37
|
var import_echo_schema = require("@dxos/echo-schema");
|
|
38
38
|
var import_gem_spore = require("@dxos/gem-spore");
|
|
39
39
|
var import_log = require("@dxos/log");
|
|
@@ -51,6 +51,7 @@ var import_gem_spore2 = require("@dxos/gem-spore");
|
|
|
51
51
|
var import_plugin_search = require("@dxos/plugin-search");
|
|
52
52
|
var import_react_ui = require("@dxos/react-ui");
|
|
53
53
|
var import_react_ui_theme = require("@dxos/react-ui-theme");
|
|
54
|
+
var import_styles = require("@dxos/gem-spore/styles");
|
|
54
55
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts";
|
|
55
56
|
var SpaceGraphModel = class extends import_gem_spore.GraphModel {
|
|
56
57
|
constructor(_options = {}) {
|
|
@@ -359,14 +360,14 @@ var Graph = ({ space, match }) => {
|
|
|
359
360
|
onNodeClick: () => setSelected(void 0)
|
|
360
361
|
});
|
|
361
362
|
}
|
|
362
|
-
return /* @__PURE__ */ import_react2.default.createElement(import_gem_core2.
|
|
363
|
+
return /* @__PURE__ */ import_react2.default.createElement(import_gem_core2.SVGRoot, {
|
|
363
364
|
context
|
|
364
365
|
}, /* @__PURE__ */ import_react2.default.createElement(import_gem_core2.SVG, {
|
|
365
|
-
className: slots?.root?.className
|
|
366
|
+
className: (0, import_react_ui_theme.mx)(import_gem_spore2.defaultStyles, slots?.root?.className)
|
|
366
367
|
}, /* @__PURE__ */ import_react2.default.createElement(import_gem_spore2.Markers, {
|
|
367
368
|
arrowSize: 6
|
|
368
369
|
}), /* @__PURE__ */ import_react2.default.createElement(import_gem_core2.Grid, {
|
|
369
|
-
className: slots?.grid?.className ??
|
|
370
|
+
className: slots?.grid?.className ?? (0, import_gem_core2.defaultGridStyles)(themeMode)
|
|
370
371
|
}), /* @__PURE__ */ import_react2.default.createElement(import_gem_core2.Zoom, {
|
|
371
372
|
extent: [
|
|
372
373
|
1 / 2,
|
|
@@ -480,7 +481,7 @@ var Tree = ({ space, selected, variant = "tidy", onNodeClick }) => {
|
|
|
480
481
|
ref,
|
|
481
482
|
className: "flex grow overflow-hidden",
|
|
482
483
|
onClick: () => onNodeClick?.()
|
|
483
|
-
}, /* @__PURE__ */ import_react.default.createElement(import_gem_core.
|
|
484
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_gem_core.SVGRoot, {
|
|
484
485
|
context
|
|
485
486
|
}, /* @__PURE__ */ import_react.default.createElement(import_gem_core.SVG, null)));
|
|
486
487
|
};
|
|
@@ -491,4 +492,4 @@ var Tree = ({ space, selected, variant = "tidy", onNodeClick }) => {
|
|
|
491
492
|
Tree,
|
|
492
493
|
defaultTreeLayoutSlots
|
|
493
494
|
});
|
|
494
|
-
//# sourceMappingURL=chunk-
|
|
495
|
+
//# sourceMappingURL=chunk-K4PB5A4K.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/Graph/graph-model.ts", "../../../src/components/Tree/Tree.tsx", "../../../src/components/Tree/layout/HierarchicalEdgeBundling.ts", "../../../src/components/Tree/layout/RadialTree.ts", "../../../src/components/Tree/layout/TidyTree.ts", "../../../src/components/Tree/types.ts", "../../../src/components/Graph/Graph.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport {\n AST,\n DynamicSchema,\n getSchema,\n getType,\n ReferenceAnnotationId,\n type S,\n SchemaValidator,\n StoredSchema,\n} from '@dxos/echo-schema';\nimport { type GraphData, type GraphLink, GraphModel } from '@dxos/gem-spore';\nimport { log } from '@dxos/log';\nimport { CollectionType } from '@dxos/plugin-space/types';\nimport { type EchoReactiveObject, type Space, type Subscription } from '@dxos/react-client/echo';\n\nexport type SpaceGraphModelOptions = {\n schema?: boolean;\n};\n\nexport type EchoGraphNode = SchemaGraphNode | EchoObjectGraphNode;\n\ntype EchoObjectGraphNode = {\n id: string;\n type: 'echo-object';\n object: EchoReactiveObject<any>;\n};\n\ntype SchemaGraphNode = {\n id: string;\n type: 'schema';\n schema: S.Schema<any>;\n};\n\n/**\n * Converts ECHO objects to a graph.\n */\nexport class SpaceGraphModel extends GraphModel<EchoGraphNode> {\n private readonly _graph: GraphData<EchoGraphNode> = {\n nodes: [],\n links: [],\n };\n\n private _subscription?: Subscription;\n private _objects?: EchoReactiveObject<any>[];\n\n constructor(private readonly _options: SpaceGraphModelOptions = {}) {\n super();\n }\n\n override get graph(): GraphData<EchoGraphNode> {\n return this._graph;\n }\n\n get objects(): EchoReactiveObject<any>[] {\n return this._objects ?? [];\n }\n\n open(space: Space, objectId?: string) {\n if (!this._subscription) {\n // TODO(burdon): Filter.\n const query = space.db.query((object: EchoReactiveObject<any>) => !(object instanceof CollectionType));\n\n this._subscription = query.subscribe(\n ({ objects }) => {\n this._objects = objects;\n this._graph.nodes = objects.map((object) => {\n if (object instanceof StoredSchema) {\n const effectSchema = space.db.schema.getSchemaById(object.id)!;\n return { type: 'schema', id: object.id, schema: effectSchema.schema };\n }\n return { type: 'echo-object', id: object.id, object };\n });\n this._graph.links = objects.reduce<GraphLink[]>((links, object) => {\n const objectSchema = getSchema(object);\n const typename = getType(object)?.objectId;\n if (objectSchema == null || typename == null) {\n log.info('no schema for object:', { id: object.id.slice(0, 8) });\n return links;\n }\n\n if (!(objectSchema instanceof DynamicSchema)) {\n const idx = objects.findIndex((obj) => obj.id === typename);\n if (idx === -1) {\n this._graph.nodes.push({\n id: typename,\n type: 'schema',\n schema: objectSchema,\n });\n }\n }\n\n // Link to schema.\n if (this._options.schema) {\n links.push({\n id: `${object.id}-${typename}`,\n source: object.id,\n target: typename,\n });\n }\n\n // Parse schema to follow referenced objects.\n AST.getPropertySignatures(objectSchema.ast).forEach((prop) => {\n if (!SchemaValidator.hasTypeAnnotation(objectSchema, prop.name.toString(), ReferenceAnnotationId)) {\n return;\n }\n const value = object[String(prop.name)];\n if (value) {\n const refs = Array.isArray(value) ? value : [value];\n for (const ref of refs) {\n if (objects.findIndex((obj) => obj.id === ref.id) !== -1) {\n links.push({\n id: `${object.id}-${String(prop.name)}-${ref.id}`,\n source: object.id,\n target: ref.id,\n });\n }\n }\n }\n });\n\n return links;\n }, []);\n\n this.triggerUpdate();\n },\n { fire: true },\n );\n }\n\n this.setSelected(objectId);\n return this;\n }\n\n close() {\n if (this._subscription) {\n this._subscription();\n this._subscription = undefined;\n }\n\n return this;\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\n\nimport { type Space } from '@dxos/client/echo';\nimport { createSvgContext, SVG, SVGRoot } from '@dxos/gem-core';\n\nimport { HierarchicalEdgeBundling, RadialTree, TidyTree } from './layout';\nimport { mapGraphToTreeData, type TreeNode } from './types';\nimport { SpaceGraphModel } from '../Graph';\n\n// TODO(burdon): Create dge bundling graph using d3.hierarchy.\n// https://observablehq.com/@d3/hierarchical-edge-bundling?intent=fork\n\ntype Renderer = (svg: SVGSVGElement, data: any, options: any) => void;\n\nexport type LayoutVariant = 'tidy' | 'radial' | 'edge';\n\n// TODO(burdon): Remove slots?\nexport type TreeLayoutSlots = {\n node?: string;\n path?: string;\n text?: string;\n};\n\nexport type TreeOptions = {\n label: (d: any) => string;\n\n slots?: TreeLayoutSlots;\n radius?: number;\n\n width: number;\n height: number;\n margin?: number;\n\n padding?: number;\n // Radius of nodes.\n r?: number;\n};\n\nexport const defaultTreeLayoutSlots: TreeLayoutSlots = {\n node: 'fill-blue-600',\n path: 'fill-none stroke-blue-400 stroke-[0.5px]',\n text: 'stroke-[0.5px] stroke-neutral-700 text-xs', // TODO(burdon): Create box instead of halo.\n};\n\nconst renderers = new Map<LayoutVariant, Renderer>([\n ['tidy', TidyTree],\n ['radial', RadialTree],\n ['edge', HierarchicalEdgeBundling],\n]);\n\nexport type TreeComponentProps<N = unknown> = {\n space: Space;\n selected?: string;\n variant?: LayoutVariant;\n onNodeClick?: (node?: N) => void;\n};\n\n// TODO(burdon): Label accessor.\nexport const Tree = <N,>({ space, selected, variant = 'tidy', onNodeClick }: TreeComponentProps<N>) => {\n const model = useMemo(() => (space ? new SpaceGraphModel().open(space, selected) : undefined), [space, selected]);\n const [tree, setTree] = useState<TreeNode>();\n useEffect(() => {\n return model?.subscribe(() => {\n const tree = mapGraphToTreeData(model);\n setTree(tree);\n }, true);\n }, [model]);\n\n const context = createSvgContext();\n const { ref, width = 0, height = 0 } = useResizeDetector();\n\n useEffect(() => {\n if (width && height) {\n const size = Math.min(width, height);\n const radius = size * 0.4;\n const options = {\n // TODO(burdon): Type.\n label: (d: any) => d.label ?? d.id,\n width,\n height,\n radius,\n marginLeft: (width - radius * 2) / 2,\n marginRight: (width - radius * 2) / 2,\n marginTop: (height - radius * 2) / 2,\n marginBottom: (height - radius * 2) / 2,\n slots: defaultTreeLayoutSlots,\n };\n\n if (tree) {\n const renderer = renderers.get(variant);\n renderer?.(context.ref.current!, tree, options);\n }\n }\n }, [tree, width, height]);\n\n // TODO(burdon): Provider should expand.\n return (\n <div ref={ref} className='flex grow overflow-hidden' onClick={() => onNodeClick?.()}>\n <SVGRoot context={context}>\n <SVG />\n </SVGRoot>\n </div>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n// Copyright 2022 Observable, Inc.\n//\n\nimport * as d3 from 'd3';\nimport { type HierarchyNode } from 'd3-hierarchy';\n\nimport { type TreeOptions } from '../Tree';\nimport { type TreeNode } from '../types';\n\n// Create hierarchical ID.\n// eslint-disable-next-line unused-imports/no-unused-vars\nconst getId = (node: HierarchyNode<TreeNode>): string =>\n `${node.parent ? getId(node.parent) + '/' : ''}${node.data.id.slice(0, 4)}`;\n\n// https://github.com/d3/d3-hierarchy\n// https://observablehq.com/@d3/hierarchical-edge-bundling?intent=fork\nconst HierarchicalEdgeBundling = (s: SVGSVGElement, data: TreeNode, options: TreeOptions) => {\n const svg = d3.select(s);\n svg.selectAll('*').remove();\n\n const { radius = 600, padding = 100, slots } = options;\n\n // https://d3js.org/d3-hierarchy/hierarchy\n const root = d3.hierarchy(flatten(data));\n // .sort((a, b) => d3.ascending(a.height, b.height) || d3.ascending(getName(a.data), getName(b.data)));\n\n const tree = d3.cluster<TreeNode>().size([2 * Math.PI, radius - padding]);\n const layout = tree(addLinks(root));\n\n // eslint-disable-next-line unused-imports/no-unused-vars\n const node = svg\n .append('g')\n .selectAll()\n .data(layout.leaves())\n .join('g')\n .attr('transform', (d) => `rotate(${d.x * (180 / Math.PI) - 90}) translate(${d.y},0)`)\n .append('text')\n .attr('class', slots?.text ?? '')\n .attr('dy', '0.31em') // TODO(burdon): Based on font size.\n .attr('x', (d) => (d.x < Math.PI ? 6 : -6))\n .attr('text-anchor', (d) => (d.x < Math.PI ? 'start' : 'end'))\n .attr('transform', (d) => (d.x >= Math.PI ? 'rotate(180)' : null))\n // .text((d: any) => d.data.id)\n // .each(function (d: any) {\n // d.text = this;\n // })\n // .on('mouseover', overed)\n // .on('mouseout', outed)\n .call(\n (text) => text.text((d: any) => d.data.id.slice(0, 8)),\n // .text((d: any) => `${getId(d)} [${[(d as any).outgoing?.length ?? 0]}]`),\n );\n\n // https://d3js.org/d3-shape/radial-line\n const line = d3\n .lineRadial()\n .curve(d3.curveBundle.beta(0.85))\n .radius((d: any) => d.y)\n .angle((d: any) => d.x);\n\n // eslint-disable-next-line unused-imports/no-unused-vars\n const links = svg\n .append('g')\n .selectAll()\n .data(layout.leaves().flatMap((leaf: any) => leaf.outgoing))\n .join('path')\n .style('mix-blend-mode', 'multiply')\n .attr('class', slots?.path ?? '')\n .attr('d', ([i, o]) => {\n return line(i.path(o));\n })\n .each(function (d) {\n d.path = this;\n });\n\n // function overed(event: any, d: X) {\n // link.style('mix-blend-mode', null);\n // d3.select(this).attr('font-weight', 'bold');\n // d3.selectAll(d.incoming.map((d) => d.path))\n // .attr('stroke', color.in)\n // .raise();\n // d3.selectAll((d as any).incoming.map(([d]) => d.text))\n // .attr('fill', color.in)\n // .attr('font-weight', 'bold');\n // d3.selectAll(d.outgoing.map((d) => d.path))\n // .attr('stroke', color.out)\n // .raise();\n // d3.selectAll(d.outgoing.map(([, d]) => d.text))\n // .attr('fill', color.out)\n // .attr('font-weight', 'bold');\n // }\n\n // function outed(event: any, d: HierarchyNode<Datum>) {\n // // @ts-ignore\n // d3.select(this).attr('font-weight', null);\n // d3.selectAll(d.incoming.map((d) => d.path)).attr('stroke', null);\n // d3.selectAll(d.incoming.map(([d]) => d.text))\n // .attr('fill', null)\n // .attr('font-weight', null);\n // d3.selectAll(d.outgoing.map((d) => d.path)).attr('stroke', null);\n // d3.selectAll(d.outgoing.map(([, d]) => d.text))\n // .attr('fill', null)\n // .attr('font-weight', null);\n // }\n};\n\n// Monkey-patch with incoming/outgoing nodes.\nconst addLinks = (root: HierarchyNode<TreeNode>) => {\n // Map of nodes indexed by ID.\n const nodes = new Map(root.descendants().map((d) => [d.data.id, d]));\n const parents = root.descendants().reduce((map, d) => {\n if (d.children?.length) {\n map.set(d.data.id, d);\n }\n return map;\n }, new Map<string, HierarchyNode<TreeNode>>());\n\n for (const d of root.leaves()) {\n // (d as any).incoming = [];\n\n const parent = parents.get(d.data.id);\n if (parent) {\n // Skip the first node which is a placeholder created by flatten().\n (d as any).outgoing =\n parent.data.children?.slice(1).map((child) => {\n return [d, nodes.get(child.id)!];\n }) ?? [];\n } else {\n (d as any).outgoing = [];\n }\n }\n\n // for (const d of root.leaves()) {\n // for (const [_, o] of (d as any).outgoing) {\n // o.incoming.push(o);\n // }\n // }\n\n return root;\n};\n\n/**\n * We are using a hierarchy in order to group nodes by parent, but we want the parent\n * nodes to be positioned at the first level along with all descendents.\n * So we add a placeholder for all parents at the head of each group.\n * @param node\n */\nconst flatten = (node: TreeNode) => {\n const clone: TreeNode = {\n id: node.id,\n };\n\n // TODO(burdon): NOTE: Should exclude schema (since requires a tree).\n if (node.children?.length) {\n const children = node.children.map((child) => flatten(child));\n clone.children = [{ id: node.id }, ...children];\n }\n\n return clone;\n};\n\nexport default HierarchicalEdgeBundling;\n", "//\n// Copyright 2023 DXOS.org\n// Copyright 2022 Observable, Inc.\n//\n\nimport * as d3 from 'd3';\n\nimport { type TreeOptions } from '../Tree';\n\n// Released under the ISC license.\n// https://observablehq.com/@d3/radial-tree\n// https://observablehq.com/@d3/tree\nconst RadialTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {\n const svg = d3.select(s);\n svg.selectAll('*').remove();\n\n const {\n label, // given a node d, returns the display name\n radius = 400,\n r = 4, // radius of nodes\n slots,\n } = options;\n\n const arc = 2 * Math.PI;\n\n const root = d3.hierarchy(data);\n\n // Sort the nodes.\n // if (sort) {\n // root.sort(sort);\n // }\n\n // Compute labels and titles.\n const descendants = root.descendants();\n const getLabel = label === null ? null : descendants.map((d) => label(d.data));\n\n // Compute the layout.\n const layout = d3\n .tree()\n .size([arc, radius])\n .separation((a: any, b: any) => (a.parent === b.parent ? 1 : 2) / a.depth);\n layout(root);\n\n // Links.\n svg\n .append('g')\n .selectAll('path')\n .data(root.links())\n .join('path')\n .attr('class', slots?.path ?? '')\n .attr(\n 'd',\n d3\n .linkRadial()\n .angle((d: any) => d.x + Math.PI / 2)\n .radius((d: any) => d.y) as any,\n );\n\n // Nodes.\n const node = svg\n .append('g')\n .selectAll('a')\n .data(root.descendants())\n .join('a')\n // .attr('xlink:href', link == null ? null : (d) => link(d.data, d))\n // .attr('target', link == null ? null : linkTarget)\n .attr('transform', (d: any) => `rotate(${(d.x * 180) / Math.PI}) translate(${d.y},0)`);\n\n node\n .append('circle')\n .attr('class', slots?.node ?? '')\n .attr('r', r);\n\n // if (title != null) {\n // node.append('title').text((d) => title(d.data, d));\n // }\n\n // Text.\n if (getLabel) {\n node\n .append('text')\n .attr('transform', (d: any) => `rotate(${d.x >= Math.PI ? 180 : 0})`)\n .attr('dy', '0.32em')\n // eslint-disable-next-line no-mixed-operators\n .attr('x', (d: any) => (d.x < Math.PI === !d.children ? 6 : -6))\n // eslint-disable-next-line no-mixed-operators\n .attr('text-anchor', (d: any) => (d.x < Math.PI === !d.children ? 'start' : 'end'))\n // .attr('paint-order', 'stroke')\n .attr('class', slots?.text ?? '')\n .text((d, i) => getLabel[i]);\n }\n\n return svg.node();\n};\n\nexport default RadialTree;\n", "//\n// Copyright 2023 DXOS.org\n// Copyright 2021 Observable, Inc.\n//\n\nimport * as d3 from 'd3';\n\nimport { type TreeOptions } from '../Tree';\n\n// Released under the ISC license.\n// https://observablehq.com/@d3/tree\nconst TidyTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {\n const svg = d3.select(s);\n svg.selectAll('*').remove();\n\n const { label, width, height, r = 4, padding = 4, margin = 60, slots } = options;\n\n const root = d3.hierarchy(data);\n\n // Compute labels and titles.\n const descendants = root.descendants();\n const getLabel = label == null ? null : descendants.map((d) => label(d.data));\n\n // Compute the layout.\n const dx = 16;\n const dy = width / (root.height + padding);\n const layout = d3.tree().nodeSize([dx, dy]);\n layout(root);\n\n // Center the tree.\n let x0 = Infinity;\n let x1 = -x0;\n let y0 = Infinity;\n let y1 = -y0;\n root.each((d: any) => {\n if (d.x > x1) {\n x1 = d.x;\n }\n if (d.x < x0) {\n x0 = d.x;\n }\n if (d.y > y1) {\n y1 = d.y;\n }\n if (d.y < y0) {\n y0 = d.y;\n }\n });\n\n // TODO(burdon): Option to expand.\n // NOTE: x and y are flipped.\n const sx = Math.min(2, Math.max(1, (height - margin * 2) / (x1 - x0)));\n const oy = -(width - (y1 - y0)) / 2;\n\n // Links.\n svg\n .append('g')\n .selectAll('path')\n .data(root.links())\n .join('path')\n .attr('class', slots?.path ?? '')\n .attr(\n 'd',\n d3\n .link(d3.curveBumpX)\n .x((d: any) => d.y + oy)\n .y((d: any) => d.x * sx) as any,\n );\n\n // Nodes.\n const node = svg\n .append('g')\n .selectAll('a')\n .data(root.descendants())\n .join('a')\n // .attr('xlink:href', link == null ? null : (d) => link(d.data, d))\n // .attr('target', link == null ? null : linkTarget)\n .attr('transform', (d: any) => `translate(${d.y + oy},${d.x * sx})`);\n\n node\n .append('circle')\n .attr('class', slots?.node ?? '')\n .attr('r', r);\n\n // if (title != null) {\n // node.append('title').text((d) => title(d.data, d));\n // }\n\n if (getLabel) {\n node\n .append('text')\n\n .attr('dy', '0.32em')\n .attr('x', (d) => (d.children ? -6 : 6))\n .attr('text-anchor', (d) => (d.children ? 'end' : 'start'))\n // .attr('paint-order', 'stroke')\n .attr('class', slots?.text ?? '')\n .text((d, i) => getLabel[i]);\n }\n};\n\nexport default TidyTree;\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type { GraphModel } from '@dxos/gem-spore';\n\nexport type TreeNode = {\n id: string;\n label?: string;\n children?: TreeNode[];\n};\n\nexport const mapGraphToTreeData = <N>(model: GraphModel<N>, maxDepth = 8): TreeNode | undefined => {\n const mapNode = (node: N, depth = 0): TreeNode => {\n const treeNode: TreeNode = {\n id: model.idAccessor(node),\n label: model.idAccessor(node).slice(0, 8),\n };\n\n const links = model.graph.links.filter((link) => link.source === treeNode.id);\n if (depth < maxDepth) {\n treeNode.children = links.map((link) =>\n mapNode(model.graph.nodes.find((node) => model.idAccessor(node) === link.target)!, depth + 1),\n );\n }\n\n return treeNode;\n };\n\n let data: TreeNode | undefined;\n if (model.selected) {\n const node = model.graph.nodes.find((node) => model.idAccessor(node) === model.selected);\n if (node) {\n data = mapNode(node);\n }\n }\n\n return data;\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type FC, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { type Space } from '@dxos/client/echo';\nimport { type EchoReactiveObject, getType } from '@dxos/echo-schema';\nimport { createSvgContext, defaultGridStyles, Grid, SVG, SVGRoot, Zoom } from '@dxos/gem-core';\nimport {\n defaultStyles,\n Graph as GraphComponent,\n GraphForceProjector,\n type GraphLayoutNode,\n Markers,\n} from '@dxos/gem-spore';\nimport { filterObjectsSync, type SearchResult } from '@dxos/plugin-search';\nimport { useThemeContext } from '@dxos/react-ui';\nimport { mx } from '@dxos/react-ui-theme';\n\nimport '@dxos/gem-spore/styles';\n\nimport { type EchoGraphNode, SpaceGraphModel } from './graph-model';\nimport { Tree } from '../Tree';\n\ntype Slots = {\n root?: { className?: string };\n grid?: { className?: string };\n};\n\nconst slots: Slots = {};\n\nconst colors = [\n '[&>circle]:!fill-black-300 [&>circle]:!stroke-black-600',\n '[&>circle]:!fill-slate-300 [&>circle]:!stroke-slate-600',\n '[&>circle]:!fill-green-300 [&>circle]:!stroke-green-600',\n '[&>circle]:!fill-sky-300 [&>circle]:!stroke-sky-600',\n '[&>circle]:!fill-cyan-300 [&>circle]:!stroke-cyan-600',\n '[&>circle]:!fill-rose-300 [&>circle]:!stroke-rose-600',\n '[&>circle]:!fill-purple-300 [&>circle]:!stroke-purple-600',\n '[&>circle]:!fill-orange-300 [&>circle]:!stroke-orange-600',\n '[&>circle]:!fill-teal-300 [&>circle]:!stroke-teal-600',\n '[&>circle]:!fill-indigo-300 [&>circle]:!stroke-indigo-600',\n];\n\nexport type GraphProps = {\n space: Space;\n match?: RegExp;\n};\n\nexport const Graph: FC<GraphProps> = ({ space, match }) => {\n const model = useMemo(() => (space ? new SpaceGraphModel({ schema: true }).open(space) : undefined), [space]);\n const [selected, setSelected] = useState<string>();\n const { themeMode } = useThemeContext();\n\n const context = createSvgContext();\n const projector = useMemo(\n () =>\n new GraphForceProjector<EchoGraphNode>(context, {\n forces: {\n manyBody: {\n strength: -100,\n },\n link: {\n distance: 180,\n },\n radial: {\n radius: 200,\n strength: 0.05,\n },\n },\n attributes: {\n radius: (node: GraphLayoutNode<EchoGraphNode>) => (node.data?.type === 'schema' ? 24 : 12),\n },\n }),\n [],\n );\n\n const filteredRef = useRef<SearchResult[]>();\n filteredRef.current = filterObjectsSync(model?.objects ?? [], match);\n useEffect(() => {\n void projector.start();\n }, [match]);\n\n const [colorMap] = useState(new Map<string, string>());\n\n if (!model) {\n return null;\n }\n\n if (selected) {\n return <Tree space={space} selected={selected} variant='tidy' onNodeClick={() => setSelected(undefined)} />;\n }\n\n return (\n <SVGRoot context={context}>\n <SVG className={mx(defaultStyles, slots?.root?.className)}>\n <Markers arrowSize={6} />\n <Grid className={slots?.grid?.className ?? defaultGridStyles(themeMode)} />\n <Zoom extent={[1 / 2, 4]}>\n <GraphComponent\n model={model}\n projector={projector}\n drag\n arrows\n onSelect={(node) => setSelected(node?.data?.id)}\n labels={{\n text: (node: GraphLayoutNode<EchoReactiveObject<any>>) => {\n if (filteredRef.current?.length && !filteredRef.current.some((object) => object.id === node.data?.id)) {\n return undefined;\n }\n\n // TODO(burdon): Use schema.\n return node.data?.label ?? node.data?.title ?? node.data?.name ?? node.data?.id.slice(0, 8);\n },\n }}\n attributes={{\n node: (node: GraphLayoutNode<EchoReactiveObject<any>>) => {\n let className: string | undefined;\n if (node.data) {\n const typename = getType(node.data)?.objectId;\n if (typename) {\n className = colorMap.get(typename);\n if (!className) {\n className = colors[colorMap.size % colors.length];\n colorMap.set(typename, className);\n }\n }\n }\n\n const selected = filteredRef.current?.some((object) => object.id === node.data?.id);\n return {\n class: mx(\n filteredRef.current?.length\n ? selected\n ? [className]\n : '[&>text]:!fill-neutral-300'\n : ['[&>text]:!fill-neutral-700', className],\n ),\n };\n },\n link: () => ({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wG;QACAC;QACA3D;QACAwI,aAAa9E,QAAQ1D,SAAS,KAAK;QACnCyI,cAAc/E,QAAQ1D,SAAS,KAAK;QACpC0I,YAAY/E,SAAS3D,SAAS,KAAK;QACnC2I,eAAehF,SAAS3D,SAAS,KAAK;QACtCE,OAAOkI;MACT;AAEA,UAAI9H,OAAM;AACR,cAAMsI,WAAWP,UAAUzF,IAAIkE,OAAAA;AAC/B8B,mBAAWjD,QAAQzG,IAAIqH,SAAUjG,OAAMX,OAAAA;MACzC;IACF;EACF,GAAG;IAACW;IAAMoD;IAAOC;GAAO;AAGxB,SACEiD,6BAAAA,QAAA,cAACiC,OAAAA;IAAI3J;IAAUgI,WAAU;IAA4B4B,SAAS,MAAM/B,cAAAA;KAClEH,6BAAAA,QAAA,cAACI,gBAAAA,SAAAA;IAAQrB;KACPiB,6BAAAA,QAAA,cAACK,gBAAAA,KAAAA,IAAAA,CAAAA,CAAAA;AAIT;",
|
|
6
|
+
"names": ["import_react", "import_echo_schema", "import_gem_core", "import_gem_spore", "SpaceGraphModel", "GraphModel", "constructor", "_options", "_graph", "nodes", "links", "graph", "objects", "_objects", "open", "space", "objectId", "_subscription", "query", "db", "object", "CollectionType", "subscribe", "map", "StoredSchema", "effectSchema", "schema", "getSchemaById", "id", "type", "reduce", "objectSchema", "getSchema", "typename", "getType", "log", "info", "slice", "DynamicSchema", "idx", "findIndex", "obj", "push", "source", "target", "AST", "getPropertySignatures", "ast", "forEach", "prop", "SchemaValidator", "hasTypeAnnotation", "name", "toString", "ReferenceAnnotationId", "value", "String", "refs", "Array", "isArray", "ref", "triggerUpdate", "fire", "setSelected", "close", "undefined", "HierarchicalEdgeBundling", "s", "data", "options", "svg", "select", "selectAll", "remove", "radius", "padding", "slots", "root", "hierarchy", "flatten", "tree", "cluster", "size", "Math", "PI", "layout", "addLinks", "node", "append", "leaves", "join", "attr", "d", "x", "y", "text", "call", "line", "lineRadial", "curve", "curveBundle", "beta", "angle", "flatMap", "leaf", "outgoing", "style", "path", "i", "o", "each", "Map", "descendants", "parents", "children", "length", "set", "parent", "get", "child", "clone", "RadialTree", "label", "r", "arc", "getLabel", "separation", "a", "b", "depth", "linkRadial", "TidyTree", "width", "height", "margin", "dx", "dy", "nodeSize", "x0", "Infinity", "x1", "y0", "y1", "sx", "min", "max", "oy", "link", "curveBumpX", "mapGraphToTreeData", "model", "maxDepth", "mapNode", "treeNode", "idAccessor", "filter", "find", "selected", "colors", "Graph", "match", "useMemo", "useState", "themeMode", "useThemeContext", "context", "createSvgContext", "projector", "GraphForceProjector", "forces", "manyBody", "strength", "distance", "radial", "attributes", "filteredRef", "useRef", "current", "filterObjectsSync", "useEffect", "start", "colorMap", "React", "Tree", "variant", "onNodeClick", "SVGRoot", "SVG", "className", "mx", "defaultStyles", "Markers", "arrowSize", "Grid", "grid", "defaultGridStyles", "Zoom", "extent", "GraphComponent", "drag", "arrows", "onSelect", "labels", "some", "title", "class", "defaultTreeLayoutSlots", "renderers", "setTree", "useResizeDetector", "marginLeft", "marginRight", "marginTop", "marginBottom", "renderer", "div", "onClick"]
|
|
7
|
+
}
|