jpf 4.2.18 → 5.0.6

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 (292) hide show
  1. package/dist/controls/codeMirror/Editor/Editor.d.ts +19 -0
  2. package/dist/controls/codeMirror/Editor/Editor.js +151 -0
  3. package/dist/controls/codeMirror/Editor/Editor.js.map +1 -0
  4. package/dist/controls/codeMirror/index.d.ts +1 -2
  5. package/dist/controls/codeMirror/index.js +1 -2
  6. package/dist/controls/codeMirror/index.js.map +1 -1
  7. package/dist/controls/custom/FileSelector/FileSelector.d.ts +18 -18
  8. package/dist/controls/custom/FileSelector/FileSelector.js +47 -46
  9. package/dist/controls/custom/FileSelector/FileSelector.js.map +1 -1
  10. package/dist/controls/custom/LabeledControl/LabeledControl.d.ts +15 -15
  11. package/dist/controls/custom/LabeledControl/LabeledControl.js +31 -36
  12. package/dist/controls/custom/LabeledControl/LabeledControl.js.map +1 -1
  13. package/dist/controls/custom/ListItem/ListItem.d.ts +37 -36
  14. package/dist/controls/custom/ListItem/ListItem.js +62 -62
  15. package/dist/controls/custom/ListItem/ListItem.js.map +1 -1
  16. package/dist/controls/custom/index.d.ts +3 -3
  17. package/dist/controls/custom/index.js +3 -3
  18. package/dist/controls/html/Button/Button.d.ts +16 -16
  19. package/dist/controls/html/Button/Button.js +47 -50
  20. package/dist/controls/html/Button/Button.js.map +1 -1
  21. package/dist/controls/html/Div/Div.d.ts +14 -14
  22. package/dist/controls/html/Div/Div.js +23 -24
  23. package/dist/controls/html/Div/Div.js.map +1 -1
  24. package/dist/controls/html/Image/Image.d.ts +16 -16
  25. package/dist/controls/html/Image/Image.js +29 -28
  26. package/dist/controls/html/Image/Image.js.map +1 -1
  27. package/dist/controls/html/Input/Input.d.ts +34 -34
  28. package/dist/controls/html/Input/Input.js +166 -170
  29. package/dist/controls/html/Input/Input.js.map +1 -1
  30. package/dist/controls/html/Select/Select.d.ts +30 -30
  31. package/dist/controls/html/Select/Select.js +109 -110
  32. package/dist/controls/html/Select/Select.js.map +1 -1
  33. package/dist/controls/html/Span/Span.d.ts +11 -11
  34. package/dist/controls/html/Span/Span.js +22 -22
  35. package/dist/controls/html/Span/Span.js.map +1 -1
  36. package/dist/controls/html/index.d.ts +6 -6
  37. package/dist/controls/html/index.js +6 -6
  38. package/dist/controls/index.d.ts +14 -14
  39. package/dist/controls/index.js +14 -14
  40. package/dist/controls/index.js.map +1 -1
  41. package/dist/controls/{jsonViewAwesome → jsonViewerAwesome}/index.d.ts +1 -1
  42. package/dist/controls/{jsonViewAwesome → jsonViewerAwesome}/index.js +1 -1
  43. package/dist/controls/jsonViewerAwesome/index.js.map +1 -0
  44. package/dist/controls/jsonViewerAwesome/jsonFormatter/JsonFormatter.d.ts +28 -0
  45. package/dist/controls/{jsonViewAwesome → jsonViewerAwesome}/jsonFormatter/JsonFormatter.js +65 -65
  46. package/dist/controls/jsonViewerAwesome/jsonFormatter/JsonFormatter.js.map +1 -0
  47. package/dist/controls/kendo/Chart/Chart.d.ts +19 -19
  48. package/dist/controls/kendo/Chart/Chart.js +62 -62
  49. package/dist/controls/kendo/Chart/Chart.js.map +1 -1
  50. package/dist/controls/kendo/Culture/Culture.d.ts +1 -1
  51. package/dist/controls/kendo/Culture/Culture.js +25 -25
  52. package/dist/controls/kendo/Culture/Culture.js.map +1 -1
  53. package/dist/controls/kendo/DataSource/DataSource.d.ts +4 -4
  54. package/dist/controls/kendo/DataSource/DataSource.js +1 -1
  55. package/dist/controls/kendo/Editor/Editor.d.ts +14 -19
  56. package/dist/controls/kendo/Editor/Editor.js +94 -104
  57. package/dist/controls/kendo/Editor/Editor.js.map +1 -1
  58. package/dist/controls/kendo/Grid/Grid.d.ts +54 -54
  59. package/dist/controls/kendo/Grid/Grid.js +201 -218
  60. package/dist/controls/kendo/Grid/Grid.js.map +1 -1
  61. package/dist/controls/kendo/Menu/Menu.d.ts +15 -15
  62. package/dist/controls/kendo/Menu/Menu.js +90 -90
  63. package/dist/controls/kendo/Menu/Menu.js.map +1 -1
  64. package/dist/controls/kendo/ObservableObject/ObservableObject.d.ts +0 -5
  65. package/dist/controls/kendo/ObservableObject/ObservableObject.js +0 -34
  66. package/dist/controls/kendo/ObservableObject/ObservableObject.js.map +1 -1
  67. package/dist/controls/kendo/Treeview/Treeview.d.ts +17 -0
  68. package/dist/controls/kendo/{Tree/Tree.js → Treeview/Treeview.js} +107 -107
  69. package/dist/controls/kendo/Treeview/Treeview.js.map +1 -0
  70. package/dist/controls/kendo/Window/Window.d.ts +14 -0
  71. package/dist/controls/kendo/{Dialog/Dialog.js → Window/Window.js} +49 -49
  72. package/dist/controls/kendo/Window/Window.js.map +1 -0
  73. package/dist/controls/kendo/index.d.ts +8 -9
  74. package/dist/controls/kendo/index.js +8 -9
  75. package/dist/controls/kendo/index.js.map +1 -1
  76. package/dist/controls/leaflet/LabelControl/LabelControl.d.ts +12 -12
  77. package/dist/controls/leaflet/LabelControl/LabelControl.js +33 -33
  78. package/dist/controls/leaflet/LabelControl/LabelControl.js.map +1 -1
  79. package/dist/controls/leaflet/Map/Map.d.ts +45 -45
  80. package/dist/controls/leaflet/Map/Map.js +116 -115
  81. package/dist/controls/leaflet/Map/Map.js.map +1 -1
  82. package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.d.ts +8 -8
  83. package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.js +13 -13
  84. package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.js.map +1 -1
  85. package/dist/controls/leaflet/PointerEvent/PointerEvent.d.ts +2 -2
  86. package/dist/controls/leaflet/PointerEvent/PointerEvent.js +7 -7
  87. package/dist/controls/leaflet/PointerEvent/PointerEvent.js.map +1 -1
  88. package/dist/controls/leaflet/index.d.ts +4 -4
  89. package/dist/controls/leaflet/index.js +4 -4
  90. package/dist/controls/svg/Circle/Circle.d.ts +12 -12
  91. package/dist/controls/svg/Circle/Circle.js +20 -20
  92. package/dist/controls/svg/Circle/Circle.js.map +1 -1
  93. package/dist/controls/svg/Ellipse/Ellipse.d.ts +13 -13
  94. package/dist/controls/svg/Ellipse/Ellipse.js +21 -21
  95. package/dist/controls/svg/Ellipse/Ellipse.js.map +1 -1
  96. package/dist/controls/svg/ForeignObject/ForeignObject.d.ts +15 -14
  97. package/dist/controls/svg/ForeignObject/ForeignObject.js +21 -22
  98. package/dist/controls/svg/ForeignObject/ForeignObject.js.map +1 -1
  99. package/dist/controls/svg/Group/Group.d.ts +15 -14
  100. package/dist/controls/svg/Group/Group.js +21 -22
  101. package/dist/controls/svg/Group/Group.js.map +1 -1
  102. package/dist/controls/svg/Line/Line.d.ts +13 -13
  103. package/dist/controls/svg/Line/Line.js +21 -21
  104. package/dist/controls/svg/Line/Line.js.map +1 -1
  105. package/dist/controls/svg/Pattern/Pattern.d.ts +22 -22
  106. package/dist/controls/svg/Pattern/Pattern.js +22 -23
  107. package/dist/controls/svg/Pattern/Pattern.js.map +1 -1
  108. package/dist/controls/svg/Polygon/Polygon.d.ts +11 -11
  109. package/dist/controls/svg/Polygon/Polygon.js +20 -20
  110. package/dist/controls/svg/Polygon/Polygon.js.map +1 -1
  111. package/dist/controls/svg/Polyline/Polyline.d.ts +11 -11
  112. package/dist/controls/svg/Polyline/Polyline.js +19 -19
  113. package/dist/controls/svg/Polyline/Polyline.js.map +1 -1
  114. package/dist/controls/svg/Rectangle/Rectangle.d.ts +13 -13
  115. package/dist/controls/svg/Rectangle/Rectangle.js +21 -21
  116. package/dist/controls/svg/Rectangle/Rectangle.js.map +1 -1
  117. package/dist/controls/svg/Svg/Svg.d.ts +17 -17
  118. package/dist/controls/svg/Svg/Svg.js +23 -24
  119. package/dist/controls/svg/Svg/Svg.js.map +1 -1
  120. package/dist/controls/svg/Text/Text.d.ts +14 -14
  121. package/dist/controls/svg/Text/Text.js +22 -22
  122. package/dist/controls/svg/Text/Text.js.map +1 -1
  123. package/dist/controls/svg/Title/Title.d.ts +10 -10
  124. package/dist/controls/svg/Title/Title.js +16 -16
  125. package/dist/controls/svg/Title/Title.js.map +1 -1
  126. package/dist/controls/svg/index.d.ts +13 -13
  127. package/dist/controls/svg/index.js +13 -13
  128. package/dist/controls/svg/svg.d.ts +6 -6
  129. package/dist/controls/svg/svg.js +12 -12
  130. package/dist/controls/svg/svg.js.map +1 -1
  131. package/dist/framework/attributes.d.ts +90 -90
  132. package/dist/framework/attributes.js +1 -1
  133. package/dist/framework/{View.d.ts → element.d.ts} +61 -62
  134. package/dist/framework/{View.js → element.js} +157 -150
  135. package/dist/framework/element.js.map +1 -0
  136. package/dist/framework/event.d.ts +80 -80
  137. package/dist/framework/event.js +25 -25
  138. package/dist/framework/event.js.map +1 -1
  139. package/dist/framework/observable.d.ts +37 -12
  140. package/dist/framework/observable.js +66 -58
  141. package/dist/framework/observable.js.map +1 -1
  142. package/dist/framework/properties.d.ts +40 -0
  143. package/dist/framework/{ViewModel.js → properties.js} +303 -312
  144. package/dist/framework/properties.js.map +1 -0
  145. package/dist/framework/root.d.ts +9 -0
  146. package/dist/framework/root.js +38 -0
  147. package/dist/framework/root.js.map +1 -0
  148. package/dist/framework/style.d.ts +657 -658
  149. package/dist/framework/style.js +146 -153
  150. package/dist/framework/style.js.map +1 -1
  151. package/dist/framework/types.d.ts +87 -87
  152. package/dist/framework/types.js +1 -1
  153. package/dist/index.d.ts +12 -12
  154. package/dist/index.js +12 -12
  155. package/dist/index.js.map +1 -1
  156. package/dist/utilities/blob/blob.d.ts +1 -1
  157. package/dist/utilities/blob/blob.js +17 -17
  158. package/dist/utilities/blob/blob.js.map +1 -1
  159. package/dist/utilities/contextMenu/contextMenu.d.ts +2 -0
  160. package/dist/utilities/contextMenu/contextMenu.js +11 -0
  161. package/dist/utilities/contextMenu/contextMenu.js.map +1 -0
  162. package/dist/utilities/cookie/cookie.d.ts +3 -3
  163. package/dist/utilities/cookie/cookie.js +26 -26
  164. package/dist/utilities/cookie/cookie.js.map +1 -1
  165. package/dist/utilities/dataReaderTable/dataReaderTable.d.ts +9 -9
  166. package/dist/utilities/dataReaderTable/dataReaderTable.js +23 -23
  167. package/dist/utilities/dataReaderTable/dataReaderTable.js.map +1 -1
  168. package/dist/utilities/fetch/fetch.d.ts +7 -8
  169. package/dist/utilities/fetch/fetch.js +139 -137
  170. package/dist/utilities/fetch/fetch.js.map +1 -1
  171. package/dist/utilities/float/float.d.ts +1 -1
  172. package/dist/utilities/float/float.js +3 -3
  173. package/dist/utilities/formData/formData.d.ts +1 -1
  174. package/dist/utilities/formData/formData.js +11 -11
  175. package/dist/utilities/formData/formData.js.map +1 -1
  176. package/dist/utilities/formatting/formatting.d.ts +4 -0
  177. package/dist/utilities/formatting/formatting.js +26 -0
  178. package/dist/utilities/formatting/formatting.js.map +1 -0
  179. package/dist/utilities/htmlElement/htmlElement.d.ts +1 -1
  180. package/dist/utilities/htmlElement/htmlElement.js +16 -16
  181. package/dist/utilities/htmlElement/htmlElement.js.map +1 -1
  182. package/dist/utilities/image/image.d.ts +1 -1
  183. package/dist/utilities/image/image.js +1 -1
  184. package/dist/utilities/index.d.ts +40 -36
  185. package/dist/utilities/index.js +40 -36
  186. package/dist/utilities/index.js.map +1 -1
  187. package/dist/utilities/integer/integer.d.ts +3 -3
  188. package/dist/utilities/integer/integer.js +27 -27
  189. package/dist/utilities/integer/integer.js.map +1 -1
  190. package/dist/utilities/key/key.d.ts +2 -2
  191. package/dist/utilities/key/key.js +6 -6
  192. package/dist/utilities/navigator/navigator.d.ts +1 -1
  193. package/dist/utilities/navigator/navigator.js +8 -8
  194. package/dist/utilities/navigator/navigator.js.map +1 -1
  195. package/dist/utilities/notification/notification.d.ts +5 -5
  196. package/dist/utilities/notification/notification.js +66 -66
  197. package/dist/utilities/notification/notification.js.map +1 -1
  198. package/dist/utilities/querystring/querystring.d.ts +6 -6
  199. package/dist/utilities/querystring/querystring.js +53 -53
  200. package/dist/utilities/querystring/querystring.js.map +1 -1
  201. package/dist/utilities/router/router.d.ts +19 -19
  202. package/dist/utilities/router/router.js +80 -80
  203. package/dist/utilities/router/router.js.map +1 -1
  204. package/dist/utilities/stylesheet/stylesheet.d.ts +2 -2
  205. package/dist/utilities/stylesheet/stylesheet.js +47 -47
  206. package/dist/utilities/stylesheet/stylesheet.js.map +1 -1
  207. package/dist/utilities/uniqueId/uniqueId.d.ts +1 -1
  208. package/dist/utilities/uniqueId/uniqueId.js +4 -4
  209. package/dist/{framework → utilities/userAgent}/userAgent.d.ts +31 -31
  210. package/dist/{framework → utilities/userAgent}/userAgent.js +46 -46
  211. package/dist/utilities/userAgent/userAgent.js.map +1 -0
  212. package/dist/utilities/webSocket/webSocket.d.ts +1 -1
  213. package/dist/utilities/webSocket/webSocket.js +54 -54
  214. package/dist/utilities/webSocket/webSocket.js.map +1 -1
  215. package/package.json +18 -14
  216. package/src/controls/codeMirror/Editor/Editor.ts +207 -0
  217. package/src/controls/codeMirror/index.ts +1 -2
  218. package/src/controls/custom/FileSelector/FileSelector.ts +30 -28
  219. package/src/controls/custom/LabeledControl/LabeledControl.ts +32 -36
  220. package/src/controls/custom/ListItem/ListItem.ts +36 -36
  221. package/src/controls/html/Button/Button.ts +36 -29
  222. package/src/controls/html/Div/Div.ts +20 -21
  223. package/src/controls/html/Image/Image.ts +22 -20
  224. package/src/controls/html/Input/Input.ts +59 -61
  225. package/src/controls/html/Select/Select.ts +37 -39
  226. package/src/controls/html/Span/Span.ts +14 -14
  227. package/src/controls/index.ts +2 -2
  228. package/src/controls/{jsonViewAwesome → jsonViewerAwesome}/jsonFormatter/JsonFormatter.ts +23 -23
  229. package/src/controls/kendo/Chart/Chart.ts +34 -34
  230. package/src/controls/kendo/DataSource/DataSource.ts +1 -1
  231. package/src/controls/kendo/Editor/Editor.ts +58 -68
  232. package/src/controls/kendo/Grid/Grid.ts +77 -80
  233. package/src/controls/kendo/Menu/Menu.ts +22 -22
  234. package/src/controls/kendo/ObservableObject/ObservableObject.ts +45 -45
  235. package/src/controls/kendo/{Tree/Tree.ts → Treeview/Treeview.ts} +15 -15
  236. package/src/controls/kendo/{Dialog/Dialog.ts → Window/Window.ts} +21 -19
  237. package/src/controls/kendo/index.ts +3 -3
  238. package/src/controls/leaflet/LabelControl/LabelControl.ts +10 -10
  239. package/src/controls/leaflet/Map/Map.ts +41 -38
  240. package/src/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.ts +3 -3
  241. package/src/controls/svg/Circle/Circle.ts +14 -14
  242. package/src/controls/svg/Ellipse/Ellipse.ts +15 -15
  243. package/src/controls/svg/ForeignObject/ForeignObject.ts +19 -20
  244. package/src/controls/svg/Group/Group.ts +19 -19
  245. package/src/controls/svg/Line/Line.ts +15 -15
  246. package/src/controls/svg/Pattern/Pattern.ts +25 -25
  247. package/src/controls/svg/Polygon/Polygon.ts +13 -13
  248. package/src/controls/svg/Polyline/Polyline.ts +13 -13
  249. package/src/controls/svg/Rectangle/Rectangle.ts +15 -15
  250. package/src/controls/svg/Svg/Svg.ts +19 -19
  251. package/src/controls/svg/Text/Text.ts +16 -16
  252. package/src/controls/svg/Title/Title.ts +12 -12
  253. package/src/controls/svg/svg.ts +4 -4
  254. package/src/framework/attributes.ts +46 -46
  255. package/src/framework/{View.ts → element.ts} +52 -39
  256. package/src/framework/event.ts +7 -7
  257. package/src/framework/observable.ts +94 -60
  258. package/src/framework/properties.ts +393 -0
  259. package/src/framework/root.ts +45 -0
  260. package/src/framework/style.ts +330 -340
  261. package/src/index.ts +4 -4
  262. package/src/utilities/contextMenu/contextMenu.ts +16 -0
  263. package/src/utilities/fetch/fetch.ts +16 -14
  264. package/src/utilities/formatting/formatting.ts +29 -0
  265. package/src/utilities/index.ts +7 -3
  266. package/src/utilities/router/router.ts +3 -3
  267. package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.d.ts +0 -16
  268. package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.js +0 -120
  269. package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.js.map +0 -1
  270. package/dist/controls/codeMirror/JsonEditor/JsonEditor.d.ts +0 -16
  271. package/dist/controls/codeMirror/JsonEditor/JsonEditor.js +0 -104
  272. package/dist/controls/codeMirror/JsonEditor/JsonEditor.js.map +0 -1
  273. package/dist/controls/jsonViewAwesome/index.js.map +0 -1
  274. package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.d.ts +0 -28
  275. package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.js.map +0 -1
  276. package/dist/controls/kendo/Dialog/Dialog.d.ts +0 -14
  277. package/dist/controls/kendo/Dialog/Dialog.js.map +0 -1
  278. package/dist/controls/kendo/Tree/Tree.d.ts +0 -17
  279. package/dist/controls/kendo/Tree/Tree.js.map +0 -1
  280. package/dist/framework/View.js.map +0 -1
  281. package/dist/framework/ViewModel.d.ts +0 -42
  282. package/dist/framework/ViewModel.js.map +0 -1
  283. package/dist/framework/userAgent.js.map +0 -1
  284. package/dist/utilities/html/html.d.ts +0 -1
  285. package/dist/utilities/html/html.js +0 -8
  286. package/dist/utilities/html/html.js.map +0 -1
  287. package/src/controls/codeMirror/HtmlEditor/HtmlEditor.ts +0 -153
  288. package/src/controls/codeMirror/JsonEditor/JsonEditor.ts +0 -136
  289. package/src/framework/ViewModel.ts +0 -528
  290. package/src/utilities/html/html.ts +0 -8
  291. /package/src/controls/{jsonViewAwesome → jsonViewerAwesome}/index.ts +0 -0
  292. /package/src/{framework → utilities/userAgent}/userAgent.ts +0 -0
@@ -1,21 +1,21 @@
1
- import { View } from "../../../framework/View";
2
- import { extendProperties } from "../../../framework/ViewModel";
3
- export class CircleView extends View {
4
- constructor(properties) {
5
- super({
6
- tagName: "circle",
7
- properties: extendProperties({
8
- viewType: "Circle",
9
- attributes: {
10
- cx: properties.cx,
11
- cy: properties.cy,
12
- r: properties.r
13
- }
14
- }, properties)
15
- });
16
- }
17
- }
18
- export function circleView(properties) {
19
- return new CircleView(properties);
20
- }
1
+ import { Element } from "../../../framework/element";
2
+ import { extendProperties } from "../../../framework/properties";
3
+ export class CircleElement extends Element {
4
+ constructor(properties) {
5
+ super({
6
+ tagName: "circle",
7
+ properties: extendProperties(properties, {
8
+ elementType: "Circle",
9
+ attributes: {
10
+ cx: properties.cx,
11
+ cy: properties.cy,
12
+ r: properties.r
13
+ }
14
+ })
15
+ });
16
+ }
17
+ }
18
+ export function createCircle(properties) {
19
+ return new CircleElement(properties);
20
+ }
21
21
  //# sourceMappingURL=Circle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Circle.js","sourceRoot":"","sources":["../../../../src/controls/svg/Circle/Circle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAc,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAS3E,MAAM,OAAO,UAAW,SAAQ,IAAsB;IAClD,YAAY,UAA4B;QACpC,KAAK,CACD;YACI,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,QAAQ;gBAClB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,CAAC,EAAE,UAAU,CAAC,CAAC;iBAClB;aACJ,EACD,UAAU,CACb;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,UAAU,CAAC,UAA4B;IACnD,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;AACtC,CAAC"}
1
+ {"version":3,"file":"Circle.js","sourceRoot":"","sources":["../../../../src/controls/svg/Circle/Circle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAe,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAS7E,MAAM,OAAO,aAAc,SAAQ,OAA0B;IACzD,YAAY,UAA6B;QACrC,KAAK,CACD;YACI,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,gBAAgB,CACxB,UAAU,EACV;gBACI,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,CAAC,EAAE,UAAU,CAAC,CAAC;iBAClB;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,YAAY,CAAC,UAA6B;IACtD,OAAO,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;AACzC,CAAC"}
@@ -1,13 +1,13 @@
1
- import { View } from "../../../framework/View";
2
- import { Properties } from "../../../framework/ViewModel";
3
- import { Subscribable } from "knockout";
4
- export interface EllipseProperties extends Properties {
5
- cx: number | string | Subscribable<number | string>;
6
- cy: number | string | Subscribable<number | string>;
7
- rx: number | string | Subscribable<number | string>;
8
- ry: number | string | Subscribable<number | string>;
9
- }
10
- export declare class EllipseView extends View<EllipseProperties> {
11
- constructor(properties: EllipseProperties);
12
- }
13
- export declare function ellipseView(properties: EllipseProperties): EllipseView;
1
+ import { Element } from "../../../framework/element";
2
+ import { IProperties } from "../../../framework/properties";
3
+ import { ISubscribable } from "../../../framework/observable";
4
+ export interface IEllipseProperties extends IProperties {
5
+ cx: number | string | ISubscribable<number | string>;
6
+ cy: number | string | ISubscribable<number | string>;
7
+ rx: number | string | ISubscribable<number | string>;
8
+ ry: number | string | ISubscribable<number | string>;
9
+ }
10
+ export declare class EllipseElement extends Element<IEllipseProperties> {
11
+ constructor(properties: IEllipseProperties);
12
+ }
13
+ export declare function createEllipse(properties: IEllipseProperties): EllipseElement;
@@ -1,22 +1,22 @@
1
- import { View } from "../../../framework/View";
2
- import { extendProperties } from "../../../framework/ViewModel";
3
- export class EllipseView extends View {
4
- constructor(properties) {
5
- super({
6
- tagName: "ellipse",
7
- properties: extendProperties({
8
- viewType: "Ellipse",
9
- attributes: {
10
- cx: properties.cx,
11
- cy: properties.cy,
12
- rx: properties.rx,
13
- ry: properties.ry
14
- }
15
- }, properties)
16
- });
17
- }
18
- }
19
- export function ellipseView(properties) {
20
- return new EllipseView(properties);
21
- }
1
+ import { Element } from "../../../framework/element";
2
+ import { extendProperties } from "../../../framework/properties";
3
+ export class EllipseElement extends Element {
4
+ constructor(properties) {
5
+ super({
6
+ tagName: "ellipse",
7
+ properties: extendProperties(properties, {
8
+ elementType: "Ellipse",
9
+ attributes: {
10
+ cx: properties.cx,
11
+ cy: properties.cy,
12
+ rx: properties.rx,
13
+ ry: properties.ry
14
+ }
15
+ })
16
+ });
17
+ }
18
+ }
19
+ export function createEllipse(properties) {
20
+ return new EllipseElement(properties);
21
+ }
22
22
  //# sourceMappingURL=Ellipse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Ellipse.js","sourceRoot":"","sources":["../../../../src/controls/svg/Ellipse/Ellipse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAc,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAU3E,MAAM,OAAO,WAAY,SAAQ,IAAuB;IACpD,YAAY,UAA6B;QACrC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,SAAS;gBACnB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;iBACpB;aACJ,EACD,UAAU,CACb;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,WAAW,CAAC,UAA6B;IACrD,OAAO,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"Ellipse.js","sourceRoot":"","sources":["../../../../src/controls/svg/Ellipse/Ellipse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAe,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAU7E,MAAM,OAAO,cAAe,SAAQ,OAA2B;IAC3D,YAAY,UAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,gBAAgB,CACxB,UAAU,EACV;gBACI,WAAW,EAAE,SAAS;gBACtB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;iBACpB;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,aAAa,CAAC,UAA8B;IACxD,OAAO,IAAI,cAAc,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC"}
@@ -1,14 +1,15 @@
1
- import { View, IView } from "../../../framework/View";
2
- import { Properties } from "../../../framework/ViewModel";
3
- import { Computed, ObservableArray, Subscribable } from "knockout";
4
- export interface ForeignObjectProperties extends Properties {
5
- height?: number | string | Subscribable<number | string>;
6
- width?: number | string | Subscribable<number | string>;
7
- x?: number | string | Subscribable<number | string>;
8
- y?: number | string | Subscribable<number | string>;
9
- children?: Array<IView> | ObservableArray<IView> | Computed<Array<IView>>;
10
- }
11
- export declare class ForeignObjectView extends View<ForeignObjectProperties> {
12
- constructor(properties: ForeignObjectProperties);
13
- }
14
- export declare function foreignObjectView(properties: ForeignObjectProperties): ForeignObjectView;
1
+ import { Element, IElement } from "../../../framework/element";
2
+ import { IProperties } from "../../../framework/properties";
3
+ import { ISubscribable } from "../../../framework/observable";
4
+ export interface IForeignObjectProperties extends IProperties {
5
+ height?: number | string | ISubscribable<number | string>;
6
+ width?: number | string | ISubscribable<number | string>;
7
+ x?: number | string | ISubscribable<number | string>;
8
+ y?: number | string | ISubscribable<number | string>;
9
+ children?: Array<IElement> | ISubscribable<Array<IElement>>;
10
+ }
11
+ declare class ForeignObjectElement extends Element<IForeignObjectProperties> {
12
+ constructor(properties: IForeignObjectProperties);
13
+ }
14
+ export declare function createForeignObject(properties: IForeignObjectProperties): ForeignObjectElement;
15
+ export {};
@@ -1,23 +1,22 @@
1
- import { View } from "../../../framework/View";
2
- import { extendProperties } from "../../../framework/ViewModel";
3
- export class ForeignObjectView extends View {
4
- constructor(properties) {
5
- super({
6
- tagName: "foreignObject",
7
- properties: extendProperties({
8
- viewType: "ForeignObject",
9
- attributes: {
10
- height: properties.height,
11
- width: properties.width,
12
- x: properties.x,
13
- y: properties.y
14
- }
15
- }, properties),
16
- children: properties.children
17
- });
18
- }
19
- }
20
- export function foreignObjectView(properties) {
21
- return new ForeignObjectView(properties);
22
- }
1
+ import { Element } from "../../../framework/element";
2
+ import { extendProperties } from "../../../framework/properties";
3
+ class ForeignObjectElement extends Element {
4
+ constructor(properties) {
5
+ super({
6
+ tagName: "foreignObject",
7
+ properties: extendProperties(properties, {
8
+ elementType: "ForeignObject",
9
+ attributes: {
10
+ height: properties.height,
11
+ width: properties.width,
12
+ x: properties.x,
13
+ y: properties.y
14
+ }
15
+ })
16
+ }, properties.children);
17
+ }
18
+ }
19
+ export function createForeignObject(properties) {
20
+ return new ForeignObjectElement(properties);
21
+ }
23
22
  //# sourceMappingURL=ForeignObject.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ForeignObject.js","sourceRoot":"","sources":["../../../../src/controls/svg/ForeignObject/ForeignObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAW5E,MAAM,OAAO,iBAAkB,SAAQ,IAA6B;IAChE,YAAY,UAAmC;QAC3C,KAAK,CACD;YACI,OAAO,EAAE,eAAe;YACxB,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,eAAe;gBACzB,UAAU,EAAE;oBACR,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,CAAC,EAAE,UAAU,CAAC,CAAC;iBAClB;aACJ,EACD,UAAU,CACb;YACD,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAChC,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,iBAAiB,CAAC,UAAmC;IACjE,OAAO,IAAI,iBAAiB,CAAC,UAAU,CAAC,CAAC;AAC7C,CAAC"}
1
+ {"version":3,"file":"ForeignObject.js","sourceRoot":"","sources":["../../../../src/controls/svg/ForeignObject/ForeignObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAe,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAU9E,MAAM,oBAAqB,SAAQ,OAAiC;IAChE,YAAY,UAAoC;QAC5C,KAAK,CACD;YACI,OAAO,EAAE,eAAe;YACxB,UAAU,EAAE,gBAAgB,CACxB,UAAU,EACV;gBACI,WAAW,EAAE,eAAe;gBAC5B,UAAU,EAAE;oBACR,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,CAAC,EAAE,UAAU,CAAC,CAAC;iBAClB;aACJ,CACJ;SACJ,EACD,UAAU,CAAC,QAAQ,CACtB,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,mBAAmB,CAAC,UAAoC;IACpE,OAAO,IAAI,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAChD,CAAC"}
@@ -1,14 +1,15 @@
1
- import { View, IView } from "../../../framework/View";
2
- import { Properties } from "../../../framework/ViewModel";
3
- import { Computed, ObservableArray, Subscribable } from "knockout";
4
- export interface GroupProperties extends Properties {
5
- x1?: number | string | Subscribable<number | string>;
6
- x2?: number | string | Subscribable<number | string>;
7
- y1?: number | string | Subscribable<number | string>;
8
- y2?: number | string | Subscribable<number | string>;
9
- children?: Array<IView> | ObservableArray<IView> | Computed<Array<IView>>;
10
- }
11
- export declare class GroupView extends View<GroupProperties> {
12
- constructor(properties: GroupProperties);
13
- }
14
- export declare function groupView(properties: GroupProperties): GroupView;
1
+ import { Element, IElement } from "../../../framework/element";
2
+ import { IProperties } from "../../../framework/properties";
3
+ import { ISubscribable } from "../../../framework/observable";
4
+ export interface IGroupProperties extends IProperties {
5
+ x1?: number | string | ISubscribable<number | string>;
6
+ x2?: number | string | ISubscribable<number | string>;
7
+ y1?: number | string | ISubscribable<number | string>;
8
+ y2?: number | string | ISubscribable<number | string>;
9
+ children?: Array<IElement> | ISubscribable<Array<IElement>>;
10
+ }
11
+ declare class GroupElement extends Element<IGroupProperties> {
12
+ constructor(properties: IGroupProperties);
13
+ }
14
+ export declare function createGroup(properties: IGroupProperties): GroupElement;
15
+ export {};
@@ -1,23 +1,22 @@
1
- import { View } from "../../../framework/View";
2
- import { extendProperties } from "../../../framework/ViewModel";
3
- export class GroupView extends View {
4
- constructor(properties) {
5
- super({
6
- tagName: "g",
7
- properties: extendProperties({
8
- viewType: "Group",
9
- attributes: {
10
- x1: properties.x1,
11
- x2: properties.x2,
12
- y1: properties.y1,
13
- y2: properties.y2
14
- }
15
- }, properties),
16
- children: properties.children
17
- });
18
- }
19
- }
20
- export function groupView(properties) {
21
- return new GroupView(properties);
22
- }
1
+ import { Element } from "../../../framework/element";
2
+ import { extendProperties } from "../../../framework/properties";
3
+ class GroupElement extends Element {
4
+ constructor(properties) {
5
+ super({
6
+ tagName: "g",
7
+ properties: extendProperties(properties, {
8
+ elementType: "Group",
9
+ attributes: {
10
+ x1: properties.x1,
11
+ x2: properties.x2,
12
+ y1: properties.y1,
13
+ y2: properties.y2
14
+ }
15
+ })
16
+ }, properties.children);
17
+ }
18
+ }
19
+ export function createGroup(properties) {
20
+ return new GroupElement(properties);
21
+ }
23
22
  //# sourceMappingURL=Group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../src/controls/svg/Group/Group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAW5E,MAAM,OAAO,SAAU,SAAQ,IAAqB;IAChD,YAAY,UAA2B;QACnC,KAAK,CACD;YACI,OAAO,EAAE,GAAG;YACZ,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,OAAO;gBACjB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;iBACpB;aACJ,EACD,UAAU,CACb;YACD,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAChC,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,SAAS,CAAC,UAA2B;IACjD,OAAO,IAAI,SAAS,CAAC,UAAU,CAAC,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../src/controls/svg/Group/Group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAe,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAW9E,MAAM,YAAa,SAAQ,OAAyB;IAChD,YAAY,UAA4B;QACpC,KAAK,CACD;YACI,OAAO,EAAE,GAAG;YACZ,UAAU,EAAE,gBAAgB,CACxB,UAAU,EACV;gBACI,WAAW,EAAE,OAAO;gBACpB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;iBACpB;aACJ,CACJ;SACJ,EACD,UAAU,CAAC,QAAQ,CACtB,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,WAAW,CAAC,UAA4B;IACpD,OAAO,IAAI,YAAY,CAAC,UAAU,CAAC,CAAC;AACxC,CAAC"}
@@ -1,13 +1,13 @@
1
- import { View } from "../../../framework/View";
2
- import { Properties } from "../../../framework/ViewModel";
3
- import { Subscribable } from "knockout";
4
- export interface LineProperties extends Properties {
5
- x1: number | string | Subscribable<number | string>;
6
- x2: number | string | Subscribable<number | string>;
7
- y1: number | string | Subscribable<number | string>;
8
- y2: number | string | Subscribable<number | string>;
9
- }
10
- export declare class LineView extends View<LineProperties> {
11
- constructor(properties: LineProperties);
12
- }
13
- export declare function lineView(properties: LineProperties): LineView;
1
+ import { Element } from "../../../framework/element";
2
+ import { IProperties } from "../../../framework/properties";
3
+ import { ISubscribable } from "../../../framework/observable";
4
+ export interface ILineProperties extends IProperties {
5
+ x1: number | string | ISubscribable<number | string>;
6
+ x2: number | string | ISubscribable<number | string>;
7
+ y1: number | string | ISubscribable<number | string>;
8
+ y2: number | string | ISubscribable<number | string>;
9
+ }
10
+ export declare class LineElement extends Element<ILineProperties> {
11
+ constructor(properties: ILineProperties);
12
+ }
13
+ export declare function createLine(properties: ILineProperties): LineElement;
@@ -1,22 +1,22 @@
1
- import { View } from "../../../framework/View";
2
- import { extendProperties } from "../../../framework/ViewModel";
3
- export class LineView extends View {
4
- constructor(properties) {
5
- super({
6
- tagName: "line",
7
- properties: extendProperties({
8
- viewType: "Line",
9
- attributes: {
10
- x1: properties.x1,
11
- x2: properties.x2,
12
- y1: properties.y1,
13
- y2: properties.y2
14
- }
15
- }, properties)
16
- });
17
- }
18
- }
19
- export function lineView(properties) {
20
- return new LineView(properties);
21
- }
1
+ import { Element } from "../../../framework/element";
2
+ import { extendProperties } from "../../../framework/properties";
3
+ export class LineElement extends Element {
4
+ constructor(properties) {
5
+ super({
6
+ tagName: "line",
7
+ properties: extendProperties(properties, {
8
+ elementType: "Line",
9
+ attributes: {
10
+ x1: properties.x1,
11
+ x2: properties.x2,
12
+ y1: properties.y1,
13
+ y2: properties.y2
14
+ }
15
+ })
16
+ });
17
+ }
18
+ }
19
+ export function createLine(properties) {
20
+ return new LineElement(properties);
21
+ }
22
22
  //# sourceMappingURL=Line.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Line.js","sourceRoot":"","sources":["../../../../src/controls/svg/Line/Line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAU5E,MAAM,OAAO,QAAS,SAAQ,IAAoB;IAC9C,YAAY,UAA0B;QAClC,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,MAAM;gBAChB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;iBACpB;aACJ,EACD,UAAU,CACb;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,QAAQ,CAAC,UAA0B;IAC/C,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;AACpC,CAAC"}
1
+ {"version":3,"file":"Line.js","sourceRoot":"","sources":["../../../../src/controls/svg/Line/Line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAe,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAU9E,MAAM,OAAO,WAAY,SAAQ,OAAwB;IACrD,YAAY,UAA2B;QACnC,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,gBAAgB,CACxB,UAAU,EACV;gBACI,WAAW,EAAE,MAAM;gBACnB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;iBACpB;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,UAAU,CAAC,UAA2B;IAClD,OAAO,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC"}
@@ -1,22 +1,22 @@
1
- import { View } from "../../../framework/View";
2
- import { Properties } from "../../../framework/ViewModel";
3
- import { Subscribable } from "knockout";
4
- import { PatternUnits } from "../../../framework/types";
5
- import { CircleView } from "../Circle/Circle";
6
- import { EllipseView } from "../Ellipse/Ellipse";
7
- import { LineView } from "../Line/Line";
8
- import { PolygonView } from "../Polygon/Polygon";
9
- import { PolylineView } from "../Polyline/Polyline";
10
- import { TextView } from "../Text/Text";
11
- export interface PatternProperties extends Properties {
12
- id: string;
13
- width: number | string | Subscribable<number | string>;
14
- height: number | string | Subscribable<number | string>;
15
- patternUnits: PatternUnits | Subscribable<PatternUnits>;
16
- patternTransform: string | Subscribable<string>;
17
- pattern: CircleView | EllipseView | LineView | PolygonView | PolylineView | TextView;
18
- }
19
- export declare class PatternView extends View<PatternProperties> {
20
- constructor(properties: PatternProperties);
21
- }
22
- export declare function patternView(properties: PatternProperties): PatternView;
1
+ import { Element } from "../../../framework/element";
2
+ import { IProperties } from "../../../framework/properties";
3
+ import { ISubscribable } from "../../../framework/observable";
4
+ import { PatternUnits } from "../../../framework/types";
5
+ import { CircleElement } from "../Circle/Circle";
6
+ import { EllipseElement } from "../Ellipse/Ellipse";
7
+ import { LineElement } from "../Line/Line";
8
+ import { PolygonElement } from "../Polygon/Polygon";
9
+ import { PolylineElement } from "../Polyline/Polyline";
10
+ import { TextElement } from "../Text/Text";
11
+ export interface IPatternProperties extends IProperties {
12
+ id: string;
13
+ width: number | string | ISubscribable<number | string>;
14
+ height: number | string | ISubscribable<number | string>;
15
+ patternUnits: PatternUnits | ISubscribable<PatternUnits>;
16
+ patternTransform: string | ISubscribable<string>;
17
+ pattern: CircleElement | EllipseElement | LineElement | PolygonElement | PolylineElement | TextElement;
18
+ }
19
+ export declare class PatternElement extends Element<IPatternProperties> {
20
+ constructor(properties: IPatternProperties);
21
+ }
22
+ export declare function createPattern(properties: IPatternProperties): PatternElement;
@@ -1,24 +1,23 @@
1
- import { View } from "../../../framework/View";
2
- import { extendProperties } from "../../../framework/ViewModel";
3
- export class PatternView extends View {
4
- constructor(properties) {
5
- super({
6
- tagName: "pattern",
7
- properties: extendProperties({
8
- viewType: "Pattern",
9
- attributes: {
10
- id: properties.id,
11
- width: properties.width,
12
- height: properties.height,
13
- patternUnits: properties.patternUnits,
14
- patternTransform: properties.patternTransform
15
- }
16
- }, properties),
17
- children: [properties.pattern]
18
- });
19
- }
20
- }
21
- export function patternView(properties) {
22
- return new PatternView(properties);
23
- }
1
+ import { Element } from "../../../framework/element";
2
+ import { extendProperties } from "../../../framework/properties";
3
+ export class PatternElement extends Element {
4
+ constructor(properties) {
5
+ super({
6
+ tagName: "pattern",
7
+ properties: extendProperties(properties, {
8
+ elementType: "Pattern",
9
+ attributes: {
10
+ id: properties.id,
11
+ width: properties.width,
12
+ height: properties.height,
13
+ patternUnits: properties.patternUnits,
14
+ patternTransform: properties.patternTransform
15
+ }
16
+ })
17
+ }, [properties.pattern]);
18
+ }
19
+ }
20
+ export function createPattern(properties) {
21
+ return new PatternElement(properties);
22
+ }
24
23
  //# sourceMappingURL=Pattern.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pattern.js","sourceRoot":"","sources":["../../../../src/controls/svg/Pattern/Pattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAqB5E,MAAM,OAAO,WAAY,SAAQ,IAAuB;IACpD,YAAY,UAA6B;QACrC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,SAAS;gBACnB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,YAAY,EAAE,UAAU,CAAC,YAAY;oBACrC,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;iBAChD;aACJ,EACD,UAAU,CACb;YACD,QAAQ,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;SACjC,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,WAAW,CAAC,UAA6B;IACrD,OAAO,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"Pattern.js","sourceRoot":"","sources":["../../../../src/controls/svg/Pattern/Pattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAe,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAqB9E,MAAM,OAAO,cAAe,SAAQ,OAA2B;IAC3D,YAAY,UAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,gBAAgB,CACxB,UAAU,EACV;gBACI,WAAW,EAAE,SAAS;gBACtB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,YAAY,EAAE,UAAU,CAAC,YAAY;oBACrC,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;iBAChD;aACJ,CACJ;SACJ,EACD,CAAC,UAAU,CAAC,OAAO,CAAC,CACvB,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,aAAa,CAAC,UAA8B;IACxD,OAAO,IAAI,cAAc,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC"}
@@ -1,11 +1,11 @@
1
- import { View } from "../../../framework/View";
2
- import { Properties } from "../../../framework/ViewModel";
3
- import { Subscribable } from "knockout";
4
- import { SvgPoint } from "../svg";
5
- export interface PolygonProperties extends Properties {
6
- points: Array<SvgPoint> | Subscribable<Array<SvgPoint>>;
7
- }
8
- export declare class PolygonView extends View<PolygonProperties> {
9
- constructor(properties: PolygonProperties);
10
- }
11
- export declare function polygonView(properties: PolygonProperties): PolygonView;
1
+ import { Element } from "../../../framework/element";
2
+ import { IProperties } from "../../../framework/properties";
3
+ import { ISubscribable } from "../../../framework/observable";
4
+ import { ISvgPoint as SvgPoint } from "../svg";
5
+ export interface IPolygonProperties extends IProperties {
6
+ points: Array<SvgPoint> | ISubscribable<Array<SvgPoint>>;
7
+ }
8
+ export declare class PolygonElement extends Element<IPolygonProperties> {
9
+ constructor(properties: IPolygonProperties);
10
+ }
11
+ export declare function createPolygon(properties: IPolygonProperties): PolygonElement;
@@ -1,21 +1,21 @@
1
- import { View } from "../../../framework/View";
2
- import { extendProperties } from "../../../framework/ViewModel";
3
- import { unwrap } from "knockout";
4
- import { serializePoints as getPoints } from "../svg";
5
- export class PolygonView extends View {
6
- constructor(properties) {
7
- super({
8
- tagName: "polygon",
9
- properties: extendProperties({
10
- viewType: "Polygon",
11
- attributes: {
12
- points: getPoints(unwrap(properties.points))
13
- }
14
- }, properties)
15
- });
16
- }
17
- }
18
- export function polygonView(properties) {
19
- return new PolygonView(properties);
20
- }
1
+ import { Element } from "../../../framework/element";
2
+ import { extendProperties } from "../../../framework/properties";
3
+ import { unwrap } from "../../../framework/observable";
4
+ import { serializePoints as getPoints } from "../svg";
5
+ export class PolygonElement extends Element {
6
+ constructor(properties) {
7
+ super({
8
+ tagName: "polygon",
9
+ properties: extendProperties(properties, {
10
+ elementType: "Polygon",
11
+ attributes: {
12
+ points: getPoints(unwrap(properties.points))
13
+ }
14
+ })
15
+ });
16
+ }
17
+ }
18
+ export function createPolygon(properties) {
19
+ return new PolygonElement(properties);
20
+ }
21
21
  //# sourceMappingURL=Polygon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Polygon.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polygon/Polygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAY,eAAe,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAMhE,MAAM,OAAO,WAAY,SAAQ,IAAuB;IACpD,YAAY,UAA6B;QACrC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,SAAS;gBACnB,UAAU,EAAE;oBACR,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;iBAC/C;aACJ,EACD,UAAU,CACb;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,WAAW,CAAC,UAA6B;IACrD,OAAO,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"Polygon.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polygon/Polygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAe,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAiB,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAyB,eAAe,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAM7E,MAAM,OAAO,cAAe,SAAQ,OAA2B;IAC3D,YAAY,UAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,gBAAgB,CACxB,UAAU,EACV;gBACI,WAAW,EAAE,SAAS;gBACtB,UAAU,EAAE;oBACR,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;iBAC/C;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,aAAa,CAAC,UAA8B;IACxD,OAAO,IAAI,cAAc,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC"}
@@ -1,11 +1,11 @@
1
- import { View } from "../../../framework/View";
2
- import { Properties } from "../../../framework/ViewModel";
3
- import { Subscribable } from "knockout";
4
- import { SvgPoint } from "../svg";
5
- export interface PolylineProperties extends Properties {
6
- points: Array<SvgPoint> | Subscribable<Array<SvgPoint>>;
7
- }
8
- export declare class PolylineView extends View<PolylineProperties> {
9
- constructor(properties: PolylineProperties);
10
- }
11
- export declare function polylineView(properties: PolylineProperties): PolylineView;
1
+ import { Element } from "../../../framework/element";
2
+ import { IProperties } from "../../../framework/properties";
3
+ import { ISubscribable } from "../../../framework/observable";
4
+ import { ISvgPoint as SvgPoint } from "../svg";
5
+ export interface IPolylineProperties extends IProperties {
6
+ points: Array<SvgPoint> | ISubscribable<Array<SvgPoint>>;
7
+ }
8
+ export declare class PolylineElement extends Element<IPolylineProperties> {
9
+ constructor(properties: IPolylineProperties);
10
+ }
11
+ export declare function createPolyline(properties: IPolylineProperties): PolylineElement;