jpf 4.1.49 → 4.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controls/svg/Circle/Circle.js +0 -2
- package/dist/controls/svg/Circle/Circle.js.map +1 -1
- package/dist/controls/svg/Ellipse/Ellipse.js +0 -2
- package/dist/controls/svg/Ellipse/Ellipse.js.map +1 -1
- package/dist/controls/svg/Group/Group.js +0 -2
- package/dist/controls/svg/Group/Group.js.map +1 -1
- package/dist/controls/svg/Line/Line.js +0 -2
- package/dist/controls/svg/Line/Line.js.map +1 -1
- package/dist/controls/svg/Pattern/Pattern.js +0 -2
- package/dist/controls/svg/Pattern/Pattern.js.map +1 -1
- package/dist/controls/svg/Polygon/Polygon.js +0 -2
- package/dist/controls/svg/Polygon/Polygon.js.map +1 -1
- package/dist/controls/svg/Polyline/Polyline.js +0 -2
- package/dist/controls/svg/Polyline/Polyline.js.map +1 -1
- package/dist/controls/svg/Rectangle/Rectangle.js +0 -2
- package/dist/controls/svg/Rectangle/Rectangle.js.map +1 -1
- package/dist/controls/svg/Svg/Svg.js +0 -2
- package/dist/controls/svg/Svg/Svg.js.map +1 -1
- package/dist/controls/svg/Text/Text.js +0 -2
- package/dist/controls/svg/Text/Text.js.map +1 -1
- package/dist/controls/svg/svg.d.ts +0 -1
- package/dist/controls/svg/svg.js +0 -1
- package/dist/controls/svg/svg.js.map +1 -1
- package/dist/framework/View.d.ts +25 -5
- package/dist/framework/View.js +27 -4
- package/dist/framework/View.js.map +1 -1
- package/dist/framework/event.d.ts +0 -1
- package/dist/framework/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { View } from "../../../framework/View";
|
|
2
2
|
import { extendViewModel } from "../../../framework/ViewModel";
|
|
3
|
-
import { svgNamespace } from "../svg";
|
|
4
3
|
export class CircleView extends View {
|
|
5
4
|
constructor(viewModel) {
|
|
6
5
|
super({
|
|
7
6
|
tagName: "circle",
|
|
8
|
-
namespace: svgNamespace,
|
|
9
7
|
viewModel: extendViewModel({
|
|
10
8
|
viewType: "Circle",
|
|
11
9
|
attributes: {
|
|
@@ -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,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
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,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AASjF,MAAM,OAAO,UAAW,SAAQ,IAA4B;IACxD,YAAY,SAAiC;QACzC,KAAK,CACD;YACI,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,QAAQ;gBAClB,UAAU,EAAE;oBACR,EAAE,EAAE,SAAS,CAAC,EAAE;oBAChB,EAAE,EAAG,SAAS,CAAC,EAAE;oBACjB,CAAC,EAAG,SAAS,CAAC,CAAC;iBAClB;aACJ,EACD,SAAS,CACZ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { View } from "../../../framework/View";
|
|
2
2
|
import { extendViewModel } from "../../../framework/ViewModel";
|
|
3
|
-
import { svgNamespace } from "../svg";
|
|
4
3
|
export class EllipseView extends View {
|
|
5
4
|
constructor(viewModel) {
|
|
6
5
|
super({
|
|
7
6
|
tagName: "ellipse",
|
|
8
|
-
namespace: svgNamespace,
|
|
9
7
|
viewModel: extendViewModel({
|
|
10
8
|
viewType: "Ellipse",
|
|
11
9
|
attributes: {
|
|
@@ -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,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
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,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAUjF,MAAM,OAAO,WAAY,SAAQ,IAA6B;IAC1D,YAAY,SAAkC;QAC1C,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,SAAS;gBACnB,UAAU,EAAE;oBACR,EAAE,EAAG,SAAS,CAAC,EAAE;oBACjB,EAAE,EAAE,SAAS,CAAC,EAAE;oBAChB,EAAE,EAAE,SAAS,CAAC,EAAE;oBAChB,EAAE,EAAE,SAAS,CAAC,EAAE;iBACnB;aACJ,EACD,SAAS,CACZ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { View } from "../../../framework/View";
|
|
2
2
|
import { extendViewModel } from "../../../framework/ViewModel";
|
|
3
|
-
import { svgNamespace } from "../svg";
|
|
4
3
|
export class GroupView extends View {
|
|
5
4
|
constructor(viewModel) {
|
|
6
5
|
super({
|
|
7
6
|
tagName: "g",
|
|
8
|
-
namespace: svgNamespace,
|
|
9
7
|
viewModel: extendViewModel({
|
|
10
8
|
viewType: "Group"
|
|
11
9
|
}, viewModel)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../src/controls/svg/Group/Group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../src/controls/svg/Group/Group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMjF,MAAM,OAAO,SAAU,SAAQ,IAA2B;IACtD,YAAY,SAAgC;QACxC,KAAK,CACD;YACI,OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,OAAO;aACpB,EACD,SAAS,CACZ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { View } from "../../../framework/View";
|
|
2
2
|
import { extendViewModel } from "../../../framework/ViewModel";
|
|
3
|
-
import { svgNamespace } from "../svg";
|
|
4
3
|
export class LineView extends View {
|
|
5
4
|
constructor(viewModel) {
|
|
6
5
|
super({
|
|
7
6
|
tagName: "line",
|
|
8
|
-
namespace: svgNamespace,
|
|
9
7
|
viewModel: extendViewModel({
|
|
10
8
|
viewType: "Line",
|
|
11
9
|
attributes: {
|
|
@@ -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,eAAe,EAAE,MAAM,8BAA8B,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,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAUjF,MAAM,OAAO,QAAS,SAAQ,IAA0B;IACpD,YAAY,SAA+B;QACvC,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,MAAM;gBAChB,UAAU,EAAE;oBACR,EAAE,EAAE,SAAS,CAAC,EAAE;oBAChB,EAAE,EAAE,SAAS,CAAC,EAAE;oBAChB,EAAE,EAAE,SAAS,CAAC,EAAE;oBAChB,EAAE,EAAE,SAAS,CAAC,EAAE;iBACnB;aACJ,EACD,SAAS,CACZ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { View } from "../../../framework/View";
|
|
2
2
|
import { extendViewModel } from "../../../framework/ViewModel";
|
|
3
|
-
import { svgNamespace } from "../svg";
|
|
4
3
|
export class PatternView extends View {
|
|
5
4
|
constructor(viewModel) {
|
|
6
5
|
super({
|
|
7
6
|
tagName: "pattern",
|
|
8
|
-
namespace: svgNamespace,
|
|
9
7
|
viewModel: extendViewModel({
|
|
10
8
|
viewType: "Pattern",
|
|
11
9
|
attributes: {
|
|
@@ -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,eAAe,EAAE,MAAM,8BAA8B,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,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAqBjF,MAAM,OAAO,WAAY,SAAQ,IAA6B;IAC1D,YAAY,SAAkC;QAC1C,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,SAAS;gBACnB,UAAU,EAAE;oBACR,EAAE,EAAE,SAAS,CAAC,EAAE;oBAChB,KAAK,EAAE,SAAS,CAAC,KAAK;oBACtB,MAAM,EAAE,SAAS,CAAC,MAAM;oBACxB,YAAY,EAAG,SAAS,CAAC,YAAY;oBACrC,gBAAgB,EAAE,SAAS,CAAC,gBAAgB;iBAC/C;aACJ,EACD,SAAS,CACZ;YACD,QAAQ,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;SAChC,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { View } from "../../../framework/View";
|
|
2
2
|
import { extendViewModel } from "../../../framework/ViewModel";
|
|
3
|
-
import { svgNamespace } from "../svg";
|
|
4
3
|
import { unwrap } from "knockout";
|
|
5
4
|
import { serializePoints as getPoints } from "../svg";
|
|
6
5
|
export class PolygonView extends View {
|
|
7
6
|
constructor(viewModel) {
|
|
8
7
|
super({
|
|
9
8
|
tagName: "polygon",
|
|
10
|
-
namespace: svgNamespace,
|
|
11
9
|
viewModel: extendViewModel({
|
|
12
10
|
viewType: "Polygon",
|
|
13
11
|
attributes: {
|
|
@@ -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,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,
|
|
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,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACjF,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,SAAkC;QAC1C,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,SAAS;gBACnB,UAAU,EAAE;oBACR,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;iBAC9C;aACJ,EACD,SAAS,CACZ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { View } from "../../../framework/View";
|
|
2
2
|
import { extendViewModel } from "../../../framework/ViewModel";
|
|
3
|
-
import { svgNamespace } from "../svg";
|
|
4
3
|
import { serializePoints } from "../svg";
|
|
5
4
|
export class PolylineView extends View {
|
|
6
5
|
constructor(viewModel) {
|
|
7
6
|
super({
|
|
8
7
|
tagName: "polyline",
|
|
9
|
-
namespace: svgNamespace,
|
|
10
8
|
viewModel: extendViewModel({
|
|
11
9
|
viewType: "Polyline",
|
|
12
10
|
attributes: {
|
|
@@ -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,eAAe,EAAE,MAAM,8BAA8B,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,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,EAAY,eAAe,EAAE,MAAM,QAAQ,CAAC;AAMnD,MAAM,OAAO,YAAa,SAAQ,IAA8B;IAC5D,YAAY,SAAmC;QAC3C,KAAK,CACD;YACI,OAAO,EAAE,UAAU;YACnB,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,UAAU;gBACpB,UAAU,EAAE;oBACR,MAAM,EAAE,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC;iBAC5C;aACJ,EACD,SAAS,CACZ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { View } from "../../../framework/View";
|
|
2
2
|
import { extendViewModel } from "../../../framework/ViewModel";
|
|
3
|
-
import { svgNamespace } from "../svg";
|
|
4
3
|
export class RectangleView extends View {
|
|
5
4
|
constructor(viewModel) {
|
|
6
5
|
super({
|
|
7
6
|
tagName: "rect",
|
|
8
|
-
namespace: svgNamespace,
|
|
9
7
|
viewModel: extendViewModel({
|
|
10
8
|
viewType: "Rectangle"
|
|
11
9
|
}, viewModel)
|
|
@@ -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,eAAe,EAAE,MAAM,8BAA8B,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,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMjF,MAAM,OAAO,aAAc,SAAQ,IAA+B;IAC9D,YAAY,SAAoC;QAC5C,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,WAAW;aACxB,EACD,SAAS,CACZ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { View } from "../../../framework/View";
|
|
2
2
|
import { extendViewModel } from "../../../framework/ViewModel";
|
|
3
|
-
import { svgNamespace } from "../svg";
|
|
4
3
|
export class SvgView extends View {
|
|
5
4
|
constructor(viewModel) {
|
|
6
5
|
super({
|
|
7
6
|
tagName: "svg",
|
|
8
|
-
namespace: svgNamespace,
|
|
9
7
|
viewModel: extendViewModel({
|
|
10
8
|
viewType: "Svg"
|
|
11
9
|
}, viewModel),
|
|
@@ -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,eAAe,EAAE,MAAM,8BAA8B,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,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAOjF,MAAM,OAAO,OAAQ,SAAQ,IAAyB;IAClD,YAAY,SAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,KAAK;aAClB,EACD,SAAS,CACZ;YACD,QAAQ,EAAE,SAAS,CAAC,QAAQ;SAC/B,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { View } from "../../../framework/View";
|
|
2
2
|
import { extendViewModel } from "../../../framework/ViewModel";
|
|
3
|
-
import { svgNamespace } from "../svg";
|
|
4
3
|
export class TextView extends View {
|
|
5
4
|
constructor(viewModel) {
|
|
6
5
|
super({
|
|
7
6
|
tagName: "text",
|
|
8
|
-
namespace: svgNamespace,
|
|
9
7
|
viewModel: extendViewModel({
|
|
10
8
|
viewType: "Text"
|
|
11
9
|
}, viewModel)
|
|
@@ -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,eAAe,EAAE,MAAM,8BAA8B,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,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMjF,MAAM,OAAO,QAAS,SAAQ,IAA0B;IACpD,YAAY,SAA+B;QACvC,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,MAAM;aACnB,EACD,SAAS,CACZ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
|
package/dist/controls/svg/svg.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg.js","sourceRoot":"","sources":["../../../src/controls/svg/svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"svg.js","sourceRoot":"","sources":["../../../src/controls/svg/svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAO1E,MAAM,UAAU,eAAe,CAAC,MAAuD;IACnF,IAAI,MAAM,EAAE;QACR,IAAI,cAAc,CAAC,MAAM,CAAC,EAAE;YACxB,OAAO,QAAQ,CACX,GAAG,EAAE;gBACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,GAAG,OAAO,KAAK,CAAC,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACvF,CAAC,CACJ,CAAC;SACL;QACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,GAAG,OAAO,KAAK,CAAC,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACtF;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
package/dist/framework/View.d.ts
CHANGED
|
@@ -1,22 +1,42 @@
|
|
|
1
1
|
import "tocca";
|
|
2
2
|
import { ObservableArray, Computed } from "knockout";
|
|
3
3
|
import { ViewModel } from "./ViewModel";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const htmlTags: {
|
|
5
|
+
a: boolean;
|
|
6
|
+
div: boolean;
|
|
7
|
+
img: boolean;
|
|
8
|
+
pre: boolean;
|
|
9
|
+
form: boolean;
|
|
10
|
+
span: boolean;
|
|
11
|
+
input: boolean;
|
|
12
|
+
button: boolean;
|
|
13
|
+
select: boolean;
|
|
14
|
+
textarea: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const svgTags: {
|
|
17
|
+
g: boolean;
|
|
18
|
+
svg: boolean;
|
|
19
|
+
rect: boolean;
|
|
20
|
+
text: boolean;
|
|
21
|
+
line: boolean;
|
|
22
|
+
circle: boolean;
|
|
23
|
+
pattern: boolean;
|
|
24
|
+
ellipse: boolean;
|
|
25
|
+
polygon: boolean;
|
|
26
|
+
polyline: boolean;
|
|
27
|
+
};
|
|
28
|
+
type TagName = keyof typeof htmlTags | keyof typeof svgTags;
|
|
7
29
|
export interface IView {
|
|
8
30
|
render(): HTMLElement;
|
|
9
31
|
}
|
|
10
32
|
export interface ViewOptions<TViewModel> {
|
|
11
33
|
tagName: TagName;
|
|
12
|
-
namespace?: string;
|
|
13
34
|
viewModel?: TViewModel;
|
|
14
35
|
children?: Array<IView> | ObservableArray<IView> | Computed<Array<IView>>;
|
|
15
36
|
}
|
|
16
37
|
export declare class View<TViewModel = any> implements IView {
|
|
17
38
|
constructor(options: ViewOptions<TViewModel>);
|
|
18
39
|
private readonly tagName;
|
|
19
|
-
private readonly namespace;
|
|
20
40
|
private readonly optionsChildren;
|
|
21
41
|
private children;
|
|
22
42
|
private buildChildren;
|
package/dist/framework/View.js
CHANGED
|
@@ -1,16 +1,39 @@
|
|
|
1
1
|
import "tocca";
|
|
2
2
|
import { unwrap, isSubscribable } from "knockout";
|
|
3
3
|
import { applyViewModelToElement } from "./ViewModel";
|
|
4
|
+
const htmlTags = {
|
|
5
|
+
a: true,
|
|
6
|
+
div: true,
|
|
7
|
+
img: true,
|
|
8
|
+
pre: true,
|
|
9
|
+
form: true,
|
|
10
|
+
span: true,
|
|
11
|
+
input: true,
|
|
12
|
+
button: true,
|
|
13
|
+
select: true,
|
|
14
|
+
textarea: true
|
|
15
|
+
};
|
|
16
|
+
const svgTags = {
|
|
17
|
+
g: true,
|
|
18
|
+
svg: true,
|
|
19
|
+
rect: true,
|
|
20
|
+
text: true,
|
|
21
|
+
line: true,
|
|
22
|
+
circle: true,
|
|
23
|
+
pattern: true,
|
|
24
|
+
ellipse: true,
|
|
25
|
+
polygon: true,
|
|
26
|
+
polyline: true
|
|
27
|
+
};
|
|
28
|
+
const svgNamespace = "http://www.w3.org/2000/svg";
|
|
4
29
|
export class View {
|
|
5
30
|
constructor(options) {
|
|
6
31
|
this.tagName = options.tagName;
|
|
7
|
-
this.namespace = options.namespace;
|
|
8
32
|
this.viewModel = options.viewModel;
|
|
9
33
|
this.optionsChildren = options.children;
|
|
10
34
|
this.children = unwrap(options.children);
|
|
11
35
|
}
|
|
12
36
|
tagName;
|
|
13
|
-
namespace;
|
|
14
37
|
optionsChildren;
|
|
15
38
|
children = new Array();
|
|
16
39
|
buildChildren() {
|
|
@@ -73,8 +96,8 @@ export class View {
|
|
|
73
96
|
this.remove();
|
|
74
97
|
}
|
|
75
98
|
if (typeof this.build === "function") {
|
|
76
|
-
if (this.
|
|
77
|
-
this.element = document.createElementNS(
|
|
99
|
+
if (svgTags.hasOwnProperty(this.tagName)) {
|
|
100
|
+
this.element = document.createElementNS(svgNamespace, this.tagName);
|
|
78
101
|
}
|
|
79
102
|
else {
|
|
80
103
|
this.element = document.createElement(this.tagName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"View.js","sourceRoot":"","sources":["../../src/framework/View.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AACf,OAAO,EAAE,MAAM,EAAE,cAAc,EAA6B,MAAM,UAAU,CAAC;AAC7E,OAAO,EAAa,uBAAuB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"View.js","sourceRoot":"","sources":["../../src/framework/View.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AACf,OAAO,EAAE,MAAM,EAAE,cAAc,EAA6B,MAAM,UAAU,CAAC;AAC7E,OAAO,EAAa,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEjE,MAAM,QAAQ,GAAG;IACb,CAAC,EAAE,IAAI;IACP,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;CACjB,CAAA;AAED,MAAM,OAAO,GAAG;IACZ,CAAC,EAAE,IAAI;IACP,GAAG,EAAE,IAAI;IACT,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;CACjB,CAAA;A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
21
|
swipedown: boolean;
|
|
22
22
|
};
|
|
23
|
-
export type MouseE = "click" | "contextmenu";
|
|
24
23
|
export declare function isGlobalEvent(event: keyof UiElementEventMap): boolean;
|
|
25
24
|
export interface UiElementEventMap extends HTMLElementEventMap {
|
|
26
25
|
"tap": Event;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type PatternUnits = "
|
|
1
|
+
export type PatternUnits = "userSpaceOnUse" | "objectboudingBox";
|
|
2
2
|
export type DropEffect = "none" | "copy" | "link" | "move";
|
|
3
3
|
export type EffectAllowed = "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
|
|
4
4
|
type CssPropertyA = "alignContent" | "alignItems" | "alignSelf" | "alignmentAdjust" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "appearance" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundComposite" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "behavior" | "border" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderCornerShape" | "borderImageSource" | "borderImageWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxAlign" | "boxDecorationBreak" | "boxDirection" | "boxLineProgression" | "boxLines" | "boxOrdinalGroup" | "boxFlex" | "boxSizing" | "boxShadow" | "boxFlexGroup" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "clear" | "clip" | "clipRule" | "color" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "content" | "counterIncrement" | "counterReset" | "cue" | "cueAfter" | "cursor" | "direction" | "display" | "dominantBaseline" | "emptyCells" | "fill" | "fillOpacity" | "fillRule" | "filter" | "flex" | "flexAlign" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexItemAlign" | "flexLinePack" | "flexPositive" | "flexNegative" | "flexOrder" | "flexShrink" | "flexWrap" | "float" | "flowFrom" | "font" | "fontFamily" | "fontKerning" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontVariant" | "fontVariantAlternates" | "fontWeight" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnGap" | "gridColumnEnd" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridRowPosition" | "gridRowSpan" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "hyphenateLimitChars" | "hyphenateLimitLines" | "hyphenateLimitZone" | "hyphens" | "imeMode" | "justifyContent" | "justifyItems" | "justifySelf";
|