@knotx/plugins-minimap 0.2.10 → 0.2.12

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/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { NodeData, BasePlugin, Container } from '@knotx/core';
1
+ import { Node, BasePlugin, Container } from '@knotx/core';
2
2
  import { CanvasTransformState, CanvasRef } from '@knotx/plugins-canvas';
3
3
 
4
4
  interface MinimapConfig {
@@ -16,7 +16,7 @@ interface MinimapConfig {
16
16
  * 节点颜色
17
17
  * @default '#AB7BFE'
18
18
  */
19
- nodeColor?: string | ((node: NodeData) => string);
19
+ nodeColor?: string | ((node: Node) => string);
20
20
  /**
21
21
  * 视图区域背景颜色
22
22
  * @default 'rgba(240, 240, 240, 0.6)'
@@ -61,7 +61,7 @@ interface MinimapConfig {
61
61
  * 节点描边颜色
62
62
  * @default 'transparent'
63
63
  */
64
- nodeStrokeColor?: string | ((node: NodeData) => string);
64
+ nodeStrokeColor?: string | ((node: Node) => string);
65
65
  /**
66
66
  * 缩放步长
67
67
  * @default 0.2
@@ -82,7 +82,7 @@ declare class Minimap extends BasePlugin<'minimap', MinimapConfig> {
82
82
  container: Container;
83
83
  transform: CanvasTransformState;
84
84
  canvasRef: CanvasRef | null;
85
- nodes: NodeData[];
85
+ nodes: Node[];
86
86
  get classNames(): {
87
87
  wrapper: string;
88
88
  svg: string;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { NodeData, BasePlugin, Container } from '@knotx/core';
1
+ import { Node, BasePlugin, Container } from '@knotx/core';
2
2
  import { CanvasTransformState, CanvasRef } from '@knotx/plugins-canvas';
3
3
 
4
4
  interface MinimapConfig {
@@ -16,7 +16,7 @@ interface MinimapConfig {
16
16
  * 节点颜色
17
17
  * @default '#AB7BFE'
18
18
  */
19
- nodeColor?: string | ((node: NodeData) => string);
19
+ nodeColor?: string | ((node: Node) => string);
20
20
  /**
21
21
  * 视图区域背景颜色
22
22
  * @default 'rgba(240, 240, 240, 0.6)'
@@ -61,7 +61,7 @@ interface MinimapConfig {
61
61
  * 节点描边颜色
62
62
  * @default 'transparent'
63
63
  */
64
- nodeStrokeColor?: string | ((node: NodeData) => string);
64
+ nodeStrokeColor?: string | ((node: Node) => string);
65
65
  /**
66
66
  * 缩放步长
67
67
  * @default 0.2
@@ -82,7 +82,7 @@ declare class Minimap extends BasePlugin<'minimap', MinimapConfig> {
82
82
  container: Container;
83
83
  transform: CanvasTransformState;
84
84
  canvasRef: CanvasRef | null;
85
- nodes: NodeData[];
85
+ nodes: Node[];
86
86
  get classNames(): {
87
87
  wrapper: string;
88
88
  svg: string;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { NodeData, BasePlugin, Container } from '@knotx/core';
1
+ import { Node, BasePlugin, Container } from '@knotx/core';
2
2
  import { CanvasTransformState, CanvasRef } from '@knotx/plugins-canvas';
3
3
 
4
4
  interface MinimapConfig {
@@ -16,7 +16,7 @@ interface MinimapConfig {
16
16
  * 节点颜色
17
17
  * @default '#AB7BFE'
18
18
  */
19
- nodeColor?: string | ((node: NodeData) => string);
19
+ nodeColor?: string | ((node: Node) => string);
20
20
  /**
21
21
  * 视图区域背景颜色
22
22
  * @default 'rgba(240, 240, 240, 0.6)'
@@ -61,7 +61,7 @@ interface MinimapConfig {
61
61
  * 节点描边颜色
62
62
  * @default 'transparent'
63
63
  */
64
- nodeStrokeColor?: string | ((node: NodeData) => string);
64
+ nodeStrokeColor?: string | ((node: Node) => string);
65
65
  /**
66
66
  * 缩放步长
67
67
  * @default 0.2
@@ -82,7 +82,7 @@ declare class Minimap extends BasePlugin<'minimap', MinimapConfig> {
82
82
  container: Container;
83
83
  transform: CanvasTransformState;
84
84
  canvasRef: CanvasRef | null;
85
- nodes: NodeData[];
85
+ nodes: Node[];
86
86
  get classNames(): {
87
87
  wrapper: string;
88
88
  svg: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/plugins-minimap",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "Minimap Plugin for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -29,8 +29,8 @@
29
29
  ],
30
30
  "peerDependencies": {
31
31
  "interactjs": "^1.10.27",
32
- "@knotx/jsx": "0.2.9",
33
- "@knotx/plugins-canvas": "0.2.10"
32
+ "@knotx/jsx": "0.2.11",
33
+ "@knotx/plugins-canvas": "0.2.12"
34
34
  },
35
35
  "dependencies": {
36
36
  "@interactjs/actions": "^1.10.27",
@@ -38,16 +38,16 @@
38
38
  "@interactjs/modifiers": "^1.10.27",
39
39
  "@interactjs/types": "^1.10.27",
40
40
  "rxjs": "^7.8.1",
41
- "@knotx/decorators": "0.2.10",
42
- "@knotx/core": "0.2.9"
41
+ "@knotx/decorators": "0.2.12",
42
+ "@knotx/core": "0.2.11"
43
43
  },
44
44
  "devDependencies": {
45
45
  "interactjs": "^1.10.27",
46
- "@knotx/build-config": "0.2.9",
47
- "@knotx/eslint-config": "0.2.9",
48
- "@knotx/jsx": "0.2.9",
49
- "@knotx/plugins-canvas": "0.2.10",
50
- "@knotx/typescript-config": "0.2.9"
46
+ "@knotx/build-config": "0.2.11",
47
+ "@knotx/eslint-config": "0.2.11",
48
+ "@knotx/jsx": "0.2.11",
49
+ "@knotx/plugins-canvas": "0.2.12",
50
+ "@knotx/typescript-config": "0.2.11"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "unbuild",