@moxa/graph 3.0.0-beta.7 → 3.0.0-beta.9

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.
Files changed (71) hide show
  1. package/README.md +27 -14
  2. package/assets/icon-sprite.svg +1 -1
  3. package/behaviors/drill-down/drill-down-manager.d.ts +55 -0
  4. package/behaviors/drill-down/drill-down-manager.d.ts.map +1 -0
  5. package/behaviors/drill-down/index.d.ts +71 -0
  6. package/behaviors/drill-down/index.d.ts.map +1 -0
  7. package/behaviors/drill-down/models/index.d.ts +7 -0
  8. package/behaviors/drill-down/models/index.d.ts.map +1 -0
  9. package/components/edge-arrow/transforms/index.d.ts.map +1 -1
  10. package/components/edge-line/index.d.ts.map +1 -1
  11. package/components/edge-polyline/index.d.ts.map +1 -1
  12. package/components/edge-quadratic/index.d.ts.map +1 -1
  13. package/components/group-device/index.d.ts +34 -0
  14. package/components/group-device/index.d.ts.map +1 -1
  15. package/components/group-device/models/index.d.ts +10 -1
  16. package/components/group-device/models/index.d.ts.map +1 -1
  17. package/components/group-device/transforms/index.d.ts.map +1 -1
  18. package/components/group-device/utils/style.d.ts.map +1 -1
  19. package/components/node-device/models/index.d.ts +1 -0
  20. package/components/node-device/models/index.d.ts.map +1 -1
  21. package/components/node-device/utils/style.d.ts.map +1 -1
  22. package/components/shared/transforms/edge-transform.d.ts.map +1 -1
  23. package/components/shared/transforms/group-transform.d.ts.map +1 -1
  24. package/components/shared/transforms/node-transform.d.ts.map +1 -1
  25. package/components/shared/utils/edge-utils/index.d.ts +1 -0
  26. package/components/shared/utils/edge-utils/index.d.ts.map +1 -1
  27. package/components/shared/utils/edge-utils/state-style.d.ts +24 -0
  28. package/components/shared/utils/edge-utils/state-style.d.ts.map +1 -0
  29. package/components/shared/utils/edge-utils/style.d.ts +19 -1
  30. package/components/shared/utils/edge-utils/style.d.ts.map +1 -1
  31. package/components/shared/utils/group-utils/drill-icon.d.ts +10 -0
  32. package/components/shared/utils/group-utils/drill-icon.d.ts.map +1 -0
  33. package/components/shared/utils/group-utils/index.d.ts +3 -0
  34. package/components/shared/utils/group-utils/index.d.ts.map +1 -0
  35. package/components/shared/utils/group-utils/label-background.d.ts +10 -0
  36. package/components/shared/utils/group-utils/label-background.d.ts.map +1 -0
  37. package/components/shared/utils/index.d.ts +1 -0
  38. package/components/shared/utils/index.d.ts.map +1 -1
  39. package/components/shared/utils/node-utils/icon-style.d.ts.map +1 -1
  40. package/components/shared/utils/node-utils/index.d.ts +1 -0
  41. package/components/shared/utils/node-utils/index.d.ts.map +1 -1
  42. package/components/shared/utils/node-utils/label-background.d.ts.map +1 -1
  43. package/components/shared/utils/node-utils/state-styles.d.ts +63 -0
  44. package/components/shared/utils/node-utils/state-styles.d.ts.map +1 -0
  45. package/components/shared/utils/node-utils/status-style.d.ts.map +1 -1
  46. package/components/shared/utils/node-utils/text-style.d.ts.map +1 -1
  47. package/components/shared/utils/node-utils/theme.d.ts +1 -1
  48. package/components/shared/utils/node-utils/theme.d.ts.map +1 -1
  49. package/components/shared/utils/node-utils/title-style.d.ts.map +1 -1
  50. package/core/graph/graph.d.ts +27 -3
  51. package/core/graph/graph.d.ts.map +1 -1
  52. package/core/model/behavior.model.d.ts +6 -2
  53. package/core/model/behavior.model.d.ts.map +1 -1
  54. package/core/model/edge.model.d.ts +221 -0
  55. package/core/model/edge.model.d.ts.map +1 -1
  56. package/core/model/event.model.d.ts +7 -1
  57. package/core/model/event.model.d.ts.map +1 -1
  58. package/core/model/group.model.d.ts +1 -0
  59. package/core/model/group.model.d.ts.map +1 -1
  60. package/core/model/node.model.d.ts +98 -0
  61. package/core/model/node.model.d.ts.map +1 -1
  62. package/index.cjs +77 -77
  63. package/index.d.ts +1 -0
  64. package/index.d.ts.map +1 -1
  65. package/index.js +18740 -18000
  66. package/package.json +1 -1
  67. package/plugins/index.d.ts +9 -0
  68. package/plugins/index.d.ts.map +1 -0
  69. package/shared/transforms/behavior-transform.d.ts +1 -0
  70. package/shared/transforms/behavior-transform.d.ts.map +1 -1
  71. package/shared/transforms/plugin-transform.d.ts.map +1 -1
@@ -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;IA+CvB;;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,EAAY,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAoB,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,gBAAgB,CAAC,gBAAgB,CASjE,CAAC;AAEJ;;;GAGG;AACH,cAAM,SAAU,SAAQ,YAAY,CAAC,gBAAgB,CAAC;IACpD,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAE9C;IAEF,OAAO,CAAC,OAAO,CAAmB;gBAEtB,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,gBAAgB;IAM9D;;;OAGG;IACI,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI5C;;OAEG;IACI,eAAe,IAAI,IAAI;IAI9B;;OAEG;IACI,UAAU,IAAI,IAAI;IAIzB;;;OAGG;IACI,iBAAiB,IAAI,cAAc;IAI1C;;;OAGG;IACI,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAIrD;;OAEG;IACI,SAAS,QAAO;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;KAAE,CAI5D;IAEF;;OAEG;IACH,OAAO,CAAC,gBAAgB,CAqBtB;IAEF;;OAEG;IACa,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI;IAMhE;;OAEG;IACH,OAAO,CAAC,UAAU;IAQlB;;OAEG;IACH,OAAO,CAAC,YAAY;IAQpB;;OAEG;IACa,OAAO;CAKxB;AAMD,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { BehaviorBaseOptions } from '../../../core/model';
2
+ /**
3
+ * DrillDownOptions interface defines drill-down behavior options
4
+ */
5
+ export interface DrillDownOptions extends BehaviorBaseOptions {
6
+ }
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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/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,WAsBtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,WAAW,KAAG,SAqCrD,CAAC"}
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 +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,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;AAEnE,MAAM,MAAM,cAAc,GAAG,MAAM,CACjC,OAAO,EACP,mBAAmB,GACjB,IAAI,CAAC,SAAS,EAAE,IAAI,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC,CAC1E,CAAC;AAEF,qBAAa,QAAS,SAAQ,IAAI;IACvB,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC;IAK5C,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,cAAc;IAW5D,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,SAAS;IA+B5D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,KAAK;CAMlE"}
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,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;AAEnE,MAAM,MAAM,cAAc,GAAG,MAAM,CACjC,OAAO,EACP,mBAAmB,GACjB,IAAI,CAAC,SAAS,EAAE,IAAI,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC,CAC1E,CAAC;AAEF,qBAAa,QAAS,SAAQ,IAAI;IACvB,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC;IAK5C,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,cAAc;IAgB5D,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,SAAS;IA+B5D,MAAM,CAAC,KAAK,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,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AAI,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;IAWhE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;CAMpE"}
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,EACL,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,EACd,KAAK,EAGN,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAS7C,OAAO,EACL,qBAAqB,EAKtB,MAAM,UAAU,CAAC;AAGlB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAExB,qBAAa,WAAY,SAAQ,WAAW;IAC1C,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAIjD;IAEF,IAAI,MAAM,IAAI,KAAK,EAAE,CAGpB;IAED,IAAI,OAAO,YAEV;IAEQ,WAAW,CAClB,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GACrC,iBAAiB;cAKD,UAAU,CAC3B,UAAU,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAC1C,OAAO;IAOD,YAAY,CACnB,KAAK,EAAE,QAAQ,CAAC,qBAAqB,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4B;IAe3B,OAAO,CACd,SAAS,EAAE,QAAQ,EAAE,EACrB,OAAO,CAAC,EAAE,MAAM,GAAG,wBAAwB;IAK7C;;OAEG;IACM,OAAO,IAAI,IAAI;CAwBzB"}
@@ -5,13 +5,22 @@ export interface DeviceGroupStyleProps extends CircleComboStyleProps {
5
5
  highlight: GroupConfig['highlight'];
6
6
  labelStatus: GroupLabel['status'];
7
7
  labelCustomBackground: GroupLabel['background'];
8
+ drillDownEnabled?: boolean;
8
9
  }
9
10
  export declare const TITLE_KEY = "title";
10
11
  export declare const TITLE_BG_KEY = "title-background";
11
12
  export declare const LABEL_BG_KEY = "label-background";
12
13
  export declare const STATUS_ICON_KEY = "status-icon";
13
- export declare const GROUP_NODE_SIZE = 132;
14
+ export declare const DRILL_DOWN_ICON_KEY = "drill-down-icon";
15
+ export declare const COLLAPSE_BUTTON_KEY = "collapse-button";
16
+ export declare const COLLAPSE_BUTTON_BG_KEY = "collapse-button-bg";
17
+ export declare const DEVICE_COUNT_KEY = "device-count";
18
+ export declare const GROUP_NODE_SIZE = 176;
14
19
  export declare const ICON_SIZE = 48;
15
20
  export declare const FONT_SIZE = 14;
16
21
  export declare const STATUS_ICON_SIZE = 14;
22
+ export declare const DRILL_DOWN_ICON_SIZE = 16;
23
+ export declare const COLLAPSE_BUTTON_SIZE = 16;
24
+ export declare const COLLAPSE_BUTTON_BG_SIZE = 24;
25
+ export declare const DEVICE_COUNT_FONT_SIZE = 12;
17
26
  //# 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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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;AAE7D,eAAO,MAAM,oBAAoB,GAAI,QAAQ,WAAW,KAAG,UAQ1D,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,UAW1D,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,CAsBnB;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,SAAS,EAAE,iBAAiB,GAAG,KAAK,GACnC,iBAAiB,GAAG,KAAK,CAM3B"}
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,CAuBnB;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EACtC,SAAS,EAAE,iBAAiB,GAAG,KAAK,GACnC,iBAAiB,GAAG,KAAK,CAM3B"}
@@ -8,6 +8,7 @@ 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;
@@ -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,q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,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,CAcnB"}
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,CAiBnB"}
@@ -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,EAGR,eAAe,EAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,eAAe,KAAG,UA4BzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,UAAU,UAAU,EACpB,UAAU,gBAAgB,KACzB,QAqBF,CAAC;AAgHF;;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
+ {"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;AA2LF;;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
+ {"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;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,QAsBF,CAAC;AA8NF;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAO,eAGvC,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;AA+NF;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAO,eAGvC,CAAC"}
@@ -7,5 +7,6 @@ export * from './highlight';
7
7
  export * from './position';
8
8
  export * from './revert';
9
9
  export * from './state';
10
+ export * from './state-style';
10
11
  export * from './style';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -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
- export declare function getEdgeStyle(graph: any, attrs: any, states: State[]): any;
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;AAIjC,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAUzE"}
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,CAkLzB"}
@@ -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,3 @@
1
+ export * from './label-background';
2
+ export * from './drill-icon';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -5,4 +5,5 @@ export * from './state-helpers';
5
5
  export * from './style-helpers';
6
6
  export * from './type-helpers';
7
7
  export * from './validation-helpers';
8
+ export * as GroupUtils from './group-utils';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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;AAG1C,OAAO,EAAqB,YAAY,EAAE,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,CA0DhB;AAED,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,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,CA2DhB;AAED,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from './icon-style';
2
2
  export * from './label-background';
3
3
  export * from './offset';
4
+ export * from './state-styles';
4
5
  export * from './status-style';
5
6
  export * from './text-style';
6
7
  export * from './theme';
@@ -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,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"label-background.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/label-background.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAKzC,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,GACT,cAAc,GAAG,KAAK,CAsCxB"}
1
+ {"version":3,"file":"label-background.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/label-background.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAKzC,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,GACT,cAAc,GAAG,KAAK,CA+CxB"}
@@ -0,0 +1,63 @@
1
+ import { CircleStyleProps as GCircleStyleProps } from '@antv/g';
2
+ import { State } from '@antv/g6';
3
+ import { NodeConfig, NodeStyleProperties } from '../../../../index.ts';
4
+ /**
5
+ * Determines the current state for node styling purposes.
6
+ * When multiple states are active, returns the highest priority state.
7
+ *
8
+ * Priority order: disabled > active > selected > default
9
+ *
10
+ * @param states - Array of active states from G6
11
+ * @returns The current state key for stateStyles lookup
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * determineCurrentState(['selected', 'active']) // Returns 'active'
16
+ * determineCurrentState(['disabled', 'selected']) // Returns 'disabled'
17
+ * determineCurrentState([]) // Returns 'default'
18
+ * ```
19
+ */
20
+ export declare function determineCurrentState(states: State[]): keyof NonNullable<NodeConfig['stateStyles']>;
21
+ /**
22
+ * Converts border style string or array to G6 lineDash format.
23
+ *
24
+ * @param style - Border style: 'solid', 'dashed', 'dotted', or custom dash array
25
+ * @returns G6 lineDash array or undefined for solid lines
26
+ *
27
+ * @example
28
+ * ```typescript
29
+ * convertBorderStyleToLineDash('solid') // Returns undefined
30
+ * convertBorderStyleToLineDash('dashed') // Returns [8, 4]
31
+ * convertBorderStyleToLineDash('dotted') // Returns [2, 4]
32
+ * convertBorderStyleToLineDash([5, 5]) // Returns [5, 5]
33
+ * ```
34
+ */
35
+ export declare function convertBorderStyleToLineDash(style: 'solid' | 'dashed' | 'dotted' | number[]): number[] | undefined;
36
+ /**
37
+ * Converts NodeStyleProperties to G6 style properties.
38
+ * Applies default border width (2px) when borderColor is set without borderWidth.
39
+ *
40
+ * @param stateStyle - Custom style properties for a specific state
41
+ * @returns G6 circle style properties
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * const customStyle = {
46
+ * backgroundColor: '#E3F2FD',
47
+ * borderColor: '#1976D2',
48
+ * borderWidth: 3,
49
+ * borderStyle: 'dashed'
50
+ * };
51
+ * const g6Style = convertToG6Style(customStyle);
52
+ * // Returns: {
53
+ * // fill: '#E3F2FD',
54
+ * // fillOpacity: 1,
55
+ * // stroke: '#1976D2',
56
+ * // strokeOpacity: 1,
57
+ * // lineWidth: 3,
58
+ * // lineDash: [8, 4]
59
+ * // }
60
+ * ```
61
+ */
62
+ export declare function convertToG6Style(stateStyle: NodeStyleProperties): Partial<GCircleStyleProps>;
63
+ //# sourceMappingURL=state-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state-styles.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/state-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE9D;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,KAAK,EAAE,GACd,MAAM,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAK9C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,EAAE,GAC9C,MAAM,EAAE,GAAG,SAAS,CAKtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,mBAAmB,GAC9B,OAAO,CAAC,iBAAiB,CAAC,CA8B5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"status-style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/status-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAO1C,OAAO,EAAqB,YAAY,EAAE,MAAM,UAAU,CAAC;AAI3D,wBAAgB,cAAc,CAC5B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,EACV,WAAW,EAAE,GAAG,EAChB,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM,GACjC,eAAe,GAAG,KAAK,CA0BzB"}
1
+ {"version":3,"file":"status-style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/status-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAO1C,OAAO,EAAE,YAAY,EAAqB,MAAM,UAAU,CAAC;AAI3D,wBAAgB,cAAc,CAC5B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,EACV,WAAW,EAAE,GAAG,EAChB,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM,GACjC,eAAe,GAAG,KAAK,CA2BzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"text-style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/text-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK3C,OAAO,EAAqB,YAAY,EAAE,MAAM,UAAU,CAAC;AAwC3D,wBAAgB,YAAY,CAC1B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,EACV,UAAU,EAAE,cAAc,GAAG,eAAe,EAC5C,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM,GACjC,cAAc,CA2ChB"}
1
+ {"version":3,"file":"text-style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/text-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK3C,OAAO,EAAqB,YAAY,EAAE,MAAM,UAAU,CAAC;AAwC3D,wBAAgB,YAAY,CAC1B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,EACV,UAAU,EAAE,cAAc,GAAG,eAAe,EAC5C,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM,GACjC,cAAc,CA4ChB"}
@@ -1,5 +1,5 @@
1
1
  import { BaseStyleProps } from '@antv/g';
2
2
  import { State } from '@antv/g6';
3
3
  import { Graph, NodeConfig } from '../../../../index.ts';
4
- export declare const getNodeTheme: (graph: Graph, states: State[], status?: NodeConfig["highlight"]) => BaseStyleProps;
4
+ export declare const getNodeTheme: (graph: Graph, states: State[], status?: NodeConfig["highlight"], stateStyles?: NodeConfig["stateStyles"]) => BaseStyleProps;
5
5
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,YAAY,GACvB,OAAO,KAAK,EACZ,QAAQ,KAAK,EAAE,EACf,SAAS,UAAU,CAAC,WAAW,CAAC,KAC/B,cAwFF,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGhD,eAAO,MAAM,YAAY,GACvB,OAAO,KAAK,EACZ,QAAQ,KAAK,EAAE,EACf,SAAS,UAAU,CAAC,WAAW,CAAC,EAChC,cAAc,UAAU,CAAC,aAAa,CAAC,KACtC,cAgJF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"title-style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/title-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,OAAO,EAAqB,YAAY,EAAE,MAAM,UAAU,CAAC;AAI3D,wBAAgB,aAAa,CAC3B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,EACV,cAAc,EAAE,cAAc,EAC9B,cAAc,GAAE,OAAO,CAAC,cAAc,CAAM,EAC5C,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM,GACjC,cAAc,GAAG,KAAK,CAoCxB"}
1
+ {"version":3,"file":"title-style.d.ts","sourceRoot":"","sources":["../../../../../../libs/graph/src/components/shared/utils/node-utils/title-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,OAAO,EAAqB,YAAY,EAAE,MAAM,UAAU,CAAC;AAI3D,wBAAgB,aAAa,CAC3B,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,EACV,cAAc,EAAE,cAAc,EAC9B,cAAc,GAAE,OAAO,CAAC,cAAc,CAAM,EAC5C,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM,GACjC,cAAc,GAAG,KAAK,CAqCxB"}