sldeditor 0.33.1 → 0.35.0
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/dist/OneLineEditor.d.ts +9 -1
- package/dist/OneLineEditor.d.ts.map +1 -1
- package/dist/canvas/CanvasSvg.d.ts.map +1 -1
- package/dist/canvas/ElementLayer.d.ts.map +1 -1
- package/dist/canvas/useKeyboardShortcuts.d.ts.map +1 -1
- package/dist/compiler/library-index.d.ts.map +1 -1
- package/dist/components/ContextualToolbar.d.ts.map +1 -1
- package/dist/components/EditorShell.d.ts.map +1 -1
- package/dist/components/PropertyPanel.d.ts.map +1 -1
- package/dist/components/QuickInsert.d.ts +13 -0
- package/dist/components/QuickInsert.d.ts.map +1 -0
- package/dist/components/contact-actions.d.ts +16 -0
- package/dist/components/contact-actions.d.ts.map +1 -0
- package/dist/components/quick-insert-state.d.ts +31 -0
- package/dist/components/quick-insert-state.d.ts.map +1 -0
- package/dist/hooks/use-tool-use.d.ts +10 -0
- package/dist/hooks/use-tool-use.d.ts.map +1 -0
- package/dist/i18n/locales/ar.d.ts +1 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/de.d.ts +1 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/es.d.ts +1 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/fa.d.ts +1 -1
- package/dist/i18n/locales/fa.d.ts.map +1 -1
- package/dist/i18n/locales/fr.d.ts +1 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/he.d.ts +1 -1
- package/dist/i18n/locales/he.d.ts.map +1 -1
- package/dist/i18n/locales/index.d.ts +9 -9
- package/dist/i18n/locales/ja.d.ts +1 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/pt.d.ts +1 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/ru.d.ts +1 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/messages.d.ts +77 -9
- package/dist/i18n/messages.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/contact-numbers.d.ts +54 -0
- package/dist/lib/contact-numbers.d.ts.map +1 -0
- package/dist/lib/export-image.d.ts.map +1 -1
- package/dist/lib/symbol-text.d.ts +52 -0
- package/dist/lib/symbol-text.d.ts.map +1 -0
- package/dist/sldeditor.cjs +67 -62
- package/dist/sldeditor.cjs.map +1 -1
- package/dist/sldeditor.js +15663 -14948
- package/dist/sldeditor.js.map +1 -1
- package/dist/store/store.d.ts +23 -0
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/i18n/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/i18n/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYc,CAAC;AAEpC,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,QAAQ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -39,5 +39,6 @@ export type { DxfExportOptions } from './lib/export-dxf';
|
|
|
39
39
|
export { checkHealth, parseRatio, sameVoltageLevel } from './health';
|
|
40
40
|
export type { HealthCode, HealthIssue, HealthReport, HealthSeverity, LoadSummary } from './health';
|
|
41
41
|
export type { HealthEvent } from './hooks/use-host-actions';
|
|
42
|
+
export type { ToolUseEvent } from './hooks/use-tool-use';
|
|
42
43
|
export { sheetExportRegion, sheetMinStroke, sheetExportOptions } from './lib/export-sheets';
|
|
43
44
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,kBAAkB,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAK5E,O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EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKpE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAKzD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACrE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACnG,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { LibraryEntry } from '../model/library';
|
|
2
|
+
import { DiagramFile, Element, ElementId } from '../model/types';
|
|
3
|
+
/** Auxiliary contacts: their tag is their operator's. */
|
|
4
|
+
export declare const AUX_CONTACT_KINDS: ReadonlySet<string>;
|
|
5
|
+
/** A contact the "add contact" action offers. */
|
|
6
|
+
export interface ContactOption {
|
|
7
|
+
kind: string;
|
|
8
|
+
/** Message key of its menu label. */
|
|
9
|
+
labelKey: 'contacts.no' | 'contacts.nc' | 'contacts.onDelayNo' | 'contacts.onDelayNc' | 'contacts.offDelayNo' | 'contacts.offDelayNc' | 'contacts.main';
|
|
10
|
+
}
|
|
11
|
+
/** A tag as compared: no leading "-", no surrounding space, upper case. */
|
|
12
|
+
export declare function normalizeTag(name: string | undefined): string;
|
|
13
|
+
/** Every element carrying `tag` — the pieces of one device. */
|
|
14
|
+
export declare function deviceMembers(diagram: DiagramFile, tag: string): Element[];
|
|
15
|
+
/**
|
|
16
|
+
* The device `el` is part of, when it is a piece of a device contacts can be
|
|
17
|
+
* added to: an operator (coil, timer, contactor) or a contact of one, with a
|
|
18
|
+
* tag. Null otherwise — an unnamed contact belongs to nothing yet.
|
|
19
|
+
*/
|
|
20
|
+
export declare function contactDeviceOf(diagram: DiagramFile, el: Element): {
|
|
21
|
+
tag: string;
|
|
22
|
+
members: Element[];
|
|
23
|
+
} | null;
|
|
24
|
+
/**
|
|
25
|
+
* The contacts `add contact` offers for a device: make / break for every
|
|
26
|
+
* relay and contactor, the delayed ones as well when the device is a timer,
|
|
27
|
+
* and the 3-pole main contacts for a contactor (-KM) that has none drawn yet.
|
|
28
|
+
*/
|
|
29
|
+
export declare function contactOptions(members: readonly Element[], tag: string): ContactOption[];
|
|
30
|
+
/** Sequence digits the device's contacts already use. */
|
|
31
|
+
export declare function usedSequences(diagram: DiagramFile, tag: string, exclude?: ElementId, library?: ReadonlyMap<string, LibraryEntry>): Set<number>;
|
|
32
|
+
/**
|
|
33
|
+
* Terminal numbers for a new `kind` contact of device `tag`: the library's
|
|
34
|
+
* own numbers when their sequence digit is still free on the device (the
|
|
35
|
+
* first make contact is 13-14, a timer's first delayed break 55-56), else the
|
|
36
|
+
* lowest free sequence digit with the contact's function digits — the second
|
|
37
|
+
* make contact of -KM1 is 23-24, then 33-34. Null for a symbol without
|
|
38
|
+
* auxiliary numbers (main contacts keep 1-2 / 3-4 / 5-6).
|
|
39
|
+
*/
|
|
40
|
+
export declare function nextContactPins(diagram: DiagramFile, tag: string, kind: string, exclude?: ElementId, library?: ReadonlyMap<string, LibraryEntry>): Record<string, string> | null;
|
|
41
|
+
/**
|
|
42
|
+
* `pins` as the element's `pinLabels`: only the pins that differ from the
|
|
43
|
+
* library, other overrides kept; undefined when nothing is left.
|
|
44
|
+
*/
|
|
45
|
+
export declare function pinLabelsWith(el: Pick<Element, 'kind' | 'pinLabels'>, pins: Record<string, string>, library?: ReadonlyMap<string, LibraryEntry>): Record<string, string> | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Renaming an auxiliary contact to the tag of an existing device ("-KM1")
|
|
48
|
+
* gives it the device's next free terminal numbers — unless the numbers it
|
|
49
|
+
* already has are free there, which they are for the first contact of a kind
|
|
50
|
+
* and for numbers the user typed on purpose. Returns the `pinLabels` to set
|
|
51
|
+
* (undefined clears them), or `null` to leave the pins alone.
|
|
52
|
+
*/
|
|
53
|
+
export declare function pinLabelsOnRename(diagram: DiagramFile, id: ElementId, name: string | undefined, library?: ReadonlyMap<string, LibraryEntry>): Record<string, string> | undefined | null;
|
|
54
|
+
//# sourceMappingURL=contact-numbers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-numbers.d.ts","sourceRoot":"","sources":["../../src/lib/contact-numbers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEtE,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAOhD,CAAC;AAUH,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,QAAQ,EACJ,aAAa,GACb,aAAa,GACb,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,qBAAqB,GACrB,eAAe,CAAC;CACrB;AAcD,2EAA2E;AAC3E,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAE7D;AAED,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,EAAE,CAI1E;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,GAAG;IAAE,GAAG,EA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|
1
|
-
{"version":3,"file":"export-image.d.ts","sourceRoot":"","sources":["../../src/lib/export-image.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"export-image.d.ts","sourceRoot":"","sources":["../../src/lib/export-image.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAEL,KAAK,UAAU,EAGf,KAAK,SAAS,EAKf,MAAM,UAAU,CAAC;AAyBlB,OAAO,EAAa,KAAK,KAAK,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAgB3E,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qFAAqF;IACrF,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;iEAC6D;IAC7D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B;6EACyE;IACzE,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,iEAAiE;IACjE,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,EACpB,IAAI,GAAE,aAAkB,GACvB,MAAM,CAmOR;AAmPD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAwIlF;AAkBD,wBAAsB,WAAW,CAC/B,KAAK,EAAE,aAAa,EACpB,QAAQ,SAAgB,EACxB,IAAI,CAAC,EAAE,aAAa,GACnB,OAAO,CAAC,IAAI,CAAC,CAMf;AAED,wBAAsB,WAAW,CAC/B,KAAK,EAAE,aAAa,EACpB,QAAQ,SAAgB,EACxB,IAAI,CAAC,EAAE,aAAa,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACxC,OAAO,CAAC,IAAI,CAAC,CA0Bf"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text inside a symbol's own SVG — the "V" in a voltmeter, the "IΔn" a
|
|
3
|
+
* document-defined RCD prints in its body.
|
|
4
|
+
*
|
|
5
|
+
* Two problems, both of which only show up away from the default case:
|
|
6
|
+
*
|
|
7
|
+
* 1. Mirroring. A placement's `mirror` is a `scale(-1 1)` on the symbol
|
|
8
|
+
* group, which reverses every glyph with it, so a flipped symbol read
|
|
9
|
+
* its own text backwards. `uprightSymbolText` counter-flips each `<text>`
|
|
10
|
+
* about its own anchor and swaps `text-anchor` start↔end, so the text box
|
|
11
|
+
* lands exactly where the mirror image of the original box would — only
|
|
12
|
+
* the glyphs are kept readable. Applied by every renderer that draws a
|
|
13
|
+
* placed symbol (canvas, SVG/PNG/PDF export); DXF does the same with its
|
|
14
|
+
* own entity fields.
|
|
15
|
+
*
|
|
16
|
+
* 2. Paint that only works on screen. A document-defined symbol is authored
|
|
17
|
+
* by a model told to "use stroke=black", and a `<g stroke="black"
|
|
18
|
+
* fill="none">` wrapper around the whole drawing is the natural way to
|
|
19
|
+
* write that — which makes the text inside it hollow outlines. At screen
|
|
20
|
+
* zoom that is merely odd; printed at label size the outline swallows the
|
|
21
|
+
* glyph. A missing `font-size` is the same trap: the canvas inherits the
|
|
22
|
+
* host page's size, a standalone export the SVG default, DXF its own.
|
|
23
|
+
* `normalizeSymbolTextPaint` gives every custom-symbol `<text>` a solid
|
|
24
|
+
* fill, no stroke, and an explicit family/size, so every surface draws
|
|
25
|
+
* the same readable text. Built-in symbols already carry all of this
|
|
26
|
+
* and are never rewritten.
|
|
27
|
+
*
|
|
28
|
+
* Both are string rewrites over the tag stream, not DOM work: `buildExportSvg`
|
|
29
|
+
* is pure string assembly and stays usable without a DOM. The fragments are
|
|
30
|
+
* either build-time library content or `sanitizeSymbolSvg` output (serialised
|
|
31
|
+
* by a DOM, so attributes are well-formed and double-quoted). Results are
|
|
32
|
+
* memoised — the canvas re-renders a symbol many times per drag.
|
|
33
|
+
*/
|
|
34
|
+
/** The family the shipped library writes on its own text. */
|
|
35
|
+
export declare const SYMBOL_TEXT_FONT_FAMILY = "Liberation Sans, Arial, sans-serif";
|
|
36
|
+
/**
|
|
37
|
+
* Used when a custom symbol names no size. 16 is what an unsized SVG `<text>`
|
|
38
|
+
* already rendered at in a standalone export, so pinning it changes nothing
|
|
39
|
+
* that looked right — it only stops the canvas and DXF from disagreeing.
|
|
40
|
+
*/
|
|
41
|
+
export declare const SYMBOL_TEXT_DEFAULT_FONT_SIZE = 16;
|
|
42
|
+
/**
|
|
43
|
+
* The symbol fragment as it should be drawn on a placement with this
|
|
44
|
+
* `mirror` flag. Identity (same string) when not mirrored or text-free.
|
|
45
|
+
*/
|
|
46
|
+
export declare function uprightSymbolText(svg: string, mirror: boolean | undefined): string;
|
|
47
|
+
/**
|
|
48
|
+
* Give every `<text>` in a document-defined symbol solid, unstroked,
|
|
49
|
+
* explicitly sized paint. Identity when the fragment has no text.
|
|
50
|
+
*/
|
|
51
|
+
export declare function normalizeSymbolTextPaint(svg: string): string;
|
|
52
|
+
//# sourceMappingURL=symbol-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbol-text.d.ts","sourceRoot":"","sources":["../../src/lib/symbol-text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,uBAAuB,uCAAuC,CAAC;AAC5E;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAoHhD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAGlF;AAqCD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG5D"}
|