abstract-image 11.2.13 → 11.2.17

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 (32) hide show
  1. package/lib/dynamic-image/components.d.ts +2 -0
  2. package/lib/dynamic-image/components.d.ts.map +1 -0
  3. package/lib/dynamic-image/components.js +88 -0
  4. package/lib/dynamic-image/components.js.map +1 -0
  5. package/lib/dynamic-image/dynamic-image.d.ts +2 -12
  6. package/lib/dynamic-image/dynamic-image.d.ts.map +1 -1
  7. package/lib/dynamic-image/dynamic-image.js +17 -172
  8. package/lib/dynamic-image/dynamic-image.js.map +1 -1
  9. package/lib/dynamic-image/index.d.ts +1 -0
  10. package/lib/dynamic-image/index.d.ts.map +1 -1
  11. package/lib/dynamic-image/index.js +3 -0
  12. package/lib/dynamic-image/index.js.map +1 -1
  13. package/lib/dynamic-image/schema.d.ts +236 -0
  14. package/lib/dynamic-image/schema.d.ts.map +1 -0
  15. package/lib/dynamic-image/schema.js +239 -0
  16. package/lib/dynamic-image/schema.js.map +1 -0
  17. package/lib/dynamic-image/utils.d.ts +2 -0
  18. package/lib/dynamic-image/utils.d.ts.map +1 -0
  19. package/lib/dynamic-image/utils.js +56 -0
  20. package/lib/dynamic-image/utils.js.map +1 -0
  21. package/package.json +5 -3
  22. package/src/dynamic-image/components.ts +163 -0
  23. package/src/dynamic-image/dynamic-image.ts +25 -201
  24. package/src/dynamic-image/index.ts +1 -0
  25. package/src/dynamic-image/schema.ts +245 -0
  26. package/src/dynamic-image/utils.ts +62 -0
  27. package/lib/dynamic-image/dynamic-image-xsd.d.ts +0 -2
  28. package/lib/dynamic-image/dynamic-image-xsd.d.ts.map +0 -1
  29. package/lib/dynamic-image/dynamic-image-xsd.js +0 -188
  30. package/lib/dynamic-image/dynamic-image-xsd.js.map +0 -1
  31. package/src/dynamic-image/dynamic-image-xsd.ts +0 -184
  32. package/src/dynamic-image/dynamic-image-xsd.xml +0 -183
@@ -1,188 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.xsd = void 0;
4
- exports.xsd = `<?xml version="1.0" encoding="UTF-8"?>
5
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
6
- targetNamespace="urn:adml"
7
- xmlns="urn:adml"
8
- elementFormDefault="qualified"
9
- attributeFormDefault="unqualified">
10
-
11
- <!-- ========= Root ========= -->
12
- <xs:element name="abstractImage" type="AbstractImage"/>
13
-
14
- <xs:group name="Component">
15
- <xs:choice>
16
- <xs:element name="image" type="Image"/>
17
- <xs:element name="ellipse" type="Ellipse"/>
18
- <xs:element name="line" type="Line"/>
19
- <xs:element name="polyline" type="PolyLine"/>
20
- <xs:element name="polygon" type="Polygon"/>
21
- <xs:element name="rectangle" type="Rectangle"/>
22
- <xs:element name="text" type="Text"/>
23
- <xs:element name="group" type="Group"/>
24
- </xs:choice>
25
- </xs:group>
26
-
27
- <xs:complexType name="AbstractImage">
28
- <xs:sequence>
29
- <xs:element name="components">
30
- <xs:complexType>
31
- <xs:sequence>
32
- <xs:group ref="Component" minOccurs="0" maxOccurs="unbounded"/>
33
- </xs:sequence>
34
- </xs:complexType>
35
- </xs:element>
36
- </xs:sequence>
37
- <xs:attribute name="topLeft" type="PointString" use="required"/>
38
- <xs:attribute name="size" type="SizeString" use="required"/>
39
- <xs:attribute name="backgroundColor" type="ColorString" use="optional"/>
40
- </xs:complexType>
41
-
42
- <xs:simpleType name="PointString"><xs:restriction base="xs:string"/></xs:simpleType>
43
- <xs:simpleType name="SizeString"><xs:restriction base="xs:string"/></xs:simpleType>
44
- <xs:simpleType name="ColorString"><xs:restriction base="xs:string"/></xs:simpleType>
45
- <xs:simpleType name="PointsString"><xs:restriction base="xs:string"/></xs:simpleType>
46
- <xs:simpleType name="DashArray"><xs:restriction base="xs:string"/></xs:simpleType>
47
- <xs:simpleType name="DashOffset"><xs:restriction base="xs:string"/></xs:simpleType>
48
-
49
- <!-- ========= Components ========= -->
50
-
51
- <!-- Group -->
52
- <xs:complexType name="Group">
53
- <xs:sequence>
54
- <xs:element name="children">
55
- <xs:complexType>
56
- <xs:sequence>
57
- <xs:group ref="Component" minOccurs="0" maxOccurs="unbounded"/>
58
- </xs:sequence>
59
- </xs:complexType>
60
- </xs:element>
61
- </xs:sequence>
62
- <xs:attribute name="name" type="xs:string" use="optional"/>
63
- </xs:complexType>
64
-
65
- <!-- Image -->
66
- <xs:complexType name="Image">
67
- <xs:attribute name="url" type="xs:anyURI" use="required"/>
68
- <xs:attribute name="topLeft" type="PointString" use="required"/>
69
- <xs:attribute name="bottomRight" type="PointString" use="required"/>
70
- <xs:attribute name="id" type="xs:string" use="optional"/>
71
- </xs:complexType>
72
-
73
- <!-- Ellipse -->
74
- <xs:complexType name="Ellipse">
75
- <xs:attribute name="topLeft" type="PointString" use="required"/>
76
- <xs:attribute name="bottomRight" type="PointString" use="required"/>
77
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
78
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
79
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
80
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
81
- <xs:attribute name="fillColor" type="ColorString" use="optional"/>
82
- <xs:attribute name="id" type="xs:string" use="optional"/>
83
- </xs:complexType>
84
-
85
- <!-- Line -->
86
- <xs:complexType name="Line">
87
- <xs:attribute name="start" type="PointString" use="required"/>
88
- <xs:attribute name="end" type="PointString" use="required"/>
89
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
90
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
91
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
92
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
93
- <xs:attribute name="id" type="xs:string" use="optional"/>
94
- </xs:complexType>
95
-
96
- <!-- PolyLine -->
97
- <xs:complexType name="PolyLine">
98
- <xs:attribute name="points" type="PointsString" use="required"/>
99
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
100
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
101
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
102
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
103
- <xs:attribute name="id" type="xs:string" use="optional"/>
104
- </xs:complexType>
105
-
106
- <!-- Polygon -->
107
- <xs:complexType name="Polygon">
108
- <xs:attribute name="points" type="PointsString" use="required"/>
109
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
110
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
111
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
112
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
113
- <xs:attribute name="fillColor" type="ColorString" use="optional"/>
114
- <xs:attribute name="id" type="xs:string" use="optional"/>
115
- </xs:complexType>
116
-
117
- <!-- Rectangle -->
118
- <xs:complexType name="Rectangle">
119
- <xs:attribute name="topLeft" type="PointString" use="required"/>
120
- <xs:attribute name="bottomRight" type="PointString" use="required"/>
121
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
122
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
123
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
124
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
125
- <xs:attribute name="fillColor" type="ColorString" use="optional"/>
126
- <xs:attribute name="id" type="xs:string" use="optional"/>
127
- <xs:attribute name="radius" type="PointString" use="optional"/>
128
- </xs:complexType>
129
-
130
- <!-- Text -->
131
- <xs:complexType name="Text">
132
- <xs:attribute name="position" type="PointString" use="required"/>
133
- <xs:attribute name="text" type="xs:string" use="required"/>
134
- <xs:attribute name="fontFamily" type="xs:string" use="optional"/>
135
- <xs:attribute name="fontSize" type="xs:double" use="optional"/>
136
- <xs:attribute name="textColor" type="ColorString" use="optional"/>
137
- <xs:attribute name="fontWeight" use="optional">
138
- <xs:simpleType>
139
- <xs:restriction base="xs:string">
140
- <xs:enumeration value="light"/>
141
- <xs:enumeration value="normal"/>
142
- <xs:enumeration value="mediumBold"/>
143
- <xs:enumeration value="bold"/>
144
- <xs:enumeration value="extraBold"/>
145
- </xs:restriction>
146
- </xs:simpleType>
147
- </xs:attribute>
148
- <xs:attribute name="clockwiseRotationDegrees" type="xs:double" use="optional"/>
149
- <xs:attribute name="textAlignment" use="optional">
150
- <xs:simpleType>
151
- <xs:restriction base="xs:string">
152
- <xs:enumeration value="left"/>
153
- <xs:enumeration value="center"/>
154
- <xs:enumeration value="right"/>
155
- </xs:restriction>
156
- </xs:simpleType>
157
- </xs:attribute>
158
- <xs:attribute name="horizontalGrowthDirection" use="optional">
159
- <xs:simpleType>
160
- <xs:restriction base="xs:string">
161
- <xs:enumeration value="up"/>
162
- <xs:enumeration value="down"/>
163
- <xs:enumeration value="uniform"/>
164
- <xs:enumeration value="left"/>
165
- <xs:enumeration value="right"/>
166
- </xs:restriction>
167
- </xs:simpleType>
168
- </xs:attribute>
169
- <xs:attribute name="verticalGrowthDirection" use="optional">
170
- <xs:simpleType>
171
- <xs:restriction base="xs:string">
172
- <xs:enumeration value="up"/>
173
- <xs:enumeration value="down"/>
174
- <xs:enumeration value="uniform"/>
175
- <xs:enumeration value="left"/>
176
- <xs:enumeration value="right"/>
177
- </xs:restriction>
178
- </xs:simpleType>
179
- </xs:attribute>
180
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
181
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
182
- <xs:attribute name="italic" type="xs:boolean" use="optional"/>
183
- <xs:attribute name="id" type="xs:string" use="optional"/>
184
- </xs:complexType>
185
-
186
- </xs:schema>
187
- `;
188
- //# sourceMappingURL=dynamic-image-xsd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamic-image-xsd.js","sourceRoot":"","sources":["../../src/dynamic-image/dynamic-image-xsd.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuLlB,CAAC"}
@@ -1,184 +0,0 @@
1
- export const xsd = `<?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
- targetNamespace="urn:adml"
4
- xmlns="urn:adml"
5
- elementFormDefault="qualified"
6
- attributeFormDefault="unqualified">
7
-
8
- <!-- ========= Root ========= -->
9
- <xs:element name="abstractImage" type="AbstractImage"/>
10
-
11
- <xs:group name="Component">
12
- <xs:choice>
13
- <xs:element name="image" type="Image"/>
14
- <xs:element name="ellipse" type="Ellipse"/>
15
- <xs:element name="line" type="Line"/>
16
- <xs:element name="polyline" type="PolyLine"/>
17
- <xs:element name="polygon" type="Polygon"/>
18
- <xs:element name="rectangle" type="Rectangle"/>
19
- <xs:element name="text" type="Text"/>
20
- <xs:element name="group" type="Group"/>
21
- </xs:choice>
22
- </xs:group>
23
-
24
- <xs:complexType name="AbstractImage">
25
- <xs:sequence>
26
- <xs:element name="components">
27
- <xs:complexType>
28
- <xs:sequence>
29
- <xs:group ref="Component" minOccurs="0" maxOccurs="unbounded"/>
30
- </xs:sequence>
31
- </xs:complexType>
32
- </xs:element>
33
- </xs:sequence>
34
- <xs:attribute name="topLeft" type="PointString" use="required"/>
35
- <xs:attribute name="size" type="SizeString" use="required"/>
36
- <xs:attribute name="backgroundColor" type="ColorString" use="optional"/>
37
- </xs:complexType>
38
-
39
- <xs:simpleType name="PointString"><xs:restriction base="xs:string"/></xs:simpleType>
40
- <xs:simpleType name="SizeString"><xs:restriction base="xs:string"/></xs:simpleType>
41
- <xs:simpleType name="ColorString"><xs:restriction base="xs:string"/></xs:simpleType>
42
- <xs:simpleType name="PointsString"><xs:restriction base="xs:string"/></xs:simpleType>
43
- <xs:simpleType name="DashArray"><xs:restriction base="xs:string"/></xs:simpleType>
44
- <xs:simpleType name="DashOffset"><xs:restriction base="xs:string"/></xs:simpleType>
45
-
46
- <!-- ========= Components ========= -->
47
-
48
- <!-- Group -->
49
- <xs:complexType name="Group">
50
- <xs:sequence>
51
- <xs:element name="children">
52
- <xs:complexType>
53
- <xs:sequence>
54
- <xs:group ref="Component" minOccurs="0" maxOccurs="unbounded"/>
55
- </xs:sequence>
56
- </xs:complexType>
57
- </xs:element>
58
- </xs:sequence>
59
- <xs:attribute name="name" type="xs:string" use="optional"/>
60
- </xs:complexType>
61
-
62
- <!-- Image -->
63
- <xs:complexType name="Image">
64
- <xs:attribute name="url" type="xs:anyURI" use="required"/>
65
- <xs:attribute name="topLeft" type="PointString" use="required"/>
66
- <xs:attribute name="bottomRight" type="PointString" use="required"/>
67
- <xs:attribute name="id" type="xs:string" use="optional"/>
68
- </xs:complexType>
69
-
70
- <!-- Ellipse -->
71
- <xs:complexType name="Ellipse">
72
- <xs:attribute name="topLeft" type="PointString" use="required"/>
73
- <xs:attribute name="bottomRight" type="PointString" use="required"/>
74
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
75
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
76
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
77
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
78
- <xs:attribute name="fillColor" type="ColorString" use="optional"/>
79
- <xs:attribute name="id" type="xs:string" use="optional"/>
80
- </xs:complexType>
81
-
82
- <!-- Line -->
83
- <xs:complexType name="Line">
84
- <xs:attribute name="start" type="PointString" use="required"/>
85
- <xs:attribute name="end" type="PointString" use="required"/>
86
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
87
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
88
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
89
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
90
- <xs:attribute name="id" type="xs:string" use="optional"/>
91
- </xs:complexType>
92
-
93
- <!-- PolyLine -->
94
- <xs:complexType name="PolyLine">
95
- <xs:attribute name="points" type="PointsString" use="required"/>
96
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
97
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
98
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
99
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
100
- <xs:attribute name="id" type="xs:string" use="optional"/>
101
- </xs:complexType>
102
-
103
- <!-- Polygon -->
104
- <xs:complexType name="Polygon">
105
- <xs:attribute name="points" type="PointsString" use="required"/>
106
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
107
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
108
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
109
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
110
- <xs:attribute name="fillColor" type="ColorString" use="optional"/>
111
- <xs:attribute name="id" type="xs:string" use="optional"/>
112
- </xs:complexType>
113
-
114
- <!-- Rectangle -->
115
- <xs:complexType name="Rectangle">
116
- <xs:attribute name="topLeft" type="PointString" use="required"/>
117
- <xs:attribute name="bottomRight" type="PointString" use="required"/>
118
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
119
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
120
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
121
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
122
- <xs:attribute name="fillColor" type="ColorString" use="optional"/>
123
- <xs:attribute name="id" type="xs:string" use="optional"/>
124
- <xs:attribute name="radius" type="PointString" use="optional"/>
125
- </xs:complexType>
126
-
127
- <!-- Text -->
128
- <xs:complexType name="Text">
129
- <xs:attribute name="position" type="PointString" use="required"/>
130
- <xs:attribute name="text" type="xs:string" use="required"/>
131
- <xs:attribute name="fontFamily" type="xs:string" use="optional"/>
132
- <xs:attribute name="fontSize" type="xs:double" use="optional"/>
133
- <xs:attribute name="textColor" type="ColorString" use="optional"/>
134
- <xs:attribute name="fontWeight" use="optional">
135
- <xs:simpleType>
136
- <xs:restriction base="xs:string">
137
- <xs:enumeration value="light"/>
138
- <xs:enumeration value="normal"/>
139
- <xs:enumeration value="mediumBold"/>
140
- <xs:enumeration value="bold"/>
141
- <xs:enumeration value="extraBold"/>
142
- </xs:restriction>
143
- </xs:simpleType>
144
- </xs:attribute>
145
- <xs:attribute name="clockwiseRotationDegrees" type="xs:double" use="optional"/>
146
- <xs:attribute name="textAlignment" use="optional">
147
- <xs:simpleType>
148
- <xs:restriction base="xs:string">
149
- <xs:enumeration value="left"/>
150
- <xs:enumeration value="center"/>
151
- <xs:enumeration value="right"/>
152
- </xs:restriction>
153
- </xs:simpleType>
154
- </xs:attribute>
155
- <xs:attribute name="horizontalGrowthDirection" use="optional">
156
- <xs:simpleType>
157
- <xs:restriction base="xs:string">
158
- <xs:enumeration value="up"/>
159
- <xs:enumeration value="down"/>
160
- <xs:enumeration value="uniform"/>
161
- <xs:enumeration value="left"/>
162
- <xs:enumeration value="right"/>
163
- </xs:restriction>
164
- </xs:simpleType>
165
- </xs:attribute>
166
- <xs:attribute name="verticalGrowthDirection" use="optional">
167
- <xs:simpleType>
168
- <xs:restriction base="xs:string">
169
- <xs:enumeration value="up"/>
170
- <xs:enumeration value="down"/>
171
- <xs:enumeration value="uniform"/>
172
- <xs:enumeration value="left"/>
173
- <xs:enumeration value="right"/>
174
- </xs:restriction>
175
- </xs:simpleType>
176
- </xs:attribute>
177
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
178
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
179
- <xs:attribute name="italic" type="xs:boolean" use="optional"/>
180
- <xs:attribute name="id" type="xs:string" use="optional"/>
181
- </xs:complexType>
182
-
183
- </xs:schema>
184
- `;
@@ -1,183 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
- targetNamespace="urn:adml"
4
- xmlns="urn:adml"
5
- elementFormDefault="qualified"
6
- attributeFormDefault="unqualified">
7
-
8
- <!-- ========= Root ========= -->
9
- <xs:element name="abstractImage" type="AbstractImage"/>
10
-
11
- <xs:group name="Component">
12
- <xs:choice>
13
- <xs:element name="image" type="Image"/>
14
- <xs:element name="ellipse" type="Ellipse"/>
15
- <xs:element name="line" type="Line"/>
16
- <xs:element name="polyline" type="PolyLine"/>
17
- <xs:element name="polygon" type="Polygon"/>
18
- <xs:element name="rectangle" type="Rectangle"/>
19
- <xs:element name="text" type="Text"/>
20
- <xs:element name="group" type="Group"/>
21
- </xs:choice>
22
- </xs:group>
23
-
24
- <xs:complexType name="AbstractImage">
25
- <xs:sequence>
26
- <xs:element name="components">
27
- <xs:complexType>
28
- <xs:sequence>
29
- <xs:group ref="Component" minOccurs="0" maxOccurs="unbounded"/>
30
- </xs:sequence>
31
- </xs:complexType>
32
- </xs:element>
33
- </xs:sequence>
34
- <xs:attribute name="topLeft" type="PointString" use="required"/>
35
- <xs:attribute name="size" type="SizeString" use="required"/>
36
- <xs:attribute name="backgroundColor" type="ColorString" use="optional"/>
37
- </xs:complexType>
38
-
39
- <xs:simpleType name="PointString"><xs:restriction base="xs:string"/></xs:simpleType>
40
- <xs:simpleType name="SizeString"><xs:restriction base="xs:string"/></xs:simpleType>
41
- <xs:simpleType name="ColorString"><xs:restriction base="xs:string"/></xs:simpleType>
42
- <xs:simpleType name="PointsString"><xs:restriction base="xs:string"/></xs:simpleType>
43
- <xs:simpleType name="DashArray"><xs:restriction base="xs:string"/></xs:simpleType>
44
- <xs:simpleType name="DashOffset"><xs:restriction base="xs:string"/></xs:simpleType>
45
-
46
- <!-- ========= Components ========= -->
47
-
48
- <!-- Group -->
49
- <xs:complexType name="Group">
50
- <xs:sequence>
51
- <xs:element name="children">
52
- <xs:complexType>
53
- <xs:sequence>
54
- <xs:group ref="Component" minOccurs="0" maxOccurs="unbounded"/>
55
- </xs:sequence>
56
- </xs:complexType>
57
- </xs:element>
58
- </xs:sequence>
59
- <xs:attribute name="name" type="xs:string" use="optional"/>
60
- </xs:complexType>
61
-
62
- <!-- Image -->
63
- <xs:complexType name="Image">
64
- <xs:attribute name="url" type="xs:anyURI" use="required"/>
65
- <xs:attribute name="topLeft" type="PointString" use="required"/>
66
- <xs:attribute name="bottomRight" type="PointString" use="required"/>
67
- <xs:attribute name="id" type="xs:string" use="optional"/>
68
- </xs:complexType>
69
-
70
- <!-- Ellipse -->
71
- <xs:complexType name="Ellipse">
72
- <xs:attribute name="topLeft" type="PointString" use="required"/>
73
- <xs:attribute name="bottomRight" type="PointString" use="required"/>
74
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
75
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
76
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
77
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
78
- <xs:attribute name="fillColor" type="ColorString" use="optional"/>
79
- <xs:attribute name="id" type="xs:string" use="optional"/>
80
- </xs:complexType>
81
-
82
- <!-- Line -->
83
- <xs:complexType name="Line">
84
- <xs:attribute name="start" type="PointString" use="required"/>
85
- <xs:attribute name="end" type="PointString" use="required"/>
86
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
87
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
88
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
89
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
90
- <xs:attribute name="id" type="xs:string" use="optional"/>
91
- </xs:complexType>
92
-
93
- <!-- PolyLine -->
94
- <xs:complexType name="PolyLine">
95
- <xs:attribute name="points" type="PointsString" use="required"/>
96
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
97
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
98
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
99
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
100
- <xs:attribute name="id" type="xs:string" use="optional"/>
101
- </xs:complexType>
102
-
103
- <!-- Polygon -->
104
- <xs:complexType name="Polygon">
105
- <xs:attribute name="points" type="PointsString" use="required"/>
106
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
107
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
108
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
109
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
110
- <xs:attribute name="fillColor" type="ColorString" use="optional"/>
111
- <xs:attribute name="id" type="xs:string" use="optional"/>
112
- </xs:complexType>
113
-
114
- <!-- Rectangle -->
115
- <xs:complexType name="Rectangle">
116
- <xs:attribute name="topLeft" type="PointString" use="required"/>
117
- <xs:attribute name="bottomRight" type="PointString" use="required"/>
118
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
119
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
120
- <xs:attribute name="strokeDashArray" type="DashArray" use="optional"/>
121
- <xs:attribute name="strokeDashOffset" type="DashOffset" use="optional"/>
122
- <xs:attribute name="fillColor" type="ColorString" use="optional"/>
123
- <xs:attribute name="id" type="xs:string" use="optional"/>
124
- <xs:attribute name="radius" type="PointString" use="optional"/>
125
- </xs:complexType>
126
-
127
- <!-- Text -->
128
- <xs:complexType name="Text">
129
- <xs:attribute name="position" type="PointString" use="required"/>
130
- <xs:attribute name="text" type="xs:string" use="required"/>
131
- <xs:attribute name="fontFamily" type="xs:string" use="optional"/>
132
- <xs:attribute name="fontSize" type="xs:double" use="optional"/>
133
- <xs:attribute name="textColor" type="ColorString" use="optional"/>
134
- <xs:attribute name="fontWeight" use="optional">
135
- <xs:simpleType>
136
- <xs:restriction base="xs:string">
137
- <xs:enumeration value="light"/>
138
- <xs:enumeration value="normal"/>
139
- <xs:enumeration value="mediumBold"/>
140
- <xs:enumeration value="bold"/>
141
- <xs:enumeration value="extraBold"/>
142
- </xs:restriction>
143
- </xs:simpleType>
144
- </xs:attribute>
145
- <xs:attribute name="clockwiseRotationDegrees" type="xs:double" use="optional"/>
146
- <xs:attribute name="textAlignment" use="optional">
147
- <xs:simpleType>
148
- <xs:restriction base="xs:string">
149
- <xs:enumeration value="left"/>
150
- <xs:enumeration value="center"/>
151
- <xs:enumeration value="right"/>
152
- </xs:restriction>
153
- </xs:simpleType>
154
- </xs:attribute>
155
- <xs:attribute name="horizontalGrowthDirection" use="optional">
156
- <xs:simpleType>
157
- <xs:restriction base="xs:string">
158
- <xs:enumeration value="up"/>
159
- <xs:enumeration value="down"/>
160
- <xs:enumeration value="uniform"/>
161
- <xs:enumeration value="left"/>
162
- <xs:enumeration value="right"/>
163
- </xs:restriction>
164
- </xs:simpleType>
165
- </xs:attribute>
166
- <xs:attribute name="verticalGrowthDirection" use="optional">
167
- <xs:simpleType>
168
- <xs:restriction base="xs:string">
169
- <xs:enumeration value="up"/>
170
- <xs:enumeration value="down"/>
171
- <xs:enumeration value="uniform"/>
172
- <xs:enumeration value="left"/>
173
- <xs:enumeration value="right"/>
174
- </xs:restriction>
175
- </xs:simpleType>
176
- </xs:attribute>
177
- <xs:attribute name="strokeThickness" type="xs:double" use="optional"/>
178
- <xs:attribute name="strokeColor" type="ColorString" use="optional"/>
179
- <xs:attribute name="italic" type="xs:boolean" use="optional"/>
180
- <xs:attribute name="id" type="xs:string" use="optional"/>
181
- </xs:complexType>
182
-
183
- </xs:schema>