@next-bricks/diagram 0.59.0 → 0.60.1
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/bricks.json +3 -3
- package/dist/chunks/{7770.2cad0922.js → 7770.25d3ce15.js} +2 -2
- package/dist/chunks/7770.25d3ce15.js.map +1 -0
- package/dist/chunks/9711.acf63375.js +2 -0
- package/dist/chunks/9711.acf63375.js.map +1 -0
- package/dist/chunks/eo-draw-canvas.49df72c6.js +2 -0
- package/dist/chunks/eo-draw-canvas.49df72c6.js.map +1 -0
- package/dist/chunks/{main.9cf7d12a.js → main.1f473aed.js} +2 -2
- package/dist/chunks/{main.9cf7d12a.js.map → main.1f473aed.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/{index.b15c7b4f.js → index.0a990d6f.js} +2 -2
- package/dist/{index.b15c7b4f.js.map → index.0a990d6f.js.map} +1 -1
- package/dist/manifest.json +130 -124
- package/dist/types.json +4830 -4751
- package/dist-types/draw-canvas/index.d.ts +9 -0
- package/package.json +2 -2
- package/dist/chunks/7770.2cad0922.js.map +0 -1
- package/dist/chunks/9711.24b8bf0e.js +0 -2
- package/dist/chunks/9711.24b8bf0e.js.map +0 -1
- package/dist/chunks/eo-draw-canvas.bc84c42f.js +0 -2
- package/dist/chunks/eo-draw-canvas.bc84c42f.js.map +0 -1
|
@@ -74,6 +74,14 @@ export interface AddNodesContext {
|
|
|
74
74
|
canvasHeight: number;
|
|
75
75
|
}
|
|
76
76
|
export declare const EoDrawCanvasComponent: React.ForwardRefExoticComponent<EoDrawCanvasComponentProps & React.RefAttributes<DrawCanvasRef>>;
|
|
77
|
+
export interface CanvasContextMenuDetail {
|
|
78
|
+
clientX: number;
|
|
79
|
+
clientY: number;
|
|
80
|
+
view: {
|
|
81
|
+
x: number;
|
|
82
|
+
y: number;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
77
85
|
/**
|
|
78
86
|
* 用于手工绘图的画布。
|
|
79
87
|
*
|
|
@@ -206,6 +214,7 @@ export interface EoDrawCanvasComponentProps extends EoDrawCanvasProps {
|
|
|
206
214
|
onDecoratorViewChange(detail: DecoratorViewChangePayload): void;
|
|
207
215
|
onContainerContainerChange(detail: MoveCellPayload[]): void;
|
|
208
216
|
onScaleChange(scale: number): void;
|
|
217
|
+
onCanvasContextMenu(detail: PositionTuple): void;
|
|
209
218
|
}
|
|
210
219
|
export interface DrawCanvasRef {
|
|
211
220
|
dropNode(node: NodeCell): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/diagram",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.1",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/diagram",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@next-bricks/basic": "*"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "a8e4f0e0dea1499602404c5fb94d08a7d621ba90"
|
|
45
45
|
}
|