@inweb/markup 27.1.8 → 27.2.0
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/lib/markup/IMarkup.d.ts
CHANGED
|
@@ -123,8 +123,8 @@ export interface IMarkup {
|
|
|
123
123
|
/**
|
|
124
124
|
* Creates a markup object.
|
|
125
125
|
*
|
|
126
|
-
* @param type - Markup object type. Can be `Line`, `Text`, `Rectangle`, `Ellipse`, `Arrow`, `Image
|
|
127
|
-
* `Cloud`.
|
|
126
|
+
* @param type - Markup object type. Can be `Line`, `Text`, `Rectangle`, `Ellipse`, `Arrow`, `Image`,
|
|
127
|
+
* or `Cloud`.
|
|
128
128
|
* @param params - Parameters for creating a markup object. Must match the object type:
|
|
129
129
|
*
|
|
130
130
|
* - `Line` - {@link IMarkupLineParams}
|
|
@@ -70,15 +70,15 @@ export interface IMarkupImageParams {
|
|
|
70
70
|
*/
|
|
71
71
|
src?: string;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
73
|
+
* Width of the image. The original image is scaled to this width. Specify 0 to set width of the source
|
|
74
|
+
* image. Ignored if {@link position2} is defined.
|
|
75
75
|
*
|
|
76
76
|
* @default 0
|
|
77
77
|
*/
|
|
78
78
|
width?: number;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
80
|
+
* Height of the image. The original image is scaled to this height. Specify 0 to set height of the
|
|
81
|
+
* source image. Ignored if {@link position2} is defined.
|
|
82
82
|
*
|
|
83
83
|
* @default 0
|
|
84
84
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inweb/markup",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.2.0",
|
|
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": "~27.
|
|
30
|
-
"@inweb/viewer-core": "~27.
|
|
29
|
+
"@inweb/eventemitter2": "~27.2.0",
|
|
30
|
+
"@inweb/viewer-core": "~27.2.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"konva": "^10.2.0"
|
package/src/markup/IMarkup.ts
CHANGED
|
@@ -164,8 +164,8 @@ export interface IMarkup {
|
|
|
164
164
|
/**
|
|
165
165
|
* Creates a markup object.
|
|
166
166
|
*
|
|
167
|
-
* @param type - Markup object type. Can be `Line`, `Text`, `Rectangle`, `Ellipse`, `Arrow`, `Image
|
|
168
|
-
* `Cloud`.
|
|
167
|
+
* @param type - Markup object type. Can be `Line`, `Text`, `Rectangle`, `Ellipse`, `Arrow`, `Image`,
|
|
168
|
+
* or `Cloud`.
|
|
169
169
|
* @param params - Parameters for creating a markup object. Must match the object type:
|
|
170
170
|
*
|
|
171
171
|
* - `Line` - {@link IMarkupLineParams}
|
|
@@ -96,16 +96,16 @@ export interface IMarkupImageParams {
|
|
|
96
96
|
src?: string;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
99
|
+
* Width of the image. The original image is scaled to this width. Specify 0 to set width of the source
|
|
100
|
+
* image. Ignored if {@link position2} is defined.
|
|
101
101
|
*
|
|
102
102
|
* @default 0
|
|
103
103
|
*/
|
|
104
104
|
width?: number;
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
107
|
+
* Height of the image. The original image is scaled to this height. Specify 0 to set height of the
|
|
108
|
+
* source image. Ignored if {@link position2} is defined.
|
|
109
109
|
*
|
|
110
110
|
* @default 0
|
|
111
111
|
*/
|