@flashist/appframework 0.0.223 → 0.0.225

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.
@@ -17,9 +17,9 @@ export class AnimateHintCommand extends BaseAppCommand {
17
17
  }
18
18
  executeInternal() {
19
19
  const containersManager = getInstance(ContainersManager);
20
- const effectsCont = containersManager.getContainer(HintContainerId);
21
- effectsCont.addChild(this.hint);
22
- const localPos = effectsCont.toLocal(this.config.startGlobalPos);
20
+ const hintsCont = containersManager.getContainer(HintContainerId);
21
+ hintsCont.addChild(this.hint);
22
+ const localPos = hintsCont.toLocal(this.config.startGlobalPos);
23
23
  this.hint.x = localPos.x;
24
24
  this.hint.y = localPos.y;
25
25
  const tempFinalY = localPos.y + NumberTools.getRandomFloat(this.config.finalGlobalPosMinChange.y, this.config.finalGlobalPosMaxChange.y);
@@ -1 +1 @@
1
- {"version":3,"file":"AnimateHintCommand.js","sourceRoot":"","sources":["../../../src/hints/commands/AnimateHintCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAA4B,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,MAAM,MAAM,CAAC;AAE3C,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAC,iBAAiB,EAAC,MAAM,6CAA6C,CAAC;AAC9E,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAC,iBAAiB,EAAC,MAAM,2BAA2B,CAAC;AAE5D,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IAIlD,YAAsB,IAAmB,EAAE,MAA4B;QACnE,KAAK,EAAE,CAAC;QADU,SAAI,GAAJ,IAAI,CAAe;QAGrC,IAAI,CAAC,MAAM,GAAG,EAAS,CAAC;QAExB,WAAW,CAAC,SA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M,UAAU,GAAW,QAAQ,CAAC,CAAC,GAAG,WAAW,CAAC,cAAc,CAC9D,IAAI,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EACrC,IAAI,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,CACxC,CAAC;QACF,SAAS,CAAC,EAAE,CACR,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,MAAM,CAAC,qBAAqB,EACjC;YACI,CAAC,EAAE,UAAU;YACb,IAAI,EAAE,IAAI,CAAC,OAAO;SACrB,CACJ,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;QACzC,SAAS,CAAC,EAAE,CACR,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,MAAM,CAAC,uBAAuB,EACnC;YACI,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB;YAEvC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS;SAC/B,CACJ,CAAC;QACF,SAAS,CAAC,EAAE,CACR,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,MAAM,CAAC,uBAAuB,EACnC;YACI,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB;YACvC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU;YAC7B,UAAU,EAAE,GAAG,EAAE;gBACb,IAAI,CAAC,eAAe,EAAE,CAAC;YAC3B,CAAC;SACJ,CACJ,CAAC;IACN,CAAC;IAES,eAAe;QACrB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAExC,IAAI,CAAC,cAAc,EAAE,CAAC;IAC1B,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashist/appframework",
3
- "version": "0.0.223",
3
+ "version": "0.0.225",
4
4
  "scripts": {
5
5
  "build": "gulp",
6
6
  "publish:patch": "npm version patch && npm run build && cd ./dist && npm publish",
@@ -1,3 +1,58 @@
1
- export type DeepReadonly<T> = T extends Function ? T : T extends object ? {
2
- readonly [K in keyof T]: DeepReadonly<T[K]>;
3
- } : T extends never ? never : T;
1
+ export type HasMultipleCallSignatures<T extends (...arguments_: any[]) => unknown> = T extends {
2
+ (...arguments_: infer A): unknown;
3
+ (...arguments_: any[]): unknown;
4
+ } ? unknown[] extends A ? false : true : false;
5
+ export type Primitive = null | undefined | string | number | boolean | symbol | bigint;
6
+ export type BuiltIns = Primitive | Date | RegExp;
7
+ /**
8
+ Convert `object`s, `Map`s, `Set`s, and `Array`s and all of their keys/elements into immutable structures recursively.
9
+
10
+ This is useful when a deeply nested structure needs to be exposed as completely immutable, for example, an imported JSON module or when receiving an API response that is passed around.
11
+
12
+ Please upvote [this issue](https://github.com/microsoft/TypeScript/issues/13923) if you want to have this type as a built-in in TypeScript.
13
+
14
+ @example
15
+ ```
16
+ // data.json
17
+ {
18
+ "foo": ["bar"]
19
+ }
20
+
21
+ // main.ts
22
+ import type {DeepReadonly} from 'type-fest';
23
+ import dataJson = require('./data.json');
24
+
25
+ const data: DeepReadonly<typeof dataJson> = dataJson;
26
+
27
+ export default data;
28
+
29
+ // test.ts
30
+ import data from './main';
31
+
32
+ data.foo.push('bar');
33
+ //=> error TS2339: Property 'push' does not exist on type 'readonly string[]'
34
+ ```
35
+
36
+ Note that types containing overloaded functions are not made deeply readonly due to a [TypeScript limitation](https://github.com/microsoft/TypeScript/issues/29732).
37
+
38
+ @category Object
39
+ @category Array
40
+ @category Set
41
+ @category Map
42
+ */
43
+ export type DeepReadonly<T> = T extends BuiltIns ? T : T extends (...arguments_: any[]) => unknown ? {} extends DeepReadonlyObject<T> ? T : HasMultipleCallSignatures<T> extends true ? T : ((...arguments_: Parameters<T>) => ReturnType<T>) & DeepReadonlyObject<T> : T extends Readonly<ReadonlyMap<infer KeyType, infer ValueType>> ? DeepReadonlyMap<KeyType, ValueType> : T extends Readonly<ReadonlySet<infer ItemType>> ? DeepReadonlySet<ItemType> : T extends readonly [] | readonly [...never[]] ? readonly [] : T extends readonly [infer U, ...infer V] ? readonly [DeepReadonly<U>, ...DeepReadonly<V>] : T extends readonly [...infer U, infer V] ? readonly [...DeepReadonly<U>, DeepReadonly<V>] : T extends ReadonlyArray<infer ItemType> ? ReadonlyArray<DeepReadonly<ItemType>> : T extends object ? DeepReadonlyObject<T> : unknown;
44
+ /**
45
+ Same as `DeepReadonly`, but accepts only `ReadonlyMap`s as inputs. Internal helper for `DeepReadonly`.
46
+ */
47
+ type DeepReadonlyMap<KeyType, ValueType> = {} & Readonly<ReadonlyMap<DeepReadonly<KeyType>, DeepReadonly<ValueType>>>;
48
+ /**
49
+ Same as `DeepReadonly`, but accepts only `ReadonlySet`s as inputs. Internal helper for `DeepReadonly`.
50
+ */
51
+ type DeepReadonlySet<ItemType> = {} & Readonly<ReadonlySet<DeepReadonly<ItemType>>>;
52
+ /**
53
+ Same as `DeepReadonly`, but accepts only `object`s as inputs. Internal helper for `DeepReadonly`.
54
+ */
55
+ type DeepReadonlyObject<ObjectType extends object> = {
56
+ readonly [KeyType in keyof ObjectType]: DeepReadonly<ObjectType[KeyType]>;
57
+ };
58
+ export {};