@moxa/graph 3.0.0-beta.1 → 3.0.0-beta.11
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 +615 -114
- package/assets/icon-sprite.svg +1 -1
- package/behaviors/click-select/index.d.ts.map +1 -1
- package/behaviors/drag-element/index.d.ts.map +1 -1
- package/behaviors/drill-down/drill-down-manager.d.ts +55 -0
- package/behaviors/drill-down/drill-down-manager.d.ts.map +1 -0
- package/behaviors/drill-down/index.d.ts +71 -0
- package/behaviors/drill-down/index.d.ts.map +1 -0
- package/behaviors/drill-down/models/index.d.ts +7 -0
- package/behaviors/drill-down/models/index.d.ts.map +1 -0
- package/behaviors/hover-activate/index.d.ts.map +1 -1
- package/components/edge-arrow/transforms/index.d.ts.map +1 -1
- package/components/edge-label/index.d.ts +4 -4
- package/components/edge-label/index.d.ts.map +1 -1
- package/components/edge-label/utils/style.d.ts.map +1 -1
- package/components/edge-line/index.d.ts.map +1 -1
- package/components/edge-polyline/index.d.ts.map +1 -1
- package/components/edge-quadratic/index.d.ts.map +1 -1
- package/components/group-device/index.d.ts +34 -0
- package/components/group-device/index.d.ts.map +1 -1
- package/components/group-device/models/index.d.ts +11 -1
- package/components/group-device/models/index.d.ts.map +1 -1
- package/components/group-device/transforms/index.d.ts.map +1 -1
- package/components/group-device/utils/style.d.ts.map +1 -1
- package/components/node-device/models/index.d.ts +2 -0
- package/components/node-device/models/index.d.ts.map +1 -1
- package/components/node-device/utils/style.d.ts.map +1 -1
- package/components/node-label/index.d.ts +1 -1
- package/components/node-label/index.d.ts.map +1 -1
- package/components/shared/transforms/edge-transform.d.ts.map +1 -1
- package/components/shared/transforms/group-transform.d.ts.map +1 -1
- package/components/shared/transforms/node-transform.d.ts.map +1 -1
- package/components/shared/utils/edge-utils/index.d.ts +1 -0
- package/components/shared/utils/edge-utils/index.d.ts.map +1 -1
- package/components/shared/utils/edge-utils/state-style.d.ts +24 -0
- package/components/shared/utils/edge-utils/state-style.d.ts.map +1 -0
- package/components/shared/utils/edge-utils/style.d.ts +19 -1
- package/components/shared/utils/edge-utils/style.d.ts.map +1 -1
- package/components/shared/utils/group-utils/drill-icon.d.ts +10 -0
- package/components/shared/utils/group-utils/drill-icon.d.ts.map +1 -0
- package/components/shared/utils/group-utils/index.d.ts +3 -0
- package/components/shared/utils/group-utils/index.d.ts.map +1 -0
- package/components/shared/utils/group-utils/label-background.d.ts +10 -0
- package/components/shared/utils/group-utils/label-background.d.ts.map +1 -0
- package/components/shared/utils/index.d.ts +1 -0
- package/components/shared/utils/index.d.ts.map +1 -1
- package/components/shared/utils/node-utils/config.d.ts +27 -0
- package/components/shared/utils/node-utils/config.d.ts.map +1 -0
- package/components/shared/utils/node-utils/icon-style.d.ts.map +1 -1
- package/components/shared/utils/node-utils/index.d.ts +6 -5
- package/components/shared/utils/node-utils/index.d.ts.map +1 -1
- package/components/shared/utils/node-utils/label-background.d.ts.map +1 -1
- package/components/shared/utils/node-utils/offset.d.ts +2 -6
- package/components/shared/utils/node-utils/offset.d.ts.map +1 -1
- package/components/shared/utils/node-utils/state-styles.d.ts +64 -0
- package/components/shared/utils/node-utils/state-styles.d.ts.map +1 -0
- package/components/shared/utils/node-utils/status-style.d.ts.map +1 -1
- package/components/shared/utils/node-utils/text-style.d.ts.map +1 -1
- package/components/shared/utils/node-utils/theme.d.ts +1 -1
- package/components/shared/utils/node-utils/theme.d.ts.map +1 -1
- package/components/shared/utils/node-utils/title-style.d.ts.map +1 -1
- package/core/graph/graph.d.ts +218 -187
- package/core/graph/graph.d.ts.map +1 -1
- package/core/model/behavior.model.d.ts +6 -2
- package/core/model/behavior.model.d.ts.map +1 -1
- package/core/model/edge.model.d.ts +221 -0
- package/core/model/edge.model.d.ts.map +1 -1
- package/core/model/event.model.d.ts +7 -1
- package/core/model/event.model.d.ts.map +1 -1
- package/core/model/group.model.d.ts +57 -0
- package/core/model/group.model.d.ts.map +1 -1
- package/core/model/index.d.ts +1 -0
- package/core/model/index.d.ts.map +1 -1
- package/core/model/label.model.d.ts +2 -1
- package/core/model/label.model.d.ts.map +1 -1
- package/core/model/node.model.d.ts +106 -0
- package/core/model/node.model.d.ts.map +1 -1
- package/core/model/plugin.model.d.ts +6 -2
- package/core/model/plugin.model.d.ts.map +1 -1
- package/core/model/state.model.d.ts +1 -1
- package/core/model/state.model.d.ts.map +1 -1
- package/core/model/text.model.d.ts +5 -0
- package/core/model/text.model.d.ts.map +1 -0
- package/index.cjs +77 -77
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +19959 -18690
- package/layouts/grid/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/plugins/context-menu/index.d.ts +11 -1
- package/plugins/context-menu/index.d.ts.map +1 -1
- package/plugins/history/config/command-filter.d.ts +5 -0
- package/plugins/history/config/command-filter.d.ts.map +1 -0
- package/plugins/history/config/drill-integration.d.ts +7 -0
- package/plugins/history/config/drill-integration.d.ts.map +1 -0
- package/plugins/history/config/history-options.d.ts +4 -0
- package/plugins/history/config/history-options.d.ts.map +1 -0
- package/plugins/history/history.model.d.ts +5 -0
- package/plugins/history/history.model.d.ts.map +1 -0
- package/plugins/history/index.d.ts +8 -6
- package/plugins/history/index.d.ts.map +1 -1
- package/plugins/index.d.ts +10 -0
- package/plugins/index.d.ts.map +1 -0
- package/plugins/minimap/index.d.ts +3 -2
- package/plugins/minimap/index.d.ts.map +1 -1
- package/plugins/rich-tooltip/index.d.ts +11 -0
- package/plugins/rich-tooltip/index.d.ts.map +1 -0
- package/plugins/snapline/index.d.ts +130 -2
- package/plugins/snapline/index.d.ts.map +1 -1
- package/plugins/snapline/models/index.d.ts +1 -1
- package/plugins/snapline/models/index.d.ts.map +1 -1
- package/plugins/snapline/models/snapline-models.d.ts +61 -0
- package/plugins/snapline/models/snapline-models.d.ts.map +1 -0
- package/plugins/tooltip/index.d.ts +1 -2
- package/plugins/tooltip/index.d.ts.map +1 -1
- package/shared/transforms/behavior-transform.d.ts +1 -0
- package/shared/transforms/behavior-transform.d.ts.map +1 -1
- package/shared/transforms/graph-transform.d.ts.map +1 -1
- package/shared/transforms/plugin-transform.d.ts +5 -4
- package/shared/transforms/plugin-transform.d.ts.map +1 -1
- package/shared/utils/config-setter.d.ts +9 -0
- package/shared/utils/config-setter.d.ts.map +1 -0
- package/shared/utils/index.d.ts +3 -2
- package/shared/utils/index.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/behaviors/click-select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,mBAAmB,EAQnB,aAAa,EAEb,cAAc,EAEd,WAAW,EACX,KAAK,EACN,MAAM,UAAU,CAAC;AAKlB,OAAO,EAEL,mBAAmB,EACnB,gBAAgB,EAEhB,WAAW,EAGZ,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/behaviors/click-select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,mBAAmB,EAQnB,aAAa,EAEb,cAAc,EAEd,WAAW,EACX,KAAK,EACN,MAAM,UAAU,CAAC;AAKlB,OAAO,EAEL,mBAAmB,EACnB,gBAAgB,EAEhB,WAAW,EAGZ,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;IAC/B,YAA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IACH,OAAO,CAAC,cAAc;YAkBR,UAAU;IAKxB,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,YAAY;IASJ,OAAO;CAIxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/behaviors/drag-element/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG;IACrD,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/behaviors/drag-element/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG;IACrD,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,CAAC,kBAAkB,CAyCrE,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Graph, Point } from '@antv/g6';
|
|
2
|
+
export interface DrillDownState {
|
|
3
|
+
navigationStack: string[];
|
|
4
|
+
originalViewport: {
|
|
5
|
+
zoom: number;
|
|
6
|
+
position: Point;
|
|
7
|
+
} | null;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* DrillDownManager handles all drill-down navigation logic
|
|
11
|
+
* This is used internally by the drill-down behavior
|
|
12
|
+
*/
|
|
13
|
+
export declare class DrillDownManager {
|
|
14
|
+
private graph;
|
|
15
|
+
private g6Graph;
|
|
16
|
+
private state;
|
|
17
|
+
constructor(g6Graph: Graph);
|
|
18
|
+
/**
|
|
19
|
+
* Get current drill-down state
|
|
20
|
+
*/
|
|
21
|
+
getState(): DrillDownState;
|
|
22
|
+
/**
|
|
23
|
+
* Set drill-down state
|
|
24
|
+
*/
|
|
25
|
+
setState(state: DrillDownState): void;
|
|
26
|
+
/**
|
|
27
|
+
* Drill into a group
|
|
28
|
+
*/
|
|
29
|
+
drillIntoGroup(groupId: string): void;
|
|
30
|
+
/**
|
|
31
|
+
* Drill out to parent level
|
|
32
|
+
*/
|
|
33
|
+
drillOutOfGroup(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Reset to root view
|
|
36
|
+
*/
|
|
37
|
+
resetDrill(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Check if currently navigating
|
|
40
|
+
*/
|
|
41
|
+
isNavigating(): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Get current navigation depth
|
|
44
|
+
*/
|
|
45
|
+
getNavigationDepth(): number;
|
|
46
|
+
/**
|
|
47
|
+
* Get current group ID
|
|
48
|
+
*/
|
|
49
|
+
getCurrentGroupId(): string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Cleanup
|
|
52
|
+
*/
|
|
53
|
+
destroy(): void;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=drill-down-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drill-down-manager.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/behaviors/drill-down/drill-down-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIxC,MAAM,WAAW,cAAc;IAC7B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,KAAK,CAAA;KAAE,GAAG,IAAI,CAAC;CAC5D;AAED;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,KAAK,CAGX;gBAEU,OAAO,EAAE,KAAK;IAK1B;;OAEG;IACH,QAAQ,IAAI,cAAc;IAS1B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IASrC;;OAEG;IACH,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IA8DrC;;OAEG;IACH,eAAe,IAAI,IAAI;IAsEvB;;OAEG;IACH,UAAU,IAAI,IAAI;IA4BlB;;OAEG;IACH,YAAY,IAAI,OAAO;IAIvB;;OAEG;IACH,kBAAkB,IAAI,MAAM;IAI5B;;OAEG;IACH,iBAAiB,IAAI,MAAM,GAAG,IAAI;IAMlC;;OAEG;IACH,OAAO,IAAI,IAAI;CAMhB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { BaseBehavior, RuntimeContext } from '@antv/g6';
|
|
2
|
+
import { BehaviorFunction } from '../../core/model';
|
|
3
|
+
import { DrillDownState } from './drill-down-manager';
|
|
4
|
+
import { DrillDownOptions } from './models';
|
|
5
|
+
export type { DrillDownOptions } from './models';
|
|
6
|
+
export type { DrillDownState } from './drill-down-manager';
|
|
7
|
+
/**
|
|
8
|
+
* Behavior function for backward compatibility
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare const getDrillDownBehavior: BehaviorFunction<DrillDownOptions>;
|
|
12
|
+
/**
|
|
13
|
+
* DrillDown behavior class for group navigation
|
|
14
|
+
* Enables drilling into groups to view only their children
|
|
15
|
+
*/
|
|
16
|
+
declare class DrillDown extends BaseBehavior<DrillDownOptions> {
|
|
17
|
+
static defaultOptions: Partial<DrillDownOptions>;
|
|
18
|
+
private manager;
|
|
19
|
+
constructor(context: RuntimeContext, options: DrillDownOptions);
|
|
20
|
+
/**
|
|
21
|
+
* Drill into a group to view only its children
|
|
22
|
+
* @param groupId - ID of the group to drill into
|
|
23
|
+
*/
|
|
24
|
+
drillIntoGroup(groupId: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Go back to the previous drill level
|
|
27
|
+
*/
|
|
28
|
+
drillOutOfGroup(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Reset drill navigation to the root level
|
|
31
|
+
*/
|
|
32
|
+
resetDrill(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Get the current drill-down state
|
|
35
|
+
* @returns Current drill-down state
|
|
36
|
+
*/
|
|
37
|
+
getDrillDownState(): DrillDownState;
|
|
38
|
+
/**
|
|
39
|
+
* Set the drill-down state
|
|
40
|
+
* @param state - New drill-down state
|
|
41
|
+
*/
|
|
42
|
+
setDrillDownState(state: DrillDownState): void;
|
|
43
|
+
/**
|
|
44
|
+
* Get event handlers
|
|
45
|
+
*/
|
|
46
|
+
getEvents: () => {
|
|
47
|
+
[key: string]: (event: any) => void;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Handle combo (group) click events
|
|
51
|
+
*/
|
|
52
|
+
private handleComboClick;
|
|
53
|
+
/**
|
|
54
|
+
* Update behavior options
|
|
55
|
+
*/
|
|
56
|
+
update(options: Partial<DrillDownOptions>): void;
|
|
57
|
+
/**
|
|
58
|
+
* Bind event handlers
|
|
59
|
+
*/
|
|
60
|
+
private bindEvents;
|
|
61
|
+
/**
|
|
62
|
+
* Unbind event handlers
|
|
63
|
+
*/
|
|
64
|
+
private unbindEvents;
|
|
65
|
+
/**
|
|
66
|
+
* Destroy the behavior
|
|
67
|
+
*/
|
|
68
|
+
destroy(): void;
|
|
69
|
+
}
|
|
70
|
+
export { DrillDown };
|
|
71
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/behaviors/drill-down/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAKZ,cAAc,EACf,MAAM,UAAU,CAAC;AAClB,OAAO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"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/behaviors/drill-down/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD;;GAEG;AAEH,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;CAG5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/behaviors/hover-activate/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEvD,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,CACrD,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/behaviors/hover-activate/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEvD,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,CACrD,oBAAoB,CAanB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/edge-arrow/transforms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG1E,eAAO,MAAM,kBAAkB,GAAI,QAAQ,SAAS,KAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/edge-arrow/transforms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG1E,eAAO,MAAM,kBAAkB,GAAI,QAAQ,SAAS,KAAG,WAsCtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,WAAW,KAAG,SAoDrD,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseEdgeStyleProps } from '../../core/model/edge.model';
|
|
2
2
|
import { Group } from '@antv/g';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @param edge -
|
|
6
|
-
* @param attrs -
|
|
7
|
-
* @param container -
|
|
4
|
+
* Draw custom label shapes
|
|
5
|
+
* @param edge - Edge element instance
|
|
6
|
+
* @param attrs - Edge attributes
|
|
7
|
+
* @param container - Container
|
|
8
8
|
*/
|
|
9
9
|
export declare function drawCustomLabelShape(edge: any, attrs: Required<BaseEdgeStyleProps>, container: Group): void;
|
|
10
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/components/edge-label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,EACnC,SAAS,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/components/edge-label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,EACnC,SAAS,EAAE,KAAK,QAiCjB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,QAQvC;AAED,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/edge-label/utils/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAa,MAAM,6BAA6B,CAAC;AAE5E,OAAO,EAAE,mBAAmB,EAAiB,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAMvD,wBAAgB,aAAa,CAC3B,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,kBAAkB,GACxB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/edge-label/utils/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAa,MAAM,6BAA6B,CAAC;AAE5E,OAAO,EAAE,mBAAmB,EAAiB,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAMvD,wBAAgB,aAAa,CAC3B,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,kBAAkB,GACxB,mBAAmB,CAwDrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/components/edge-line/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EACL,mBAAmB,EAEnB,cAAc,IAAI,gBAAgB,EAClC,IAAI,EAEJ,SAAS,EAGV,MAAM,UAAU,CAAC;AAElB,OAAO,EAAkB,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAe5D,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,aAAa,CA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AK,EAAE,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,KAAK;CAMlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/components/edge-polyline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAEL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,kBAAkB,EAClB,KAAK,EAEN,MAAM,UAAU,CAAC;AAQlB,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAE9E,qBAAa,YAAa,SAAQ,QAAQ;IACxC,IAAI,MAAM,IAAI,KAAK,EAAE,CAGpB;IAED,IAAI,WAAW,YAEd;IAED,eAAe,CAAC,SAAS,UAAQ,GAAG;QAAE,MAAM,EAAE,GAAG,CAAC;QAAC,MAAM,EAAE,GAAG,CAAA;KAAE;IAwBvD,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GAAG,SAAS;IAM/D,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GAAG,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/components/edge-polyline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAEL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,kBAAkB,EAClB,KAAK,EAEN,MAAM,UAAU,CAAC;AAQlB,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAE9E,qBAAa,YAAa,SAAQ,QAAQ;IACxC,IAAI,MAAM,IAAI,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D,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,cAAc;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/components/edge-quadratic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAEL,SAAS,EACT,mBAAmB,EACnB,KAAK,EAEN,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;AAE1E,qBAAa,aAAc,SAAQ,SAAS;IAC1C,IAAI,MAAM,IAAI,KAAK,EAAE,CAGpB;IAED,IAAI,WAAW,YAEd;IAEQ,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC;IAKhD,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,cAAc;IAYhE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;CAMpE"}
|
|
@@ -6,23 +6,57 @@ export * from './models';
|
|
|
6
6
|
export * from './utils';
|
|
7
7
|
export declare class DeviceGroup extends CircleCombo {
|
|
8
8
|
static defaultProps: Partial<DeviceGroupStyleProps>;
|
|
9
|
+
private _eventListeners?;
|
|
10
|
+
/**
|
|
11
|
+
* Lazy initialization of event listeners map to ensure it's always available
|
|
12
|
+
*/
|
|
13
|
+
private get eventListeners();
|
|
9
14
|
get states(): State[];
|
|
10
15
|
get isExist(): boolean;
|
|
11
16
|
getKeyStyle(attrs: Required<DeviceGroupStyleProps>): GCircleStyleProps;
|
|
12
17
|
protected getKeySize(attributes: Required<DeviceGroupStyleProps>): STDSize;
|
|
18
|
+
protected getExpandedKeySize(attributes: Required<DeviceGroupStyleProps>): STDSize;
|
|
13
19
|
getHaloStyle(attrs: Required<DeviceGroupStyleProps>): GCircleStyleProps | false;
|
|
14
20
|
getIconStyle(attrs: Required<DeviceGroupStyleProps>): IconStyleProps | false;
|
|
21
|
+
/**
|
|
22
|
+
* Get enhanced attributes for label based on collapsed state
|
|
23
|
+
*/
|
|
24
|
+
private getLabelEnhancedAttrs;
|
|
25
|
+
/**
|
|
26
|
+
* Get label bounds from rendered label shape
|
|
27
|
+
*/
|
|
28
|
+
private getLabelBounds;
|
|
29
|
+
/**
|
|
30
|
+
* Extract Y position from label's transform property
|
|
31
|
+
*/
|
|
32
|
+
private getLabelTransformY;
|
|
15
33
|
getLabelStyle(attrs: Required<DeviceGroupStyleProps>): TextStyleProps;
|
|
16
34
|
getTitleStyle(attrs: Required<DeviceGroupStyleProps>): TextStyleProps | false;
|
|
17
35
|
getStatusStyle(attrs: Required<DeviceGroupStyleProps>): ImageStyleProps | false;
|
|
36
|
+
private getStatusIconSrc;
|
|
37
|
+
getDeviceCountStyle(attrs: Required<DeviceGroupStyleProps>): TextStyleProps | false;
|
|
38
|
+
private calculateDeviceCount;
|
|
39
|
+
getCollapseButtonStyle(attrs: Required<DeviceGroupStyleProps>): ImageStyleProps | false;
|
|
40
|
+
getDrillDownIconStyle(attrs: Required<DeviceGroupStyleProps>): ImageStyleProps | false;
|
|
18
41
|
getTitleBackgroundStyle(attrs: Required<DeviceGroupStyleProps>): RectStyleProps | false;
|
|
19
42
|
getLabelBackgroundStyle(attrs: Required<DeviceGroupStyleProps>): RectStyleProps | false;
|
|
20
43
|
drawTitleShape(attrs: Required<DeviceGroupStyleProps>, container: Group): Text | undefined;
|
|
21
44
|
drawStatusShape(attrs: Required<DeviceGroupStyleProps>, container: Group): Image | undefined;
|
|
45
|
+
drawDeviceCountShape(attrs: Required<DeviceGroupStyleProps>, container: Group): Text | undefined;
|
|
46
|
+
drawCollapseButtonShape(attrs: Required<DeviceGroupStyleProps>, container: Group): Group | undefined;
|
|
47
|
+
drawDrillDownIconShape(attrs: Required<DeviceGroupStyleProps>, container: Group): Image | undefined;
|
|
22
48
|
drawTitleBackgroundShape(attrs: Required<DeviceGroupStyleProps>, container: Group): Rect | undefined;
|
|
23
49
|
drawLabelBackgroundShape(attrs: Required<DeviceGroupStyleProps>, container: Group): Rect | undefined;
|
|
24
50
|
render(attrs: Required<DeviceGroupStyleProps>, container: Group): void;
|
|
25
51
|
onframe(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Ensures the entire group (including its label) appears on top when selected
|
|
54
|
+
*/
|
|
55
|
+
private ensureLabelOnTopWhenSelected;
|
|
26
56
|
animate(keyframes: Keyframe[], options?: number | KeyframeAnimationOptions): import('@antv/g').IAnimation | null;
|
|
57
|
+
/**
|
|
58
|
+
* Clean up event listeners to prevent memory leaks
|
|
59
|
+
*/
|
|
60
|
+
destroy(): void;
|
|
27
61
|
}
|
|
28
62
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/components/group-device/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/components/group-device/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,IAAI,iBAAiB,EACrC,KAAK,EACL,KAAK,EACL,eAAe,EACf,IAAI,EACJ,cAAc,EACd,IAAI,EACJ,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,WAAW,EAEX,cAAc,EAEd,KAAK,EAEN,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAU7C,OAAO,EAOL,qBAAqB,EAQtB,MAAM,UAAU,CAAC;AAGlB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAExB,qBAAa,WAAY,SAAQ,WAAW;IA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,CAAC,GACrC,eAAe,GAAG,KAAK;IAI1B,uBAAuB,CACrB,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GACrC,cAAc,GAAG,KAAK;IAKzB,uBAAuB,CACrB,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GACrC,cAAc,GAAG,KAAK;IAIzB,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,SAAS,EAAE,KAAK;IAIvE,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,SAAS,EAAE,KAAK;IASxE,oBAAoB,CAClB,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,SAAS,EAAE,KAAK;IAUlB,uBAAuB,CACrB,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,SAAS,EAAE,KAAK;IA2IlB,sBAAsB,CACpB,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EAEtC,SAAS,EAAE,KAAK;IAiElB,wBAAwB,CACtB,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,SAAS,EAAE,KAAK;IAUlB,wBAAwB,CACtB,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,SAAS,EAAE,KAAK;IAUT,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,SAAS,EAAE,KAAK;IAqB/D,OAAO;IAsBhB;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAe3B,OAAO,CACd,SAAS,EAAE,QAAQ,EAAE,EACrB,OAAO,CAAC,EAAE,MAAM,GAAG,wBAAwB;IAK7C;;OAEG;IACM,OAAO,IAAI,IAAI;CAwBzB"}
|
|
@@ -5,13 +5,23 @@ export interface DeviceGroupStyleProps extends CircleComboStyleProps {
|
|
|
5
5
|
highlight: GroupConfig['highlight'];
|
|
6
6
|
labelStatus: GroupLabel['status'];
|
|
7
7
|
labelCustomBackground: GroupLabel['background'];
|
|
8
|
+
drillDownEnabled?: boolean;
|
|
9
|
+
stateStyles: GroupConfig['stateStyles'];
|
|
8
10
|
}
|
|
9
11
|
export declare const TITLE_KEY = "title";
|
|
10
12
|
export declare const TITLE_BG_KEY = "title-background";
|
|
11
13
|
export declare const LABEL_BG_KEY = "label-background";
|
|
12
14
|
export declare const STATUS_ICON_KEY = "status-icon";
|
|
13
|
-
export declare const
|
|
15
|
+
export declare const DRILL_DOWN_ICON_KEY = "drill-down-icon";
|
|
16
|
+
export declare const COLLAPSE_BUTTON_KEY = "collapse-button";
|
|
17
|
+
export declare const COLLAPSE_BUTTON_BG_KEY = "collapse-button-bg";
|
|
18
|
+
export declare const DEVICE_COUNT_KEY = "device-count";
|
|
19
|
+
export declare const GROUP_NODE_SIZE = 176;
|
|
14
20
|
export declare const ICON_SIZE = 48;
|
|
15
21
|
export declare const FONT_SIZE = 14;
|
|
16
22
|
export declare const STATUS_ICON_SIZE = 14;
|
|
23
|
+
export declare const DRILL_DOWN_ICON_SIZE = 16;
|
|
24
|
+
export declare const COLLAPSE_BUTTON_SIZE = 16;
|
|
25
|
+
export declare const COLLAPSE_BUTTON_BG_SIZE = 24;
|
|
26
|
+
export declare const DEVICE_COUNT_FONT_SIZE = 12;
|
|
17
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/group-device/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACpC,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAClC,qBAAqB,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/group-device/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACpC,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAClC,qBAAqB,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;IAChD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,YAAY,qBAAqB,CAAC;AAC/C,eAAO,MAAM,YAAY,qBAAqB,CAAC;AAC/C,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAC7C,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AACrD,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AACrD,eAAO,MAAM,sBAAsB,uBAAuB,CAAC;AAC3D,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,sBAAsB,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/group-device/transforms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/group-device/transforms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,eAAO,MAAM,oBAAoB,GAAI,QAAQ,WAAW,KAAG,UAY1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/group-device/utils/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,QAAQ,EAAE,iBAAiB,GAC1B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/group-device/utils/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,QAAQ,EAAE,iBAAiB,GAC1B,iBAAiB,CA4BnB;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,SAAS,EAAE,iBAAiB,GAAG,KAAK,GACnC,iBAAiB,GAAG,KAAK,CAM3B"}
|
|
@@ -8,12 +8,14 @@ export interface DeviceNodeStyleProps extends CircleStyleProps {
|
|
|
8
8
|
labelCustomBackground: NodeLabel['background'];
|
|
9
9
|
iconOffsetX: number;
|
|
10
10
|
iconOffsetY: number;
|
|
11
|
+
stateStyles: NodeConfig['stateStyles'];
|
|
11
12
|
}
|
|
12
13
|
export declare const NODE_SIZE = 132;
|
|
13
14
|
export declare const ICON_SIZE = 48;
|
|
14
15
|
export declare const FONT_SIZE = 14;
|
|
15
16
|
export declare const STATUS_ICON_SIZE = 14;
|
|
16
17
|
export declare const TITLE_KEY = "title";
|
|
18
|
+
export declare const LABEL_KEY = "label";
|
|
17
19
|
export declare const TITLE_BG_KEY = "title-background";
|
|
18
20
|
export declare const LABEL_BG_KEY = "label-background";
|
|
19
21
|
export declare const STATUS_ICON_KEY = "status-icon";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/node-device/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACnC,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IACjC,qBAAqB,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/node-device/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACnC,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IACjC,qBAAqB,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,SAAS,MAAM,CAAC;AAC7B,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,YAAY,qBAAqB,CAAC;AAC/C,eAAO,MAAM,YAAY,qBAAqB,CAAC;AAC/C,eAAO,MAAM,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/node-device/utils/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAIjD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACrC,QAAQ,EAAE,iBAAiB,GAC1B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/node-device/utils/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAIjD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACrC,QAAQ,EAAE,iBAAiB,GAC1B,iBAAiB,CAqBnB"}
|
|
@@ -40,5 +40,5 @@ export declare function drawLabelBackground(node: any, attrs: Required<DeviceNod
|
|
|
40
40
|
* @param node - 節點元素實例
|
|
41
41
|
*/
|
|
42
42
|
export declare function clearNodeLabel(node: any): void;
|
|
43
|
-
export {
|
|
43
|
+
export { getLabelBackgroundStyle, getStatusStyle, getTextStyle, getTitleBackgroundStyle, getTitleStyle, } from '../shared/utils';
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/components/node-label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAqC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/components/node-label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAqC,MAAM,SAAS,CAAC;AASnE,OAAO,EACL,oBAAoB,EAMrB,MAAM,uBAAuB,CAAC;AAE/B;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACrC,SAAS,EAAE,KAAK,GAAG,IAAI,OAgBxB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACrC,SAAS,EAAE,KAAK,OAqBjB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACrC,SAAS,EAAE,KAAK,OAKjB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACrC,SAAS,EAAE,KAAK,OAejB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACrC,SAAS,EAAE,KAAK,OAoBjB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,QAevC;AAGD,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,uBAAuB,EACvB,aAAa,GACd,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-transform.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/shared/transforms/edge-transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAIlD,OAAO,EAEL,QAAQ,
|
|
1
|
+
{"version":3,"file":"edge-transform.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/shared/transforms/edge-transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAIlD,OAAO,EAEL,QAAQ,EAIR,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,eAAe,KAAG,UAqCzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,UAAU,UAAU,EACpB,UAAU,gBAAgB,KACzB,QAyBF,CAAC;AA2OF;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAO,eAGvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,eAAe,EAAE,KACvB,UAAU,EAEZ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B,GACxC,OAAO,UAAU,EAAE,EACnB,UAAU,GAAG,KACZ,UAAU,EAgGZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-transform.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/shared/transforms/group-transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA+B,MAAM,UAAU,CAAC;AAGlE,OAAO,EAEL,SAAS,EAIT,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,MAAM,gBAAgB,EACtB,UAAU,gBAAgB,KACzB,SA0CF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,WAAW,SAAS,EACpB,UAAU,gBAAgB,KACzB,SAsBF,CAAC;
|
|
1
|
+
{"version":3,"file":"group-transform.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/shared/transforms/group-transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA+B,MAAM,UAAU,CAAC;AAGlE,OAAO,EAEL,SAAS,EAIT,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,MAAM,gBAAgB,EACtB,UAAU,gBAAgB,KACzB,SA0CF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,WAAW,SAAS,EACpB,UAAU,gBAAgB,KACzB,SAsBF,CAAC;AAgMF;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAO,gBAGxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAClC,QAAQ,gBAAgB,EAAE,EAC1B,UAAU,gBAAgB,KACzB,SAAS,EAEX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-transform.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/shared/transforms/node-transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAA+B,MAAM,UAAU,CAAC;AAG/E,OAAO,EAAc,QAAQ,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"node-transform.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/shared/transforms/node-transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAA+B,MAAM,UAAU,CAAC;AAG/E,OAAO,EAAc,QAAQ,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG7E;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,MAAM,eAAe,EACrB,UAAU,gBAAgB,KACzB,UA+BF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,UAAU,UAAU,EACpB,UAAU,gBAAgB,KACzB,QAuBF,CAAC;AAkOF;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAO,eAGvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/edge-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/edge-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EdgeState } from '../../../../core/model/state.model';
|
|
2
|
+
import { EdgeStateStyle, EdgeBaseConfig } from '../../../../core/model/edge.model';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves edge state styles based on current state
|
|
5
|
+
* @param baseStyle - Base edge configuration
|
|
6
|
+
* @param states - Current active states
|
|
7
|
+
* @returns Resolved style properties for the current state
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveEdgeStateStyle(baseStyle: EdgeBaseConfig, states: EdgeState[]): Partial<EdgeStateStyle>;
|
|
10
|
+
/**
|
|
11
|
+
* Merges base style with state style, applying inheritance rules
|
|
12
|
+
* @param baseStyle - Base edge configuration
|
|
13
|
+
* @param stateStyle - State-specific style overrides
|
|
14
|
+
* @returns Merged style object
|
|
15
|
+
*/
|
|
16
|
+
export declare function mergeEdgeStyle(baseStyle: EdgeBaseConfig, stateStyle: Partial<EdgeStateStyle>): EdgeBaseConfig;
|
|
17
|
+
/**
|
|
18
|
+
* Gets the effective style for an edge considering its current states
|
|
19
|
+
* @param baseStyle - Base edge configuration
|
|
20
|
+
* @param currentStates - Current active states
|
|
21
|
+
* @returns Effective edge configuration
|
|
22
|
+
*/
|
|
23
|
+
export declare function getEffectiveEdgeStyle(baseStyle: EdgeBaseConfig, currentStates: EdgeState[]): EdgeBaseConfig;
|
|
24
|
+
//# sourceMappingURL=state-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/edge-utils/state-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExE;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,cAAc,EACzB,MAAM,EAAE,SAAS,EAAE,GAClB,OAAO,CAAC,cAAc,CAAC,CAezB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,cAAc,EACzB,UAAU,EAAE,OAAO,CAAC,cAAc,CAAC,GAClC,cAAc,CAyDhB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,cAAc,EACzB,aAAa,EAAE,SAAS,EAAE,GACzB,cAAc,CAGhB"}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
import { PathStyleProps } from '@antv/g';
|
|
1
2
|
import { State } from '@antv/g6';
|
|
2
|
-
|
|
3
|
+
import { Graph } from '../../../../core/graph/graph';
|
|
4
|
+
import { BaseEdgeStyleProps } from '../../../../core/model/edge.model';
|
|
5
|
+
/**
|
|
6
|
+
* Edge instance interface with required properties
|
|
7
|
+
*/
|
|
8
|
+
interface EdgeInstance {
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get edge style with state support
|
|
13
|
+
* @param graph - Graph instance
|
|
14
|
+
* @param attrs - Edge attributes (includes BaseEdgeStyleProps properties)
|
|
15
|
+
* @param states - Active states
|
|
16
|
+
* @param edge - Optional edge instance for accessing state styles
|
|
17
|
+
* @returns PathStyleProps with state-aware styling
|
|
18
|
+
*/
|
|
19
|
+
export declare function getEdgeStyle(graph: Graph, attrs: BaseEdgeStyleProps & Record<string, any>, states: State[], edge?: EdgeInstance): Partial<PathStyleProps>;
|
|
20
|
+
export {};
|
|
3
21
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/edge-utils/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/edge-utils/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE;;GAEG;AACH,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/C,MAAM,EAAE,KAAK,EAAE,EACf,IAAI,CAAC,EAAE,YAAY,GAClB,OAAO,CAAC,cAAc,CAAC,CAsMzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ImageStyleProps } from '@antv/g';
|
|
2
|
+
/**
|
|
3
|
+
* Check if drill down icon should be shown
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldShowDrillIcon(attrs: any, node?: any): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Get drill-down icon style for groups
|
|
8
|
+
*/
|
|
9
|
+
export declare function getDrillDownIconStyle(node: any, attrs: any): ImageStyleProps | false;
|
|
10
|
+
//# sourceMappingURL=drill-icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drill-icon.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/group-utils/drill-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAO1C;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CA2BnE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,GACT,eAAe,GAAG,KAAK,CA6CzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/group-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RectStyleProps } from '@antv/g';
|
|
2
|
+
/**
|
|
3
|
+
* Group-specific label background style that handles four scenarios:
|
|
4
|
+
* 1. Only text
|
|
5
|
+
* 2. Status icon + text
|
|
6
|
+
* 3. Text + drill icon
|
|
7
|
+
* 4. Status icon + text + drill icon
|
|
8
|
+
*/
|
|
9
|
+
export declare function getLabelBackgroundStyle(node: any, attrs: any): RectStyleProps | false;
|
|
10
|
+
//# sourceMappingURL=label-background.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-background.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/group-utils/label-background.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIzC;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,GACT,cAAc,GAAG,KAAK,CA2DxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/shared/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/components/shared/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AAGrC,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default configuration for node utils
|
|
3
|
+
*/
|
|
4
|
+
export interface NodeUtilsConfig {
|
|
5
|
+
nodeSize: number;
|
|
6
|
+
iconSize: number;
|
|
7
|
+
fontSize: number;
|
|
8
|
+
keySize?: [number, number];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Default configuration values
|
|
12
|
+
*/
|
|
13
|
+
export declare const DEFAULT_CONFIG: NodeUtilsConfig;
|
|
14
|
+
/**
|
|
15
|
+
* Status icon size constant
|
|
16
|
+
*/
|
|
17
|
+
export declare const STATUS_ICON_SIZE = 14;
|
|
18
|
+
/**
|
|
19
|
+
* Default node size constant
|
|
20
|
+
*/
|
|
21
|
+
export declare const DEFAULT_NODE_SIZE = 132;
|
|
22
|
+
/**
|
|
23
|
+
* Default icon size constant
|
|
24
|
+
*/
|
|
25
|
+
export declare const ICON_SIZE = 48;
|
|
26
|
+
export declare const DEFAULT_LABEL_POSITION = "bottom";
|
|
27
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,eAI5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B,eAAO,MAAM,sBAAsB,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/icon-style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"icon-style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/icon-style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAqB,MAAM,UAAU,CAAC;AAE3D,wBAAgB,YAAY,CAC1B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,EACV,SAAS,EAAE,cAAc,EACzB,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM,GACjC,cAAc,CAgEhB;AAED,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export * from './theme';
|
|
2
|
-
export * from './offset';
|
|
3
1
|
export * from './icon-style';
|
|
4
|
-
export * from './status-style';
|
|
5
|
-
export * from './title-style';
|
|
6
2
|
export * from './label-background';
|
|
7
|
-
export * from './
|
|
3
|
+
export * from './offset';
|
|
4
|
+
export * from './state-styles';
|
|
5
|
+
export * from './status-style';
|
|
8
6
|
export * from './text-style';
|
|
7
|
+
export * from './theme';
|
|
8
|
+
export * from './title-background';
|
|
9
|
+
export * from './title-style';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|