@myrmidon/cadmus-part-general-pg 18.0.1 → 20.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
CHANGED
|
@@ -5,3 +5,13 @@
|
|
|
5
5
|
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.0.
|
|
6
6
|
|
|
7
7
|
This library contains the wrappers for all the general parts editors with their sub-routes.
|
|
8
|
+
|
|
9
|
+
## Token Text Layer Part
|
|
10
|
+
|
|
11
|
+
`TokenTextLayerPartFeatureComponent` is the editor of any token-based text layer part, whatever the type of its fragments. Rather than being a simple wrapper, it is a portal for editing the fragments of the layer: it displays the base text with the layer fragments via `DecoratedTokenTextComponent` (from `@myrmidon/cadmus-ui`), where the characters of fragments are highlighted and cannot be selected, so that two fragments can never overlap. Users can:
|
|
12
|
+
|
|
13
|
+
- select any other portion of the text, and add a new fragment there. The toolbar shows the location of the selection.
|
|
14
|
+
- click a fragment to select it, and then edit or delete it. The toolbar shows the location of the selected fragment.
|
|
15
|
+
- pick the location of the selection as the target of a fragment move, from the layer hints.
|
|
16
|
+
|
|
17
|
+
The fragments editors in this library show the base text with the fragment being edited using the same component.
|