@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,36 +0,0 @@
1
- import { IMarkupImage } from "../../IMarkupImage";
2
- export declare class KonvaImage implements IMarkupImage {
3
- private _ref;
4
- private _canvasImage;
5
- private _ratio;
6
- constructor(params: {
7
- position: {
8
- x: number;
9
- y: number;
10
- };
11
- src: string;
12
- width: number;
13
- height: number;
14
- id?: string;
15
- }, ref?: any);
16
- getSrc(): string;
17
- setSrc(src: any): void;
18
- getWidth(): number;
19
- setWidth(w: number): void;
20
- getHeight(): number;
21
- setHeight(h: number): void;
22
- ref(): import("konva/lib/shapes/Image").Image;
23
- id(): string;
24
- enableMouseEditing(value: boolean): void;
25
- type(): string;
26
- getRotation(): number;
27
- setRotation(degrees: number): void;
28
- getZIndex(): number;
29
- setZIndex(zIndex: number): void;
30
- delete(): void;
31
- getPosition(): {
32
- x: number;
33
- y: number;
34
- };
35
- setPosition(x: number, y: number): void;
36
- }
@@ -1,35 +0,0 @@
1
- import { IMarkupLine, MarkupLineType } from "../../IMarkupLine";
2
- import { IMarkupColorable } from "../../IMarkupColorable";
3
- export declare class KonvaLine implements IMarkupLine, IMarkupColorable {
4
- private _ref;
5
- constructor(params: {
6
- points: {
7
- x: number;
8
- y: number;
9
- }[];
10
- type?: MarkupLineType;
11
- width?: number;
12
- color?: string;
13
- id?: string;
14
- }, ref?: any);
15
- ref(): import("konva/lib/shapes/Line").Line<import("konva/lib/shapes/Line").LineConfig>;
16
- id(): string;
17
- enableMouseEditing(value: boolean): void;
18
- type(): string;
19
- getColor(): string;
20
- setColor(hex: string): void;
21
- getRotation(): number;
22
- setRotation(degrees: number): void;
23
- getZIndex(): number;
24
- setZIndex(zIndex: number): void;
25
- delete(): void;
26
- getPoints(): number[];
27
- setLineWidth(size: number): void;
28
- getLineWidth(): number;
29
- getLineType(): string;
30
- setLineType(type: string): void;
31
- addPoints(points: [{
32
- x: number;
33
- y: number;
34
- }]): void;
35
- }
@@ -1,38 +0,0 @@
1
- import { IMarkupRectangle } from "../../IMarkupRectangle";
2
- import { IMarkupColorable } from "../../IMarkupColorable";
3
- export declare class KonvaRectangle implements IMarkupRectangle, 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
- getPosition(): {
17
- x: number;
18
- y: number;
19
- };
20
- getWidth(): number;
21
- getHeigth(): number;
22
- setWidth(w: number): void;
23
- setHeight(h: number): void;
24
- setPosition(x: number, y: number): void;
25
- ref(): import("konva/lib/shapes/Rect").Rect;
26
- id(): string;
27
- enableMouseEditing(value: boolean): void;
28
- type(): string;
29
- getColor(): string;
30
- setColor(hex: string): void;
31
- getRotation(): number;
32
- setRotation(degrees: number): void;
33
- getZIndex(): number;
34
- setZIndex(zIndex: number): void;
35
- delete(): void;
36
- setLineWidth(size: number): void;
37
- getLineWidth(): number;
38
- }
@@ -1,37 +0,0 @@
1
- import { IMarkupText } from "../../IMarkupText";
2
- import { IMarkupColorable } from "../../IMarkupColorable";
3
- export declare class KonvaText implements IMarkupText, IMarkupColorable {
4
- private _ref;
5
- private readonly TEXT_FONT_FAMILY;
6
- constructor(params: {
7
- position: {
8
- x: number;
9
- y: number;
10
- };
11
- text: string;
12
- rotation?: number;
13
- fontSize?: number;
14
- color?: string;
15
- id?: string;
16
- }, ref?: any);
17
- ref(): import("konva/lib/shapes/Text").Text;
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
- getText(): string;
29
- setText(text: string): void;
30
- getPosition(): {
31
- x: number;
32
- y: number;
33
- };
34
- setPosition(x: number, y: number): void;
35
- getFontSize(): number;
36
- setFontSize(size: number): void;
37
- }
@@ -1,130 +0,0 @@
1
- import { IEventEmitter } from "@inweb/eventemitter2";
2
- import { IViewpoint } from "@inweb/viewer-core";
3
- import { IWorldTransform } from "./IWorldTransform";
4
- import { IMarkupObject } from "./Api/IMarkupObject";
5
- /**
6
- * Defines type of markup object. For `VisualizeJS` markup only the `Line` and `Text` markup
7
- * objects are supported.
8
- */
9
- export declare enum MarkupMode {
10
- SelectMarkup = "SelectMarkup",
11
- Line = "Line",
12
- Text = "Text",
13
- Rectangle = "Rectangle",
14
- Ellipse = "Ellipse",
15
- Arrow = "Arrow",
16
- Image = "Image",
17
- Cloud = "Cloud"
18
- }
19
- /**
20
- * 2D markup core interface.
21
- */
22
- export interface IMarkup {
23
- /**
24
- * Line width of the markup objects. Default is 4.
25
- */
26
- lineWidth: number;
27
- /**
28
- * Type of the markup line. Available types: `solid`, `dot`, `dash`. Default is `solid`.
29
- */
30
- lineType: string;
31
- /**
32
- * Font size of the markup text. Default is 34 px.
33
- */
34
- fontSize: number;
35
- /**
36
- * Start method to init Markup support for the Viewer instance.
37
- *
38
- * @param canvas -
39
- * {@link https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement | HTMLCanvasElement}
40
- * used to operate on.
41
- * @param canvasEvents - List of `canvas` events that the markup should redirect to the `viewer`.
42
- * @param viewer - `Viewer` instance viewer that receives `canvas` events.
43
- * @param worldTransformer - Transformer of screen space into world space and vice versa. If
44
- * a transformer is defined, viewpoint objects will be stored in world coordinates,
45
- * otherwise in screen coordinates.
46
- */
47
- initialize(canvas: HTMLCanvasElement, canvasEvents: string[], viewer?: IEventEmitter, worldTransformer?: IWorldTransform): void;
48
- /**
49
- * Releases all resources allocated by this `Markup` instance. Call this method before
50
- * release the `Markup` instance.
51
- */
52
- dispose(): void;
53
- /**
54
- * Create markup overlay.
55
- */
56
- syncOverlay(): void;
57
- /**
58
- * Clear markup overlay.
59
- */
60
- clearOverlay(): void;
61
- /**
62
- * Set markup color.
63
- *
64
- * @param r - `Red` part of color.
65
- * @param g - `Green` part of color.
66
- * @param b - `Blue` part of color.
67
- */
68
- setMarkupColor(r: number, g: number, b: number): void;
69
- /**
70
- * Get markup color.
71
- *
72
- * @returns Color with `RGB` values.
73
- */
74
- getMarkupColor(): {
75
- r: number;
76
- g: number;
77
- b: number;
78
- };
79
- /**
80
- * Colorize all markup entities with the specified color.
81
- *
82
- * @param r - `Red` part of color.
83
- * @param g - `Green` part of color.
84
- * @param b - `Blue` part of color.
85
- */
86
- colorizeAllMarkup(r: number, g: number, b: number): void;
87
- /**
88
- * Colorize all selected markup entities with the specified color.
89
- *
90
- * @param r - `Red` part of color.
91
- * @param g - `Green` part of color.
92
- * @param b - `Blue` part of color.
93
- */
94
- colorizeSelectedMarkups(r: number, g: number, b: number): void;
95
- /**
96
- * Draw a viewpoint. To get a list of available model viewpoints, use the
97
- *
98
- * @param viewpoint - Viewpoint data.
99
- */
100
- setViewpoint(viewpoint: IViewpoint): void;
101
- /**
102
- * Create a viewpoint.
103
- */
104
- getViewpoint(): IViewpoint;
105
- /**
106
- * Create a Markup object.
107
- *
108
- * @param type - string identificator of Markup object type.
109
- * @param params - Markup object parameters.
110
- */
111
- createObject(type: string, params: any): IMarkupObject;
112
- /**
113
- * Get Markup objects.
114
- */
115
- getObjects(): IMarkupObject[];
116
- /**
117
- * Get selected Markup objects.
118
- */
119
- getSelectedObjects(): IMarkupObject[];
120
- /**
121
- * Select Markup objects.
122
- *
123
- * @param objects
124
- */
125
- selectObjects(objects: IMarkupObject[]): void;
126
- /**
127
- * Clear Markup objects selection.
128
- */
129
- clearSelected(): void;
130
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * Viewer coordiate system transformer.
3
- */
4
- export interface IWorldTransform {
5
- /**
6
- * Transforms `position` from screen space into world space.
7
- *
8
- * @param position - screen position in pixels.
9
- */
10
- screenToWorld(position: {
11
- x: number;
12
- y: number;
13
- }): {
14
- x: number;
15
- y: number;
16
- z: number;
17
- };
18
- /**
19
- * Transforms `position` from world space into screen space.
20
- *
21
- * @param position - position in world space coordinates.
22
- */
23
- worldToScreen(position: {
24
- x: number;
25
- y: number;
26
- z: number;
27
- }): {
28
- x: number;
29
- y: number;
30
- };
31
- /**
32
- * Returns the scaling factors for each axis in world space.
33
- */
34
- getScale(): {
35
- x: number;
36
- y: number;
37
- z: number;
38
- };
39
- }
@@ -1,82 +0,0 @@
1
- import { IEventEmitter } from "@inweb/eventemitter2";
2
- import { ChangeActiveDraggerEvent, IViewpoint, PanEvent } from "@inweb/viewer-core";
3
- import { IMarkup } from "../../IMarkup";
4
- import { IWorldTransform } from "../../IWorldTransform";
5
- import { IMarkupObject } from "../../Api/IMarkupObject";
6
- import { MarkupLineType } from "../../Api/IMarkupLine";
7
- /**
8
- * 2D markup core.
9
- */
10
- export declare class KonvaMarkup implements IMarkup {
11
- private _isInitialized;
12
- private _viewer;
13
- private _worldTransformer;
14
- private _canvasOriginal;
15
- private _canvasEvents;
16
- private _markupIsActive;
17
- private _markupMode;
18
- private _markupColor;
19
- private _konvaStage;
20
- private _konvaLayer;
21
- private _konvaTransformer;
22
- private _textInputRef;
23
- private _textInputPos;
24
- private _textInputAngle;
25
- private _imageInputRef;
26
- private _imageInputPos;
27
- private _markupContainer;
28
- private _zIndex;
29
- private readonly _markupContainerName;
30
- lineWidth: number;
31
- lineType: MarkupLineType;
32
- fontSize: number;
33
- initialize(canvas: HTMLCanvasElement, canvasEvents: string[], viewer?: IEventEmitter, worldTransformer?: IWorldTransform): void;
34
- dispose(): void;
35
- changeActiveDragger: (event: ChangeActiveDraggerEvent) => void;
36
- resize: () => void;
37
- pan: (event: PanEvent) => void;
38
- redirectToViewer: (event: any) => void;
39
- syncOverlay(): void;
40
- clearOverlay(): void;
41
- getMarkupColor(): {
42
- r: number;
43
- g: number;
44
- b: number;
45
- };
46
- setMarkupColor(r: number, g: number, b: number): void;
47
- colorizeAllMarkup(r?: number, g?: number, b?: number): void;
48
- colorizeSelectedMarkups(r: number, g: number, b: number): void;
49
- setViewpoint(viewpoint: IViewpoint): void;
50
- getViewpoint(): IViewpoint;
51
- createObject(type: string, params: any): IMarkupObject;
52
- getObjects(): IMarkupObject[];
53
- getSelectedObjects(): IMarkupObject[];
54
- selectObjects(objects: IMarkupObject[]): void;
55
- clearSelected(): void;
56
- private getPoint3dFromArray;
57
- private fillViewpointShapes;
58
- private addObject;
59
- private konvaLayerFind;
60
- private initializeKonva;
61
- private destroyKonva;
62
- private getMarkupLines;
63
- private getMarkupTexts;
64
- private getMarkupRectangles;
65
- private getMarkupEllipses;
66
- private getMarkupArrows;
67
- private getMarkupImages;
68
- private getMarkupClouds;
69
- private loadMarkup;
70
- private combineMarkupWithDrawing;
71
- private addLine;
72
- private createTextInput;
73
- private removeTextInput;
74
- private createImageInput;
75
- private removeImageInput;
76
- private addText;
77
- private addRectangle;
78
- private addEllipse;
79
- private addArrow;
80
- private addCloud;
81
- private addImage;
82
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Markup color.
3
- */
4
- export declare class MarkupColor {
5
- R: number;
6
- G: number;
7
- B: number;
8
- private _hex;
9
- /**
10
- * Color in #000000 format
11
- */
12
- get HexColor(): string;
13
- /**
14
- * Color as object with r,g,b properties
15
- */
16
- get RGB(): {
17
- r: number;
18
- g: number;
19
- b: number;
20
- };
21
- /**
22
- * Create an instance of Color
23
- *
24
- * @param r - Red color in [0,255] range
25
- * @param g - Green color in [0,255] range
26
- * @param b - Blue color in [0,255] range
27
- */
28
- constructor(r: number, g: number, b: number);
29
- /**
30
- * Set Color for current instance
31
- *
32
- * @param r - Red color in [0,255] range
33
- * @param g - Green color in [0,255] range
34
- * @param b - Blue color in [0,255] range
35
- */
36
- setColor(r: number, g: number, b: number): void;
37
- private rgbToHex;
38
- }
@@ -1,69 +0,0 @@
1
- ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3
- // All rights reserved.
4
- //
5
- // This software and its documentation and related materials are owned by
6
- // the Alliance. The software may only be incorporated into application
7
- // programs owned by members of the Alliance, subject to a signed
8
- // Membership Agreement and Supplemental Software License Agreement with the
9
- // Alliance. The structure and organization of this software are the valuable
10
- // trade secrets of the Alliance and its suppliers. The software is also
11
- // protected by copyright law and international treaty provisions. Application
12
- // programs incorporating this software must include the following statement
13
- // with their copyright notices:
14
- //
15
- // This application incorporates Open Design Alliance software pursuant to a
16
- // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18
- // All rights reserved.
19
- //
20
- // By use of this software, its documentation or related materials, you
21
- // acknowledge and accept the above terms.
22
- ///////////////////////////////////////////////////////////////////////////////
23
-
24
- import { IMarkupObject } from "./IMarkupObject";
25
-
26
- /**
27
- * Arrow Markup object
28
- */
29
- export interface IMarkupArrow extends IMarkupObject {
30
- /**
31
- * Get points of current Arrow
32
- *
33
- * @returns {{ x: number; y: number }} array of points
34
- */
35
- getPoints(): { x: number; y: number }[];
36
-
37
- /**
38
- * Set points of the Arrow
39
- *
40
- * @param {{ x: number; y: number }} points - array of points
41
- */
42
- setPoints(points: { x: number; y: number }[]);
43
-
44
- /**
45
- * Get Start Point of the Arrow
46
- */
47
- getStartPoint(): { x: number; y: number };
48
-
49
- /**
50
- * Set Start point of the Arrow
51
- *
52
- * @param x - value of X coordinate
53
- * @param y - value of Y coordinate
54
- */
55
- setStartPoint(x: number, y: number);
56
-
57
- /**
58
- * Get End point of the Arrow
59
- */
60
- getEndPoint(): { x: number; y: number };
61
-
62
- /**
63
- * Set End point of the Arrow
64
- *
65
- * @param x - value of X coordinate
66
- * @param y - value of Y coordinate
67
- */
68
- setEndPoint(x: number, y: number);
69
- }
@@ -1,78 +0,0 @@
1
- ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3
- // All rights reserved.
4
- //
5
- // This software and its documentation and related materials are owned by
6
- // the Alliance. The software may only be incorporated into application
7
- // programs owned by members of the Alliance, subject to a signed
8
- // Membership Agreement and Supplemental Software License Agreement with the
9
- // Alliance. The structure and organization of this software are the valuable
10
- // trade secrets of the Alliance and its suppliers. The software is also
11
- // protected by copyright law and international treaty provisions. Application
12
- // programs incorporating this software must include the following statement
13
- // with their copyright notices:
14
- //
15
- // This application incorporates Open Design Alliance software pursuant to a
16
- // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18
- // All rights reserved.
19
- //
20
- // By use of this software, its documentation or related materials, you
21
- // acknowledge and accept the above terms.
22
- ///////////////////////////////////////////////////////////////////////////////
23
-
24
- import { IMarkupObject } from "./IMarkupObject";
25
-
26
- /**
27
- * Cloud Markup object
28
- */
29
- export interface IMarkupCloud extends IMarkupObject {
30
- /**
31
- * Get position of the Cloud
32
- */
33
- getPosition(): { x: number; y: number };
34
-
35
- /**
36
- * Set position of the Cloud
37
- *
38
- * @param x - value of X coordinate
39
- * @param y - value of Y coordinate
40
- */
41
- setPosition(x: number, y: number);
42
-
43
- /**
44
- * Get width of the Cloud. Default value is 200
45
- */
46
- getWidth(): number;
47
-
48
- /**
49
- * Set width of the Cloud
50
- *
51
- * @param w - value of width. Default value is 200
52
- */
53
- setWidth(w: number);
54
-
55
- /**
56
- * Get height of the Cloud. Default value is 200
57
- */
58
- getHeigth(): number;
59
-
60
- /**
61
- * Set height of the Cloud
62
- *
63
- * @param h - value of height. Default value is 200
64
- */
65
- setHeight(h: number);
66
-
67
- /**
68
- * Get line width of the Cloud. Defailt value is 4
69
- */
70
- getLineWidth(): number;
71
-
72
- /**
73
- * Set line width of the Cloud
74
- *
75
- * @param size - value of width. Defailt value is 4
76
- */
77
- setLineWidth(size: number);
78
- }
@@ -1,39 +0,0 @@
1
- ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3
- // All rights reserved.
4
- //
5
- // This software and its documentation and related materials are owned by
6
- // the Alliance. The software may only be incorporated into application
7
- // programs owned by members of the Alliance, subject to a signed
8
- // Membership Agreement and Supplemental Software License Agreement with the
9
- // Alliance. The structure and organization of this software are the valuable
10
- // trade secrets of the Alliance and its suppliers. The software is also
11
- // protected by copyright law and international treaty provisions. Application
12
- // programs incorporating this software must include the following statement
13
- // with their copyright notices:
14
- //
15
- // This application incorporates Open Design Alliance software pursuant to a
16
- // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18
- // All rights reserved.
19
- //
20
- // By use of this software, its documentation or related materials, you
21
- // acknowledge and accept the above terms.
22
- ///////////////////////////////////////////////////////////////////////////////
23
-
24
- /**
25
- * Markup Colorable
26
- */
27
- export interface IMarkupColorable {
28
- /**
29
- * Get color of the Markup instance
30
- */
31
- getColor(): string;
32
-
33
- /**
34
- * Set color of the Markup instance
35
- *
36
- * @param hex - color in #hex format. Default: `#ff0000`
37
- */
38
- setColor(hex: string): void;
39
- }