jpf 4.2.3 → 4.2.5

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 (98) hide show
  1. package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.d.ts +7 -7
  2. package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.js +17 -17
  3. package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.js.map +1 -1
  4. package/dist/controls/codeMirror/JsonEditor/JsonEditor.d.ts +7 -7
  5. package/dist/controls/codeMirror/JsonEditor/JsonEditor.js +17 -17
  6. package/dist/controls/codeMirror/JsonEditor/JsonEditor.js.map +1 -1
  7. package/dist/controls/custom/FileSelector/FileSelector.d.ts +14 -14
  8. package/dist/controls/custom/FileSelector/FileSelector.js +26 -26
  9. package/dist/controls/custom/FileSelector/FileSelector.js.map +1 -1
  10. package/dist/controls/custom/LabeledControl/LabeledControl.d.ts +9 -9
  11. package/dist/controls/custom/LabeledControl/LabeledControl.js +11 -11
  12. package/dist/controls/custom/LabeledControl/LabeledControl.js.map +1 -1
  13. package/dist/controls/custom/ListItem/ListItem.d.ts +10 -10
  14. package/dist/controls/custom/ListItem/ListItem.js +20 -20
  15. package/dist/controls/custom/ListItem/ListItem.js.map +1 -1
  16. package/dist/controls/html/Button/Button.d.ts +7 -7
  17. package/dist/controls/html/Button/Button.js +12 -12
  18. package/dist/controls/html/Button/Button.js.map +1 -1
  19. package/dist/controls/html/Div/Div.d.ts +6 -8
  20. package/dist/controls/html/Div/Div.js +7 -7
  21. package/dist/controls/html/Div/Div.js.map +1 -1
  22. package/dist/controls/html/Image/Image.d.ts +6 -6
  23. package/dist/controls/html/Image/Image.js +8 -8
  24. package/dist/controls/html/Image/Image.js.map +1 -1
  25. package/dist/controls/html/Input/Input.d.ts +13 -13
  26. package/dist/controls/html/Input/Input.js +37 -37
  27. package/dist/controls/html/Input/Input.js.map +1 -1
  28. package/dist/controls/html/Select/Select.d.ts +8 -8
  29. package/dist/controls/html/Select/Select.js +30 -30
  30. package/dist/controls/html/Select/Select.js.map +1 -1
  31. package/dist/controls/html/Span/Span.d.ts +6 -6
  32. package/dist/controls/html/Span/Span.js +6 -6
  33. package/dist/controls/html/Span/Span.js.map +1 -1
  34. package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.d.ts +7 -7
  35. package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.js +24 -24
  36. package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.js.map +1 -1
  37. package/dist/controls/kendo/Chart/Chart.d.ts +5 -5
  38. package/dist/controls/kendo/Chart/Chart.js +13 -13
  39. package/dist/controls/kendo/Chart/Chart.js.map +1 -1
  40. package/dist/controls/kendo/Dialog/Dialog.js.map +1 -1
  41. package/dist/controls/kendo/Editor/Editor.d.ts +7 -7
  42. package/dist/controls/kendo/Editor/Editor.js +19 -19
  43. package/dist/controls/kendo/Editor/Editor.js.map +1 -1
  44. package/dist/controls/kendo/Grid/Grid.d.ts +5 -5
  45. package/dist/controls/kendo/Grid/Grid.js +31 -31
  46. package/dist/controls/kendo/Grid/Grid.js.map +1 -1
  47. package/dist/controls/kendo/Menu/Menu.d.ts +5 -5
  48. package/dist/controls/kendo/Menu/Menu.js +10 -10
  49. package/dist/controls/kendo/Menu/Menu.js.map +1 -1
  50. package/dist/controls/kendo/Tree/Tree.d.ts +5 -5
  51. package/dist/controls/kendo/Tree/Tree.js +12 -12
  52. package/dist/controls/kendo/Tree/Tree.js.map +1 -1
  53. package/dist/controls/leaflet/Map/Map.d.ts +7 -7
  54. package/dist/controls/leaflet/Map/Map.js +28 -28
  55. package/dist/controls/leaflet/Map/Map.js.map +1 -1
  56. package/dist/controls/svg/Circle/Circle.d.ts +5 -5
  57. package/dist/controls/svg/Circle/Circle.js +9 -9
  58. package/dist/controls/svg/Circle/Circle.js.map +1 -1
  59. package/dist/controls/svg/Ellipse/Ellipse.d.ts +5 -5
  60. package/dist/controls/svg/Ellipse/Ellipse.js +10 -10
  61. package/dist/controls/svg/Ellipse/Ellipse.js.map +1 -1
  62. package/dist/controls/svg/ForeignObject/ForeignObject.d.ts +5 -5
  63. package/dist/controls/svg/ForeignObject/ForeignObject.js +11 -11
  64. package/dist/controls/svg/ForeignObject/ForeignObject.js.map +1 -1
  65. package/dist/controls/svg/Group/Group.d.ts +5 -5
  66. package/dist/controls/svg/Group/Group.js +11 -11
  67. package/dist/controls/svg/Group/Group.js.map +1 -1
  68. package/dist/controls/svg/Line/Line.d.ts +5 -5
  69. package/dist/controls/svg/Line/Line.js +10 -10
  70. package/dist/controls/svg/Line/Line.js.map +1 -1
  71. package/dist/controls/svg/Pattern/Pattern.d.ts +5 -5
  72. package/dist/controls/svg/Pattern/Pattern.js +12 -12
  73. package/dist/controls/svg/Pattern/Pattern.js.map +1 -1
  74. package/dist/controls/svg/Polygon/Polygon.d.ts +5 -5
  75. package/dist/controls/svg/Polygon/Polygon.js +7 -7
  76. package/dist/controls/svg/Polygon/Polygon.js.map +1 -1
  77. package/dist/controls/svg/Polyline/Polyline.d.ts +5 -5
  78. package/dist/controls/svg/Polyline/Polyline.js +7 -7
  79. package/dist/controls/svg/Polyline/Polyline.js.map +1 -1
  80. package/dist/controls/svg/Rectangle/Rectangle.d.ts +5 -5
  81. package/dist/controls/svg/Rectangle/Rectangle.js +10 -10
  82. package/dist/controls/svg/Rectangle/Rectangle.js.map +1 -1
  83. package/dist/controls/svg/Svg/Svg.d.ts +5 -5
  84. package/dist/controls/svg/Svg/Svg.js +13 -13
  85. package/dist/controls/svg/Svg/Svg.js.map +1 -1
  86. package/dist/controls/svg/Text/Text.d.ts +5 -5
  87. package/dist/controls/svg/Text/Text.js +11 -11
  88. package/dist/controls/svg/Text/Text.js.map +1 -1
  89. package/dist/controls/svg/Title/Title.d.ts +5 -5
  90. package/dist/controls/svg/Title/Title.js +7 -7
  91. package/dist/controls/svg/Title/Title.js.map +1 -1
  92. package/dist/framework/View.d.ts +11 -8
  93. package/dist/framework/View.js +18 -9
  94. package/dist/framework/View.js.map +1 -1
  95. package/dist/framework/ViewModel.d.ts +10 -6
  96. package/dist/framework/ViewModel.js +65 -36
  97. package/dist/framework/ViewModel.js.map +1 -1
  98. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
1
  import { View, IView } from "../../../framework/View";
2
- import { ViewModelOptions } from "../../../framework/ViewModel";
2
+ import { Properties } from "../../../framework/ViewModel";
3
3
  import { Computed, ObservableArray, Subscribable } from "knockout";
4
- export interface GroupViewModelOptions extends ViewModelOptions {
4
+ export interface GroupProperties extends Properties {
5
5
  x1?: number | string | Subscribable<number | string>;
6
6
  x2?: number | string | Subscribable<number | string>;
7
7
  y1?: number | string | Subscribable<number | string>;
8
8
  y2?: number | string | Subscribable<number | string>;
9
9
  children?: Array<IView> | ObservableArray<IView> | Computed<Array<IView>>;
10
10
  }
11
- export declare class GroupView extends View<GroupViewModelOptions> {
12
- constructor(options: GroupViewModelOptions);
11
+ export declare class GroupView extends View<GroupProperties> {
12
+ constructor(properties: GroupProperties);
13
13
  }
14
- export declare function groupView(options: GroupViewModelOptions): GroupView;
14
+ export declare function groupView(properties: GroupProperties): GroupView;
@@ -1,23 +1,23 @@
1
1
  import { View } from "../../../framework/View";
2
- import { extendOptions } from "../../../framework/ViewModel";
2
+ import { extendProperties } from "../../../framework/ViewModel";
3
3
  export class GroupView extends View {
4
- constructor(options) {
4
+ constructor(properties) {
5
5
  super({
6
6
  tagName: "g",
7
- options: extendOptions({
7
+ properties: extendProperties({
8
8
  viewType: "Group",
9
9
  attributes: {
10
- x1: options.x1,
11
- x2: options.x2,
12
- y1: options.y1,
13
- y2: options.y2
10
+ x1: properties.x1,
11
+ x2: properties.x2,
12
+ y1: properties.y1,
13
+ y2: properties.y2
14
14
  }
15
- }, options),
16
- children: options.children
15
+ }, properties),
16
+ children: properties.children
17
17
  });
18
18
  }
19
19
  }
20
- export function groupView(options) {
21
- return new GroupView(options);
20
+ export function groupView(properties) {
21
+ return new GroupView(properties);
22
22
  }
23
23
  //# 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,EAAoB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAW/E,MAAM,OAAO,SAAU,SAAQ,IAA2B;IACtD,YAAY,OAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,aAAa,CAClB;gBACI,QAAQ,EAAE,OAAO;gBACjB,UAAU,EAAE;oBACR,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,EAAE,EAAE,OAAO,CAAC,EAAE;iBACjB;aACJ,EACD,OAAO,CACV;YACD,QAAQ,EAAE,OAAO,CAAC,QAAQ;SAC7B,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,SAAS,CAAC,OAA8B;IACpD,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC"}
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,13 +1,13 @@
1
1
  import { View } from "../../../framework/View";
2
- import { ViewModelOptions } from "../../../framework/ViewModel";
2
+ import { Properties } from "../../../framework/ViewModel";
3
3
  import { Subscribable } from "knockout";
4
- export interface LineViewModelOptions extends ViewModelOptions {
4
+ export interface LineProperties extends Properties {
5
5
  x1: number | string | Subscribable<number | string>;
6
6
  x2: number | string | Subscribable<number | string>;
7
7
  y1: number | string | Subscribable<number | string>;
8
8
  y2: number | string | Subscribable<number | string>;
9
9
  }
10
- export declare class LineView extends View<LineViewModelOptions> {
11
- constructor(options: LineViewModelOptions);
10
+ export declare class LineView extends View<LineProperties> {
11
+ constructor(properties: LineProperties);
12
12
  }
13
- export declare function lineView(options: LineViewModelOptions): LineView;
13
+ export declare function lineView(properties: LineProperties): LineView;
@@ -1,22 +1,22 @@
1
1
  import { View } from "../../../framework/View";
2
- import { extendOptions } from "../../../framework/ViewModel";
2
+ import { extendProperties } from "../../../framework/ViewModel";
3
3
  export class LineView extends View {
4
- constructor(options) {
4
+ constructor(properties) {
5
5
  super({
6
6
  tagName: "line",
7
- options: extendOptions({
7
+ properties: extendProperties({
8
8
  viewType: "Line",
9
9
  attributes: {
10
- x1: options.x1,
11
- x2: options.x2,
12
- y1: options.y1,
13
- y2: options.y2
10
+ x1: properties.x1,
11
+ x2: properties.x2,
12
+ y1: properties.y1,
13
+ y2: properties.y2
14
14
  }
15
- }, options)
15
+ }, properties)
16
16
  });
17
17
  }
18
18
  }
19
- export function lineView(options) {
20
- return new LineView(options);
19
+ export function lineView(properties) {
20
+ return new LineView(properties);
21
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,EAAoB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAU/E,MAAM,OAAO,QAAS,SAAQ,IAA0B;IACpD,YAAY,OAA6B;QACrC,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,aAAa,CAClB;gBACI,QAAQ,EAAE,MAAM;gBAChB,UAAU,EAAE;oBACR,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,EAAE,EAAE,OAAO,CAAC,EAAE;iBACjB;aACJ,EACD,OAAO,CACV;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,QAAQ,CAAC,OAA6B;IAClD,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC"}
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,5 +1,5 @@
1
1
  import { View } from "../../../framework/View";
2
- import { ViewModelOptions } from "../../../framework/ViewModel";
2
+ import { Properties } from "../../../framework/ViewModel";
3
3
  import { Subscribable } from "knockout";
4
4
  import { PatternUnits } from "../../../framework/types";
5
5
  import { CircleView } from "../Circle/Circle";
@@ -8,7 +8,7 @@ import { LineView } from "../Line/Line";
8
8
  import { PolygonView } from "../Polygon/Polygon";
9
9
  import { PolylineView } from "../Polyline/Polyline";
10
10
  import { TextView } from "../Text/Text";
11
- export interface PatternViewModelOptions extends ViewModelOptions {
11
+ export interface PatternProperties extends Properties {
12
12
  id: string;
13
13
  width: number | string | Subscribable<number | string>;
14
14
  height: number | string | Subscribable<number | string>;
@@ -16,7 +16,7 @@ export interface PatternViewModelOptions extends ViewModelOptions {
16
16
  patternTransform: string | Subscribable<string>;
17
17
  pattern: CircleView | EllipseView | LineView | PolygonView | PolylineView | TextView;
18
18
  }
19
- export declare class PatternView extends View<PatternViewModelOptions> {
20
- constructor(options: PatternViewModelOptions);
19
+ export declare class PatternView extends View<PatternProperties> {
20
+ constructor(properties: PatternProperties);
21
21
  }
22
- export declare function patternView(options: PatternViewModelOptions): PatternView;
22
+ export declare function patternView(properties: PatternProperties): PatternView;
@@ -1,24 +1,24 @@
1
1
  import { View } from "../../../framework/View";
2
- import { extendOptions } from "../../../framework/ViewModel";
2
+ import { extendProperties } from "../../../framework/ViewModel";
3
3
  export class PatternView extends View {
4
- constructor(options) {
4
+ constructor(properties) {
5
5
  super({
6
6
  tagName: "pattern",
7
- options: extendOptions({
7
+ properties: extendProperties({
8
8
  viewType: "Pattern",
9
9
  attributes: {
10
- id: options.id,
11
- width: options.width,
12
- height: options.height,
13
- patternUnits: options.patternUnits,
14
- patternTransform: options.patternTransform
10
+ id: properties.id,
11
+ width: properties.width,
12
+ height: properties.height,
13
+ patternUnits: properties.patternUnits,
14
+ patternTransform: properties.patternTransform
15
15
  }
16
- }, options),
17
- children: [options.pattern]
16
+ }, properties),
17
+ children: [properties.pattern]
18
18
  });
19
19
  }
20
20
  }
21
- export function patternView(options) {
22
- return new PatternView(options);
21
+ export function patternView(properties) {
22
+ return new PatternView(properties);
23
23
  }
24
24
  //# 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,EAAoB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAqB/E,MAAM,OAAO,WAAY,SAAQ,IAA6B;IAC1D,YAAY,OAAgC;QACxC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,aAAa,CAClB;gBACI,QAAQ,EAAE,SAAS;gBACnB,UAAU,EAAE;oBACR,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,YAAY,EAAE,OAAO,CAAC,YAAY;oBAClC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;iBAC7C;aACJ,EACD,OAAO,CACV;YACD,QAAQ,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;SAC9B,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,WAAW,CAAC,OAAgC;IACxD,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC"}
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,11 +1,11 @@
1
1
  import { View } from "../../../framework/View";
2
- import { ViewModelOptions } from "../../../framework/ViewModel";
2
+ import { Properties } from "../../../framework/ViewModel";
3
3
  import { Subscribable } from "knockout";
4
4
  import { SvgPoint } from "../svg";
5
- export interface PolygonViewModelOptions extends ViewModelOptions {
5
+ export interface PolygonProperties extends Properties {
6
6
  points: Array<SvgPoint> | Subscribable<Array<SvgPoint>>;
7
7
  }
8
- export declare class PolygonView extends View<PolygonViewModelOptions> {
9
- constructor(options: PolygonViewModelOptions);
8
+ export declare class PolygonView extends View<PolygonProperties> {
9
+ constructor(properties: PolygonProperties);
10
10
  }
11
- export declare function polygonView(options: PolygonViewModelOptions): PolygonView;
11
+ export declare function polygonView(properties: PolygonProperties): PolygonView;
@@ -1,21 +1,21 @@
1
1
  import { View } from "../../../framework/View";
2
- import { extendOptions } from "../../../framework/ViewModel";
2
+ import { extendProperties } from "../../../framework/ViewModel";
3
3
  import { unwrap } from "knockout";
4
4
  import { serializePoints as getPoints } from "../svg";
5
5
  export class PolygonView extends View {
6
- constructor(options) {
6
+ constructor(properties) {
7
7
  super({
8
8
  tagName: "polygon",
9
- options: extendOptions({
9
+ properties: extendProperties({
10
10
  viewType: "Polygon",
11
11
  attributes: {
12
- points: getPoints(unwrap(options.points))
12
+ points: getPoints(unwrap(properties.points))
13
13
  }
14
- }, options)
14
+ }, properties)
15
15
  });
16
16
  }
17
17
  }
18
- export function polygonView(options) {
19
- return new PolygonView(options);
18
+ export function polygonView(properties) {
19
+ return new PolygonView(properties);
20
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,EAAoB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAY,eAAe,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAMhE,MAAM,OAAO,WAAY,SAAQ,IAA6B;IAC1D,YAAY,OAAgC;QACxC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,aAAa,CAClB;gBACI,QAAQ,EAAE,SAAS;gBACnB,UAAU,EAAE;oBACR,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;iBAC5C;aACJ,EACD,OAAO,CACV;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,WAAW,CAAC,OAAgC;IACxD,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC"}
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,11 +1,11 @@
1
1
  import { View } from "../../../framework/View";
2
- import { ViewModelOptions } from "../../../framework/ViewModel";
2
+ import { Properties } from "../../../framework/ViewModel";
3
3
  import { Subscribable } from "knockout";
4
4
  import { SvgPoint } from "../svg";
5
- export interface PolylineViewModelOptions extends ViewModelOptions {
5
+ export interface PolylineProperties extends Properties {
6
6
  points: Array<SvgPoint> | Subscribable<Array<SvgPoint>>;
7
7
  }
8
- export declare class PolylineView extends View<PolylineViewModelOptions> {
9
- constructor(options: PolylineViewModelOptions);
8
+ export declare class PolylineView extends View<PolylineProperties> {
9
+ constructor(properties: PolylineProperties);
10
10
  }
11
- export declare function polylineView(options: PolylineViewModelOptions): PolylineView;
11
+ export declare function polylineView(properties: PolylineProperties): PolylineView;
@@ -1,20 +1,20 @@
1
1
  import { View } from "../../../framework/View";
2
- import { extendOptions } from "../../../framework/ViewModel";
2
+ import { extendProperties } from "../../../framework/ViewModel";
3
3
  import { serializePoints } from "../svg";
4
4
  export class PolylineView extends View {
5
- constructor(options) {
5
+ constructor(properties) {
6
6
  super({
7
7
  tagName: "polyline",
8
- options: extendOptions({
8
+ properties: extendProperties({
9
9
  viewType: "Polyline",
10
10
  attributes: {
11
- points: serializePoints(options.points)
11
+ points: serializePoints(properties.points)
12
12
  }
13
- }, options)
13
+ }, properties)
14
14
  });
15
15
  }
16
16
  }
17
- export function polylineView(options) {
18
- return new PolylineView(options);
17
+ export function polylineView(properties) {
18
+ return new PolylineView(properties);
19
19
  }
20
20
  //# sourceMappingURL=Polyline.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Polyline.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polyline/Polyline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAoB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAY,eAAe,EAAE,MAAM,QAAQ,CAAC;AAMnD,MAAM,OAAO,YAAa,SAAQ,IAA8B;IAC5D,YAAY,OAAiC;QACzC,KAAK,CACD;YACI,OAAO,EAAE,UAAU;YACnB,OAAO,EAAE,aAAa,CAClB;gBACI,QAAQ,EAAE,UAAU;gBACpB,UAAU,EAAE;oBACR,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC;iBAC1C;aACJ,EACD,OAAO,CACV;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,YAAY,CAAC,OAAiC;IAC1D,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"Polyline.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polyline/Polyline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAe,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAY,eAAe,EAAE,MAAM,QAAQ,CAAC;AAMnD,MAAM,OAAO,YAAa,SAAQ,IAAwB;IACtD,YAAY,UAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,UAAU;YACnB,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,UAAU;gBACpB,UAAU,EAAE;oBACR,MAAM,EAAE,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC;iBAC7C;aACJ,EACD,UAAU,CACb;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,YAAY,CAAC,UAA8B;IACvD,OAAO,IAAI,YAAY,CAAC,UAAU,CAAC,CAAC;AACxC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { View } from "../../../framework/View";
2
- import { ViewModelOptions } from "../../../framework/ViewModel";
2
+ import { Properties } from "../../../framework/ViewModel";
3
3
  import { Subscribable } from "knockout";
4
- export interface RectangleViewModelOptions extends ViewModelOptions {
4
+ export interface RectangleProperties extends Properties {
5
5
  x?: number | string | Subscribable<number | string>;
6
6
  y?: number | string | Subscribable<number | string>;
7
7
  width?: number | string | Subscribable<number | string>;
8
8
  height?: number | string | Subscribable<number | string>;
9
9
  }
10
- export declare class RectangleView extends View<RectangleViewModelOptions> {
11
- constructor(options: RectangleViewModelOptions);
10
+ export declare class RectangleView extends View<RectangleProperties> {
11
+ constructor(properties: RectangleProperties);
12
12
  }
13
- export declare function rectangleView(options: RectangleViewModelOptions): RectangleView;
13
+ export declare function rectangleView(properties: RectangleProperties): RectangleView;
@@ -1,22 +1,22 @@
1
1
  import { View } from "../../../framework/View";
2
- import { extendOptions } from "../../../framework/ViewModel";
2
+ import { extendProperties } from "../../../framework/ViewModel";
3
3
  export class RectangleView extends View {
4
- constructor(options) {
4
+ constructor(properties) {
5
5
  super({
6
6
  tagName: "rect",
7
- options: extendOptions({
7
+ properties: extendProperties({
8
8
  viewType: "Rectangle",
9
9
  attributes: {
10
- x: options.x,
11
- y: options.y,
12
- width: options.width,
13
- height: options.height
10
+ x: properties.x,
11
+ y: properties.y,
12
+ width: properties.width,
13
+ height: properties.height
14
14
  }
15
- }, options)
15
+ }, properties)
16
16
  });
17
17
  }
18
18
  }
19
- export function rectangleView(options) {
20
- return new RectangleView(options);
19
+ export function rectangleView(properties) {
20
+ return new RectangleView(properties);
21
21
  }
22
22
  //# sourceMappingURL=Rectangle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rectangle.js","sourceRoot":"","sources":["../../../../src/controls/svg/Rectangle/Rectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAoB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAU/E,MAAM,OAAO,aAAc,SAAQ,IAA+B;IAC9D,YAAY,OAAkC;QAC1C,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,aAAa,CAClB;gBACI,QAAQ,EAAE,WAAW;gBACrB,UAAU,EAAE;oBACR,CAAC,EAAE,OAAO,CAAC,CAAC;oBACZ,CAAC,EAAE,OAAO,CAAC,CAAC;oBACZ,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;iBACzB;aACJ,EACD,OAAO,CACV;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,aAAa,CAAC,OAAkC;IAC5D,OAAO,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC"}
1
+ {"version":3,"file":"Rectangle.js","sourceRoot":"","sources":["../../../../src/controls/svg/Rectangle/Rectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAc,gBAAgB,EAAG,MAAM,8BAA8B,CAAC;AAU7E,MAAM,OAAO,aAAc,SAAQ,IAAyB;IACxD,YAAY,UAA+B;QACvC,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,WAAW;gBACrB,UAAU,EAAE;oBACR,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC5B;aACJ,EACD,UAAU,CACb;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,aAAa,CAAC,UAA+B;IACzD,OAAO,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;AACzC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { View, IView } from "../../../framework/View";
2
- import { ViewModelOptions } from "../../../framework/ViewModel";
2
+ import { Properties } from "../../../framework/ViewModel";
3
3
  import { ObservableArray, Computed, Subscribable } from "knockout";
4
4
  import { PreserveAspectRatio } from "../../../framework/types";
5
- export interface SvgViewModelOptions extends ViewModelOptions {
5
+ export interface SvgProperties extends Properties {
6
6
  x?: number | string | Subscribable<number | string>;
7
7
  y?: number | string | Subscribable<number | string>;
8
8
  height?: number | string | Subscribable<number | string>;
@@ -11,7 +11,7 @@ export interface SvgViewModelOptions extends ViewModelOptions {
11
11
  preserveAspectRatio?: PreserveAspectRatio | Subscribable<PreserveAspectRatio>;
12
12
  children?: Array<IView> | ObservableArray<IView> | Computed<Array<IView>>;
13
13
  }
14
- export declare class SvgView extends View<SvgViewModelOptions> {
15
- constructor(options: SvgViewModelOptions);
14
+ export declare class SvgView extends View<SvgProperties> {
15
+ constructor(properties: SvgProperties);
16
16
  }
17
- export declare function svgView(options: SvgViewModelOptions): SvgView;
17
+ export declare function svgView(properties: SvgProperties): SvgView;
@@ -1,25 +1,25 @@
1
1
  import { View } from "../../../framework/View";
2
- import { extendOptions } from "../../../framework/ViewModel";
2
+ import { extendProperties } from "../../../framework/ViewModel";
3
3
  export class SvgView extends View {
4
- constructor(options) {
4
+ constructor(properties) {
5
5
  super({
6
6
  tagName: "svg",
7
- options: extendOptions({
7
+ properties: extendProperties({
8
8
  viewType: "Svg",
9
9
  attributes: {
10
- x: options.x,
11
- y: options.y,
12
- height: options.height,
13
- width: options.width,
14
- viewBox: options.viewBox,
15
- preserveAspectRatio: options.preserveAspectRatio
10
+ x: properties.x,
11
+ y: properties.y,
12
+ height: properties.height,
13
+ width: properties.width,
14
+ viewBox: properties.viewBox,
15
+ preserveAspectRatio: properties.preserveAspectRatio
16
16
  }
17
- }, options),
18
- children: options.children
17
+ }, properties),
18
+ children: properties.children
19
19
  });
20
20
  }
21
21
  }
22
- export function svgView(options) {
23
- return new SvgView(options);
22
+ export function svgView(properties) {
23
+ return new SvgView(properties);
24
24
  }
25
25
  //# sourceMappingURL=Svg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Svg.js","sourceRoot":"","sources":["../../../../src/controls/svg/Svg/Svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAoB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAc/E,MAAM,OAAO,OAAQ,SAAQ,IAAyB;IAClD,YAAY,OAA4B;QACpC,KAAK,CACD;YACI,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,aAAa,CAClB;gBACI,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE;oBACR,CAAC,EAAE,OAAO,CAAC,CAAC;oBACZ,CAAC,EAAE,OAAO,CAAC,CAAC;oBACZ,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,OAAO,EAAE,OAAO,CAAC,OAAO;oBACxB,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;iBACnD;aACJ,EACD,OAAO,CACV;YACD,QAAQ,EAAE,OAAO,CAAC,QAAQ;SAC7B,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,OAAO,CAAC,OAA4B;IAChD,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC"}
1
+ {"version":3,"file":"Svg.js","sourceRoot":"","sources":["../../../../src/controls/svg/Svg/Svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAc5E,MAAM,OAAO,OAAQ,SAAQ,IAAmB;IAC5C,YAAY,UAAyB;QACjC,KAAK,CACD;YACI,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE;oBACR,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,OAAO,EAAE,UAAU,CAAC,OAAO;oBAC3B,mBAAmB,EAAE,UAAU,CAAC,mBAAmB;iBACtD;aACJ,EACD,UAAU,CACb;YACD,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAChC,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,OAAO,CAAC,UAAyB;IAC7C,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;AACnC,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import { View } from "../../../framework/View";
2
- import { ViewModelOptions } from "../../../framework/ViewModel";
2
+ import { Properties } from "../../../framework/ViewModel";
3
3
  import { Subscribable } from "knockout";
4
- export interface TextViewModelOptions extends ViewModelOptions {
4
+ export interface TextProperties extends Properties {
5
5
  x?: number | string | Subscribable<number | string>;
6
6
  y?: number | string | Subscribable<number | string>;
7
7
  dx?: number | string | Subscribable<number | string>;
8
8
  dy?: number | string | Subscribable<number | string>;
9
9
  rotate?: string | Subscribable<string>;
10
10
  }
11
- export declare class TextView extends View<TextViewModelOptions> {
12
- constructor(options: TextViewModelOptions);
11
+ export declare class TextView extends View<TextProperties> {
12
+ constructor(properties: TextProperties);
13
13
  }
14
- export declare function textView(options: TextViewModelOptions): TextView;
14
+ export declare function textView(properties: TextProperties): TextView;
@@ -1,23 +1,23 @@
1
1
  import { View } from "../../../framework/View";
2
- import { extendOptions } from "../../../framework/ViewModel";
2
+ import { extendProperties } from "../../../framework/ViewModel";
3
3
  export class TextView extends View {
4
- constructor(options) {
4
+ constructor(properties) {
5
5
  super({
6
6
  tagName: "text",
7
- options: extendOptions({
7
+ properties: extendProperties({
8
8
  viewType: "Text",
9
9
  attributes: {
10
- x: options.x,
11
- y: options.y,
12
- dx: options.dx,
13
- dy: options.dy,
14
- rotate: options.rotate
10
+ x: properties.x,
11
+ y: properties.y,
12
+ dx: properties.dx,
13
+ dy: properties.dy,
14
+ rotate: properties.rotate
15
15
  }
16
- }, options)
16
+ }, properties)
17
17
  });
18
18
  }
19
19
  }
20
- export function textView(options) {
21
- return new TextView(options);
20
+ export function textView(properties) {
21
+ return new TextView(properties);
22
22
  }
23
23
  //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/controls/svg/Text/Text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAoB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAW/E,MAAM,OAAO,QAAS,SAAQ,IAA0B;IACpD,YAAY,OAA6B;QACrC,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,aAAa,CAClB;gBACI,QAAQ,EAAE,MAAM;gBAChB,UAAU,EAAE;oBACR,CAAC,EAAE,OAAO,CAAC,CAAC;oBACZ,CAAC,EAAE,OAAO,CAAC,CAAC;oBACZ,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,MAAM,EAAE,OAAO,CAAC,MAAM;iBACzB;aACJ,EACD,OAAO,CACV;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,QAAQ,CAAC,OAA6B;IAClD,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC"}
1
+ {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/controls/svg/Text/Text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAc,gBAAgB,EAAG,MAAM,8BAA8B,CAAC;AAW7E,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,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC5B;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,10 +1,10 @@
1
1
  import { View } from "../../../framework/View";
2
- import { ViewModelOptions } from "../../../framework/ViewModel";
2
+ import { Properties } from "../../../framework/ViewModel";
3
3
  import { Subscribable } from "knockout";
4
- export interface TitleViewModelOptions extends ViewModelOptions {
4
+ export interface TitleProperties extends Properties {
5
5
  title: string | Subscribable<string>;
6
6
  }
7
- export declare class TitleView extends View<TitleViewModelOptions> {
8
- constructor(options: TitleViewModelOptions);
7
+ export declare class TitleView extends View<TitleProperties> {
8
+ constructor(properties: TitleProperties);
9
9
  }
10
- export declare function titleView(options: TitleViewModelOptions): TitleView;
10
+ export declare function titleView(properties: TitleProperties): TitleView;
@@ -1,17 +1,17 @@
1
1
  import { View } from "../../../framework/View";
2
- import { extendOptions } from "../../../framework/ViewModel";
2
+ import { extendProperties } from "../../../framework/ViewModel";
3
3
  export class TitleView extends View {
4
- constructor(options) {
4
+ constructor(properties) {
5
5
  super({
6
6
  tagName: "title",
7
- options: extendOptions({
7
+ properties: extendProperties({
8
8
  viewType: "Title",
9
- textContent: options.title
10
- }, options)
9
+ textContent: properties.title
10
+ }, properties)
11
11
  });
12
12
  }
13
13
  }
14
- export function titleView(options) {
15
- return new TitleView(options);
14
+ export function titleView(properties) {
15
+ return new TitleView(properties);
16
16
  }
17
17
  //# sourceMappingURL=Title.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/controls/svg/Title/Title.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAoB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAO/E,MAAM,OAAO,SAAU,SAAQ,IAA2B;IACtD,YAAY,OAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,aAAa,CAClB;gBACI,QAAQ,EAAE,OAAO;gBACjB,WAAW,EAAE,OAAO,CAAC,KAAK;aAC7B,EACD,OAAO,CACV;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,SAAS,CAAC,OAA8B;IACpD,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC"}
1
+ {"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/controls/svg/Title/Title.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAO5E,MAAM,OAAO,SAAU,SAAQ,IAAqB;IAChD,YAAY,UAA2B;QACnC,KAAK,CACD;YACI,OAAO,EAAE,OAAO;YAChB,UAAU,EAAE,gBAAgB,CACxB;gBACI,QAAQ,EAAE,OAAO;gBACjB,WAAW,EAAE,UAAU,CAAC,KAAK;aAChC,EACD,UAAU,CACb;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,SAAS,CAAC,UAA2B;IACjD,OAAO,IAAI,SAAS,CAAC,UAAU,CAAC,CAAC;AACrC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import "tocca";
2
- import { Subscribable } from "knockout";
2
+ import { Subscribable, Subscription } from "knockout";
3
3
  import { ViewModel } from "./ViewModel";
4
4
  declare const htmlTags: {
5
5
  a: boolean;
@@ -30,26 +30,29 @@ declare const svgTags: {
30
30
  type TagName = keyof typeof htmlTags | keyof typeof svgTags;
31
31
  export interface IView {
32
32
  render(): HTMLElement;
33
+ dispose(): void;
33
34
  }
34
- export interface ViewOptions<TOptions> {
35
+ export interface ViewOptions<TProperties> {
35
36
  tagName: TagName;
36
- options?: TOptions;
37
+ properties?: TProperties;
37
38
  children?: Array<IView> | Subscribable<Array<IView>>;
38
39
  }
39
- export declare class View<TOptions = any> implements IView {
40
- constructor(options: ViewOptions<TOptions>);
40
+ export declare class View<TProperties = any> implements IView {
41
+ constructor(properties: ViewOptions<TProperties>);
41
42
  private readonly tagName;
42
43
  private readonly optionsChildren;
43
44
  private children;
44
45
  private buildChildren;
45
46
  protected element: HTMLElement;
46
- protected readonly options: TOptions;
47
+ protected readonly properties: TProperties;
48
+ protected readonly subscriptions: Subscription[];
47
49
  protected build(): void;
48
50
  protected remove(): void;
49
- protected addChild(child: IView): View<TOptions>;
50
- protected setChildren(...children: Array<IView>): View<TOptions>;
51
+ protected addChild(child: IView): View<TProperties>;
52
+ protected setChildren(...children: Array<IView>): View<TProperties>;
51
53
  protected empty(): void;
52
54
  render(): HTMLElement;
55
+ dispose(): void;
53
56
  focus(options?: FocusOptions): void;
54
57
  }
55
58
  export declare var viewDictionary: Map<any, any>;