@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
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.342.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -55,6 +55,7 @@ var EShapeType = {
|
|
|
55
55
|
CONNECTOR_LINE: 22,
|
|
56
56
|
CONNECTOR_ELBOW: 23,
|
|
57
57
|
SEMICIRCLE: 24,
|
|
58
|
+
EMBEDDED_ACCEPTOR_EDGE: 25,
|
|
58
59
|
EXTENSION: 1000
|
|
59
60
|
};
|
|
60
61
|
|
|
@@ -4473,6 +4474,7 @@ var LAYER = ORDER_IN_LAYER;
|
|
|
4473
4474
|
var PRIMITIVE = ID | COORDINATE | SHAPE | TEXT$2 | TEXTURE | DATA | ACTION | CURSOR$1 | LAYER | CHILDREN$1;
|
|
4474
4475
|
var GROUP = PRIMITIVE | UNGROUPING;
|
|
4475
4476
|
var EMBEDDED = ID | COORDINATE | REPLACING | GROUPING | TEXT$2 | DATA | ACTION | LAYER | DATA_MAPPING;
|
|
4477
|
+
var EMBEDDED_ACCEPTOR_EDGE = ID | COORDINATE | REPLACING | FILL$1 | STROKE$1 | TEXT$2 | TEXTURE | DATA | ACTION | CURSOR$1 | LAYER;
|
|
4476
4478
|
var CONNECTOR = ID | REPLACING | FILL$1 | STROKE$1 | LINE | LINE_TAIL | LINE_HEAD | TEXT$2 | TEXTURE | DATA | ACTION | CURSOR$1 | LAYER | CHILDREN$1;
|
|
4477
4479
|
var ALL = PRIMITIVE | STROKE_SIDE | BORDER_RADIUS | DATA_MAPPING | UNGROUPING;
|
|
4478
4480
|
var EShapeCapability = {
|
|
@@ -4583,6 +4585,7 @@ var EShapeCapability = {
|
|
|
4583
4585
|
PRIMITIVE: PRIMITIVE,
|
|
4584
4586
|
GROUP: GROUP,
|
|
4585
4587
|
EMBEDDED: EMBEDDED,
|
|
4588
|
+
EMBEDDED_ACCEPTOR_EDGE: EMBEDDED_ACCEPTOR_EDGE,
|
|
4586
4589
|
CONNECTOR: CONNECTOR,
|
|
4587
4590
|
ALL: ALL
|
|
4588
4591
|
};
|
|
@@ -16728,6 +16731,115 @@ var EShapeResourceManagerDeserializationMode = {
|
|
|
16728
16731
|
EDITOR: 2
|
|
16729
16732
|
};
|
|
16730
16733
|
|
|
16734
|
+
/*
|
|
16735
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
16736
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16737
|
+
*/
|
|
16738
|
+
var EShapeAcceptorEdgeSide = {
|
|
16739
|
+
NONE: 0,
|
|
16740
|
+
TOP: 1,
|
|
16741
|
+
RIGHT: 2,
|
|
16742
|
+
BOTTOM: 4,
|
|
16743
|
+
LEFT: 8,
|
|
16744
|
+
ALL: 15
|
|
16745
|
+
};
|
|
16746
|
+
|
|
16747
|
+
/*
|
|
16748
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
16749
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16750
|
+
*/
|
|
16751
|
+
var EShapeAcceptorEdgeType = {
|
|
16752
|
+
TAIL: 1,
|
|
16753
|
+
HEAD: 2,
|
|
16754
|
+
ALL: 3
|
|
16755
|
+
};
|
|
16756
|
+
|
|
16757
|
+
/*
|
|
16758
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
16759
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16760
|
+
*/
|
|
16761
|
+
var EShapeCircle = /** @class */ (function (_super) {
|
|
16762
|
+
__extends(EShapeCircle, _super);
|
|
16763
|
+
function EShapeCircle(type) {
|
|
16764
|
+
if (type === void 0) { type = EShapeType.CIRCLE; }
|
|
16765
|
+
return _super.call(this, type) || this;
|
|
16766
|
+
}
|
|
16767
|
+
EShapeCircle.prototype.clone = function () {
|
|
16768
|
+
return new EShapeCircle(this.type).copy(this);
|
|
16769
|
+
};
|
|
16770
|
+
EShapeCircle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
16771
|
+
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
16772
|
+
return hitTestCircle(this, x, y, ax, ay, sw, ss);
|
|
16773
|
+
}
|
|
16774
|
+
return false;
|
|
16775
|
+
};
|
|
16776
|
+
return EShapeCircle;
|
|
16777
|
+
}(EShapePrimitive));
|
|
16778
|
+
|
|
16779
|
+
var EShapeEmbeddedAcceptorEdge = /** @class */ (function (_super) {
|
|
16780
|
+
__extends(EShapeEmbeddedAcceptorEdge, _super);
|
|
16781
|
+
function EShapeEmbeddedAcceptorEdge(type) {
|
|
16782
|
+
if (type === void 0) { type = EShapeType.EMBEDDED_ACCEPTOR_EDGE; }
|
|
16783
|
+
var _this = _super.call(this, type) || this;
|
|
16784
|
+
_this._subtype = EShapeAcceptorEdgeType.HEAD;
|
|
16785
|
+
_this._side = EShapeAcceptorEdgeSide.ALL;
|
|
16786
|
+
_this._vvisible = true;
|
|
16787
|
+
return _this;
|
|
16788
|
+
}
|
|
16789
|
+
Object.defineProperty(EShapeEmbeddedAcceptorEdge.prototype, "subtype", {
|
|
16790
|
+
get: function () {
|
|
16791
|
+
return this._subtype;
|
|
16792
|
+
},
|
|
16793
|
+
set: function (subtype) {
|
|
16794
|
+
this._subtype = subtype;
|
|
16795
|
+
},
|
|
16796
|
+
enumerable: false,
|
|
16797
|
+
configurable: true
|
|
16798
|
+
});
|
|
16799
|
+
Object.defineProperty(EShapeEmbeddedAcceptorEdge.prototype, "side", {
|
|
16800
|
+
get: function () {
|
|
16801
|
+
return this._side;
|
|
16802
|
+
},
|
|
16803
|
+
set: function (side) {
|
|
16804
|
+
this._side = side;
|
|
16805
|
+
},
|
|
16806
|
+
enumerable: false,
|
|
16807
|
+
configurable: true
|
|
16808
|
+
});
|
|
16809
|
+
Object.defineProperty(EShapeEmbeddedAcceptorEdge.prototype, "vvisible", {
|
|
16810
|
+
/**
|
|
16811
|
+
* True if visible in the viewer mode.
|
|
16812
|
+
*/
|
|
16813
|
+
get: function () {
|
|
16814
|
+
return this._vvisible;
|
|
16815
|
+
},
|
|
16816
|
+
set: function (vvisible) {
|
|
16817
|
+
this._vvisible = vvisible;
|
|
16818
|
+
},
|
|
16819
|
+
enumerable: false,
|
|
16820
|
+
configurable: true
|
|
16821
|
+
});
|
|
16822
|
+
EShapeEmbeddedAcceptorEdge.prototype.clone = function () {
|
|
16823
|
+
return new EShapeEmbeddedAcceptorEdge(this.type).copy(this);
|
|
16824
|
+
};
|
|
16825
|
+
EShapeEmbeddedAcceptorEdge.prototype.copy = function (source, part) {
|
|
16826
|
+
if (part === void 0) { part = EShapeCopyPart.ALL; }
|
|
16827
|
+
_super.prototype.copy.call(this, source, part);
|
|
16828
|
+
if (source instanceof EShapeEmbeddedAcceptorEdge) {
|
|
16829
|
+
this._subtype = source.subtype;
|
|
16830
|
+
this._side = source.side;
|
|
16831
|
+
this._vvisible = source.vvisible;
|
|
16832
|
+
}
|
|
16833
|
+
return this;
|
|
16834
|
+
};
|
|
16835
|
+
EShapeEmbeddedAcceptorEdge.prototype.serialize = function (manager) {
|
|
16836
|
+
var result = _super.prototype.serialize.call(this, manager);
|
|
16837
|
+
result[15] = this._subtype + (this._side << 2) + (this._vvisible ? 1 << 6 : 0);
|
|
16838
|
+
return result;
|
|
16839
|
+
};
|
|
16840
|
+
return EShapeEmbeddedAcceptorEdge;
|
|
16841
|
+
}(EShapeCircle));
|
|
16842
|
+
|
|
16731
16843
|
/*
|
|
16732
16844
|
* Copyright (C) 2019 Toshiba Corporation
|
|
16733
16845
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -17585,6 +17697,71 @@ var EShapeEmbedded = /** @class */ (function (_super) {
|
|
|
17585
17697
|
enumerable: false,
|
|
17586
17698
|
configurable: true
|
|
17587
17699
|
});
|
|
17700
|
+
Object.defineProperty(EShapeEmbedded.prototype, "edges", {
|
|
17701
|
+
get: function () {
|
|
17702
|
+
var _a;
|
|
17703
|
+
return ((_a = this._edges) !== null && _a !== void 0 ? _a : (this._edges = this.newEdges()));
|
|
17704
|
+
},
|
|
17705
|
+
enumerable: false,
|
|
17706
|
+
configurable: true
|
|
17707
|
+
});
|
|
17708
|
+
EShapeEmbedded.prototype.newEdges = function () {
|
|
17709
|
+
var result = new Map();
|
|
17710
|
+
var layers = this.children;
|
|
17711
|
+
if (layers != null) {
|
|
17712
|
+
var s = this.size;
|
|
17713
|
+
var sx = s.x;
|
|
17714
|
+
var sy = s.y;
|
|
17715
|
+
var sxh = sx * 0.5;
|
|
17716
|
+
var syh = sy * 0.5;
|
|
17717
|
+
for (var i = 0, imax = layers.length; i < imax; ++i) {
|
|
17718
|
+
var layer = layers[i];
|
|
17719
|
+
var lp = layer.transform.position;
|
|
17720
|
+
var lpx = lp.x;
|
|
17721
|
+
var lpy = lp.y;
|
|
17722
|
+
var children = layer.children;
|
|
17723
|
+
for (var j = 0, jmax = children.length; j < jmax; ++j) {
|
|
17724
|
+
var child = children[j];
|
|
17725
|
+
if (child instanceof EShapeEmbeddedAcceptorEdge) {
|
|
17726
|
+
child.transform.updateLocalTransform();
|
|
17727
|
+
var clt = child.transform.localTransform;
|
|
17728
|
+
result.set(child.id, {
|
|
17729
|
+
type: child.subtype,
|
|
17730
|
+
x: this.toEedgePosition(lpx, clt.tx, sxh, sx),
|
|
17731
|
+
y: this.toEedgePosition(lpy, clt.ty, syh, sy),
|
|
17732
|
+
normal: this.toEedgeNormal(clt.c, clt.d),
|
|
17733
|
+
size: {
|
|
17734
|
+
x: 0,
|
|
17735
|
+
y: 0
|
|
17736
|
+
},
|
|
17737
|
+
side: child.side
|
|
17738
|
+
});
|
|
17739
|
+
}
|
|
17740
|
+
}
|
|
17741
|
+
}
|
|
17742
|
+
}
|
|
17743
|
+
return result;
|
|
17744
|
+
};
|
|
17745
|
+
EShapeEmbedded.prototype.toEedgePosition = function (lp, cp, sh, s) {
|
|
17746
|
+
if (0.00001 < Math.abs(s)) {
|
|
17747
|
+
return (lp + cp - sh) / s;
|
|
17748
|
+
}
|
|
17749
|
+
return 0;
|
|
17750
|
+
};
|
|
17751
|
+
EShapeEmbedded.prototype.toEedgeNormal = function (x, y) {
|
|
17752
|
+
var d = x * x + y * y;
|
|
17753
|
+
if (0.00001 < d) {
|
|
17754
|
+
var f = 1 / d;
|
|
17755
|
+
return {
|
|
17756
|
+
x: x * f,
|
|
17757
|
+
y: y * f
|
|
17758
|
+
};
|
|
17759
|
+
}
|
|
17760
|
+
return {
|
|
17761
|
+
x: 0,
|
|
17762
|
+
y: 1
|
|
17763
|
+
};
|
|
17764
|
+
};
|
|
17588
17765
|
EShapeEmbedded.prototype.isGroupSizeFittable = function () {
|
|
17589
17766
|
return false;
|
|
17590
17767
|
};
|
|
@@ -17730,29 +17907,6 @@ var EShapeEmbeddedDatum = /** @class */ (function () {
|
|
|
17730
17907
|
return EShapeEmbeddedDatum;
|
|
17731
17908
|
}());
|
|
17732
17909
|
|
|
17733
|
-
/*
|
|
17734
|
-
* Copyright (C) 2019 Toshiba Corporation
|
|
17735
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
17736
|
-
*/
|
|
17737
|
-
var EShapeAcceptorEdgeType = {
|
|
17738
|
-
TAIL: 1,
|
|
17739
|
-
HEAD: 2,
|
|
17740
|
-
ALL: 3
|
|
17741
|
-
};
|
|
17742
|
-
|
|
17743
|
-
/*
|
|
17744
|
-
* Copyright (C) 2019 Toshiba Corporation
|
|
17745
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
17746
|
-
*/
|
|
17747
|
-
var EShapeAcceptorEdgeSide = {
|
|
17748
|
-
NONE: 0,
|
|
17749
|
-
TOP: 1,
|
|
17750
|
-
RIGHT: 2,
|
|
17751
|
-
BOTTOM: 4,
|
|
17752
|
-
LEFT: 8,
|
|
17753
|
-
ALL: 15
|
|
17754
|
-
};
|
|
17755
|
-
|
|
17756
17910
|
/*
|
|
17757
17911
|
* Copyright (C) 2019 Toshiba Corporation
|
|
17758
17912
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -17850,6 +18004,39 @@ var EShapeAcceptorImpl = /** @class */ (function () {
|
|
|
17850
18004
|
return EShapeAcceptorImpl;
|
|
17851
18005
|
}());
|
|
17852
18006
|
|
|
18007
|
+
var EShapeEmbeddedAcceptor = /** @class */ (function (_super) {
|
|
18008
|
+
__extends(EShapeEmbeddedAcceptor, _super);
|
|
18009
|
+
function EShapeEmbeddedAcceptor() {
|
|
18010
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
18011
|
+
}
|
|
18012
|
+
EShapeEmbeddedAcceptor.prototype.get = function (shape, id) {
|
|
18013
|
+
var edges = this.getEdges(shape);
|
|
18014
|
+
if (edges != null) {
|
|
18015
|
+
var edge = edges.get(id);
|
|
18016
|
+
if (edge != null) {
|
|
18017
|
+
return edge;
|
|
18018
|
+
}
|
|
18019
|
+
}
|
|
18020
|
+
return _super.prototype.get.call(this, shape, id);
|
|
18021
|
+
};
|
|
18022
|
+
EShapeEmbeddedAcceptor.prototype.each = function (shape, iteratee) {
|
|
18023
|
+
var edges = this.getEdges(shape);
|
|
18024
|
+
if (edges != null) {
|
|
18025
|
+
edges.forEach(function (edge, id) {
|
|
18026
|
+
iteratee(edge, id);
|
|
18027
|
+
});
|
|
18028
|
+
}
|
|
18029
|
+
return _super.prototype.each.call(this, shape, iteratee);
|
|
18030
|
+
};
|
|
18031
|
+
EShapeEmbeddedAcceptor.prototype.getEdges = function (shape) {
|
|
18032
|
+
if (shape instanceof EShapeEmbedded) {
|
|
18033
|
+
return shape.edges;
|
|
18034
|
+
}
|
|
18035
|
+
return null;
|
|
18036
|
+
};
|
|
18037
|
+
return EShapeEmbeddedAcceptor;
|
|
18038
|
+
}(EShapeAcceptorImpl));
|
|
18039
|
+
|
|
17853
18040
|
/*
|
|
17854
18041
|
* Copyright (C) 2019 Toshiba Corporation
|
|
17855
18042
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -17858,27 +18045,59 @@ var EShapeAcceptors = /** @class */ (function () {
|
|
|
17858
18045
|
function EShapeAcceptors() {
|
|
17859
18046
|
}
|
|
17860
18047
|
EShapeAcceptors.set = function (type, acceptor) {
|
|
17861
|
-
var
|
|
17862
|
-
if (
|
|
17863
|
-
|
|
17864
|
-
this.
|
|
18048
|
+
var acceptors = this._acceptors;
|
|
18049
|
+
if (acceptors == null) {
|
|
18050
|
+
acceptors = new Map();
|
|
18051
|
+
this._acceptors = acceptors;
|
|
17865
18052
|
}
|
|
17866
|
-
|
|
18053
|
+
acceptors.set(type, acceptor);
|
|
17867
18054
|
};
|
|
17868
18055
|
EShapeAcceptors.get = function (type) {
|
|
17869
18056
|
var _a;
|
|
17870
|
-
|
|
17871
|
-
|
|
17872
|
-
|
|
17873
|
-
|
|
17874
|
-
|
|
17875
|
-
|
|
17876
|
-
this._default = result;
|
|
18057
|
+
var acceptors = this._acceptors;
|
|
18058
|
+
if (acceptors != null) {
|
|
18059
|
+
var acceptor = acceptors.get(type);
|
|
18060
|
+
if (acceptor != null) {
|
|
18061
|
+
return acceptor;
|
|
18062
|
+
}
|
|
17877
18063
|
}
|
|
17878
|
-
|
|
18064
|
+
var defaults = ((_a = this._defaults) !== null && _a !== void 0 ? _a : (this._defaults = new Map()));
|
|
18065
|
+
switch (type) {
|
|
18066
|
+
case EShapeType.EMBEDDED:
|
|
18067
|
+
var embedded = defaults.get(type);
|
|
18068
|
+
if (embedded == null) {
|
|
18069
|
+
embedded = this.newDefaultEmbedded();
|
|
18070
|
+
defaults.set(type, embedded);
|
|
18071
|
+
}
|
|
18072
|
+
return embedded;
|
|
18073
|
+
case EShapeType.EMBEDDED_ACCEPTOR_EDGE:
|
|
18074
|
+
var edge = defaults.get(type);
|
|
18075
|
+
if (edge == null) {
|
|
18076
|
+
edge = this.newDefaultEmbeddedAcceptorEdge();
|
|
18077
|
+
defaults.set(type, edge);
|
|
18078
|
+
}
|
|
18079
|
+
return edge;
|
|
18080
|
+
default:
|
|
18081
|
+
var other = defaults.get(null);
|
|
18082
|
+
if (other == null) {
|
|
18083
|
+
other = this.newDefaultOther();
|
|
18084
|
+
defaults.set(null, other);
|
|
18085
|
+
}
|
|
18086
|
+
return other;
|
|
18087
|
+
}
|
|
18088
|
+
};
|
|
18089
|
+
EShapeAcceptors.newDefaultEmbedded = function () {
|
|
18090
|
+
return this.initDefault(new EShapeEmbeddedAcceptor());
|
|
17879
18091
|
};
|
|
17880
|
-
EShapeAcceptors.
|
|
18092
|
+
EShapeAcceptors.newDefaultEmbeddedAcceptorEdge = function () {
|
|
17881
18093
|
var result = new EShapeAcceptorImpl();
|
|
18094
|
+
result.add("CENTER", EShapeAcceptorEdgeType.ALL, 0, 0, 0, 0);
|
|
18095
|
+
return result;
|
|
18096
|
+
};
|
|
18097
|
+
EShapeAcceptors.newDefaultOther = function () {
|
|
18098
|
+
return this.initDefault(new EShapeAcceptorImpl());
|
|
18099
|
+
};
|
|
18100
|
+
EShapeAcceptors.initDefault = function (result) {
|
|
17882
18101
|
var s = 1 / Math.sqrt(2);
|
|
17883
18102
|
result.add("TOP", EShapeAcceptorEdgeType.ALL, 0, -0.5, 0, -1);
|
|
17884
18103
|
result.add("LEFT", EShapeAcceptorEdgeType.ALL, -0.5, 0, -1, 0);
|
|
@@ -36428,28 +36647,6 @@ var createCircleUploaded = function (buffer, shape, voffset, ioffset, antialiasW
|
|
|
36428
36647
|
return null;
|
|
36429
36648
|
};
|
|
36430
36649
|
|
|
36431
|
-
/*
|
|
36432
|
-
* Copyright (C) 2019 Toshiba Corporation
|
|
36433
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
36434
|
-
*/
|
|
36435
|
-
var EShapeCircle = /** @class */ (function (_super) {
|
|
36436
|
-
__extends(EShapeCircle, _super);
|
|
36437
|
-
function EShapeCircle(type) {
|
|
36438
|
-
if (type === void 0) { type = EShapeType.CIRCLE; }
|
|
36439
|
-
return _super.call(this, type) || this;
|
|
36440
|
-
}
|
|
36441
|
-
EShapeCircle.prototype.clone = function () {
|
|
36442
|
-
return new EShapeCircle(this.type).copy(this);
|
|
36443
|
-
};
|
|
36444
|
-
EShapeCircle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
36445
|
-
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
36446
|
-
return hitTestCircle(this, x, y, ax, ay, sw, ss);
|
|
36447
|
-
}
|
|
36448
|
-
return false;
|
|
36449
|
-
};
|
|
36450
|
-
return EShapeCircle;
|
|
36451
|
-
}(EShapePrimitive));
|
|
36452
|
-
|
|
36453
36650
|
/*
|
|
36454
36651
|
* Copyright (C) 2019 Toshiba Corporation
|
|
36455
36652
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -38715,15 +38912,53 @@ var deserializeEmbedded = function (item, manager, creator) {
|
|
|
38715
38912
|
return null;
|
|
38716
38913
|
};
|
|
38717
38914
|
|
|
38915
|
+
/*
|
|
38916
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
38917
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
38918
|
+
*/
|
|
38919
|
+
var toSubtype = function (target) {
|
|
38920
|
+
var result = EShapeAcceptorEdgeType.ALL & target;
|
|
38921
|
+
if (result !== 0) {
|
|
38922
|
+
return result;
|
|
38923
|
+
}
|
|
38924
|
+
return EShapeAcceptorEdgeType.HEAD;
|
|
38925
|
+
};
|
|
38926
|
+
var toSide = function (target) {
|
|
38927
|
+
return (EShapeAcceptorEdgeSide.ALL & (target << 2));
|
|
38928
|
+
};
|
|
38929
|
+
var toVvisible = function (target) {
|
|
38930
|
+
return 0 < (0x1 & (target << 6));
|
|
38931
|
+
};
|
|
38932
|
+
var deserializeEmbeddedAcceptorEdge = function (item, manager, shape) {
|
|
38933
|
+
shape !== null && shape !== void 0 ? shape : (shape = new EShapeEmbeddedAcceptorEdge());
|
|
38934
|
+
var item15 = item[15];
|
|
38935
|
+
shape.subtype = toSubtype(item15);
|
|
38936
|
+
shape.side = toSide(item15);
|
|
38937
|
+
shape.vvisible = toVvisible(item15);
|
|
38938
|
+
var result = deserializeBase(item, manager, shape);
|
|
38939
|
+
if (shape.vvisible === false) {
|
|
38940
|
+
if (manager.mode === EShapeResourceManagerDeserializationMode.VIEWER) {
|
|
38941
|
+
shape.visible = false;
|
|
38942
|
+
}
|
|
38943
|
+
}
|
|
38944
|
+
return result;
|
|
38945
|
+
};
|
|
38946
|
+
|
|
38718
38947
|
/*
|
|
38719
38948
|
* Copyright (C) 2019 Toshiba Corporation
|
|
38720
38949
|
* SPDX-License-Identifier: Apache-2.0
|
|
38721
38950
|
*/
|
|
38722
38951
|
var loadShapeEmbedded = function () {
|
|
38952
|
+
// Embedded
|
|
38723
38953
|
EShapeUploadeds[EShapeType.EMBEDDED] = createGroupUploaded;
|
|
38724
38954
|
EShapeDeserializers[EShapeType.EMBEDDED] = deserializeEmbedded;
|
|
38725
38955
|
EShapeCapabilities.set(EShapeType.EMBEDDED, EShapeCapability.EMBEDDED);
|
|
38956
|
+
// Embedded layer
|
|
38726
38957
|
EShapeUploadeds[EShapeType.EMBEDDED_LAYER] = createRectanglePivotedUploaded;
|
|
38958
|
+
// Embedded acceptor edge
|
|
38959
|
+
EShapeUploadeds[EShapeType.EMBEDDED_ACCEPTOR_EDGE] = createCircleUploaded;
|
|
38960
|
+
EShapeDeserializers[EShapeType.EMBEDDED_ACCEPTOR_EDGE] = deserializeEmbeddedAcceptorEdge;
|
|
38961
|
+
EShapeCapabilities.set(EShapeType.EMBEDDED_ACCEPTOR_EDGE, EShapeCapability.EMBEDDED_ACCEPTOR_EDGE);
|
|
38727
38962
|
};
|
|
38728
38963
|
|
|
38729
38964
|
/*
|
|
@@ -85852,7 +86087,7 @@ var DPagination = /** @class */ (function (_super) {
|
|
|
85852
86087
|
}
|
|
85853
86088
|
break;
|
|
85854
86089
|
case 1:
|
|
85855
|
-
this.showDots(this.dots0, 1, value - 2);
|
|
86090
|
+
this.showDots(this.dots0, 1, value - 2 - nleft1);
|
|
85856
86091
|
this.allocButtonPages0(2 + nleft1);
|
|
85857
86092
|
this.showPage(buttonPages0[0], 0);
|
|
85858
86093
|
for (var i = 1, imax = buttonPages0.length - nleft1 - 1; i < imax; ++i) {
|
|
@@ -85907,7 +86142,7 @@ var DPagination = /** @class */ (function (_super) {
|
|
|
85907
86142
|
this.hidePage(buttonPages1[i]);
|
|
85908
86143
|
}
|
|
85909
86144
|
this.showPage(buttonPages1[buttonPages1.length - 1], size - 1);
|
|
85910
|
-
this.showDots(this.dots1, value + 2, size - 2);
|
|
86145
|
+
this.showDots(this.dots1, value + 2 + nright1, size - 2);
|
|
85911
86146
|
break;
|
|
85912
86147
|
case 2:
|
|
85913
86148
|
this.showPage(buttonPages1[0], value + 1);
|
|
@@ -95076,6 +95311,7 @@ exports.EShapeDeleter = EShapeDeleter;
|
|
|
95076
95311
|
exports.EShapeDeserializers = EShapeDeserializers;
|
|
95077
95312
|
exports.EShapeEditor = EShapeEditor;
|
|
95078
95313
|
exports.EShapeEmbedded = EShapeEmbedded;
|
|
95314
|
+
exports.EShapeEmbeddedAcceptorEdge = EShapeEmbeddedAcceptorEdge;
|
|
95079
95315
|
exports.EShapeEmbeddedDatum = EShapeEmbeddedDatum;
|
|
95080
95316
|
exports.EShapeEmbeddedLayer = EShapeEmbeddedLayer;
|
|
95081
95317
|
exports.EShapeEmbeddedLayerContainer = EShapeEmbeddedLayerContainer;
|
|
@@ -95356,6 +95592,7 @@ exports.deserializeCircle = deserializeCircle;
|
|
|
95356
95592
|
exports.deserializeConnectorElbow = deserializeConnectorElbow;
|
|
95357
95593
|
exports.deserializeConnectorLine = deserializeConnectorLine;
|
|
95358
95594
|
exports.deserializeEmbedded = deserializeEmbedded;
|
|
95595
|
+
exports.deserializeEmbeddedAcceptorEdge = deserializeEmbeddedAcceptorEdge;
|
|
95359
95596
|
exports.deserializeEmbeddedLayer = deserializeEmbeddedLayer;
|
|
95360
95597
|
exports.deserializeGradient = deserializeGradient;
|
|
95361
95598
|
exports.deserializeGroup = deserializeGroup;
|