@wcardinal/wcardinal-ui 0.231.0 → 0.233.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/e-shape-data-value-state.d.ts +4 -0
- package/dist/types/wcardinal/ui/util/util-state-blinker.d.ts +1 -4
- package/dist/wcardinal/ui/shape/e-shape-data-value-state.js +5 -1
- package/dist/wcardinal/ui/shape/e-shape-data-value-state.js.map +1 -1
- package/dist/wcardinal/ui/util/util-state-blinker.js +8 -16
- package/dist/wcardinal/ui/util/util-state-blinker.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 +14 -18
- package/dist/wcardinal-ui.js +14 -18
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -28,5 +28,9 @@ export declare const EShapeDataValueState: {
|
|
|
28
28
|
* A client is not allowed to access this data.
|
|
29
29
|
*/
|
|
30
30
|
readonly FORBIDDEN: 5;
|
|
31
|
+
/**
|
|
32
|
+
* The server can not find the definition of the requested data.
|
|
33
|
+
*/
|
|
34
|
+
readonly NOT_DEFINED: 6;
|
|
31
35
|
};
|
|
32
36
|
export declare type EShapeDataValueState = number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DBase } from "../d-base";
|
|
2
2
|
export declare class UtilStateBlinker {
|
|
3
|
-
protected _isOn: boolean;
|
|
4
3
|
protected _targets: Set<DBase>;
|
|
5
4
|
protected _state: string;
|
|
6
5
|
protected _delay: number;
|
|
@@ -14,8 +13,6 @@ export declare class UtilStateBlinker {
|
|
|
14
13
|
remove(target: DBase): boolean;
|
|
15
14
|
contains(target: DBase): boolean;
|
|
16
15
|
clear(): this;
|
|
17
|
-
isOn(): boolean;
|
|
18
|
-
isOff(): boolean;
|
|
19
|
-
advance(): this;
|
|
16
|
+
isOn(time: number): boolean;
|
|
20
17
|
update(): this;
|
|
21
18
|
}
|
|
@@ -31,6 +31,10 @@ export var EShapeDataValueState = {
|
|
|
31
31
|
/**
|
|
32
32
|
* A client is not allowed to access this data.
|
|
33
33
|
*/
|
|
34
|
-
FORBIDDEN: 5
|
|
34
|
+
FORBIDDEN: 5,
|
|
35
|
+
/**
|
|
36
|
+
* The server can not find the definition of the requested data.
|
|
37
|
+
*/
|
|
38
|
+
NOT_DEFINED: 6
|
|
35
39
|
};
|
|
36
40
|
//# sourceMappingURL=e-shape-data-value-state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-data-value-state.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-data-value-state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,IAAM,oBAAoB,GAAG;IACnC;;;OAGG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,CAAC;IAER;;OAEG;IACH,SAAS,EAAE,CAAC;IAEZ;;OAEG;IACH,WAAW,EAAE,CAAC;IAEd;;OAEG;IACH,YAAY,EAAE,CAAC;IAEf;;OAEG;IACH,mBAAmB,EAAE,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"e-shape-data-value-state.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-data-value-state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,IAAM,oBAAoB,GAAG;IACnC;;;OAGG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,CAAC;IAER;;OAEG;IACH,SAAS,EAAE,CAAC;IAEZ;;OAEG;IACH,WAAW,EAAE,CAAC;IAEd;;OAEG;IACH,YAAY,EAAE,CAAC;IAEf;;OAEG;IACH,mBAAmB,EAAE,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,CAAC;IAEZ;;OAEG;IACH,WAAW,EAAE,CAAC;CACL,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const EShapeDataValueState = {\n\t/**\n\t * The data status is not known.\n\t * This is the default state.\n\t */\n\tUNKNOWN: -1,\n\n\t/**\n\t * The request succeeded.\n\t */\n\tFOUND: 0,\n\n\t/**\n\t * The server can not find the requested data.\n\t */\n\tNOT_FOUND: 1,\n\n\t/**\n\t * The settings or something provided by clients are considered incorrect.\n\t */\n\tBAD_REQUEST: 2,\n\n\t/**\n\t * The server has encountered unknown errors.\n\t */\n\tSERVER_ERROR: 3,\n\n\t/**\n\t * The server is not ready to handle the request.\n\t */\n\tSERVICE_UNAVAILABLE: 4,\n\n\t/**\n\t * A client is not allowed to access this data.\n\t */\n\tFORBIDDEN: 5,\n\n\t/**\n\t * The server can not find the definition of the requested data.\n\t */\n\tNOT_DEFINED: 6\n} as const;\n\nexport type EShapeDataValueState = number;\n"]}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
var UtilStateBlinker = /** @class */ (function () {
|
|
2
2
|
function UtilStateBlinker(state, delay, interval) {
|
|
3
3
|
var _this = this;
|
|
4
|
-
this._isOn = true;
|
|
5
4
|
this._targets = new Set();
|
|
6
5
|
this._state = state;
|
|
7
6
|
this._delay = delay;
|
|
8
7
|
this._interval = interval;
|
|
9
8
|
this._timeout = null;
|
|
10
|
-
|
|
11
|
-
_this.advance();
|
|
9
|
+
this._updateBound = function () {
|
|
12
10
|
_this.update();
|
|
13
|
-
_this._timeout = window.setTimeout(updateBound, interval);
|
|
14
11
|
};
|
|
15
|
-
this._updateBound = updateBound;
|
|
16
12
|
}
|
|
17
13
|
UtilStateBlinker.prototype.start = function () {
|
|
18
14
|
if (this._timeout == null) {
|
|
@@ -30,7 +26,7 @@ var UtilStateBlinker = /** @class */ (function () {
|
|
|
30
26
|
};
|
|
31
27
|
UtilStateBlinker.prototype.add = function (target) {
|
|
32
28
|
this._targets.add(target);
|
|
33
|
-
target.state.set(this._state, this.isOn());
|
|
29
|
+
target.state.set(this._state, this.isOn(Date.now()));
|
|
34
30
|
return this;
|
|
35
31
|
};
|
|
36
32
|
UtilStateBlinker.prototype.remove = function (target) {
|
|
@@ -47,22 +43,18 @@ var UtilStateBlinker = /** @class */ (function () {
|
|
|
47
43
|
this._targets.clear();
|
|
48
44
|
return this;
|
|
49
45
|
};
|
|
50
|
-
UtilStateBlinker.prototype.isOn = function () {
|
|
51
|
-
return this.
|
|
52
|
-
};
|
|
53
|
-
UtilStateBlinker.prototype.isOff = function () {
|
|
54
|
-
return !this._isOn;
|
|
55
|
-
};
|
|
56
|
-
UtilStateBlinker.prototype.advance = function () {
|
|
57
|
-
this._isOn = !this._isOn;
|
|
58
|
-
return this;
|
|
46
|
+
UtilStateBlinker.prototype.isOn = function (time) {
|
|
47
|
+
return Math.floor(time / this._interval) % 2 === 0;
|
|
59
48
|
};
|
|
60
49
|
UtilStateBlinker.prototype.update = function () {
|
|
61
|
-
var
|
|
50
|
+
var now = Date.now();
|
|
51
|
+
var isOn = this.isOn(now);
|
|
62
52
|
var state = this._state;
|
|
63
53
|
this._targets.forEach(function (target) {
|
|
64
54
|
target.state.set(state, isOn);
|
|
65
55
|
});
|
|
56
|
+
var interval = this._interval;
|
|
57
|
+
this._timeout = window.setTimeout(this._updateBound, interval - (now % interval));
|
|
66
58
|
return this;
|
|
67
59
|
};
|
|
68
60
|
return UtilStateBlinker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util-state-blinker.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/util-state-blinker.ts"],"names":[],"mappings":"AAEA;
|
|
1
|
+
{"version":3,"file":"util-state-blinker.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/util-state-blinker.ts"],"names":[],"mappings":"AAEA;IAQC,0BAAY,KAAa,EAAE,KAAa,EAAE,QAAgB;QAA1D,iBASC;QARA,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG;YACnB,KAAI,CAAC,MAAM,EAAE,CAAC;QACf,CAAC,CAAC;IACH,CAAC;IAED,gCAAK,GAAL;QACC,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YAC1B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;SAClE;QACD,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+BAAI,GAAJ;QACC,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,OAAO,IAAI,IAAI,EAAE;YACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;YACrB,YAAY,CAAC,OAAO,CAAC,CAAC;SACtB;QACD,OAAO,IAAI,CAAC;IACb,CAAC;IAED,8BAAG,GAAH,UAAI,MAAa;QAChB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC1B,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC;IACb,CAAC;IAED,iCAAM,GAAN,UAAO,MAAa;QACnB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;YACjC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACjC,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAED,mCAAQ,GAAR,UAAS,MAAa;QACrB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,gCAAK,GAAL;QACC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+BAAI,GAAJ,UAAK,IAAY;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACpD,CAAC;IAED,iCAAM,GAAN;QACC,IAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,IAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAC,MAAa;YACnC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;QACH,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC;QAClF,OAAO,IAAI,CAAC;IACb,CAAC;IACF,uBAAC;AAAD,CAAC,AAzED,IAyEC","sourcesContent":["import { DBase } from \"../d-base\";\n\nexport class UtilStateBlinker {\n\tprotected _targets: Set<DBase>;\n\tprotected _state: string;\n\tprotected _delay: number;\n\tprotected _interval: number;\n\tprotected _timeout: number | null;\n\tprotected _updateBound: () => void;\n\n\tconstructor(state: string, delay: number, interval: number) {\n\t\tthis._targets = new Set();\n\t\tthis._state = state;\n\t\tthis._delay = delay;\n\t\tthis._interval = interval;\n\t\tthis._timeout = null;\n\t\tthis._updateBound = (): void => {\n\t\t\tthis.update();\n\t\t};\n\t}\n\n\tstart(): this {\n\t\tif (this._timeout == null) {\n\t\t\tthis._timeout = window.setTimeout(this._updateBound, this._delay);\n\t\t}\n\t\treturn this;\n\t}\n\n\tstop(): this {\n\t\tconst timeout = this._timeout;\n\t\tif (timeout != null) {\n\t\t\tthis._timeout = null;\n\t\t\tclearTimeout(timeout);\n\t\t}\n\t\treturn this;\n\t}\n\n\tadd(target: DBase): this {\n\t\tthis._targets.add(target);\n\t\ttarget.state.set(this._state, this.isOn(Date.now()));\n\t\treturn this;\n\t}\n\n\tremove(target: DBase): boolean {\n\t\tif (this._targets.delete(target)) {\n\t\t\ttarget.state.remove(this._state);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tcontains(target: DBase): boolean {\n\t\treturn this._targets.has(target);\n\t}\n\n\tclear(): this {\n\t\tthis._targets.clear();\n\t\treturn this;\n\t}\n\n\tisOn(time: number): boolean {\n\t\treturn Math.floor(time / this._interval) % 2 === 0;\n\t}\n\n\tupdate(): this {\n\t\tconst now = Date.now();\n\t\tconst isOn = this.isOn(now);\n\t\tconst state = this._state;\n\t\tthis._targets.forEach((target: DBase): void => {\n\t\t\ttarget.state.set(state, isOn);\n\t\t});\n\t\tconst interval = this._interval;\n\t\tthis._timeout = window.setTimeout(this._updateBound, interval - (now % interval));\n\t\treturn this;\n\t}\n}\n"]}
|
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.233.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -4952,7 +4952,11 @@ var EShapeDataValueState = {
|
|
|
4952
4952
|
/**
|
|
4953
4953
|
* A client is not allowed to access this data.
|
|
4954
4954
|
*/
|
|
4955
|
-
FORBIDDEN: 5
|
|
4955
|
+
FORBIDDEN: 5,
|
|
4956
|
+
/**
|
|
4957
|
+
* The server can not find the definition of the requested data.
|
|
4958
|
+
*/
|
|
4959
|
+
NOT_DEFINED: 6
|
|
4956
4960
|
};
|
|
4957
4961
|
|
|
4958
4962
|
/*
|
|
@@ -64132,18 +64136,14 @@ var UtilRgba = /** @class */ (function () {
|
|
|
64132
64136
|
var UtilStateBlinker = /** @class */ (function () {
|
|
64133
64137
|
function UtilStateBlinker(state, delay, interval) {
|
|
64134
64138
|
var _this = this;
|
|
64135
|
-
this._isOn = true;
|
|
64136
64139
|
this._targets = new Set();
|
|
64137
64140
|
this._state = state;
|
|
64138
64141
|
this._delay = delay;
|
|
64139
64142
|
this._interval = interval;
|
|
64140
64143
|
this._timeout = null;
|
|
64141
|
-
|
|
64142
|
-
_this.advance();
|
|
64144
|
+
this._updateBound = function () {
|
|
64143
64145
|
_this.update();
|
|
64144
|
-
_this._timeout = window.setTimeout(updateBound, interval);
|
|
64145
64146
|
};
|
|
64146
|
-
this._updateBound = updateBound;
|
|
64147
64147
|
}
|
|
64148
64148
|
UtilStateBlinker.prototype.start = function () {
|
|
64149
64149
|
if (this._timeout == null) {
|
|
@@ -64161,7 +64161,7 @@ var UtilStateBlinker = /** @class */ (function () {
|
|
|
64161
64161
|
};
|
|
64162
64162
|
UtilStateBlinker.prototype.add = function (target) {
|
|
64163
64163
|
this._targets.add(target);
|
|
64164
|
-
target.state.set(this._state, this.isOn());
|
|
64164
|
+
target.state.set(this._state, this.isOn(Date.now()));
|
|
64165
64165
|
return this;
|
|
64166
64166
|
};
|
|
64167
64167
|
UtilStateBlinker.prototype.remove = function (target) {
|
|
@@ -64178,22 +64178,18 @@ var UtilStateBlinker = /** @class */ (function () {
|
|
|
64178
64178
|
this._targets.clear();
|
|
64179
64179
|
return this;
|
|
64180
64180
|
};
|
|
64181
|
-
UtilStateBlinker.prototype.isOn = function () {
|
|
64182
|
-
return this.
|
|
64183
|
-
};
|
|
64184
|
-
UtilStateBlinker.prototype.isOff = function () {
|
|
64185
|
-
return !this._isOn;
|
|
64186
|
-
};
|
|
64187
|
-
UtilStateBlinker.prototype.advance = function () {
|
|
64188
|
-
this._isOn = !this._isOn;
|
|
64189
|
-
return this;
|
|
64181
|
+
UtilStateBlinker.prototype.isOn = function (time) {
|
|
64182
|
+
return Math.floor(time / this._interval) % 2 === 0;
|
|
64190
64183
|
};
|
|
64191
64184
|
UtilStateBlinker.prototype.update = function () {
|
|
64192
|
-
var
|
|
64185
|
+
var now = Date.now();
|
|
64186
|
+
var isOn = this.isOn(now);
|
|
64193
64187
|
var state = this._state;
|
|
64194
64188
|
this._targets.forEach(function (target) {
|
|
64195
64189
|
target.state.set(state, isOn);
|
|
64196
64190
|
});
|
|
64191
|
+
var interval = this._interval;
|
|
64192
|
+
this._timeout = window.setTimeout(this._updateBound, interval - (now % interval));
|
|
64197
64193
|
return this;
|
|
64198
64194
|
};
|
|
64199
64195
|
return UtilStateBlinker;
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.233.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -4949,7 +4949,11 @@
|
|
|
4949
4949
|
/**
|
|
4950
4950
|
* A client is not allowed to access this data.
|
|
4951
4951
|
*/
|
|
4952
|
-
FORBIDDEN: 5
|
|
4952
|
+
FORBIDDEN: 5,
|
|
4953
|
+
/**
|
|
4954
|
+
* The server can not find the definition of the requested data.
|
|
4955
|
+
*/
|
|
4956
|
+
NOT_DEFINED: 6
|
|
4953
4957
|
};
|
|
4954
4958
|
|
|
4955
4959
|
/*
|
|
@@ -45740,18 +45744,14 @@
|
|
|
45740
45744
|
var UtilStateBlinker = /** @class */ (function () {
|
|
45741
45745
|
function UtilStateBlinker(state, delay, interval) {
|
|
45742
45746
|
var _this = this;
|
|
45743
|
-
this._isOn = true;
|
|
45744
45747
|
this._targets = new Set();
|
|
45745
45748
|
this._state = state;
|
|
45746
45749
|
this._delay = delay;
|
|
45747
45750
|
this._interval = interval;
|
|
45748
45751
|
this._timeout = null;
|
|
45749
|
-
|
|
45750
|
-
_this.advance();
|
|
45752
|
+
this._updateBound = function () {
|
|
45751
45753
|
_this.update();
|
|
45752
|
-
_this._timeout = window.setTimeout(updateBound, interval);
|
|
45753
45754
|
};
|
|
45754
|
-
this._updateBound = updateBound;
|
|
45755
45755
|
}
|
|
45756
45756
|
UtilStateBlinker.prototype.start = function () {
|
|
45757
45757
|
if (this._timeout == null) {
|
|
@@ -45769,7 +45769,7 @@
|
|
|
45769
45769
|
};
|
|
45770
45770
|
UtilStateBlinker.prototype.add = function (target) {
|
|
45771
45771
|
this._targets.add(target);
|
|
45772
|
-
target.state.set(this._state, this.isOn());
|
|
45772
|
+
target.state.set(this._state, this.isOn(Date.now()));
|
|
45773
45773
|
return this;
|
|
45774
45774
|
};
|
|
45775
45775
|
UtilStateBlinker.prototype.remove = function (target) {
|
|
@@ -45786,22 +45786,18 @@
|
|
|
45786
45786
|
this._targets.clear();
|
|
45787
45787
|
return this;
|
|
45788
45788
|
};
|
|
45789
|
-
UtilStateBlinker.prototype.isOn = function () {
|
|
45790
|
-
return this.
|
|
45791
|
-
};
|
|
45792
|
-
UtilStateBlinker.prototype.isOff = function () {
|
|
45793
|
-
return !this._isOn;
|
|
45794
|
-
};
|
|
45795
|
-
UtilStateBlinker.prototype.advance = function () {
|
|
45796
|
-
this._isOn = !this._isOn;
|
|
45797
|
-
return this;
|
|
45789
|
+
UtilStateBlinker.prototype.isOn = function (time) {
|
|
45790
|
+
return Math.floor(time / this._interval) % 2 === 0;
|
|
45798
45791
|
};
|
|
45799
45792
|
UtilStateBlinker.prototype.update = function () {
|
|
45800
|
-
var
|
|
45793
|
+
var now = Date.now();
|
|
45794
|
+
var isOn = this.isOn(now);
|
|
45801
45795
|
var state = this._state;
|
|
45802
45796
|
this._targets.forEach(function (target) {
|
|
45803
45797
|
target.state.set(state, isOn);
|
|
45804
45798
|
});
|
|
45799
|
+
var interval = this._interval;
|
|
45800
|
+
this._timeout = window.setTimeout(this._updateBound, interval - (now % interval));
|
|
45805
45801
|
return this;
|
|
45806
45802
|
};
|
|
45807
45803
|
return UtilStateBlinker;
|