@wcardinal/wcardinal-ui 0.340.0 → 0.342.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/wcardinal/ui/shape/e-shape-acceptors.d.ts +7 -4
- package/dist/types/wcardinal/ui/shape/e-shape-capability.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/e-shape-type.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/deserialize-embedded-acceptor-edge.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-embedded-acceptor-edge.d.ts +29 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-embedded-acceptor.d.ts +8 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-embedded.d.ts +7 -0
- package/dist/types/wcardinal/ui/shape/variant/index.d.ts +3 -1
- package/dist/wcardinal/ui/d-pagination.js +2 -2
- package/dist/wcardinal/ui/d-pagination.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-acceptors.js +48 -14
- package/dist/wcardinal/ui/shape/e-shape-acceptors.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-capability.js +2 -0
- package/dist/wcardinal/ui/shape/e-shape-capability.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-type.js +1 -0
- package/dist/wcardinal/ui/shape/e-shape-type.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-embedded.js +8 -0
- package/dist/wcardinal/ui/shape/load/load-shape-embedded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-embedded-acceptor-edge.js +37 -0
- package/dist/wcardinal/ui/shape/variant/deserialize-embedded-acceptor-edge.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-embedded-acceptor-edge.js +71 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-embedded-acceptor-edge.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-embedded-acceptor.js +37 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-embedded-acceptor.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-embedded.js +66 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-embedded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/index.js +3 -1
- package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +299 -62
- package/dist/wcardinal-ui.js +300 -63
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { EShapeAcceptorEdgeType } from "../e-shape-acceptor-edge-type";
|
|
6
|
+
import { deserializeBase } from "./deserialize-base";
|
|
7
|
+
import { EShapeEmbeddedAcceptorEdge } from "./e-shape-embedded-acceptor-edge";
|
|
8
|
+
import { EShapeAcceptorEdgeSide } from "../e-shape-acceptor-edge-side";
|
|
9
|
+
import { EShapeResourceManagerDeserializationMode } from "../e-shape-resource-manager-deserialization-mode";
|
|
10
|
+
var toSubtype = function (target) {
|
|
11
|
+
var result = EShapeAcceptorEdgeType.ALL & target;
|
|
12
|
+
if (result !== 0) {
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
return EShapeAcceptorEdgeType.HEAD;
|
|
16
|
+
};
|
|
17
|
+
var toSide = function (target) {
|
|
18
|
+
return (EShapeAcceptorEdgeSide.ALL & (target << 2));
|
|
19
|
+
};
|
|
20
|
+
var toVvisible = function (target) {
|
|
21
|
+
return 0 < (0x1 & (target << 6));
|
|
22
|
+
};
|
|
23
|
+
export var deserializeEmbeddedAcceptorEdge = function (item, manager, shape) {
|
|
24
|
+
shape !== null && shape !== void 0 ? shape : (shape = new EShapeEmbeddedAcceptorEdge());
|
|
25
|
+
var item15 = item[15];
|
|
26
|
+
shape.subtype = toSubtype(item15);
|
|
27
|
+
shape.side = toSide(item15);
|
|
28
|
+
shape.vvisible = toVvisible(item15);
|
|
29
|
+
var result = deserializeBase(item, manager, shape);
|
|
30
|
+
if (shape.vvisible === false) {
|
|
31
|
+
if (manager.mode === EShapeResourceManagerDeserializationMode.VIEWER) {
|
|
32
|
+
shape.visible = false;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=deserialize-embedded-acceptor-edge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deserialize-embedded-acceptor-edge.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-embedded-acceptor-edge.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,wCAAwC,EAAE,MAAM,kDAAkD,CAAC;AAE5G,IAAM,SAAS,GAAG,UAAC,MAAc;IAChC,IAAM,MAAM,GAAG,sBAAsB,CAAC,GAAG,GAAG,MAAM,CAAC;IACnD,IAAI,MAAM,KAAK,CAAC,EAAE;QACjB,OAAO,MAAgC,CAAC;KACxC;IACD,OAAO,sBAAsB,CAAC,IAAI,CAAC;AACpC,CAAC,CAAC;AAEF,IAAM,MAAM,GAAG,UAAC,MAAc;IAC7B,OAAO,CAAC,sBAAsB,CAAC,GAAG,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC,CAA2B,CAAC;AAC/E,CAAC,CAAC;AAEF,IAAM,UAAU,GAAG,UAAC,MAAc;IACjC,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC;AAClC,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,+BAA+B,GAAG,UAC9C,IAA4B,EAC5B,OAA6C,EAC7C,KAAkC;IAElC,KAAK,aAAL,KAAK,cAAL,KAAK,IAAL,KAAK,GAAK,IAAI,0BAA0B,EAAE,EAAC;IAC3C,IAAM,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;IACxB,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAClC,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5B,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACpC,IAAM,MAAM,GAAG,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IACrD,IAAI,KAAK,CAAC,QAAQ,KAAK,KAAK,EAAE;QAC7B,IAAI,OAAO,CAAC,IAAI,KAAK,wCAAwC,CAAC,MAAM,EAAE;YACrE,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;SACtB;KACD;IACD,OAAO,MAAM,CAAC;AACf,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShapeAcceptorEdgeType } from \"../e-shape-acceptor-edge-type\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { deserializeBase } from \"./deserialize-base\";\nimport { EShapeEmbeddedAcceptorEdge } from \"./e-shape-embedded-acceptor-edge\";\nimport { EShapeAcceptorEdgeSide } from \"../e-shape-acceptor-edge-side\";\nimport { EShapeResourceManagerDeserializationMode } from \"../e-shape-resource-manager-deserialization-mode\";\n\nconst toSubtype = (target: number): EShapeAcceptorEdgeType => {\n\tconst result = EShapeAcceptorEdgeType.ALL & target;\n\tif (result !== 0) {\n\t\treturn result as EShapeAcceptorEdgeType;\n\t}\n\treturn EShapeAcceptorEdgeType.HEAD;\n};\n\nconst toSide = (target: number): EShapeAcceptorEdgeSide => {\n\treturn (EShapeAcceptorEdgeSide.ALL & (target << 2)) as EShapeAcceptorEdgeSide;\n};\n\nconst toVvisible = (target: number): boolean => {\n\treturn 0 < (0x1 & (target << 6));\n};\n\nexport const deserializeEmbeddedAcceptorEdge = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization,\n\tshape?: EShapeEmbeddedAcceptorEdge\n): Promise<EShapeEmbeddedAcceptorEdge> | EShapeEmbeddedAcceptorEdge => {\n\tshape ??= new EShapeEmbeddedAcceptorEdge();\n\tconst item15 = item[15];\n\tshape.subtype = toSubtype(item15);\n\tshape.side = toSide(item15);\n\tshape.vvisible = toVvisible(item15);\n\tconst result = deserializeBase(item, manager, shape);\n\tif (shape.vvisible === false) {\n\t\tif (manager.mode === EShapeResourceManagerDeserializationMode.VIEWER) {\n\t\t\tshape.visible = false;\n\t\t}\n\t}\n\treturn result;\n};\n"]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { EShapeAcceptorEdgeSide } from "../e-shape-acceptor-edge-side";
|
|
3
|
+
import { EShapeAcceptorEdgeType } from "../e-shape-acceptor-edge-type";
|
|
4
|
+
import { EShapeCopyPart } from "../e-shape-copy-part";
|
|
5
|
+
import { EShapeType } from "../e-shape-type";
|
|
6
|
+
import { EShapeCircle } from "./e-shape-circle";
|
|
7
|
+
var EShapeEmbeddedAcceptorEdge = /** @class */ (function (_super) {
|
|
8
|
+
__extends(EShapeEmbeddedAcceptorEdge, _super);
|
|
9
|
+
function EShapeEmbeddedAcceptorEdge(type) {
|
|
10
|
+
if (type === void 0) { type = EShapeType.EMBEDDED_ACCEPTOR_EDGE; }
|
|
11
|
+
var _this = _super.call(this, type) || this;
|
|
12
|
+
_this._subtype = EShapeAcceptorEdgeType.HEAD;
|
|
13
|
+
_this._side = EShapeAcceptorEdgeSide.ALL;
|
|
14
|
+
_this._vvisible = true;
|
|
15
|
+
return _this;
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(EShapeEmbeddedAcceptorEdge.prototype, "subtype", {
|
|
18
|
+
get: function () {
|
|
19
|
+
return this._subtype;
|
|
20
|
+
},
|
|
21
|
+
set: function (subtype) {
|
|
22
|
+
this._subtype = subtype;
|
|
23
|
+
},
|
|
24
|
+
enumerable: false,
|
|
25
|
+
configurable: true
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(EShapeEmbeddedAcceptorEdge.prototype, "side", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this._side;
|
|
30
|
+
},
|
|
31
|
+
set: function (side) {
|
|
32
|
+
this._side = side;
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(EShapeEmbeddedAcceptorEdge.prototype, "vvisible", {
|
|
38
|
+
/**
|
|
39
|
+
* True if visible in the viewer mode.
|
|
40
|
+
*/
|
|
41
|
+
get: function () {
|
|
42
|
+
return this._vvisible;
|
|
43
|
+
},
|
|
44
|
+
set: function (vvisible) {
|
|
45
|
+
this._vvisible = vvisible;
|
|
46
|
+
},
|
|
47
|
+
enumerable: false,
|
|
48
|
+
configurable: true
|
|
49
|
+
});
|
|
50
|
+
EShapeEmbeddedAcceptorEdge.prototype.clone = function () {
|
|
51
|
+
return new EShapeEmbeddedAcceptorEdge(this.type).copy(this);
|
|
52
|
+
};
|
|
53
|
+
EShapeEmbeddedAcceptorEdge.prototype.copy = function (source, part) {
|
|
54
|
+
if (part === void 0) { part = EShapeCopyPart.ALL; }
|
|
55
|
+
_super.prototype.copy.call(this, source, part);
|
|
56
|
+
if (source instanceof EShapeEmbeddedAcceptorEdge) {
|
|
57
|
+
this._subtype = source.subtype;
|
|
58
|
+
this._side = source.side;
|
|
59
|
+
this._vvisible = source.vvisible;
|
|
60
|
+
}
|
|
61
|
+
return this;
|
|
62
|
+
};
|
|
63
|
+
EShapeEmbeddedAcceptorEdge.prototype.serialize = function (manager) {
|
|
64
|
+
var result = _super.prototype.serialize.call(this, manager);
|
|
65
|
+
result[15] = this._subtype + (this._side << 2) + (this._vvisible ? 1 << 6 : 0);
|
|
66
|
+
return result;
|
|
67
|
+
};
|
|
68
|
+
return EShapeEmbeddedAcceptorEdge;
|
|
69
|
+
}(EShapeCircle));
|
|
70
|
+
export { EShapeEmbeddedAcceptorEdge };
|
|
71
|
+
//# sourceMappingURL=e-shape-embedded-acceptor-edge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e-shape-embedded-acceptor-edge.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-embedded-acceptor-edge.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;IAAgD,8CAAY;IAS3D,oCAAY,IAAoD;QAApD,qBAAA,EAAA,OAAmB,UAAU,CAAC,sBAAsB;QAAhE,YACC,kBAAM,IAAI,CAAC,SAIX;QAHA,KAAI,CAAC,QAAQ,GAAG,sBAAsB,CAAC,IAAI,CAAC;QAC5C,KAAI,CAAC,KAAK,GAAG,sBAAsB,CAAC,GAAG,CAAC;QACxC,KAAI,CAAC,SAAS,GAAG,IAAI,CAAC;;IACvB,CAAC;IAED,sBAAI,+CAAO;aAAX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AI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/E,OAAO,MAAM,CAAC;IACf,CAAC;IACF,iCAAC;AAAD,CAAC,AA9DD,CAAgD,YAAY,GA8D3D","sourcesContent":["import { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeAcceptorEdgeSide } from \"../e-shape-acceptor-edge-side\";\nimport { EShapeAcceptorEdgeType } from \"../e-shape-acceptor-edge-type\";\nimport { EShapeCopyPart } from \"../e-shape-copy-part\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeCircle } from \"./e-shape-circle\";\n\nexport class EShapeEmbeddedAcceptorEdge extends EShapeCircle {\n\tprotected _subtype: EShapeAcceptorEdgeType;\n\tprotected _side: EShapeAcceptorEdgeSide;\n\n\t/**\n\t * Set to true if visible in the viewer mode.\n\t */\n\tprotected _vvisible: boolean;\n\n\tconstructor(type: EShapeType = EShapeType.EMBEDDED_ACCEPTOR_EDGE) {\n\t\tsuper(type);\n\t\tthis._subtype = EShapeAcceptorEdgeType.HEAD;\n\t\tthis._side = EShapeAcceptorEdgeSide.ALL;\n\t\tthis._vvisible = true;\n\t}\n\n\tget subtype(): EShapeAcceptorEdgeType {\n\t\treturn this._subtype;\n\t}\n\n\tset subtype(subtype: EShapeAcceptorEdgeType) {\n\t\tthis._subtype = subtype;\n\t}\n\n\tget side(): EShapeAcceptorEdgeSide {\n\t\treturn this._side;\n\t}\n\n\tset side(side: EShapeAcceptorEdgeSide) {\n\t\tthis._side = side;\n\t}\n\n\t/**\n\t * True if visible in the viewer mode.\n\t */\n\tget vvisible(): boolean {\n\t\treturn this._vvisible;\n\t}\n\n\tset vvisible(vvisible: boolean) {\n\t\tthis._vvisible = vvisible;\n\t}\n\n\toverride clone(): EShapeEmbeddedAcceptorEdge {\n\t\treturn new EShapeEmbeddedAcceptorEdge(this.type).copy(this);\n\t}\n\n\toverride copy(source: EShape, part: EShapeCopyPart = EShapeCopyPart.ALL): this {\n\t\tsuper.copy(source, part);\n\t\tif (source instanceof EShapeEmbeddedAcceptorEdge) {\n\t\t\tthis._subtype = source.subtype;\n\t\t\tthis._side = source.side;\n\t\t\tthis._vvisible = source.vvisible;\n\t\t}\n\t\treturn this;\n\t}\n\n\toverride serialize(manager: EShapeResourceManagerSerialization): DDiagramSerializedItem {\n\t\tconst result = super.serialize(manager);\n\t\tresult[15] = this._subtype + (this._side << 2) + (this._vvisible ? 1 << 6 : 0);\n\t\treturn result;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { EShapeAcceptorImpl } from "../e-shape-acceptor-impl";
|
|
3
|
+
import { EShapeEmbedded } from "./e-shape-embedded";
|
|
4
|
+
var EShapeEmbeddedAcceptor = /** @class */ (function (_super) {
|
|
5
|
+
__extends(EShapeEmbeddedAcceptor, _super);
|
|
6
|
+
function EShapeEmbeddedAcceptor() {
|
|
7
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
8
|
+
}
|
|
9
|
+
EShapeEmbeddedAcceptor.prototype.get = function (shape, id) {
|
|
10
|
+
var edges = this.getEdges(shape);
|
|
11
|
+
if (edges != null) {
|
|
12
|
+
var edge = edges.get(id);
|
|
13
|
+
if (edge != null) {
|
|
14
|
+
return edge;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return _super.prototype.get.call(this, shape, id);
|
|
18
|
+
};
|
|
19
|
+
EShapeEmbeddedAcceptor.prototype.each = function (shape, iteratee) {
|
|
20
|
+
var edges = this.getEdges(shape);
|
|
21
|
+
if (edges != null) {
|
|
22
|
+
edges.forEach(function (edge, id) {
|
|
23
|
+
iteratee(edge, id);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return _super.prototype.each.call(this, shape, iteratee);
|
|
27
|
+
};
|
|
28
|
+
EShapeEmbeddedAcceptor.prototype.getEdges = function (shape) {
|
|
29
|
+
if (shape instanceof EShapeEmbedded) {
|
|
30
|
+
return shape.edges;
|
|
31
|
+
}
|
|
32
|
+
return null;
|
|
33
|
+
};
|
|
34
|
+
return EShapeEmbeddedAcceptor;
|
|
35
|
+
}(EShapeAcceptorImpl));
|
|
36
|
+
export { EShapeEmbeddedAcceptor };
|
|
37
|
+
//# sourceMappingURL=e-shape-embedded-acceptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e-shape-embedded-acceptor.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-embedded-acceptor.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;IAA4C,0CAAkB;IAA9D;;IA4BA,CAAC;IA3BA,oCAAG,GAAH,UAAI,KAAa,EAAE,EAAU;QAC5B,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,KAAK,IAAI,IAAI,EAAE;YAClB,IAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAC3B,IAAI,IAAI,IAAI,IAAI,EAAE;gBACjB,OAAO,IAAI,CAAC;aACZ;SACD;QACD,OAAO,iBAAM,GAAG,YAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC7B,CAAC;IAED,qCAAI,GAAJ,UAAK,KAAa,EAAE,QAAwD;QAC3E,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,KAAK,IAAI,IAAI,EAAE;YAClB,KAAK,CAAC,OAAO,CAAC,UAAC,IAAI,EAAE,EAAE;gBACtB,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACpB,CAAC,CAAC,CAAC;SACH;QACD,OAAO,iBAAM,IAAI,YAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC;IAES,yCAAQ,GAAlB,UAAmB,KAAa;QAC/B,IAAI,KAAK,YAAY,cAAc,EAAE;YACpC,OAAO,KAAK,CAAC,KAAK,CAAC;SACnB;QACD,OAAO,IAAI,CAAC;IACb,CAAC;IACF,6BAAC;AAAD,CAAC,AA5BD,CAA4C,kBAAkB,GA4B7D","sourcesContent":["import { EShape } from \"../e-shape\";\nimport { EShapeAcceptorEdge } from \"../e-shape-acceptor-edge\";\nimport { EShapeAcceptorImpl } from \"../e-shape-acceptor-impl\";\nimport { EShapeEmbedded } from \"./e-shape-embedded\";\n\nexport class EShapeEmbeddedAcceptor extends EShapeAcceptorImpl {\n\tget(shape: EShape, id: string): EShapeAcceptorEdge | null {\n\t\tconst edges = this.getEdges(shape);\n\t\tif (edges != null) {\n\t\t\tconst edge = edges.get(id);\n\t\t\tif (edge != null) {\n\t\t\t\treturn edge;\n\t\t\t}\n\t\t}\n\t\treturn super.get(shape, id);\n\t}\n\n\teach(shape: EShape, iteratee: (edge: EShapeAcceptorEdge, id: string) => void): this {\n\t\tconst edges = this.getEdges(shape);\n\t\tif (edges != null) {\n\t\t\tedges.forEach((edge, id): void => {\n\t\t\t\titeratee(edge, id);\n\t\t\t});\n\t\t}\n\t\treturn super.each(shape, iteratee);\n\t}\n\n\tprotected getEdges(shape: EShape): Map<string, EShapeAcceptorEdge> | null {\n\t\tif (shape instanceof EShapeEmbedded) {\n\t\t\treturn shape.edges;\n\t\t}\n\t\treturn null;\n\t}\n}\n"]}
|
|
@@ -2,6 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { EShapeDefaults } from "../e-shape-defaults";
|
|
3
3
|
import { EShapeResourceManagerDeserializationMode } from "../e-shape-resource-manager-deserialization-mode";
|
|
4
4
|
import { EShapeType } from "../e-shape-type";
|
|
5
|
+
import { EShapeEmbeddedAcceptorEdge } from "./e-shape-embedded-acceptor-edge";
|
|
5
6
|
import { EShapeGroupSizeEditor } from "./e-shape-group-size-editor";
|
|
6
7
|
import { EShapeGroupSizeViewer } from "./e-shape-group-size-viewer";
|
|
7
8
|
import { EShapeGroupViewer } from "./e-shape-group-viewer";
|
|
@@ -21,6 +22,71 @@ var EShapeEmbedded = /** @class */ (function (_super) {
|
|
|
21
22
|
enumerable: false,
|
|
22
23
|
configurable: true
|
|
23
24
|
});
|
|
25
|
+
Object.defineProperty(EShapeEmbedded.prototype, "edges", {
|
|
26
|
+
get: function () {
|
|
27
|
+
var _a;
|
|
28
|
+
return ((_a = this._edges) !== null && _a !== void 0 ? _a : (this._edges = this.newEdges()));
|
|
29
|
+
},
|
|
30
|
+
enumerable: false,
|
|
31
|
+
configurable: true
|
|
32
|
+
});
|
|
33
|
+
EShapeEmbedded.prototype.newEdges = function () {
|
|
34
|
+
var result = new Map();
|
|
35
|
+
var layers = this.children;
|
|
36
|
+
if (layers != null) {
|
|
37
|
+
var s = this.size;
|
|
38
|
+
var sx = s.x;
|
|
39
|
+
var sy = s.y;
|
|
40
|
+
var sxh = sx * 0.5;
|
|
41
|
+
var syh = sy * 0.5;
|
|
42
|
+
for (var i = 0, imax = layers.length; i < imax; ++i) {
|
|
43
|
+
var layer = layers[i];
|
|
44
|
+
var lp = layer.transform.position;
|
|
45
|
+
var lpx = lp.x;
|
|
46
|
+
var lpy = lp.y;
|
|
47
|
+
var children = layer.children;
|
|
48
|
+
for (var j = 0, jmax = children.length; j < jmax; ++j) {
|
|
49
|
+
var child = children[j];
|
|
50
|
+
if (child instanceof EShapeEmbeddedAcceptorEdge) {
|
|
51
|
+
child.transform.updateLocalTransform();
|
|
52
|
+
var clt = child.transform.localTransform;
|
|
53
|
+
result.set(child.id, {
|
|
54
|
+
type: child.subtype,
|
|
55
|
+
x: this.toEedgePosition(lpx, clt.tx, sxh, sx),
|
|
56
|
+
y: this.toEedgePosition(lpy, clt.ty, syh, sy),
|
|
57
|
+
normal: this.toEedgeNormal(clt.c, clt.d),
|
|
58
|
+
size: {
|
|
59
|
+
x: 0,
|
|
60
|
+
y: 0
|
|
61
|
+
},
|
|
62
|
+
side: child.side
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return result;
|
|
69
|
+
};
|
|
70
|
+
EShapeEmbedded.prototype.toEedgePosition = function (lp, cp, sh, s) {
|
|
71
|
+
if (0.00001 < Math.abs(s)) {
|
|
72
|
+
return (lp + cp - sh) / s;
|
|
73
|
+
}
|
|
74
|
+
return 0;
|
|
75
|
+
};
|
|
76
|
+
EShapeEmbedded.prototype.toEedgeNormal = function (x, y) {
|
|
77
|
+
var d = x * x + y * y;
|
|
78
|
+
if (0.00001 < d) {
|
|
79
|
+
var f = 1 / d;
|
|
80
|
+
return {
|
|
81
|
+
x: x * f,
|
|
82
|
+
y: y * f
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
x: 0,
|
|
87
|
+
y: 1
|
|
88
|
+
};
|
|
89
|
+
};
|
|
24
90
|
EShapeEmbedded.prototype.isGroupSizeFittable = function () {
|
|
25
91
|
return false;
|
|
26
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-embedded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-embedded.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"e-shape-embedded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-embedded.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,wCAAwC,EAAE,MAAM,kDAAkD,CAAC;AAE5G,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;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AC3C,CAAC;IACF,qBAAC;AAAD,CAAC,AA/ID,CAAoC,iBAAiB,GA+IpD","sourcesContent":["import { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShapeAcceptorEdge } from \"../e-shape-acceptor-edge\";\nimport { EShapeAcceptorEdgeNormal } from \"../e-shape-acceptor-edge-normal\";\nimport { EShapeDefaults } from \"../e-shape-defaults\";\nimport { EShapeResourceManagerDeserializationMode } from \"../e-shape-resource-manager-deserialization-mode\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeEmbeddedAcceptorEdge } from \"./e-shape-embedded-acceptor-edge\";\nimport { EShapeGroupSize } from \"./e-shape-group-size\";\nimport { EShapeGroupSizeEditor } from \"./e-shape-group-size-editor\";\nimport { EShapeGroupSizeViewer } from \"./e-shape-group-size-viewer\";\nimport { EShapeGroupViewer } from \"./e-shape-group-viewer\";\n\nexport class EShapeEmbedded extends EShapeGroupViewer {\n\tprotected _name: string;\n\tprotected _edges?: Map<string, EShapeAcceptorEdge>;\n\n\tconstructor(\n\t\tname: string,\n\t\tmode: EShapeResourceManagerDeserializationMode,\n\t\tdepth: number,\n\t\ttype: EShapeType = EShapeType.EMBEDDED\n\t) {\n\t\tsuper(mode, depth, type);\n\t\tthis._name = name;\n\t\tthis._depth = depth;\n\t}\n\n\tget name(): string {\n\t\treturn this._name;\n\t}\n\n\tget edges(): Map<string, EShapeAcceptorEdge> {\n\t\treturn (this._edges ??= this.newEdges());\n\t}\n\n\tprotected newEdges(): Map<string, EShapeAcceptorEdge> {\n\t\tconst result = new Map<string, EShapeAcceptorEdge>();\n\t\tconst layers = this.children;\n\t\tif (layers != null) {\n\t\t\tconst s = this.size;\n\t\t\tconst sx = s.x;\n\t\t\tconst sy = s.y;\n\t\t\tconst sxh = sx * 0.5;\n\t\t\tconst syh = sy * 0.5;\n\t\t\tfor (let i = 0, imax = layers.length; i < imax; ++i) {\n\t\t\t\tconst layer = layers[i];\n\t\t\t\tconst lp = layer.transform.position;\n\t\t\t\tconst lpx = lp.x;\n\t\t\t\tconst lpy = lp.y;\n\t\t\t\tconst children = layer.children;\n\t\t\t\tfor (let j = 0, jmax = children.length; j < jmax; ++j) {\n\t\t\t\t\tconst child = children[j];\n\t\t\t\t\tif (child instanceof EShapeEmbeddedAcceptorEdge) {\n\t\t\t\t\t\tchild.transform.updateLocalTransform();\n\t\t\t\t\t\tconst clt = child.transform.localTransform;\n\t\t\t\t\t\tresult.set(child.id, {\n\t\t\t\t\t\t\ttype: child.subtype,\n\t\t\t\t\t\t\tx: this.toEedgePosition(lpx, clt.tx, sxh, sx),\n\t\t\t\t\t\t\ty: this.toEedgePosition(lpy, clt.ty, syh, sy),\n\t\t\t\t\t\t\tnormal: this.toEedgeNormal(clt.c, clt.d),\n\t\t\t\t\t\t\tsize: {\n\t\t\t\t\t\t\t\tx: 0,\n\t\t\t\t\t\t\t\ty: 0\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tside: child.side\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected toEedgePosition(lp: number, cp: number, sh: number, s: number): number {\n\t\tif (0.00001 < Math.abs(s)) {\n\t\t\treturn (lp + cp - sh) / s;\n\t\t}\n\t\treturn 0;\n\t}\n\n\tprotected toEedgeNormal(x: number, y: number): EShapeAcceptorEdgeNormal {\n\t\tconst d = x * x + y * y;\n\t\tif (0.00001 < d) {\n\t\t\tconst f = 1 / d;\n\t\t\treturn {\n\t\t\t\tx: x * f,\n\t\t\t\ty: y * f\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tx: 0,\n\t\t\ty: 1\n\t\t};\n\t}\n\n\tprotected isGroupSizeFittable(): boolean {\n\t\treturn false;\n\t}\n\n\tprotected newGroupSize(\n\t\tmode: EShapeResourceManagerDeserializationMode,\n\t\tdepth: number\n\t): EShapeGroupSize {\n\t\tconst sizeX = EShapeDefaults.SIZE_X;\n\t\tconst sizeY = EShapeDefaults.SIZE_Y;\n\t\tif (mode !== EShapeResourceManagerDeserializationMode.VIEWER && depth <= 0) {\n\t\t\treturn new EShapeGroupSizeEditor(this, sizeX, sizeY, this.isGroupSizeFittable());\n\t\t} else {\n\t\t\treturn new EShapeGroupSizeViewer(this, sizeX, sizeY, sizeX, sizeY);\n\t\t}\n\t}\n\n\tclone(): EShapeEmbedded {\n\t\tconst result = this.newClone().copy(this);\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tconst clone = children[i].clone();\n\t\t\tclone.parent = result;\n\t\t\tresult.children.push(clone);\n\t\t}\n\t\tresult.onChildTransformChange();\n\t\tresult.toDirty();\n\t\treturn result;\n\t}\n\n\tprotected newClone(): EShapeEmbedded {\n\t\tconst constructor = this.constructor as typeof EShapeEmbedded;\n\t\treturn new constructor(this._name, this._mode, this._depth, this.type);\n\t}\n\n\tserializeChildren(manager: EShapeResourceManagerSerialization): DDiagramSerializedItem[] {\n\t\treturn [];\n\t}\n\n\tserializeImage(manager: EShapeResourceManagerSerialization): number {\n\t\treturn -1;\n\t}\n\n\tserializeGradient(manager: EShapeResourceManagerSerialization): number {\n\t\treturn -1;\n\t}\n\n\tserialize(manager: EShapeResourceManagerSerialization): DDiagramSerializedItem {\n\t\tconst result = super.serialize(manager);\n\t\tresult[15] = manager.addPiece(this._name);\n\t\treturn result;\n\t}\n\n\taddUuid(manager: EShapeResourceManagerSerialization): void {\n\t\tthis.uuid = manager.addUuid(this.uuid);\n\t}\n\n\tupdateUuid(manager: EShapeResourceManagerSerialization): void {\n\t\tthis.uuid = manager.updateUuid(this.uuid);\n\t}\n}\n"]}
|
|
@@ -81,8 +81,9 @@ export * from "./deserialize-button";
|
|
|
81
81
|
export * from "./deserialize-circle";
|
|
82
82
|
export * from "./deserialize-connector-elbow";
|
|
83
83
|
export * from "./deserialize-connector-line";
|
|
84
|
-
export * from "./deserialize-embedded";
|
|
84
|
+
export * from "./deserialize-embedded-acceptor-edge";
|
|
85
85
|
export * from "./deserialize-embedded-layer";
|
|
86
|
+
export * from "./deserialize-embedded";
|
|
86
87
|
export * from "./deserialize-gradient";
|
|
87
88
|
export * from "./deserialize-group-shadowed";
|
|
88
89
|
export * from "./deserialize-group";
|
|
@@ -116,6 +117,7 @@ export * from "./e-shape-circle";
|
|
|
116
117
|
export * from "./e-shape-connector-elbow-points-filler";
|
|
117
118
|
export * from "./e-shape-connector-elbow";
|
|
118
119
|
export * from "./e-shape-connector-line";
|
|
120
|
+
export * from "./e-shape-embedded-acceptor-edge";
|
|
119
121
|
export * from "./e-shape-embedded-datum";
|
|
120
122
|
export * from "./e-shape-embedded-layer-container";
|
|
121
123
|
export * from "./e-shape-embedded-layer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAq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8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./build-bar\";\nexport * from \"./build-circle\";\nexport * from \"./build-color\";\nexport * from \"./build-image-sdf\";\nexport * from \"./build-line-of-any\";\nexport * from \"./build-line\";\nexport * from \"./build-null\";\nexport * from \"./build-rectangle-rounded\";\nexport * from \"./build-rectangle\";\nexport * from \"./build-semicircle\";\nexport * from \"./build-text\";\nexport * from \"./build-triangle-rounded\";\nexport * from \"./build-triangle\";\nexport * from \"./builder-bar\";\nexport * from \"./builder-base\";\nexport * from \"./builder-circle\";\nexport * from \"./builder-image-sdf\";\nexport * from \"./builder-label\";\nexport * from \"./builder-line-of-any\";\nexport * from \"./builder-line-of-circles\";\nexport * from \"./builder-line-of-rectangle-roundeds\";\nexport * from \"./builder-line-of-rectangles\";\nexport * from \"./builder-line-of-triangle-roundeds\";\nexport * from \"./builder-line-of-triangles\";\nexport * from \"./builder-line\";\nexport * from \"./builder-marker-circle-head\";\nexport * from \"./builder-marker-circle-tail\";\nexport * from \"./builder-marker-circle\";\nexport * from \"./builder-marker-rectangle-head\";\nexport * from \"./builder-marker-rectangle-tail\";\nexport * from \"./builder-marker-rectangle\";\nexport * from \"./builder-marker-triangle-head\";\nexport * from \"./builder-marker-triangle-tail\";\nexport * from \"./builder-marker-triangle\";\nexport * from \"./builder-null\";\nexport * from \"./builder-rectangle-pivoted\";\nexport * from \"./builder-rectangle-rounded\";\nexport * from \"./builder-rectangle\";\nexport * from \"./builder-semicircle\";\nexport * from \"./builder-text\";\nexport * from \"./builder-triangle-rounded\";\nexport * from \"./builder-triangle\";\nexport * from \"./builder\";\nexport * from \"./builders\";\nexport * from \"./copy-clipping\";\nexport * from \"./copy-index\";\nexport * from \"./copy-step\";\nexport * from \"./copy-uv\";\nexport * from \"./copy-vertex\";\nexport * from \"./create-bar-uploaded\";\nexport * from \"./create-button-uploaded\";\nexport * from \"./create-circle-uploaded\";\nexport * from \"./create-rectangle-pivoted-uploaded\";\nexport * from \"./create-group-uploaded\";\nexport * from \"./create-image-sdf-uploaded\";\nexport * from \"./create-image-sdf\";\nexport * from \"./create-image\";\nexport * from \"./create-label-uploaded\";\nexport * from \"./create-line-of-any-uploaded\";\nexport * from \"./create-line-of-circles-uploaded\";\nexport * from \"./create-line-of-rectangle-roundeds-uploaded\";\nexport * from \"./create-line-of-rectangles-uploaded\";\nexport * from \"./create-line-of-triangle-roundeds-uploaded\";\nexport * from \"./create-line-of-triangles-uploaded\";\nexport * from \"./create-line-uploaded\";\nexport * from \"./create-line\";\nexport * from \"./create-null-uploaded\";\nexport * from \"./create-rectangle-rounded-uploaded\";\nexport * from \"./create-rectangle-uploaded\";\nexport * from \"./create-semicircle-uploaded\";\nexport * from \"./create-triangle-rounded-uploaded\";\nexport * from \"./create-triangle-uploaded\";\nexport * from \"./deserialize-all\";\nexport * from \"./deserialize-bar\";\nexport * from \"./deserialize-base\";\nexport * from \"./deserialize-button\";\nexport * from \"./deserialize-circle\";\nexport * from \"./deserialize-connector-elbow\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded\";\nexport * from \"./deserialize-embedded-layer\";\nexport * from \"./deserialize-gradient\";\nexport * from \"./deserialize-group-shadowed\";\nexport * from \"./deserialize-group\";\nexport * from \"./deserialize-image-sdf\";\nexport * from \"./deserialize-image\";\nexport * from \"./deserialize-label\";\nexport * from \"./deserialize-line-of-circles\";\nexport * from \"./deserialize-line-of-rectangle-roundeds\";\nexport * from \"./deserialize-line-of-rectangles\";\nexport * from \"./deserialize-line-of-triangle-roundeds\";\nexport * from \"./deserialize-line-of-triangles\";\nexport * from \"./deserialize-line\";\nexport * from \"./deserialize-null\";\nexport * from \"./deserialize-rectangle-pivoted\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-semicircle\";\nexport * from \"./deserialize-triangle-rounded\";\nexport * from \"./deserialize-triangle\";\nexport * from \"./deserialize\";\nexport * from \"./e-shape-bar-points\";\nexport * from \"./e-shape-bar-position\";\nexport * from \"./e-shape-bar\";\nexport * from \"./e-shape-base-hit-test-data\";\nexport * from \"./e-shape-base\";\nexport * from \"./e-shape-button-runtime-action-toggle\";\nexport * from \"./e-shape-button-runtime-action\";\nexport * from \"./e-shape-button-runtime\";\nexport * from \"./e-shape-button\";\nexport * from \"./e-shape-circle\";\nexport * from \"./e-shape-connector-elbow-points-filler\";\nexport * from \"./e-shape-connector-elbow\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-embedded-datum\";\nexport * from \"./e-shape-embedded-layer-container\";\nexport * from \"./e-shape-embedded-layer\";\nexport * from \"./e-shape-embedded\";\nexport * from \"./e-shape-embeddeds\";\nexport * from \"./e-shape-fill-impl-parent\";\nexport * from \"./e-shape-fill-impl\";\nexport * from \"./e-shape-group-fill-editor\";\nexport * from \"./e-shape-group-fill-viewer\";\nexport * from \"./e-shape-group-points\";\nexport * from \"./e-shape-group-property-parent\";\nexport * from \"./e-shape-group-shadowed\";\nexport * from \"./e-shape-group-size-editor\";\nexport * from \"./e-shape-group-size-layout\";\nexport * from \"./e-shape-group-size-parent\";\nexport * from \"./e-shape-group-size-shadowed\";\nexport * from \"./e-shape-group-size-viewer\";\nexport * from \"./e-shape-group-size\";\nexport * from \"./e-shape-group-stroke-editor\";\nexport * from \"./e-shape-group-stroke-viewer\";\nexport * from \"./e-shape-group-viewer\";\nexport * from \"./e-shape-group\";\nexport * from \"./e-shape-image-sdf\";\nexport * from \"./e-shape-image\";\nexport * from \"./e-shape-label\";\nexport * from \"./e-shape-line-base-hit-part\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-base-points-hit-tester\";\nexport * from \"./e-shape-line-base-points\";\nexport * from \"./e-shape-line-base\";\nexport * from \"./e-shape-line-of-any-points-fill-impl\";\nexport * from \"./e-shape-line-of-any-points-fill\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-of-any-points-hit-tester\";\nexport * from \"./e-shape-line-of-any-points-impl\";\nexport * from \"./e-shape-line-of-any-points-point-impl\";\nexport * from \"./e-shape-line-of-any-points-point\";\nexport * from \"./e-shape-line-of-any-points-stroke-impl\";\nexport * from \"./e-shape-line-of-any-points-stroke\";\nexport * from \"./e-shape-line-of-any-points\";\nexport * from \"./e-shape-line-of-any-value\";\nexport * from \"./e-shape-line-of-any\";\nexport * from \"./e-shape-line-of-circles\";\nexport * from \"./e-shape-line-of-rectangle-roundeds\";\nexport * from \"./e-shape-line-of-rectangles\";\nexport * from \"./e-shape-line-of-triangle-roundeds\";\nexport * from \"./e-shape-line-of-triangles\";\nexport * from \"./e-shape-line-points\";\nexport * from \"./e-shape-line\";\nexport * from \"./e-shape-null\";\nexport * from \"./e-shape-primitive\";\nexport * from \"./e-shape-rectangle-pivoted\";\nexport * from \"./e-shape-rectangle-rounded\";\nexport * from \"./e-shape-rectangle\";\nexport * from \"./e-shape-semicircle\";\nexport * from \"./e-shape-stroke-impl-parent\";\nexport * from \"./e-shape-stroke-impl\";\nexport * from \"./e-shape-text-align-impl-parent\";\nexport * from \"./e-shape-text-align-impl\";\nexport * from \"./e-shape-text-impl-parent\";\nexport * from \"./e-shape-text-impl\";\nexport * from \"./e-shape-text-offset-impl-parent\";\nexport * from \"./e-shape-text-offset-impl\";\nexport * from \"./e-shape-text-outline-impl-parent\";\nexport * from \"./e-shape-text-outline-impl\";\nexport * from \"./e-shape-triangle-rounded\";\nexport * from \"./e-shape-triangle\";\nexport * from \"./hit-test-bbox\";\nexport * from \"./hit-test-circle\";\nexport * from \"./hit-test-semicircle\";\nexport * from \"./hit-test-rectangle-rounded\";\nexport * from \"./hit-test-rectangle\";\nexport * from \"./hit-test-triangle-rounded\";\nexport * from \"./hit-test-triangle\";\nexport * from \"./is-static\";\nexport * from \"./to-computed\";\nexport * from \"./to-dash\";\nexport * from \"./to-gradient-image-url\";\nexport * from \"./to-gradient-serialized\";\nexport * from \"./to-image-element\";\nexport * from \"./to-length\";\nexport * from \"./to-resized\";\nexport * from \"./to-scale-invariant\";\nexport * from \"./to-size-normalized\";\nexport * from \"./to-size-rounded\";\nexport * from \"./to-threshold-default\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;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D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./build-bar\";\nexport * from \"./build-circle\";\nexport * from \"./build-color\";\nexport * from \"./build-image-sdf\";\nexport * from \"./build-line-of-any\";\nexport * from \"./build-line\";\nexport * from \"./build-null\";\nexport * from \"./build-rectangle-rounded\";\nexport * from \"./build-rectangle\";\nexport * from \"./build-semicircle\";\nexport * from \"./build-text\";\nexport * from \"./build-triangle-rounded\";\nexport * from \"./build-triangle\";\nexport * from \"./builder-bar\";\nexport * from \"./builder-base\";\nexport * from \"./builder-circle\";\nexport * from \"./builder-image-sdf\";\nexport * from \"./builder-label\";\nexport * from \"./builder-line-of-any\";\nexport * from \"./builder-line-of-circles\";\nexport * from \"./builder-line-of-rectangle-roundeds\";\nexport * from \"./builder-line-of-rectangles\";\nexport * from \"./builder-line-of-triangle-roundeds\";\nexport * from \"./builder-line-of-triangles\";\nexport * from \"./builder-line\";\nexport * from \"./builder-marker-circle-head\";\nexport * from \"./builder-marker-circle-tail\";\nexport * from \"./builder-marker-circle\";\nexport * from \"./builder-marker-rectangle-head\";\nexport * from \"./builder-marker-rectangle-tail\";\nexport * from \"./builder-marker-rectangle\";\nexport * from \"./builder-marker-triangle-head\";\nexport * from \"./builder-marker-triangle-tail\";\nexport * from \"./builder-marker-triangle\";\nexport * from \"./builder-null\";\nexport * from \"./builder-rectangle-pivoted\";\nexport * from \"./builder-rectangle-rounded\";\nexport * from \"./builder-rectangle\";\nexport * from \"./builder-semicircle\";\nexport * from \"./builder-text\";\nexport * from \"./builder-triangle-rounded\";\nexport * from \"./builder-triangle\";\nexport * from \"./builder\";\nexport * from \"./builders\";\nexport * from \"./copy-clipping\";\nexport * from \"./copy-index\";\nexport * from \"./copy-step\";\nexport * from \"./copy-uv\";\nexport * from \"./copy-vertex\";\nexport * from \"./create-bar-uploaded\";\nexport * from \"./create-button-uploaded\";\nexport * from \"./create-circle-uploaded\";\nexport * from \"./create-rectangle-pivoted-uploaded\";\nexport * from \"./create-group-uploaded\";\nexport * from \"./create-image-sdf-uploaded\";\nexport * from \"./create-image-sdf\";\nexport * from \"./create-image\";\nexport * from \"./create-label-uploaded\";\nexport * from \"./create-line-of-any-uploaded\";\nexport * from \"./create-line-of-circles-uploaded\";\nexport * from \"./create-line-of-rectangle-roundeds-uploaded\";\nexport * from \"./create-line-of-rectangles-uploaded\";\nexport * from \"./create-line-of-triangle-roundeds-uploaded\";\nexport * from \"./create-line-of-triangles-uploaded\";\nexport * from \"./create-line-uploaded\";\nexport * from \"./create-line\";\nexport * from \"./create-null-uploaded\";\nexport * from \"./create-rectangle-rounded-uploaded\";\nexport * from \"./create-rectangle-uploaded\";\nexport * from \"./create-semicircle-uploaded\";\nexport * from \"./create-triangle-rounded-uploaded\";\nexport * from \"./create-triangle-uploaded\";\nexport * from \"./deserialize-all\";\nexport * from \"./deserialize-bar\";\nexport * from \"./deserialize-base\";\nexport * from \"./deserialize-button\";\nexport * from \"./deserialize-circle\";\nexport * from \"./deserialize-connector-elbow\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded-acceptor-edge\";\nexport * from \"./deserialize-embedded-layer\";\nexport * from \"./deserialize-embedded\";\nexport * from \"./deserialize-gradient\";\nexport * from \"./deserialize-group-shadowed\";\nexport * from \"./deserialize-group\";\nexport * from \"./deserialize-image-sdf\";\nexport * from \"./deserialize-image\";\nexport * from \"./deserialize-label\";\nexport * from \"./deserialize-line-of-circles\";\nexport * from \"./deserialize-line-of-rectangle-roundeds\";\nexport * from \"./deserialize-line-of-rectangles\";\nexport * from \"./deserialize-line-of-triangle-roundeds\";\nexport * from \"./deserialize-line-of-triangles\";\nexport * from \"./deserialize-line\";\nexport * from \"./deserialize-null\";\nexport * from \"./deserialize-rectangle-pivoted\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-semicircle\";\nexport * from \"./deserialize-triangle-rounded\";\nexport * from \"./deserialize-triangle\";\nexport * from \"./deserialize\";\nexport * from \"./e-shape-bar-points\";\nexport * from \"./e-shape-bar-position\";\nexport * from \"./e-shape-bar\";\nexport * from \"./e-shape-base-hit-test-data\";\nexport * from \"./e-shape-base\";\nexport * from \"./e-shape-button-runtime-action-toggle\";\nexport * from \"./e-shape-button-runtime-action\";\nexport * from \"./e-shape-button-runtime\";\nexport * from \"./e-shape-button\";\nexport * from \"./e-shape-circle\";\nexport * from \"./e-shape-connector-elbow-points-filler\";\nexport * from \"./e-shape-connector-elbow\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-embedded-acceptor-edge\";\nexport * from \"./e-shape-embedded-datum\";\nexport * from \"./e-shape-embedded-layer-container\";\nexport * from \"./e-shape-embedded-layer\";\nexport * from \"./e-shape-embedded\";\nexport * from \"./e-shape-embeddeds\";\nexport * from \"./e-shape-fill-impl-parent\";\nexport * from \"./e-shape-fill-impl\";\nexport * from \"./e-shape-group-fill-editor\";\nexport * from \"./e-shape-group-fill-viewer\";\nexport * from \"./e-shape-group-points\";\nexport * from \"./e-shape-group-property-parent\";\nexport * from \"./e-shape-group-shadowed\";\nexport * from \"./e-shape-group-size-editor\";\nexport * from \"./e-shape-group-size-layout\";\nexport * from \"./e-shape-group-size-parent\";\nexport * from \"./e-shape-group-size-shadowed\";\nexport * from \"./e-shape-group-size-viewer\";\nexport * from \"./e-shape-group-size\";\nexport * from \"./e-shape-group-stroke-editor\";\nexport * from \"./e-shape-group-stroke-viewer\";\nexport * from \"./e-shape-group-viewer\";\nexport * from \"./e-shape-group\";\nexport * from \"./e-shape-image-sdf\";\nexport * from \"./e-shape-image\";\nexport * from \"./e-shape-label\";\nexport * from \"./e-shape-line-base-hit-part\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-base-points-hit-tester\";\nexport * from \"./e-shape-line-base-points\";\nexport * from \"./e-shape-line-base\";\nexport * from \"./e-shape-line-of-any-points-fill-impl\";\nexport * from \"./e-shape-line-of-any-points-fill\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-of-any-points-hit-tester\";\nexport * from \"./e-shape-line-of-any-points-impl\";\nexport * from \"./e-shape-line-of-any-points-point-impl\";\nexport * from \"./e-shape-line-of-any-points-point\";\nexport * from \"./e-shape-line-of-any-points-stroke-impl\";\nexport * from \"./e-shape-line-of-any-points-stroke\";\nexport * from \"./e-shape-line-of-any-points\";\nexport * from \"./e-shape-line-of-any-value\";\nexport * from \"./e-shape-line-of-any\";\nexport * from \"./e-shape-line-of-circles\";\nexport * from \"./e-shape-line-of-rectangle-roundeds\";\nexport * from \"./e-shape-line-of-rectangles\";\nexport * from \"./e-shape-line-of-triangle-roundeds\";\nexport * from \"./e-shape-line-of-triangles\";\nexport * from \"./e-shape-line-points\";\nexport * from \"./e-shape-line\";\nexport * from \"./e-shape-null\";\nexport * from \"./e-shape-primitive\";\nexport * from \"./e-shape-rectangle-pivoted\";\nexport * from \"./e-shape-rectangle-rounded\";\nexport * from \"./e-shape-rectangle\";\nexport * from \"./e-shape-semicircle\";\nexport * from \"./e-shape-stroke-impl-parent\";\nexport * from \"./e-shape-stroke-impl\";\nexport * from \"./e-shape-text-align-impl-parent\";\nexport * from \"./e-shape-text-align-impl\";\nexport * from \"./e-shape-text-impl-parent\";\nexport * from \"./e-shape-text-impl\";\nexport * from \"./e-shape-text-offset-impl-parent\";\nexport * from \"./e-shape-text-offset-impl\";\nexport * from \"./e-shape-text-outline-impl-parent\";\nexport * from \"./e-shape-text-outline-impl\";\nexport * from \"./e-shape-triangle-rounded\";\nexport * from \"./e-shape-triangle\";\nexport * from \"./hit-test-bbox\";\nexport * from \"./hit-test-circle\";\nexport * from \"./hit-test-semicircle\";\nexport * from \"./hit-test-rectangle-rounded\";\nexport * from \"./hit-test-rectangle\";\nexport * from \"./hit-test-triangle-rounded\";\nexport * from \"./hit-test-triangle\";\nexport * from \"./is-static\";\nexport * from \"./to-computed\";\nexport * from \"./to-dash\";\nexport * from \"./to-gradient-image-url\";\nexport * from \"./to-gradient-serialized\";\nexport * from \"./to-image-element\";\nexport * from \"./to-length\";\nexport * from \"./to-resized\";\nexport * from \"./to-scale-invariant\";\nexport * from \"./to-size-normalized\";\nexport * from \"./to-size-rounded\";\nexport * from \"./to-threshold-default\";\n"]}
|