@inweb/markup 25.11.0 → 25.11.2
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/markup.js +3 -3
- package/dist/markup.js.map +1 -1
- package/dist/markup.min.js +1 -1
- package/dist/markup.module.js +2 -3
- package/dist/markup.module.js.map +1 -1
- package/lib/markup/IMarkup.d.ts +1 -1
- package/lib/markup/Konva/KonvaMarkup.d.ts +1 -1
- package/package.json +3 -3
- package/src/markup/IMarkup.ts +1 -1
- package/src/markup/Konva/KonvaMarkup.ts +2 -3
package/lib/markup/IMarkup.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export declare class KonvaMarkup implements IMarkup {
|
|
|
49
49
|
colorizeAllMarkup(r: number, g: number, b: number): void;
|
|
50
50
|
colorizeSelectedMarkups(r: number, g: number, b: number): void;
|
|
51
51
|
setViewpoint(viewpoint: IViewpoint): void;
|
|
52
|
-
getViewpoint(): IViewpoint;
|
|
52
|
+
getViewpoint(viewpoint: IViewpoint): IViewpoint;
|
|
53
53
|
enableEditMode(mode: MarkupMode | false): this;
|
|
54
54
|
createObject(type: string, params: any): IMarkupObject;
|
|
55
55
|
getObjects(): IMarkupObject[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inweb/markup",
|
|
3
|
-
"version": "25.11.
|
|
3
|
+
"version": "25.11.2",
|
|
4
4
|
"description": "JavaScript 2D markups",
|
|
5
5
|
"homepage": "https://cloud.opendesign.com/docs/index.html",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"docs": "typedoc"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@inweb/eventemitter2": "~25.11.
|
|
30
|
-
"@inweb/viewer-core": "~25.11.
|
|
29
|
+
"@inweb/eventemitter2": "~25.11.2",
|
|
30
|
+
"@inweb/viewer-core": "~25.11.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"konva": "^9.3.14"
|
package/src/markup/IMarkup.ts
CHANGED
|
@@ -310,8 +310,8 @@ export class KonvaMarkup implements IMarkup {
|
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
getViewpoint(): IViewpoint {
|
|
314
|
-
|
|
313
|
+
getViewpoint(viewpoint: IViewpoint): IViewpoint {
|
|
314
|
+
if (!viewpoint) viewpoint = {};
|
|
315
315
|
|
|
316
316
|
viewpoint.lines = this.getMarkupLines();
|
|
317
317
|
viewpoint.texts = this.getMarkupTexts();
|
|
@@ -324,7 +324,6 @@ export class KonvaMarkup implements IMarkup {
|
|
|
324
324
|
viewpoint.custom_fields = { markup_color: this.getMarkupColor() };
|
|
325
325
|
viewpoint.snapshot = { data: this.combineMarkupWithDrawing() };
|
|
326
326
|
|
|
327
|
-
viewpoint.description = new Date().toDateString();
|
|
328
327
|
return viewpoint;
|
|
329
328
|
}
|
|
330
329
|
|