@myrmidon/gve-core 5.0.0 → 5.0.2
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/README.md +43 -0
- package/fesm2022/myrmidon-gve-core.mjs +291 -181
- package/fesm2022/myrmidon-gve-core.mjs.map +1 -1
- package/index.d.ts +167 -86
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MatDialogConfig, MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnInit, OnDestroy,
|
|
3
|
+
import { OnInit, OnDestroy, ElementRef, AfterViewInit } from '@angular/core';
|
|
4
4
|
import { FormControl, FormGroup, FormBuilder } from '@angular/forms';
|
|
5
|
-
import { GveAnimationTimeline, GveAnimationTween, TweenType, CharNode, Feature, CharChainOperation, OperationFeature,
|
|
5
|
+
import { GveAnimationTimeline, GveAnimationTween, TweenType, CharNode, Feature, CharChainOperation, OperationFeature, LabeledId, FeatureSetPolicy, SnapshotBase, OperationSource, OperationType, SnapshotViewComponent, Snapshot, SnapshotViewData, GveVisualEvent, SnapshotViewRenderEvent } from '@myrmidon/gve-snapshot-view';
|
|
6
6
|
import { DialogService } from '@myrmidon/ngx-mat-tools';
|
|
7
7
|
import { HttpClient } from '@angular/common/http';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
@@ -250,7 +250,7 @@ interface VarBaseTextRange {
|
|
|
250
250
|
* - 🔥 `rangePick` (`VarBaseTextRange`): emitted when a range is picked.
|
|
251
251
|
*/
|
|
252
252
|
declare class BaseTextViewComponent {
|
|
253
|
-
private
|
|
253
|
+
private _lastSelectedPosition?;
|
|
254
254
|
/**
|
|
255
255
|
* The default color for the text.
|
|
256
256
|
*/
|
|
@@ -291,11 +291,31 @@ declare class BaseTextViewComponent {
|
|
|
291
291
|
* The range is inclusive.
|
|
292
292
|
*/
|
|
293
293
|
readonly rangePick: _angular_core.OutputEmitterRef<VarBaseTextRange>;
|
|
294
|
-
|
|
294
|
+
/**
|
|
295
|
+
* The base characters organized by lines, computed from text input.
|
|
296
|
+
*/
|
|
297
|
+
private readonly baseLines;
|
|
298
|
+
/**
|
|
299
|
+
* Signal for tracking selected range state.
|
|
300
|
+
*/
|
|
301
|
+
private readonly selectedRange;
|
|
302
|
+
/**
|
|
303
|
+
* The lines with selection state applied, computed from base lines and selection.
|
|
304
|
+
*/
|
|
305
|
+
readonly lines: _angular_core.Signal<BaseTextChar[][]>;
|
|
295
306
|
constructor();
|
|
296
307
|
private buildLines;
|
|
297
|
-
private resetColors;
|
|
298
308
|
onCharPick(event: BaseTextCharEvent): void;
|
|
309
|
+
/**
|
|
310
|
+
* Find the position (index in flat array) of a character by its ID.
|
|
311
|
+
* Returns -1 if not found.
|
|
312
|
+
*/
|
|
313
|
+
private findCharPosition;
|
|
314
|
+
/**
|
|
315
|
+
* Get the character ID at a specific position in the flat array.
|
|
316
|
+
* Returns the ID or -1 if position is out of bounds.
|
|
317
|
+
*/
|
|
318
|
+
private getCharIdAtPosition;
|
|
299
319
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseTextViewComponent, never>;
|
|
300
320
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseTextViewComponent, "gve-base-text-view", never, { "defaultColor": { "alias": "defaultColor"; "required": false; "isSignal": true; }; "defaultBorderColor": { "alias": "defaultBorderColor"; "required": false; "isSignal": true; }; "selectionColor": { "alias": "selectionColor"; "required": false; "isSignal": true; }; "hasLineNumber": { "alias": "hasLineNumber"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "colorCallback": { "alias": "colorCallback"; "required": false; "isSignal": true; }; "borderColorCallback": { "alias": "borderColorCallback"; "required": false; "isSignal": true; }; }, { "charPick": "charPick"; "rangePick": "rangePick"; }, never, never, true, never>;
|
|
301
321
|
}
|
|
@@ -606,6 +626,97 @@ declare class SettingsService {
|
|
|
606
626
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SettingsService>;
|
|
607
627
|
}
|
|
608
628
|
|
|
629
|
+
/**
|
|
630
|
+
* Features map. This is used for features from closed sets,
|
|
631
|
+
* and lists the possible values for each feature.
|
|
632
|
+
* The key is the feature name, and the value is an array of
|
|
633
|
+
* labeled IDs representing the allowed values for that feature.
|
|
634
|
+
*/
|
|
635
|
+
interface FeatureMap {
|
|
636
|
+
[key: string]: LabeledId[];
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* 🔑 `gve-feature-editor`
|
|
640
|
+
*
|
|
641
|
+
* Component for editing a single feature, whose model is a name=value
|
|
642
|
+
* pair, plus a set policy value which defines the desired behavior
|
|
643
|
+
* when adding that feature to a set.
|
|
644
|
+
* Used by `gve-feature-set-editor`.
|
|
645
|
+
*
|
|
646
|
+
* - ▶️ `feature` (`Feature`): the feature to edit.
|
|
647
|
+
* - ▶️ `featNames` (`LabeledId[]`): the list of feature names to display
|
|
648
|
+
* in the _name_ selection. This is used when you have a closed list of
|
|
649
|
+
* features. Each item in the list is an object with _id_ and _label_
|
|
650
|
+
* properties.
|
|
651
|
+
* - ▶️ `featValues` (`FeatureMap`): the feature values map. When
|
|
652
|
+
* specified and the user selects a feature name present in the map keys,
|
|
653
|
+
* the corresponding values will be used to populate the value selection.
|
|
654
|
+
* - 🔥 `featureChange` (`Feature`): emitted when feature has changed.
|
|
655
|
+
* - 🔥 `featureCancel`: emitted when the user cancels the feature editing.
|
|
656
|
+
*/
|
|
657
|
+
declare class FeatureEditorComponent implements OnInit, OnDestroy {
|
|
658
|
+
private _sub?;
|
|
659
|
+
private _frozen?;
|
|
660
|
+
nameControl?: ElementRef;
|
|
661
|
+
/**
|
|
662
|
+
* The list of feature names to display in the name selection.
|
|
663
|
+
* This is used when you have a closed list of features.
|
|
664
|
+
*/
|
|
665
|
+
readonly featNames: _angular_core.InputSignal<LabeledId[] | undefined>;
|
|
666
|
+
/**
|
|
667
|
+
* The feature values map. When specified and the user selects a feature
|
|
668
|
+
* name present in the map keys, the corresponding values will be used
|
|
669
|
+
* to populate the value selection.
|
|
670
|
+
*/
|
|
671
|
+
readonly featValues: _angular_core.InputSignal<FeatureMap | undefined>;
|
|
672
|
+
/**
|
|
673
|
+
* The feature to edit.
|
|
674
|
+
*/
|
|
675
|
+
readonly feature: _angular_core.ModelSignal<Feature | OperationFeature | undefined>;
|
|
676
|
+
/**
|
|
677
|
+
* True if the feature is a variant operation feature, which has
|
|
678
|
+
* additional properties like negation, global, and short-lived.
|
|
679
|
+
*/
|
|
680
|
+
readonly isVar: _angular_core.InputSignal<boolean>;
|
|
681
|
+
/**
|
|
682
|
+
* Event emitted when the user cancels the feature editing.
|
|
683
|
+
*/
|
|
684
|
+
readonly featureCancel: _angular_core.OutputEmitterRef<void>;
|
|
685
|
+
readonly nameIds: _angular_core.WritableSignal<LabeledId[] | undefined>;
|
|
686
|
+
name: FormControl<string>;
|
|
687
|
+
value: FormControl<string>;
|
|
688
|
+
setPolicy: FormControl<FeatureSetPolicy>;
|
|
689
|
+
isNegated: FormControl<boolean>;
|
|
690
|
+
isGlobal: FormControl<boolean>;
|
|
691
|
+
isShortLived: FormControl<boolean>;
|
|
692
|
+
form: FormGroup;
|
|
693
|
+
constructor(formBuilder: FormBuilder);
|
|
694
|
+
ngOnInit(): void;
|
|
695
|
+
ngOnDestroy(): void;
|
|
696
|
+
private getLabeledIdsFor;
|
|
697
|
+
private updateForm;
|
|
698
|
+
cancel(): void;
|
|
699
|
+
save(): void;
|
|
700
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeatureEditorComponent, never>;
|
|
701
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FeatureEditorComponent, "gve-feature-editor", never, { "featNames": { "alias": "featNames"; "required": false; "isSignal": true; }; "featValues": { "alias": "featValues"; "required": false; "isSignal": true; }; "feature": { "alias": "feature"; "required": false; "isSignal": true; }; "isVar": { "alias": "isVar"; "required": false; "isSignal": true; }; }, { "feature": "featureChange"; "featureCancel": "featureCancel"; }, never, never, true, never>;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Definitions for features, including names and values.
|
|
706
|
+
*/
|
|
707
|
+
interface FeatureDefinitions {
|
|
708
|
+
/**
|
|
709
|
+
* The list of feature names to display in the name selection.
|
|
710
|
+
* This is used when you have a closed list of features.
|
|
711
|
+
*/
|
|
712
|
+
names?: LabeledId[];
|
|
713
|
+
/**
|
|
714
|
+
* The feature values map. When specified and the user selects a feature
|
|
715
|
+
* name present in the map keys, the corresponding values will be used
|
|
716
|
+
* to populate the value selection.
|
|
717
|
+
*/
|
|
718
|
+
values?: FeatureMap;
|
|
719
|
+
}
|
|
609
720
|
/**
|
|
610
721
|
* 🔑 `gve-chain-operation-editor`
|
|
611
722
|
*
|
|
@@ -677,6 +788,22 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
|
677
788
|
* Whether to hide the preview request button.
|
|
678
789
|
*/
|
|
679
790
|
readonly hidePreview: _angular_core.InputSignal<boolean | undefined>;
|
|
791
|
+
/**
|
|
792
|
+
* Definitions for features, including names and values.
|
|
793
|
+
*/
|
|
794
|
+
readonly featureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
795
|
+
/**
|
|
796
|
+
* Definitions for element features, including names and values.
|
|
797
|
+
*/
|
|
798
|
+
readonly elementFeatureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
799
|
+
/**
|
|
800
|
+
* Definitions for diplomatic features, including names and values.
|
|
801
|
+
*/
|
|
802
|
+
readonly diplomaticFeatureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
803
|
+
/**
|
|
804
|
+
* Set when the edited operation's text range is to be patched.
|
|
805
|
+
*/
|
|
806
|
+
readonly rangePatch: _angular_core.InputSignal<VarBaseTextRange | undefined>;
|
|
680
807
|
/**
|
|
681
808
|
* Emitted when the operation is changed.
|
|
682
809
|
*/
|
|
@@ -720,6 +847,7 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
|
720
847
|
constructor(formBuilder: FormBuilder, _clipboard: Clipboard, _settings: SettingsService, _dialogService: DialogService);
|
|
721
848
|
ngOnInit(): void;
|
|
722
849
|
ngOnDestroy(): void;
|
|
850
|
+
private toggleLfEscape;
|
|
723
851
|
private hasTextChanges;
|
|
724
852
|
onCreateEditor(editor: monaco.editor.IEditor): void;
|
|
725
853
|
onFeaturesChange(features: OperationFeature[]): void;
|
|
@@ -746,7 +874,7 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
|
746
874
|
requestPreview(): void;
|
|
747
875
|
save(): void;
|
|
748
876
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChainOperationEditorComponent, never>;
|
|
749
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChainOperationEditorComponent, "gve-chain-operation-editor", never, { "operation": { "alias": "operation"; "required": false; "isSignal": true; }; "snapshot": { "alias": "snapshot"; "required": false; "isSignal": true; }; "hidePreview": { "alias": "hidePreview"; "required": false; "isSignal": true; }; }, { "operation": "operationChange"; "operationChange": "operationChange"; "operationPreview": "operationPreview"; "operationCancel": "operationCancel"; }, never, never, true, never>;
|
|
877
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChainOperationEditorComponent, "gve-chain-operation-editor", never, { "operation": { "alias": "operation"; "required": false; "isSignal": true; }; "snapshot": { "alias": "snapshot"; "required": false; "isSignal": true; }; "hidePreview": { "alias": "hidePreview"; "required": false; "isSignal": true; }; "featureDefs": { "alias": "featureDefs"; "required": false; "isSignal": true; }; "elementFeatureDefs": { "alias": "elementFeatureDefs"; "required": false; "isSignal": true; }; "diplomaticFeatureDefs": { "alias": "diplomaticFeatureDefs"; "required": false; "isSignal": true; }; "rangePatch": { "alias": "rangePatch"; "required": false; "isSignal": true; }; }, { "operation": "operationChange"; "operationChange": "operationChange"; "operationPreview": "operationPreview"; "operationCancel": "operationCancel"; }, never, never, true, never>;
|
|
750
878
|
}
|
|
751
879
|
|
|
752
880
|
/**
|
|
@@ -784,6 +912,17 @@ declare class ChainResultViewComponent implements OnInit, OnDestroy, AfterViewIn
|
|
|
784
912
|
readonly step: _angular_core.WritableSignal<ChainOperationContextStep | undefined>;
|
|
785
913
|
readonly selection: _angular_core.WritableSignal<string | undefined>;
|
|
786
914
|
readonly selectionFeatures: _angular_core.WritableSignal<OperationFeature[]>;
|
|
915
|
+
readonly selectionRange: _angular_core.WritableSignal<VarBaseTextRange | undefined>;
|
|
916
|
+
/**
|
|
917
|
+
* True to disable range picking. For instance the snapshot editor,
|
|
918
|
+
* which uses rangePick to set the edited operation's range, disables
|
|
919
|
+
* this when no operation is being edited.
|
|
920
|
+
*/
|
|
921
|
+
readonly disabledRangePick: _angular_core.InputSignal<boolean>;
|
|
922
|
+
/**
|
|
923
|
+
* Emitted when a range is picked.
|
|
924
|
+
*/
|
|
925
|
+
readonly rangePick: _angular_core.OutputEmitterRef<VarBaseTextRange>;
|
|
787
926
|
versionTag: FormControl<string | null>;
|
|
788
927
|
tag: FormControl<string | null>;
|
|
789
928
|
constructor(formBuilder: FormBuilder);
|
|
@@ -801,8 +940,9 @@ declare class ChainResultViewComponent implements OnInit, OnDestroy, AfterViewIn
|
|
|
801
940
|
onTextCharPick(event: BaseTextCharEvent): void;
|
|
802
941
|
onTextRangePick(range: VarBaseTextRange): void;
|
|
803
942
|
onStepChange(step?: ChainOperationContextStep): void;
|
|
943
|
+
pickRange(): void;
|
|
804
944
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChainResultViewComponent, never>;
|
|
805
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChainResultViewComponent, "gve-chain-result-view", never, { "result": { "alias": "result"; "required": false; "isSignal": true; }; "initialStepIndex": { "alias": "initialStepIndex"; "required": false; "isSignal": true; }; }, { "stepPick": "stepPick"; }, never, never, true, never>;
|
|
945
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChainResultViewComponent, "gve-chain-result-view", never, { "result": { "alias": "result"; "required": false; "isSignal": true; }; "initialStepIndex": { "alias": "initialStepIndex"; "required": false; "isSignal": true; }; "disabledRangePick": { "alias": "disabledRangePick"; "required": false; "isSignal": true; }; }, { "stepPick": "stepPick"; "rangePick": "rangePick"; }, never, never, true, never>;
|
|
806
946
|
}
|
|
807
947
|
|
|
808
948
|
type GraphvizRankdir = 'TB' | 'LR' | 'BT' | 'RL';
|
|
@@ -859,81 +999,6 @@ declare class ChainViewComponent implements OnDestroy {
|
|
|
859
999
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChainViewComponent, "gve-chain-view", never, { "chain": { "alias": "chain"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "selectedTags": { "alias": "selectedTags"; "required": false; "isSignal": true; }; }, { "selectedTags": "selectedTagsChange"; }, never, never, true, never>;
|
|
860
1000
|
}
|
|
861
1001
|
|
|
862
|
-
/**
|
|
863
|
-
* Features map. This is used for features from closed sets,
|
|
864
|
-
* and lists the possible values for each feature.
|
|
865
|
-
* The key is the feature name, and the value is an array of
|
|
866
|
-
* labeled IDs representing the allowed values for that feature.
|
|
867
|
-
*/
|
|
868
|
-
interface FeatureMap {
|
|
869
|
-
[key: string]: LabeledId[];
|
|
870
|
-
}
|
|
871
|
-
/**
|
|
872
|
-
* 🔑 `gve-feature-editor`
|
|
873
|
-
*
|
|
874
|
-
* Component for editing a single feature, whose model is a name=value
|
|
875
|
-
* pair, plus a set policy value which defines the desired behavior
|
|
876
|
-
* when adding that feature to a set.
|
|
877
|
-
* Used by `gve-feature-set-editor`.
|
|
878
|
-
*
|
|
879
|
-
* - ▶️ `feature` (`Feature`): the feature to edit.
|
|
880
|
-
* - ▶️ `featNames` (`LabeledId[]`): the list of feature names to display
|
|
881
|
-
* in the _name_ selection. This is used when you have a closed list of
|
|
882
|
-
* features. Each item in the list is an object with _id_ and _label_
|
|
883
|
-
* properties.
|
|
884
|
-
* - ▶️ `featValues` (`FeatureMap`): the feature values map. When
|
|
885
|
-
* specified and the user selects a feature name present in the map keys,
|
|
886
|
-
* the corresponding values will be used to populate the value selection.
|
|
887
|
-
* - 🔥 `featureChange` (`Feature`): emitted when feature has changed.
|
|
888
|
-
* - 🔥 `featureCancel`: emitted when the user cancels the feature editing.
|
|
889
|
-
*/
|
|
890
|
-
declare class FeatureEditorComponent implements OnInit, OnDestroy {
|
|
891
|
-
private _sub?;
|
|
892
|
-
private _frozen?;
|
|
893
|
-
nameControl?: ElementRef;
|
|
894
|
-
/**
|
|
895
|
-
* The list of feature names to display in the name selection.
|
|
896
|
-
* This is used when you have a closed list of features.
|
|
897
|
-
*/
|
|
898
|
-
readonly featNames: _angular_core.InputSignal<LabeledId[] | undefined>;
|
|
899
|
-
/**
|
|
900
|
-
* The feature values map. When specified and the user selects a feature
|
|
901
|
-
* name present in the map keys, the corresponding values will be used
|
|
902
|
-
* to populate the value selection.
|
|
903
|
-
*/
|
|
904
|
-
readonly featValues: _angular_core.InputSignal<FeatureMap | undefined>;
|
|
905
|
-
/**
|
|
906
|
-
* The feature to edit.
|
|
907
|
-
*/
|
|
908
|
-
readonly feature: _angular_core.ModelSignal<Feature | OperationFeature | undefined>;
|
|
909
|
-
/**
|
|
910
|
-
* True if the feature is a variant operation feature, which has
|
|
911
|
-
* additional properties like negation, global, and short-lived.
|
|
912
|
-
*/
|
|
913
|
-
readonly isVar: _angular_core.InputSignal<boolean>;
|
|
914
|
-
/**
|
|
915
|
-
* Event emitted when the user cancels the feature editing.
|
|
916
|
-
*/
|
|
917
|
-
readonly featureCancel: _angular_core.OutputEmitterRef<void>;
|
|
918
|
-
readonly nameIds: _angular_core.WritableSignal<LabeledId[] | undefined>;
|
|
919
|
-
name: FormControl<string>;
|
|
920
|
-
value: FormControl<string>;
|
|
921
|
-
setPolicy: FormControl<FeatureSetPolicy>;
|
|
922
|
-
isNegated: FormControl<boolean>;
|
|
923
|
-
isGlobal: FormControl<boolean>;
|
|
924
|
-
isShortLived: FormControl<boolean>;
|
|
925
|
-
form: FormGroup;
|
|
926
|
-
constructor(formBuilder: FormBuilder);
|
|
927
|
-
ngOnInit(): void;
|
|
928
|
-
ngOnDestroy(): void;
|
|
929
|
-
private getLabeledIdsFor;
|
|
930
|
-
private updateForm;
|
|
931
|
-
cancel(): void;
|
|
932
|
-
save(): void;
|
|
933
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeatureEditorComponent, never>;
|
|
934
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FeatureEditorComponent, "gve-feature-editor", never, { "featNames": { "alias": "featNames"; "required": false; "isSignal": true; }; "featValues": { "alias": "featValues"; "required": false; "isSignal": true; }; "feature": { "alias": "feature"; "required": false; "isSignal": true; }; "isVar": { "alias": "isVar"; "required": false; "isSignal": true; }; }, { "feature": "featureChange"; "featureCancel": "featureCancel"; }, never, never, true, never>;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
1002
|
/**
|
|
938
1003
|
* 🔑 `gve-feature-set-editor`
|
|
939
1004
|
*
|
|
@@ -960,7 +1025,8 @@ declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
|
|
|
960
1025
|
private _sub?;
|
|
961
1026
|
readonly POLICIES: string[];
|
|
962
1027
|
/**
|
|
963
|
-
* True if the
|
|
1028
|
+
* True if the feature is a variant operation feature, which has
|
|
1029
|
+
* additional properties like negation, global, and short-lived.
|
|
964
1030
|
*/
|
|
965
1031
|
readonly isVar: _angular_core.InputSignal<boolean>;
|
|
966
1032
|
/**
|
|
@@ -1184,6 +1250,18 @@ declare class SnapshotEditorComponent {
|
|
|
1184
1250
|
* features in nodes.
|
|
1185
1251
|
*/
|
|
1186
1252
|
readonly noDecoration: _angular_core.InputSignal<boolean | undefined>;
|
|
1253
|
+
/**
|
|
1254
|
+
* Definitions for features, including names and values.
|
|
1255
|
+
*/
|
|
1256
|
+
readonly featureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
1257
|
+
/**
|
|
1258
|
+
* Definitions for element features, including names and values.
|
|
1259
|
+
*/
|
|
1260
|
+
readonly elementFeatureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Definitions for diplomatic features, including names and values.
|
|
1263
|
+
*/
|
|
1264
|
+
readonly diplomaticFeatureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
1187
1265
|
/**
|
|
1188
1266
|
* Emitted when the user cancels the snapshot editing.
|
|
1189
1267
|
*/
|
|
@@ -1211,6 +1289,7 @@ declare class SnapshotEditorComponent {
|
|
|
1211
1289
|
defs: FormControl<string | null>;
|
|
1212
1290
|
timelines: FormControl<GveAnimationTimeline[]>;
|
|
1213
1291
|
readonly showChain: FormControl<boolean>;
|
|
1292
|
+
readonly featDetails: FormControl<boolean>;
|
|
1214
1293
|
readonly chain: _angular_core.WritableSignal<CharChain | undefined>;
|
|
1215
1294
|
readonly opTags: _angular_core.WritableSignal<string[]>;
|
|
1216
1295
|
readonly opElementIds: _angular_core.WritableSignal<string[]>;
|
|
@@ -1218,6 +1297,7 @@ declare class SnapshotEditorComponent {
|
|
|
1218
1297
|
readonly lineCount: _angular_core.WritableSignal<number>;
|
|
1219
1298
|
readonly editedOp: _angular_core.WritableSignal<CharChainOperation | undefined>;
|
|
1220
1299
|
readonly editedOpIndex: _angular_core.WritableSignal<number>;
|
|
1300
|
+
readonly editedOpRangePatch: _angular_core.WritableSignal<VarBaseTextRange | undefined>;
|
|
1221
1301
|
readonly busy: _angular_core.WritableSignal<boolean>;
|
|
1222
1302
|
readonly opTypeMap: {
|
|
1223
1303
|
0: string;
|
|
@@ -1255,8 +1335,9 @@ declare class SnapshotEditorComponent {
|
|
|
1255
1335
|
/**
|
|
1256
1336
|
* Handle the event fired by the base text editor to pick a text range.
|
|
1257
1337
|
* @param range The picked range.
|
|
1338
|
+
* @param applyToOp True to also apply the picked range to the edited operation.
|
|
1258
1339
|
*/
|
|
1259
|
-
onRangePick(range?: VarBaseTextRange): void;
|
|
1340
|
+
onRangePick(range?: VarBaseTextRange, applyToOp?: boolean): void;
|
|
1260
1341
|
/**
|
|
1261
1342
|
* Update the lists of operation output tags and element IDs by collecting
|
|
1262
1343
|
* all the operation tags and the IDs of the elements in their diplomatic.g
|
|
@@ -1421,7 +1502,7 @@ declare class SnapshotEditorComponent {
|
|
|
1421
1502
|
*/
|
|
1422
1503
|
save(): void;
|
|
1423
1504
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SnapshotEditorComponent, never>;
|
|
1424
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SnapshotEditorComponent, "gve-snapshot-editor", never, { "snapshot": { "alias": "snapshot"; "required": false; "isSignal": true; }; "batchOps": { "alias": "batchOps"; "required": false; "isSignal": true; }; "noSave": { "alias": "noSave"; "required": false; "isSignal": true; }; "debug": { "alias": "debug"; "required": false; "isSignal": true; }; "noDecoration": { "alias": "noDecoration"; "required": false; "isSignal": true; }; }, { "snapshot": "snapshotChange"; "snapshotCancel": "snapshotCancel"; }, never, never, true, never>;
|
|
1505
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SnapshotEditorComponent, "gve-snapshot-editor", never, { "snapshot": { "alias": "snapshot"; "required": false; "isSignal": true; }; "batchOps": { "alias": "batchOps"; "required": false; "isSignal": true; }; "noSave": { "alias": "noSave"; "required": false; "isSignal": true; }; "debug": { "alias": "debug"; "required": false; "isSignal": true; }; "noDecoration": { "alias": "noDecoration"; "required": false; "isSignal": true; }; "featureDefs": { "alias": "featureDefs"; "required": false; "isSignal": true; }; "elementFeatureDefs": { "alias": "elementFeatureDefs"; "required": false; "isSignal": true; }; "diplomaticFeatureDefs": { "alias": "diplomaticFeatureDefs"; "required": false; "isSignal": true; }; }, { "snapshot": "snapshotChange"; "snapshotCancel": "snapshotCancel"; }, never, never, true, never>;
|
|
1425
1506
|
}
|
|
1426
1507
|
|
|
1427
1508
|
/**
|
|
@@ -1499,4 +1580,4 @@ declare class StepsMapComponent implements AfterViewInit {
|
|
|
1499
1580
|
}
|
|
1500
1581
|
|
|
1501
1582
|
export { AnimationTimelineComponent, AnimationTimelineSetComponent, AnimationTweenComponent, BaseTextCharComponent, BaseTextEditorComponent, BaseTextViewComponent, BatchOperationEditorComponent, ChainOperationEditorComponent, ChainResultViewComponent, ChainViewComponent, FeatureEditorComponent, FeatureSetEditorComponent, FeatureSetViewComponent, GveApiService, GveGraphvizService, LnHeightsEditorComponent, OperationSourceEditorComponent, SettingsService, SnapshotEditorComponent, SnapshotTextEditorComponent, StepsMapComponent };
|
|
1502
|
-
export type { BaseTextChar, BaseTextCharEvent, ChainOperationContextStep, ChainOperationTags, CharChain, CharChainLink, CharChainNode, CharChainResult, FeatureMap, GraphvizRankdir, PayloadMatDialogConfig, ResultWrapper, VarBaseTextRange };
|
|
1583
|
+
export type { BaseTextChar, BaseTextCharEvent, ChainOperationContextStep, ChainOperationTags, CharChain, CharChainLink, CharChainNode, CharChainResult, FeatureDefinitions, FeatureMap, GraphvizRankdir, PayloadMatDialogConfig, ResultWrapper, VarBaseTextRange };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myrmidon/gve-core",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Cadmus - GVE Angular frontend core components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"GVE"
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"@cisstech/nge": "^18.2.1",
|
|
21
21
|
"@myrmidon/ngx-mat-tools": "^1.0.0",
|
|
22
22
|
"@myrmidon/ngx-tools": "^2.0.0",
|
|
23
|
-
"@myrmidon/gve-snapshot-view": "^1.2.
|
|
23
|
+
"@myrmidon/gve-snapshot-view": "^1.2.1",
|
|
24
24
|
"@svgdotjs/svg.js": "^3.2.5",
|
|
25
25
|
"gsap": "^3.13.0",
|
|
26
|
-
"monaco-editor": "^0.
|
|
26
|
+
"monaco-editor": "^0.54.0",
|
|
27
27
|
"nanoid": "^5.1.5"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|