@wcardinal/wcardinal-ui 0.261.0 → 0.262.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/d-diagram-serialized.d.ts +3 -1
- package/dist/types/wcardinal/ui/shape/e-shape-capability-container-impl.d.ts +6 -9
- package/dist/types/wcardinal/ui/shape/e-shape-capability-container.d.ts +6 -7
- package/dist/types/wcardinal/ui/shape/e-shape-copy-part.d.ts +1 -0
- package/dist/wcardinal/ui/d-diagram-serialized.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-capabilities.js +4 -7
- package/dist/wcardinal/ui/shape/e-shape-capabilities.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-capability-container-impl.js +22 -36
- package/dist/wcardinal/ui/shape/e-shape-capability-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-capability-container.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-copy-part.js +3 -1
- package/dist/wcardinal/ui/shape/e-shape-copy-part.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-base.js +16 -2
- package/dist/wcardinal/ui/shape/variant/deserialize-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js +21 -2
- package/dist/wcardinal/ui/shape/variant/e-shape-base.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 +65 -49
- package/dist/wcardinal-ui.js +65 -49
- 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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.262.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -2564,6 +2564,7 @@
|
|
|
2564
2564
|
var IMAGE = 64;
|
|
2565
2565
|
var DATA$1 = 128;
|
|
2566
2566
|
var CONNECTOR$1 = 256;
|
|
2567
|
+
var CAPABILITY = 512;
|
|
2567
2568
|
var EShapeCopyPart = {
|
|
2568
2569
|
NONE: 0,
|
|
2569
2570
|
TRANSFORM: TRANSFORM,
|
|
@@ -2577,7 +2578,8 @@
|
|
|
2577
2578
|
/** @deprecated in favor of {@link DATA} */
|
|
2578
2579
|
TAG: DATA$1,
|
|
2579
2580
|
CONNECTOR: CONNECTOR$1,
|
|
2580
|
-
|
|
2581
|
+
CAPABILITY: CAPABILITY,
|
|
2582
|
+
ALL: TRANSFORM | SIZE | STYLE | ACTION$1 | POINTS | STATE | IMAGE | DATA$1 | CONNECTOR$1 | CAPABILITY
|
|
2581
2583
|
};
|
|
2582
2584
|
|
|
2583
2585
|
/*
|
|
@@ -3948,51 +3950,37 @@
|
|
|
3948
3950
|
|
|
3949
3951
|
var EShapeCapabilityContainerImpl = /** @class */ (function () {
|
|
3950
3952
|
function EShapeCapabilityContainerImpl() {
|
|
3951
|
-
this.
|
|
3952
|
-
this.
|
|
3953
|
+
this.added = EShapeCapability.NONE;
|
|
3954
|
+
this.removed = EShapeCapability.NONE;
|
|
3953
3955
|
}
|
|
3954
|
-
EShapeCapabilityContainerImpl.prototype.contains = function (target) {
|
|
3955
|
-
if (this._removed & target) {
|
|
3956
|
-
return false;
|
|
3957
|
-
}
|
|
3958
|
-
if (this._added & target) {
|
|
3959
|
-
return true;
|
|
3960
|
-
}
|
|
3961
|
-
};
|
|
3962
3956
|
EShapeCapabilityContainerImpl.prototype.add = function (target) {
|
|
3963
|
-
this.
|
|
3964
|
-
this.
|
|
3957
|
+
this.removed &= ~target;
|
|
3958
|
+
this.added |= target;
|
|
3959
|
+
return this;
|
|
3965
3960
|
};
|
|
3966
3961
|
EShapeCapabilityContainerImpl.prototype.remove = function (target) {
|
|
3967
|
-
this.
|
|
3968
|
-
this.
|
|
3962
|
+
this.added &= ~target;
|
|
3963
|
+
this.removed |= target;
|
|
3964
|
+
return this;
|
|
3969
3965
|
};
|
|
3970
|
-
EShapeCapabilityContainerImpl.prototype.
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
this._removed = target._removed;
|
|
3974
|
-
}
|
|
3966
|
+
EShapeCapabilityContainerImpl.prototype.clear = function () {
|
|
3967
|
+
this.added = EShapeCapability.NONE;
|
|
3968
|
+
this.removed = EShapeCapability.NONE;
|
|
3975
3969
|
return this;
|
|
3976
3970
|
};
|
|
3977
|
-
EShapeCapabilityContainerImpl.prototype.
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
if (added !== EShapeCapability.NONE && removed !== EShapeCapability.NONE) {
|
|
3981
|
-
return manager.addResource(JSON.stringify([added, removed]));
|
|
3971
|
+
EShapeCapabilityContainerImpl.prototype.set = function (added, removed) {
|
|
3972
|
+
if (added != null) {
|
|
3973
|
+
this.added = added;
|
|
3982
3974
|
}
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
EShapeCapabilityContainerImpl.prototype.deserialize = function (target, manager) {
|
|
3986
|
-
var resources = manager.resources;
|
|
3987
|
-
if (0 <= target && target < resources.length) {
|
|
3988
|
-
var parsed = manager.getCapability(target);
|
|
3989
|
-
if (parsed == null) {
|
|
3990
|
-
parsed = JSON.parse(resources[target]);
|
|
3991
|
-
manager.setCapability(target, parsed);
|
|
3992
|
-
}
|
|
3993
|
-
this._added = parsed[0];
|
|
3994
|
-
this._removed = parsed[1];
|
|
3975
|
+
if (removed != null) {
|
|
3976
|
+
this.removed = removed;
|
|
3995
3977
|
}
|
|
3978
|
+
return this;
|
|
3979
|
+
};
|
|
3980
|
+
EShapeCapabilityContainerImpl.prototype.copy = function (target) {
|
|
3981
|
+
this.added = target.added;
|
|
3982
|
+
this.removed = target.removed;
|
|
3983
|
+
return this;
|
|
3996
3984
|
};
|
|
3997
3985
|
return EShapeCapabilityContainerImpl;
|
|
3998
3986
|
}());
|
|
@@ -4314,8 +4302,13 @@
|
|
|
4314
4302
|
var cursorId = cursor != null ? manager.addResource(cursor) : -1;
|
|
4315
4303
|
var title = this.title;
|
|
4316
4304
|
var titleId = title != null ? manager.addResource(title) : -1;
|
|
4305
|
+
var capabilitiesAdded = EShapeCapability.NONE;
|
|
4306
|
+
var capabilitiesRemoved = EShapeCapability.NONE;
|
|
4317
4307
|
var capability = this._capability;
|
|
4318
|
-
|
|
4308
|
+
if (capability != null) {
|
|
4309
|
+
capabilitiesAdded = capability.added;
|
|
4310
|
+
capabilitiesRemoved = capability.removed;
|
|
4311
|
+
}
|
|
4319
4312
|
return [
|
|
4320
4313
|
this.type,
|
|
4321
4314
|
manager.addResource(this.id),
|
|
@@ -4344,7 +4337,8 @@
|
|
|
4344
4337
|
shortcutId,
|
|
4345
4338
|
titleId,
|
|
4346
4339
|
this.uuid,
|
|
4347
|
-
|
|
4340
|
+
capabilitiesAdded,
|
|
4341
|
+
capabilitiesRemoved
|
|
4348
4342
|
];
|
|
4349
4343
|
};
|
|
4350
4344
|
EShapeBase.prototype.addUuid = function (manager) {
|
|
@@ -4739,6 +4733,18 @@
|
|
|
4739
4733
|
}
|
|
4740
4734
|
}
|
|
4741
4735
|
}
|
|
4736
|
+
if (part & EShapeCopyPart.CAPABILITY) {
|
|
4737
|
+
var sourceCapability = source.getCapability();
|
|
4738
|
+
if (sourceCapability != null) {
|
|
4739
|
+
this.capability.copy(sourceCapability);
|
|
4740
|
+
}
|
|
4741
|
+
else {
|
|
4742
|
+
var capability = this._capability;
|
|
4743
|
+
if (capability != null) {
|
|
4744
|
+
capability.clear();
|
|
4745
|
+
}
|
|
4746
|
+
}
|
|
4747
|
+
}
|
|
4742
4748
|
return this;
|
|
4743
4749
|
};
|
|
4744
4750
|
return EShapeBase;
|
|
@@ -16004,18 +16010,15 @@
|
|
|
16004
16010
|
};
|
|
16005
16011
|
EShapeCapabilities.contains = function (shape, target) {
|
|
16006
16012
|
if (shape != null) {
|
|
16013
|
+
var capability = this.get(shape.type);
|
|
16007
16014
|
var shapeCapability = shape.getCapability();
|
|
16008
16015
|
if (shapeCapability != null) {
|
|
16009
|
-
|
|
16010
|
-
if (contains != null) {
|
|
16011
|
-
return contains;
|
|
16012
|
-
}
|
|
16016
|
+
capability = (capability & ~shapeCapability.removed) | shapeCapability.added;
|
|
16013
16017
|
}
|
|
16014
|
-
|
|
16015
|
-
if (typeCapability & target) {
|
|
16018
|
+
if (capability & target) {
|
|
16016
16019
|
return true;
|
|
16017
16020
|
}
|
|
16018
|
-
if (
|
|
16021
|
+
if (capability & EShapeCapability.CHILDREN) {
|
|
16019
16022
|
var children = shape.children;
|
|
16020
16023
|
for (var i = 0, imax = children.length; i < imax; ++i) {
|
|
16021
16024
|
if (this.contains(children[i], target)) {
|
|
@@ -32739,8 +32742,21 @@
|
|
|
32739
32742
|
var item26 = item[26];
|
|
32740
32743
|
result.uuid = item26 != null ? item26 : 0;
|
|
32741
32744
|
var item27 = item[27];
|
|
32742
|
-
|
|
32743
|
-
|
|
32745
|
+
var item28 = item[28];
|
|
32746
|
+
if (item27 != null && EShapeCapability.NONE !== item27) {
|
|
32747
|
+
if (item28 != null && EShapeCapability.NONE !== item28) {
|
|
32748
|
+
var capability = result.capability;
|
|
32749
|
+
capability.added = item27;
|
|
32750
|
+
capability.removed = item28;
|
|
32751
|
+
}
|
|
32752
|
+
else {
|
|
32753
|
+
result.capability.added = item27;
|
|
32754
|
+
}
|
|
32755
|
+
}
|
|
32756
|
+
else {
|
|
32757
|
+
if (item28 != null && EShapeCapability.NONE !== item28) {
|
|
32758
|
+
result.capability.removed = item28;
|
|
32759
|
+
}
|
|
32744
32760
|
}
|
|
32745
32761
|
var children = deserializeChildren(item[20], manager, result);
|
|
32746
32762
|
deserializeActionValues(item[17], manager, result);
|