@inweb/viewer-visualize 25.7.2 → 25.7.4

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 (54) hide show
  1. package/dist/viewer-visualize.js +7358 -7450
  2. package/dist/viewer-visualize.js.map +1 -1
  3. package/dist/viewer-visualize.min.js +1 -1
  4. package/dist/viewer-visualize.module.js +3755 -3755
  5. package/dist/viewer-visualize.module.js.map +1 -1
  6. package/lib/Viewer/Markup/MarkupFactory.d.ts +1 -1
  7. package/lib/Viewer/Markup/{Impl/Visualize → Visualize}/VisualizeMarkup.d.ts +1 -3
  8. package/lib/Viewer/Viewer.d.ts +1 -2
  9. package/lib/index.d.ts +1 -11
  10. package/package.json +5 -12
  11. package/src/Viewer/Markup/MarkupFactory.ts +2 -3
  12. package/src/Viewer/Markup/{Impl/Visualize → Visualize}/VisualizeMarkup.ts +4 -6
  13. package/src/Viewer/Viewer.ts +1 -2
  14. package/src/index.ts +1 -11
  15. package/lib/Viewer/Markup/Api/IMarkupArrow.d.ts +0 -52
  16. package/lib/Viewer/Markup/Api/IMarkupCloud.d.ts +0 -50
  17. package/lib/Viewer/Markup/Api/IMarkupColorable.d.ts +0 -15
  18. package/lib/Viewer/Markup/Api/IMarkupEllipse.d.ts +0 -50
  19. package/lib/Viewer/Markup/Api/IMarkupImage.d.ts +0 -50
  20. package/lib/Viewer/Markup/Api/IMarkupLine.d.ts +0 -43
  21. package/lib/Viewer/Markup/Api/IMarkupObject.d.ts +0 -47
  22. package/lib/Viewer/Markup/Api/IMarkupRectangle.d.ts +0 -50
  23. package/lib/Viewer/Markup/Api/IMarkupText.d.ts +0 -40
  24. package/lib/Viewer/Markup/Api/Impl/Konva/KonvaArrow.d.ts +0 -46
  25. package/lib/Viewer/Markup/Api/Impl/Konva/KonvaCloud.d.ts +0 -35
  26. package/lib/Viewer/Markup/Api/Impl/Konva/KonvaEllipse.d.ts +0 -40
  27. package/lib/Viewer/Markup/Api/Impl/Konva/KonvaImage.d.ts +0 -36
  28. package/lib/Viewer/Markup/Api/Impl/Konva/KonvaLine.d.ts +0 -35
  29. package/lib/Viewer/Markup/Api/Impl/Konva/KonvaRectangle.d.ts +0 -38
  30. package/lib/Viewer/Markup/Api/Impl/Konva/KonvaText.d.ts +0 -37
  31. package/lib/Viewer/Markup/IMarkup.d.ts +0 -130
  32. package/lib/Viewer/Markup/IWorldTransform.d.ts +0 -39
  33. package/lib/Viewer/Markup/Impl/Konva/KonvaMarkup.d.ts +0 -82
  34. package/lib/Viewer/Markup/Impl/Konva/MarkupColor.d.ts +0 -38
  35. package/src/Viewer/Markup/Api/IMarkupArrow.ts +0 -69
  36. package/src/Viewer/Markup/Api/IMarkupCloud.ts +0 -78
  37. package/src/Viewer/Markup/Api/IMarkupColorable.ts +0 -39
  38. package/src/Viewer/Markup/Api/IMarkupEllipse.ts +0 -78
  39. package/src/Viewer/Markup/Api/IMarkupImage.ts +0 -78
  40. package/src/Viewer/Markup/Api/IMarkupLine.ts +0 -70
  41. package/src/Viewer/Markup/Api/IMarkupObject.ts +0 -78
  42. package/src/Viewer/Markup/Api/IMarkupRectangle.ts +0 -78
  43. package/src/Viewer/Markup/Api/IMarkupText.ts +0 -66
  44. package/src/Viewer/Markup/Api/Impl/Konva/KonvaArrow.ts +0 -147
  45. package/src/Viewer/Markup/Api/Impl/Konva/KonvaCloud.ts +0 -213
  46. package/src/Viewer/Markup/Api/Impl/Konva/KonvaEllipse.ts +0 -150
  47. package/src/Viewer/Markup/Api/Impl/Konva/KonvaImage.ts +0 -149
  48. package/src/Viewer/Markup/Api/Impl/Konva/KonvaLine.ts +0 -136
  49. package/src/Viewer/Markup/Api/Impl/Konva/KonvaRectangle.ts +0 -149
  50. package/src/Viewer/Markup/Api/Impl/Konva/KonvaText.ts +0 -141
  51. package/src/Viewer/Markup/IMarkup.ts +0 -173
  52. package/src/Viewer/Markup/IWorldTransform.ts +0 -46
  53. package/src/Viewer/Markup/Impl/Konva/KonvaMarkup.ts +0 -1264
  54. package/src/Viewer/Markup/Impl/Konva/MarkupColor.ts +0 -82
@@ -1,4 +1,4 @@
1
- import { IMarkup } from "./IMarkup";
1
+ import { IMarkup } from "@inweb/markup";
2
2
  /**
3
3
  * The markup type: `Visualize` (deprecated) or `Konva`.
4
4
  */
@@ -1,8 +1,6 @@
1
1
  import { IEventEmitter } from "@inweb/eventemitter2";
2
2
  import { IViewpoint } from "@inweb/viewer-core";
3
- import { IMarkup } from "../../IMarkup";
4
- import { IWorldTransform } from "../../IWorldTransform";
5
- import { IMarkupObject } from "../../Api/IMarkupObject";
3
+ import { IMarkup, IMarkupObject, IWorldTransform } from "@inweb/markup";
6
4
  export declare class VisualizeMarkup implements IMarkup {
7
5
  private _viewer;
8
6
  protected _markupColor: {
@@ -1,8 +1,7 @@
1
1
  import { EventEmitter2 } from "@inweb/eventemitter2";
2
2
  import { Assembly, Client, File, Model } from "@inweb/client";
3
3
  import { CanvasEventMap, Dragger, IDragger, IOptions, IViewer, IViewpoint, Options, OptionsEventMap, ViewerEventMap } from "@inweb/viewer-core";
4
- import { IMarkup } from "./Markup/IMarkup";
5
- import { IWorldTransform } from "./Markup/IWorldTransform";
4
+ import { IMarkup, IWorldTransform } from "@inweb/markup";
6
5
  import { MarkupType } from "./Markup/MarkupFactory";
7
6
  /**
8
7
  * The `Client.js` library class that provides methods to integrate with the
package/lib/index.d.ts CHANGED
@@ -1,16 +1,6 @@
1
1
  import "./Viewer/Commands";
2
2
  export * from "@inweb/viewer-core";
3
+ export * from "@inweb/markup";
3
4
  export { Viewer } from "./Viewer/Viewer";
4
5
  export { OdBaseDragger } from "./Viewer/Draggers/Common/OdBaseDragger";
5
- export { IMarkup } from "./Viewer/Markup/IMarkup";
6
- export { IMarkupArrow } from "./Viewer/Markup/Api/IMarkupArrow";
7
- export { IMarkupCloud } from "./Viewer/Markup/Api/IMarkupCloud";
8
- export { IMarkupColorable } from "./Viewer/Markup/Api/IMarkupColorable";
9
- export { IMarkupEllipse } from "./Viewer/Markup/Api/IMarkupEllipse";
10
- export { IMarkupImage } from "./Viewer/Markup/Api/IMarkupImage";
11
- export { IMarkupLine, MarkupLineType } from "./Viewer/Markup/Api/IMarkupLine";
12
- export { IMarkupRectangle } from "./Viewer/Markup/Api/IMarkupRectangle";
13
- export { IMarkupObject } from "./Viewer/Markup/Api/IMarkupObject";
14
- export { IMarkupText } from "./Viewer/Markup/Api/IMarkupText";
15
- export { IWorldTransform } from "./Viewer/Markup/IWorldTransform";
16
6
  export { MarkupType } from "./Viewer/Markup/MarkupFactory";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inweb/viewer-visualize",
3
- "version": "25.7.2",
3
+ "version": "25.7.4",
4
4
  "description": "3D CAD and BIM data Viewer powered by Visualize",
5
5
  "homepage": "https://cloud.opendesign.com/docs/index.html",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -29,17 +29,10 @@
29
29
  "docs": "typedoc"
30
30
  },
31
31
  "dependencies": {
32
- "@inweb/client": "~25.7.2",
33
- "@inweb/eventemitter2": "~25.7.2",
34
- "@inweb/viewer-core": "~25.7.2"
35
- },
36
- "devDependencies": {
37
- "canvas": "^2.11.2",
38
- "konva": "^9.2.0"
39
- },
40
- "peerDependencies": {
41
- "canvas": "^2.11.2",
42
- "konva": "^9.2.0"
32
+ "@inweb/client": "~25.7.4",
33
+ "@inweb/eventemitter2": "~25.7.4",
34
+ "@inweb/markup": "~25.7.4",
35
+ "@inweb/viewer-core": "~25.7.4"
43
36
  },
44
37
  "visualizeJS": "https://opencloud.azureedge.net/libs/visualizejs/master/Visualize.js"
45
38
  }
@@ -21,9 +21,8 @@
21
21
  // acknowledge and accept the above terms.
22
22
  ///////////////////////////////////////////////////////////////////////////////
23
23
 
24
- import { IMarkup } from "./IMarkup";
25
- import { KonvaMarkup } from "./Impl/Konva/KonvaMarkup";
26
- import { VisualizeMarkup } from "./Impl/Visualize/VisualizeMarkup";
24
+ import { IMarkup, Markup as KonvaMarkup } from "@inweb/markup";
25
+ import { VisualizeMarkup } from "./Visualize/VisualizeMarkup";
27
26
 
28
27
  /**
29
28
  * The markup type: `Visualize` (deprecated) or `Konva`.
@@ -1,11 +1,9 @@
1
1
  import { IEventEmitter } from "@inweb/eventemitter2";
2
2
  import { ILine, IText, IViewpoint } from "@inweb/viewer-core";
3
- import { IMarkup } from "../../IMarkup";
4
- import { IWorldTransform } from "../../IWorldTransform";
5
- import { Viewer } from "../../../Viewer";
6
- import { MARKUP_ENTITY_LINE, OdaLineDragger } from "../../../Draggers/OdaLineDragger";
7
- import { MARKUP_ENTITY_TEXT, OdaTextDragger } from "../../../Draggers/OdaTextDragger";
8
- import { IMarkupObject } from "../../Api/IMarkupObject";
3
+ import { IMarkup, IMarkupObject, IWorldTransform } from "@inweb/markup";
4
+ import { Viewer } from "../../Viewer";
5
+ import { MARKUP_ENTITY_LINE, OdaLineDragger } from "../../Draggers/OdaLineDragger";
6
+ import { MARKUP_ENTITY_TEXT, OdaTextDragger } from "../../Draggers/OdaTextDragger";
9
7
 
10
8
  const OVERLAY_VIEW_NAME = "$OVERLAY_VIEW_NAME";
11
9
 
@@ -38,6 +38,7 @@ import {
38
38
  OptionsEventMap,
39
39
  ViewerEventMap,
40
40
  } from "@inweb/viewer-core";
41
+ import { IMarkup, IWorldTransform } from "@inweb/markup";
41
42
 
42
43
  import { MeasureLineDragger } from "./Draggers/MeasureLineDragger/index";
43
44
  import { OdaWalkDragger } from "./Draggers/OdaWalkDragger";
@@ -54,8 +55,6 @@ import { GestureManager } from "./Draggers/Common/GestureManager";
54
55
 
55
56
  import { loadVisualizeJs } from "./utils";
56
57
  import { LoaderFactory } from "./Loaders/LoaderFactory";
57
- import { IMarkup } from "./Markup/IMarkup";
58
- import { IWorldTransform } from "./Markup/IWorldTransform";
59
58
  import { MarkupFactory, MarkupType } from "./Markup/MarkupFactory";
60
59
 
61
60
  const isExist = (value) => value !== undefined && value !== null;
package/src/index.ts CHANGED
@@ -24,17 +24,7 @@
24
24
  import "./Viewer/Commands";
25
25
 
26
26
  export * from "@inweb/viewer-core";
27
+ export * from "@inweb/markup";
27
28
  export { Viewer } from "./Viewer/Viewer";
28
29
  export { OdBaseDragger } from "./Viewer/Draggers/Common/OdBaseDragger";
29
- export { IMarkup } from "./Viewer/Markup/IMarkup";
30
- export { IMarkupArrow } from "./Viewer/Markup/Api/IMarkupArrow";
31
- export { IMarkupCloud } from "./Viewer/Markup/Api/IMarkupCloud";
32
- export { IMarkupColorable } from "./Viewer/Markup/Api/IMarkupColorable";
33
- export { IMarkupEllipse } from "./Viewer/Markup/Api/IMarkupEllipse";
34
- export { IMarkupImage } from "./Viewer/Markup/Api/IMarkupImage";
35
- export { IMarkupLine, MarkupLineType } from "./Viewer/Markup/Api/IMarkupLine";
36
- export { IMarkupRectangle } from "./Viewer/Markup/Api/IMarkupRectangle";
37
- export { IMarkupObject } from "./Viewer/Markup/Api/IMarkupObject";
38
- export { IMarkupText } from "./Viewer/Markup/Api/IMarkupText";
39
- export { IWorldTransform } from "./Viewer/Markup/IWorldTransform";
40
30
  export { MarkupType } from "./Viewer/Markup/MarkupFactory";
@@ -1,52 +0,0 @@
1
- import { IMarkupObject } from "./IMarkupObject";
2
- /**
3
- * Arrow Markup object
4
- */
5
- export interface IMarkupArrow extends IMarkupObject {
6
- /**
7
- * Get points of current Arrow
8
- *
9
- * @returns {{ x: number; y: number }} array of points
10
- */
11
- getPoints(): {
12
- x: number;
13
- y: number;
14
- }[];
15
- /**
16
- * Set points of the Arrow
17
- *
18
- * @param {{ x: number; y: number }} points - array of points
19
- */
20
- setPoints(points: {
21
- x: number;
22
- y: number;
23
- }[]): any;
24
- /**
25
- * Get Start Point of the Arrow
26
- */
27
- getStartPoint(): {
28
- x: number;
29
- y: number;
30
- };
31
- /**
32
- * Set Start point of the Arrow
33
- *
34
- * @param x - value of X coordinate
35
- * @param y - value of Y coordinate
36
- */
37
- setStartPoint(x: number, y: number): any;
38
- /**
39
- * Get End point of the Arrow
40
- */
41
- getEndPoint(): {
42
- x: number;
43
- y: number;
44
- };
45
- /**
46
- * Set End point of the Arrow
47
- *
48
- * @param x - value of X coordinate
49
- * @param y - value of Y coordinate
50
- */
51
- setEndPoint(x: number, y: number): any;
52
- }
@@ -1,50 +0,0 @@
1
- import { IMarkupObject } from "./IMarkupObject";
2
- /**
3
- * Cloud Markup object
4
- */
5
- export interface IMarkupCloud extends IMarkupObject {
6
- /**
7
- * Get position of the Cloud
8
- */
9
- getPosition(): {
10
- x: number;
11
- y: number;
12
- };
13
- /**
14
- * Set position of the Cloud
15
- *
16
- * @param x - value of X coordinate
17
- * @param y - value of Y coordinate
18
- */
19
- setPosition(x: number, y: number): any;
20
- /**
21
- * Get width of the Cloud. Default value is 200
22
- */
23
- getWidth(): number;
24
- /**
25
- * Set width of the Cloud
26
- *
27
- * @param w - value of width. Default value is 200
28
- */
29
- setWidth(w: number): any;
30
- /**
31
- * Get height of the Cloud. Default value is 200
32
- */
33
- getHeigth(): number;
34
- /**
35
- * Set height of the Cloud
36
- *
37
- * @param h - value of height. Default value is 200
38
- */
39
- setHeight(h: number): any;
40
- /**
41
- * Get line width of the Cloud. Defailt value is 4
42
- */
43
- getLineWidth(): number;
44
- /**
45
- * Set line width of the Cloud
46
- *
47
- * @param size - value of width. Defailt value is 4
48
- */
49
- setLineWidth(size: number): any;
50
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * Markup Colorable
3
- */
4
- export interface IMarkupColorable {
5
- /**
6
- * Get color of the Markup instance
7
- */
8
- getColor(): string;
9
- /**
10
- * Set color of the Markup instance
11
- *
12
- * @param hex - color in #hex format. Default: `#ff0000`
13
- */
14
- setColor(hex: string): void;
15
- }
@@ -1,50 +0,0 @@
1
- import { IMarkupObject } from "./IMarkupObject";
2
- /**
3
- * Ellipse Markup object
4
- */
5
- export interface IMarkupEllipse extends IMarkupObject {
6
- /**
7
- * Get position of the Ellipse
8
- */
9
- getPosition(): {
10
- x: number;
11
- y: number;
12
- };
13
- /**
14
- * Set position of the Ellipse
15
- *
16
- * @param x - value of X coordinate
17
- * @param y - value of Y coordinate
18
- */
19
- setPosition(x: number, y: number): any;
20
- /**
21
- * Get X radius of the Ellipse
22
- */
23
- getRadiusX(): number;
24
- /**
25
- * Set X radius of the Ellipse
26
- *
27
- * @param r - value of X radius of the Ellipse
28
- */
29
- setRadiusX(r: number): any;
30
- /**
31
- * Get Y radius of the Ellipse
32
- */
33
- getRadiusY(): number;
34
- /**
35
- * Set Y radius of the Ellipse
36
- *
37
- * @param r - value of Y radius of the Ellipse
38
- */
39
- setRadiusY(r: number): any;
40
- /**
41
- * Get line width of the Ellipse. Defailt is 4
42
- */
43
- getLineWidth(): number;
44
- /**
45
- * Set line width of the Ellipse. Default is 4
46
- *
47
- * @param size - value of width
48
- */
49
- setLineWidth(size: number): any;
50
- }
@@ -1,50 +0,0 @@
1
- import { IMarkupObject } from "./IMarkupObject";
2
- /**
3
- * Image Markup object
4
- */
5
- export interface IMarkupImage extends IMarkupObject {
6
- /**
7
- * Get position of the Image
8
- */
9
- getPosition(): {
10
- x: number;
11
- y: number;
12
- };
13
- /**
14
- * Set position of the Image
15
- *
16
- * @param x - value of X coordinate
17
- * @param y - value of Y coordinate
18
- */
19
- setPosition(x: number, y: number): any;
20
- /**
21
- * Get source of the Image. Provides base64 string
22
- */
23
- getSrc(): string;
24
- /**
25
- * Set source of the Image
26
- *
27
- * @param src - string in base64 format
28
- */
29
- setSrc(src: string): any;
30
- /**
31
- * Get width of the Image
32
- */
33
- getWidth(): number;
34
- /**
35
- * Set width of the Image
36
- *
37
- * @param w - value of width. Height will be automatically updated according to ratio of the Image
38
- */
39
- setWidth(w: number): any;
40
- /**
41
- * Get height of the Image
42
- */
43
- getHeight(): number;
44
- /**
45
- * Set height of the Image
46
- *
47
- * @param h - value of height. Width will be automatically updated according to ratio of the Image
48
- */
49
- setHeight(h: number): any;
50
- }
@@ -1,43 +0,0 @@
1
- import { IMarkupObject } from "./IMarkupObject";
2
- /**
3
- * Type of the markup line.
4
- */
5
- export type MarkupLineType = "solid" | "dot" | "dash";
6
- /**
7
- * Line Markup object
8
- */
9
- export interface IMarkupLine extends IMarkupObject {
10
- /**
11
- * Get points of the Line
12
- */
13
- getPoints(): number[];
14
- /**
15
- * Get Line width. Default value is 4
16
- */
17
- getLineWidth(): number;
18
- /**
19
- * Set Line width. Default value is 4
20
- *
21
- * @param size - value of width
22
- */
23
- setLineWidth(size: number): any;
24
- /**
25
- * Get Type of the Line. Available values: `solid`, `dot`, `dash`. Default is `solid`
26
- */
27
- getLineType(): string;
28
- /**
29
- * Set Type of the Line. Available values: `solid`, `dot`, `dash`. Default is `solid`
30
- *
31
- * @param type
32
- */
33
- setLineType(type: string): any;
34
- /**
35
- * Add points to the Line
36
- *
37
- * @param {{ x: number; y: number }} points array of points
38
- */
39
- addPoints(points: [{
40
- x: number;
41
- y: number;
42
- }]): any;
43
- }
@@ -1,47 +0,0 @@
1
- /**
2
- * Markup object
3
- */
4
- export interface IMarkupObject {
5
- /**
6
- * Link to Library object (Konva, VisualizeJS)
7
- */
8
- ref(): any;
9
- /**
10
- * Get an internal identificator of the object. Not unique
11
- */
12
- id(): string;
13
- /**
14
- * Set Mouse editing feature
15
- *
16
- * @param value true / false
17
- */
18
- enableMouseEditing(value: boolean): any;
19
- /**
20
- * Get type of the Markup object
21
- */
22
- type(): string;
23
- /**
24
- * Get rotation of the Markup object
25
- */
26
- getRotation(): number;
27
- /**
28
- * Set rotation of the Markup object
29
- *
30
- * @param degrees number of degress to rotate
31
- */
32
- setRotation(degrees: number): void;
33
- /**
34
- * Get Z-Index of the Markup object
35
- */
36
- getZIndex(): number;
37
- /**
38
- * Set Z-Index of the Markup object
39
- *
40
- * @param zIndex integer value of Z-Index
41
- */
42
- setZIndex(zIndex: number): void;
43
- /**
44
- * Delete current Markup object
45
- */
46
- delete(): void;
47
- }
@@ -1,50 +0,0 @@
1
- import { IMarkupObject } from "./IMarkupObject";
2
- /**
3
- * Rectangle Markup object
4
- */
5
- export interface IMarkupRectangle extends IMarkupObject {
6
- /**
7
- * Get position of the Rectangle
8
- */
9
- getPosition(): {
10
- x: number;
11
- y: number;
12
- };
13
- /**
14
- * Set position of the Rectangle
15
- *
16
- * @param x - value of X coordinate
17
- * @param y - value of Y coordinate
18
- */
19
- setPosition(x: number, y: number): any;
20
- /**
21
- * Get width of the Rectangle. Default value is 200
22
- */
23
- getWidth(): number;
24
- /**
25
- * Set width of the Rectangle
26
- *
27
- * @param w - value of width. Default value is 200
28
- */
29
- setWidth(w: number): any;
30
- /**
31
- * Get height of the Rectangle. Default value is 200
32
- */
33
- getHeigth(): number;
34
- /**
35
- * Set height of the Rectangle
36
- *
37
- * @param h - value of height. Default value is 200
38
- */
39
- setHeight(h: number): any;
40
- /**
41
- * Get line width of the Rectangle. Defailt value is 4
42
- */
43
- getLineWidth(): number;
44
- /**
45
- * Set line width of the Rectangle
46
- *
47
- * @param size - value of width. Defailt value is 4
48
- */
49
- setLineWidth(size: number): any;
50
- }
@@ -1,40 +0,0 @@
1
- import { IMarkupObject } from "./IMarkupObject";
2
- /**
3
- * Text Markup object
4
- */
5
- export interface IMarkupText extends IMarkupObject {
6
- /**
7
- * Get Text value
8
- */
9
- getText(): string;
10
- /**
11
- * Set Text value
12
- *
13
- * @param text - string value
14
- */
15
- setText(text: string): void;
16
- /**
17
- * Get position of the Text
18
- */
19
- getPosition(): {
20
- x: number;
21
- y: number;
22
- };
23
- /**
24
- * Set position of the Text
25
- *
26
- * @param x - value of X coordinate
27
- * @param y - value of Y coordinate
28
- */
29
- setPosition(x: number, y: number): any;
30
- /**
31
- * Get font size. Default value is 34
32
- */
33
- getFontSize(): any;
34
- /**
35
- * Set font size. Default value is 34
36
- *
37
- * @param size
38
- */
39
- setFontSize(size: number): any;
40
- }
@@ -1,46 +0,0 @@
1
- import { IMarkupArrow } from "../../IMarkupArrow";
2
- import { IMarkupColorable } from "../../IMarkupColorable";
3
- export declare class KonvaArrow implements IMarkupArrow, IMarkupColorable {
4
- private _ref;
5
- constructor(params: {
6
- start: {
7
- x: number;
8
- y: number;
9
- };
10
- end: {
11
- x: number;
12
- y: number;
13
- };
14
- color?: string;
15
- id?: string;
16
- }, ref?: any);
17
- ref(): import("konva/lib/shapes/Arrow").Arrow;
18
- id(): string;
19
- enableMouseEditing(value: boolean): void;
20
- type(): string;
21
- getColor(): string;
22
- setColor(hex: string): void;
23
- getRotation(): number;
24
- setRotation(degrees: number): void;
25
- getZIndex(): number;
26
- setZIndex(zIndex: number): void;
27
- delete(): void;
28
- getPoints(): {
29
- x: number;
30
- y: number;
31
- }[];
32
- setPoints(points: {
33
- x: number;
34
- y: number;
35
- }[]): void;
36
- getStartPoint(): {
37
- x: number;
38
- y: number;
39
- };
40
- setStartPoint(x: number, y: number): void;
41
- getEndPoint(): {
42
- x: number;
43
- y: number;
44
- };
45
- setEndPoint(x: number, y: number): void;
46
- }
@@ -1,35 +0,0 @@
1
- import { IMarkupColorable } from "../../IMarkupColorable";
2
- import { IMarkupCloud } from "../../IMarkupCloud";
3
- export declare class KonvaCloud implements IMarkupCloud, IMarkupColorable {
4
- private _ref;
5
- constructor(params: {
6
- position: {
7
- x: number;
8
- y: number;
9
- };
10
- width?: number;
11
- height?: number;
12
- lineWidth?: number;
13
- color?: string;
14
- id?: string;
15
- }, ref?: any);
16
- ref(): import("konva/lib/Shape").Shape<import("konva/lib/Shape").ShapeConfig>;
17
- id(): string;
18
- enableMouseEditing(value: boolean): void;
19
- type(): string;
20
- getColor(): string;
21
- setColor(hex: string): void;
22
- getRotation(): number;
23
- setRotation(degrees: number): void;
24
- getZIndex(): number;
25
- setZIndex(zIndex: number): void;
26
- delete(): void;
27
- getPosition(): import("konva/lib/types").Vector2d;
28
- setPosition(x: number, y: number): void;
29
- getWidth(): number;
30
- setWidth(w: number): void;
31
- getHeigth(): number;
32
- setHeight(h: number): void;
33
- getLineWidth(): number;
34
- setLineWidth(size: number): void;
35
- }
@@ -1,40 +0,0 @@
1
- import { IMarkupEllipse } from "../../IMarkupEllipse";
2
- import { IMarkupColorable } from "../../IMarkupColorable";
3
- export declare class KonvaEllipse implements IMarkupEllipse, IMarkupColorable {
4
- private _ref;
5
- constructor(params: {
6
- position: {
7
- x: number;
8
- y: number;
9
- };
10
- radius: {
11
- x: number;
12
- y: number;
13
- };
14
- lineWidth?: number;
15
- color?: string;
16
- id?: string;
17
- }, ref?: any);
18
- getPosition(): {
19
- x: number;
20
- y: number;
21
- };
22
- setPosition(x: number, y: number): void;
23
- getRadiusX(): number;
24
- setRadiusX(r: number): void;
25
- getRadiusY(): number;
26
- setRadiusY(r: number): void;
27
- getLineWidth(): number;
28
- setLineWidth(size: number): void;
29
- ref(): import("konva/lib/shapes/Ellipse").Ellipse;
30
- id(): string;
31
- enableMouseEditing(value: boolean): void;
32
- type(): string;
33
- getColor(): string;
34
- setColor(hex: string): void;
35
- getRotation(): number;
36
- setRotation(degrees: number): void;
37
- getZIndex(): number;
38
- setZIndex(zIndex: number): void;
39
- delete(): void;
40
- }