fontlabapp.studios.layer_manager._duplicate
_duplicate
Backups tab, Back up mode: the Scriptmix "Duplicate Current Layer" (Scripts/Masters/).
Clone master layers of the selected glyphs into "masters.inspect.model.backup_master/backup_layer_name, custom
suffixes, legacy @ and overlapping names, exact-case prefixes,
casefolded master names refused), reused, not copied. The table lists
each new backup, special layers kept and the existing backups (the
original panel's inventory). Back up writes every clone as ONE
Layer Manager: back up <subject> Undo step through
AppShell.history with no target layers (the original's
layer-creating layers=[] route); the new layers are not master and
not automatic layers (isMasterLayer/autoLayer stay False).
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
DEADLINE_SECONDS |
attribute | ||
KEY |
attribute | ||
SCOPES |
attribute | ||
TITLE |
attribute | ||
backup_master |
function | (name: str, masters: Sequence[str]) -> str | None |
Resolve backup layers through the shared App rule. |
backup_name |
function | (base: str, taken: Collection[str], stamp: str, masters: Sequence[str]) -> str |
Return the shared unique plain backup name, or raise ValueError. |
backups_of |
function | (glyph: Any, masters: Sequence[str]) -> list[str] |
Inventory plain space-prefixed and old @ backups, excluding special layers. |
contour_copy |
attribute | ||
duplicate |
function | (tool: Any, package: Any, jobs: Sequence[tuple[Any, Any, str]], title: str=TITLE) -> dict[str, Any] | None |
Clone each layer, name the clone, add it to its glyph. |
masters_api |
attribute | ||
plan_rows |
function | (package: Any, names: Sequence[str], masters: Sequence[str], suffix: str, facts: Any) -> list[Any] |
The original <code>BackupPanel.plan_rows</code>: (glyph, layer or None, name, note) per row. |