@wcardinal/wcardinal-ui 0.439.0 → 0.441.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/action/e-shape-action-misc-extension.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-open-dialog-opener.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-open-opener.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/action/e-shape-actions.d.ts +2 -1
- package/dist/types/wcardinal/ui/util/dynamic-atlas.d.ts +1 -0
- package/dist/wcardinal/ui/shape/action/e-shape-action-misc-extension.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-open-dialog-opener.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-open-opener.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-extension.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-extension.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dialog-extension.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dialog-extension.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-actions.js +2 -2
- package/dist/wcardinal/ui/shape/action/e-shape-actions.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-container.js +7 -0
- package/dist/wcardinal/ui/shape/e-shape-container.js.map +1 -1
- package/dist/wcardinal/ui/util/dynamic-atlas.js +9 -2
- package/dist/wcardinal/ui/util/dynamic-atlas.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +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-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.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 +22 -8
- package/dist/wcardinal-ui.js +22 -8
- 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.441.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -15082,10 +15082,11 @@
|
|
|
15082
15082
|
function DynamicAtlas(resolution) {
|
|
15083
15083
|
var canvas = (this._canvas = document.createElement("canvas"));
|
|
15084
15084
|
canvas.width = canvas.height = 256;
|
|
15085
|
-
var baseTexture =
|
|
15085
|
+
var baseTexture = pixi_js.BaseTexture.from(canvas, {
|
|
15086
15086
|
mipmap: pixi_js.MIPMAP_MODES.OFF,
|
|
15087
15087
|
resolution: resolution
|
|
15088
|
-
})
|
|
15088
|
+
});
|
|
15089
|
+
this._baseTexture = baseTexture;
|
|
15089
15090
|
this._idToDatum = {};
|
|
15090
15091
|
this._sortedData = [];
|
|
15091
15092
|
this._predefined = {
|
|
@@ -15239,6 +15240,12 @@
|
|
|
15239
15240
|
}
|
|
15240
15241
|
}
|
|
15241
15242
|
};
|
|
15243
|
+
DynamicAtlas.prototype.destroy = function () {
|
|
15244
|
+
var baseTexture = this._baseTexture;
|
|
15245
|
+
if (baseTexture != null) {
|
|
15246
|
+
baseTexture.destroy();
|
|
15247
|
+
}
|
|
15248
|
+
};
|
|
15242
15249
|
DynamicAtlas.ITEM_COMPARATOR = function (a, b) {
|
|
15243
15250
|
if (a.ref <= 0) {
|
|
15244
15251
|
if (b.ref <= 0) {
|
|
@@ -16726,6 +16733,13 @@
|
|
|
16726
16733
|
children[i].destroy();
|
|
16727
16734
|
}
|
|
16728
16735
|
children.length = 0;
|
|
16736
|
+
// Atlas
|
|
16737
|
+
var atlas = this._atlas;
|
|
16738
|
+
if (atlas != null) {
|
|
16739
|
+
atlas.destroy();
|
|
16740
|
+
}
|
|
16741
|
+
// Font Atlas
|
|
16742
|
+
this._fontAtlases.destroy();
|
|
16729
16743
|
//
|
|
16730
16744
|
_super.prototype.destroy.call(this);
|
|
16731
16745
|
};
|
|
@@ -27428,12 +27442,12 @@
|
|
|
27428
27442
|
}
|
|
27429
27443
|
return null;
|
|
27430
27444
|
};
|
|
27431
|
-
EShapeActions.open = function (shape, type, target, inNewWindow) {
|
|
27445
|
+
EShapeActions.open = function (shape, type, target, inNewWindow, environment) {
|
|
27432
27446
|
var opener = EShapeActionOpenOpeners[type];
|
|
27433
27447
|
if (opener != null) {
|
|
27434
27448
|
var diagram = this.toDiagram(shape);
|
|
27435
27449
|
if (diagram) {
|
|
27436
|
-
opener(target, inNewWindow, shape, diagram);
|
|
27450
|
+
opener(target, inNewWindow, shape, diagram, environment);
|
|
27437
27451
|
}
|
|
27438
27452
|
}
|
|
27439
27453
|
else if (isString(target)) {
|
|
@@ -29676,7 +29690,7 @@
|
|
|
29676
29690
|
if (extension != null && this.condition(shape, time, EShapeActionEnvironment)) {
|
|
29677
29691
|
var diagram = EShapeActions.toDiagram(shape);
|
|
29678
29692
|
if (diagram != null) {
|
|
29679
|
-
extension.executor(this.argument(shape, time, EShapeActionEnvironment), shape, diagram);
|
|
29693
|
+
extension.executor(this.argument(shape, time, EShapeActionEnvironment), shape, diagram, EShapeActionEnvironment);
|
|
29680
29694
|
}
|
|
29681
29695
|
}
|
|
29682
29696
|
};
|
|
@@ -29728,7 +29742,7 @@
|
|
|
29728
29742
|
if (this.condition(shape, time, EShapeActionEnvironment)) {
|
|
29729
29743
|
var target = this.target(shape, time, EShapeActionEnvironment);
|
|
29730
29744
|
if (target != null) {
|
|
29731
|
-
EShapeActions.open(shape, this.subtype, target, this.inNewWindow);
|
|
29745
|
+
EShapeActions.open(shape, this.subtype, target, this.inNewWindow, EShapeActionEnvironment);
|
|
29732
29746
|
}
|
|
29733
29747
|
}
|
|
29734
29748
|
};
|
|
@@ -37992,7 +38006,7 @@
|
|
|
37992
38006
|
if (diagram_1 != null) {
|
|
37993
38007
|
var argument_1 = this.argument(shape, time, EShapeActionEnvironment);
|
|
37994
38008
|
setTimeout(function () {
|
|
37995
|
-
opener(target_1, argument_1, shape, diagram_1);
|
|
38009
|
+
opener(target_1, argument_1, shape, diagram_1, EShapeActionEnvironment);
|
|
37996
38010
|
}, 0);
|
|
37997
38011
|
}
|
|
37998
38012
|
}
|