@myrmidon/gve-core 2.0.0 → 3.0.3

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/README.md +7 -16
  2. package/fesm2022/myrmidon-gve-core.mjs +843 -833
  3. package/fesm2022/myrmidon-gve-core.mjs.map +1 -1
  4. package/lib/components/animation-timeline/animation-timeline.component.d.ts +7 -10
  5. package/lib/components/animation-timeline-set/animation-timeline-set.component.d.ts +8 -11
  6. package/lib/components/animation-tween/animation-tween.component.d.ts +6 -8
  7. package/lib/components/base-text-char/base-text-char.component.d.ts +3 -6
  8. package/lib/components/base-text-editor/base-text-editor.component.d.ts +5 -7
  9. package/lib/components/base-text-view/base-text-view.component.d.ts +10 -14
  10. package/lib/components/batch-operation-editor/batch-operation-editor.component.d.ts +5 -7
  11. package/lib/components/chain-operation-editor/chain-operation-editor.component.d.ts +10 -14
  12. package/lib/components/chain-result-view/chain-result-view.component.d.ts +6 -10
  13. package/lib/components/chain-view/chain-view.component.d.ts +42 -0
  14. package/lib/components/feature-editor/feature-editor.component.d.ts +8 -12
  15. package/lib/components/feature-set-editor/feature-set-editor.component.d.ts +11 -13
  16. package/lib/components/feature-set-view/feature-set-view.component.d.ts +5 -7
  17. package/lib/components/ln-heights-editor/ln-heights-editor.component.d.ts +5 -8
  18. package/lib/components/operation-source-editor/operation-source-editor.component.d.ts +8 -11
  19. package/lib/components/snapshot-editor/snapshot-editor.component.d.ts +17 -25
  20. package/lib/components/snapshot-text-editor/snapshot-text-editor.component.d.ts +4 -6
  21. package/lib/components/steps-map/steps-map.component.d.ts +6 -10
  22. package/lib/services/gve-api.service.d.ts +37 -0
  23. package/lib/services/gve-graphviz.service.d.ts +20 -0
  24. package/package.json +2 -2
  25. package/public-api.d.ts +2 -1
  26. package/lib/components/simple-tree/simple-tree.component.d.ts +0 -35
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  - 🚀 `npm i @myrmidon/gve-core`.
4
4
 
5
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0.
5
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0. All the components in this library are standalone, and since version 3 their properties and events are signal-based.
6
6
 
7
7
  This is the core UI library for [GVE](https://vedph.github.io/gve-doc).
8
8
 
@@ -72,19 +72,10 @@ The only data directly handled by the component are:
72
72
 
73
73
  Operations and timelines are handled by other children components. The snapshot model is built dynamically when required (via `getSnapshot`), and it is displayed by a snapshot view.
74
74
 
75
- View data, wrapping the snapshot and some options (debug mode, delayed rendering, rules, grid, pan and zoom, transparent SVG elements IDs), are built via `setViewData`, which in turns gets the snapshot from `getSnapshot` unless it receives one.
75
+ ## Dependencies
76
76
 
77
- The key logic for displaying the snapshot is implemented in `runTo`, which runs the operations up to the specified index. This gets called when:
78
-
79
- - a preview is requested by the operation editor.
80
- - the currently edited operation is saved.
81
- - the user picks a step in the chain result view.
82
- - `runToLast` is called, which happens when:
83
- - setting the snapshot from the parent.
84
- - the number of operations changes, either by parsing a batch of operations or by deleting an operation.
85
-
86
- This function gets the snapshot (via `getSnapshot`), patches it so that it corresponds to the set of operations up to the specified index, and runs all these operations. Once done, it extracts the transparent elements IDs from the last operation, updates view data (via `setViewData` passing the built snapshot to it), and returns the execution result.
87
-
88
- After running operations, the result is stored in `result` (of type `CharChainResult`), which feeds the `ChainResultViewComponent` in charge of showing the details of each generated text version. In turn, this may fire step-pick events, which are handled by getting the snapshot at that step, updating the transparent element IDs, and updating view data (via `setViewData` passing the built snapshot to it); also, an animation is played if required, after running operations up to the one corresponding to the picked step.
89
-
90
- When an operation is saved from the child operation editor (`onOperationChange`), all the operations are run up to the saved one.
77
+ - [@myrmidon/ngx-tools, @myrmidon/ngx-mat-tools](https://github.com/vedph/ngx-tools)
78
+ - [@myrmidon/gve-snapshot-view](https://github.com/vedph/gve-snapshot-view): the snapshot view. This is a pure TS library, no JS framework required. The component is a standard web component.
79
+ - [cisstech/nge](https://github.com/cisstech/nge) for a light Monaco editor wrapper.
80
+ - [@svgdotjs/svg.js](https://github.com/svgdotjs/svg.js/) for SVG manipulation.
81
+ - [gsap](https://gsap.com/) for animations.