@wcardinal/wcardinal-ui 0.329.0 → 0.331.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-animation-base.d.ts +3 -1
- package/dist/types/wcardinal/ui/d-animation.d.ts +21 -3
- package/dist/types/wcardinal/ui/d-diagram-canvas-base.d.ts +12 -0
- package/dist/types/wcardinal/ui/d-diagram-serialized.d.ts +6 -0
- package/dist/types/wcardinal/ui/d-view-gesture-impl.d.ts +7 -4
- package/dist/types/wcardinal/ui/d-view-impl.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-view-parent.d.ts +5 -0
- package/dist/types/wcardinal/ui/d-view-transform-impl.d.ts +8 -4
- package/dist/types/wcardinal/ui/d-view.d.ts +35 -0
- package/dist/types/wcardinal/ui/index.d.ts +1 -1
- package/dist/types/wcardinal/ui/util/util-gesture.d.ts +12 -0
- package/dist/wcardinal/ui/d-animation-base.js +10 -0
- package/dist/wcardinal/ui/d-animation-base.js.map +1 -1
- package/dist/wcardinal/ui/d-animation.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-base.js +3 -0
- package/dist/wcardinal/ui/d-diagram-base.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-base.js +39 -1
- package/dist/wcardinal/ui/d-diagram-canvas-base.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-editor.js +3 -0
- package/dist/wcardinal/ui/d-diagram-canvas-editor.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-serialized.js.map +1 -1
- package/dist/wcardinal/ui/d-diagrams.js +6 -0
- package/dist/wcardinal/ui/d-diagrams.js.map +1 -1
- package/dist/wcardinal/ui/d-view-gesture-impl.js +30 -9
- package/dist/wcardinal/ui/d-view-gesture-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view-impl.js +44 -27
- package/dist/wcardinal/ui/d-view-impl.js.map +1 -1
- package/dist/wcardinal/ui/{d-view-stopper.js → d-view-parent.js} +1 -1
- package/dist/wcardinal/ui/d-view-parent.js.map +1 -0
- package/dist/wcardinal/ui/d-view-transform-impl.js +30 -5
- package/dist/wcardinal/ui/d-view-transform-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view.js.map +1 -1
- package/dist/wcardinal/ui/index.js +1 -1
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/util/util-gesture.js +22 -0
- package/dist/wcardinal/ui/util/util-gesture.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 +186 -42
- package/dist/wcardinal-ui.js +186 -42
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/wcardinal/ui/d-view-stopper.d.ts +0 -4
- package/dist/wcardinal/ui/d-view-stopper.js.map +0 -1
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.331.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -15283,6 +15283,7 @@ var DAnimationBase = /** @class */ (function (_super) {
|
|
|
15283
15283
|
};
|
|
15284
15284
|
_this._onStart = options === null || options === void 0 ? void 0 : options.onStart;
|
|
15285
15285
|
_this._onEnd = options === null || options === void 0 ? void 0 : options.onEnd;
|
|
15286
|
+
_this._onStop = options === null || options === void 0 ? void 0 : options.onStop;
|
|
15286
15287
|
_this._timing = (_c = options === null || options === void 0 ? void 0 : options.timing) !== null && _c !== void 0 ? _c : DAnimationTimings.ELASTIC;
|
|
15287
15288
|
// Events
|
|
15288
15289
|
var on = options === null || options === void 0 ? void 0 : options.on;
|
|
@@ -15351,6 +15352,13 @@ var DAnimationBase = /** @class */ (function (_super) {
|
|
|
15351
15352
|
}
|
|
15352
15353
|
this.emit("end", isReverse, this);
|
|
15353
15354
|
};
|
|
15355
|
+
DAnimationBase.prototype.onStop = function (isReverse) {
|
|
15356
|
+
var onStop = this._onStop;
|
|
15357
|
+
if (onStop != null) {
|
|
15358
|
+
onStop(isReverse, this);
|
|
15359
|
+
}
|
|
15360
|
+
this.emit("stop", isReverse, this);
|
|
15361
|
+
};
|
|
15354
15362
|
DAnimationBase.prototype.isStarted = function () {
|
|
15355
15363
|
return this._id != null;
|
|
15356
15364
|
};
|
|
@@ -15387,6 +15395,8 @@ var DAnimationBase = /** @class */ (function (_super) {
|
|
|
15387
15395
|
if (id != null) {
|
|
15388
15396
|
this._id = null;
|
|
15389
15397
|
window.clearTimeout(id);
|
|
15398
|
+
// OnStop
|
|
15399
|
+
this.onStop(this._reverse);
|
|
15390
15400
|
}
|
|
15391
15401
|
};
|
|
15392
15402
|
DAnimationBase.prototype.end = function () {
|
|
@@ -15599,6 +15609,12 @@ var UtilGesture = /** @class */ (function () {
|
|
|
15599
15609
|
this._onStart = on.start;
|
|
15600
15610
|
this._onMove = on.move;
|
|
15601
15611
|
this._onEnd = on.end;
|
|
15612
|
+
this._onStop = on.stop;
|
|
15613
|
+
var easing = on.easing;
|
|
15614
|
+
if (easing != null) {
|
|
15615
|
+
this._onEasingStart = easing.start;
|
|
15616
|
+
this._onEasingEnd = easing.end;
|
|
15617
|
+
}
|
|
15602
15618
|
}
|
|
15603
15619
|
this._modifier = (_a = options === null || options === void 0 ? void 0 : options.modifier) !== null && _a !== void 0 ? _a : UtilGestureModifier.NONE;
|
|
15604
15620
|
var checker = options.checker;
|
|
@@ -15797,12 +15813,20 @@ var UtilGesture = /** @class */ (function () {
|
|
|
15797
15813
|
onEnd(target);
|
|
15798
15814
|
}
|
|
15799
15815
|
// Start the Easing
|
|
15816
|
+
var onEasingStart = this._onEasingStart;
|
|
15817
|
+
if (onEasingStart) {
|
|
15818
|
+
onEasingStart(data.target);
|
|
15819
|
+
}
|
|
15800
15820
|
var easing = data.easing;
|
|
15801
15821
|
if (easing) {
|
|
15802
15822
|
easing.onEnd(e.data.originalEvent.timeStamp - data.time);
|
|
15803
15823
|
}
|
|
15804
15824
|
else {
|
|
15805
15825
|
this.deleteData(data);
|
|
15826
|
+
var onEasingEnd = this._onEasingEnd;
|
|
15827
|
+
if (onEasingEnd) {
|
|
15828
|
+
onEasingEnd(data.target);
|
|
15829
|
+
}
|
|
15806
15830
|
}
|
|
15807
15831
|
};
|
|
15808
15832
|
UtilGesture.prototype.onEasingMove = function (dx, dy, ds, time, data) {
|
|
@@ -15825,6 +15849,10 @@ var UtilGesture = /** @class */ (function () {
|
|
|
15825
15849
|
};
|
|
15826
15850
|
UtilGesture.prototype.onEasingEnd = function (data) {
|
|
15827
15851
|
this.deleteData(data);
|
|
15852
|
+
var onEasingEnd = this._onEasingEnd;
|
|
15853
|
+
if (onEasingEnd) {
|
|
15854
|
+
onEasingEnd(data.target);
|
|
15855
|
+
}
|
|
15828
15856
|
};
|
|
15829
15857
|
UtilGesture.prototype.stop = function (target) {
|
|
15830
15858
|
var _a;
|
|
@@ -15834,6 +15862,10 @@ var UtilGesture = /** @class */ (function () {
|
|
|
15834
15862
|
}
|
|
15835
15863
|
(_a = data.easing) === null || _a === void 0 ? void 0 : _a.stop();
|
|
15836
15864
|
this.deleteData(data);
|
|
15865
|
+
var onStop = this._onStop;
|
|
15866
|
+
if (onStop) {
|
|
15867
|
+
onStop(target);
|
|
15868
|
+
}
|
|
15837
15869
|
};
|
|
15838
15870
|
return UtilGesture;
|
|
15839
15871
|
}());
|
|
@@ -15843,11 +15875,11 @@ var UtilGesture = /** @class */ (function () {
|
|
|
15843
15875
|
* SPDX-License-Identifier: Apache-2.0
|
|
15844
15876
|
*/
|
|
15845
15877
|
var DViewGestureImpl = /** @class */ (function () {
|
|
15846
|
-
function DViewGestureImpl(
|
|
15878
|
+
function DViewGestureImpl(owner, toTarget, parent, constraint, theme, options) {
|
|
15847
15879
|
var _this = this;
|
|
15848
15880
|
var _a, _b;
|
|
15881
|
+
this._owner = owner;
|
|
15849
15882
|
this._parent = parent;
|
|
15850
|
-
this._stopper = stopper;
|
|
15851
15883
|
this._constraint = constraint;
|
|
15852
15884
|
var mode = toEnum((_a = options === null || options === void 0 ? void 0 : options.mode) !== null && _a !== void 0 ? _a : theme.getGestureMode(), UtilGestureMode);
|
|
15853
15885
|
var modifier = toEnum((_b = options === null || options === void 0 ? void 0 : options.modifier) !== null && _b !== void 0 ? _b : theme.getGestureModifier(), UtilGestureModifier);
|
|
@@ -15861,24 +15893,45 @@ var DViewGestureImpl = /** @class */ (function () {
|
|
|
15861
15893
|
},
|
|
15862
15894
|
on: {
|
|
15863
15895
|
start: function () {
|
|
15864
|
-
_this.
|
|
15896
|
+
_this.onStart();
|
|
15865
15897
|
},
|
|
15866
15898
|
move: function (target, dx, dy, x, y, ds) {
|
|
15867
|
-
_this.onGestureMove(toTarget(
|
|
15899
|
+
_this.onGestureMove(toTarget(owner), dx, dy, x, y, ds);
|
|
15900
|
+
},
|
|
15901
|
+
easing: {
|
|
15902
|
+
end: function () {
|
|
15903
|
+
_this.onEnd();
|
|
15904
|
+
}
|
|
15905
|
+
},
|
|
15906
|
+
stop: function () {
|
|
15907
|
+
_this.onStop();
|
|
15868
15908
|
}
|
|
15869
15909
|
}
|
|
15870
15910
|
});
|
|
15871
15911
|
}
|
|
15872
15912
|
}
|
|
15913
|
+
DViewGestureImpl.prototype.onStart = function () {
|
|
15914
|
+
var parent = this._parent;
|
|
15915
|
+
parent.stop();
|
|
15916
|
+
parent.emit("start", this, parent);
|
|
15917
|
+
};
|
|
15918
|
+
DViewGestureImpl.prototype.onEnd = function () {
|
|
15919
|
+
var parent = this._parent;
|
|
15920
|
+
parent.emit("end", this, parent);
|
|
15921
|
+
};
|
|
15922
|
+
DViewGestureImpl.prototype.onStop = function () {
|
|
15923
|
+
var parent = this._parent;
|
|
15924
|
+
parent.emit("stop", this, parent);
|
|
15925
|
+
};
|
|
15873
15926
|
DViewGestureImpl.prototype.onGestureMove = function (target, dx, dy, x, y, ds) {
|
|
15874
15927
|
if (target) {
|
|
15875
15928
|
// Scale
|
|
15876
|
-
var
|
|
15929
|
+
var parent_1 = this._parent;
|
|
15877
15930
|
var oldScale = target.scale;
|
|
15878
15931
|
var oldScaleX = oldScale.x;
|
|
15879
15932
|
var oldScaleY = oldScale.y;
|
|
15880
|
-
var newScaleX =
|
|
15881
|
-
var newScaleY =
|
|
15933
|
+
var newScaleX = parent_1.toNormalizedScale(oldScaleX * ds);
|
|
15934
|
+
var newScaleY = parent_1.toNormalizedScale(oldScaleY * ds);
|
|
15882
15935
|
var scaleRatioX = newScaleX / oldScaleX;
|
|
15883
15936
|
var scaleRatioY = newScaleY / oldScaleY;
|
|
15884
15937
|
var scaleRatio = ds < 1 ? Math.max(scaleRatioX, scaleRatioY) : Math.min(scaleRatioX, scaleRatioY);
|
|
@@ -15896,11 +15949,11 @@ var DViewGestureImpl = /** @class */ (function () {
|
|
|
15896
15949
|
};
|
|
15897
15950
|
DViewGestureImpl.prototype.stop = function () {
|
|
15898
15951
|
var _a;
|
|
15899
|
-
(_a = this._gestureUtil) === null || _a === void 0 ? void 0 : _a.stop(this.
|
|
15952
|
+
(_a = this._gestureUtil) === null || _a === void 0 ? void 0 : _a.stop(this._owner);
|
|
15900
15953
|
};
|
|
15901
15954
|
DViewGestureImpl.prototype.onDown = function (e) {
|
|
15902
15955
|
var _a;
|
|
15903
|
-
(_a = this._gestureUtil) === null || _a === void 0 ? void 0 : _a.onDown(this.
|
|
15956
|
+
(_a = this._gestureUtil) === null || _a === void 0 ? void 0 : _a.onDown(this._owner, e);
|
|
15904
15957
|
};
|
|
15905
15958
|
return DViewGestureImpl;
|
|
15906
15959
|
}());
|
|
@@ -15910,9 +15963,9 @@ var DViewGestureImpl = /** @class */ (function () {
|
|
|
15910
15963
|
* SPDX-License-Identifier: Apache-2.0
|
|
15911
15964
|
*/
|
|
15912
15965
|
var DViewTransformImpl = /** @class */ (function () {
|
|
15913
|
-
function DViewTransformImpl(
|
|
15966
|
+
function DViewTransformImpl(owner, toTarget, parent, constraint, duration) {
|
|
15914
15967
|
var _this = this;
|
|
15915
|
-
this.
|
|
15968
|
+
this._owner = owner;
|
|
15916
15969
|
this._toTarget = toTarget;
|
|
15917
15970
|
this._constraint = constraint;
|
|
15918
15971
|
this._newScaleX = 1;
|
|
@@ -15923,15 +15976,29 @@ var DViewTransformImpl = /** @class */ (function () {
|
|
|
15923
15976
|
this._oldScaleY = 1;
|
|
15924
15977
|
this._oldX = 0;
|
|
15925
15978
|
this._oldY = 0;
|
|
15979
|
+
this._isStarted = false;
|
|
15926
15980
|
this._animation = new DAnimationBase({
|
|
15981
|
+
onStart: function () {
|
|
15982
|
+
_this.onStart();
|
|
15983
|
+
},
|
|
15927
15984
|
onTime: function (time) {
|
|
15928
15985
|
_this.onTime(time);
|
|
15929
15986
|
},
|
|
15987
|
+
onEnd: function () {
|
|
15988
|
+
_this.onEnd();
|
|
15989
|
+
},
|
|
15990
|
+
onStop: function () {
|
|
15991
|
+
_this.onStop();
|
|
15992
|
+
},
|
|
15930
15993
|
duration: duration
|
|
15931
15994
|
});
|
|
15932
|
-
this.
|
|
15995
|
+
this._parent = parent;
|
|
15933
15996
|
this._duration = duration;
|
|
15934
15997
|
}
|
|
15998
|
+
DViewTransformImpl.prototype.onStart = function () {
|
|
15999
|
+
var parent = this._parent;
|
|
16000
|
+
parent.emit("start", this, parent);
|
|
16001
|
+
};
|
|
15935
16002
|
DViewTransformImpl.prototype.onTime = function (time) {
|
|
15936
16003
|
var w0 = 1 - time;
|
|
15937
16004
|
var w1 = time;
|
|
@@ -15939,20 +16006,31 @@ var DViewTransformImpl = /** @class */ (function () {
|
|
|
15939
16006
|
var scaleY = this._oldScaleY * w0 + this._newScaleY * w1;
|
|
15940
16007
|
var x = this._oldX * w0 + this._newX * w1;
|
|
15941
16008
|
var y = this._oldY * w0 + this._newY * w1;
|
|
15942
|
-
var target = this._toTarget(this.
|
|
16009
|
+
var target = this._toTarget(this._owner);
|
|
15943
16010
|
if (target != null) {
|
|
15944
16011
|
this._constraint(target, x, y, scaleX, scaleY);
|
|
15945
16012
|
}
|
|
15946
16013
|
};
|
|
16014
|
+
DViewTransformImpl.prototype.onEnd = function () {
|
|
16015
|
+
var parent = this._parent;
|
|
16016
|
+
parent.emit("end", this, parent);
|
|
16017
|
+
};
|
|
16018
|
+
DViewTransformImpl.prototype.onStop = function () {
|
|
16019
|
+
var parent = this._parent;
|
|
16020
|
+
parent.emit("stop", this, parent);
|
|
16021
|
+
};
|
|
15947
16022
|
DViewTransformImpl.prototype.start = function (target, x, y, scaleX, scaleY, duration, stop) {
|
|
16023
|
+
var parent = this._parent;
|
|
15948
16024
|
if (stop !== false) {
|
|
15949
|
-
|
|
16025
|
+
parent.stop();
|
|
15950
16026
|
}
|
|
15951
16027
|
if (duration == null) {
|
|
15952
16028
|
duration = this._duration;
|
|
15953
16029
|
}
|
|
15954
16030
|
if (duration <= 0) {
|
|
16031
|
+
this.onStart();
|
|
15955
16032
|
this._constraint(target, x, y, scaleX, scaleY);
|
|
16033
|
+
this.onEnd();
|
|
15956
16034
|
}
|
|
15957
16035
|
else {
|
|
15958
16036
|
var position = target.position;
|
|
@@ -15979,45 +16057,61 @@ var DViewTransformImpl = /** @class */ (function () {
|
|
|
15979
16057
|
* Copyright (C) 2019 Toshiba Corporation
|
|
15980
16058
|
* SPDX-License-Identifier: Apache-2.0
|
|
15981
16059
|
*/
|
|
15982
|
-
var DViewImpl = /** @class */ (function () {
|
|
16060
|
+
var DViewImpl = /** @class */ (function (_super) {
|
|
16061
|
+
__extends(DViewImpl, _super);
|
|
15983
16062
|
function DViewImpl(parent, toTarget, options) {
|
|
16063
|
+
var _this = this;
|
|
15984
16064
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
|
|
16065
|
+
_this = _super.call(this) || this;
|
|
16066
|
+
_this._parent = parent;
|
|
16067
|
+
_this._toTarget = toTarget;
|
|
16068
|
+
_this._constraint = (options && options.constraint) || DViewImpl.CONSTRAINT;
|
|
16069
|
+
_this._workRect = new pixi_js.Rectangle();
|
|
15989
16070
|
// Theme
|
|
15990
|
-
var theme =
|
|
16071
|
+
var theme = _this.toTheme(options) || _this.getThemeDefault();
|
|
15991
16072
|
// Zoom
|
|
15992
16073
|
var zoom = options === null || options === void 0 ? void 0 : options.zoom;
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
|
|
15996
|
-
|
|
16074
|
+
_this._zoomPoint = new pixi_js.Point();
|
|
16075
|
+
_this._zoomMin = (_a = zoom === null || zoom === void 0 ? void 0 : zoom.min) !== null && _a !== void 0 ? _a : theme.getZoomMin();
|
|
16076
|
+
_this._zoomMax = (_b = zoom === null || zoom === void 0 ? void 0 : zoom.max) !== null && _b !== void 0 ? _b : theme.getZoomMax();
|
|
16077
|
+
_this._zoomKeepRatio = (_c = zoom === null || zoom === void 0 ? void 0 : zoom.keepRatio) !== null && _c !== void 0 ? _c : theme.getZoomKeepRatio();
|
|
15997
16078
|
// Zoom: Wheel
|
|
15998
16079
|
var wheelZoom = zoom === null || zoom === void 0 ? void 0 : zoom.wheel;
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16080
|
+
_this._isWheelZoomEnabled = (_d = wheelZoom === null || wheelZoom === void 0 ? void 0 : wheelZoom.enable) !== null && _d !== void 0 ? _d : theme.isWheelZoomEnabled();
|
|
16081
|
+
_this._wheelZoomSpeed = (_e = wheelZoom === null || wheelZoom === void 0 ? void 0 : wheelZoom.speed) !== null && _e !== void 0 ? _e : theme.getWheelZoomSpeed();
|
|
16082
|
+
_this._wheelZoomModifier = toEnum((_f = wheelZoom === null || wheelZoom === void 0 ? void 0 : wheelZoom.modifier) !== null && _f !== void 0 ? _f : theme.getWheelZoomModifier(), UtilGestureModifier);
|
|
16083
|
+
_this._wheelZoomChecker = (_g = wheelZoom === null || wheelZoom === void 0 ? void 0 : wheelZoom.checker) !== null && _g !== void 0 ? _g : UtilGestureModifiers.match;
|
|
16003
16084
|
// Zoom: Dbl click
|
|
16004
16085
|
var dblClickZoom = zoom === null || zoom === void 0 ? void 0 : zoom.dblclick;
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16086
|
+
_this._isDblClickZoomEnabled = (_h = dblClickZoom === null || dblClickZoom === void 0 ? void 0 : dblClickZoom.enable) !== null && _h !== void 0 ? _h : theme.isDblClickZoomEnabled();
|
|
16087
|
+
_this._dblClickZoomSpeed = (_j = dblClickZoom === null || dblClickZoom === void 0 ? void 0 : dblClickZoom.amount) !== null && _j !== void 0 ? _j : theme.getDblClickZoomSpeed();
|
|
16088
|
+
_this._dblClickZoomModifier = toEnum((_k = dblClickZoom === null || dblClickZoom === void 0 ? void 0 : dblClickZoom.modifier) !== null && _k !== void 0 ? _k : theme.getDblClickZoomModifier(), UtilGestureModifier);
|
|
16089
|
+
_this._dblClickZoomChecker = (_l = dblClickZoom === null || dblClickZoom === void 0 ? void 0 : dblClickZoom.checker) !== null && _l !== void 0 ? _l : UtilGestureModifiers.match;
|
|
16090
|
+
_this._dblclickZoomDuration = (_m = dblClickZoom === null || dblClickZoom === void 0 ? void 0 : dblClickZoom.duration) !== null && _m !== void 0 ? _m : theme.getDblClickZoomDuration();
|
|
16010
16091
|
// Translation: Wheel
|
|
16011
16092
|
var wheelTranslation = (_o = options === null || options === void 0 ? void 0 : options.translation) === null || _o === void 0 ? void 0 : _o.wheel;
|
|
16012
|
-
|
|
16093
|
+
_this._isWheelTranslationEnabled =
|
|
16013
16094
|
(_p = wheelTranslation === null || wheelTranslation === void 0 ? void 0 : wheelTranslation.enable) !== null && _p !== void 0 ? _p : theme.isWheelTranslationEnabled();
|
|
16014
|
-
|
|
16015
|
-
|
|
16016
|
-
|
|
16095
|
+
_this._wheelTranslationSpeed = (_q = wheelTranslation === null || wheelTranslation === void 0 ? void 0 : wheelTranslation.speed) !== null && _q !== void 0 ? _q : theme.getWheelTranslationSpeed();
|
|
16096
|
+
_this._wheelTranslationModifier = toEnum((_r = wheelTranslation === null || wheelTranslation === void 0 ? void 0 : wheelTranslation.modifier) !== null && _r !== void 0 ? _r : theme.getWheelTranslationModifier(), UtilGestureModifier);
|
|
16097
|
+
_this._wheelTranslationChecker = (_s = wheelTranslation === null || wheelTranslation === void 0 ? void 0 : wheelTranslation.checker) !== null && _s !== void 0 ? _s : UtilGestureModifiers.match;
|
|
16017
16098
|
// Gesture
|
|
16018
|
-
|
|
16099
|
+
_this._gesture = new DViewGestureImpl(parent, toTarget, _this, _this._constraint, theme, options === null || options === void 0 ? void 0 : options.gesture);
|
|
16019
16100
|
// Transform
|
|
16020
|
-
|
|
16101
|
+
_this._transform = new DViewTransformImpl(parent, toTarget, _this, _this._constraint, _this._dblclickZoomDuration);
|
|
16102
|
+
// Events
|
|
16103
|
+
if (options != null) {
|
|
16104
|
+
var on = options.on;
|
|
16105
|
+
if (on != null) {
|
|
16106
|
+
for (var name_1 in on) {
|
|
16107
|
+
var handler = on[name_1];
|
|
16108
|
+
if (handler) {
|
|
16109
|
+
_this.on(name_1, handler);
|
|
16110
|
+
}
|
|
16111
|
+
}
|
|
16112
|
+
}
|
|
16113
|
+
}
|
|
16114
|
+
return _this;
|
|
16021
16115
|
}
|
|
16022
16116
|
Object.defineProperty(DViewImpl.prototype, "gesture", {
|
|
16023
16117
|
get: function () {
|
|
@@ -16244,7 +16338,7 @@ var DViewImpl = /** @class */ (function () {
|
|
|
16244
16338
|
target.position.set(x, y);
|
|
16245
16339
|
};
|
|
16246
16340
|
return DViewImpl;
|
|
16247
|
-
}());
|
|
16341
|
+
}(pixi_js.utils.EventEmitter));
|
|
16248
16342
|
|
|
16249
16343
|
/*
|
|
16250
16344
|
* Copyright (C) 2019 Toshiba Corporation
|
|
@@ -22291,6 +22385,9 @@ var DDiagrams = /** @class */ (function () {
|
|
|
22291
22385
|
version: serialized.version,
|
|
22292
22386
|
id: serialized.id,
|
|
22293
22387
|
name: serialized.name,
|
|
22388
|
+
label: serialized.label,
|
|
22389
|
+
summary: serialized.summary,
|
|
22390
|
+
description: serialized.description,
|
|
22294
22391
|
thumbnail: serialized.thumbnail,
|
|
22295
22392
|
data: JSON.stringify({
|
|
22296
22393
|
width: serialized.width,
|
|
@@ -22313,8 +22410,11 @@ var DDiagrams = /** @class */ (function () {
|
|
|
22313
22410
|
version: target.version,
|
|
22314
22411
|
id: target.id,
|
|
22315
22412
|
name: target.name,
|
|
22413
|
+
label: target.label,
|
|
22316
22414
|
width: data.width,
|
|
22317
22415
|
height: data.height,
|
|
22416
|
+
summary: target.summary,
|
|
22417
|
+
description: target.description,
|
|
22318
22418
|
background: data.background,
|
|
22319
22419
|
tile: data.tile,
|
|
22320
22420
|
resources: data.resources,
|
|
@@ -80119,8 +80219,11 @@ var DDiagramBase = /** @class */ (function (_super) {
|
|
|
80119
80219
|
var isAmbient = this._isAmbient;
|
|
80120
80220
|
return {
|
|
80121
80221
|
name: serialized.name,
|
|
80222
|
+
label: serialized.label,
|
|
80122
80223
|
width: serialized.width,
|
|
80123
80224
|
height: serialized.height,
|
|
80225
|
+
summary: serialized.summary,
|
|
80226
|
+
description: serialized.description,
|
|
80124
80227
|
background: this.toCanvasBaseBackgroundOptions(serialized, theme, isAmbient),
|
|
80125
80228
|
border: isAmbient ? { color: null } : undefined,
|
|
80126
80229
|
outline: isAmbient ? { color: null } : undefined,
|
|
@@ -80588,7 +80691,9 @@ var DDiagramLayerContainer = /** @class */ (function (_super) {
|
|
|
80588
80691
|
var DDiagramCanvasBase = /** @class */ (function (_super) {
|
|
80589
80692
|
__extends(DDiagramCanvasBase, _super);
|
|
80590
80693
|
function DDiagramCanvasBase(options) {
|
|
80591
|
-
var _this =
|
|
80694
|
+
var _this = this;
|
|
80695
|
+
var _a, _b, _c;
|
|
80696
|
+
_this = _super.call(this, options) || this;
|
|
80592
80697
|
// Background
|
|
80593
80698
|
var theme = _this.theme;
|
|
80594
80699
|
if (!_this.isAmbient(theme, options)) {
|
|
@@ -80598,6 +80703,12 @@ var DDiagramCanvasBase = /** @class */ (function (_super) {
|
|
|
80598
80703
|
var layer = new DDiagramLayerContainer(_this.width, _this.height);
|
|
80599
80704
|
_this._layer = layer;
|
|
80600
80705
|
_this.addChild(layer);
|
|
80706
|
+
// Label
|
|
80707
|
+
_this._label = (_a = options === null || options === void 0 ? void 0 : options.label) !== null && _a !== void 0 ? _a : "";
|
|
80708
|
+
// Summary
|
|
80709
|
+
_this._summary = (_b = options === null || options === void 0 ? void 0 : options.summary) !== null && _b !== void 0 ? _b : "";
|
|
80710
|
+
// Description
|
|
80711
|
+
_this._description = (_c = options === null || options === void 0 ? void 0 : options.description) !== null && _c !== void 0 ? _c : "";
|
|
80601
80712
|
// Tile
|
|
80602
80713
|
var tile = new DDiagramCanvasTile(_this, options === null || options === void 0 ? void 0 : options.tile);
|
|
80603
80714
|
_this._tile = tile;
|
|
@@ -80612,6 +80723,36 @@ var DDiagramCanvasBase = /** @class */ (function (_super) {
|
|
|
80612
80723
|
var _a, _b;
|
|
80613
80724
|
return (_b = (_a = options === null || options === void 0 ? void 0 : options.background) === null || _a === void 0 ? void 0 : _a.base) !== null && _b !== void 0 ? _b : theme.getBackgroundBase();
|
|
80614
80725
|
};
|
|
80726
|
+
Object.defineProperty(DDiagramCanvasBase.prototype, "label", {
|
|
80727
|
+
get: function () {
|
|
80728
|
+
return this._label;
|
|
80729
|
+
},
|
|
80730
|
+
set: function (label) {
|
|
80731
|
+
this._label = label;
|
|
80732
|
+
},
|
|
80733
|
+
enumerable: false,
|
|
80734
|
+
configurable: true
|
|
80735
|
+
});
|
|
80736
|
+
Object.defineProperty(DDiagramCanvasBase.prototype, "summary", {
|
|
80737
|
+
get: function () {
|
|
80738
|
+
return this._summary;
|
|
80739
|
+
},
|
|
80740
|
+
set: function (summary) {
|
|
80741
|
+
this._summary = summary;
|
|
80742
|
+
},
|
|
80743
|
+
enumerable: false,
|
|
80744
|
+
configurable: true
|
|
80745
|
+
});
|
|
80746
|
+
Object.defineProperty(DDiagramCanvasBase.prototype, "description", {
|
|
80747
|
+
get: function () {
|
|
80748
|
+
return this._description;
|
|
80749
|
+
},
|
|
80750
|
+
set: function (description) {
|
|
80751
|
+
this._description = description;
|
|
80752
|
+
},
|
|
80753
|
+
enumerable: false,
|
|
80754
|
+
configurable: true
|
|
80755
|
+
});
|
|
80615
80756
|
Object.defineProperty(DDiagramCanvasBase.prototype, "tile", {
|
|
80616
80757
|
get: function () {
|
|
80617
80758
|
return this._tile;
|
|
@@ -81275,8 +81416,11 @@ var DDiagramCanvasEditor = /** @class */ (function (_super) {
|
|
|
81275
81416
|
version: DDiagramSerializedVersion,
|
|
81276
81417
|
id: id,
|
|
81277
81418
|
name: this.name,
|
|
81419
|
+
label: this.label,
|
|
81278
81420
|
width: this.width,
|
|
81279
81421
|
height: this.height,
|
|
81422
|
+
summary: this.summary,
|
|
81423
|
+
description: this.description,
|
|
81280
81424
|
background: {
|
|
81281
81425
|
color: isNumber(backgroundColor) ? backgroundColor : 0xffffff,
|
|
81282
81426
|
alpha: isNumber(backgroundAlpha) ? backgroundAlpha : 0
|