@dxos/plugin-explorer 0.8.2-main.f11618f → 0.8.2-staging.7ac8446
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/{chunk-RRXH3JYB.mjs → chunk-B2DMPSP5.mjs} +16 -16
- package/dist/lib/browser/{chunk-RRXH3JYB.mjs.map → chunk-B2DMPSP5.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +3 -3
- package/dist/lib/browser/{intent-resolver-P4YLQHXF.mjs → intent-resolver-NHHRWTOP.mjs} +3 -3
- package/dist/lib/browser/intent-resolver-NHHRWTOP.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-TPR4VUPE.mjs → react-surface-N7TC6BMF.mjs} +2 -2
- package/dist/lib/node/{chunk-4QUNUHKB.cjs → chunk-HCDBN6NN.cjs} +19 -19
- package/dist/lib/node/{chunk-4QUNUHKB.cjs.map → chunk-HCDBN6NN.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +8 -8
- package/dist/lib/node/{intent-resolver-T2R4PJVP.cjs → intent-resolver-EEOTX3OZ.cjs} +5 -5
- package/dist/lib/node/intent-resolver-EEOTX3OZ.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-OLIOGYOK.cjs → react-surface-WD4G2NRS.cjs} +6 -6
- package/dist/lib/node-esm/{chunk-VNMYGDGZ.mjs → chunk-PZOORWFE.mjs} +16 -16
- package/dist/lib/node-esm/{chunk-VNMYGDGZ.mjs.map → chunk-PZOORWFE.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +3 -3
- package/dist/lib/node-esm/{intent-resolver-OMUHLTGU.mjs → intent-resolver-PTFKXAT4.mjs} +3 -3
- package/dist/lib/node-esm/intent-resolver-PTFKXAT4.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-QLB55AWT.mjs → react-surface-J5SW7VF2.mjs} +2 -2
- package/dist/types/src/components/Tree/layout/HierarchicalEdgeBundling.d.ts.map +1 -1
- package/dist/types/src/components/Tree/layout/RadialTree.d.ts.map +1 -1
- package/dist/types/src/components/Tree/layout/TidyTree.d.ts.map +1 -1
- package/package.json +24 -24
- package/src/capabilities/intent-resolver.ts +2 -2
- package/src/components/Globe/Globe.stories.tsx +13 -13
- package/src/components/Graph/Graph.stories.tsx +2 -2
- package/src/components/Tree/layout/HierarchicalEdgeBundling.ts +19 -17
- package/src/components/Tree/layout/RadialTree.ts +7 -5
- package/src/components/Tree/layout/TidyTree.ts +6 -5
- package/dist/lib/browser/intent-resolver-P4YLQHXF.mjs.map +0 -7
- package/dist/lib/node/intent-resolver-T2R4PJVP.cjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-OMUHLTGU.mjs.map +0 -7
- /package/dist/lib/browser/{react-surface-TPR4VUPE.mjs.map → react-surface-N7TC6BMF.mjs.map} +0 -0
- /package/dist/lib/node/{react-surface-OLIOGYOK.cjs.map → react-surface-WD4G2NRS.cjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-QLB55AWT.mjs.map → react-surface-J5SW7VF2.mjs.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Globe,
|
|
6
6
|
Tree,
|
|
7
7
|
defaultTreeLayoutSlots
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PZOORWFE.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Graph,
|
|
11
11
|
SpaceGraphModel
|
|
@@ -27,8 +27,8 @@ import { defineObjectForm } from "@dxos/plugin-space/types";
|
|
|
27
27
|
|
|
28
28
|
// packages/plugins/plugin-explorer/src/capabilities/index.ts
|
|
29
29
|
import { lazy } from "@dxos/app-framework";
|
|
30
|
-
var IntentResolver = lazy(() => import("./intent-resolver-
|
|
31
|
-
var ReactSurface = lazy(() => import("./react-surface-
|
|
30
|
+
var IntentResolver = lazy(() => import("./intent-resolver-PTFKXAT4.mjs"));
|
|
31
|
+
var ReactSurface = lazy(() => import("./react-surface-J5SW7VF2.mjs"));
|
|
32
32
|
|
|
33
33
|
// packages/plugins/plugin-explorer/src/translations.ts
|
|
34
34
|
var translations_default = [
|
|
@@ -7,12 +7,12 @@ import "./chunk-PUFSCMN4.mjs";
|
|
|
7
7
|
|
|
8
8
|
// packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts
|
|
9
9
|
import { contributes, Capabilities, createResolver } from "@dxos/app-framework";
|
|
10
|
-
import {
|
|
10
|
+
import { create } from "@dxos/live-object";
|
|
11
11
|
var intent_resolver_default = () => contributes(Capabilities.IntentResolver, createResolver({
|
|
12
12
|
intent: ExplorerAction.Create,
|
|
13
13
|
resolve: ({ name }) => ({
|
|
14
14
|
data: {
|
|
15
|
-
object:
|
|
15
|
+
object: create(ViewType, {
|
|
16
16
|
name,
|
|
17
17
|
type: ""
|
|
18
18
|
})
|
|
@@ -22,4 +22,4 @@ var intent_resolver_default = () => contributes(Capabilities.IntentResolver, cre
|
|
|
22
22
|
export {
|
|
23
23
|
intent_resolver_default as default
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=intent-resolver-
|
|
25
|
+
//# sourceMappingURL=intent-resolver-PTFKXAT4.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/intent-resolver.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { contributes, Capabilities, createResolver } from '@dxos/app-framework';\nimport { create } from '@dxos/live-object';\n\nimport { ExplorerAction, ViewType } from '../types';\n\nexport default () =>\n contributes(\n Capabilities.IntentResolver,\n createResolver({\n intent: ExplorerAction.Create,\n resolve: ({ name }) => ({\n data: { object: create(ViewType, { name, type: '' }) },\n }),\n }),\n );\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,aAAaC,cAAcC,sBAAsB;AAC1D,SAASC,cAAc;AAIvB,IAAA,0BAAe,MACbC,YACEC,aAAaC,gBACbC,eAAe;EACbC,QAAQC,eAAeC;EACvBC,SAAS,CAAC,EAAEC,KAAI,OAAQ;IACtBC,MAAM;MAAEC,QAAQC,OAAOC,UAAU;QAAEJ;QAAMK,MAAM;MAAG,CAAA;IAAG;EACvD;AACF,CAAA,CAAA;",
|
|
6
|
+
"names": ["contributes", "Capabilities", "createResolver", "create", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "ExplorerAction", "Create", "resolve", "name", "data", "object", "create", "ViewType", "type"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-explorer/src/components/plot.ts":{"bytes":1452,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx":{"bytes":4922,"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/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Chart/index.ts":{"bytes":514,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"packages/plugins/plugin-explorer/data/countries-110m.js":{"bytes":187226,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx":{"bytes":7510,"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/plugin-explorer/data/countries-110m.js","kind":"import-statement","original":"../../../data/countries-110m.js"},{"path":"packages/plugins/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Globe/index.ts":{"bytes":514,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/graph-model.ts":{"bytes":22069,"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":"@dxos/react-client/echo","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/Graph.tsx":{"bytes":9918,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/index.ts":{"bytes":617,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/plugin-explorer/src/components/Graph/Graph.tsx","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17704,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytes":8806,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytes":9328,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/index.ts":{"bytes":1143,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/types.ts":{"bytes":3854,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx":{"bytes":10127,"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":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"../Graph"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/index.ts":{"bytes":512,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytes":2730,"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-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/index.ts":{"bytes":1150,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"packages/plugins/plugin-explorer/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/plugins/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx","kind":"dynamic-import","original":"./ExplorerContainer"}],"format":"esm"},"packages/plugins/plugin-explorer/src/types/schema.ts":{"bytes":1423,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/meta.ts":{"bytes":1971,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/types/types.ts":{"bytes":2265,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-explorer/src/types/index.ts":{"bytes":589,"imports":[{"path":"packages/plugins/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-explorer/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytes":2222,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx":{"bytes":2957,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/index.ts":{"bytes":1083,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-explorer/src/translations.ts":{"bytes":1740,"imports":[{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx":{"bytes":7518,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-explorer/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/index.ts":{"bytes":785,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-explorer/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4788},"packages/plugins/plugin-explorer/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VNMYGDGZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-OMUHLTGU.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-QLB55AWT.mjs","kind":"dynamic-import"}],"exports":["Chart","EXPLORER_PLUGIN","ExplorerContainer","ExplorerPlugin","Globe","Graph","SpaceGraphModel","Tree","defaultTreeLayoutSlots","meta"],"entryPoint":"packages/plugins/plugin-explorer/src/index.ts","inputs":{"packages/plugins/plugin-explorer/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx":{"bytesInOutput":1546},"packages/plugins/plugin-explorer/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-explorer/src/translations.ts":{"bytesInOutput":295}},"bytes":2869},"packages/plugins/plugin-explorer/dist/lib/node-esm/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-explorer/dist/lib/node-esm/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"}],"exports":["EXPLORER_PLUGIN","meta"],"entryPoint":"packages/plugins/plugin-explorer/src/meta.ts","inputs":{},"bytes":230},"packages/plugins/plugin-explorer/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-explorer/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"}],"exports":["ExplorerAction","ViewType"],"entryPoint":"packages/plugins/plugin-explorer/src/types/index.ts","inputs":{},"bytes":270},"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-NMI55PYM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1383},"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-NMI55PYM.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.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-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx","inputs":{"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytesInOutput":590}},"bytes":911},"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-OMUHLTGU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1082},"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-OMUHLTGU.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytesInOutput":377}},"bytes":745},"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-QLB55AWT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1434},"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-QLB55AWT.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VNMYGDGZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx":{"bytesInOutput":517}},"bytes":980},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VNMYGDGZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":475788},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VNMYGDGZ.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.mjs","kind":"import-statement"},{"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":"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":"@dxos/react-ui","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":"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-NMI55PYM.mjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerContainer","Globe","Tree","defaultTreeLayoutSlots"],"inputs":{"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx":{"bytesInOutput":1031},"packages/plugins/plugin-explorer/src/components/plot.ts":{"bytesInOutput":133},"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx":{"bytesInOutput":1707},"packages/plugins/plugin-explorer/data/countries-110m.js":{"bytesInOutput":188376},"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2078},"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2167},"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1355},"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1596},"packages/plugins/plugin-explorer/src/components/Tree/types.ts":{"bytesInOutput":699},"packages/plugins/plugin-explorer/src/components/index.ts":{"bytesInOutput":110},"packages/plugins/plugin-explorer/src/components/Chart/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":200428},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15411},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.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":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["Graph","SpaceGraphModel"],"inputs":{"packages/plugins/plugin-explorer/src/components/Graph/graph-model.ts":{"bytesInOutput":4869},"packages/plugins/plugin-explorer/src/components/Graph/Graph.tsx":{"bytesInOutput":2042},"packages/plugins/plugin-explorer/src/components/Graph/index.ts":{"bytesInOutput":0}},"bytes":7228},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1706},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["ExplorerAction","ViewType"],"inputs":{"packages/plugins/plugin-explorer/src/types/schema.ts":{"bytesInOutput":216},"packages/plugins/plugin-explorer/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/types/types.ts":{"bytesInOutput":431}},"bytes":996},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":919},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs":{"imports":[],"exports":["EXPLORER_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-explorer/src/meta.ts":{"bytesInOutput":448}},"bytes":672}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-explorer/src/components/plot.ts":{"bytes":1452,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx":{"bytes":4922,"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/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Chart/index.ts":{"bytes":514,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"packages/plugins/plugin-explorer/data/countries-110m.js":{"bytes":187226,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx":{"bytes":7510,"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/plugin-explorer/data/countries-110m.js","kind":"import-statement","original":"../../../data/countries-110m.js"},{"path":"packages/plugins/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Globe/index.ts":{"bytes":514,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/graph-model.ts":{"bytes":22069,"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":"@dxos/react-client/echo","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/Graph.tsx":{"bytes":9918,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/index.ts":{"bytes":617,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/plugin-explorer/src/components/Graph/Graph.tsx","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17747,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytes":8806,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytes":9309,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/index.ts":{"bytes":1143,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/types.ts":{"bytes":3854,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx":{"bytes":10127,"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":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"../Graph"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/index.ts":{"bytes":512,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytes":2730,"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-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/index.ts":{"bytes":1150,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"packages/plugins/plugin-explorer/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/plugins/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx","kind":"dynamic-import","original":"./ExplorerContainer"}],"format":"esm"},"packages/plugins/plugin-explorer/src/types/schema.ts":{"bytes":1423,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/meta.ts":{"bytes":1971,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/types/types.ts":{"bytes":2265,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-explorer/src/types/index.ts":{"bytes":589,"imports":[{"path":"packages/plugins/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-explorer/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytes":2234,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx":{"bytes":2957,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/index.ts":{"bytes":1083,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-explorer/src/translations.ts":{"bytes":1740,"imports":[{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx":{"bytes":7518,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-explorer/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/index.ts":{"bytes":785,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-explorer/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4788},"packages/plugins/plugin-explorer/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PZOORWFE.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-PTFKXAT4.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-J5SW7VF2.mjs","kind":"dynamic-import"}],"exports":["Chart","EXPLORER_PLUGIN","ExplorerContainer","ExplorerPlugin","Globe","Graph","SpaceGraphModel","Tree","defaultTreeLayoutSlots","meta"],"entryPoint":"packages/plugins/plugin-explorer/src/index.ts","inputs":{"packages/plugins/plugin-explorer/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx":{"bytesInOutput":1546},"packages/plugins/plugin-explorer/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-explorer/src/translations.ts":{"bytesInOutput":295}},"bytes":2869},"packages/plugins/plugin-explorer/dist/lib/node-esm/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-explorer/dist/lib/node-esm/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"}],"exports":["EXPLORER_PLUGIN","meta"],"entryPoint":"packages/plugins/plugin-explorer/src/meta.ts","inputs":{},"bytes":230},"packages/plugins/plugin-explorer/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-explorer/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"}],"exports":["ExplorerAction","ViewType"],"entryPoint":"packages/plugins/plugin-explorer/src/types/index.ts","inputs":{},"bytes":270},"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-NMI55PYM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1383},"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-NMI55PYM.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.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-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx","inputs":{"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytesInOutput":590}},"bytes":911},"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-PTFKXAT4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1090},"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-PTFKXAT4.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytesInOutput":381}},"bytes":749},"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-J5SW7VF2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1434},"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-J5SW7VF2.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PZOORWFE.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx":{"bytesInOutput":517}},"bytes":980},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PZOORWFE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":475537},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PZOORWFE.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.mjs","kind":"import-statement"},{"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":"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":"@dxos/react-ui","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":"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-NMI55PYM.mjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerContainer","Globe","Tree","defaultTreeLayoutSlots"],"inputs":{"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx":{"bytesInOutput":1031},"packages/plugins/plugin-explorer/src/components/plot.ts":{"bytesInOutput":133},"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx":{"bytesInOutput":1707},"packages/plugins/plugin-explorer/data/countries-110m.js":{"bytesInOutput":188376},"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2078},"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2134},"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1313},"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1542},"packages/plugins/plugin-explorer/src/components/Tree/types.ts":{"bytesInOutput":699},"packages/plugins/plugin-explorer/src/components/index.ts":{"bytesInOutput":110},"packages/plugins/plugin-explorer/src/components/Chart/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":200299},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15411},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-SZRRNWYT.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":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["Graph","SpaceGraphModel"],"inputs":{"packages/plugins/plugin-explorer/src/components/Graph/graph-model.ts":{"bytesInOutput":4869},"packages/plugins/plugin-explorer/src/components/Graph/Graph.tsx":{"bytesInOutput":2042},"packages/plugins/plugin-explorer/src/components/Graph/index.ts":{"bytesInOutput":0}},"bytes":7228},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1706},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-QZH2GDN5.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["ExplorerAction","ViewType"],"inputs":{"packages/plugins/plugin-explorer/src/types/schema.ts":{"bytesInOutput":216},"packages/plugins/plugin-explorer/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/types/types.ts":{"bytesInOutput":431}},"bytes":996},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":919},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-PUFSCMN4.mjs":{"imports":[],"exports":["EXPLORER_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-explorer/src/meta.ts":{"bytesInOutput":448}},"bytes":672}}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ExplorerContainer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PZOORWFE.mjs";
|
|
5
5
|
import "./chunk-SZRRNWYT.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ViewType
|
|
@@ -29,4 +29,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, createS
|
|
|
29
29
|
export {
|
|
30
30
|
react_surface_default as default
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=react-surface-
|
|
32
|
+
//# sourceMappingURL=react-surface-J5SW7VF2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HierarchicalEdgeBundling.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tree/layout/HierarchicalEdgeBundling.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AASzC,QAAA,MAAM,wBAAwB,MAAO,aAAa,QAAQ,QAAQ,WAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"HierarchicalEdgeBundling.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tree/layout/HierarchicalEdgeBundling.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AASzC,QAAA,MAAM,wBAAwB,MAAO,aAAa,QAAQ,QAAQ,WAAW,WAAW,SAwFvF,CAAC;AAyDF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadialTree.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tree/layout/RadialTree.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAK3C,QAAA,MAAM,UAAU,MAAO,aAAa,QAAQ,GAAG,WAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"RadialTree.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tree/layout/RadialTree.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAK3C,QAAA,MAAM,UAAU,MAAO,aAAa,QAAQ,GAAG,WAAW,WAAW,yBAiFpE,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TidyTree.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tree/layout/TidyTree.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAI3C,QAAA,MAAM,QAAQ,MAAO,aAAa,QAAQ,GAAG,WAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"TidyTree.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tree/layout/TidyTree.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAI3C,QAAA,MAAM,QAAQ,MAAO,aAAa,QAAQ,GAAG,WAAW,WAAW,SAwFlE,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-explorer",
|
|
3
|
-
"version": "0.8.2-
|
|
3
|
+
"version": "0.8.2-staging.7ac8446",
|
|
4
4
|
"description": "Braneframe data visualization plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
"lodash.get": "^4.4.2",
|
|
43
43
|
"react-resize-detector": "^11.0.1",
|
|
44
44
|
"topojson-client": "^3.1.0",
|
|
45
|
-
"@dxos/app-framework": "0.8.2-
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/echo-schema": "0.8.2-
|
|
49
|
-
"@dxos/gem-
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/log": "0.8.2-
|
|
53
|
-
"@dxos/plugin-
|
|
54
|
-
"@dxos/plugin-
|
|
55
|
-
"@dxos/plugin-
|
|
56
|
-
"@dxos/plugin-
|
|
57
|
-
"@dxos/react-client": "0.8.2-
|
|
58
|
-
"@dxos/react-ui-stack": "0.8.2-
|
|
59
|
-
"@dxos/util": "0.8.2-
|
|
45
|
+
"@dxos/app-framework": "0.8.2-staging.7ac8446",
|
|
46
|
+
"@dxos/client": "0.8.2-staging.7ac8446",
|
|
47
|
+
"@dxos/async": "0.8.2-staging.7ac8446",
|
|
48
|
+
"@dxos/echo-schema": "0.8.2-staging.7ac8446",
|
|
49
|
+
"@dxos/gem-spore": "0.8.2-staging.7ac8446",
|
|
50
|
+
"@dxos/live-object": "0.8.2-staging.7ac8446",
|
|
51
|
+
"@dxos/gem-core": "0.8.2-staging.7ac8446",
|
|
52
|
+
"@dxos/log": "0.8.2-staging.7ac8446",
|
|
53
|
+
"@dxos/plugin-graph": "0.8.2-staging.7ac8446",
|
|
54
|
+
"@dxos/plugin-search": "0.8.2-staging.7ac8446",
|
|
55
|
+
"@dxos/plugin-space": "0.8.2-staging.7ac8446",
|
|
56
|
+
"@dxos/plugin-client": "0.8.2-staging.7ac8446",
|
|
57
|
+
"@dxos/react-client": "0.8.2-staging.7ac8446",
|
|
58
|
+
"@dxos/react-ui-stack": "0.8.2-staging.7ac8446",
|
|
59
|
+
"@dxos/util": "0.8.2-staging.7ac8446"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -71,19 +71,19 @@
|
|
|
71
71
|
"react": "~18.2.0",
|
|
72
72
|
"react-dom": "~18.2.0",
|
|
73
73
|
"vite": "5.4.7",
|
|
74
|
-
"@dxos/echo-generator": "0.8.2-
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/react-ui
|
|
79
|
-
"@dxos/
|
|
74
|
+
"@dxos/echo-generator": "0.8.2-staging.7ac8446",
|
|
75
|
+
"@dxos/random": "0.8.2-staging.7ac8446",
|
|
76
|
+
"@dxos/plugin-outliner": "0.8.2-staging.7ac8446",
|
|
77
|
+
"@dxos/storybook-utils": "0.8.2-staging.7ac8446",
|
|
78
|
+
"@dxos/react-ui": "0.8.2-staging.7ac8446",
|
|
79
|
+
"@dxos/react-ui-theme": "0.8.2-staging.7ac8446"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@phosphor-icons/react": "^2.1.5",
|
|
83
83
|
"react": "~18.2.0",
|
|
84
84
|
"react-dom": "~18.2.0",
|
|
85
|
-
"@dxos/react-ui": "0.8.2-
|
|
86
|
-
"@dxos/react-ui-theme": "0.8.2-
|
|
85
|
+
"@dxos/react-ui": "0.8.2-staging.7ac8446",
|
|
86
|
+
"@dxos/react-ui-theme": "0.8.2-staging.7ac8446"
|
|
87
87
|
},
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { contributes, Capabilities, createResolver } from '@dxos/app-framework';
|
|
6
|
-
import {
|
|
6
|
+
import { create } from '@dxos/live-object';
|
|
7
7
|
|
|
8
8
|
import { ExplorerAction, ViewType } from '../types';
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ export default () =>
|
|
|
13
13
|
createResolver({
|
|
14
14
|
intent: ExplorerAction.Create,
|
|
15
15
|
resolve: ({ name }) => ({
|
|
16
|
-
data: { object:
|
|
16
|
+
data: { object: create(ViewType, { name, type: '' }) },
|
|
17
17
|
}),
|
|
18
18
|
}),
|
|
19
19
|
);
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import * as Plot from '@observablehq/plot';
|
|
8
8
|
import { type Meta } from '@storybook/react';
|
|
9
|
-
import
|
|
9
|
+
import * as d3 from 'd3';
|
|
10
10
|
import React, { useEffect } from 'react';
|
|
11
11
|
import { useResizeDetector } from 'react-resize-detector';
|
|
12
|
-
import
|
|
12
|
+
import * as topojson from 'topojson-client';
|
|
13
13
|
|
|
14
14
|
import { ClientRepeater } from '@dxos/react-client/testing';
|
|
15
15
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
@@ -37,18 +37,18 @@ const ExtendedStory = () => {
|
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
const land = feature(CountriesData as any, CountriesData.objects.land as any);
|
|
40
|
+
const land = topojson.feature(CountriesData as any, CountriesData.objects.land as any);
|
|
41
41
|
const items = CitiesData.features.map((feature: any) => ({
|
|
42
42
|
lat: feature.geometry.coordinates[0],
|
|
43
43
|
lng: feature.geometry.coordinates[1],
|
|
44
44
|
}));
|
|
45
45
|
|
|
46
46
|
const city = items[0];
|
|
47
|
-
const circle = geoCircle().center([city.lat, city.lng]).radius(16)();
|
|
47
|
+
const circle = d3.geoCircle().center([city.lat, city.lng]).radius(16)();
|
|
48
48
|
|
|
49
49
|
// https://observablehq.com/plot/marks/geo
|
|
50
50
|
// https://observablehq.com/@observablehq/plot-earthquake-globe?intent=fork
|
|
51
|
-
const
|
|
51
|
+
const plot = Plot.plot({
|
|
52
52
|
// https://observablehq.com/plot/features/projections
|
|
53
53
|
projection: { type: 'orthographic', rotate: [-city.lat + 30, -30] },
|
|
54
54
|
// projection: { type: 'equirectangular', rotate: [-140, -30] },
|
|
@@ -58,11 +58,11 @@ const ExtendedStory = () => {
|
|
|
58
58
|
background: 'transparent',
|
|
59
59
|
},
|
|
60
60
|
marks: [
|
|
61
|
-
sphere({ fill: 'lightblue', fillOpacity: 0.5 }),
|
|
62
|
-
geo(land, { fill: 'green', fillOpacity: 0.3 }),
|
|
63
|
-
graticule(),
|
|
64
|
-
geo(circle, { stroke: 'black', fill: 'darkblue', fillOpacity: 0.1, strokeWidth: 2 }),
|
|
65
|
-
dot(items, {
|
|
61
|
+
Plot.sphere({ fill: 'lightblue', fillOpacity: 0.5 }),
|
|
62
|
+
Plot.geo(land, { fill: 'green', fillOpacity: 0.3 }),
|
|
63
|
+
Plot.graticule(),
|
|
64
|
+
Plot.geo(circle, { stroke: 'black', fill: 'darkblue', fillOpacity: 0.1, strokeWidth: 2 }),
|
|
65
|
+
Plot.dot(items, {
|
|
66
66
|
x: 'lat',
|
|
67
67
|
y: 'lng',
|
|
68
68
|
r: 6,
|
|
@@ -73,8 +73,8 @@ const ExtendedStory = () => {
|
|
|
73
73
|
],
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
containerRef.current!.append(
|
|
77
|
-
return () =>
|
|
76
|
+
containerRef.current!.append(plot);
|
|
77
|
+
return () => plot?.remove();
|
|
78
78
|
}, [width, height]);
|
|
79
79
|
|
|
80
80
|
return <div ref={containerRef} className='grow p-8' />;
|
|
@@ -10,7 +10,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
10
10
|
import { createSpaceObjectGenerator, TestSchemaType } from '@dxos/echo-generator';
|
|
11
11
|
import { faker } from '@dxos/random';
|
|
12
12
|
import { useClient } from '@dxos/react-client';
|
|
13
|
-
import {
|
|
13
|
+
import { create } from '@dxos/react-client/echo';
|
|
14
14
|
import { type Space } from '@dxos/react-client/echo';
|
|
15
15
|
import { ClientRepeater } from '@dxos/react-client/testing';
|
|
16
16
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
@@ -35,7 +35,7 @@ const Story = () => {
|
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
const view = space.db.add(
|
|
38
|
+
const view = space.db.add(create(ViewType, { name: '', type: '' }));
|
|
39
39
|
setSpace(space);
|
|
40
40
|
setView(view);
|
|
41
41
|
}, []);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Copyright 2022 Observable, Inc.
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import * as d3 from 'd3';
|
|
7
7
|
import { type HierarchyNode } from 'd3-hierarchy';
|
|
8
8
|
|
|
9
9
|
import { type TreeOptions } from '../Tree';
|
|
@@ -17,16 +17,16 @@ const getId = (node: HierarchyNode<TreeNode>): string =>
|
|
|
17
17
|
// https://github.com/d3/d3-hierarchy
|
|
18
18
|
// https://observablehq.com/@d3/hierarchical-edge-bundling?intent=fork
|
|
19
19
|
const HierarchicalEdgeBundling = (s: SVGSVGElement, data: TreeNode, options: TreeOptions) => {
|
|
20
|
-
const svg = select(s);
|
|
20
|
+
const svg = d3.select(s);
|
|
21
21
|
svg.selectAll('*').remove();
|
|
22
22
|
|
|
23
23
|
const { radius = 600, padding = 100, slots } = options;
|
|
24
24
|
|
|
25
25
|
// https://d3js.org/d3-hierarchy/hierarchy
|
|
26
|
-
const root = hierarchy(flatten(data));
|
|
27
|
-
// .sort((a, b) => ascending(a.height, b.height) || ascending(getName(a.data), getName(b.data)));
|
|
26
|
+
const root = d3.hierarchy(flatten(data));
|
|
27
|
+
// .sort((a, b) => d3.ascending(a.height, b.height) || d3.ascending(getName(a.data), getName(b.data)));
|
|
28
28
|
|
|
29
|
-
const tree = cluster<TreeNode>().size([2 * Math.PI, radius - padding]);
|
|
29
|
+
const tree = d3.cluster<TreeNode>().size([2 * Math.PI, radius - padding]);
|
|
30
30
|
const layout = tree(addLinks(root));
|
|
31
31
|
|
|
32
32
|
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
@@ -54,8 +54,9 @@ const HierarchicalEdgeBundling = (s: SVGSVGElement, data: TreeNode, options: Tre
|
|
|
54
54
|
);
|
|
55
55
|
|
|
56
56
|
// https://d3js.org/d3-shape/radial-line
|
|
57
|
-
const line =
|
|
58
|
-
.
|
|
57
|
+
const line = d3
|
|
58
|
+
.lineRadial()
|
|
59
|
+
.curve(d3.curveBundle.beta(0.85))
|
|
59
60
|
.radius((d: any) => d.y)
|
|
60
61
|
.angle((d: any) => d.x);
|
|
61
62
|
|
|
@@ -76,30 +77,30 @@ const HierarchicalEdgeBundling = (s: SVGSVGElement, data: TreeNode, options: Tre
|
|
|
76
77
|
|
|
77
78
|
// function overed(event: any, d: X) {
|
|
78
79
|
// link.style('mix-blend-mode', null);
|
|
79
|
-
// select(this).attr('font-weight', 'bold');
|
|
80
|
-
// selectAll(d.incoming.map((d) => d.path))
|
|
80
|
+
// d3.select(this).attr('font-weight', 'bold');
|
|
81
|
+
// d3.selectAll(d.incoming.map((d) => d.path))
|
|
81
82
|
// .attr('stroke', color.in)
|
|
82
83
|
// .raise();
|
|
83
|
-
// selectAll((d as any).incoming.map(([d]) => d.text))
|
|
84
|
+
// d3.selectAll((d as any).incoming.map(([d]) => d.text))
|
|
84
85
|
// .attr('fill', color.in)
|
|
85
86
|
// .attr('font-weight', 'bold');
|
|
86
|
-
// selectAll(d.outgoing.map((d) => d.path))
|
|
87
|
+
// d3.selectAll(d.outgoing.map((d) => d.path))
|
|
87
88
|
// .attr('stroke', color.out)
|
|
88
89
|
// .raise();
|
|
89
|
-
// selectAll(d.outgoing.map(([, d]) => d.text))
|
|
90
|
+
// d3.selectAll(d.outgoing.map(([, d]) => d.text))
|
|
90
91
|
// .attr('fill', color.out)
|
|
91
92
|
// .attr('font-weight', 'bold');
|
|
92
93
|
// }
|
|
93
94
|
|
|
94
95
|
// function outed(event: any, d: HierarchyNode<Datum>) {
|
|
95
96
|
// // @ts-ignore
|
|
96
|
-
// select(this).attr('font-weight', null);
|
|
97
|
-
// selectAll(d.incoming.map((d) => d.path)).attr('stroke', null);
|
|
98
|
-
// selectAll(d.incoming.map(([d]) => d.text))
|
|
97
|
+
// d3.select(this).attr('font-weight', null);
|
|
98
|
+
// d3.selectAll(d.incoming.map((d) => d.path)).attr('stroke', null);
|
|
99
|
+
// d3.selectAll(d.incoming.map(([d]) => d.text))
|
|
99
100
|
// .attr('fill', null)
|
|
100
101
|
// .attr('font-weight', null);
|
|
101
|
-
// selectAll(d.outgoing.map((d) => d.path)).attr('stroke', null);
|
|
102
|
-
// selectAll(d.outgoing.map(([, d]) => d.text))
|
|
102
|
+
// d3.selectAll(d.outgoing.map((d) => d.path)).attr('stroke', null);
|
|
103
|
+
// d3.selectAll(d.outgoing.map(([, d]) => d.text))
|
|
103
104
|
// .attr('fill', null)
|
|
104
105
|
// .attr('font-weight', null);
|
|
105
106
|
// }
|
|
@@ -118,6 +119,7 @@ const addLinks = (root: HierarchyNode<TreeNode>) => {
|
|
|
118
119
|
|
|
119
120
|
for (const d of root.leaves()) {
|
|
120
121
|
// (d as any).incoming = [];
|
|
122
|
+
|
|
121
123
|
const parent = parents.get(d.data.id);
|
|
122
124
|
if (parent) {
|
|
123
125
|
// Skip the first node which is a placeholder created by flatten().
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Copyright 2022 Observable, Inc.
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import * as d3 from 'd3';
|
|
7
7
|
|
|
8
8
|
import { type TreeOptions } from '../Tree';
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ import { type TreeOptions } from '../Tree';
|
|
|
11
11
|
// https://observablehq.com/@d3/radial-tree
|
|
12
12
|
// https://observablehq.com/@d3/tree
|
|
13
13
|
const RadialTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {
|
|
14
|
-
const svg = select(s);
|
|
14
|
+
const svg = d3.select(s);
|
|
15
15
|
svg.selectAll('*').remove();
|
|
16
16
|
|
|
17
17
|
const {
|
|
@@ -23,7 +23,7 @@ const RadialTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {
|
|
|
23
23
|
|
|
24
24
|
const arc = 2 * Math.PI;
|
|
25
25
|
|
|
26
|
-
const root = hierarchy(data);
|
|
26
|
+
const root = d3.hierarchy(data);
|
|
27
27
|
|
|
28
28
|
// Sort the nodes.
|
|
29
29
|
// if (sort) {
|
|
@@ -35,7 +35,8 @@ const RadialTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {
|
|
|
35
35
|
const getLabel = label === null ? null : descendants.map((d) => label(d.data));
|
|
36
36
|
|
|
37
37
|
// Compute the layout.
|
|
38
|
-
const layout =
|
|
38
|
+
const layout = d3
|
|
39
|
+
.tree()
|
|
39
40
|
.size([arc, radius])
|
|
40
41
|
.separation((a: any, b: any) => (a.parent === b.parent ? 1 : 2) / a.depth);
|
|
41
42
|
layout(root);
|
|
@@ -49,7 +50,8 @@ const RadialTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {
|
|
|
49
50
|
.attr('class', slots?.path ?? '')
|
|
50
51
|
.attr(
|
|
51
52
|
'd',
|
|
52
|
-
|
|
53
|
+
d3
|
|
54
|
+
.linkRadial()
|
|
53
55
|
.angle((d: any) => d.x + Math.PI / 2)
|
|
54
56
|
.radius((d: any) => d.y) as any,
|
|
55
57
|
);
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
// Copyright 2021 Observable, Inc.
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import * as d3 from 'd3';
|
|
7
7
|
|
|
8
8
|
import { type TreeOptions } from '../Tree';
|
|
9
9
|
|
|
10
10
|
// Released under the ISC license.
|
|
11
11
|
// https://observablehq.com/@d3/tree
|
|
12
12
|
const TidyTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {
|
|
13
|
-
const svg = select(s);
|
|
13
|
+
const svg = d3.select(s);
|
|
14
14
|
svg.selectAll('*').remove();
|
|
15
15
|
|
|
16
16
|
const { label, width, height, r = 4, padding = 4, margin = 60, slots } = options;
|
|
17
17
|
|
|
18
|
-
const root = hierarchy(data);
|
|
18
|
+
const root = d3.hierarchy(data);
|
|
19
19
|
|
|
20
20
|
// Compute labels and titles.
|
|
21
21
|
const descendants = root.descendants();
|
|
@@ -24,7 +24,7 @@ const TidyTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {
|
|
|
24
24
|
// Compute the layout.
|
|
25
25
|
const dx = 16;
|
|
26
26
|
const dy = width / (root.height + padding);
|
|
27
|
-
const layout = tree().nodeSize([dx, dy]);
|
|
27
|
+
const layout = d3.tree().nodeSize([dx, dy]);
|
|
28
28
|
layout(root);
|
|
29
29
|
|
|
30
30
|
// Center the tree.
|
|
@@ -61,7 +61,8 @@ const TidyTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {
|
|
|
61
61
|
.attr('class', slots?.path ?? '')
|
|
62
62
|
.attr(
|
|
63
63
|
'd',
|
|
64
|
-
|
|
64
|
+
d3
|
|
65
|
+
.link(d3.curveBumpX)
|
|
65
66
|
.x((d: any) => d.y + oy)
|
|
66
67
|
.y((d: any) => d.x * sx) as any,
|
|
67
68
|
);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/intent-resolver.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { contributes, Capabilities, createResolver } from '@dxos/app-framework';\nimport { live } from '@dxos/live-object';\n\nimport { ExplorerAction, ViewType } from '../types';\n\nexport default () =>\n contributes(\n Capabilities.IntentResolver,\n createResolver({\n intent: ExplorerAction.Create,\n resolve: ({ name }) => ({\n data: { object: live(ViewType, { name, type: '' }) },\n }),\n }),\n );\n"],
|
|
5
|
-
"mappings": ";;;;;;;AAIA,SAASA,aAAaC,cAAcC,sBAAsB;AAC1D,SAASC,YAAY;AAIrB,IAAA,0BAAe,MACbC,YACEC,aAAaC,gBACbC,eAAe;EACbC,QAAQC,eAAeC;EACvBC,SAAS,CAAC,EAAEC,KAAI,OAAQ;IACtBC,MAAM;MAAEC,QAAQC,KAAKC,UAAU;QAAEJ;QAAMK,MAAM;MAAG,CAAA;IAAG;EACrD;AACF,CAAA,CAAA;",
|
|
6
|
-
"names": ["contributes", "Capabilities", "createResolver", "live", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "ExplorerAction", "Create", "resolve", "name", "data", "object", "live", "ViewType", "type"]
|
|
7
|
-
}
|