sldeditor 0.36.0 → 0.36.1

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.
@@ -54,11 +54,15 @@ export interface SeriesCut {
54
54
  export declare function splitWiresForSeries(d: DiagramFile, m: InternalModel, elementId: ElementId, cuts: SeriesCut[]): DiagramFile;
55
55
  /**
56
56
  * Close the conductors back up through every pole of the devices being
57
- * deleted. A pole heals when each of its pins carries exactly one wire and
58
- * both far ends survive the delete (and are not the same point): the two
59
- * wires become one, keeping the label / colour and — when the router would
60
- * draw it differently — the route the two halves made. Returns the wires to
61
- * add; the caller removes the deleted devices' wires as usual.
57
+ * deleted. Only in-line devices heal (`series` in the library: contacts,
58
+ * switches, fuses, breakers, terminals) — a coil, lamp or motor sits across
59
+ * a supply, and closing its gap would draw a short. A pole heals when each
60
+ * of its pins carries exactly one wire, both far ends survive the delete
61
+ * (and are not the same point), and the two sides are not two different
62
+ * named potentials (rail L and rail N, conductor L1 and L2): the two wires
63
+ * become one, keeping the label / colour and — when the router would draw
64
+ * it differently — the route the two halves made. Returns the wires to add;
65
+ * the caller removes the deleted devices' wires as usual.
62
66
  */
63
67
  export declare function healSeries(d: DiagramFile, m: InternalModel, deleted: ReadonlySet<string>): Wire[];
64
68
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"series.d.ts","sourceRoot":"","sources":["../../src/store/series.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,YAAY,EAGZ,IAAI,EAEL,MAAM,UAAU,CAAC;AAIlB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE3B,+EAA+E;AAC/E,MAAM,WAAW,IAAI;IACnB,+DAA+D;IAC/D,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC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H,wBAAgB,UAAU,CACxB,CAAC,EAAE,WAAW,EACd,CAAC,EAAE,aAAa,EAChB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAC3B,IAAI,EAAE,CA+DR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sldeditor",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "description": "Lightweight in-browser React editor for electrical single-line diagrams (SLD).",
5
5
  "type": "module",
6
6
  "license": "MIT",