canvas-editor-engine 1.0.69 → 1.0.71

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.
@@ -67,8 +67,8 @@ class LoadingComponent extends component_service_1.default {
67
67
  const loadingTemplate = LoadingComponent.getTemplate(LoadingComponent.template, wrapOptions);
68
68
  const loadingStyle = LoadingComponent.getStyle(LoadingComponent.css);
69
69
  LoadingComponent.loading = loadingTemplate;
70
- // LoadingComponent.subscribeLoadingStart();
71
- // LoadingComponent.subscribeLoadingEnd();
70
+ LoadingComponent.subscribeLoadingStart();
71
+ LoadingComponent.subscribeLoadingEnd();
72
72
  return { loadingTemplate, loadingStyle };
73
73
  }
74
74
  static hide() {
@@ -17,7 +17,7 @@ class EventService {
17
17
  static eventList = [];
18
18
  static subcribe(controlEvent) {
19
19
  const eventAtom = {
20
- id: new guid4_1.Guid4().finite,
20
+ id: new guid4_1.Guid4().generate(),
21
21
  ...controlEvent
22
22
  };
23
23
  EventService.eventList.push(eventAtom);
@@ -3,10 +3,11 @@ export declare class Guid4 {
3
3
  stack: IGUID4[];
4
4
  guid4: IGUID4;
5
5
  constructor();
6
- private generate;
6
+ generate(): `${number}-${number}-${number}-${number}`;
7
+ get finite(): IGUID4;
8
+ private generateWithFactor;
7
9
  private getFactor;
8
10
  private get attempt();
9
11
  private get Guid4();
10
12
  private formating;
11
- get finite(): IGUID4;
12
13
  }
@@ -5,9 +5,23 @@ class Guid4 {
5
5
  stack = [];
6
6
  guid4;
7
7
  constructor() {
8
- this.generate(this.attempt);
8
+ // generateWithFactor not working
9
+ // this.generateWithFactor(this.attempt);
9
10
  }
10
- generate(attempt) {
11
+ generate() {
12
+ return this.Guid4;
13
+ }
14
+ get finite() {
15
+ const guid4 = this.stack[this.stack?.length];
16
+ if (!!guid4) {
17
+ return guid4;
18
+ }
19
+ else {
20
+ throw new Error("Guid4 not generate");
21
+ }
22
+ }
23
+ ;
24
+ generateWithFactor(attempt) {
11
25
  const factor = this.getFactor(this.guid4);
12
26
  attempt.use('withError').run(factor);
13
27
  }
@@ -44,16 +58,6 @@ class Guid4 {
44
58
  const formattedChar = (char == 'x') ? preformer : (preformer & 0x3 | 0x8);
45
59
  return formattedChar.toString(16);
46
60
  }
47
- get finite() {
48
- const guid4 = this.stack[this.stack?.length];
49
- if (!!guid4) {
50
- return guid4;
51
- }
52
- else {
53
- throw new Error("Guid4 not generate");
54
- }
55
- }
56
- ;
57
61
  }
58
62
  exports.Guid4 = Guid4;
59
63
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",