@metadev/daga 1.4.0 → 1.4.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.
|
@@ -88,6 +88,7 @@ export declare class DiagramCanvas implements Canvas {
|
|
|
88
88
|
private getEventHoldingCoordinates;
|
|
89
89
|
getPointerLocationRelativeToCanvas(event: MouseEvent): Point;
|
|
90
90
|
getPointerLocationRelativeToBody(event: MouseEvent): Point;
|
|
91
|
+
getPointerLocationRelativeToScreen(event: MouseEvent): Point;
|
|
91
92
|
updateModelInView(): void;
|
|
92
93
|
updateNodesInView(...ids: string[]): void;
|
|
93
94
|
updateSectionsInView(...ids: string[]): void;
|
|
@@ -145,6 +145,12 @@ export interface Canvas {
|
|
|
145
145
|
* @param event A MouseEvent.
|
|
146
146
|
*/
|
|
147
147
|
getPointerLocationRelativeToBody(event: MouseEvent): Point;
|
|
148
|
+
/**
|
|
149
|
+
* Get the location of the pointer in the given event relative to the screen.
|
|
150
|
+
* @private
|
|
151
|
+
* @param event A MouseEvent.
|
|
152
|
+
*/
|
|
153
|
+
getPointerLocationRelativeToScreen(event: MouseEvent): Point;
|
|
148
154
|
/**
|
|
149
155
|
* Adds a validator to the list of validators of the diagram.
|
|
150
156
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metadev/daga",
|
|
3
3
|
"description": "Diagramming engine for editing models on the Web. Made by Metadev.",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"author": "Metadev (https://metadev.pro)",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
7
7
|
"repository": "git+https://github.com/metadevpro/daga-tutorial.git",
|