@antv/g6 5.0.0-beta.34 → 5.0.0-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/g6.min.js +2 -2
- package/dist/lib/animations/types.d.ts +3 -4
- package/dist/lib/behaviors/base-behavior.d.ts +2 -1
- package/dist/lib/behaviors/brush-select.d.ts +31 -13
- package/dist/lib/behaviors/click-element.d.ts +28 -5
- package/dist/lib/behaviors/collapse-expand.d.ts +2 -0
- package/dist/lib/behaviors/drag-canvas.d.ts +7 -0
- package/dist/lib/behaviors/drag-element.d.ts +2 -2
- package/dist/lib/behaviors/index.d.ts +2 -0
- package/dist/lib/behaviors/lasso-select.d.ts +2 -1
- package/dist/lib/behaviors/scroll-canvas.d.ts +64 -0
- package/dist/lib/behaviors/types.d.ts +2 -1
- package/dist/lib/behaviors/zoom-canvas.d.ts +1 -1
- package/dist/lib/constants/events/graph.d.ts +5 -1
- package/dist/lib/elements/combos/base-combo.d.ts +1 -1
- package/dist/lib/elements/edges/base-edge.d.ts +0 -5
- package/dist/lib/elements/nodes/base-node.d.ts +1 -7
- package/dist/lib/elements/shapes/badge.d.ts +1 -1
- package/dist/lib/{plugins/hull/shape.d.ts → elements/shapes/contour.d.ts} +17 -17
- package/dist/lib/elements/shapes/index.d.ts +2 -0
- package/dist/lib/exports.d.ts +12 -20
- package/dist/lib/plugins/bubble-sets.d.ts +45 -0
- package/dist/lib/plugins/camera-setting.d.ts +4 -2
- package/dist/lib/plugins/contextmenu.d.ts +1 -0
- package/dist/lib/plugins/grid-line.d.ts +51 -8
- package/dist/lib/plugins/hull/index.d.ts +43 -11
- package/dist/lib/plugins/index.d.ts +4 -0
- package/dist/lib/plugins/timebar.d.ts +225 -0
- package/dist/lib/plugins/tooltip.d.ts +2 -2
- package/dist/lib/registry/index.d.ts +1 -1
- package/dist/lib/runtime/data.d.ts +9 -3
- package/dist/lib/runtime/element.d.ts +3 -7
- package/dist/lib/runtime/graph.d.ts +530 -42
- package/dist/lib/runtime/types.d.ts +3 -3
- package/dist/lib/runtime/viewport.d.ts +2 -2
- package/dist/lib/spec/canvas.d.ts +6 -2
- package/{lib/spec/spec.d.ts → dist/lib/spec/graph.d.ts} +12 -4
- package/dist/lib/spec/index.d.ts +1 -1
- package/dist/lib/spec/theme.d.ts +1 -4
- package/dist/lib/spec/viewport.d.ts +1 -1
- package/dist/lib/themes/types.d.ts +0 -1
- package/dist/lib/transforms/process-parallel-edges.d.ts +1 -1
- package/dist/lib/types/data.d.ts +2 -2
- package/dist/lib/types/viewport.d.ts +4 -4
- package/dist/lib/utils/animation.d.ts +5 -5
- package/dist/lib/utils/data.d.ts +2 -2
- package/dist/lib/utils/element.d.ts +1 -1
- package/dist/lib/utils/event/events.d.ts +1 -1
- package/dist/lib/utils/event/index.d.ts +1 -1
- package/dist/lib/utils/palette.d.ts +1 -1
- package/dist/lib/utils/relation.d.ts +2 -2
- package/dist/lib/utils/visibility.d.ts +1 -1
- package/esm/animations/types.d.ts +3 -4
- package/esm/behaviors/base-behavior.d.ts +2 -1
- package/esm/behaviors/brush-select.d.ts +31 -13
- package/esm/behaviors/brush-select.js +7 -2
- package/esm/behaviors/brush-select.js.map +1 -1
- package/esm/behaviors/click-element.d.ts +28 -5
- package/esm/behaviors/click-element.js +11 -0
- package/esm/behaviors/click-element.js.map +1 -1
- package/esm/behaviors/collapse-expand.d.ts +2 -0
- package/esm/behaviors/collapse-expand.js +2 -2
- package/esm/behaviors/collapse-expand.js.map +1 -1
- package/esm/behaviors/drag-canvas.d.ts +7 -0
- package/esm/behaviors/drag-canvas.js.map +1 -1
- package/esm/behaviors/drag-element.d.ts +2 -2
- package/esm/behaviors/index.d.ts +2 -0
- package/esm/behaviors/index.js +1 -0
- package/esm/behaviors/index.js.map +1 -1
- package/esm/behaviors/lasso-select.d.ts +2 -1
- package/esm/behaviors/lasso-select.js +1 -1
- package/esm/behaviors/lasso-select.js.map +1 -1
- package/esm/behaviors/scroll-canvas.d.ts +64 -0
- package/esm/behaviors/scroll-canvas.js +80 -0
- package/esm/behaviors/scroll-canvas.js.map +1 -0
- package/esm/behaviors/types.d.ts +2 -1
- package/esm/behaviors/zoom-canvas.d.ts +1 -1
- package/esm/constants/events/graph.d.ts +5 -1
- package/esm/constants/events/graph.js +4 -0
- package/esm/constants/events/graph.js.map +1 -1
- package/esm/elements/combos/base-combo.d.ts +1 -1
- package/esm/elements/edges/base-edge.d.ts +0 -5
- package/esm/elements/edges/base-edge.js +1 -2
- package/esm/elements/edges/base-edge.js.map +1 -1
- package/esm/elements/nodes/base-node.d.ts +1 -7
- package/esm/elements/nodes/base-node.js +2 -2
- package/esm/elements/nodes/base-node.js.map +1 -1
- package/esm/elements/shapes/badge.d.ts +1 -1
- package/{lib/plugins/hull/shape.d.ts → esm/elements/shapes/contour.d.ts} +17 -17
- package/esm/{plugins/hull/shape.js → elements/shapes/contour.js} +12 -11
- package/esm/elements/shapes/contour.js.map +1 -0
- package/esm/elements/shapes/index.d.ts +2 -0
- package/esm/elements/shapes/index.js +1 -0
- package/esm/elements/shapes/index.js.map +1 -1
- package/esm/exports.d.ts +12 -20
- package/esm/exports.js +6 -17
- package/esm/exports.js.map +1 -1
- package/esm/plugins/bubble-sets.d.ts +45 -0
- package/esm/plugins/bubble-sets.js +212 -0
- package/esm/plugins/bubble-sets.js.map +1 -0
- package/esm/plugins/camera-setting.d.ts +4 -2
- package/esm/plugins/camera-setting.js.map +1 -1
- package/esm/plugins/contextmenu.d.ts +1 -0
- package/esm/plugins/contextmenu.js +1 -0
- package/esm/plugins/contextmenu.js.map +1 -1
- package/esm/plugins/grid-line.d.ts +51 -8
- package/esm/plugins/grid-line.js.map +1 -1
- package/esm/plugins/history/utils.js +6 -2
- package/esm/plugins/history/utils.js.map +1 -1
- package/esm/plugins/hull/index.d.ts +43 -11
- package/esm/plugins/hull/index.js +46 -16
- package/esm/plugins/hull/index.js.map +1 -1
- package/esm/plugins/index.d.ts +4 -0
- package/esm/plugins/index.js +2 -0
- package/esm/plugins/index.js.map +1 -1
- package/esm/plugins/legend.js +2 -1
- package/esm/plugins/legend.js.map +1 -1
- package/esm/plugins/timebar.d.ts +225 -0
- package/esm/plugins/timebar.js +253 -0
- package/esm/plugins/timebar.js.map +1 -0
- package/esm/plugins/tooltip.d.ts +2 -2
- package/esm/registry/build-in.js +10 -7
- package/esm/registry/build-in.js.map +1 -1
- package/esm/registry/index.d.ts +1 -1
- package/esm/registry/index.js +1 -1
- package/esm/runtime/canvas.js +2 -2
- package/esm/runtime/canvas.js.map +1 -1
- package/esm/runtime/data.d.ts +9 -3
- package/esm/runtime/data.js +20 -3
- package/esm/runtime/data.js.map +1 -1
- package/esm/runtime/element.d.ts +3 -7
- package/esm/runtime/element.js +6 -4
- package/esm/runtime/element.js.map +1 -1
- package/esm/runtime/graph.d.ts +530 -42
- package/esm/runtime/graph.js +409 -33
- package/esm/runtime/graph.js.map +1 -1
- package/esm/runtime/types.d.ts +3 -3
- package/esm/runtime/viewport.d.ts +2 -2
- package/esm/runtime/viewport.js +2 -2
- package/esm/spec/canvas.d.ts +6 -2
- package/{dist/lib/spec/spec.d.ts → esm/spec/graph.d.ts} +12 -4
- package/esm/spec/graph.js +2 -0
- package/esm/spec/graph.js.map +1 -0
- package/esm/spec/index.d.ts +1 -1
- package/esm/spec/theme.d.ts +1 -4
- package/esm/spec/viewport.d.ts +1 -1
- package/esm/themes/base.js +9 -9
- package/esm/themes/base.js.map +1 -1
- package/esm/themes/types.d.ts +0 -1
- package/esm/transforms/process-parallel-edges.d.ts +1 -1
- package/esm/types/data.d.ts +2 -2
- package/esm/types/viewport.d.ts +4 -4
- package/esm/utils/animation.d.ts +5 -5
- package/esm/utils/animation.js +2 -2
- package/esm/utils/animation.js.map +1 -1
- package/esm/utils/change.js +8 -1
- package/esm/utils/change.js.map +1 -1
- package/esm/utils/data.d.ts +2 -2
- package/esm/utils/data.js +2 -2
- package/esm/utils/element.d.ts +1 -1
- package/esm/utils/element.js +2 -2
- package/esm/utils/event/events.d.ts +1 -1
- package/esm/utils/event/events.js.map +1 -1
- package/esm/utils/event/index.d.ts +1 -1
- package/esm/utils/event/index.js +1 -1
- package/esm/utils/palette.d.ts +1 -1
- package/esm/utils/palette.js +1 -1
- package/esm/utils/relation.d.ts +2 -2
- package/esm/utils/relation.js +2 -2
- package/esm/utils/visibility.d.ts +1 -1
- package/esm/utils/visibility.js +1 -1
- package/lib/animations/types.d.ts +3 -4
- package/lib/behaviors/base-behavior.d.ts +2 -1
- package/lib/behaviors/brush-select.d.ts +31 -13
- package/lib/behaviors/brush-select.js +7 -2
- package/lib/behaviors/brush-select.js.map +1 -1
- package/lib/behaviors/click-element.d.ts +28 -5
- package/lib/behaviors/click-element.js +11 -0
- package/lib/behaviors/click-element.js.map +1 -1
- package/lib/behaviors/collapse-expand.d.ts +2 -0
- package/lib/behaviors/collapse-expand.js +2 -2
- package/lib/behaviors/collapse-expand.js.map +1 -1
- package/lib/behaviors/drag-canvas.d.ts +7 -0
- package/lib/behaviors/drag-canvas.js.map +1 -1
- package/lib/behaviors/drag-element.d.ts +2 -2
- package/lib/behaviors/index.d.ts +2 -0
- package/lib/behaviors/index.js +3 -1
- package/lib/behaviors/index.js.map +1 -1
- package/lib/behaviors/lasso-select.d.ts +2 -1
- package/lib/behaviors/lasso-select.js +1 -1
- package/lib/behaviors/lasso-select.js.map +1 -1
- package/lib/behaviors/scroll-canvas.d.ts +64 -0
- package/lib/behaviors/scroll-canvas.js +84 -0
- package/lib/behaviors/scroll-canvas.js.map +1 -0
- package/lib/behaviors/types.d.ts +2 -1
- package/lib/behaviors/zoom-canvas.d.ts +1 -1
- package/lib/constants/events/graph.d.ts +5 -1
- package/lib/constants/events/graph.js +4 -0
- package/lib/constants/events/graph.js.map +1 -1
- package/lib/elements/combos/base-combo.d.ts +1 -1
- package/lib/elements/edges/base-edge.d.ts +0 -5
- package/lib/elements/edges/base-edge.js +1 -2
- package/lib/elements/edges/base-edge.js.map +1 -1
- package/lib/elements/nodes/base-node.d.ts +1 -7
- package/lib/elements/nodes/base-node.js +2 -2
- package/lib/elements/nodes/base-node.js.map +1 -1
- package/lib/elements/shapes/badge.d.ts +1 -1
- package/{esm/plugins/hull/shape.d.ts → lib/elements/shapes/contour.d.ts} +17 -17
- package/lib/{plugins/hull/shape.js → elements/shapes/contour.js} +15 -14
- package/lib/elements/shapes/contour.js.map +1 -0
- package/lib/elements/shapes/index.d.ts +2 -0
- package/lib/elements/shapes/index.js +3 -1
- package/lib/elements/shapes/index.js.map +1 -1
- package/lib/exports.d.ts +12 -20
- package/lib/exports.js +46 -17
- package/lib/exports.js.map +1 -1
- package/lib/plugins/bubble-sets.d.ts +45 -0
- package/lib/plugins/bubble-sets.js +216 -0
- package/lib/plugins/bubble-sets.js.map +1 -0
- package/lib/plugins/camera-setting.d.ts +4 -2
- package/lib/plugins/camera-setting.js.map +1 -1
- package/lib/plugins/contextmenu.d.ts +1 -0
- package/lib/plugins/contextmenu.js +1 -0
- package/lib/plugins/contextmenu.js.map +1 -1
- package/lib/plugins/grid-line.d.ts +51 -8
- package/lib/plugins/grid-line.js.map +1 -1
- package/lib/plugins/history/utils.js +6 -2
- package/lib/plugins/history/utils.js.map +1 -1
- package/lib/plugins/hull/index.d.ts +43 -11
- package/lib/plugins/hull/index.js +46 -16
- package/lib/plugins/hull/index.js.map +1 -1
- package/lib/plugins/index.d.ts +4 -0
- package/lib/plugins/index.js +5 -1
- package/lib/plugins/index.js.map +1 -1
- package/lib/plugins/legend.js +2 -1
- package/lib/plugins/legend.js.map +1 -1
- package/lib/plugins/timebar.d.ts +225 -0
- package/lib/plugins/timebar.js +257 -0
- package/lib/plugins/timebar.js.map +1 -0
- package/lib/plugins/tooltip.d.ts +2 -2
- package/lib/registry/build-in.js +8 -5
- package/lib/registry/build-in.js.map +1 -1
- package/lib/registry/index.d.ts +1 -1
- package/lib/registry/index.js +1 -1
- package/lib/runtime/canvas.js +2 -2
- package/lib/runtime/canvas.js.map +1 -1
- package/lib/runtime/data.d.ts +9 -3
- package/lib/runtime/data.js +20 -3
- package/lib/runtime/data.js.map +1 -1
- package/lib/runtime/element.d.ts +3 -7
- package/lib/runtime/element.js +6 -4
- package/lib/runtime/element.js.map +1 -1
- package/lib/runtime/graph.d.ts +530 -42
- package/lib/runtime/graph.js +409 -33
- package/lib/runtime/graph.js.map +1 -1
- package/lib/runtime/types.d.ts +3 -3
- package/lib/runtime/viewport.d.ts +2 -2
- package/lib/runtime/viewport.js +2 -2
- package/lib/spec/canvas.d.ts +6 -2
- package/{esm/spec/spec.d.ts → lib/spec/graph.d.ts} +12 -4
- package/lib/spec/{spec.js → graph.js} +1 -1
- package/lib/spec/graph.js.map +1 -0
- package/lib/spec/index.d.ts +1 -1
- package/lib/spec/theme.d.ts +1 -4
- package/lib/spec/viewport.d.ts +1 -1
- package/lib/themes/base.js +9 -9
- package/lib/themes/base.js.map +1 -1
- package/lib/themes/types.d.ts +0 -1
- package/lib/transforms/process-parallel-edges.d.ts +1 -1
- package/lib/types/data.d.ts +2 -2
- package/lib/types/viewport.d.ts +4 -4
- package/lib/utils/animation.d.ts +5 -5
- package/lib/utils/animation.js +2 -2
- package/lib/utils/animation.js.map +1 -1
- package/lib/utils/change.js +8 -1
- package/lib/utils/change.js.map +1 -1
- package/lib/utils/data.d.ts +2 -2
- package/lib/utils/data.js +2 -2
- package/lib/utils/element.d.ts +1 -1
- package/lib/utils/element.js +2 -2
- package/lib/utils/event/events.d.ts +1 -1
- package/lib/utils/event/events.js.map +1 -1
- package/lib/utils/event/index.d.ts +1 -1
- package/lib/utils/event/index.js +1 -1
- package/lib/utils/palette.d.ts +1 -1
- package/lib/utils/palette.js +1 -1
- package/lib/utils/relation.d.ts +2 -2
- package/lib/utils/relation.js +2 -2
- package/lib/utils/visibility.d.ts +1 -1
- package/lib/utils/visibility.js +1 -1
- package/package.json +2 -1
- package/src/animations/types.ts +3 -4
- package/src/behaviors/base-behavior.ts +1 -1
- package/src/behaviors/brush-select.ts +33 -14
- package/src/behaviors/click-element.ts +28 -5
- package/src/behaviors/collapse-expand.ts +4 -2
- package/src/behaviors/drag-canvas.ts +7 -0
- package/src/behaviors/drag-element.ts +2 -2
- package/src/behaviors/index.ts +2 -0
- package/src/behaviors/lasso-select.ts +2 -2
- package/src/behaviors/scroll-canvas.ts +143 -0
- package/src/behaviors/types.ts +2 -1
- package/src/behaviors/zoom-canvas.ts +1 -1
- package/src/constants/events/graph.ts +4 -0
- package/src/elements/combos/base-combo.ts +1 -1
- package/src/elements/edges/base-edge.ts +1 -7
- package/src/elements/nodes/base-node.ts +3 -12
- package/src/{plugins/hull/shape.ts → elements/shapes/contour.ts} +27 -34
- package/src/elements/shapes/index.ts +2 -0
- package/src/exports.ts +104 -24
- package/src/plugins/bubble-sets.ts +268 -0
- package/src/plugins/camera-setting.ts +4 -2
- package/src/plugins/contextmenu.ts +1 -0
- package/src/plugins/grid-line.ts +51 -8
- package/src/plugins/history/utils.ts +6 -2
- package/src/plugins/hull/index.ts +57 -20
- package/src/plugins/index.ts +4 -0
- package/src/plugins/legend.ts +3 -1
- package/src/plugins/timebar.ts +450 -0
- package/src/plugins/tooltip.ts +2 -2
- package/src/registry/build-in.ts +21 -6
- package/src/registry/index.ts +1 -1
- package/src/runtime/canvas.ts +2 -2
- package/src/runtime/data.ts +21 -3
- package/src/runtime/element.ts +5 -4
- package/src/runtime/graph.ts +543 -48
- package/src/runtime/types.ts +3 -3
- package/src/runtime/viewport.ts +2 -2
- package/src/spec/canvas.ts +6 -2
- package/src/spec/{spec.ts → graph.ts} +12 -4
- package/src/spec/index.ts +1 -1
- package/src/spec/theme.ts +1 -5
- package/src/spec/viewport.ts +1 -1
- package/src/themes/base.ts +9 -9
- package/src/themes/types.ts +0 -2
- package/src/transforms/process-parallel-edges.ts +1 -1
- package/src/types/data.ts +2 -2
- package/src/types/viewport.ts +4 -4
- package/src/utils/animation.ts +4 -4
- package/src/utils/change.ts +6 -1
- package/src/utils/data.ts +2 -2
- package/src/utils/element.ts +2 -2
- package/src/utils/event/events.ts +3 -1
- package/src/utils/event/index.ts +1 -1
- package/src/utils/palette.ts +1 -1
- package/src/utils/relation.ts +2 -2
- package/src/utils/visibility.ts +1 -1
- package/esm/plugins/hull/shape.js.map +0 -1
- package/esm/spec/spec.js +0 -2
- package/esm/spec/spec.js.map +0 -1
- package/lib/plugins/hull/shape.js.map +0 -1
- package/lib/spec/spec.js.map +0 -1
package/src/runtime/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GraphOptions } from '../spec';
|
|
2
2
|
import type { BatchController } from './batch';
|
|
3
3
|
import type { BehaviorController } from './behavior';
|
|
4
4
|
import type { Canvas } from './canvas';
|
|
@@ -28,7 +28,7 @@ export interface RuntimeContext {
|
|
|
28
28
|
*
|
|
29
29
|
* <en/> G6 options
|
|
30
30
|
*/
|
|
31
|
-
options:
|
|
31
|
+
options: GraphOptions;
|
|
32
32
|
/**
|
|
33
33
|
* <zh/> 数据模型
|
|
34
34
|
*
|
|
@@ -45,7 +45,7 @@ export interface RuntimeContext {
|
|
|
45
45
|
* <zh/> 元素控制器
|
|
46
46
|
*
|
|
47
47
|
* <en/> Element controller
|
|
48
|
-
* @
|
|
48
|
+
* @remarks
|
|
49
49
|
* <zh/> 仅在绘制开始后才可用
|
|
50
50
|
*
|
|
51
51
|
* <en/> Only available after drawing starts
|
package/src/runtime/viewport.ts
CHANGED
|
@@ -56,7 +56,7 @@ export class ViewportController {
|
|
|
56
56
|
*
|
|
57
57
|
* <en/> Get the center coordinates of the canvas
|
|
58
58
|
* @returns - <zh/> 画布中心坐标 | <en/> Center coordinates of the canvas
|
|
59
|
-
* @
|
|
59
|
+
* @remarks
|
|
60
60
|
* <zh/> 基于画布的宽高计算中心坐标,不受视口变换影响
|
|
61
61
|
*
|
|
62
62
|
* <en/> Calculate the center coordinates based on the width and height of the canvas, not affected by the viewport transformation
|
|
@@ -72,7 +72,7 @@ export class ViewportController {
|
|
|
72
72
|
*
|
|
73
73
|
* <en/> Current viewport center coordinates
|
|
74
74
|
* @returns - <zh/> 视口中心坐标 | <en/> Viewport center coordinates
|
|
75
|
-
* @
|
|
75
|
+
* @remarks
|
|
76
76
|
* <zh/> 以画布原点为原点,受到视口变换影响
|
|
77
77
|
*
|
|
78
78
|
* <en/> With the origin of the canvas as the origin, affected by the viewport transformation
|
package/src/spec/canvas.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CanvasConfig, IRenderer } from '@antv/g';
|
|
2
2
|
import type { Canvas } from '../runtime/canvas';
|
|
3
|
-
import type { CanvasLayer } from '../types/canvas';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* <zh/> 画布配置项
|
|
@@ -9,6 +8,11 @@ import type { CanvasLayer } from '../types/canvas';
|
|
|
9
8
|
* @public
|
|
10
9
|
*/
|
|
11
10
|
export interface CanvasOptions extends Pick<CanvasConfig, 'devicePixelRatio'> {
|
|
11
|
+
/**
|
|
12
|
+
* <zh/> 画布容器
|
|
13
|
+
*
|
|
14
|
+
* <en/> canvas container
|
|
15
|
+
*/
|
|
12
16
|
container?: string | HTMLElement | Canvas;
|
|
13
17
|
/**
|
|
14
18
|
* <zh/> 画布宽度
|
|
@@ -27,7 +31,7 @@ export interface CanvasOptions extends Pick<CanvasConfig, 'devicePixelRatio'> {
|
|
|
27
31
|
*
|
|
28
32
|
* <en/> get renderer
|
|
29
33
|
*/
|
|
30
|
-
renderer?: (layer:
|
|
34
|
+
renderer?: (layer: 'background' | 'main' | 'label' | 'transient') => IRenderer;
|
|
31
35
|
/**
|
|
32
36
|
* <zh/> 是否自动调整画布大小
|
|
33
37
|
*
|
|
@@ -12,17 +12,25 @@ import type { TransformOptions } from './transform';
|
|
|
12
12
|
import type { ViewportOptions } from './viewport';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* <zh/>
|
|
15
|
+
* <zh/> Graph 配置项
|
|
16
16
|
*
|
|
17
|
-
* <en/>
|
|
17
|
+
* <en/> Graph options
|
|
18
|
+
* @remarks
|
|
19
|
+
* <zh/> Graph 的初始化通过 `new` 进行实例化,实例化时需要传入需要的参数。目前所支持的参数如下:
|
|
20
|
+
*
|
|
21
|
+
* <en/> The initialization of Graph is instantiated through `new`, and the required parameters need to be passed in when instantiated.
|
|
22
|
+
*
|
|
23
|
+
* ```
|
|
24
|
+
* new G6.Graph(options: GraphOptions) => Graph
|
|
25
|
+
* ```
|
|
18
26
|
*/
|
|
19
27
|
|
|
20
|
-
export interface
|
|
28
|
+
export interface GraphOptions extends CanvasOptions, ViewportOptions {
|
|
21
29
|
/**
|
|
22
30
|
* <zh/> 启用关闭、全局动画
|
|
23
31
|
*
|
|
24
32
|
* <en/> Enable or disable global animation
|
|
25
|
-
* @
|
|
33
|
+
* @remarks
|
|
26
34
|
* <zh/> 为动画配置项时,会启用动画,并将该动画配置作为全局动画的基础配置
|
|
27
35
|
*
|
|
28
36
|
* <en/> When it is an animation configuration item, the animation will be enabled, and the animation configuration will be used as the basic configuration of the global animation
|
package/src/spec/index.ts
CHANGED
|
@@ -4,9 +4,9 @@ export type { ComboData, EdgeData, GraphData, NodeData } from './data';
|
|
|
4
4
|
export type { ComboOptions } from './element/combo';
|
|
5
5
|
export type { EdgeOptions } from './element/edge';
|
|
6
6
|
export type { NodeOptions } from './element/node';
|
|
7
|
+
export type { GraphOptions } from './graph';
|
|
7
8
|
export type { LayoutOptions } from './layout';
|
|
8
9
|
export type { PluginOptions } from './plugin';
|
|
9
|
-
export type { G6Spec } from './spec';
|
|
10
10
|
export type { ThemeOptions } from './theme';
|
|
11
11
|
export type { TransformOptions } from './transform';
|
|
12
12
|
export type { ViewportOptions } from './viewport';
|
package/src/spec/theme.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import type { BuiltInTheme } from '../themes/types';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* <zh/> 主题配置项
|
|
5
3
|
*
|
|
6
4
|
* <en/> Theme Options
|
|
7
5
|
* @public
|
|
8
6
|
*/
|
|
9
|
-
export type ThemeOptions =
|
|
10
|
-
|
|
11
|
-
type CustomTheme = string;
|
|
7
|
+
export type ThemeOptions = 'light' | 'dark' | string;
|
package/src/spec/viewport.ts
CHANGED
package/src/themes/base.ts
CHANGED
|
@@ -78,7 +78,7 @@ export function create(tokens: ThemeTokens): Theme {
|
|
|
78
78
|
badgeFontSize: 8,
|
|
79
79
|
badgePadding: [1, 4],
|
|
80
80
|
badgePalette: nodeBadgePalette,
|
|
81
|
-
|
|
81
|
+
fill: nodeColor,
|
|
82
82
|
halo: false,
|
|
83
83
|
haloLineWidth: 12,
|
|
84
84
|
haloStrokeOpacity: 0.25,
|
|
@@ -127,7 +127,7 @@ export function create(tokens: ThemeTokens): Theme {
|
|
|
127
127
|
opacity: 0.25,
|
|
128
128
|
},
|
|
129
129
|
disabled: {
|
|
130
|
-
|
|
130
|
+
fill: nodeColorDisabled,
|
|
131
131
|
labelOpacity: 0.25,
|
|
132
132
|
donutOpacity: 0.25,
|
|
133
133
|
},
|
|
@@ -136,13 +136,12 @@ export function create(tokens: ThemeTokens): Theme {
|
|
|
136
136
|
enter: 'fade',
|
|
137
137
|
exit: 'fade',
|
|
138
138
|
visibility: 'fade',
|
|
139
|
-
update: [{ fields: ['x', 'y', '
|
|
139
|
+
update: [{ fields: ['x', 'y', 'fill', 'stroke'] }],
|
|
140
140
|
},
|
|
141
141
|
},
|
|
142
142
|
edge: {
|
|
143
143
|
palette: edgePaletteOptions,
|
|
144
144
|
style: {
|
|
145
|
-
color: edgeColor,
|
|
146
145
|
halo: false,
|
|
147
146
|
haloLineWidth: 12,
|
|
148
147
|
haloStrokeOpacity: 0.25,
|
|
@@ -160,6 +159,7 @@ export function create(tokens: ThemeTokens): Theme {
|
|
|
160
159
|
labelTextBaseline: 'middle',
|
|
161
160
|
lineWidth: 1,
|
|
162
161
|
opacity: 1,
|
|
162
|
+
stroke: edgeColor,
|
|
163
163
|
},
|
|
164
164
|
state: {
|
|
165
165
|
selected: {
|
|
@@ -180,7 +180,7 @@ export function create(tokens: ThemeTokens): Theme {
|
|
|
180
180
|
opacity: 0.25,
|
|
181
181
|
},
|
|
182
182
|
disabled: {
|
|
183
|
-
|
|
183
|
+
stroke: edgeColorDisabled,
|
|
184
184
|
labelOpacity: 0.25,
|
|
185
185
|
},
|
|
186
186
|
},
|
|
@@ -188,7 +188,7 @@ export function create(tokens: ThemeTokens): Theme {
|
|
|
188
188
|
enter: 'fade',
|
|
189
189
|
exit: 'fade',
|
|
190
190
|
visibility: 'fade',
|
|
191
|
-
update: [{ fields: ['
|
|
191
|
+
update: [{ fields: ['path', 'stroke'], shape: 'key' }],
|
|
192
192
|
},
|
|
193
193
|
},
|
|
194
194
|
combo: {
|
|
@@ -196,7 +196,7 @@ export function create(tokens: ThemeTokens): Theme {
|
|
|
196
196
|
collapsedMaskFill: comboColor,
|
|
197
197
|
collapsedMaskFontSize: 12,
|
|
198
198
|
collapsedSize: 32,
|
|
199
|
-
|
|
199
|
+
fill: comboColor,
|
|
200
200
|
halo: false,
|
|
201
201
|
haloLineWidth: 12,
|
|
202
202
|
haloStroke: comboStroke,
|
|
@@ -235,7 +235,7 @@ export function create(tokens: ThemeTokens): Theme {
|
|
|
235
235
|
opacity: 0.65,
|
|
236
236
|
},
|
|
237
237
|
disabled: {
|
|
238
|
-
|
|
238
|
+
fill: comboColorDisabled,
|
|
239
239
|
labelOpacity: 0.25,
|
|
240
240
|
opacity: 0.25,
|
|
241
241
|
stroke: comboStrokeDisabled,
|
|
@@ -247,7 +247,7 @@ export function create(tokens: ThemeTokens): Theme {
|
|
|
247
247
|
visibility: 'fade',
|
|
248
248
|
expand: 'combo-collapse-expand',
|
|
249
249
|
collapse: 'combo-collapse-expand',
|
|
250
|
-
update: [{ fields: ['x', 'y'] }, { fields: ['size', '
|
|
250
|
+
update: [{ fields: ['x', 'y'] }, { fields: ['size', 'fill', 'stroke'], shape: 'key' }],
|
|
251
251
|
},
|
|
252
252
|
},
|
|
253
253
|
};
|
package/src/themes/types.ts
CHANGED
|
@@ -2,8 +2,6 @@ import type { StaticComboOptions } from '../spec/element/combo';
|
|
|
2
2
|
import type { StaticEdgeOptions } from '../spec/element/edge';
|
|
3
3
|
import type { StaticNodeOptions } from '../spec/element/node';
|
|
4
4
|
|
|
5
|
-
export type BuiltInTheme = 'light' | 'dark';
|
|
6
|
-
|
|
7
5
|
export type Theme = {
|
|
8
6
|
node?: StaticNodeOptions;
|
|
9
7
|
edge?: StaticEdgeOptions;
|
|
@@ -27,7 +27,7 @@ export interface ProcessParallelEdgesOptions extends BaseTransformOptions {
|
|
|
27
27
|
* <zh/> 处理模式,默认为捆绑
|
|
28
28
|
*
|
|
29
29
|
* <en/> Processing mode, default is bundle
|
|
30
|
-
* @
|
|
30
|
+
* @remarks
|
|
31
31
|
* <zh/>
|
|
32
32
|
* - merge: 将平行边合并为一条边,适用于不需要区分平行边的情况
|
|
33
33
|
* - bundle: 每条边都会与其他所有平行边捆绑在一起,并通过改变曲率与其他边分开。如果一组平行边的数量是奇数,那么中心的边将被绘制为直线,其他的边将被绘制为曲线
|
package/src/types/data.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type ElementData = NodeData[] | EdgeData[] | ComboData[];
|
|
|
17
17
|
* <zh/> 节点、边更新可选数据
|
|
18
18
|
*
|
|
19
19
|
* <en/> Node, edge update optional data
|
|
20
|
-
* @
|
|
20
|
+
* @remarks
|
|
21
21
|
* <zh/> 必须包含 id 字段,其他字段可选
|
|
22
22
|
*
|
|
23
23
|
* <en/> Must contain the id field, other fields are optional
|
|
@@ -28,7 +28,7 @@ export type PartialNodeLikeData<T extends NodeLikeData> = Partial<T> & Pick<T, '
|
|
|
28
28
|
* <zh/> 边更新可选数据
|
|
29
29
|
*
|
|
30
30
|
* <en/> Edge update optional data
|
|
31
|
-
* @
|
|
31
|
+
* @remarks
|
|
32
32
|
* <zh/> 包含两种情况:
|
|
33
33
|
* 1. 必须包含 source、target 字段,其他字段可选
|
|
34
34
|
* 2. 必须包含 id 字段,其他字段可选
|
package/src/types/viewport.ts
CHANGED
|
@@ -7,15 +7,15 @@ export type ViewportAnimationEffectTiming =
|
|
|
7
7
|
duration?: number;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
export
|
|
10
|
+
export interface TransformOptions {
|
|
11
11
|
mode: ViewportChangeMode;
|
|
12
12
|
origin?: Point;
|
|
13
13
|
translate?: Point;
|
|
14
14
|
rotate?: number;
|
|
15
15
|
scale?: number;
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export interface FitViewOptions {
|
|
19
19
|
/**
|
|
20
20
|
* <zh/> 在以下情况下进行适配
|
|
21
21
|
* - 'overflow' 仅当图内容超出视口时进行适配
|
|
@@ -38,6 +38,6 @@ export type FitViewOptions = {
|
|
|
38
38
|
* - 'both' Adapt to the x and y directions
|
|
39
39
|
*/
|
|
40
40
|
direction?: 'x' | 'y' | 'both';
|
|
41
|
-
}
|
|
41
|
+
}
|
|
42
42
|
|
|
43
43
|
type ViewportChangeMode = 'relative' | 'absolute';
|
package/src/utils/animation.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DisplayObject, IAnimation } from '@antv/g';
|
|
2
2
|
import { isEqual, isNil, isObject } from '@antv/util';
|
|
3
3
|
import { DEFAULT_ANIMATION_OPTIONS } from '../constants';
|
|
4
|
-
import type {
|
|
4
|
+
import type { GraphOptions } from '../spec';
|
|
5
5
|
import type { AnimatableTask, Keyframe } from '../types';
|
|
6
6
|
import { isNode } from './element';
|
|
7
7
|
import { getDescendantShapes } from './shape';
|
|
@@ -101,7 +101,7 @@ export function preprocessKeyframes(keyframes: Keyframe[]): Keyframe[] {
|
|
|
101
101
|
* @param keyframes - <zh/> 动画关键帧 | <en/> keyframes of the animation
|
|
102
102
|
* @param options - <zh/> 动画配置项 | <en/> animation options
|
|
103
103
|
* @returns <zh/> 动画对象 | <en/> animation object
|
|
104
|
-
* @
|
|
104
|
+
* @remarks
|
|
105
105
|
* <zh/> 在设置 enableCSSParsing 为 false 后,复合图形无法继承父属性,因此对于一些需要继承父属性的动画,需要对所有子图形执行相同的动画
|
|
106
106
|
*
|
|
107
107
|
* <en/> After setting enableCSSParsing to false, the compound shape cannot inherit the parent attribute, so for some animations that need to inherit the parent attribute, the same animation needs to be performed on all child shapes
|
|
@@ -142,7 +142,7 @@ export function executeAnimation<T extends DisplayObject>(
|
|
|
142
142
|
* <en/> Get default value of attribute
|
|
143
143
|
* @param name - <zh/> 属性名 | <en/> Attribute name
|
|
144
144
|
* @returns <zh/> 属性默认值 | <en/> Attribute default value
|
|
145
|
-
* @
|
|
145
|
+
* @remarks
|
|
146
146
|
* <zh/> 执行动画过程中,一些属性没有显式指定属性值,但实际上在 G 中存在属性值,因此通过该方法获取其实际默认值
|
|
147
147
|
*
|
|
148
148
|
* <en/> During the animation, some attributes do not explicitly specify the attribute value, but in fact there is an attribute value in G, so use this method to get the actual default value
|
|
@@ -229,7 +229,7 @@ export function executeAnimatableTasks(tasks: AnimatableTask[], callbacks: Callb
|
|
|
229
229
|
* @returns <zh/> 动画配置 | <en/> animation configuration
|
|
230
230
|
*/
|
|
231
231
|
export function getAnimation(
|
|
232
|
-
options:
|
|
232
|
+
options: GraphOptions,
|
|
233
233
|
localAnimation: boolean | EffectTiming | undefined,
|
|
234
234
|
): false | EffectTiming {
|
|
235
235
|
const { animation } = options;
|
package/src/utils/change.ts
CHANGED
|
@@ -34,13 +34,18 @@ export function reduceDataChanges(changes: DataChange[]): DataChange[] {
|
|
|
34
34
|
else if (results.Updated.has(id)) {
|
|
35
35
|
const { original } = results.Updated.get(id)!;
|
|
36
36
|
results.Updated.set(id, { type, value, original } as DataUpdated);
|
|
37
|
+
} else if (results.Removed.has(id)) {
|
|
38
|
+
// 如果存在 Removed,不做任何操作
|
|
39
|
+
// If there is a Removed operation, do nothing
|
|
37
40
|
} else results.Updated.set(id, change);
|
|
38
41
|
} else if (type === 'NodeRemoved' || type === 'EdgeRemoved' || type === 'ComboRemoved') {
|
|
39
42
|
// 如果存在 Added 或者 Updated 的操作,删除 Removed 操作
|
|
40
43
|
// If there is an Added or Updated operation, delete the Removed operation
|
|
41
|
-
if (results.Added.has(id)
|
|
44
|
+
if (results.Added.has(id)) {
|
|
42
45
|
results.Added.delete(id);
|
|
46
|
+
} else if (results.Updated.has(id)) {
|
|
43
47
|
results.Updated.delete(id);
|
|
48
|
+
results.Removed.set(id, change);
|
|
44
49
|
} else {
|
|
45
50
|
results.Removed.set(id, change);
|
|
46
51
|
}
|
package/src/utils/data.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { ComboData, EdgeData, GraphData, NodeData } from '../spec';
|
|
|
8
8
|
* @param original - <zh/> 原始数据 | <en/> original data
|
|
9
9
|
* @param modified - <zh/> 待合并的数据 | <en/> data to be merged
|
|
10
10
|
* @returns <zh/> 合并后的数据 | <en/> merged data
|
|
11
|
-
* @
|
|
11
|
+
* @remarks
|
|
12
12
|
* <zh/> 只会合并第一层的数据,data、style 下的二级数据会被覆盖
|
|
13
13
|
*
|
|
14
14
|
* <en/> Only the first level of data will be merged, the second level of data under data and style will be overwritten
|
|
@@ -39,7 +39,7 @@ export function mergeElementsData<T extends NodeData | EdgeData | ComboData>(ori
|
|
|
39
39
|
* <en/> Clone clement data
|
|
40
40
|
* @param data - <zh/> 待克隆的数据 | <en/> data to be cloned
|
|
41
41
|
* @returns <zh/> 克隆后的数据 | <en/> cloned data
|
|
42
|
-
* @
|
|
42
|
+
* @remarks
|
|
43
43
|
* <zh/> 只会克隆到第二层(data、style)
|
|
44
44
|
*
|
|
45
45
|
* <en/> Only clone to the second level (data, style)
|
package/src/utils/element.ts
CHANGED
|
@@ -168,7 +168,7 @@ export function findPorts(
|
|
|
168
168
|
* <zh/> 查找节点上的最有可能连接的连接桩
|
|
169
169
|
*
|
|
170
170
|
* <en/> Find the most likely connected port on the node
|
|
171
|
-
* @
|
|
171
|
+
* @remarks
|
|
172
172
|
* 1. If `portKey` is specified, return the port.
|
|
173
173
|
* 2. If `portKey` is not specified, return the port closest to the opposite connection points.
|
|
174
174
|
* 3. If the node has no ports, return undefined.
|
|
@@ -195,7 +195,7 @@ export function findPort(node: Node, oppositeNode: Node, portKey?: string, oppos
|
|
|
195
195
|
* <zh/> 寻找节点上所有可能的连接点
|
|
196
196
|
*
|
|
197
197
|
* <en/> Find all possible connection points on the node
|
|
198
|
-
* @
|
|
198
|
+
* @remarks
|
|
199
199
|
* 1. If `portKey` is specified, return the position of the port.
|
|
200
200
|
* 2. If `portKey` is not specified, return positions of all ports.
|
|
201
201
|
* 3. If the node has no ports, return the center of the node.
|
|
@@ -26,7 +26,9 @@ export class GraphLifeCycleEvent extends BaseEvent implements IGraphLifeCycleEve
|
|
|
26
26
|
| GraphEvent.BEFORE_SIZE_CHANGE
|
|
27
27
|
| GraphEvent.AFTER_SIZE_CHANGE
|
|
28
28
|
| GraphEvent.BATCH_START
|
|
29
|
-
| GraphEvent.BATCH_END
|
|
29
|
+
| GraphEvent.BATCH_END
|
|
30
|
+
| GraphEvent.BEFORE_DESTROY
|
|
31
|
+
| GraphEvent.AFTER_DESTROY,
|
|
30
32
|
public data?: any,
|
|
31
33
|
) {
|
|
32
34
|
super(type);
|
package/src/utils/event/index.ts
CHANGED
|
@@ -24,7 +24,7 @@ export function emit(emitter: EventEmitter, event: BaseEvent) {
|
|
|
24
24
|
* <en/> Get the event target element
|
|
25
25
|
* @param shape - <zh/> 事件图形 | <en/> event shape
|
|
26
26
|
* @returns <zh/> 目标元素 | <en/> target element
|
|
27
|
-
* @
|
|
27
|
+
* @remarks
|
|
28
28
|
* <zh/> 事件响应大多数情况会命中元素的内部图形,通过该方法可以获取到其所属元素
|
|
29
29
|
*
|
|
30
30
|
* <en/> Most of the event responses will hit the internal graphics of the element, and this method can be used to get the element to which it belongs
|
package/src/utils/palette.ts
CHANGED
|
@@ -43,7 +43,7 @@ export function parsePalette(palette?: PaletteOptions): STDPaletteOptions | unde
|
|
|
43
43
|
* @param data - <zh/> 元素数据 | <en/> Element data
|
|
44
44
|
* @param palette - <zh/> 色板配置 | <en/> PaletteOptions options
|
|
45
45
|
* @returns <zh/> 元素颜色 | <en/> Element color
|
|
46
|
-
* @
|
|
46
|
+
* @remarks
|
|
47
47
|
* <zh/> 返回值结果是一个以元素 id 为 key,颜色值为 value 的对象
|
|
48
48
|
*
|
|
49
49
|
* <en/> The return value is an object with element id as key and color value as value
|
package/src/utils/relation.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { bfs } from './traverse';
|
|
|
7
7
|
* <zh/> 获取指定元素在 n 度关系内的所有元素的 ID
|
|
8
8
|
*
|
|
9
9
|
* <en/> Get the IDs of all elements within an n-degree relationship from the specified element
|
|
10
|
-
* @
|
|
10
|
+
* @remarks
|
|
11
11
|
* <zh/> 对于节点,0 度关系是节点本身,1 度关系包括节点的直接相邻节点和边,以此类推。
|
|
12
12
|
* 对于边,0 度关系是边本身,1 度关系包括边本身及其两个端点,以此类推。
|
|
13
13
|
*
|
|
@@ -37,7 +37,7 @@ export function getElementNthDegreeIds(graph: Graph, elementType: ElementType, e
|
|
|
37
37
|
* <zh/> 获取指定节点在 n 度关系内的所有元素的 ID
|
|
38
38
|
*
|
|
39
39
|
* <en/> Get all elements IDs within n-degree relationship of the specified node
|
|
40
|
-
* @
|
|
40
|
+
* @remarks
|
|
41
41
|
* <zh/> 节点的 0 度关系是节点本身,1 度关系是节点的直接相邻节点和边,以此类推
|
|
42
42
|
*
|
|
43
43
|
* <en/> 0-degree relationship of a node is the node itself; 1-degree relationship is the node's neighboring nodes and related edges, etc
|
package/src/utils/visibility.ts
CHANGED
|
@@ -10,7 +10,7 @@ const PropertyKey = 'visibility';
|
|
|
10
10
|
* <en/> Set the visibility of the shape instance
|
|
11
11
|
* @param shape - <zh/> 图形实例 | <en/> shape instance
|
|
12
12
|
* @param visibility - <zh/> 可见性 | <en/> visibility
|
|
13
|
-
* @
|
|
13
|
+
* @remarks
|
|
14
14
|
* <zh/> 在设置 enableCSSParsing 为 false 的情况下,复合图形无法继承父属性,因此需要对所有子图形应用相同的可见性
|
|
15
15
|
*
|
|
16
16
|
* <en/> After setting enableCSSParsing to false, the compound shape cannot inherit the parent attribute, so the same visibility needs to be applied to all child shapes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shape.js","sourceRoot":"src/","sources":["plugins/hull/shape.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAyCzD,MAAM,OAAO,IAAK,SAAQ,SAAyB;IACjD,MAAM,CAAC,iBAAiB,GAA4B;QAClD,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,QAAQ;QACxB,gBAAgB,EAAE,IAAI;QACtB,eAAe,EAAE,IAAI;QACrB,YAAY,EAAE,CAAC;QACf,YAAY,EAAE,CAAC;KAChB,CAAC;IAEF,YAAY,OAAoB;QAC9B,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;IACjE,CAAC;IAES,aAAa,CAAC,UAAgC;QACtD,IAAI,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QACxF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,UAAU,EAAE,GAAG,aAAa,CAErG,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,CAAC;QAE7C,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;QACtC,MAAM,aAAa,GAAG,OAAO,EAAE,eAAe,EAAE,CAAC;QAEjD,OAAO,MAAM,CAAC,MAAM,CAClB,8BAA8B,CAC5B,aAAa,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,WAAW,EACX,UAAU,CAAC,IAAI,EACf,UAAU,CACX,EACD,EAAE,aAAa,EAAE,qBAAqB,CAAC,aAAa,EAAE,QAAQ,CAAC,EAAE,EACjE,UAAU,CACX,CAAC;IACJ,CAAC;IAES,eAAe,CAAC,UAAgC;QACxD,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,UAAgC,EAAE,SAAgB;QAC9D,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CAAC;QAC1E,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CAAC;IACzE,CAAC"}
|
package/esm/spec/spec.js
DELETED
package/esm/spec/spec.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec.js","sourceRoot":"src/","sources":["spec/spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shape.js","sourceRoot":"src/","sources":["plugins/hull/shape.ts"],"names":[],"mappings":";;;AACA,+BAA+B;AAC/B,qCAAqC;AAErC,kDAAyD;AAEzD,iDAAqE;AACrE,+CAAmD;AACnD,2CAAyD;AAyCzD,MAAa,IAAK,SAAQ,kBAAyB;IACjD,MAAM,CAAC,iBAAiB,GAA4B;QAClD,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,QAAQ;QACxB,gBAAgB,EAAE,IAAI;QACtB,eAAe,EAAE,IAAI;QACrB,YAAY,EAAE,CAAC;QACf,YAAY,EAAE,CAAC;KAChB,CAAC;IAEF,YAAY,OAAoB;QAC9B,KAAK,CAAC,IAAA,cAAO,EAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;IACjE,CAAC;IAES,aAAa,CAAC,UAAgC;QACtD,IAAI,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QACxF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,UAAU,EAAE,GAAG,IAAA,sBAAa,EAErG,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,CAAC;QAE7C,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;QACtC,MAAM,aAAa,GAAG,OAAO,EAAE,eAAe,EAAE,CAAC;QAEjD,OAAO,MAAM,CAAC,MAAM,CAClB,IAAA,wCAA8B,EAC5B,aAAa,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,WAAW,EACX,UAAU,CAAC,IAAI,EACf,UAAU,CACX,EACD,EAAE,aAAa,EAAE,IAAA,4BAAqB,EAAC,aAAa,EAAE,QAAQ,CAAC,EAAE,EACjE,UAAU,CACX,CAAC;IACJ,CAAC;IAES,eAAe,CAAC,UAAgC;QACxD,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,UAAgC,EAAE,SAAgB;QAC9D,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,QAAI,EAAE,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CAAC;QAC1E,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,cAAK,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CAAC;IACzE,CAAC;;AA7CH,oBA8CC"}
|
package/lib/spec/spec.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec.js","sourceRoot":"src/","sources":["spec/spec.ts"],"names":[],"mappings":""}
|