@myrmidon/gve-core 0.0.3 → 0.0.4

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.
Files changed (26) hide show
  1. package/esm2022/lib/components/animation-timeline/animation-timeline.component.mjs +5 -5
  2. package/esm2022/lib/components/animation-timeline-set/animation-timeline-set.component.mjs +130 -0
  3. package/esm2022/lib/components/animation-tween/animation-tween.component.mjs +5 -5
  4. package/esm2022/lib/components/animation-vars/animation-vars.component.mjs +3 -3
  5. package/esm2022/lib/components/base-text-char/base-text-char.component.mjs +3 -3
  6. package/esm2022/lib/components/base-text-editor/base-text-editor.component.mjs +3 -3
  7. package/esm2022/lib/components/base-text-view/base-text-view.component.mjs +3 -3
  8. package/esm2022/lib/components/chain-operation-editor/chain-operation-editor.component.mjs +3 -3
  9. package/esm2022/lib/components/chain-result-view/chain-result-view.component.mjs +3 -3
  10. package/esm2022/lib/components/feature-editor/feature-editor.component.mjs +3 -3
  11. package/esm2022/lib/components/feature-set-editor/feature-set-editor.component.mjs +3 -3
  12. package/esm2022/lib/components/feature-set-view/feature-set-view.component.mjs +3 -3
  13. package/esm2022/lib/components/ln-heights-editor/ln-heights-editor.component.mjs +3 -3
  14. package/esm2022/lib/components/operation-source-editor/operation-source-editor.component.mjs +3 -3
  15. package/esm2022/lib/components/simple-tree/simple-tree.component.mjs +3 -3
  16. package/esm2022/lib/components/snapshot-editor/snapshot-editor.component.mjs +38 -5
  17. package/esm2022/lib/components/steps-map/steps-map.component.mjs +3 -3
  18. package/esm2022/lib/services/gve-api.service.mjs +17 -4
  19. package/esm2022/lib/services/settings.service.mjs +3 -3
  20. package/fesm2022/myrmidon-gve-core.mjs +212 -57
  21. package/fesm2022/myrmidon-gve-core.mjs.map +1 -1
  22. package/lib/components/animation-timeline-set/animation-timeline-set.component.d.ts +31 -0
  23. package/lib/components/feature-editor/feature-editor.component.d.ts +1 -1
  24. package/lib/components/snapshot-editor/snapshot-editor.component.d.ts +5 -1
  25. package/lib/services/gve-api.service.d.ts +14 -0
  26. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
+ import { GveAnimationTimeline } from '@myrmidon/gve-snapshot-view';
4
+ import { DialogService } from '@myrmidon/ng-mat-tools';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AnimationTimelineSetComponent {
7
+ private _dialogService;
8
+ private _timelines;
9
+ editedTimeline?: GveAnimationTimeline;
10
+ get timelines(): GveAnimationTimeline[];
11
+ set timelines(value: GveAnimationTimeline[] | undefined | null);
12
+ /**
13
+ * The IDs of the elements that can be selected by the tween.
14
+ * This list is used to allow the user to select an element from a dropdown.
15
+ */
16
+ elementIds?: string[];
17
+ tags: string[];
18
+ readonly timelinesChange: EventEmitter<GveAnimationTimeline[]>;
19
+ readonly cancel: EventEmitter<void>;
20
+ set: FormControl<GveAnimationTimeline[]>;
21
+ form: FormGroup;
22
+ constructor(formBuilder: FormBuilder, _dialogService: DialogService);
23
+ private updateForm;
24
+ closeTimeline(): void;
25
+ newTimeline(): void;
26
+ editTimeline(index: number): void;
27
+ saveTimeline(timeline: GveAnimationTimeline): void;
28
+ deleteTimeline(index: number): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnimationTimelineSetComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnimationTimelineSetComponent, "gve-animation-timeline-set", never, { "timelines": { "alias": "timelines"; "required": false; }; "elementIds": { "alias": "elementIds"; "required": false; }; "tags": { "alias": "tags"; "required": false; }; }, { "timelinesChange": "timelinesChange"; "cancel": "cancel"; }, never, never, true, never>;
31
+ }
@@ -51,7 +51,7 @@ export declare class FeatureEditorComponent implements OnInit, OnDestroy {
51
51
  /**
52
52
  * Event emitted when the user saves the edited feature.
53
53
  */
54
- featureChange: EventEmitter<Feature | OperationFeature>;
54
+ featureChange: EventEmitter<OperationFeature | Feature>;
55
55
  name: FormControl<string>;
56
56
  value: FormControl<string>;
57
57
  setPolicy: FormControl<FeatureSetPolicy>;
@@ -2,7 +2,7 @@ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
3
  import { MatSnackBar } from '@angular/material/snack-bar';
4
4
  import { DialogService } from '@myrmidon/ng-mat-tools';
5
- import { CharChainOperation, CharNode, GveVisualEvent, Snapshot, SnapshotViewData, SnapshotViewRenderEvent } from '@myrmidon/gve-snapshot-view';
5
+ import { CharChainOperation, CharNode, GveAnimationTimeline, GveVisualEvent, Snapshot, SnapshotViewData, SnapshotViewRenderEvent } from '@myrmidon/gve-snapshot-view';
6
6
  import { VarBaseTextRange } from '../base-text-view/base-text-view.component';
7
7
  import { ChainOperationContextStep, CharChainResult, GveApiService } from '../../services/gve-api.service';
8
8
  import * as i0 from "@angular/core";
@@ -60,9 +60,12 @@ export declare class SnapshotEditorComponent implements OnInit {
60
60
  imageWidth: FormControl<number>;
61
61
  imageHeight: FormControl<number>;
62
62
  defs: FormControl<string | null>;
63
+ timelines: FormControl<GveAnimationTimeline[]>;
63
64
  textRange?: VarBaseTextRange;
64
65
  editedOp?: CharChainOperation;
65
66
  editedOpIndex: number;
67
+ opTags: string[];
68
+ opElementIds: string[];
66
69
  busy?: boolean;
67
70
  parseError?: string;
68
71
  opTypeMap: {
@@ -105,6 +108,7 @@ export declare class SnapshotEditorComponent implements OnInit {
105
108
  onSnapshotRender(event: CustomEvent<SnapshotViewRenderEvent>): void;
106
109
  toggleRulers(): void;
107
110
  private getSnapshot;
111
+ onTimelinesChange(timelines: GveAnimationTimeline[]): void;
108
112
  save(): void;
109
113
  static ɵfac: i0.ɵɵFactoryDeclaration<SnapshotEditorComponent, never>;
110
114
  static ɵcmp: i0.ɵɵComponentDeclaration<SnapshotEditorComponent, "gve-snapshot-editor", never, { "snapshot": { "alias": "snapshot"; "required": false; }; "batchOps": { "alias": "batchOps"; "required": false; }; "noSave": { "alias": "noSave"; "required": false; }; }, { "snapshotChange": "snapshotChange"; "snapshotCancel": "snapshotCancel"; }, never, never, true, never>;
@@ -29,6 +29,13 @@ export interface CharChainResult {
29
29
  [key: string]: CharNode[];
30
30
  };
31
31
  }
32
+ /**
33
+ * The input and output tags of a char-based chain operation.
34
+ */
35
+ export interface ChainOperationTags {
36
+ inputTag: string;
37
+ outputTag: string;
38
+ }
32
39
  /**
33
40
  * Service to interact with the GVE API.
34
41
  */
@@ -52,6 +59,13 @@ export declare class GveApiService {
52
59
  * @returns Result wrapper.
53
60
  */
54
61
  runOperations(text: CharNode[], operations: CharChainOperation[]): Observable<ResultWrapper<CharChainResult>>;
62
+ /**
63
+ * Get the input and output tags for the given operations.
64
+ *
65
+ * @param operations The operations.
66
+ * @returns Result wrapper.
67
+ */
68
+ getTags(operations: CharChainOperation[]): Observable<ResultWrapper<string[]>>;
55
69
  static ɵfac: i0.ɵɵFactoryDeclaration<GveApiService, never>;
56
70
  static ɵprov: i0.ɵɵInjectableDeclaration<GveApiService>;
57
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrmidon/gve-core",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Cadmus - GVE frontend core components.",
5
5
  "keywords": [
6
6
  "GVE"