@wcardinal/wcardinal-ui 0.395.0 → 0.397.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-base.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-button-base.d.ts +8 -8
- package/dist/types/wcardinal/ui/d-button-color-gradient.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-button-color.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-button-date.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-button-datetime.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-button-file.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-button-link.d.ts +3 -3
- package/dist/types/wcardinal/ui/d-button-redo.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-button-select.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-button-time.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-button-undo.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-canvas-container.d.ts +3 -3
- package/dist/types/wcardinal/ui/d-chart-plot-area-impl.d.ts +3 -3
- package/dist/types/wcardinal/ui/d-chart-selection-simple.d.ts +5 -5
- package/dist/types/wcardinal/ui/d-diagram-canvas-base.d.ts +0 -1
- package/dist/types/wcardinal/ui/d-diagram-canvas.d.ts +13 -13
- package/dist/types/wcardinal/ui/d-diagram.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-dropdown-base.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-expandable-header.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-html-element.d.ts +3 -3
- package/dist/types/wcardinal/ui/d-link.d.ts +1 -2
- package/dist/types/wcardinal/ui/d-list-item.d.ts +4 -4
- package/dist/types/wcardinal/ui/d-menu-bar-item.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-menu-item-base.d.ts +4 -4
- package/dist/types/wcardinal/ui/d-menu-item-check.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-menu-item-link.d.ts +3 -3
- package/dist/types/wcardinal/ui/d-menu-item-menu.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-menu-item-text.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-pane.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-picker-color-gradient-view.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-picker-color-gradient.d.ts +1 -2
- package/dist/types/wcardinal/ui/d-picker-color.d.ts +1 -2
- package/dist/types/wcardinal/ui/d-scroll-bar-horizontal.d.ts +1 -2
- package/dist/types/wcardinal/ui/d-scroll-bar-vertical.d.ts +1 -2
- package/dist/types/wcardinal/ui/d-shadow.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-slider.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-table-body-cell-button.d.ts +5 -5
- package/dist/types/wcardinal/ui/d-table-body-cell-check.d.ts +3 -3
- package/dist/types/wcardinal/ui/d-table-body-cell-input-tree.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-table-body-cell-link.d.ts +3 -3
- package/dist/types/wcardinal/ui/d-table-body-cell-select-dialog.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-table-body-cell-select-promise.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-table-body-cell-tree.d.ts +4 -4
- package/dist/types/wcardinal/ui/d-table-body-cell.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-table-body.d.ts +2 -3
- package/dist/types/wcardinal/ui/d-table-header-cell.d.ts +1 -2
- package/dist/types/wcardinal/ui/d-table.d.ts +1 -2
- package/dist/types/wcardinal/ui/d-tree-item-button.d.ts +5 -5
- package/dist/types/wcardinal/ui/d-tree-item-non-editable.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-tree-item-text.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-view-gesture-impl.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-view-impl.d.ts +5 -5
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-base.d.ts +1 -3
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-layer.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-shape.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-misc-html-element-base.d.ts +1 -3
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime.d.ts +1 -3
- package/dist/types/wcardinal/ui/shape/e-shape-runtime-impl.d.ts +1 -3
- package/dist/types/wcardinal/ui/shape/e-shape-runtime.d.ts +1 -3
- package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime.d.ts +2 -2
- package/dist/types/wcardinal/ui/util/util-click-outside.d.ts +1 -2
- package/dist/types/wcardinal/ui/util/util-gesture-data.d.ts +1 -3
- package/dist/types/wcardinal/ui/util/util-gesture-modifiers.d.ts +2 -2
- package/dist/types/wcardinal/ui/util/util-gesture.d.ts +1 -2
- package/dist/types/wcardinal/ui/util/util-html-element.d.ts +4 -4
- package/dist/types/wcardinal/ui/util/util-pointer-event.d.ts +2 -3
- package/dist/wcardinal/ui/d-application-layer.js +7 -1
- package/dist/wcardinal/ui/d-application-layer.js.map +1 -1
- package/dist/wcardinal/ui/d-base.js.map +1 -1
- package/dist/wcardinal/ui/d-button-base.js +5 -3
- package/dist/wcardinal/ui/d-button-base.js.map +1 -1
- package/dist/wcardinal/ui/d-button-color-gradient.js.map +1 -1
- package/dist/wcardinal/ui/d-button-color.js.map +1 -1
- package/dist/wcardinal/ui/d-button-date.js.map +1 -1
- package/dist/wcardinal/ui/d-button-datetime.js.map +1 -1
- package/dist/wcardinal/ui/d-button-file.js.map +1 -1
- package/dist/wcardinal/ui/d-button-link.js.map +1 -1
- package/dist/wcardinal/ui/d-button-redo.js.map +1 -1
- package/dist/wcardinal/ui/d-button-select.js.map +1 -1
- package/dist/wcardinal/ui/d-button-time.js.map +1 -1
- package/dist/wcardinal/ui/d-button-undo.js.map +1 -1
- package/dist/wcardinal/ui/d-canvas-container.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-plot-area-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-simple.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-base.js +2 -1
- package/dist/wcardinal/ui/d-diagram-canvas-base.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram.js.map +1 -1
- package/dist/wcardinal/ui/d-dropdown-base.js.map +1 -1
- package/dist/wcardinal/ui/d-expandable-header.js.map +1 -1
- package/dist/wcardinal/ui/d-html-element.js.map +1 -1
- package/dist/wcardinal/ui/d-item-updater.js +1 -1
- package/dist/wcardinal/ui/d-item-updater.js.map +1 -1
- package/dist/wcardinal/ui/d-link.js +1 -2
- package/dist/wcardinal/ui/d-link.js.map +1 -1
- package/dist/wcardinal/ui/d-list-item.js.map +1 -1
- package/dist/wcardinal/ui/d-menu-bar-item.js.map +1 -1
- package/dist/wcardinal/ui/d-menu-item-base.js.map +1 -1
- package/dist/wcardinal/ui/d-menu-item-check.js.map +1 -1
- package/dist/wcardinal/ui/d-menu-item-link.js.map +1 -1
- package/dist/wcardinal/ui/d-menu-item-menu.js.map +1 -1
- package/dist/wcardinal/ui/d-menu-item-text.js.map +1 -1
- package/dist/wcardinal/ui/d-pane.js.map +1 -1
- package/dist/wcardinal/ui/d-picker-color-gradient-view.js +7 -4
- package/dist/wcardinal/ui/d-picker-color-gradient-view.js.map +1 -1
- package/dist/wcardinal/ui/d-picker-color-gradient.js.map +1 -1
- package/dist/wcardinal/ui/d-picker-color.js.map +1 -1
- package/dist/wcardinal/ui/d-scroll-bar-horizontal.js.map +1 -1
- package/dist/wcardinal/ui/d-scroll-bar-vertical.js.map +1 -1
- package/dist/wcardinal/ui/d-shadow.js.map +1 -1
- package/dist/wcardinal/ui/d-slider.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-button.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-check.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-input-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-link.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-select-dialog.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-select-promise.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body.js +1 -1
- package/dist/wcardinal/ui/d-table-body.js.map +1 -1
- package/dist/wcardinal/ui/d-table-header-cell.js +1 -2
- package/dist/wcardinal/ui/d-table-header-cell.js.map +1 -1
- package/dist/wcardinal/ui/d-table.js.map +1 -1
- package/dist/wcardinal/ui/d-tree-item-button.js.map +1 -1
- package/dist/wcardinal/ui/d-tree-item-non-editable.js.map +1 -1
- package/dist/wcardinal/ui/d-tree-item-text.js.map +1 -1
- package/dist/wcardinal/ui/d-view-gesture-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-layer.js +1 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-layer.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-shape.js +1 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-shape.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-html-element-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-runtime.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime.js.map +1 -1
- package/dist/wcardinal/ui/util/util-click-outside.js.map +1 -1
- package/dist/wcardinal/ui/util/util-gesture-data.js.map +1 -1
- package/dist/wcardinal/ui/util/util-gesture-modifiers.js.map +1 -1
- package/dist/wcardinal/ui/util/util-gesture.js.map +1 -1
- package/dist/wcardinal/ui/util/util-html-element.js.map +1 -1
- package/dist/wcardinal/ui/util/util-pointer-event.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 +27 -19
- package/dist/wcardinal-ui.js +27 -19
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +3 -3
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.397.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -22390,7 +22390,6 @@ var EShapeActionValueGestureOperationType = {
|
|
|
22390
22390
|
* Copyright (C) 2019 Toshiba Corporation
|
|
22391
22391
|
* SPDX-License-Identifier: Apache-2.0
|
|
22392
22392
|
*/
|
|
22393
|
-
var InteractionEvent$3 = pixi_js.interaction.InteractionEvent;
|
|
22394
22393
|
var EShapeActionRuntimeGestureLayer = /** @class */ (function (_super) {
|
|
22395
22394
|
__extends(EShapeActionRuntimeGestureLayer, _super);
|
|
22396
22395
|
function EShapeActionRuntimeGestureLayer(value) {
|
|
@@ -22414,7 +22413,7 @@ var EShapeActionRuntimeGestureLayer = /** @class */ (function (_super) {
|
|
|
22414
22413
|
};
|
|
22415
22414
|
EShapeActionRuntimeGestureLayer.prototype.onDown = function (shape, runtime, e) {
|
|
22416
22415
|
_super.prototype.onDown.call(this, shape, runtime, e);
|
|
22417
|
-
if (e instanceof InteractionEvent
|
|
22416
|
+
if (e instanceof pixi_js.InteractionEvent) {
|
|
22418
22417
|
var layer = this._layers.get(shape);
|
|
22419
22418
|
var time = e.data.originalEvent.timeStamp;
|
|
22420
22419
|
if (layer && this.condition(shape, time, EShapeActionEnvironment)) {
|
|
@@ -22491,7 +22490,6 @@ var EShapeActionRuntimeGestureLayer = /** @class */ (function (_super) {
|
|
|
22491
22490
|
* Copyright (C) 2019 Toshiba Corporation
|
|
22492
22491
|
* SPDX-License-Identifier: Apache-2.0
|
|
22493
22492
|
*/
|
|
22494
|
-
var InteractionEvent$2 = pixi_js.interaction.InteractionEvent;
|
|
22495
22493
|
var EShapeActionRuntimeGestureShape = /** @class */ (function (_super) {
|
|
22496
22494
|
__extends(EShapeActionRuntimeGestureShape, _super);
|
|
22497
22495
|
function EShapeActionRuntimeGestureShape(value) {
|
|
@@ -22503,7 +22501,7 @@ var EShapeActionRuntimeGestureShape = /** @class */ (function (_super) {
|
|
|
22503
22501
|
}
|
|
22504
22502
|
EShapeActionRuntimeGestureShape.prototype.onDown = function (shape, runtime, e) {
|
|
22505
22503
|
_super.prototype.onDown.call(this, shape, runtime, e);
|
|
22506
|
-
if (e instanceof InteractionEvent
|
|
22504
|
+
if (e instanceof pixi_js.InteractionEvent) {
|
|
22507
22505
|
if (this.condition(shape, e.data.originalEvent.timeStamp, EShapeActionEnvironment)) {
|
|
22508
22506
|
this.getGestureUtil().onDown(shape, e);
|
|
22509
22507
|
}
|
|
@@ -30175,9 +30173,11 @@ var DButtonBase = /** @class */ (function (_super) {
|
|
|
30175
30173
|
var layer = DApplications.getLayer(_this);
|
|
30176
30174
|
if (layer) {
|
|
30177
30175
|
interactionManager = layer.renderer.plugins.interaction;
|
|
30178
|
-
interactionManager
|
|
30179
|
-
|
|
30180
|
-
|
|
30176
|
+
if (interactionManager != null) {
|
|
30177
|
+
interactionManager.on(UtilPointerEvent.up, onUp);
|
|
30178
|
+
interactionManager.on(UtilPointerEvent.upoutside, onUp);
|
|
30179
|
+
interactionManager.on(UtilPointerEvent.cancel, onUp);
|
|
30180
|
+
}
|
|
30181
30181
|
}
|
|
30182
30182
|
}
|
|
30183
30183
|
});
|
|
@@ -44258,7 +44258,6 @@ var UtilClipboard = /** @class */ (function (_super) {
|
|
|
44258
44258
|
* Copyright (C) 2019 Toshiba Corporation
|
|
44259
44259
|
* SPDX-License-Identifier: Apache-2.0
|
|
44260
44260
|
*/
|
|
44261
|
-
var InteractionEvent$1 = pixi_js.interaction.InteractionEvent;
|
|
44262
44261
|
var DLink = /** @class */ (function () {
|
|
44263
44262
|
function DLink(options) {
|
|
44264
44263
|
this._options = options;
|
|
@@ -44432,7 +44431,7 @@ var DLink = /** @class */ (function () {
|
|
|
44432
44431
|
return false;
|
|
44433
44432
|
case DLinkTarget.AUTO:
|
|
44434
44433
|
if (e != null) {
|
|
44435
|
-
var oe = e instanceof InteractionEvent
|
|
44434
|
+
var oe = e instanceof pixi_js.InteractionEvent ? e.data.originalEvent : e;
|
|
44436
44435
|
return (oe.ctrlKey ||
|
|
44437
44436
|
oe.shiftKey ||
|
|
44438
44437
|
oe.altKey ||
|
|
@@ -70453,7 +70452,13 @@ var DApplicationLayer = /** @class */ (function (_super) {
|
|
|
70453
70452
|
};
|
|
70454
70453
|
DApplicationLayer.prototype.onResize = function () {
|
|
70455
70454
|
var options = this._options;
|
|
70456
|
-
var
|
|
70455
|
+
var bboxes = this._rootElement.getClientRects();
|
|
70456
|
+
if (bboxes.length <= 0) {
|
|
70457
|
+
// The root element size is (0, 0) and not visible.
|
|
70458
|
+
// In this case, skip the resizing.
|
|
70459
|
+
return;
|
|
70460
|
+
}
|
|
70461
|
+
var bbox = bboxes[0];
|
|
70457
70462
|
var newWidth = options.isWidthFixed() ? options.getWidth() : bbox.width;
|
|
70458
70463
|
var newHeight = options.isHeightFixed() ? options.getHeight() : bbox.height;
|
|
70459
70464
|
this.renderer.resize(newWidth, newHeight);
|
|
@@ -72913,9 +72918,12 @@ var DPickerColorGradientView = /** @class */ (function (_super) {
|
|
|
72913
72918
|
.addAttribute("aPosition", new pixi_js.Buffer(vertices, false, false), 2)
|
|
72914
72919
|
.addAttribute("aUv", new pixi_js.Buffer(uvs, false, false), 2)
|
|
72915
72920
|
.addAttribute("aColor", new pixi_js.Buffer(colors, false, false), 4);
|
|
72916
|
-
var
|
|
72917
|
-
|
|
72918
|
-
|
|
72921
|
+
var program = pixi_js.Program.from(VERTEX_SHADER, FRAGMENT_SHADER);
|
|
72922
|
+
var shader = new pixi_js.MeshMaterial(texture, {
|
|
72923
|
+
program: program,
|
|
72924
|
+
uniforms: {
|
|
72925
|
+
uCheckerColors: checkerColors
|
|
72926
|
+
}
|
|
72919
72927
|
});
|
|
72920
72928
|
return new DPickerColorGradientView(nPointsPerData, vertices, uvs, colors, indices, parts, geometry, shader);
|
|
72921
72929
|
};
|
|
@@ -74310,7 +74318,7 @@ var DItemUpdater = /** @class */ (function () {
|
|
|
74310
74318
|
newItemIndexEnd += 1;
|
|
74311
74319
|
}
|
|
74312
74320
|
var newItemCount = newItemIndexEnd - newItemIndexStart;
|
|
74313
|
-
if (newItemCount < oldItemCount
|
|
74321
|
+
if (newItemCount < oldItemCount) {
|
|
74314
74322
|
newItemCount = oldItemCount;
|
|
74315
74323
|
newItemIndexEnd = newItemIndexStart + newItemCount;
|
|
74316
74324
|
}
|
|
@@ -83493,8 +83501,9 @@ var DDiagramCanvasBase = /** @class */ (function (_super) {
|
|
|
83493
83501
|
};
|
|
83494
83502
|
DDiagramCanvasBase.prototype.getLocalBounds = function (result) {
|
|
83495
83503
|
var _a, _b;
|
|
83504
|
+
var _c;
|
|
83496
83505
|
if (result == null) {
|
|
83497
|
-
result = (_a = this._localBoundsRect) !== null && _a !== void 0 ? _a : (
|
|
83506
|
+
result = ((_a = (_c = this)._localBoundsRect) !== null && _a !== void 0 ? _a : (_c._localBoundsRect = new pixi_js.Rectangle()));
|
|
83498
83507
|
}
|
|
83499
83508
|
result.x = 0;
|
|
83500
83509
|
result.y = 0;
|
|
@@ -92687,7 +92696,7 @@ var DTableBody = /** @class */ (function (_super) {
|
|
|
92687
92696
|
var newRowIndexMappedEnd = Math.floor(newRowIndexMappedUpperBound);
|
|
92688
92697
|
newRowIndexMappedEnd += (newRowIndexMappedEnd - newRowIndexMappedStart) % 2 === 1 ? 3 : 2;
|
|
92689
92698
|
var newRowCount = newRowIndexMappedEnd - newRowIndexMappedStart;
|
|
92690
|
-
if (newRowCount < oldRowCount
|
|
92699
|
+
if (newRowCount < oldRowCount) {
|
|
92691
92700
|
newRowCount = oldRowCount;
|
|
92692
92701
|
newRowIndexMappedEnd = newRowIndexMappedStart + newRowCount;
|
|
92693
92702
|
}
|
|
@@ -94059,7 +94068,6 @@ var DTableHeaderCellCheck = /** @class */ (function () {
|
|
|
94059
94068
|
* Copyright (C) 2019 Toshiba Corporation
|
|
94060
94069
|
* SPDX-License-Identifier: Apache-2.0
|
|
94061
94070
|
*/
|
|
94062
|
-
var InteractionEvent = pixi_js.interaction.InteractionEvent;
|
|
94063
94071
|
var DTableHeaderCell = /** @class */ (function (_super) {
|
|
94064
94072
|
__extends(DTableHeaderCell, _super);
|
|
94065
94073
|
function DTableHeaderCell() {
|
|
@@ -94193,7 +94201,7 @@ var DTableHeaderCell = /** @class */ (function (_super) {
|
|
|
94193
94201
|
return e.data.getLocalPosition(this, checkWork).x;
|
|
94194
94202
|
};
|
|
94195
94203
|
DTableHeaderCell.prototype.isCheckClicked = function (e) {
|
|
94196
|
-
if (e instanceof InteractionEvent && this._check.isEnabled) {
|
|
94204
|
+
if (e instanceof pixi_js.InteractionEvent && this._check.isEnabled) {
|
|
94197
94205
|
if (this.isSortable) {
|
|
94198
94206
|
var image = this._images[1];
|
|
94199
94207
|
if (image && image.image != null) {
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.397.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -22387,7 +22387,6 @@
|
|
|
22387
22387
|
* Copyright (C) 2019 Toshiba Corporation
|
|
22388
22388
|
* SPDX-License-Identifier: Apache-2.0
|
|
22389
22389
|
*/
|
|
22390
|
-
var InteractionEvent$3 = pixi_js.interaction.InteractionEvent;
|
|
22391
22390
|
var EShapeActionRuntimeGestureLayer = /** @class */ (function (_super) {
|
|
22392
22391
|
__extends(EShapeActionRuntimeGestureLayer, _super);
|
|
22393
22392
|
function EShapeActionRuntimeGestureLayer(value) {
|
|
@@ -22411,7 +22410,7 @@
|
|
|
22411
22410
|
};
|
|
22412
22411
|
EShapeActionRuntimeGestureLayer.prototype.onDown = function (shape, runtime, e) {
|
|
22413
22412
|
_super.prototype.onDown.call(this, shape, runtime, e);
|
|
22414
|
-
if (e instanceof InteractionEvent
|
|
22413
|
+
if (e instanceof pixi_js.InteractionEvent) {
|
|
22415
22414
|
var layer = this._layers.get(shape);
|
|
22416
22415
|
var time = e.data.originalEvent.timeStamp;
|
|
22417
22416
|
if (layer && this.condition(shape, time, EShapeActionEnvironment)) {
|
|
@@ -22488,7 +22487,6 @@
|
|
|
22488
22487
|
* Copyright (C) 2019 Toshiba Corporation
|
|
22489
22488
|
* SPDX-License-Identifier: Apache-2.0
|
|
22490
22489
|
*/
|
|
22491
|
-
var InteractionEvent$2 = pixi_js.interaction.InteractionEvent;
|
|
22492
22490
|
var EShapeActionRuntimeGestureShape = /** @class */ (function (_super) {
|
|
22493
22491
|
__extends(EShapeActionRuntimeGestureShape, _super);
|
|
22494
22492
|
function EShapeActionRuntimeGestureShape(value) {
|
|
@@ -22500,7 +22498,7 @@
|
|
|
22500
22498
|
}
|
|
22501
22499
|
EShapeActionRuntimeGestureShape.prototype.onDown = function (shape, runtime, e) {
|
|
22502
22500
|
_super.prototype.onDown.call(this, shape, runtime, e);
|
|
22503
|
-
if (e instanceof InteractionEvent
|
|
22501
|
+
if (e instanceof pixi_js.InteractionEvent) {
|
|
22504
22502
|
if (this.condition(shape, e.data.originalEvent.timeStamp, EShapeActionEnvironment)) {
|
|
22505
22503
|
this.getGestureUtil().onDown(shape, e);
|
|
22506
22504
|
}
|
|
@@ -30172,9 +30170,11 @@
|
|
|
30172
30170
|
var layer = DApplications.getLayer(_this);
|
|
30173
30171
|
if (layer) {
|
|
30174
30172
|
interactionManager = layer.renderer.plugins.interaction;
|
|
30175
|
-
interactionManager
|
|
30176
|
-
|
|
30177
|
-
|
|
30173
|
+
if (interactionManager != null) {
|
|
30174
|
+
interactionManager.on(UtilPointerEvent.up, onUp);
|
|
30175
|
+
interactionManager.on(UtilPointerEvent.upoutside, onUp);
|
|
30176
|
+
interactionManager.on(UtilPointerEvent.cancel, onUp);
|
|
30177
|
+
}
|
|
30178
30178
|
}
|
|
30179
30179
|
}
|
|
30180
30180
|
});
|
|
@@ -44255,7 +44255,6 @@
|
|
|
44255
44255
|
* Copyright (C) 2019 Toshiba Corporation
|
|
44256
44256
|
* SPDX-License-Identifier: Apache-2.0
|
|
44257
44257
|
*/
|
|
44258
|
-
var InteractionEvent$1 = pixi_js.interaction.InteractionEvent;
|
|
44259
44258
|
var DLink = /** @class */ (function () {
|
|
44260
44259
|
function DLink(options) {
|
|
44261
44260
|
this._options = options;
|
|
@@ -44429,7 +44428,7 @@
|
|
|
44429
44428
|
return false;
|
|
44430
44429
|
case DLinkTarget.AUTO:
|
|
44431
44430
|
if (e != null) {
|
|
44432
|
-
var oe = e instanceof InteractionEvent
|
|
44431
|
+
var oe = e instanceof pixi_js.InteractionEvent ? e.data.originalEvent : e;
|
|
44433
44432
|
return (oe.ctrlKey ||
|
|
44434
44433
|
oe.shiftKey ||
|
|
44435
44434
|
oe.altKey ||
|
|
@@ -49188,7 +49187,13 @@
|
|
|
49188
49187
|
};
|
|
49189
49188
|
DApplicationLayer.prototype.onResize = function () {
|
|
49190
49189
|
var options = this._options;
|
|
49191
|
-
var
|
|
49190
|
+
var bboxes = this._rootElement.getClientRects();
|
|
49191
|
+
if (bboxes.length <= 0) {
|
|
49192
|
+
// The root element size is (0, 0) and not visible.
|
|
49193
|
+
// In this case, skip the resizing.
|
|
49194
|
+
return;
|
|
49195
|
+
}
|
|
49196
|
+
var bbox = bboxes[0];
|
|
49192
49197
|
var newWidth = options.isWidthFixed() ? options.getWidth() : bbox.width;
|
|
49193
49198
|
var newHeight = options.isHeightFixed() ? options.getHeight() : bbox.height;
|
|
49194
49199
|
this.renderer.resize(newWidth, newHeight);
|
|
@@ -51976,9 +51981,12 @@
|
|
|
51976
51981
|
.addAttribute("aPosition", new pixi_js.Buffer(vertices, false, false), 2)
|
|
51977
51982
|
.addAttribute("aUv", new pixi_js.Buffer(uvs, false, false), 2)
|
|
51978
51983
|
.addAttribute("aColor", new pixi_js.Buffer(colors, false, false), 4);
|
|
51979
|
-
var
|
|
51980
|
-
|
|
51981
|
-
|
|
51984
|
+
var program = pixi_js.Program.from(VERTEX_SHADER, FRAGMENT_SHADER);
|
|
51985
|
+
var shader = new pixi_js.MeshMaterial(texture, {
|
|
51986
|
+
program: program,
|
|
51987
|
+
uniforms: {
|
|
51988
|
+
uCheckerColors: checkerColors
|
|
51989
|
+
}
|
|
51982
51990
|
});
|
|
51983
51991
|
return new DPickerColorGradientView(nPointsPerData, vertices, uvs, colors, indices, parts, geometry, shader);
|
|
51984
51992
|
};
|
|
@@ -53443,7 +53451,7 @@
|
|
|
53443
53451
|
newItemIndexEnd += 1;
|
|
53444
53452
|
}
|
|
53445
53453
|
var newItemCount = newItemIndexEnd - newItemIndexStart;
|
|
53446
|
-
if (newItemCount < oldItemCount
|
|
53454
|
+
if (newItemCount < oldItemCount) {
|
|
53447
53455
|
newItemCount = oldItemCount;
|
|
53448
53456
|
newItemIndexEnd = newItemIndexStart + newItemCount;
|
|
53449
53457
|
}
|
|
@@ -62646,8 +62654,9 @@
|
|
|
62646
62654
|
};
|
|
62647
62655
|
DDiagramCanvasBase.prototype.getLocalBounds = function (result) {
|
|
62648
62656
|
var _a, _b;
|
|
62657
|
+
var _c;
|
|
62649
62658
|
if (result == null) {
|
|
62650
|
-
result = (_a = this._localBoundsRect) !== null && _a !== void 0 ? _a : (
|
|
62659
|
+
result = ((_a = (_c = this)._localBoundsRect) !== null && _a !== void 0 ? _a : (_c._localBoundsRect = new pixi_js.Rectangle()));
|
|
62651
62660
|
}
|
|
62652
62661
|
result.x = 0;
|
|
62653
62662
|
result.y = 0;
|
|
@@ -71935,7 +71944,7 @@
|
|
|
71935
71944
|
var newRowIndexMappedEnd = Math.floor(newRowIndexMappedUpperBound);
|
|
71936
71945
|
newRowIndexMappedEnd += (newRowIndexMappedEnd - newRowIndexMappedStart) % 2 === 1 ? 3 : 2;
|
|
71937
71946
|
var newRowCount = newRowIndexMappedEnd - newRowIndexMappedStart;
|
|
71938
|
-
if (newRowCount < oldRowCount
|
|
71947
|
+
if (newRowCount < oldRowCount) {
|
|
71939
71948
|
newRowCount = oldRowCount;
|
|
71940
71949
|
newRowIndexMappedEnd = newRowIndexMappedStart + newRowCount;
|
|
71941
71950
|
}
|
|
@@ -73307,7 +73316,6 @@
|
|
|
73307
73316
|
* Copyright (C) 2019 Toshiba Corporation
|
|
73308
73317
|
* SPDX-License-Identifier: Apache-2.0
|
|
73309
73318
|
*/
|
|
73310
|
-
var InteractionEvent = pixi_js.interaction.InteractionEvent;
|
|
73311
73319
|
var DTableHeaderCell = /** @class */ (function (_super) {
|
|
73312
73320
|
__extends(DTableHeaderCell, _super);
|
|
73313
73321
|
function DTableHeaderCell() {
|
|
@@ -73441,7 +73449,7 @@
|
|
|
73441
73449
|
return e.data.getLocalPosition(this, checkWork).x;
|
|
73442
73450
|
};
|
|
73443
73451
|
DTableHeaderCell.prototype.isCheckClicked = function (e) {
|
|
73444
|
-
if (e instanceof InteractionEvent && this._check.isEnabled) {
|
|
73452
|
+
if (e instanceof pixi_js.InteractionEvent && this._check.isEnabled) {
|
|
73445
73453
|
if (this.isSortable) {
|
|
73446
73454
|
var image = this._images[1];
|
|
73447
73455
|
if (image && image.image != null) {
|