@wcardinal/wcardinal-ui 0.199.0 → 0.199.1
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-runtime-show-hide-shape.d.ts +0 -5
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide-shape.js +3 -24
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide-shape.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 +4 -25
- package/dist/wcardinal-ui.js +4 -25
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,13 +2,8 @@ import { EShape } from "../e-shape";
|
|
|
2
2
|
import { EShapeRuntime } from "../e-shape-runtime";
|
|
3
3
|
import { EShapeActionRuntimeConditional } from "./e-shape-action-runtime-conditional";
|
|
4
4
|
import { EShapeActionValueShowHideShape } from "./e-shape-action-value-show-hide-shape";
|
|
5
|
-
export interface EShapeActionRuntimeShowHideShapeData {
|
|
6
|
-
condition: boolean | null;
|
|
7
|
-
}
|
|
8
5
|
export declare class EShapeActionRuntimeShowHideShape extends EShapeActionRuntimeConditional {
|
|
9
|
-
protected _data: Map<EShape, EShapeActionRuntimeShowHideShapeData>;
|
|
10
6
|
constructor(value: EShapeActionValueShowHideShape);
|
|
11
7
|
initialize(shape: EShape, runtime: EShapeRuntime): void;
|
|
12
8
|
execute(shape: EShape, runtime: EShapeRuntime, time: number): void;
|
|
13
|
-
protected newData(shape: EShape): EShapeActionRuntimeShowHideShapeData | undefined;
|
|
14
9
|
}
|
|
@@ -9,35 +9,14 @@ import { EShapeActionRuntimeConditional } from "./e-shape-action-runtime-conditi
|
|
|
9
9
|
var EShapeActionRuntimeShowHideShape = /** @class */ (function (_super) {
|
|
10
10
|
__extends(EShapeActionRuntimeShowHideShape, _super);
|
|
11
11
|
function EShapeActionRuntimeShowHideShape(value) {
|
|
12
|
-
|
|
13
|
-
_this._data = new Map();
|
|
14
|
-
return _this;
|
|
12
|
+
return _super.call(this, value, EShapeRuntimeReset.VISIBILITY) || this;
|
|
15
13
|
}
|
|
16
14
|
EShapeActionRuntimeShowHideShape.prototype.initialize = function (shape, runtime) {
|
|
17
15
|
_super.prototype.initialize.call(this, shape, runtime);
|
|
18
|
-
var data = this._data.get(shape);
|
|
19
|
-
if (data == null) {
|
|
20
|
-
data = this.newData(shape);
|
|
21
|
-
if (data != null) {
|
|
22
|
-
this._data.set(shape, data);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
16
|
};
|
|
26
17
|
EShapeActionRuntimeShowHideShape.prototype.execute = function (shape, runtime, time) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var newCondition = this.condition(shape, time, EShapeActionEnvironment);
|
|
30
|
-
if (data.condition !== newCondition) {
|
|
31
|
-
data.condition = newCondition;
|
|
32
|
-
shape.visible = newCondition;
|
|
33
|
-
runtime.written |= this.reset;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
EShapeActionRuntimeShowHideShape.prototype.newData = function (shape) {
|
|
38
|
-
return {
|
|
39
|
-
condition: null
|
|
40
|
-
};
|
|
18
|
+
shape.visible = this.condition(shape, time, EShapeActionEnvironment);
|
|
19
|
+
runtime.written |= this.reset;
|
|
41
20
|
};
|
|
42
21
|
return EShapeActionRuntimeShowHideShape;
|
|
43
22
|
}(EShapeActionRuntimeConditional));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-action-runtime-show-hide-shape.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide-shape.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"e-shape-action-runtime-show-hide-shape.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide-shape.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAGtF;IAAsD,oDAA8B;IACnF,0CAAY,KAAqC;eAChD,kBAAM,KAAK,EAAE,kBAAkB,CAAC,UAAU,CAAC;IAC5C,CAAC;IAED,qDAAU,GAAV,UAAW,KAAa,EAAE,OAAsB;QAC/C,iBAAM,UAAU,YAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,kDAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;QACrE,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC;IAC/B,CAAC;IACF,uCAAC;AAAD,CAAC,AAbD,CAAsD,8BAA8B,GAanF","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { EShapeActionEnvironment } from \"./e-shape-action-environment\";\nimport { EShapeActionRuntimeConditional } from \"./e-shape-action-runtime-conditional\";\nimport { EShapeActionValueShowHideShape } from \"./e-shape-action-value-show-hide-shape\";\n\nexport class EShapeActionRuntimeShowHideShape extends EShapeActionRuntimeConditional {\n\tconstructor(value: EShapeActionValueShowHideShape) {\n\t\tsuper(value, EShapeRuntimeReset.VISIBILITY);\n\t}\n\n\tinitialize(shape: EShape, runtime: EShapeRuntime): void {\n\t\tsuper.initialize(shape, runtime);\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tshape.visible = this.condition(shape, time, EShapeActionEnvironment);\n\t\truntime.written |= this.reset;\n\t}\n}\n"]}
|
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.199.
|
|
2
|
+
Winter Cardinal UI v0.199.1
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -31976,35 +31976,14 @@ var EShapeActionValueShowHideLayer = /** @class */ (function (_super) {
|
|
|
31976
31976
|
var EShapeActionRuntimeShowHideShape = /** @class */ (function (_super) {
|
|
31977
31977
|
__extends(EShapeActionRuntimeShowHideShape, _super);
|
|
31978
31978
|
function EShapeActionRuntimeShowHideShape(value) {
|
|
31979
|
-
|
|
31980
|
-
_this._data = new Map();
|
|
31981
|
-
return _this;
|
|
31979
|
+
return _super.call(this, value, EShapeRuntimeReset.VISIBILITY) || this;
|
|
31982
31980
|
}
|
|
31983
31981
|
EShapeActionRuntimeShowHideShape.prototype.initialize = function (shape, runtime) {
|
|
31984
31982
|
_super.prototype.initialize.call(this, shape, runtime);
|
|
31985
|
-
var data = this._data.get(shape);
|
|
31986
|
-
if (data == null) {
|
|
31987
|
-
data = this.newData(shape);
|
|
31988
|
-
if (data != null) {
|
|
31989
|
-
this._data.set(shape, data);
|
|
31990
|
-
}
|
|
31991
|
-
}
|
|
31992
31983
|
};
|
|
31993
31984
|
EShapeActionRuntimeShowHideShape.prototype.execute = function (shape, runtime, time) {
|
|
31994
|
-
|
|
31995
|
-
|
|
31996
|
-
var newCondition = this.condition(shape, time, EShapeActionEnvironment);
|
|
31997
|
-
if (data.condition !== newCondition) {
|
|
31998
|
-
data.condition = newCondition;
|
|
31999
|
-
shape.visible = newCondition;
|
|
32000
|
-
runtime.written |= this.reset;
|
|
32001
|
-
}
|
|
32002
|
-
}
|
|
32003
|
-
};
|
|
32004
|
-
EShapeActionRuntimeShowHideShape.prototype.newData = function (shape) {
|
|
32005
|
-
return {
|
|
32006
|
-
condition: null
|
|
32007
|
-
};
|
|
31985
|
+
shape.visible = this.condition(shape, time, EShapeActionEnvironment);
|
|
31986
|
+
runtime.written |= this.reset;
|
|
32008
31987
|
};
|
|
32009
31988
|
return EShapeActionRuntimeShowHideShape;
|
|
32010
31989
|
}(EShapeActionRuntimeConditional));
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.199.
|
|
2
|
+
Winter Cardinal UI v0.199.1
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -31973,35 +31973,14 @@
|
|
|
31973
31973
|
var EShapeActionRuntimeShowHideShape = /** @class */ (function (_super) {
|
|
31974
31974
|
__extends(EShapeActionRuntimeShowHideShape, _super);
|
|
31975
31975
|
function EShapeActionRuntimeShowHideShape(value) {
|
|
31976
|
-
|
|
31977
|
-
_this._data = new Map();
|
|
31978
|
-
return _this;
|
|
31976
|
+
return _super.call(this, value, EShapeRuntimeReset.VISIBILITY) || this;
|
|
31979
31977
|
}
|
|
31980
31978
|
EShapeActionRuntimeShowHideShape.prototype.initialize = function (shape, runtime) {
|
|
31981
31979
|
_super.prototype.initialize.call(this, shape, runtime);
|
|
31982
|
-
var data = this._data.get(shape);
|
|
31983
|
-
if (data == null) {
|
|
31984
|
-
data = this.newData(shape);
|
|
31985
|
-
if (data != null) {
|
|
31986
|
-
this._data.set(shape, data);
|
|
31987
|
-
}
|
|
31988
|
-
}
|
|
31989
31980
|
};
|
|
31990
31981
|
EShapeActionRuntimeShowHideShape.prototype.execute = function (shape, runtime, time) {
|
|
31991
|
-
|
|
31992
|
-
|
|
31993
|
-
var newCondition = this.condition(shape, time, EShapeActionEnvironment);
|
|
31994
|
-
if (data.condition !== newCondition) {
|
|
31995
|
-
data.condition = newCondition;
|
|
31996
|
-
shape.visible = newCondition;
|
|
31997
|
-
runtime.written |= this.reset;
|
|
31998
|
-
}
|
|
31999
|
-
}
|
|
32000
|
-
};
|
|
32001
|
-
EShapeActionRuntimeShowHideShape.prototype.newData = function (shape) {
|
|
32002
|
-
return {
|
|
32003
|
-
condition: null
|
|
32004
|
-
};
|
|
31982
|
+
shape.visible = this.condition(shape, time, EShapeActionEnvironment);
|
|
31983
|
+
runtime.written |= this.reset;
|
|
32005
31984
|
};
|
|
32006
31985
|
return EShapeActionRuntimeShowHideShape;
|
|
32007
31986
|
}(EShapeActionRuntimeConditional));
|