glassbrain 0.2.0-alpha.7 → 0.2.0-alpha.8
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/README.md +6 -7
- package/dist/chunks/{chunk-GZSWZSSE.js → chunk-3CNHFYHG.js} +1317 -1650
- package/dist/chunks/chunk-7PWRJEZT.js +35 -0
- package/dist/chunks/chunk-CHOCJIOD.js +1340 -0
- package/dist/chunks/chunk-DHYIMBHU.js +960 -0
- package/dist/chunks/{chunk-FNTYI7VP.js → chunk-NDUF3CBQ.js} +340 -996
- package/dist/cli/glassbrain.js +338 -142
- package/dist/cli/viewer.js +218 -213
- package/dist/core.d.ts +1 -0
- package/dist/core.js +50 -30
- package/dist/diff.d.ts +9 -1
- package/dist/edit.d.ts +10 -0
- package/dist/index.js +57 -37
- package/dist/internal.d.ts +1 -0
- package/dist/internal.js +98 -76
- package/dist/layers.d.ts +3 -1
- package/dist/lint-report.d.ts +70 -0
- package/dist/profile.d.ts +10 -2
- package/dist/react/DetailPanel.d.ts +31 -1
- package/dist/react/DetailPanel.js +8 -4
- package/dist/react/EdgeMark.d.ts +22 -0
- package/dist/react/EditPanel.d.ts +6 -6
- package/dist/react/GraphCanvas.d.ts +17 -6
- package/dist/react/GraphCanvas.js +4 -4
- package/dist/react/Inspector.d.ts +72 -0
- package/dist/react/ObjectRef.d.ts +12 -0
- package/dist/react/Toolbar.d.ts +10 -3
- package/dist/react/ZoomBoundary.d.ts +4 -0
- package/dist/react/camera.d.ts +7 -0
- package/dist/react/i18n.d.ts +2 -2
- package/dist/react/icons.d.ts +7 -3
- package/dist/react/input.d.ts +5 -3
- package/dist/react/useSubgraph.d.ts +15 -0
- package/dist/shell.d.ts +1 -0
- package/dist/strings.d.ts +23 -2
- package/dist/style.d.ts +2 -0
- package/dist/subgraph.d.ts +13 -0
- package/dist/tree.d.ts +1 -0
- package/dist/view.d.ts +3 -1
- package/package.json +1 -1
- package/dist/chunks/chunk-3KUNYSJE.js +0 -246
- package/dist/chunks/chunk-LK77SYCN.js +0 -100
- package/dist/chunks/chunk-Q35ZKWKF.js +0 -99
- package/dist/react/GlassPlanes.d.ts +0 -11
package/dist/core.d.ts
CHANGED
package/dist/core.js
CHANGED
|
@@ -1,24 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
|
-
childrenMap,
|
|
3
|
-
deriveLayers,
|
|
4
2
|
kindDistribution,
|
|
5
3
|
kindHeading,
|
|
6
|
-
kindSummary
|
|
4
|
+
kindSummary
|
|
5
|
+
} from "./chunks/chunk-7PWRJEZT.js";
|
|
6
|
+
import {
|
|
7
|
+
DEFAULT_ANIMATE,
|
|
8
|
+
DEFAULT_DIFF_LAYOUT,
|
|
9
|
+
FULL_VIEW,
|
|
10
|
+
childrenMap,
|
|
11
|
+
defaultProfile,
|
|
12
|
+
defineProfile,
|
|
13
|
+
deriveLayers,
|
|
14
|
+
isFiltering,
|
|
15
|
+
isNarrowing,
|
|
16
|
+
kindTable,
|
|
7
17
|
layerIndexOf,
|
|
8
|
-
|
|
9
|
-
|
|
18
|
+
layerView,
|
|
19
|
+
orderedChildren,
|
|
20
|
+
originView,
|
|
21
|
+
parsePhysical,
|
|
22
|
+
parseQuery,
|
|
23
|
+
parseSources,
|
|
24
|
+
planeView,
|
|
25
|
+
projectSubgraph,
|
|
26
|
+
queryMarker,
|
|
27
|
+
resolveView,
|
|
28
|
+
searchNodes,
|
|
29
|
+
subgraphFloors,
|
|
30
|
+
toBundle,
|
|
31
|
+
toPhysical,
|
|
32
|
+
validateModel,
|
|
33
|
+
validateModelBySource,
|
|
34
|
+
validateStructure
|
|
35
|
+
} from "./chunks/chunk-DHYIMBHU.js";
|
|
10
36
|
import {
|
|
11
37
|
CONTENT_SCALE,
|
|
12
38
|
DARK_THEME,
|
|
13
|
-
DEFAULT_ANIMATE,
|
|
14
|
-
DEFAULT_DIFF_LAYOUT,
|
|
15
39
|
DIFF_COLORS,
|
|
16
40
|
DIFF_FLAG,
|
|
17
41
|
DIFF_INK,
|
|
18
42
|
EDGE_W,
|
|
19
43
|
EMPTY_MODEL,
|
|
20
|
-
|
|
44
|
+
EN,
|
|
21
45
|
GK_CSS,
|
|
46
|
+
HOVER_FADE_MS,
|
|
22
47
|
KEPT_FLAG,
|
|
23
48
|
LABEL_MAX_EM,
|
|
24
49
|
LIGHT_THEME,
|
|
@@ -42,50 +67,35 @@ import {
|
|
|
42
67
|
cls,
|
|
43
68
|
countByKind,
|
|
44
69
|
defaultNodeColor,
|
|
45
|
-
defaultProfile,
|
|
46
|
-
defineProfile,
|
|
47
70
|
diffModels,
|
|
48
71
|
diffStyle,
|
|
72
|
+
edgeContent,
|
|
73
|
+
edgeContentChanged,
|
|
74
|
+
edgeKey,
|
|
49
75
|
edgeKindClass,
|
|
50
76
|
edgesOf,
|
|
51
77
|
graphStyle,
|
|
52
78
|
hasChanges,
|
|
53
79
|
indexModel,
|
|
54
|
-
isFiltering,
|
|
55
|
-
isNarrowing,
|
|
56
80
|
isNodeEl,
|
|
57
|
-
kindTable,
|
|
58
81
|
mergeSlices,
|
|
59
82
|
mixHex,
|
|
60
83
|
nodeClasses,
|
|
61
84
|
nodeDiameter,
|
|
62
85
|
nodeWeight,
|
|
63
|
-
originView,
|
|
64
86
|
originsOf,
|
|
65
87
|
originsOfNode,
|
|
66
88
|
paletteStyle,
|
|
67
|
-
parsePhysical,
|
|
68
|
-
parseQuery,
|
|
69
|
-
parseSources,
|
|
70
|
-
planeView,
|
|
71
89
|
plateColors,
|
|
72
|
-
|
|
73
|
-
resolveView,
|
|
74
|
-
searchNodes,
|
|
90
|
+
sameEdge,
|
|
75
91
|
shareT,
|
|
76
92
|
skeletonColor,
|
|
93
|
+
stable,
|
|
77
94
|
stepUnion,
|
|
78
95
|
themeColor,
|
|
79
|
-
toBundle,
|
|
80
|
-
toPhysical,
|
|
81
96
|
unionSides,
|
|
82
|
-
untheme
|
|
83
|
-
|
|
84
|
-
validateStructure
|
|
85
|
-
} from "./chunks/chunk-FNTYI7VP.js";
|
|
86
|
-
import {
|
|
87
|
-
EN
|
|
88
|
-
} from "./chunks/chunk-Q35ZKWKF.js";
|
|
97
|
+
untheme
|
|
98
|
+
} from "./chunks/chunk-NDUF3CBQ.js";
|
|
89
99
|
import "./chunks/chunk-ZA47FP7C.js";
|
|
90
100
|
export {
|
|
91
101
|
CONTENT_SCALE,
|
|
@@ -100,6 +110,7 @@ export {
|
|
|
100
110
|
EN,
|
|
101
111
|
FULL_VIEW,
|
|
102
112
|
GK_CSS,
|
|
113
|
+
HOVER_FADE_MS,
|
|
103
114
|
KEPT_FLAG,
|
|
104
115
|
LABEL_MAX_EM,
|
|
105
116
|
LIGHT_THEME,
|
|
@@ -129,6 +140,9 @@ export {
|
|
|
129
140
|
deriveLayers,
|
|
130
141
|
diffModels,
|
|
131
142
|
diffStyle,
|
|
143
|
+
edgeContent,
|
|
144
|
+
edgeContentChanged,
|
|
145
|
+
edgeKey,
|
|
132
146
|
edgeKindClass,
|
|
133
147
|
edgesOf,
|
|
134
148
|
graphStyle,
|
|
@@ -142,6 +156,7 @@ export {
|
|
|
142
156
|
kindSummary,
|
|
143
157
|
kindTable,
|
|
144
158
|
layerIndexOf,
|
|
159
|
+
layerView,
|
|
145
160
|
mergeSlices,
|
|
146
161
|
mixHex,
|
|
147
162
|
nodeClasses,
|
|
@@ -157,17 +172,22 @@ export {
|
|
|
157
172
|
parseSources,
|
|
158
173
|
planeView,
|
|
159
174
|
plateColors,
|
|
175
|
+
projectSubgraph,
|
|
160
176
|
queryMarker,
|
|
161
177
|
resolveView,
|
|
178
|
+
sameEdge,
|
|
162
179
|
searchNodes,
|
|
163
180
|
shareT,
|
|
164
181
|
skeletonColor,
|
|
182
|
+
stable,
|
|
165
183
|
stepUnion,
|
|
184
|
+
subgraphFloors,
|
|
166
185
|
themeColor,
|
|
167
186
|
toBundle,
|
|
168
187
|
toPhysical,
|
|
169
188
|
unionSides,
|
|
170
189
|
untheme,
|
|
171
190
|
validateModel,
|
|
191
|
+
validateModelBySource,
|
|
172
192
|
validateStructure
|
|
173
193
|
};
|
package/dist/diff.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type GraphModel, type GraphNode } from './model.js';
|
|
1
|
+
import { type GraphEdge, type GraphModel, type GraphNode } from './model.js';
|
|
2
2
|
export type ChangeKind = 'added' | 'removed' | 'changed' | 'moved' | 'merged';
|
|
3
3
|
/** Change mark -> node flag (and so a cytoscape class). The `gb-` prefix is reserved by the core. */
|
|
4
4
|
export declare const DIFF_FLAG: Record<ChangeKind, string>;
|
|
@@ -53,6 +53,8 @@ export interface NodeChange {
|
|
|
53
53
|
amount?: number;
|
|
54
54
|
}
|
|
55
55
|
export interface GraphDelta {
|
|
56
|
+
/** Preserve identity and field rules when comparing a projection of these versions. */
|
|
57
|
+
options?: DiffOptions;
|
|
56
58
|
/** The union model. Nodes carry diff flags; layout and rendering only ever see this one. */
|
|
57
59
|
model: GraphModel;
|
|
58
60
|
changes: NodeChange[];
|
|
@@ -80,7 +82,13 @@ export interface GraphDelta {
|
|
|
80
82
|
*/
|
|
81
83
|
before: GraphModel;
|
|
82
84
|
after: GraphModel;
|
|
85
|
+
ignore?: string[];
|
|
83
86
|
}
|
|
87
|
+
export declare const stable: (v: unknown, ignore: Set<string>) => string;
|
|
88
|
+
export declare const edgeKey: (e: GraphEdge) => string;
|
|
89
|
+
/** Endpoints and kind form the identity. Native input also carries them in the raw record. */
|
|
90
|
+
export declare function edgeContent(edge: GraphEdge): Record<string, unknown>;
|
|
91
|
+
export declare function edgeContentChanged(before: GraphEdge, after: GraphEdge, ignore: Set<string>): boolean;
|
|
84
92
|
/**
|
|
85
93
|
* Two model versions -> union model + change list.
|
|
86
94
|
*
|
package/dist/edit.d.ts
CHANGED
|
@@ -36,11 +36,21 @@ export type EditOp =
|
|
|
36
36
|
} | {
|
|
37
37
|
op: 'addEdge';
|
|
38
38
|
edge: EdgeFields;
|
|
39
|
+
origin?: string;
|
|
40
|
+
} | {
|
|
41
|
+
op: 'updateEdge';
|
|
42
|
+
edge: EdgeRef;
|
|
43
|
+
set: Partial<EdgeRef & {
|
|
44
|
+
label: string;
|
|
45
|
+
}>;
|
|
39
46
|
} | {
|
|
40
47
|
op: 'removeEdge';
|
|
41
48
|
edge: EdgeRef;
|
|
42
49
|
};
|
|
43
50
|
export type EditError = 'invalid-position' | 'order-invalid' | 'id-empty' | 'id-taken' | 'no-node' | 'no-parent' | 'cycle' | 'has-children' | 'no-endpoint' | 'self-loop' | 'edge-exists' | 'no-edge';
|
|
51
|
+
/** An edge is defined by its two ends + kind (as in compare; `id` takes no part). Several with the same ends and kind are one edge written several times,
|
|
52
|
+
* deleted together; validation reports such duplicates (see `validateStructure`). */
|
|
53
|
+
export declare const sameEdge: (e: GraphEdge, r: EdgeRef) => boolean;
|
|
44
54
|
/** Whether this op can be applied. null = yes; otherwise the reason (the UI looks it up in `strings.error`). */
|
|
45
55
|
export declare function checkEdit(model: GraphModel, op: EditOp): EditError | null;
|
|
46
56
|
/** How many edges hang on a node (the ones that go with it when it is deleted). */
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import "./chunks/chunk-SA6RSWZP.js";
|
|
3
3
|
import {
|
|
4
|
-
childrenMap,
|
|
5
|
-
deriveLayers,
|
|
6
4
|
kindDistribution,
|
|
7
5
|
kindHeading,
|
|
8
|
-
kindSummary
|
|
9
|
-
|
|
10
|
-
orderedChildren
|
|
11
|
-
} from "./chunks/chunk-LK77SYCN.js";
|
|
6
|
+
kindSummary
|
|
7
|
+
} from "./chunks/chunk-7PWRJEZT.js";
|
|
12
8
|
import {
|
|
13
9
|
ALL_CONTROLS,
|
|
14
10
|
DEFAULT_PLANES,
|
|
@@ -17,19 +13,53 @@ import {
|
|
|
17
13
|
clearLayoutCache,
|
|
18
14
|
computeLayout,
|
|
19
15
|
projectPlanes
|
|
20
|
-
} from "./chunks/chunk-
|
|
16
|
+
} from "./chunks/chunk-3CNHFYHG.js";
|
|
21
17
|
import {
|
|
22
|
-
CONTENT_SCALE,
|
|
23
|
-
DARK_THEME,
|
|
24
18
|
DEFAULT_ANIMATE,
|
|
25
19
|
DEFAULT_DIFF_LAYOUT,
|
|
20
|
+
FULL_VIEW,
|
|
21
|
+
childrenMap,
|
|
22
|
+
defaultProfile,
|
|
23
|
+
defineProfile,
|
|
24
|
+
deriveLayers,
|
|
25
|
+
isFiltering,
|
|
26
|
+
isNarrowing,
|
|
27
|
+
kindTable,
|
|
28
|
+
layerIndexOf,
|
|
29
|
+
layerView,
|
|
30
|
+
orderedChildren,
|
|
31
|
+
originView,
|
|
32
|
+
parsePhysical,
|
|
33
|
+
parseQuery,
|
|
34
|
+
parseSources,
|
|
35
|
+
planeView,
|
|
36
|
+
projectSubgraph,
|
|
37
|
+
queryMarker,
|
|
38
|
+
resolveView,
|
|
39
|
+
searchNodes,
|
|
40
|
+
subgraphFloors,
|
|
41
|
+
toBundle,
|
|
42
|
+
toPhysical,
|
|
43
|
+
validateModel,
|
|
44
|
+
validateModelBySource,
|
|
45
|
+
validateStructure
|
|
46
|
+
} from "./chunks/chunk-DHYIMBHU.js";
|
|
47
|
+
import {
|
|
48
|
+
DetailPanel,
|
|
49
|
+
renderInline,
|
|
50
|
+
renderMarkdown
|
|
51
|
+
} from "./chunks/chunk-CHOCJIOD.js";
|
|
52
|
+
import {
|
|
53
|
+
CONTENT_SCALE,
|
|
54
|
+
DARK_THEME,
|
|
26
55
|
DIFF_COLORS,
|
|
27
56
|
DIFF_FLAG,
|
|
28
57
|
DIFF_INK,
|
|
29
58
|
EDGE_W,
|
|
30
59
|
EMPTY_MODEL,
|
|
31
|
-
|
|
60
|
+
EN,
|
|
32
61
|
GK_CSS,
|
|
62
|
+
HOVER_FADE_MS,
|
|
33
63
|
KEPT_FLAG,
|
|
34
64
|
LABEL_MAX_EM,
|
|
35
65
|
LIGHT_THEME,
|
|
@@ -53,55 +83,35 @@ import {
|
|
|
53
83
|
cls,
|
|
54
84
|
countByKind,
|
|
55
85
|
defaultNodeColor,
|
|
56
|
-
defaultProfile,
|
|
57
|
-
defineProfile,
|
|
58
86
|
diffModels,
|
|
59
87
|
diffStyle,
|
|
88
|
+
edgeContent,
|
|
89
|
+
edgeContentChanged,
|
|
90
|
+
edgeKey,
|
|
60
91
|
edgeKindClass,
|
|
61
92
|
edgesOf,
|
|
62
93
|
graphStyle,
|
|
63
94
|
hasChanges,
|
|
64
95
|
indexModel,
|
|
65
|
-
isFiltering,
|
|
66
|
-
isNarrowing,
|
|
67
96
|
isNodeEl,
|
|
68
|
-
kindTable,
|
|
69
97
|
mergeSlices,
|
|
70
98
|
mixHex,
|
|
71
99
|
nodeClasses,
|
|
72
100
|
nodeDiameter,
|
|
73
101
|
nodeWeight,
|
|
74
|
-
originView,
|
|
75
102
|
originsOf,
|
|
76
103
|
originsOfNode,
|
|
77
104
|
paletteStyle,
|
|
78
|
-
parsePhysical,
|
|
79
|
-
parseQuery,
|
|
80
|
-
parseSources,
|
|
81
|
-
planeView,
|
|
82
105
|
plateColors,
|
|
83
|
-
|
|
84
|
-
resolveView,
|
|
85
|
-
searchNodes,
|
|
106
|
+
sameEdge,
|
|
86
107
|
shareT,
|
|
87
108
|
skeletonColor,
|
|
109
|
+
stable,
|
|
88
110
|
stepUnion,
|
|
89
111
|
themeColor,
|
|
90
|
-
toBundle,
|
|
91
|
-
toPhysical,
|
|
92
112
|
unionSides,
|
|
93
|
-
untheme
|
|
94
|
-
|
|
95
|
-
validateStructure
|
|
96
|
-
} from "./chunks/chunk-FNTYI7VP.js";
|
|
97
|
-
import {
|
|
98
|
-
DetailPanel,
|
|
99
|
-
renderInline,
|
|
100
|
-
renderMarkdown
|
|
101
|
-
} from "./chunks/chunk-3KUNYSJE.js";
|
|
102
|
-
import {
|
|
103
|
-
EN
|
|
104
|
-
} from "./chunks/chunk-Q35ZKWKF.js";
|
|
113
|
+
untheme
|
|
114
|
+
} from "./chunks/chunk-NDUF3CBQ.js";
|
|
105
115
|
import "./chunks/chunk-OE5IRKWZ.js";
|
|
106
116
|
import "./chunks/chunk-ZA47FP7C.js";
|
|
107
117
|
export {
|
|
@@ -121,6 +131,7 @@ export {
|
|
|
121
131
|
FULL_VIEW,
|
|
122
132
|
GK_CSS,
|
|
123
133
|
GraphCanvas,
|
|
134
|
+
HOVER_FADE_MS,
|
|
124
135
|
KEPT_FLAG,
|
|
125
136
|
LABEL_MAX_EM,
|
|
126
137
|
LIGHT_THEME,
|
|
@@ -153,6 +164,9 @@ export {
|
|
|
153
164
|
deriveLayers,
|
|
154
165
|
diffModels,
|
|
155
166
|
diffStyle,
|
|
167
|
+
edgeContent,
|
|
168
|
+
edgeContentChanged,
|
|
169
|
+
edgeKey,
|
|
156
170
|
edgeKindClass,
|
|
157
171
|
edgesOf,
|
|
158
172
|
graphStyle,
|
|
@@ -166,6 +180,7 @@ export {
|
|
|
166
180
|
kindSummary,
|
|
167
181
|
kindTable,
|
|
168
182
|
layerIndexOf,
|
|
183
|
+
layerView,
|
|
169
184
|
mergeSlices,
|
|
170
185
|
mixHex,
|
|
171
186
|
nodeClasses,
|
|
@@ -182,19 +197,24 @@ export {
|
|
|
182
197
|
planeView,
|
|
183
198
|
plateColors,
|
|
184
199
|
projectPlanes,
|
|
200
|
+
projectSubgraph,
|
|
185
201
|
queryMarker,
|
|
186
202
|
renderInline,
|
|
187
203
|
renderMarkdown,
|
|
188
204
|
resolveView,
|
|
205
|
+
sameEdge,
|
|
189
206
|
searchNodes,
|
|
190
207
|
shareT,
|
|
191
208
|
skeletonColor,
|
|
209
|
+
stable,
|
|
192
210
|
stepUnion,
|
|
211
|
+
subgraphFloors,
|
|
193
212
|
themeColor,
|
|
194
213
|
toBundle,
|
|
195
214
|
toPhysical,
|
|
196
215
|
unionSides,
|
|
197
216
|
untheme,
|
|
198
217
|
validateModel,
|
|
218
|
+
validateModelBySource,
|
|
199
219
|
validateStructure
|
|
200
220
|
};
|
package/dist/internal.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export { planLabels, labelBox, idPhase, type LabelInput, type LabelPlan, type La
|
|
|
7
7
|
export { edgeKindHidden, shapeOf, arrowOf, type Shape as PaintShape, type Arrow as PaintArrow, dotOf, gapOf, skeletonLineOf, semanticAlphaOf, clippedLength, hazeOf, detailed, reachOf, hittable, focusAlphaOf, MIN_DOT, MIN_LINE, SKEL_FLOOR, SEM_W, SEM_INK, SEM_BOOST, DETAIL_LEAF, GAP, HOVER_DIM, HOLD_LEAF, NODE_SLACK, EDGE_REACH, FOCUS_INK, } from './paint.js';
|
|
8
8
|
export { touchGestures } from './react/touch.js';
|
|
9
9
|
export { placePanel } from './react/placement.js';
|
|
10
|
+
export { frameTranslation } from './react/camera.js';
|
package/dist/internal.js
CHANGED
|
@@ -1,23 +1,89 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import "./chunks/chunk-SA6RSWZP.js";
|
|
3
3
|
import {
|
|
4
|
-
childrenMap,
|
|
5
|
-
deriveLayers,
|
|
6
4
|
kindDistribution,
|
|
7
5
|
kindHeading,
|
|
8
|
-
kindSummary
|
|
9
|
-
|
|
10
|
-
orderedChildren
|
|
11
|
-
} from "./chunks/chunk-LK77SYCN.js";
|
|
6
|
+
kindSummary
|
|
7
|
+
} from "./chunks/chunk-7PWRJEZT.js";
|
|
12
8
|
import {
|
|
13
9
|
ALL_CONTROLS,
|
|
14
10
|
DEFAULT_PLANES,
|
|
15
|
-
DETAIL_LEAF,
|
|
16
11
|
DiffOverlay,
|
|
12
|
+
GraphCanvas,
|
|
13
|
+
applyLook,
|
|
14
|
+
clearLayoutCache,
|
|
15
|
+
computeLayout,
|
|
16
|
+
frameTranslation,
|
|
17
|
+
idPhase,
|
|
18
|
+
labelBox,
|
|
19
|
+
placePanel,
|
|
20
|
+
planLabels,
|
|
21
|
+
projectPlanes,
|
|
22
|
+
relaxNodes,
|
|
23
|
+
relaxOverlaps,
|
|
24
|
+
touchGestures
|
|
25
|
+
} from "./chunks/chunk-3CNHFYHG.js";
|
|
26
|
+
import {
|
|
27
|
+
DEFAULT_ANIMATE,
|
|
28
|
+
DEFAULT_DIFF_LAYOUT,
|
|
29
|
+
ENVELOPES,
|
|
30
|
+
FADE_BASE,
|
|
31
|
+
FADE_NAMES,
|
|
32
|
+
FULL_VIEW,
|
|
33
|
+
SNAP_DIM,
|
|
34
|
+
TRACK_NAMES,
|
|
35
|
+
anchorOf,
|
|
36
|
+
childrenMap,
|
|
37
|
+
defaultProfile,
|
|
38
|
+
defineProfile,
|
|
39
|
+
deriveLayers,
|
|
40
|
+
diffPositions,
|
|
41
|
+
diffSkinStyle,
|
|
42
|
+
easeDrift,
|
|
43
|
+
easeInOutCubic,
|
|
44
|
+
easeOutBack,
|
|
45
|
+
easeOutCubic,
|
|
46
|
+
edgeFade,
|
|
47
|
+
edgeTraffic,
|
|
48
|
+
fadeAt,
|
|
49
|
+
isFiltering,
|
|
50
|
+
isNarrowing,
|
|
51
|
+
kindTable,
|
|
52
|
+
layerIndexOf,
|
|
53
|
+
layerView,
|
|
54
|
+
leavingOf,
|
|
55
|
+
makeScore,
|
|
56
|
+
orderedChildren,
|
|
57
|
+
originView,
|
|
58
|
+
parsePhysical,
|
|
59
|
+
parseQuery,
|
|
60
|
+
parseSources,
|
|
61
|
+
planSkins,
|
|
62
|
+
planTransition,
|
|
63
|
+
planeView,
|
|
64
|
+
projectSubgraph,
|
|
65
|
+
queryMarker,
|
|
66
|
+
resolveSpec,
|
|
67
|
+
resolveView,
|
|
68
|
+
sampleSkinStyle,
|
|
69
|
+
sampleTransition,
|
|
70
|
+
searchNodes,
|
|
71
|
+
solveDiffLayout,
|
|
72
|
+
subgraphFloors,
|
|
73
|
+
toBundle,
|
|
74
|
+
toPhysical,
|
|
75
|
+
trackAt,
|
|
76
|
+
trackLin,
|
|
77
|
+
validateModel,
|
|
78
|
+
validateModelBySource,
|
|
79
|
+
validateStructure
|
|
80
|
+
} from "./chunks/chunk-DHYIMBHU.js";
|
|
81
|
+
import {
|
|
82
|
+
DETAIL_LEAF,
|
|
83
|
+
DetailPanel,
|
|
17
84
|
EDGE_REACH,
|
|
18
85
|
FOCUS_INK,
|
|
19
86
|
GAP,
|
|
20
|
-
GraphCanvas,
|
|
21
87
|
HOLD_LEAF,
|
|
22
88
|
HOVER_DIM,
|
|
23
89
|
MIN_DOT,
|
|
@@ -27,11 +93,8 @@ import {
|
|
|
27
93
|
SEM_INK,
|
|
28
94
|
SEM_W,
|
|
29
95
|
SKEL_FLOOR,
|
|
30
|
-
applyLook,
|
|
31
96
|
arrowOf,
|
|
32
|
-
clearLayoutCache,
|
|
33
97
|
clippedLength,
|
|
34
|
-
computeLayout,
|
|
35
98
|
detailed,
|
|
36
99
|
dotOf,
|
|
37
100
|
edgeKindHidden,
|
|
@@ -39,34 +102,24 @@ import {
|
|
|
39
102
|
gapOf,
|
|
40
103
|
hazeOf,
|
|
41
104
|
hittable,
|
|
42
|
-
idPhase,
|
|
43
|
-
labelBox,
|
|
44
|
-
placePanel,
|
|
45
|
-
planLabels,
|
|
46
|
-
projectPlanes,
|
|
47
105
|
reachOf,
|
|
48
|
-
|
|
49
|
-
|
|
106
|
+
renderInline,
|
|
107
|
+
renderMarkdown,
|
|
50
108
|
semanticAlphaOf,
|
|
51
109
|
shapeOf,
|
|
52
|
-
skeletonLineOf
|
|
53
|
-
|
|
54
|
-
} from "./chunks/chunk-GZSWZSSE.js";
|
|
110
|
+
skeletonLineOf
|
|
111
|
+
} from "./chunks/chunk-CHOCJIOD.js";
|
|
55
112
|
import {
|
|
56
113
|
CONTENT_SCALE,
|
|
57
114
|
DARK_THEME,
|
|
58
|
-
DEFAULT_ANIMATE,
|
|
59
|
-
DEFAULT_DIFF_LAYOUT,
|
|
60
115
|
DIFF_COLORS,
|
|
61
116
|
DIFF_FLAG,
|
|
62
117
|
DIFF_INK,
|
|
63
118
|
EDGE_W,
|
|
64
119
|
EMPTY_MODEL,
|
|
65
|
-
|
|
66
|
-
FADE_BASE,
|
|
67
|
-
FADE_NAMES,
|
|
68
|
-
FULL_VIEW,
|
|
120
|
+
EN,
|
|
69
121
|
GK_CSS,
|
|
122
|
+
HOVER_FADE_MS,
|
|
70
123
|
KEPT_FLAG,
|
|
71
124
|
LABEL_MAX_EM,
|
|
72
125
|
LIGHT_THEME,
|
|
@@ -74,13 +127,10 @@ import {
|
|
|
74
127
|
PAST_KINDS,
|
|
75
128
|
PLANE_HUES,
|
|
76
129
|
RESERVED_CLASSES,
|
|
77
|
-
SNAP_DIM,
|
|
78
130
|
STEP_FLAG,
|
|
79
131
|
STEP_KEPT,
|
|
80
|
-
TRACK_NAMES,
|
|
81
132
|
VIRTUAL_ROOT,
|
|
82
133
|
addOrigin,
|
|
83
|
-
anchorOf,
|
|
84
134
|
applyEdit,
|
|
85
135
|
applyEdits,
|
|
86
136
|
baseStyle,
|
|
@@ -93,74 +143,35 @@ import {
|
|
|
93
143
|
cls,
|
|
94
144
|
countByKind,
|
|
95
145
|
defaultNodeColor,
|
|
96
|
-
defaultProfile,
|
|
97
|
-
defineProfile,
|
|
98
146
|
diffModels,
|
|
99
|
-
diffPositions,
|
|
100
|
-
diffSkinStyle,
|
|
101
147
|
diffStyle,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
easeOutCubic,
|
|
106
|
-
edgeFade,
|
|
148
|
+
edgeContent,
|
|
149
|
+
edgeContentChanged,
|
|
150
|
+
edgeKey,
|
|
107
151
|
edgeKindClass,
|
|
108
|
-
edgeTraffic,
|
|
109
152
|
edgesOf,
|
|
110
|
-
fadeAt,
|
|
111
153
|
graphStyle,
|
|
112
154
|
hasChanges,
|
|
113
155
|
indexModel,
|
|
114
|
-
isFiltering,
|
|
115
|
-
isNarrowing,
|
|
116
156
|
isNodeEl,
|
|
117
|
-
kindTable,
|
|
118
|
-
leavingOf,
|
|
119
|
-
makeScore,
|
|
120
157
|
mergeSlices,
|
|
121
158
|
mixHex,
|
|
122
159
|
nodeClasses,
|
|
123
160
|
nodeDiameter,
|
|
124
161
|
nodeWeight,
|
|
125
|
-
originView,
|
|
126
162
|
originsOf,
|
|
127
163
|
originsOfNode,
|
|
128
164
|
paletteStyle,
|
|
129
|
-
parsePhysical,
|
|
130
|
-
parseQuery,
|
|
131
|
-
parseSources,
|
|
132
|
-
planSkins,
|
|
133
|
-
planTransition,
|
|
134
|
-
planeView,
|
|
135
165
|
plateColors,
|
|
136
|
-
|
|
137
|
-
resolveSpec,
|
|
138
|
-
resolveView,
|
|
139
|
-
sampleSkinStyle,
|
|
140
|
-
sampleTransition,
|
|
141
|
-
searchNodes,
|
|
166
|
+
sameEdge,
|
|
142
167
|
shareT,
|
|
143
168
|
skeletonColor,
|
|
144
|
-
|
|
169
|
+
stable,
|
|
145
170
|
stepUnion,
|
|
146
171
|
themeColor,
|
|
147
|
-
toBundle,
|
|
148
|
-
toPhysical,
|
|
149
|
-
trackAt,
|
|
150
|
-
trackLin,
|
|
151
172
|
unionSides,
|
|
152
|
-
untheme
|
|
153
|
-
|
|
154
|
-
validateStructure
|
|
155
|
-
} from "./chunks/chunk-FNTYI7VP.js";
|
|
156
|
-
import {
|
|
157
|
-
DetailPanel,
|
|
158
|
-
renderInline,
|
|
159
|
-
renderMarkdown
|
|
160
|
-
} from "./chunks/chunk-3KUNYSJE.js";
|
|
161
|
-
import {
|
|
162
|
-
EN
|
|
163
|
-
} from "./chunks/chunk-Q35ZKWKF.js";
|
|
173
|
+
untheme
|
|
174
|
+
} from "./chunks/chunk-NDUF3CBQ.js";
|
|
164
175
|
import "./chunks/chunk-OE5IRKWZ.js";
|
|
165
176
|
import "./chunks/chunk-ZA47FP7C.js";
|
|
166
177
|
export {
|
|
@@ -190,6 +201,7 @@ export {
|
|
|
190
201
|
GraphCanvas,
|
|
191
202
|
HOLD_LEAF,
|
|
192
203
|
HOVER_DIM,
|
|
204
|
+
HOVER_FADE_MS,
|
|
193
205
|
KEPT_FLAG,
|
|
194
206
|
LABEL_MAX_EM,
|
|
195
207
|
LIGHT_THEME,
|
|
@@ -242,13 +254,17 @@ export {
|
|
|
242
254
|
easeInOutCubic,
|
|
243
255
|
easeOutBack,
|
|
244
256
|
easeOutCubic,
|
|
257
|
+
edgeContent,
|
|
258
|
+
edgeContentChanged,
|
|
245
259
|
edgeFade,
|
|
260
|
+
edgeKey,
|
|
246
261
|
edgeKindClass,
|
|
247
262
|
edgeKindHidden,
|
|
248
263
|
edgeTraffic,
|
|
249
264
|
edgesOf,
|
|
250
265
|
fadeAt,
|
|
251
266
|
focusAlphaOf,
|
|
267
|
+
frameTranslation,
|
|
252
268
|
gapOf,
|
|
253
269
|
graphStyle,
|
|
254
270
|
hasChanges,
|
|
@@ -265,6 +281,7 @@ export {
|
|
|
265
281
|
kindTable,
|
|
266
282
|
labelBox,
|
|
267
283
|
layerIndexOf,
|
|
284
|
+
layerView,
|
|
268
285
|
leavingOf,
|
|
269
286
|
makeScore,
|
|
270
287
|
mergeSlices,
|
|
@@ -287,6 +304,7 @@ export {
|
|
|
287
304
|
planeView,
|
|
288
305
|
plateColors,
|
|
289
306
|
projectPlanes,
|
|
307
|
+
projectSubgraph,
|
|
290
308
|
queryMarker,
|
|
291
309
|
reachOf,
|
|
292
310
|
relaxNodes,
|
|
@@ -295,6 +313,7 @@ export {
|
|
|
295
313
|
renderMarkdown,
|
|
296
314
|
resolveSpec,
|
|
297
315
|
resolveView,
|
|
316
|
+
sameEdge,
|
|
298
317
|
sampleSkinStyle,
|
|
299
318
|
sampleTransition,
|
|
300
319
|
searchNodes,
|
|
@@ -304,7 +323,9 @@ export {
|
|
|
304
323
|
skeletonColor,
|
|
305
324
|
skeletonLineOf,
|
|
306
325
|
solveDiffLayout,
|
|
326
|
+
stable,
|
|
307
327
|
stepUnion,
|
|
328
|
+
subgraphFloors,
|
|
308
329
|
themeColor,
|
|
309
330
|
toBundle,
|
|
310
331
|
toPhysical,
|
|
@@ -314,5 +335,6 @@ export {
|
|
|
314
335
|
unionSides,
|
|
315
336
|
untheme,
|
|
316
337
|
validateModel,
|
|
338
|
+
validateModelBySource,
|
|
317
339
|
validateStructure
|
|
318
340
|
};
|