@zcomponent/core 1.7.0-beta → 1.8.1-beta
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/lib/behaviors/ActivateState.d.ts +1 -0
- package/lib/behaviors/PlayLayerClip.d.ts +1 -0
- package/lib/behaviors/ShowTextAlert.d.ts +1 -0
- package/lib/behaviors/ShowTextAlert.js +1 -0
- package/lib/behaviors/ToggleLayerClips.d.ts +1 -0
- package/lib/behaviors/stream/SeekStream.d.ts +1 -0
- package/lib/behaviors/stream/SeekStream.js +1 -0
- package/lib/components/LongLoad.d.ts +2 -0
- package/lib/observable.js +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ export declare class SeekStream extends ActionBehavior {
|
|
|
20
20
|
* @zgroup Stop Settings
|
|
21
21
|
* @zgrouppriority 20
|
|
22
22
|
* @zdefault 0
|
|
23
|
+
* @ztype time-milliseconds
|
|
23
24
|
*/
|
|
24
25
|
time: number;
|
|
25
26
|
constructor(contextManager: ContextManager, instance: Component, props: ActionBehaviorConstructorProps);
|
|
@@ -13,6 +13,7 @@ export interface LongLoadConstructorProps {
|
|
|
13
13
|
* @zprop
|
|
14
14
|
* @zgroup LongLoad
|
|
15
15
|
* @zgrouppriority 10
|
|
16
|
+
* @ztype time-milliseconds
|
|
16
17
|
* @zdefault 500
|
|
17
18
|
*/
|
|
18
19
|
minimumLoadTime: number;
|
|
@@ -21,6 +22,7 @@ export interface LongLoadConstructorProps {
|
|
|
21
22
|
* @zprop
|
|
22
23
|
* @zgroup LongLoad
|
|
23
24
|
* @zgrouppriority 10
|
|
25
|
+
* @ztype time-milliseconds
|
|
24
26
|
* @zdefault 5000
|
|
25
27
|
*/
|
|
26
28
|
maximumLoadTime: number;
|
package/lib/observable.js
CHANGED
|
@@ -113,7 +113,7 @@ export class Observable extends Emitter {
|
|
|
113
113
|
this._emitValue();
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
|
-
this._value = this._wrap(v);
|
|
116
|
+
this._value = this._wrap(Array.isArray(v) ? [...v] : v);
|
|
117
117
|
this._emitValue();
|
|
118
118
|
}
|
|
119
119
|
addListener(fn, priority = 0, callImmediately = true) {
|