sldeditor 0.10.4 → 0.10.5
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/i18n/messages.d.ts +4 -4
- package/dist/sldeditor.cjs +1 -1
- package/dist/sldeditor.cjs.map +1 -1
- package/dist/sldeditor.js +334 -334
- package/dist/sldeditor.js.map +1 -1
- package/package.json +1 -1
package/dist/sldeditor.js
CHANGED
|
@@ -697,12 +697,12 @@ const oo = "-", Sv = (e) => {
|
|
|
697
697
|
cache: Av(e.cacheSize),
|
|
698
698
|
parseClassName: Iv(e),
|
|
699
699
|
...Sv(e)
|
|
700
|
-
}),
|
|
700
|
+
}), jv = /\s+/, Ov = (e, t) => {
|
|
701
701
|
const {
|
|
702
702
|
parseClassName: n,
|
|
703
703
|
getClassGroupId: o,
|
|
704
704
|
getConflictingClassGroupIds: r
|
|
705
|
-
} = t, i = [], s = e.trim().split(
|
|
705
|
+
} = t, i = [], s = e.trim().split(jv);
|
|
706
706
|
let a = "";
|
|
707
707
|
for (let l = s.length - 1; l >= 0; l -= 1) {
|
|
708
708
|
const c = s[l], {
|
|
@@ -760,7 +760,7 @@ function Lv(e, ...t) {
|
|
|
760
760
|
const c = o(l);
|
|
761
761
|
if (c)
|
|
762
762
|
return c;
|
|
763
|
-
const u =
|
|
763
|
+
const u = Ov(l, n);
|
|
764
764
|
return r(l, u), u;
|
|
765
765
|
}
|
|
766
766
|
return function() {
|
|
@@ -2907,7 +2907,7 @@ function r2({ children: e }) {
|
|
|
2907
2907
|
)
|
|
2908
2908
|
] });
|
|
2909
2909
|
}
|
|
2910
|
-
const
|
|
2910
|
+
const jo = (e) => {
|
|
2911
2911
|
let t;
|
|
2912
2912
|
const n = /* @__PURE__ */ new Set(), o = (c, u) => {
|
|
2913
2913
|
const d = typeof c == "function" ? c(t) : c;
|
|
@@ -2917,7 +2917,7 @@ const Oo = (e) => {
|
|
|
2917
2917
|
}
|
|
2918
2918
|
}, r = () => t, a = { setState: o, getState: r, getInitialState: () => l, subscribe: (c) => (n.add(c), () => n.delete(c)) }, l = t = e(o, r, a);
|
|
2919
2919
|
return a;
|
|
2920
|
-
}, i2 = ((e) => e ?
|
|
2920
|
+
}, i2 = ((e) => e ? jo(e) : jo), s2 = (e) => e;
|
|
2921
2921
|
function a2(e, t = s2) {
|
|
2922
2922
|
const n = Lt.useSyncExternalStore(
|
|
2923
2923
|
e.subscribe,
|
|
@@ -2926,10 +2926,10 @@ function a2(e, t = s2) {
|
|
|
2926
2926
|
);
|
|
2927
2927
|
return Lt.useDebugValue(n), n;
|
|
2928
2928
|
}
|
|
2929
|
-
const
|
|
2929
|
+
const Oo = (e) => {
|
|
2930
2930
|
const t = i2(e), n = (o) => a2(t, o);
|
|
2931
2931
|
return Object.assign(n, t), n;
|
|
2932
|
-
}, an = ((e) => e ?
|
|
2932
|
+
}, an = ((e) => e ? Oo(e) : Oo), Bo = {
|
|
2933
2933
|
zh: {
|
|
2934
2934
|
"common.unnamed": "未命名",
|
|
2935
2935
|
"common.close": "关闭",
|
|
@@ -3101,8 +3101,8 @@ const jo = (e) => {
|
|
|
3101
3101
|
"onboard.step1.body": "切到 元件 工具(P),从左侧元件库选一种拖到画布",
|
|
3102
3102
|
"onboard.step2.title": "拉线连接",
|
|
3103
3103
|
"onboard.step2.body": "用 连线 工具(W)从一个引脚拖到另一个引脚;拖到空白处会自动新建接线柱",
|
|
3104
|
-
"onboard.step3.title": "
|
|
3105
|
-
"onboard.step3.body": "
|
|
3104
|
+
"onboard.step3.title": "母线是共用排,不是连线",
|
|
3105
|
+
"onboard.step3.body": "几条回路共用一排时才用 母线 工具(B)。别拿母线连两个器件——点对点直接拉线(W)就行。",
|
|
3106
3106
|
"onboard.dismiss": "知道了"
|
|
3107
3107
|
},
|
|
3108
3108
|
en: {
|
|
@@ -3276,8 +3276,8 @@ const jo = (e) => {
|
|
|
3276
3276
|
"onboard.step1.body": "Pick the Place tool (P) and drag a kind from the library onto the canvas",
|
|
3277
3277
|
"onboard.step2.title": "Wire it up",
|
|
3278
3278
|
"onboard.step2.body": "Use the Wire tool (W): drag from one pin to another — drag into empty space to drop a junction",
|
|
3279
|
-
"onboard.step3.title": "
|
|
3280
|
-
"onboard.step3.body": "
|
|
3279
|
+
"onboard.step3.title": "A busbar is a shared rail, not a wire",
|
|
3280
|
+
"onboard.step3.body": "Use the Busbar tool (B) only when several circuits share one rail. Don't use a bus to join two devices — just wire the pins (W).",
|
|
3281
3281
|
"onboard.dismiss": "Got it"
|
|
3282
3282
|
}
|
|
3283
3283
|
}, di = "ole-locale";
|
|
@@ -3648,10 +3648,10 @@ function w2(e) {
|
|
|
3648
3648
|
};
|
|
3649
3649
|
for (const A of W) {
|
|
3650
3650
|
const M = [];
|
|
3651
|
-
let
|
|
3651
|
+
let O = !1;
|
|
3652
3652
|
for (const q of A) {
|
|
3653
3653
|
if ($(q)) {
|
|
3654
|
-
|
|
3654
|
+
O = !0;
|
|
3655
3655
|
continue;
|
|
3656
3656
|
}
|
|
3657
3657
|
const Q = E(q);
|
|
@@ -3659,7 +3659,7 @@ function w2(e) {
|
|
|
3659
3659
|
}
|
|
3660
3660
|
const z = [...new Set(M)];
|
|
3661
3661
|
for (const q of z)
|
|
3662
|
-
N.has(q) || N.set(q, /* @__PURE__ */ new Set()),
|
|
3662
|
+
N.has(q) || N.set(q, /* @__PURE__ */ new Set()), O && _.add(q);
|
|
3663
3663
|
const H = z.filter((q) => v.has(q)), Y = z.filter((q) => !v.has(q));
|
|
3664
3664
|
if (H.length > 0) {
|
|
3665
3665
|
for (const q of H) for (const Q of Y) T(q, Q);
|
|
@@ -3670,9 +3670,9 @@ function w2(e) {
|
|
|
3670
3670
|
for (let Q = q + 1; Q < Y.length; Q++) T(Y[q], Y[Q]);
|
|
3671
3671
|
}
|
|
3672
3672
|
const D = (A, M) => {
|
|
3673
|
-
const
|
|
3674
|
-
if (!
|
|
3675
|
-
for (const z of
|
|
3673
|
+
const O = g(A);
|
|
3674
|
+
if (!O) return null;
|
|
3675
|
+
for (const z of O.terminals) {
|
|
3676
3676
|
const H = `${A}.${z.id}`;
|
|
3677
3677
|
for (const Y of k.get(H) ?? [])
|
|
3678
3678
|
for (const q of Y) if (E(q) === M) return z;
|
|
@@ -3682,11 +3682,11 @@ function w2(e) {
|
|
|
3682
3682
|
const M = (U) => {
|
|
3683
3683
|
var te;
|
|
3684
3684
|
return ((te = N.get(U)) == null ? void 0 : te.size) ?? 0;
|
|
3685
|
-
},
|
|
3685
|
+
}, O = (U) => {
|
|
3686
3686
|
var te;
|
|
3687
3687
|
return ((te = g(U)) == null ? void 0 : te.category) ?? "";
|
|
3688
3688
|
}, z = (U) => {
|
|
3689
|
-
const te =
|
|
3689
|
+
const te = O(U);
|
|
3690
3690
|
return te === "source" ? 0 : te === "renewable" ? 1 : 2 + Math.min(M(U), 9) / 10;
|
|
3691
3691
|
}, H = A.filter(S).sort((U, te) => z(U) - z(te) || U.localeCompare(te))[0];
|
|
3692
3692
|
if (!H) return;
|
|
@@ -3726,14 +3726,14 @@ function w2(e) {
|
|
|
3726
3726
|
}
|
|
3727
3727
|
l.set(U, { at: [te, Ee], rot: Me, mirror: !1 }), d.add(U);
|
|
3728
3728
|
}
|
|
3729
|
-
},
|
|
3729
|
+
}, j = /* @__PURE__ */ new Set();
|
|
3730
3730
|
for (const A of N.keys()) {
|
|
3731
|
-
if (
|
|
3732
|
-
const M = [],
|
|
3733
|
-
for (
|
|
3734
|
-
const z =
|
|
3731
|
+
if (j.has(A)) continue;
|
|
3732
|
+
const M = [], O = [A];
|
|
3733
|
+
for (j.add(A); O.length; ) {
|
|
3734
|
+
const z = O.pop();
|
|
3735
3735
|
M.push(z);
|
|
3736
|
-
for (const H of N.get(z) ?? [])
|
|
3736
|
+
for (const H of N.get(z) ?? []) j.has(H) || (j.add(H), O.push(H));
|
|
3737
3737
|
}
|
|
3738
3738
|
M.length < 2 || M.some((z) => _.has(z)) || M.some((z) => l.has(z) || P.has(z)) || M.some(S) && C(M);
|
|
3739
3739
|
}
|
|
@@ -3783,17 +3783,17 @@ function w2(e) {
|
|
|
3783
3783
|
for (const _ of S) {
|
|
3784
3784
|
const T = _.slice(y.id.length + 1);
|
|
3785
3785
|
E.set(T, /* @__PURE__ */ new Set());
|
|
3786
|
-
const D = new Set(S.filter((A) => A !== _)), C = /* @__PURE__ */ new Set([_]),
|
|
3787
|
-
for (;
|
|
3788
|
-
const A =
|
|
3786
|
+
const D = new Set(S.filter((A) => A !== _)), C = /* @__PURE__ */ new Set([_]), j = [_];
|
|
3787
|
+
for (; j.length > 0; ) {
|
|
3788
|
+
const A = j.shift();
|
|
3789
3789
|
if ($(A)) {
|
|
3790
3790
|
E.get(T).add(A);
|
|
3791
3791
|
continue;
|
|
3792
3792
|
}
|
|
3793
3793
|
const M = I.get(A);
|
|
3794
3794
|
if (M)
|
|
3795
|
-
for (const
|
|
3796
|
-
C.has(
|
|
3795
|
+
for (const O of M)
|
|
3796
|
+
C.has(O) || D.has(O) || (C.add(O), j.push(O));
|
|
3797
3797
|
}
|
|
3798
3798
|
}
|
|
3799
3799
|
const N = /* @__PURE__ */ new Set();
|
|
@@ -3810,11 +3810,11 @@ function w2(e) {
|
|
|
3810
3810
|
var D;
|
|
3811
3811
|
const S = g(x), E = S ? S.terminals.map((C) => `${x}.${C.id}`) : [], N = y, _ = /* @__PURE__ */ new Set([N, ...E]), T = [N];
|
|
3812
3812
|
for (; T.length > 0; ) {
|
|
3813
|
-
const C = T.shift(),
|
|
3814
|
-
if (
|
|
3815
|
-
const M = C.slice(0,
|
|
3816
|
-
if (
|
|
3817
|
-
const z = (D = i.get(
|
|
3813
|
+
const C = T.shift(), j = C.indexOf(".");
|
|
3814
|
+
if (j > 0) {
|
|
3815
|
+
const M = C.slice(0, j), O = p.get(M);
|
|
3816
|
+
if (O) {
|
|
3817
|
+
const z = (D = i.get(O.kind)) == null ? void 0 : D.category;
|
|
3818
3818
|
if (z && qo.has(z)) return !0;
|
|
3819
3819
|
}
|
|
3820
3820
|
}
|
|
@@ -3841,26 +3841,26 @@ function w2(e) {
|
|
|
3841
3841
|
(_) => `${y.id}.${_.id}`
|
|
3842
3842
|
), E = /* @__PURE__ */ new Map();
|
|
3843
3843
|
for (const _ of S) {
|
|
3844
|
-
const T = _.slice(y.id.length + 1), D = new Set(S.filter((A) => A !== _)), C = /* @__PURE__ */ new Set([_]),
|
|
3845
|
-
for (;
|
|
3846
|
-
const A =
|
|
3844
|
+
const T = _.slice(y.id.length + 1), D = new Set(S.filter((A) => A !== _)), C = /* @__PURE__ */ new Set([_]), j = [_];
|
|
3845
|
+
for (; j.length > 0; ) {
|
|
3846
|
+
const A = j.shift();
|
|
3847
3847
|
if ($(A)) {
|
|
3848
3848
|
E.set(T, A);
|
|
3849
3849
|
break;
|
|
3850
3850
|
}
|
|
3851
3851
|
const M = I.get(A);
|
|
3852
3852
|
if (M)
|
|
3853
|
-
for (const
|
|
3854
|
-
if (C.has(
|
|
3855
|
-
const z =
|
|
3853
|
+
for (const O of M) {
|
|
3854
|
+
if (C.has(O) || D.has(O)) continue;
|
|
3855
|
+
const z = O.indexOf(".");
|
|
3856
3856
|
if (z > 0) {
|
|
3857
|
-
const H =
|
|
3857
|
+
const H = O.slice(0, z);
|
|
3858
3858
|
if (H !== y.id) {
|
|
3859
3859
|
const Y = p.get(H), q = Y ? i.get(Y.kind) : void 0;
|
|
3860
3860
|
if ((q == null ? void 0 : q.category) === "transformer") continue;
|
|
3861
3861
|
}
|
|
3862
3862
|
}
|
|
3863
|
-
C.add(
|
|
3863
|
+
C.add(O), j.push(O);
|
|
3864
3864
|
}
|
|
3865
3865
|
}
|
|
3866
3866
|
}
|
|
@@ -3934,13 +3934,13 @@ function w2(e) {
|
|
|
3934
3934
|
M.id !== S && T.add(`${y.elementId}.${M.id}`);
|
|
3935
3935
|
const D = /* @__PURE__ */ new Set([E]), C = [
|
|
3936
3936
|
{ ref: E, dist: 0 }
|
|
3937
|
-
],
|
|
3938
|
-
D.add(M),
|
|
3937
|
+
], j = /* @__PURE__ */ new Map(), A = (M, O, z, H) => {
|
|
3938
|
+
D.add(M), j.set(M, O), C.push({ ref: M, dist: H + z });
|
|
3939
3939
|
};
|
|
3940
3940
|
for (; C.length > 0; ) {
|
|
3941
|
-
const { ref: M, dist:
|
|
3941
|
+
const { ref: M, dist: O } = C.shift();
|
|
3942
3942
|
if (M === N) {
|
|
3943
|
-
const q =
|
|
3943
|
+
const q = j.get(N);
|
|
3944
3944
|
let Q;
|
|
3945
3945
|
if (q) {
|
|
3946
3946
|
const ee = q.indexOf(".");
|
|
@@ -3949,7 +3949,7 @@ function w2(e) {
|
|
|
3949
3949
|
K !== y.elementId && (Q = K);
|
|
3950
3950
|
}
|
|
3951
3951
|
}
|
|
3952
|
-
return { extent:
|
|
3952
|
+
return { extent: O, head: Q };
|
|
3953
3953
|
}
|
|
3954
3954
|
const z = M.indexOf(".");
|
|
3955
3955
|
if (z < 0)
|
|
@@ -3961,29 +3961,29 @@ function w2(e) {
|
|
|
3961
3961
|
for (const ee of q.terminals) {
|
|
3962
3962
|
if (ee.id === Y) continue;
|
|
3963
3963
|
const K = `${H}.${ee.id}`;
|
|
3964
|
-
D.has(K) || T.has(K) || A(K, M, Math.abs(Q.y - ee.y),
|
|
3964
|
+
D.has(K) || T.has(K) || A(K, M, Math.abs(Q.y - ee.y), O);
|
|
3965
3965
|
}
|
|
3966
3966
|
}
|
|
3967
3967
|
for (const q of k.get(M) ?? [])
|
|
3968
3968
|
for (const Q of q) {
|
|
3969
3969
|
if (Q === M || D.has(Q) || T.has(Q)) continue;
|
|
3970
3970
|
const ee = $(M) || $(Q);
|
|
3971
|
-
A(Q, M, ee ? Fo : _t,
|
|
3971
|
+
A(Q, M, ee ? Fo : _t, O);
|
|
3972
3972
|
}
|
|
3973
3973
|
}
|
|
3974
3974
|
return { extent: 0 };
|
|
3975
3975
|
}, Ie = (y, x) => {
|
|
3976
|
-
var M,
|
|
3976
|
+
var M, O, z;
|
|
3977
3977
|
const S = (M = se.get(y)) == null ? void 0 : M.get(x);
|
|
3978
3978
|
if (!S || S.orientation === "horizontal") return kt;
|
|
3979
3979
|
const E = g(S.elementId);
|
|
3980
3980
|
if (!E) return kt;
|
|
3981
|
-
const N = (
|
|
3981
|
+
const N = (O = S.attachments.find((H) => H.busId === y)) == null ? void 0 : O.pin, _ = (z = S.attachments.find((H) => H.busId === x)) == null ? void 0 : z.pin;
|
|
3982
3982
|
if (!N || !_) return kt;
|
|
3983
3983
|
const T = E.terminals.find((H) => H.id === N), D = E.terminals.find((H) => H.id === _);
|
|
3984
3984
|
if (!T || !D) return kt;
|
|
3985
|
-
const C = Math.abs(D.y - T.y),
|
|
3986
|
-
return
|
|
3985
|
+
const C = Math.abs(D.y - T.y), j = Ne(S, y, N).extent, A = Ne(S, x, _).extent;
|
|
3986
|
+
return j + C + A;
|
|
3987
3987
|
}, yn = /* @__PURE__ */ new Map();
|
|
3988
3988
|
for (const y of Z) {
|
|
3989
3989
|
if (y.orientation !== "vertical") continue;
|
|
@@ -4006,10 +4006,10 @@ function w2(e) {
|
|
|
4006
4006
|
for (const D of N.terminals) {
|
|
4007
4007
|
const C = `${x}.${D.id}`;
|
|
4008
4008
|
if (C !== y)
|
|
4009
|
-
for (const
|
|
4009
|
+
for (const j of k.get(C) ?? []) {
|
|
4010
4010
|
const A = /* @__PURE__ */ new Set();
|
|
4011
4011
|
let M = !1;
|
|
4012
|
-
for (const z of
|
|
4012
|
+
for (const z of j) {
|
|
4013
4013
|
if (z === C) continue;
|
|
4014
4014
|
if ($(z)) {
|
|
4015
4015
|
M = !0;
|
|
@@ -4021,14 +4021,14 @@ function w2(e) {
|
|
|
4021
4021
|
Y === x || S.has(Y) || G.has(Y) || A.add(Y);
|
|
4022
4022
|
}
|
|
4023
4023
|
if (M || A.size === 0) continue;
|
|
4024
|
-
let
|
|
4024
|
+
let O = 0;
|
|
4025
4025
|
for (const z of A) {
|
|
4026
|
-
const H = [...
|
|
4026
|
+
const H = [...j].find(
|
|
4027
4027
|
(Y) => Y.indexOf(".") > 0 && Y.slice(0, Y.indexOf(".")) === z
|
|
4028
4028
|
);
|
|
4029
|
-
|
|
4029
|
+
O += (H ? fo(H, z, S, E + 1) : uo(z)) + co;
|
|
4030
4030
|
}
|
|
4031
|
-
T = Math.max(T,
|
|
4031
|
+
T = Math.max(T, O - co);
|
|
4032
4032
|
}
|
|
4033
4033
|
}
|
|
4034
4034
|
S.delete(x), _ = Math.max(_, T);
|
|
@@ -4059,18 +4059,18 @@ function w2(e) {
|
|
|
4059
4059
|
if ($(T)) continue;
|
|
4060
4060
|
const D = T.indexOf(".");
|
|
4061
4061
|
if (D < 0) continue;
|
|
4062
|
-
const C = T.slice(0, D),
|
|
4062
|
+
const C = T.slice(0, D), j = T.slice(D + 1);
|
|
4063
4063
|
if (mo(C, y)) continue;
|
|
4064
4064
|
const A = g(C);
|
|
4065
4065
|
if (!A) continue;
|
|
4066
|
-
const M = A.terminals.find((H) => H.id ===
|
|
4066
|
+
const M = A.terminals.find((H) => H.id === j);
|
|
4067
4067
|
if (!M) continue;
|
|
4068
|
-
const
|
|
4069
|
-
|
|
4068
|
+
const O = yn.get(C);
|
|
4069
|
+
O && ho(O.lowerBusId, x);
|
|
4070
4070
|
const z = gt(
|
|
4071
4071
|
C,
|
|
4072
4072
|
A.width,
|
|
4073
|
-
`${C}.${
|
|
4073
|
+
`${C}.${j}`
|
|
4074
4074
|
);
|
|
4075
4075
|
M.y > 0 ? E += z : N += z;
|
|
4076
4076
|
}
|
|
@@ -4096,14 +4096,14 @@ function w2(e) {
|
|
|
4096
4096
|
for (const A of k.get(C) ?? [])
|
|
4097
4097
|
for (const M of A)
|
|
4098
4098
|
M === C || T.has(M) || (T.add(M), D.push(M));
|
|
4099
|
-
const
|
|
4100
|
-
if (
|
|
4101
|
-
const A = C.slice(0,
|
|
4099
|
+
const j = C.indexOf(".");
|
|
4100
|
+
if (j > 0) {
|
|
4101
|
+
const A = C.slice(0, j);
|
|
4102
4102
|
if (!$(A)) {
|
|
4103
4103
|
const M = g(A);
|
|
4104
4104
|
if (M)
|
|
4105
|
-
for (const
|
|
4106
|
-
const z = `${A}.${
|
|
4105
|
+
for (const O of M.terminals) {
|
|
4106
|
+
const z = `${A}.${O.id}`;
|
|
4107
4107
|
T.has(z) || (T.add(z), D.push(z));
|
|
4108
4108
|
}
|
|
4109
4109
|
}
|
|
@@ -4116,9 +4116,9 @@ function w2(e) {
|
|
|
4116
4116
|
if (!S) return;
|
|
4117
4117
|
const E = x.flatMap((M) => {
|
|
4118
4118
|
if ($(M)) return [];
|
|
4119
|
-
const
|
|
4120
|
-
if (
|
|
4121
|
-
const z = M.slice(0,
|
|
4119
|
+
const O = M.indexOf(".");
|
|
4120
|
+
if (O < 0) return [];
|
|
4121
|
+
const z = M.slice(0, O), H = M.slice(O + 1);
|
|
4122
4122
|
if (l.has(z)) return [];
|
|
4123
4123
|
if (mo(z, y)) return [];
|
|
4124
4124
|
const Y = g(z);
|
|
@@ -4137,11 +4137,11 @@ function w2(e) {
|
|
|
4137
4137
|
for (const M of E)
|
|
4138
4138
|
M.localTerm.y > 0 ? N.push(M) : _.push(M);
|
|
4139
4139
|
const T = (M) => M.reduce(
|
|
4140
|
-
(
|
|
4140
|
+
(O, z) => O + gt(z.elId, z.lib.width, z.busFacingRef),
|
|
4141
4141
|
0
|
|
4142
4142
|
), D = Math.max(T(N), T(_)) + Ye, C = Math.max(S.span, D);
|
|
4143
4143
|
C !== S.span && !m.has(y) && c.set(y, { ...S, span: C });
|
|
4144
|
-
const
|
|
4144
|
+
const j = c.get(y), A = (M, O) => {
|
|
4145
4145
|
if (M.length === 0) return;
|
|
4146
4146
|
const z = /* @__PURE__ */ new Map();
|
|
4147
4147
|
for (const V of M) {
|
|
@@ -4149,7 +4149,7 @@ function w2(e) {
|
|
|
4149
4149
|
J !== void 0 && z.set(V.elId, J);
|
|
4150
4150
|
}
|
|
4151
4151
|
M.sort((V, J) => {
|
|
4152
|
-
const fe = z.get(V.elId) ??
|
|
4152
|
+
const fe = z.get(V.elId) ?? j.at[0], ke = z.get(J.elId) ?? j.at[0];
|
|
4153
4153
|
if (fe !== ke) return fe - ke;
|
|
4154
4154
|
const U = gt(V.elId, V.lib.width, V.busFacingRef);
|
|
4155
4155
|
return gt(J.elId, J.lib.width, J.busFacingRef) - U;
|
|
@@ -4157,8 +4157,8 @@ function w2(e) {
|
|
|
4157
4157
|
const H = M.map(
|
|
4158
4158
|
(V) => gt(V.elId, V.lib.width, V.busFacingRef)
|
|
4159
4159
|
), Y = H.reduce((V, J) => V + J, 0), q = Math.max(C, Y), Q = (q - Y) / (M.length + 1);
|
|
4160
|
-
let ee =
|
|
4161
|
-
const K =
|
|
4160
|
+
let ee = j.at[0] - q / 2 + Q;
|
|
4161
|
+
const K = j.at[1] + O * Fo;
|
|
4162
4162
|
for (let V = 0; V < M.length; V++) {
|
|
4163
4163
|
const J = M[V], fe = H[V], ke = ee + fe / 2;
|
|
4164
4164
|
J.isLinker ? qe.has(J.elId) || qe.set(J.elId, ke) : l.set(J.elId, {
|
|
@@ -4179,13 +4179,13 @@ function w2(e) {
|
|
|
4179
4179
|
if (S.length < 2) return;
|
|
4180
4180
|
const E = S.slice().sort(
|
|
4181
4181
|
(ee, K) => (re.get(ee.busId) ?? 0) - (re.get(K.busId) ?? 0)
|
|
4182
|
-
), N = E[0].busId, _ = c.get(N), T = E[0].pin, D = E[E.length - 1].pin, C = x.terminals.find((ee) => ee.id === T),
|
|
4183
|
-
if (!C || !
|
|
4184
|
-
const A = C.y <=
|
|
4182
|
+
), N = E[0].busId, _ = c.get(N), T = E[0].pin, D = E[E.length - 1].pin, C = x.terminals.find((ee) => ee.id === T), j = x.terminals.find((ee) => ee.id === D);
|
|
4183
|
+
if (!C || !j) return;
|
|
4184
|
+
const A = C.y <= j.y ? 0 : 180, M = re.get(N) ?? 0, O = S.filter(
|
|
4185
4185
|
(ee) => (re.get(ee.busId) ?? 0) === M
|
|
4186
4186
|
), z = [];
|
|
4187
4187
|
let H = 0;
|
|
4188
|
-
for (const ee of
|
|
4188
|
+
for (const ee of O) {
|
|
4189
4189
|
const K = Ne(y, ee.busId, ee.pin);
|
|
4190
4190
|
H = Math.max(H, K.extent);
|
|
4191
4191
|
const V = K.head ? l.get(K.head) : void 0;
|
|
@@ -4194,7 +4194,7 @@ function w2(e) {
|
|
|
4194
4194
|
let Y;
|
|
4195
4195
|
z.length > 0 ? Y = z.reduce((ee, K) => ee + K, 0) / z.length : qe.has(y.elementId) ? Y = qe.get(y.elementId) : Y = _.at[0];
|
|
4196
4196
|
const q = _.at[1] + H, Q = A === 0 ? [ye(Y - C.x), ye(q - C.y)] : [ye(Y + C.x), ye(q + C.y)];
|
|
4197
|
-
if (l.set(y.elementId, { at: Q, rot: A, mirror: !1 }),
|
|
4197
|
+
if (l.set(y.elementId, { at: Q, rot: A, mirror: !1 }), O.length > 1) {
|
|
4198
4198
|
const ee = l.get(y.elementId), K = De(
|
|
4199
4199
|
[C.x, C.y],
|
|
4200
4200
|
ee
|
|
@@ -4214,7 +4214,7 @@ function w2(e) {
|
|
|
4214
4214
|
let _ = y, T = x, D = S;
|
|
4215
4215
|
for (; ; ) {
|
|
4216
4216
|
const C = k.get(_) ?? [];
|
|
4217
|
-
let
|
|
4217
|
+
let j, A = !1;
|
|
4218
4218
|
for (const te of C) {
|
|
4219
4219
|
if (te.length >= 3) {
|
|
4220
4220
|
A = !0;
|
|
@@ -4226,16 +4226,16 @@ function w2(e) {
|
|
|
4226
4226
|
A = !0;
|
|
4227
4227
|
break;
|
|
4228
4228
|
}
|
|
4229
|
-
|
|
4229
|
+
j = Ee;
|
|
4230
4230
|
break;
|
|
4231
4231
|
}
|
|
4232
4232
|
}
|
|
4233
|
-
if (A || !
|
|
4234
|
-
const M =
|
|
4233
|
+
if (A || !j) break;
|
|
4234
|
+
const M = j.indexOf(".");
|
|
4235
4235
|
if (M < 0) break;
|
|
4236
|
-
const
|
|
4237
|
-
if ($(
|
|
4238
|
-
const H = g(
|
|
4236
|
+
const O = j.slice(0, M), z = j.slice(M + 1);
|
|
4237
|
+
if ($(O) || G.has(O) || l.has(O)) break;
|
|
4238
|
+
const H = g(O);
|
|
4239
4239
|
if (!H) break;
|
|
4240
4240
|
const Y = H.terminals.find((te) => te.id === z);
|
|
4241
4241
|
if (!Y) break;
|
|
@@ -4250,10 +4250,10 @@ function w2(e) {
|
|
|
4250
4250
|
ye(E - V[0]),
|
|
4251
4251
|
ye(Q[1] - V[1])
|
|
4252
4252
|
];
|
|
4253
|
-
l.set(
|
|
4253
|
+
l.set(O, { at: J, rot: K, mirror: !1 }), N.add(j);
|
|
4254
4254
|
const fe = H.terminals.find((te) => te.id !== z);
|
|
4255
4255
|
if (!fe) break;
|
|
4256
|
-
const ke = `${
|
|
4256
|
+
const ke = `${O}.${fe.id}`;
|
|
4257
4257
|
N.add(ke);
|
|
4258
4258
|
const U = { at: J, rot: K, mirror: !1 };
|
|
4259
4259
|
T = De([fe.x, fe.y], U), D = Yt(fe.orientation, U), _ = ke;
|
|
@@ -4262,23 +4262,23 @@ function w2(e) {
|
|
|
4262
4262
|
if (l.has(y.elementId) || y.orientation !== "horizontal") return;
|
|
4263
4263
|
const x = g(y.elementId);
|
|
4264
4264
|
if (!x) return;
|
|
4265
|
-
const S = y.attachments.filter((
|
|
4265
|
+
const S = y.attachments.filter((O) => c.has(O.busId));
|
|
4266
4266
|
if (S.length < 2) return;
|
|
4267
|
-
const E = S.map((
|
|
4268
|
-
const z = Ne(y,
|
|
4269
|
-
return { att:
|
|
4267
|
+
const E = S.map((O) => {
|
|
4268
|
+
const z = Ne(y, O.busId, O.pin), H = z.head ? l.get(z.head) : void 0, Y = H ? H.at[0] : c.get(O.busId).at[0];
|
|
4269
|
+
return { att: O, x: Y, extent: z.extent };
|
|
4270
4270
|
});
|
|
4271
|
-
E.sort((
|
|
4272
|
-
const N = E[0], _ = E[E.length - 1], T = x.terminals.find((
|
|
4271
|
+
E.sort((O, z) => O.x - z.x);
|
|
4272
|
+
const N = E[0], _ = E[E.length - 1], T = x.terminals.find((O) => O.id === N.att.pin), D = x.terminals.find((O) => O.id === _.att.pin);
|
|
4273
4273
|
if (!T || !D) return;
|
|
4274
|
-
const C = T.y <= D.y ? 270 : 90,
|
|
4274
|
+
const C = T.y <= D.y ? 270 : 90, j = (N.x + _.x) / 2, M = c.get(N.att.busId).at[1] + Math.max(N.extent, _.extent);
|
|
4275
4275
|
l.set(y.elementId, {
|
|
4276
|
-
at: [ye(
|
|
4276
|
+
at: [ye(j), ye(M)],
|
|
4277
4277
|
rot: C,
|
|
4278
4278
|
mirror: !1
|
|
4279
4279
|
});
|
|
4280
4280
|
}, po = 100;
|
|
4281
|
-
let
|
|
4281
|
+
let Ot = Rt;
|
|
4282
4282
|
for (let y = 0; y < ve.length; y++) {
|
|
4283
4283
|
const x = ve[y], S = xe.get(x);
|
|
4284
4284
|
let E;
|
|
@@ -4290,29 +4290,29 @@ function w2(e) {
|
|
|
4290
4290
|
for (const D of _)
|
|
4291
4291
|
for (const C of S)
|
|
4292
4292
|
(No = se.get(D)) != null && No.get(C) && (T = Math.max(T, Ie(D, C)));
|
|
4293
|
-
T === 0 && (T = kt), E =
|
|
4293
|
+
T === 0 && (T = kt), E = Ot + T;
|
|
4294
4294
|
}
|
|
4295
|
-
|
|
4295
|
+
Ot = E;
|
|
4296
4296
|
let N = $n;
|
|
4297
4297
|
for (const _ of S) {
|
|
4298
4298
|
if (c.has(_)) {
|
|
4299
|
-
|
|
4299
|
+
Ot = Math.max(Ot, c.get(_).at[1]);
|
|
4300
4300
|
continue;
|
|
4301
4301
|
}
|
|
4302
4302
|
let T;
|
|
4303
4303
|
if (y > 0) {
|
|
4304
|
-
const C = xe.get(ve[y - 1]),
|
|
4304
|
+
const C = xe.get(ve[y - 1]), j = [];
|
|
4305
4305
|
for (const A of C) {
|
|
4306
4306
|
const M = (Eo = se.get(A)) == null ? void 0 : Eo.get(_);
|
|
4307
4307
|
if (!M || M.orientation !== "vertical") continue;
|
|
4308
|
-
const
|
|
4308
|
+
const O = (Mo = M.attachments.find(
|
|
4309
4309
|
(H) => H.busId === A
|
|
4310
4310
|
)) == null ? void 0 : Mo.pin;
|
|
4311
|
-
if (!
|
|
4312
|
-
const z = Ne(M, A,
|
|
4313
|
-
z.head && l.has(z.head) ?
|
|
4311
|
+
if (!O) continue;
|
|
4312
|
+
const z = Ne(M, A, O);
|
|
4313
|
+
z.head && l.has(z.head) ? j.push(l.get(z.head).at[0]) : qe.has(M.elementId) ? j.push(qe.get(M.elementId)) : j.push(c.get(A).at[0]);
|
|
4314
4314
|
}
|
|
4315
|
-
|
|
4315
|
+
j.length > 0 && (T = j.reduce((A, M) => A + M, 0) / j.length);
|
|
4316
4316
|
}
|
|
4317
4317
|
if (T === void 0) {
|
|
4318
4318
|
const C = ot.get(_) ?? Sn;
|
|
@@ -4344,13 +4344,13 @@ function w2(e) {
|
|
|
4344
4344
|
if (!T) return _;
|
|
4345
4345
|
for (const D of T.terminals) {
|
|
4346
4346
|
const C = `${N}.${D.id}`;
|
|
4347
|
-
for (const
|
|
4348
|
-
for (const A of
|
|
4347
|
+
for (const j of k.get(C) ?? [])
|
|
4348
|
+
for (const A of j) {
|
|
4349
4349
|
if (A === C || $(A)) continue;
|
|
4350
4350
|
const M = A.indexOf(".");
|
|
4351
4351
|
if (M < 0) continue;
|
|
4352
|
-
const
|
|
4353
|
-
|
|
4352
|
+
const O = A.slice(0, M);
|
|
4353
|
+
O !== N && _.add(O);
|
|
4354
4354
|
}
|
|
4355
4355
|
}
|
|
4356
4356
|
return _;
|
|
@@ -4368,17 +4368,17 @@ function w2(e) {
|
|
|
4368
4368
|
}
|
|
4369
4369
|
let E = $n;
|
|
4370
4370
|
for (const N of S) {
|
|
4371
|
-
if (N.some((
|
|
4372
|
-
N.sort((
|
|
4371
|
+
if (N.some((j) => l.has(j))) continue;
|
|
4372
|
+
N.sort((j, A) => {
|
|
4373
4373
|
var Y, q;
|
|
4374
|
-
const M = ue(((Y = p.get(
|
|
4375
|
-
if (M !==
|
|
4376
|
-
const z = y(
|
|
4377
|
-
return z !== H ? z - H :
|
|
4374
|
+
const M = ue(((Y = p.get(j)) == null ? void 0 : Y.kind) ?? "") ? 0 : 1, O = ue(((q = p.get(A)) == null ? void 0 : q.kind) ?? "") ? 0 : 1;
|
|
4375
|
+
if (M !== O) return M - O;
|
|
4376
|
+
const z = y(j).size, H = y(A).size;
|
|
4377
|
+
return z !== H ? z - H : j.localeCompare(A);
|
|
4378
4378
|
});
|
|
4379
4379
|
const _ = N[0], T = g(_);
|
|
4380
4380
|
if (!T) continue;
|
|
4381
|
-
const D = T.terminals.slice().sort((
|
|
4381
|
+
const D = T.terminals.slice().sort((j, A) => A.y - j.y)[0], C = D ? De([D.x, D.y], {
|
|
4382
4382
|
at: [0, 0],
|
|
4383
4383
|
rot: 0,
|
|
4384
4384
|
mirror: !1
|
|
@@ -4438,11 +4438,11 @@ function w2(e) {
|
|
|
4438
4438
|
(J > K || J === K && (_ === void 0 || V < _)) && (K = J, _ = V);
|
|
4439
4439
|
}
|
|
4440
4440
|
if (_ || (_ = [...x].sort()[0]), !_) continue;
|
|
4441
|
-
const T = _.indexOf("."), D = _.slice(0, T), C = _.slice(T + 1),
|
|
4442
|
-
if (!
|
|
4443
|
-
const M =
|
|
4441
|
+
const T = _.indexOf("."), D = _.slice(0, T), C = _.slice(T + 1), j = g(D), A = l.get(D);
|
|
4442
|
+
if (!j || !A) continue;
|
|
4443
|
+
const M = j.terminals.find((K) => K.id === C);
|
|
4444
4444
|
if (!M) continue;
|
|
4445
|
-
const
|
|
4445
|
+
const O = De(
|
|
4446
4446
|
[M.x, M.y],
|
|
4447
4447
|
A
|
|
4448
4448
|
), z = Yt(
|
|
@@ -4464,8 +4464,8 @@ function w2(e) {
|
|
|
4464
4464
|
[V.localTerm.x, V.localTerm.y],
|
|
4465
4465
|
{ at: [0, 0], rot: U, mirror: !1 }
|
|
4466
4466
|
), Ee = [
|
|
4467
|
-
|
|
4468
|
-
|
|
4467
|
+
O[0] + H[0] * _t + Y[0] * fe,
|
|
4468
|
+
O[1] + H[1] * _t + Y[1] * fe
|
|
4469
4469
|
], Me = [
|
|
4470
4470
|
ye(Ee[0] - te[0]),
|
|
4471
4471
|
ye(Ee[1] - te[1])
|
|
@@ -4488,12 +4488,12 @@ function w2(e) {
|
|
|
4488
4488
|
[N, _ + D],
|
|
4489
4489
|
[N + T, _ + D]
|
|
4490
4490
|
];
|
|
4491
|
-
let
|
|
4491
|
+
let j = 1 / 0, A = -1 / 0;
|
|
4492
4492
|
for (const M of C) {
|
|
4493
|
-
const
|
|
4494
|
-
|
|
4493
|
+
const O = De(M, x);
|
|
4494
|
+
j = Math.min(j, O[0]), A = Math.max(A, O[0]);
|
|
4495
4495
|
}
|
|
4496
|
-
return { min:
|
|
4496
|
+
return { min: j, max: A };
|
|
4497
4497
|
}, wn = (y) => {
|
|
4498
4498
|
const x = /* @__PURE__ */ new Set(), S = g(y);
|
|
4499
4499
|
if (!S) return x;
|
|
@@ -4523,12 +4523,12 @@ function w2(e) {
|
|
|
4523
4523
|
[N, _ + D],
|
|
4524
4524
|
[N + T, _ + D]
|
|
4525
4525
|
];
|
|
4526
|
-
let
|
|
4526
|
+
let j = 1 / 0, A = -1 / 0;
|
|
4527
4527
|
for (const M of C) {
|
|
4528
|
-
const
|
|
4529
|
-
|
|
4528
|
+
const O = De(M, x);
|
|
4529
|
+
j = Math.min(j, O[1]), A = Math.max(A, O[1]);
|
|
4530
4530
|
}
|
|
4531
|
-
return { min:
|
|
4531
|
+
return { min: j, max: A };
|
|
4532
4532
|
}, Qx = (y, x) => {
|
|
4533
4533
|
const S = /* @__PURE__ */ new Set(), E = [];
|
|
4534
4534
|
for (const N of F.get(y) ?? []) {
|
|
@@ -4561,15 +4561,15 @@ function w2(e) {
|
|
|
4561
4561
|
N = !1;
|
|
4562
4562
|
for (let _ = 0; _ < y.length && !N; _++)
|
|
4563
4563
|
for (let T = _ + 1; T < y.length; T++) {
|
|
4564
|
-
const D = y[_], C = y[T],
|
|
4565
|
-
if (!
|
|
4566
|
-
const z = Math.min(
|
|
4564
|
+
const D = y[_], C = y[T], j = yt(D), A = yt(C), M = xn(D), O = xn(C);
|
|
4565
|
+
if (!j || !A || !M || !O) continue;
|
|
4566
|
+
const z = Math.min(j.max, A.max) - Math.max(j.min, A.min), H = Math.min(M.max, O.max) - Math.max(M.min, O.min);
|
|
4567
4567
|
if (z <= 0 || H <= 0) continue;
|
|
4568
4568
|
const Y = yo(D, C, x), q = yo(C, D, x);
|
|
4569
4569
|
if (Y.has(C) || q.has(D)) continue;
|
|
4570
4570
|
const Q = ![...Y].some((U) => d.has(U)), ee = ![...q].some((U) => d.has(U));
|
|
4571
4571
|
if (!Q && !ee) continue;
|
|
4572
|
-
const K = (
|
|
4572
|
+
const K = (j.min + j.max) / 2, V = (A.min + A.max) / 2;
|
|
4573
4573
|
let J, fe;
|
|
4574
4574
|
Q && (!ee || Y.size <= q.size) ? (J = Y, fe = K <= V ? -1 : 1) : (J = q, fe = V <= K ? -1 : 1);
|
|
4575
4575
|
const ke = ye(fe * (z + go));
|
|
@@ -4610,10 +4610,10 @@ function w2(e) {
|
|
|
4610
4610
|
at: [M.at[0] + C, M.at[1]]
|
|
4611
4611
|
});
|
|
4612
4612
|
}
|
|
4613
|
-
const
|
|
4614
|
-
if (
|
|
4613
|
+
const j = T - _ + go;
|
|
4614
|
+
if (j > x.span && !m.has(y.id)) {
|
|
4615
4615
|
const A = c.get(y.id);
|
|
4616
|
-
c.set(y.id, { ...A, span:
|
|
4616
|
+
c.set(y.id, { ...A, span: j });
|
|
4617
4617
|
}
|
|
4618
4618
|
}
|
|
4619
4619
|
}
|
|
@@ -4661,46 +4661,46 @@ function w2(e) {
|
|
|
4661
4661
|
}
|
|
4662
4662
|
for (const y of ve) {
|
|
4663
4663
|
const x = (xe.get(y) ?? []).filter(
|
|
4664
|
-
(
|
|
4664
|
+
(j) => c.has(j)
|
|
4665
4665
|
);
|
|
4666
|
-
if (x.length < 2 || x.some((
|
|
4666
|
+
if (x.length < 2 || x.some((j) => m.has(j))) continue;
|
|
4667
4667
|
const S = [];
|
|
4668
4668
|
let E = 0;
|
|
4669
|
-
for (const
|
|
4670
|
-
const A = c.get(
|
|
4671
|
-
let
|
|
4669
|
+
for (const j of x) {
|
|
4670
|
+
const A = c.get(j), M = [];
|
|
4671
|
+
let O = 1 / 0, z = -1 / 0;
|
|
4672
4672
|
for (const [H, Y] of ko) {
|
|
4673
|
-
if (Y !==
|
|
4673
|
+
if (Y !== j) continue;
|
|
4674
4674
|
const q = yt(H);
|
|
4675
|
-
q && (M.push(H),
|
|
4675
|
+
q && (M.push(H), O = Math.min(O, q.min), z = Math.max(z, q.max));
|
|
4676
4676
|
}
|
|
4677
|
-
Number.isFinite(
|
|
4677
|
+
Number.isFinite(O) || (O = A.at[0] - pt / 2, z = A.at[0] + pt / 2), S.push({ busId: j, min: O, max: z, members: M }), E += z - O;
|
|
4678
4678
|
}
|
|
4679
|
-
if (S.some((
|
|
4679
|
+
if (S.some((j) => j.members.some((A) => d.has(A))))
|
|
4680
4680
|
continue;
|
|
4681
4681
|
let N = 1 / 0, _ = -1 / 0;
|
|
4682
|
-
for (const
|
|
4683
|
-
N = Math.min(N,
|
|
4682
|
+
for (const j of S)
|
|
4683
|
+
N = Math.min(N, j.min), _ = Math.max(_, j.max);
|
|
4684
4684
|
const T = _ - N, D = E + vn * (S.length - 1);
|
|
4685
4685
|
if (!(T > D + vn)) continue;
|
|
4686
|
-
S.sort((
|
|
4686
|
+
S.sort((j, A) => (j.min + j.max) / 2 - (A.min + A.max) / 2);
|
|
4687
4687
|
let C = N;
|
|
4688
|
-
for (const
|
|
4689
|
-
const A = ye(C -
|
|
4688
|
+
for (const j of S) {
|
|
4689
|
+
const A = ye(C - j.min);
|
|
4690
4690
|
if (A !== 0) {
|
|
4691
|
-
const M = c.get(
|
|
4692
|
-
c.set(
|
|
4693
|
-
for (const
|
|
4694
|
-
const z = l.get(
|
|
4695
|
-
z && l.set(
|
|
4691
|
+
const M = c.get(j.busId);
|
|
4692
|
+
c.set(j.busId, { ...M, at: [M.at[0] + A, M.at[1]] });
|
|
4693
|
+
for (const O of j.members) {
|
|
4694
|
+
const z = l.get(O);
|
|
4695
|
+
z && l.set(O, { ...z, at: [z.at[0] + A, z.at[1]] });
|
|
4696
4696
|
}
|
|
4697
|
-
|
|
4697
|
+
j.min += A, j.max += A;
|
|
4698
4698
|
}
|
|
4699
|
-
C =
|
|
4699
|
+
C = j.max + vn;
|
|
4700
4700
|
}
|
|
4701
|
-
for (const
|
|
4702
|
-
const A = c.get(
|
|
4703
|
-
M < A.span && c.set(
|
|
4701
|
+
for (const j of S) {
|
|
4702
|
+
const A = c.get(j.busId), M = Math.max(pt, j.max - j.min);
|
|
4703
|
+
M < A.span && c.set(j.busId, { ...A, span: M });
|
|
4704
4704
|
}
|
|
4705
4705
|
}
|
|
4706
4706
|
{
|
|
@@ -4810,7 +4810,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
4810
4810
|
terminals: _i,
|
|
4811
4811
|
viewBox: wi,
|
|
4812
4812
|
width: xi
|
|
4813
|
-
}, Symbol.toStringTag, { value: "Module" })), Si = "arc-suppression-coil", Ni = "消弧线圈", Ei = "grounding", Mi = "中性点谐振接地:电感线圈连接到地", Ti = "-12 -32 24 67", Ai = 24, Ii = 67, Ci = '<line x1="0" y1="-30" x2="0" y2="-12" fill="none" stroke="black" stroke-width="1"/><path d="M 0 -12 A 4 4 0 0 1 0 -4 A 4 4 0 0 1 0 4 A 4 4 0 0 1 0 12" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="12" x2="0" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="-10" y1="20" x2="10" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="-7" y1="24" x2="7" y2="24" fill="none" stroke="black" stroke-width="1"/><line x1="-4" y1="28" x2="4" y2="28" fill="none" stroke="black" stroke-width="1"/><line x1="-1.5" y1="32" x2="1.5" y2="32" fill="none" stroke="black" stroke-width="1"/>', Pi = [{ id: "t_top", x: 0, y: -30, orientation: "n" }],
|
|
4813
|
+
}, Symbol.toStringTag, { value: "Module" })), Si = "arc-suppression-coil", Ni = "消弧线圈", Ei = "grounding", Mi = "中性点谐振接地:电感线圈连接到地", Ti = "-12 -32 24 67", Ai = 24, Ii = 67, Ci = '<line x1="0" y1="-30" x2="0" y2="-12" fill="none" stroke="black" stroke-width="1"/><path d="M 0 -12 A 4 4 0 0 1 0 -4 A 4 4 0 0 1 0 4 A 4 4 0 0 1 0 12" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="12" x2="0" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="-10" y1="20" x2="10" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="-7" y1="24" x2="7" y2="24" fill="none" stroke="black" stroke-width="1"/><line x1="-4" y1="28" x2="4" y2="28" fill="none" stroke="black" stroke-width="1"/><line x1="-1.5" y1="32" x2="1.5" y2="32" fill="none" stroke="black" stroke-width="1"/>', Pi = [{ id: "t_top", x: 0, y: -30, orientation: "n" }], ji = { kind: "inline" }, _2 = {
|
|
4814
4814
|
id: Si,
|
|
4815
4815
|
name: Ni,
|
|
4816
4816
|
category: Ei,
|
|
@@ -4820,7 +4820,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
4820
4820
|
height: Ii,
|
|
4821
4821
|
svg: Ci,
|
|
4822
4822
|
terminals: Pi,
|
|
4823
|
-
source:
|
|
4823
|
+
source: ji
|
|
4824
4824
|
}, $2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4825
4825
|
__proto__: null,
|
|
4826
4826
|
category: Ei,
|
|
@@ -4829,13 +4829,13 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
4829
4829
|
height: Ii,
|
|
4830
4830
|
id: Si,
|
|
4831
4831
|
name: Ni,
|
|
4832
|
-
source:
|
|
4832
|
+
source: ji,
|
|
4833
4833
|
svg: Ci,
|
|
4834
4834
|
terminals: Pi,
|
|
4835
4835
|
viewBox: Ti,
|
|
4836
4836
|
width: Ai
|
|
4837
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4838
|
-
id:
|
|
4837
|
+
}, Symbol.toStringTag, { value: "Module" })), Oi = "arrester", Bi = "避雷器 (FBL)", Li = "protection", zi = "-7 -22 14 44", Di = 14, Ri = 44, Fi = '<line x1="0" y1="-20" x2="0" y2="-5" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="10" x2="0" y2="20" fill="none" stroke="black" stroke-width="1"/><polygon points="-2,-8 2,-8 0,-2" fill="black" stroke="black" stroke-width="1"/><rect x="-5" y="-10" width="10" height="20" rx="0" ry="0" fill="none" stroke="black" stroke-width="1"/>', Hi = [{ id: "t1", x: 0, y: -20, orientation: "n" }, { id: "t2", x: 0, y: 20, orientation: "s" }], Wi = { kind: "elmt", path: "91_en_60617/en_60617_07/en_60617_07_22/en_60617_07_22_03.elmt", qetEnglishName: "Surge diverter; Lightning arrester" }, S2 = {
|
|
4838
|
+
id: Oi,
|
|
4839
4839
|
name: Bi,
|
|
4840
4840
|
category: Li,
|
|
4841
4841
|
viewBox: zi,
|
|
@@ -4849,7 +4849,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
4849
4849
|
category: Li,
|
|
4850
4850
|
default: S2,
|
|
4851
4851
|
height: Ri,
|
|
4852
|
-
id:
|
|
4852
|
+
id: Oi,
|
|
4853
4853
|
name: Bi,
|
|
4854
4854
|
source: Wi,
|
|
4855
4855
|
svg: Fi,
|
|
@@ -4935,7 +4935,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
4935
4935
|
svg: Ss,
|
|
4936
4936
|
terminals: Ns,
|
|
4937
4937
|
source: Es
|
|
4938
|
-
},
|
|
4938
|
+
}, j2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4939
4939
|
__proto__: null,
|
|
4940
4940
|
category: xs,
|
|
4941
4941
|
default: P2,
|
|
@@ -4948,29 +4948,29 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
4948
4948
|
terminals: Ns,
|
|
4949
4949
|
viewBox: ks,
|
|
4950
4950
|
width: _s
|
|
4951
|
-
}, Symbol.toStringTag, { value: "Module" })), Ms = "break-contact", Ts = "常闭触点 (NC)", As = "control", Is = "常闭辅助触点 (break contact)。", Cs = "-2 -42 14 64", Ps = 14,
|
|
4951
|
+
}, Symbol.toStringTag, { value: "Module" })), Ms = "break-contact", Ts = "常闭触点 (NC)", As = "control", Is = "常闭辅助触点 (break contact)。", Cs = "-2 -42 14 64", Ps = 14, js = 64, Os = '<line x1="0" y1="-20" x2="0" y2="-40" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="0" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="8" y2="-23" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="-20" x2="10" y2="-20" fill="none" stroke="black" stroke-width="1"/>', Bs = [{ id: "t1", x: 0, y: -40, orientation: "n" }, { id: "t2", x: 0, y: 20, orientation: "s" }], Ls = [{ name: "open", type: "boolean", default: !1, label: "断开" }], zs = { kind: "elmt", path: "91_en_60617/en_60617_07/en_60617_07_02/en_60617_07_02_03.elmt", qetEnglishName: "Break contact" }, O2 = {
|
|
4952
4952
|
id: Ms,
|
|
4953
4953
|
name: Ts,
|
|
4954
4954
|
category: As,
|
|
4955
4955
|
description: Is,
|
|
4956
4956
|
viewBox: Cs,
|
|
4957
4957
|
width: Ps,
|
|
4958
|
-
height:
|
|
4959
|
-
svg:
|
|
4958
|
+
height: js,
|
|
4959
|
+
svg: Os,
|
|
4960
4960
|
terminals: Bs,
|
|
4961
4961
|
state: Ls,
|
|
4962
4962
|
source: zs
|
|
4963
4963
|
}, B2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4964
4964
|
__proto__: null,
|
|
4965
4965
|
category: As,
|
|
4966
|
-
default:
|
|
4966
|
+
default: O2,
|
|
4967
4967
|
description: Is,
|
|
4968
|
-
height:
|
|
4968
|
+
height: js,
|
|
4969
4969
|
id: Ms,
|
|
4970
4970
|
name: Ts,
|
|
4971
4971
|
source: zs,
|
|
4972
4972
|
state: Ls,
|
|
4973
|
-
svg:
|
|
4973
|
+
svg: Os,
|
|
4974
4974
|
terminals: Bs,
|
|
4975
4975
|
viewBox: Cs,
|
|
4976
4976
|
width: Ps
|
|
@@ -5078,14 +5078,14 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5078
5078
|
terminals: Ea,
|
|
5079
5079
|
viewBox: _a,
|
|
5080
5080
|
width: $a
|
|
5081
|
-
}, Symbol.toStringTag, { value: "Module" })), Ta = "capacitor", Aa = "电容 (C)", Ia = "passive", Ca = "通用 / 滤波 / 直流母线电容。无功补偿请用并联电容器。", Pa = "-7 -23 14 27",
|
|
5081
|
+
}, Symbol.toStringTag, { value: "Module" })), Ta = "capacitor", Aa = "电容 (C)", Ia = "passive", Ca = "通用 / 滤波 / 直流母线电容。无功补偿请用并联电容器。", Pa = "-7 -23 14 27", ja = 14, Oa = 27, Ba = '<line x1="-5" y1="2" x2="5" y2="2" fill="none" stroke="black" stroke-width="1"/><line x1="-5" y1="-2" x2="5" y2="-2" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="-20" x2="0" y2="-2" fill="none" stroke="black" stroke-width="1"/>', La = [{ id: "t1", x: 0, y: -21, orientation: "n" }, { id: "t_bottom", x: 0, y: 2, orientation: "s" }], za = [{ name: "C", label: "容值", type: "number", unit: "μF", showOnCanvas: !0 }, { name: "Un", label: "额定电压", type: "number", unit: "V" }], Da = { kind: "elmt", path: "11_singlepole/395_electronics_semiconductors/20_capacitors/capacite.elmt", qetEnglishName: "Capacitor" }, G2 = {
|
|
5082
5082
|
id: Ta,
|
|
5083
5083
|
name: Aa,
|
|
5084
5084
|
category: Ia,
|
|
5085
5085
|
description: Ca,
|
|
5086
5086
|
viewBox: Pa,
|
|
5087
|
-
width:
|
|
5088
|
-
height:
|
|
5087
|
+
width: ja,
|
|
5088
|
+
height: Oa,
|
|
5089
5089
|
svg: Ba,
|
|
5090
5090
|
terminals: La,
|
|
5091
5091
|
params: za,
|
|
@@ -5095,7 +5095,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5095
5095
|
category: Ia,
|
|
5096
5096
|
default: G2,
|
|
5097
5097
|
description: Ca,
|
|
5098
|
-
height:
|
|
5098
|
+
height: Oa,
|
|
5099
5099
|
id: Ta,
|
|
5100
5100
|
name: Aa,
|
|
5101
5101
|
params: za,
|
|
@@ -5103,7 +5103,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5103
5103
|
svg: Ba,
|
|
5104
5104
|
terminals: La,
|
|
5105
5105
|
viewBox: Pa,
|
|
5106
|
-
width:
|
|
5106
|
+
width: ja
|
|
5107
5107
|
}, Symbol.toStringTag, { value: "Module" })), Ra = "contactor", Fa = "接触器 (KM)", Ha = "motor-control", Wa = "主回路接触器, 通常配热继电器和电机使用。", qa = "-10 -42 15 64", Ga = 15, Xa = 64, Ya = '<line x1="0" y1="-20" x2="0" y2="-40" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="0" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="-8" y2="-23" fill="none" stroke="black" stroke-width="1"/><path d="M 0 -24.5 A 2.5 2.5 0 0 0 0 -19.5" fill="none" stroke="black" stroke-width="1"/>', Ka = [{ id: "t1", x: 0, y: -40, orientation: "n" }, { id: "t2", x: 0, y: 20, orientation: "s" }], Va = [{ name: "open", type: "boolean", default: !0, label: "断开" }], Ua = { kind: "elmt", path: "91_en_60617/en_60617_07/en_60617_07_13/en_60617_07_13_02.elmt", qetEnglishName: "Contactor; Main make contact of a contactor" }, Y2 = {
|
|
5108
5108
|
id: Ra,
|
|
5109
5109
|
name: Fa,
|
|
@@ -5202,7 +5202,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5202
5202
|
terminals: Sl,
|
|
5203
5203
|
viewBox: vl,
|
|
5204
5204
|
width: kl
|
|
5205
|
-
}, Symbol.toStringTag, { value: "Module" })), El = "dc-disconnector", Ml = "直流隔离开关", Tl = "switching", Al = "DC isolating switch — 光伏组串 / 储能 直流侧隔离。", Il = "-12 -32 30 64", Cl = 30, Pl = 64,
|
|
5205
|
+
}, Symbol.toStringTag, { value: "Module" })), El = "dc-disconnector", Ml = "直流隔离开关", Tl = "switching", Al = "DC isolating switch — 光伏组串 / 储能 直流侧隔离。", Il = "-12 -32 30 64", Cl = 30, Pl = 64, jl = '<line x1="0" y1="-30" x2="0" y2="-12" stroke="black" stroke-width="1" fill="none"/><line x1="0" y1="0" x2="0" y2="30" stroke="black" stroke-width="1" fill="none"/><line x1="0" y1="0" x2="-8" y2="-15" stroke="black" stroke-width="1" fill="none"/><line x1="6" y1="-4" x2="14" y2="-4" stroke="black" stroke-width="1" fill="none"/><line x1="6" y1="-1" x2="9" y2="-1" stroke="black" stroke-width="0.8" fill="none"/><line x1="11" y1="-1" x2="14" y2="-1" stroke="black" stroke-width="0.8" fill="none"/>', Ol = [{ id: "t1", x: 0, y: -30, orientation: "n" }, { id: "t2", x: 0, y: 30, orientation: "s" }], Bl = [{ name: "open", type: "boolean", default: !1, label: "断开" }], Ll = { kind: "inline" }, tk = {
|
|
5206
5206
|
id: El,
|
|
5207
5207
|
name: Ml,
|
|
5208
5208
|
category: Tl,
|
|
@@ -5210,8 +5210,8 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5210
5210
|
viewBox: Il,
|
|
5211
5211
|
width: Cl,
|
|
5212
5212
|
height: Pl,
|
|
5213
|
-
svg:
|
|
5214
|
-
terminals:
|
|
5213
|
+
svg: jl,
|
|
5214
|
+
terminals: Ol,
|
|
5215
5215
|
state: Bl,
|
|
5216
5216
|
source: Ll
|
|
5217
5217
|
}, nk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5224,8 +5224,8 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5224
5224
|
name: Ml,
|
|
5225
5225
|
source: Ll,
|
|
5226
5226
|
state: Bl,
|
|
5227
|
-
svg:
|
|
5228
|
-
terminals:
|
|
5227
|
+
svg: jl,
|
|
5228
|
+
terminals: Ol,
|
|
5229
5229
|
viewBox: Il,
|
|
5230
5230
|
width: Cl
|
|
5231
5231
|
}, Symbol.toStringTag, { value: "Module" })), zl = "dc-motor", Dl = "直流电机 (M)", Rl = "load", Fl = "直流电动机 (串励通用符号)。", Hl = "-72 -82 89 84", Wl = 89, ql = 84, Gl = '<ellipse cx="-30" cy="-30" rx="30" ry="30" fill="none" stroke="black" stroke-width="1"/><text x="-34" y="-24.8" font-family="Liberation Sans, Arial, sans-serif" font-size="14" fill="#000000">M</text><line x1="-40" y1="-20" x2="-20" y2="-20" fill="none" stroke="black" stroke-width="1"/><line x1="-40" y1="-15" x2="-32" y2="-15" fill="none" stroke="black" stroke-width="1"/><line x1="-29" y1="-15" x2="-20" y2="-15" fill="none" stroke="black" stroke-width="1"/><line x1="-70" y1="-80" x2="-70" y2="-30" fill="none" stroke="black" stroke-width="1"/><line x1="-70" y1="-30" x2="-60" y2="-30" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="-30" x2="10" y2="-30" fill="none" stroke="black" stroke-width="1"/><line x1="10" y1="-30" x2="10" y2="-50" fill="none" stroke="black" stroke-width="1"/><path d="M 10 -60 A 5 5 0 0 0 10 -50" fill="none" stroke="black" stroke-width="1"/><path d="M 10 -70 A 5 5 0 0 0 10 -60" fill="none" stroke="black" stroke-width="1"/><path d="M 10 -80 A 5 5 0 0 0 10 -70" fill="none" stroke="black" stroke-width="1"/>', Xl = [{ id: "t1", x: -70, y: -80, orientation: "n" }, { id: "t2", x: 10, y: -80, orientation: "n" }], Yl = { kind: "elmt", path: "91_en_60617/en_60617_06/en_60617_06_05/en_60617_06_05_01.elmt", qetEnglishName: "Series motor, DC" }, ok = {
|
|
@@ -5328,7 +5328,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5328
5328
|
terminals: $c,
|
|
5329
5329
|
viewBox: xc,
|
|
5330
5330
|
width: vc
|
|
5331
|
-
}, Symbol.toStringTag, { value: "Module" })), Nc = "earth", Ec = "接地", Mc = "busbar", Tc = "-12 -17 24 34", Ac = 24, Ic = 34, Cc = '<line x1="-10" y1="0" x2="10" y2="0" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="-15" x2="0" y2="0" fill="none" stroke="black" stroke-width="1"/><line x1="-7" y1="5" x2="7" y2="5" fill="none" stroke="black" stroke-width="1"/><line x1="-4" y1="10" x2="4" y2="10" fill="none" stroke="black" stroke-width="1"/><line x1="0.5" y1="15" x2="-0.5" y2="15" fill="none" stroke="black" stroke-width="1"/>', Pc = [{ id: "t1", x: 0, y: -15, orientation: "n" }],
|
|
5331
|
+
}, Symbol.toStringTag, { value: "Module" })), Nc = "earth", Ec = "接地", Mc = "busbar", Tc = "-12 -17 24 34", Ac = 24, Ic = 34, Cc = '<line x1="-10" y1="0" x2="10" y2="0" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="-15" x2="0" y2="0" fill="none" stroke="black" stroke-width="1"/><line x1="-7" y1="5" x2="7" y2="5" fill="none" stroke="black" stroke-width="1"/><line x1="-4" y1="10" x2="4" y2="10" fill="none" stroke="black" stroke-width="1"/><line x1="0.5" y1="15" x2="-0.5" y2="15" fill="none" stroke="black" stroke-width="1"/>', Pc = [{ id: "t1", x: 0, y: -15, orientation: "n" }], jc = { kind: "elmt", path: "91_en_60617/en_60617_02/en_60617_02_15/en_60617_02_15_01.elmt", qetEnglishName: "Earth or ground, general symbol" }, uk = {
|
|
5332
5332
|
id: Nc,
|
|
5333
5333
|
name: Ec,
|
|
5334
5334
|
category: Mc,
|
|
@@ -5337,7 +5337,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5337
5337
|
height: Ic,
|
|
5338
5338
|
svg: Cc,
|
|
5339
5339
|
terminals: Pc,
|
|
5340
|
-
source:
|
|
5340
|
+
source: jc
|
|
5341
5341
|
}, fk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5342
5342
|
__proto__: null,
|
|
5343
5343
|
category: Mc,
|
|
@@ -5345,13 +5345,13 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5345
5345
|
height: Ic,
|
|
5346
5346
|
id: Nc,
|
|
5347
5347
|
name: Ec,
|
|
5348
|
-
source:
|
|
5348
|
+
source: jc,
|
|
5349
5349
|
svg: Cc,
|
|
5350
5350
|
terminals: Pc,
|
|
5351
5351
|
viewBox: Tc,
|
|
5352
5352
|
width: Ac
|
|
5353
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5354
|
-
id:
|
|
5353
|
+
}, Symbol.toStringTag, { value: "Module" })), Oc = "earthing-switch", Bc = "接地刀闸 (QE)", Lc = "switching", zc = "隔离开关 + 接地连接,单端口", Dc = "-12 -32 24 64", Rc = 24, Fc = 64, Hc = '<line x1="0" y1="-30" x2="0" y2="-12" stroke="black" stroke-width="1" fill="none"/><line x1="0" y1="-12" x2="-9" y2="9" stroke="black" stroke-width="1" fill="none"/><line x1="-3" y1="-12" x2="3" y2="-12" stroke="black" stroke-width="1" fill="none"/><line x1="-10" y1="14" x2="10" y2="14" stroke="black" stroke-width="1" fill="none"/><line x1="-7" y1="19" x2="7" y2="19" stroke="black" stroke-width="1" fill="none"/><line x1="-4" y1="24" x2="4" y2="24" stroke="black" stroke-width="1" fill="none"/><line x1="-1.5" y1="29" x2="1.5" y2="29" stroke="black" stroke-width="1" fill="none"/>', Wc = [{ id: "t_top", x: 0, y: -30, orientation: "n" }], qc = [{ name: "open", type: "boolean", default: !0, label: "断开" }], Gc = { x: 12, y: -8, anchor: "start" }, Xc = { kind: "inline" }, mk = {
|
|
5354
|
+
id: Oc,
|
|
5355
5355
|
name: Bc,
|
|
5356
5356
|
category: Lc,
|
|
5357
5357
|
description: zc,
|
|
@@ -5369,7 +5369,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5369
5369
|
default: mk,
|
|
5370
5370
|
description: zc,
|
|
5371
5371
|
height: Fc,
|
|
5372
|
-
id:
|
|
5372
|
+
id: Oc,
|
|
5373
5373
|
label: Gc,
|
|
5374
5374
|
name: Bc,
|
|
5375
5375
|
source: Xc,
|
|
@@ -5474,10 +5474,10 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5474
5474
|
terminals: Ad,
|
|
5475
5475
|
viewBox: Nd,
|
|
5476
5476
|
width: Ed
|
|
5477
|
-
}, Symbol.toStringTag, { value: "Module" })), Pd = "fuse",
|
|
5477
|
+
}, Symbol.toStringTag, { value: "Module" })), Pd = "fuse", jd = "熔断器 (FU)", Od = "switching", Bd = "-7 -32 14 64", Ld = 14, zd = 64, Dd = '<line x1="0" y1="-30" x2="0" y2="30" fill="none" stroke="black" stroke-width="1"/><rect x="-5" y="-15" width="10" height="30" rx="0" ry="0" fill="none" stroke="black" stroke-width="1"/>', Rd = [{ id: "t1", x: 0, y: -30, orientation: "n" }, { id: "t2", x: 0, y: 30, orientation: "s" }], Fd = [{ name: "blown", type: "boolean", default: !1, label: "熔断" }], Hd = { x: 7, y: -2, anchor: "start" }, Wd = { kind: "elmt", path: "91_en_60617/en_60617_07/en_60617_07_21/en_60617_07_21_01.elmt", qetEnglishName: "Fuse, general symbol" }, _k = {
|
|
5478
5478
|
id: Pd,
|
|
5479
|
-
name:
|
|
5480
|
-
category:
|
|
5479
|
+
name: jd,
|
|
5480
|
+
category: Od,
|
|
5481
5481
|
viewBox: Bd,
|
|
5482
5482
|
width: Ld,
|
|
5483
5483
|
height: zd,
|
|
@@ -5488,12 +5488,12 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5488
5488
|
source: Wd
|
|
5489
5489
|
}, $k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5490
5490
|
__proto__: null,
|
|
5491
|
-
category:
|
|
5491
|
+
category: Od,
|
|
5492
5492
|
default: _k,
|
|
5493
5493
|
height: zd,
|
|
5494
5494
|
id: Pd,
|
|
5495
5495
|
label: Hd,
|
|
5496
|
-
name:
|
|
5496
|
+
name: jd,
|
|
5497
5497
|
source: Wd,
|
|
5498
5498
|
state: Fd,
|
|
5499
5499
|
svg: Dd,
|
|
@@ -5600,22 +5600,22 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5600
5600
|
terminals: Au,
|
|
5601
5601
|
viewBox: Nu,
|
|
5602
5602
|
width: Eu
|
|
5603
|
-
}, Symbol.toStringTag, { value: "Module" })), Cu = "grounding-transformer", Pu = "接地变 (Z形)",
|
|
5603
|
+
}, Symbol.toStringTag, { value: "Module" })), Cu = "grounding-transformer", Pu = "接地变 (Z形)", ju = "grounding", Ou = "星-曲折接线变压器,中性点接地用", Bu = "-62 -152 64 164", Lu = 64, zu = 164, Du = '<line x1="-30" y1="-40" x2="-35" y2="-35" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-40" x2="-25" y2="-35" fill="none" stroke="black" stroke-width="1"/><ellipse cx="-30" cy="-90" rx="30" ry="30" fill="none" stroke="black" stroke-width="1"/><line x1="-35" y1="-35" x2="-40" y2="-38" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-150" x2="-30" y2="-120" fill="none" stroke="black" stroke-width="1"/><line x1="-25" y1="-35" x2="-25" y2="-30" fill="none" stroke="black" stroke-width="1"/><ellipse cx="-30" cy="-50" rx="30" ry="30" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-40" x2="-30" y2="-45" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-20" x2="-30" y2="10" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-45" x2="-25" y2="-48" fill="none" stroke="black" stroke-width="1"/><line x1="-40" y1="-130" x2="-20" y2="-140" fill="none" stroke="black" stroke-width="1"/><line x1="-40" y1="-135" x2="-20" y2="-145" fill="none" stroke="black" stroke-width="1"/><line x1="-40" y1="0" x2="-20" y2="-10" fill="none" stroke="black" stroke-width="1"/><line x1="-40" y1="5" x2="-20" y2="-5" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-85" x2="-30" y2="-95" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-95" x2="-20" y2="-100" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-95" x2="-40" y2="-100" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-40" x2="-20" y2="-40" fill="none" stroke="black" stroke-width="1"/><ellipse cx="-30" cy="-40" rx="2" ry="2" fill="black" stroke="black" stroke-width="1"/>', Ru = [{ id: "t1", x: -30, y: -150, orientation: "n" }, { id: "t2", x: -30, y: 10, orientation: "s" }], Fu = { kind: "elmt", path: "91_en_60617/en_60617_06/en_60617_06_10/en_60617_06_10_15.elmt", qetEnglishName: "Three-phase transformer, connection star-zigzag with the neutral brought out" }, Pk = {
|
|
5604
5604
|
id: Cu,
|
|
5605
5605
|
name: Pu,
|
|
5606
|
-
category:
|
|
5607
|
-
description:
|
|
5606
|
+
category: ju,
|
|
5607
|
+
description: Ou,
|
|
5608
5608
|
viewBox: Bu,
|
|
5609
5609
|
width: Lu,
|
|
5610
5610
|
height: zu,
|
|
5611
5611
|
svg: Du,
|
|
5612
5612
|
terminals: Ru,
|
|
5613
5613
|
source: Fu
|
|
5614
|
-
},
|
|
5614
|
+
}, jk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5615
5615
|
__proto__: null,
|
|
5616
|
-
category:
|
|
5616
|
+
category: ju,
|
|
5617
5617
|
default: Pk,
|
|
5618
|
-
description:
|
|
5618
|
+
description: Ou,
|
|
5619
5619
|
height: zu,
|
|
5620
5620
|
id: Cu,
|
|
5621
5621
|
name: Pu,
|
|
@@ -5624,7 +5624,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5624
5624
|
terminals: Ru,
|
|
5625
5625
|
viewBox: Bu,
|
|
5626
5626
|
width: Lu
|
|
5627
|
-
}, Symbol.toStringTag, { value: "Module" })), Hu = "heater", Wu = "电加热器 (EH)", qu = "load", Gu = "电阻加热元件 / 电热负荷。", Xu = "-22 -7 54 14", Yu = 54, Ku = 14, Vu = '<line x1="-20" y1="0" x2="-10" y2="0" fill="none" stroke="black" stroke-width="1"/><rect x="-10" y="-5" width="30" height="10" rx="0" ry="0" fill="none" stroke="black" stroke-width="1"/><line x1="20" y1="0" x2="30" y2="0" fill="none" stroke="black" stroke-width="1"/><line x1="-5" y1="-5" x2="-5" y2="5" fill="none" stroke="black" stroke-width="1"/><line x1="5" y1="-5" x2="5" y2="5" fill="none" stroke="black" stroke-width="1"/><line x1="15" y1="-5" x2="15" y2="5" fill="none" stroke="black" stroke-width="1"/>', Uu = [{ id: "t1", x: -20, y: 0, orientation: "w" }, { id: "t2", x: 30, y: 0, orientation: "e" }], Ju = [{ name: "P", label: "功率", type: "number", unit: "kW", showOnCanvas: !0 }], Zu = { kind: "elmt", path: "91_en_60617/en_60617_04/en_60617_04_01/en_60617_04_01_12.elmt", qetEnglishName: "Heating element" },
|
|
5627
|
+
}, Symbol.toStringTag, { value: "Module" })), Hu = "heater", Wu = "电加热器 (EH)", qu = "load", Gu = "电阻加热元件 / 电热负荷。", Xu = "-22 -7 54 14", Yu = 54, Ku = 14, Vu = '<line x1="-20" y1="0" x2="-10" y2="0" fill="none" stroke="black" stroke-width="1"/><rect x="-10" y="-5" width="30" height="10" rx="0" ry="0" fill="none" stroke="black" stroke-width="1"/><line x1="20" y1="0" x2="30" y2="0" fill="none" stroke="black" stroke-width="1"/><line x1="-5" y1="-5" x2="-5" y2="5" fill="none" stroke="black" stroke-width="1"/><line x1="5" y1="-5" x2="5" y2="5" fill="none" stroke="black" stroke-width="1"/><line x1="15" y1="-5" x2="15" y2="5" fill="none" stroke="black" stroke-width="1"/>', Uu = [{ id: "t1", x: -20, y: 0, orientation: "w" }, { id: "t2", x: 30, y: 0, orientation: "e" }], Ju = [{ name: "P", label: "功率", type: "number", unit: "kW", showOnCanvas: !0 }], Zu = { kind: "elmt", path: "91_en_60617/en_60617_04/en_60617_04_01/en_60617_04_01_12.elmt", qetEnglishName: "Heating element" }, Ok = {
|
|
5628
5628
|
id: Hu,
|
|
5629
5629
|
name: Wu,
|
|
5630
5630
|
category: qu,
|
|
@@ -5639,7 +5639,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5639
5639
|
}, Bk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5640
5640
|
__proto__: null,
|
|
5641
5641
|
category: qu,
|
|
5642
|
-
default:
|
|
5642
|
+
default: Ok,
|
|
5643
5643
|
description: Gu,
|
|
5644
5644
|
height: Ku,
|
|
5645
5645
|
id: Hu,
|
|
@@ -5728,10 +5728,10 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5728
5728
|
terminals: Tf,
|
|
5729
5729
|
viewBox: Sf,
|
|
5730
5730
|
width: Nf
|
|
5731
|
-
}, Symbol.toStringTag, { value: "Module" })), Pf = "inverter",
|
|
5731
|
+
}, Symbol.toStringTag, { value: "Module" })), Pf = "inverter", jf = "逆变器 (DC→AC)", Of = "renewable", Bf = "-42 -42 44 44", Lf = 44, zf = 44, Df = '<g transform="matrix(1 0 0 -1 0 -40)"><path d="M -15 -8 A 5 2.5 0 0 0 -25 -8" fill="none" stroke="black" stroke-width="1"/><line x1="-40" y1="0" x2="0" y2="-40" fill="none" stroke="black" stroke-width="1"/><path d="M -15 -8 A 5 2.5 0 0 0 -5 -8" fill="none" stroke="black" stroke-width="1"/><rect x="-40" y="-40" width="40" height="40" rx="0" ry="0" fill="none" stroke="black" stroke-width="1"/><line x1="-36" y1="-36" x2="-20" y2="-36" fill="none" stroke="black" stroke-width="1"/><line x1="-36" y1="-32" x2="-30" y2="-32" fill="none" stroke="black" stroke-width="1"/><line x1="-26" y1="-32" x2="-20" y2="-32" fill="none" stroke="black" stroke-width="1"/></g>', Rf = [{ id: "t_dc", x: -20, y: 0, orientation: "s" }, { id: "t_ac", x: -20, y: -40, orientation: "n" }], Ff = { kind: "elmt", path: "91_en_60617/en_60617_06/en_60617_06_14/en_60617_06_14_05.elmt", qetEnglishName: "Inverter" }, Wk = {
|
|
5732
5732
|
id: Pf,
|
|
5733
|
-
name:
|
|
5734
|
-
category:
|
|
5733
|
+
name: jf,
|
|
5734
|
+
category: Of,
|
|
5735
5735
|
viewBox: Bf,
|
|
5736
5736
|
width: Lf,
|
|
5737
5737
|
height: zf,
|
|
@@ -5740,11 +5740,11 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5740
5740
|
source: Ff
|
|
5741
5741
|
}, qk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5742
5742
|
__proto__: null,
|
|
5743
|
-
category:
|
|
5743
|
+
category: Of,
|
|
5744
5744
|
default: Wk,
|
|
5745
5745
|
height: zf,
|
|
5746
5746
|
id: Pf,
|
|
5747
|
-
name:
|
|
5747
|
+
name: jf,
|
|
5748
5748
|
source: Ff,
|
|
5749
5749
|
svg: Df,
|
|
5750
5750
|
terminals: Rf,
|
|
@@ -5854,11 +5854,11 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5854
5854
|
terminals: Tm,
|
|
5855
5855
|
viewBox: Sm,
|
|
5856
5856
|
width: Nm
|
|
5857
|
-
}, Symbol.toStringTag, { value: "Module" })), Cm = "motor-starter", Pm = "电机启动器",
|
|
5857
|
+
}, Symbol.toStringTag, { value: "Module" })), Cm = "motor-starter", Pm = "电机启动器", jm = "motor-control", Om = "电机启动器 (IEC 60617 通用符号)。", Bm = "-22 -27 44 54", Lm = 44, zm = 54, Dm = '<rect x="-20" y="-20" width="40" height="40" rx="0" ry="0" fill="none" stroke="black" stroke-width="1"/><polyline points="-20,-20 0,-10 20,-20" fill="none" stroke="black" stroke-width="1"/>', Rm = [{ id: "t_top", x: 0, y: -25, orientation: "n" }, { id: "t_bottom", x: 0, y: 25, orientation: "s" }], Fm = { kind: "elmt", path: "91_en_60617/en_60617_07/en_60617_07_14/en_60617_07_14_01.elmt", qetEnglishName: "Motor starter, general symbol" }, Qk = {
|
|
5858
5858
|
id: Cm,
|
|
5859
5859
|
name: Pm,
|
|
5860
|
-
category:
|
|
5861
|
-
description:
|
|
5860
|
+
category: jm,
|
|
5861
|
+
description: Om,
|
|
5862
5862
|
viewBox: Bm,
|
|
5863
5863
|
width: Lm,
|
|
5864
5864
|
height: zm,
|
|
@@ -5867,9 +5867,9 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5867
5867
|
source: Fm
|
|
5868
5868
|
}, e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5869
5869
|
__proto__: null,
|
|
5870
|
-
category:
|
|
5870
|
+
category: jm,
|
|
5871
5871
|
default: Qk,
|
|
5872
|
-
description:
|
|
5872
|
+
description: Om,
|
|
5873
5873
|
height: zm,
|
|
5874
5874
|
id: Cm,
|
|
5875
5875
|
name: Pm,
|
|
@@ -5976,14 +5976,14 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5976
5976
|
terminals: Eh,
|
|
5977
5977
|
viewBox: _h,
|
|
5978
5978
|
width: $h
|
|
5979
|
-
}, Symbol.toStringTag, { value: "Module" })), Th = "power-factor-meter", Ah = "功率因数表 (cosφ)", Ih = "measurement", Ch = "功率因数表 (cosφ)。", Ph = "-22 -42 44 44",
|
|
5979
|
+
}, Symbol.toStringTag, { value: "Module" })), Th = "power-factor-meter", Ah = "功率因数表 (cosφ)", Ih = "measurement", Ch = "功率因数表 (cosφ)。", Ph = "-22 -42 44 44", jh = 44, Oh = 44, Bh = '<ellipse cx="0" cy="-20" rx="20" ry="20" fill="none" stroke="black" stroke-width="1"/><text x="-14" y="-6.8" font-family="Liberation Sans, Arial, sans-serif" font-size="9" fill="#000000">cos φ</text>', Lh = [{ id: "t_top", x: 0, y: -40, orientation: "n" }], zh = { kind: "elmt", path: "91_en_60617/en_60617_08/en_60617_08_02/en_60617_08_02_05.elmt", qetEnglishName: "Power-factor meter" }, c_ = {
|
|
5980
5980
|
id: Th,
|
|
5981
5981
|
name: Ah,
|
|
5982
5982
|
category: Ih,
|
|
5983
5983
|
description: Ch,
|
|
5984
5984
|
viewBox: Ph,
|
|
5985
|
-
width:
|
|
5986
|
-
height:
|
|
5985
|
+
width: jh,
|
|
5986
|
+
height: Oh,
|
|
5987
5987
|
svg: Bh,
|
|
5988
5988
|
terminals: Lh,
|
|
5989
5989
|
source: zh
|
|
@@ -5992,14 +5992,14 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
5992
5992
|
category: Ih,
|
|
5993
5993
|
default: c_,
|
|
5994
5994
|
description: Ch,
|
|
5995
|
-
height:
|
|
5995
|
+
height: Oh,
|
|
5996
5996
|
id: Th,
|
|
5997
5997
|
name: Ah,
|
|
5998
5998
|
source: zh,
|
|
5999
5999
|
svg: Bh,
|
|
6000
6000
|
terminals: Lh,
|
|
6001
6001
|
viewBox: Ph,
|
|
6002
|
-
width:
|
|
6002
|
+
width: jh
|
|
6003
6003
|
}, Symbol.toStringTag, { value: "Module" })), Dh = "power-supply", Rh = "开关电源 (PS)", Fh = "source", Hh = "AC→DC 开关电源 / 直流电源模块。t_ac 上(~), t_dc 下(=)。", Wh = "-24 -42 48 84", qh = 48, Gh = 84, Xh = '<rect x="-22" y="-20" width="44" height="40" fill="none" stroke="black" stroke-width="1"/><line x1="-22" y1="20" x2="22" y2="-20" stroke="black" stroke-width="1" fill="none"/><text x="-15" y="-5" font-family="Liberation Sans, Arial, sans-serif" font-size="9" fill="#000000">~</text><text x="8" y="15" font-family="Liberation Sans, Arial, sans-serif" font-size="9" fill="#000000">=</text><line x1="0" y1="-40" x2="0" y2="-20" stroke="black" stroke-width="1" fill="none"/><line x1="0" y1="20" x2="0" y2="40" stroke="black" stroke-width="1" fill="none"/>', Yh = [{ id: "t_ac", x: 0, y: -40, orientation: "n" }, { id: "t_dc", x: 0, y: 40, orientation: "s" }], Kh = [{ name: "Vdc", label: "输出电压", type: "number", unit: "V", showOnCanvas: !0 }], Vh = { kind: "inline" }, u_ = {
|
|
6004
6004
|
id: Dh,
|
|
6005
6005
|
name: Rh,
|
|
@@ -6096,7 +6096,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6096
6096
|
terminals: _0,
|
|
6097
6097
|
viewBox: w0,
|
|
6098
6098
|
width: x0
|
|
6099
|
-
}, Symbol.toStringTag, { value: "Module" })), S0 = "push-button", N0 = "按钮 (SB)", E0 = "control", M0 = "手动按钮, 自动复位 (常开 make)。", T0 = "-37 -42 39 64", A0 = 39, I0 = 64, C0 = '<line x1="-35" y1="-10" x2="-4" y2="-10" fill="none" stroke="black" stroke-width="1" stroke-dasharray="4 2"/><line x1="0" y1="-20" x2="0" y2="-40" fill="none" stroke="black" stroke-width="1"/><line x1="-35" y1="-15" x2="-35" y2="-5" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="0" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="-8" y2="-23" fill="none" stroke="black" stroke-width="1"/><line x1="-35" y1="-15" x2="-30" y2="-15" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-5" x2="-35" y2="-5" fill="none" stroke="black" stroke-width="1"/>', P0 = [{ id: "t1", x: 0, y: -40, orientation: "n" }, { id: "t2", x: 0, y: 20, orientation: "s" }],
|
|
6099
|
+
}, Symbol.toStringTag, { value: "Module" })), S0 = "push-button", N0 = "按钮 (SB)", E0 = "control", M0 = "手动按钮, 自动复位 (常开 make)。", T0 = "-37 -42 39 64", A0 = 39, I0 = 64, C0 = '<line x1="-35" y1="-10" x2="-4" y2="-10" fill="none" stroke="black" stroke-width="1" stroke-dasharray="4 2"/><line x1="0" y1="-20" x2="0" y2="-40" fill="none" stroke="black" stroke-width="1"/><line x1="-35" y1="-15" x2="-35" y2="-5" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="0" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="-8" y2="-23" fill="none" stroke="black" stroke-width="1"/><line x1="-35" y1="-15" x2="-30" y2="-15" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-5" x2="-35" y2="-5" fill="none" stroke="black" stroke-width="1"/>', P0 = [{ id: "t1", x: 0, y: -40, orientation: "n" }, { id: "t2", x: 0, y: 20, orientation: "s" }], j0 = { kind: "elmt", path: "91_en_60617/en_60617_07/en_60617_07_07/en_60617_07_07_02.elmt", qetEnglishName: "Switch, manually operated, push-button, automatic return" }, w_ = {
|
|
6100
6100
|
id: S0,
|
|
6101
6101
|
name: N0,
|
|
6102
6102
|
category: E0,
|
|
@@ -6106,7 +6106,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6106
6106
|
height: I0,
|
|
6107
6107
|
svg: C0,
|
|
6108
6108
|
terminals: P0,
|
|
6109
|
-
source:
|
|
6109
|
+
source: j0
|
|
6110
6110
|
}, x_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6111
6111
|
__proto__: null,
|
|
6112
6112
|
category: E0,
|
|
@@ -6115,13 +6115,13 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6115
6115
|
height: I0,
|
|
6116
6116
|
id: S0,
|
|
6117
6117
|
name: N0,
|
|
6118
|
-
source:
|
|
6118
|
+
source: j0,
|
|
6119
6119
|
svg: C0,
|
|
6120
6120
|
terminals: P0,
|
|
6121
6121
|
viewBox: T0,
|
|
6122
6122
|
width: A0
|
|
6123
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6124
|
-
id:
|
|
6123
|
+
}, Symbol.toStringTag, { value: "Module" })), O0 = "pv", B0 = "光伏组件", L0 = "renewable", z0 = "-33 -22 85 64", D0 = 85, R0 = 64, F0 = '<line x1="-16" y1="24" x2="-26" y2="14" fill="none" stroke="black" stroke-width="1"/><line x1="-21" y1="29" x2="-31" y2="19" fill="none" stroke="black" stroke-width="1"/><polygon points="-20,23 -17,20 -15,25" fill="black" stroke="black" stroke-width="1"/><polygon points="-22,25 -25,28 -20,30" fill="black" stroke="black" stroke-width="1"/><rect x="-10" y="-20" width="60" height="60" rx="0" ry="0" fill="none" stroke="black" stroke-width="1"/><text x="15" y="7.2" font-family="Liberation Sans, Arial, sans-serif" font-size="14" fill="#000000">G</text><line x1="10" y1="20" x2="20" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="20" y1="15" x2="20" y2="25" fill="none" stroke="black" stroke-width="1"/><line x1="25" y1="10" x2="25" y2="30" fill="none" stroke="black" stroke-width="1"/><line x1="25" y1="20" x2="35" y2="20" fill="none" stroke="black" stroke-width="1"/>', H0 = [{ id: "t_dc", x: 50, y: 10, orientation: "e" }], W0 = { kind: "elmt", path: "91_en_60617/en_60617_06/en_60617_06_18/en_60617_06_18_06.elmt", qetEnglishName: "Photovoltaic generator" }, v_ = {
|
|
6124
|
+
id: O0,
|
|
6125
6125
|
name: B0,
|
|
6126
6126
|
category: L0,
|
|
6127
6127
|
viewBox: z0,
|
|
@@ -6135,7 +6135,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6135
6135
|
category: L0,
|
|
6136
6136
|
default: v_,
|
|
6137
6137
|
height: R0,
|
|
6138
|
-
id:
|
|
6138
|
+
id: O0,
|
|
6139
6139
|
name: B0,
|
|
6140
6140
|
source: W0,
|
|
6141
6141
|
svg: F0,
|
|
@@ -6242,11 +6242,11 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6242
6242
|
terminals: Ap,
|
|
6243
6243
|
viewBox: Np,
|
|
6244
6244
|
width: Ep
|
|
6245
|
-
}, Symbol.toStringTag, { value: "Module" })), Cp = "resistor", Pp = "电阻 (R)",
|
|
6245
|
+
}, Symbol.toStringTag, { value: "Module" })), Cp = "resistor", Pp = "电阻 (R)", jp = "passive", Op = "通用电阻 / 限流 / 制动电阻。", Bp = "-6 -23 12 35", Lp = 12, zp = 35, Dp = '<line x1="0" y1="-10" x2="0" y2="-20" fill="none" stroke="black" stroke-width="1"/><line x1="4" y1="10" x2="4" y2="-10" fill="none" stroke="black" stroke-width="1"/><line x1="-4" y1="10" x2="4" y2="10" fill="none" stroke="black" stroke-width="1"/><line x1="4" y1="-10" x2="-4" y2="-10" fill="none" stroke="black" stroke-width="1"/><line x1="-4" y1="-10" x2="-4" y2="10" fill="none" stroke="black" stroke-width="1"/>', Rp = [{ id: "t1", x: 0, y: -21, orientation: "n" }, { id: "t2", x: 0, y: 10, orientation: "s" }], Fp = [{ name: "R", label: "阻值", type: "number", unit: "Ω", showOnCanvas: !0 }, { name: "P", label: "额定功率", type: "number", unit: "W" }], Hp = { x: 6, y: 0, anchor: "start" }, Wp = { kind: "elmt", path: "11_singlepole/395_electronics_semiconductors/10_resistors/resistance.elmt", qetEnglishName: "Resistor" }, I_ = {
|
|
6246
6246
|
id: Cp,
|
|
6247
6247
|
name: Pp,
|
|
6248
|
-
category:
|
|
6249
|
-
description:
|
|
6248
|
+
category: jp,
|
|
6249
|
+
description: Op,
|
|
6250
6250
|
viewBox: Bp,
|
|
6251
6251
|
width: Lp,
|
|
6252
6252
|
height: zp,
|
|
@@ -6257,9 +6257,9 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6257
6257
|
source: Wp
|
|
6258
6258
|
}, C_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6259
6259
|
__proto__: null,
|
|
6260
|
-
category:
|
|
6260
|
+
category: jp,
|
|
6261
6261
|
default: I_,
|
|
6262
|
-
description:
|
|
6262
|
+
description: Op,
|
|
6263
6263
|
height: zp,
|
|
6264
6264
|
id: Cp,
|
|
6265
6265
|
label: Hp,
|
|
@@ -6281,7 +6281,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6281
6281
|
svg: Jp,
|
|
6282
6282
|
terminals: Zp,
|
|
6283
6283
|
source: Qp
|
|
6284
|
-
},
|
|
6284
|
+
}, j_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6285
6285
|
__proto__: null,
|
|
6286
6286
|
category: Xp,
|
|
6287
6287
|
default: P_,
|
|
@@ -6294,7 +6294,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6294
6294
|
terminals: Zp,
|
|
6295
6295
|
viewBox: Kp,
|
|
6296
6296
|
width: Vp
|
|
6297
|
-
}, Symbol.toStringTag, { value: "Module" })), eg = "selector-switch", tg = "选择开关 (SA)", ng = "switching", og = "转换 / 选择开关 (旋转操作, 保位)。", rg = "-34 -42 36 64", ig = 36, sg = 64, ag = '<line x1="-32" y1="-10" x2="-2" y2="-10" fill="none" stroke="black" stroke-width="1" stroke-dasharray="4 2"/><line x1="0" y1="-20" x2="0" y2="-40" fill="none" stroke="black" stroke-width="1"/><line x1="-32" y1="-15" x2="-32" y2="-5" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="0" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="-8" y2="-23" fill="none" stroke="black" stroke-width="1"/>', lg = [{ id: "t1", x: 0, y: -40, orientation: "n" }, { id: "t2", x: 0, y: 20, orientation: "s" }], cg = [{ name: "open", type: "boolean", default: !1, label: "断开" }], dg = { kind: "elmt", path: "91_en_60617/en_60617_07/en_60617_07_07/en_60617_07_07_04.elmt", qetEnglishName: "Switch, manually operated, turning, stay-put" },
|
|
6297
|
+
}, Symbol.toStringTag, { value: "Module" })), eg = "selector-switch", tg = "选择开关 (SA)", ng = "switching", og = "转换 / 选择开关 (旋转操作, 保位)。", rg = "-34 -42 36 64", ig = 36, sg = 64, ag = '<line x1="-32" y1="-10" x2="-2" y2="-10" fill="none" stroke="black" stroke-width="1" stroke-dasharray="4 2"/><line x1="0" y1="-20" x2="0" y2="-40" fill="none" stroke="black" stroke-width="1"/><line x1="-32" y1="-15" x2="-32" y2="-5" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="0" y2="20" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="0" x2="-8" y2="-23" fill="none" stroke="black" stroke-width="1"/>', lg = [{ id: "t1", x: 0, y: -40, orientation: "n" }, { id: "t2", x: 0, y: 20, orientation: "s" }], cg = [{ name: "open", type: "boolean", default: !1, label: "断开" }], dg = { kind: "elmt", path: "91_en_60617/en_60617_07/en_60617_07_07/en_60617_07_07_04.elmt", qetEnglishName: "Switch, manually operated, turning, stay-put" }, O_ = {
|
|
6298
6298
|
id: eg,
|
|
6299
6299
|
name: tg,
|
|
6300
6300
|
category: ng,
|
|
@@ -6309,7 +6309,7 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6309
6309
|
}, B_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6310
6310
|
__proto__: null,
|
|
6311
6311
|
category: ng,
|
|
6312
|
-
default:
|
|
6312
|
+
default: O_,
|
|
6313
6313
|
description: og,
|
|
6314
6314
|
height: sg,
|
|
6315
6315
|
id: eg,
|
|
@@ -6368,12 +6368,12 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6368
6368
|
terminals: Mg,
|
|
6369
6369
|
viewBox: $g,
|
|
6370
6370
|
width: Sg
|
|
6371
|
-
}, Symbol.toStringTag, { value: "Module" })), Ig = "shunt-reactor", Cg = "并联电抗器", Pg = "compensation",
|
|
6371
|
+
}, Symbol.toStringTag, { value: "Module" })), Ig = "shunt-reactor", Cg = "并联电抗器", Pg = "compensation", jg = "-62 -82 64 104", Og = 64, Bg = 104, Lg = '<line x1="-30" y1="0" x2="-30" y2="20" fill="none" stroke="black" stroke-width="1"/><path d="M -30 0 A 30 30 0 1 0 -60 -30" fill="none" stroke="black" stroke-width="1"/><line x1="-30" y1="-80" x2="-30" y2="-30" fill="none" stroke="black" stroke-width="1"/><line x1="-60" y1="-30" x2="-30" y2="-30" fill="none" stroke="black" stroke-width="1"/>', zg = [{ id: "t1", x: -30, y: -80, orientation: "n" }, { id: "t_bottom", x: -30, y: 20, orientation: "s" }], Dg = { kind: "elmt", path: "91_en_60617/en_60617_06/en_60617_06_09/en_60617_06_09_08.elmt", qetEnglishName: "Choke; Reactor, general symbol" }, F_ = {
|
|
6372
6372
|
id: Ig,
|
|
6373
6373
|
name: Cg,
|
|
6374
6374
|
category: Pg,
|
|
6375
|
-
viewBox:
|
|
6376
|
-
width:
|
|
6375
|
+
viewBox: jg,
|
|
6376
|
+
width: Og,
|
|
6377
6377
|
height: Bg,
|
|
6378
6378
|
svg: Lg,
|
|
6379
6379
|
terminals: zg,
|
|
@@ -6388,8 +6388,8 @@ const gi = "ammeter", yi = "电流表 (A)", bi = "measurement", wi = "-22 -42 44
|
|
|
6388
6388
|
source: Dg,
|
|
6389
6389
|
svg: Lg,
|
|
6390
6390
|
terminals: zg,
|
|
6391
|
-
viewBox:
|
|
6392
|
-
width:
|
|
6391
|
+
viewBox: jg,
|
|
6392
|
+
width: Og
|
|
6393
6393
|
}, Symbol.toStringTag, { value: "Module" })), Rg = "siren", Fg = "警笛 (HA)", Hg = "control", Wg = "声响警笛 / 报警器。", qg = "-32 -42 44 54", Gg = 44, Xg = 54, Yg = '<line x1="-20" y1="-10" x2="-20" y2="10" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="-10" x2="0" y2="10" fill="none" stroke="black" stroke-width="1"/><polygon points="10,-10 -30,-10 -10,-40" fill="none" stroke="black" stroke-width="1"/>', Kg = [{ id: "t1", x: -20, y: 10, orientation: "s" }, { id: "t2", x: 0, y: 10, orientation: "s" }], Vg = { kind: "elmt", path: "91_en_60617/en_60617_08/en_60617_08_10/en_60617_08_10_09.elmt", qetEnglishName: "Siren" }, W_ = {
|
|
6394
6394
|
id: Rg,
|
|
6395
6395
|
name: Fg,
|
|
@@ -6485,7 +6485,7 @@ unifilar` }, G_ = {
|
|
|
6485
6485
|
terminals: _1,
|
|
6486
6486
|
viewBox: w1,
|
|
6487
6487
|
width: x1
|
|
6488
|
-
}, Symbol.toStringTag, { value: "Module" })), S1 = "synchronoscope", N1 = "同步表", E1 = "measurement", M1 = "同步指示器 / 同步表。", T1 = "-22 -42 44 44", A1 = 44, I1 = 44, C1 = '<ellipse cx="0" cy="-20" rx="20" ry="20" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="-5" x2="0" y2="-35" fill="none" stroke="black" stroke-width="1"/><path d="M 12.374 -30.374 A 17.5 17.5 0 0 0 -12.374 -30.374" fill="none" stroke="black" stroke-width="1"/><polygon points="-13,-30 -11,-33 -10,-31" fill="none" stroke="black" stroke-width="1"/><polygon points="11,-33 13,-30 10,-31" fill="none" stroke="black" stroke-width="1"/>', P1 = [{ id: "t_top", x: 0, y: -40, orientation: "n" }],
|
|
6488
|
+
}, Symbol.toStringTag, { value: "Module" })), S1 = "synchronoscope", N1 = "同步表", E1 = "measurement", M1 = "同步指示器 / 同步表。", T1 = "-22 -42 44 44", A1 = 44, I1 = 44, C1 = '<ellipse cx="0" cy="-20" rx="20" ry="20" fill="none" stroke="black" stroke-width="1"/><line x1="0" y1="-5" x2="0" y2="-35" fill="none" stroke="black" stroke-width="1"/><path d="M 12.374 -30.374 A 17.5 17.5 0 0 0 -12.374 -30.374" fill="none" stroke="black" stroke-width="1"/><polygon points="-13,-30 -11,-33 -10,-31" fill="none" stroke="black" stroke-width="1"/><polygon points="11,-33 13,-30 10,-31" fill="none" stroke="black" stroke-width="1"/>', P1 = [{ id: "t_top", x: 0, y: -40, orientation: "n" }], j1 = { kind: "elmt", path: "91_en_60617/en_60617_08/en_60617_08_02/en_60617_08_02_08.elmt", qetEnglishName: "Synchronoscope" }, J_ = {
|
|
6489
6489
|
id: S1,
|
|
6490
6490
|
name: N1,
|
|
6491
6491
|
category: E1,
|
|
@@ -6495,7 +6495,7 @@ unifilar` }, G_ = {
|
|
|
6495
6495
|
height: I1,
|
|
6496
6496
|
svg: C1,
|
|
6497
6497
|
terminals: P1,
|
|
6498
|
-
source:
|
|
6498
|
+
source: j1
|
|
6499
6499
|
}, Z_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6500
6500
|
__proto__: null,
|
|
6501
6501
|
category: E1,
|
|
@@ -6504,13 +6504,13 @@ unifilar` }, G_ = {
|
|
|
6504
6504
|
height: I1,
|
|
6505
6505
|
id: S1,
|
|
6506
6506
|
name: N1,
|
|
6507
|
-
source:
|
|
6507
|
+
source: j1,
|
|
6508
6508
|
svg: C1,
|
|
6509
6509
|
terminals: P1,
|
|
6510
6510
|
viewBox: T1,
|
|
6511
6511
|
width: A1
|
|
6512
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6513
|
-
id:
|
|
6512
|
+
}, Symbol.toStringTag, { value: "Module" })), O1 = "terminal", B1 = "接线端子 / 节点 (X)", L1 = "busbar", z1 = "接线端子 / 接线盒 / 汇接节点。", D1 = "-5 -5 10 10", R1 = 10, F1 = 10, H1 = '<ellipse cx="0" cy="0" rx="2.5" ry="2.5" fill="black" stroke="black" stroke-width="1"/>', W1 = [{ id: "t_top", x: 0, y: -2.5, orientation: "n" }, { id: "t_bottom", x: 0, y: 2.5, orientation: "s" }, { id: "t_left", x: -2.5, y: 0, orientation: "w" }, { id: "t_right", x: 2.5, y: 0, orientation: "e" }], q1 = { kind: "elmt", path: "91_en_60617/en_60617_03/en_60617_03_02/en_60617_03_02_02.elmt", qetEnglishName: "Terminal" }, Q_ = {
|
|
6513
|
+
id: O1,
|
|
6514
6514
|
name: B1,
|
|
6515
6515
|
category: L1,
|
|
6516
6516
|
description: z1,
|
|
@@ -6526,7 +6526,7 @@ unifilar` }, G_ = {
|
|
|
6526
6526
|
default: Q_,
|
|
6527
6527
|
description: z1,
|
|
6528
6528
|
height: F1,
|
|
6529
|
-
id:
|
|
6529
|
+
id: O1,
|
|
6530
6530
|
name: B1,
|
|
6531
6531
|
source: q1,
|
|
6532
6532
|
svg: H1,
|
|
@@ -6633,10 +6633,10 @@ unifilar` }, G_ = {
|
|
|
6633
6633
|
terminals: Iy,
|
|
6634
6634
|
viewBox: Ey,
|
|
6635
6635
|
width: My
|
|
6636
|
-
}, Symbol.toStringTag, { value: "Module" })), Py = "transfer-switch",
|
|
6636
|
+
}, Symbol.toStringTag, { value: "Module" })), Py = "transfer-switch", jy = "切换开关 (ATS)", Oy = "switching", By = "双源切换开关 (Automatic / Manual Transfer Switch)。两个电源输入 + 一个负荷输出, 互锁不并联。", Ly = "-27 -32 51 64", zy = 51, Dy = 64, Ry = '<line x1="-15" y1="-30" x2="-15" y2="-12" stroke="black" stroke-width="1" fill="none"/><line x1="15" y1="-30" x2="15" y2="-12" stroke="black" stroke-width="1" fill="none"/><text x="-25" y="-20" font-family="Liberation Sans, Arial, sans-serif" font-size="6" fill="#000000">N</text><text x="19" y="-20" font-family="Liberation Sans, Arial, sans-serif" font-size="6" fill="#000000">E</text><circle cx="-15" cy="-10" r="1.5" fill="black"/><circle cx="15" cy="-10" r="1.5" fill="black"/><circle cx="0" cy="6" r="1.5" fill="black"/><line x1="-15" y1="-10" x2="0" y2="6" stroke="black" stroke-width="1" fill="none"/><line x1="15" y1="-10" x2="0" y2="6" stroke="black" stroke-width="0.6" fill="none" stroke-dasharray="2 1.5"/><line x1="0" y1="6" x2="0" y2="30" stroke="black" stroke-width="1" fill="none"/>', Fy = [{ id: "t_normal", x: -15, y: -30, orientation: "n" }, { id: "t_emergency", x: 15, y: -30, orientation: "n" }, { id: "t_load", x: 0, y: 30, orientation: "s" }], Hy = [{ name: "position", type: "string", default: "normal", label: "位置 (normal/emergency/off)" }], Wy = { kind: "inline" }, c$ = {
|
|
6637
6637
|
id: Py,
|
|
6638
|
-
name:
|
|
6639
|
-
category:
|
|
6638
|
+
name: jy,
|
|
6639
|
+
category: Oy,
|
|
6640
6640
|
description: By,
|
|
6641
6641
|
viewBox: Ly,
|
|
6642
6642
|
width: zy,
|
|
@@ -6647,12 +6647,12 @@ unifilar` }, G_ = {
|
|
|
6647
6647
|
source: Wy
|
|
6648
6648
|
}, d$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6649
6649
|
__proto__: null,
|
|
6650
|
-
category:
|
|
6650
|
+
category: Oy,
|
|
6651
6651
|
default: c$,
|
|
6652
6652
|
description: By,
|
|
6653
6653
|
height: Dy,
|
|
6654
6654
|
id: Py,
|
|
6655
|
-
name:
|
|
6655
|
+
name: jy,
|
|
6656
6656
|
source: Wy,
|
|
6657
6657
|
state: Hy,
|
|
6658
6658
|
svg: Ry,
|
|
@@ -6759,11 +6759,11 @@ unifilar` }, G_ = {
|
|
|
6759
6759
|
terminals: Ab,
|
|
6760
6760
|
viewBox: Nb,
|
|
6761
6761
|
width: Eb
|
|
6762
|
-
}, Symbol.toStringTag, { value: "Module" })), Cb = "ups", Pb = "不间断电源 (UPS)",
|
|
6762
|
+
}, Symbol.toStringTag, { value: "Module" })), Cb = "ups", Pb = "不间断电源 (UPS)", jb = "source", Ob = "在线 / 后备式不间断电源。", Bb = "-26 -42 52 84", Lb = 52, zb = 84, Db = '<rect x="-24" y="-20" width="48" height="40" fill="none" stroke="black" stroke-width="1"/><text x="0" y="4" text-anchor="middle" font-family="Liberation Sans, Arial, sans-serif" font-size="11" fill="#000000">UPS</text><line x1="0" y1="-40" x2="0" y2="-20" stroke="black" stroke-width="1" fill="none"/><line x1="0" y1="20" x2="0" y2="40" stroke="black" stroke-width="1" fill="none"/>', Rb = [{ id: "t_in", x: 0, y: -40, orientation: "n" }, { id: "t_out", x: 0, y: 40, orientation: "s" }], Fb = [{ name: "S", label: "容量", type: "number", unit: "kVA" }], Hb = { kind: "inline" }, w$ = {
|
|
6763
6763
|
id: Cb,
|
|
6764
6764
|
name: Pb,
|
|
6765
|
-
category:
|
|
6766
|
-
description:
|
|
6765
|
+
category: jb,
|
|
6766
|
+
description: Ob,
|
|
6767
6767
|
viewBox: Bb,
|
|
6768
6768
|
width: Lb,
|
|
6769
6769
|
height: zb,
|
|
@@ -6773,9 +6773,9 @@ unifilar` }, G_ = {
|
|
|
6773
6773
|
source: Hb
|
|
6774
6774
|
}, x$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6775
6775
|
__proto__: null,
|
|
6776
|
-
category:
|
|
6776
|
+
category: jb,
|
|
6777
6777
|
default: w$,
|
|
6778
|
-
description:
|
|
6778
|
+
description: Ob,
|
|
6779
6779
|
height: zb,
|
|
6780
6780
|
id: Cb,
|
|
6781
6781
|
name: Pb,
|
|
@@ -6881,25 +6881,25 @@ unifilar` }, G_ = {
|
|
|
6881
6881
|
terminals: Ew,
|
|
6882
6882
|
viewBox: _w,
|
|
6883
6883
|
width: $w
|
|
6884
|
-
}, Symbol.toStringTag, { value: "Module" })), Tw = "wattmeter", Aw = "功率表 (W)", Iw = "measurement", Cw = "-22 -42 44 44", Pw = 44,
|
|
6884
|
+
}, Symbol.toStringTag, { value: "Module" })), Tw = "wattmeter", Aw = "功率表 (W)", Iw = "measurement", Cw = "-22 -42 44 44", Pw = 44, jw = 44, Ow = '<rect x="-20" y="-40" width="40" height="40" rx="0" ry="0" fill="none" stroke="black" stroke-width="1"/><text x="-6" y="-8.8" font-family="Liberation Sans, Arial, sans-serif" font-size="9" fill="#000000">W</text>', Bw = [{ id: "t_top", x: 0, y: -40, orientation: "n" }], Lw = { kind: "elmt", path: "91_en_60617/en_60617_08/en_60617_08_03/en_60617_08_03_01.elmt", qetEnglishName: "Recording wattmeter" }, T$ = {
|
|
6885
6885
|
id: Tw,
|
|
6886
6886
|
name: Aw,
|
|
6887
6887
|
category: Iw,
|
|
6888
6888
|
viewBox: Cw,
|
|
6889
6889
|
width: Pw,
|
|
6890
|
-
height:
|
|
6891
|
-
svg:
|
|
6890
|
+
height: jw,
|
|
6891
|
+
svg: Ow,
|
|
6892
6892
|
terminals: Bw,
|
|
6893
6893
|
source: Lw
|
|
6894
6894
|
}, A$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6895
6895
|
__proto__: null,
|
|
6896
6896
|
category: Iw,
|
|
6897
6897
|
default: T$,
|
|
6898
|
-
height:
|
|
6898
|
+
height: jw,
|
|
6899
6899
|
id: Tw,
|
|
6900
6900
|
name: Aw,
|
|
6901
6901
|
source: Lw,
|
|
6902
|
-
svg:
|
|
6902
|
+
svg: Ow,
|
|
6903
6903
|
terminals: Bw,
|
|
6904
6904
|
viewBox: Cw,
|
|
6905
6905
|
width: Pw
|
|
@@ -6939,7 +6939,7 @@ unifilar` }, G_ = {
|
|
|
6939
6939
|
terminals: nx,
|
|
6940
6940
|
label: ox,
|
|
6941
6941
|
source: rx
|
|
6942
|
-
},
|
|
6942
|
+
}, j$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6943
6943
|
__proto__: null,
|
|
6944
6944
|
category: Uw,
|
|
6945
6945
|
default: P$,
|
|
@@ -6953,14 +6953,14 @@ unifilar` }, G_ = {
|
|
|
6953
6953
|
terminals: nx,
|
|
6954
6954
|
viewBox: Zw,
|
|
6955
6955
|
width: Qw
|
|
6956
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6956
|
+
}, Symbol.toStringTag, { value: "Module" })), O$ = /* @__PURE__ */ Object.assign({
|
|
6957
6957
|
"./ammeter.json": k2,
|
|
6958
6958
|
"./arc-suppression-coil.json": $2,
|
|
6959
6959
|
"./arrester.json": N2,
|
|
6960
6960
|
"./async-motor.json": M2,
|
|
6961
6961
|
"./autotransformer.json": A2,
|
|
6962
6962
|
"./battery.json": C2,
|
|
6963
|
-
"./bell.json":
|
|
6963
|
+
"./bell.json": j2,
|
|
6964
6964
|
"./break-contact.json": B2,
|
|
6965
6965
|
"./breaker.json": z2,
|
|
6966
6966
|
"./buchholz-relay.json": R2,
|
|
@@ -6987,7 +6987,7 @@ unifilar` }, G_ = {
|
|
|
6987
6987
|
"./genset.json": Mk,
|
|
6988
6988
|
"./gfci-breaker.json": Ak,
|
|
6989
6989
|
"./grid-source.json": Ck,
|
|
6990
|
-
"./grounding-transformer.json":
|
|
6990
|
+
"./grounding-transformer.json": jk,
|
|
6991
6991
|
"./heater.json": Bk,
|
|
6992
6992
|
"./igbt.json": zk,
|
|
6993
6993
|
"./indicator-light.json": Rk,
|
|
@@ -7014,7 +7014,7 @@ unifilar` }, G_ = {
|
|
|
7014
7014
|
"./rectifier.json": M_,
|
|
7015
7015
|
"./relay-coil.json": A_,
|
|
7016
7016
|
"./resistor.json": C_,
|
|
7017
|
-
"./reverse-power-relay.json":
|
|
7017
|
+
"./reverse-power-relay.json": j_,
|
|
7018
7018
|
"./selector-switch.json": B_,
|
|
7019
7019
|
"./series-reactor.json": z_,
|
|
7020
7020
|
"./shunt-capacitor.json": R_,
|
|
@@ -7041,8 +7041,8 @@ unifilar` }, G_ = {
|
|
|
7041
7041
|
"./voltmeter.json": M$,
|
|
7042
7042
|
"./wattmeter.json": A$,
|
|
7043
7043
|
"./wind-turbine.json": C$,
|
|
7044
|
-
"./zener-diode.json":
|
|
7045
|
-
}), ix = Object.values(
|
|
7044
|
+
"./zener-diode.json": j$
|
|
7045
|
+
}), ix = Object.values(O$).map(
|
|
7046
7046
|
(e) => e.default
|
|
7047
7047
|
), Ue = Object.fromEntries(
|
|
7048
7048
|
ix.map((e) => [e.id, e])
|
|
@@ -9318,11 +9318,11 @@ function ut(e) {
|
|
|
9318
9318
|
var t;
|
|
9319
9319
|
return ((t = nt(e, "data-element-id")) == null ? void 0 : t.getAttribute("data-element-id")) ?? null;
|
|
9320
9320
|
}
|
|
9321
|
-
function
|
|
9321
|
+
function jS(e) {
|
|
9322
9322
|
var t;
|
|
9323
9323
|
return ((t = nt(e, "data-bus-id")) == null ? void 0 : t.getAttribute("data-bus-id")) ?? null;
|
|
9324
9324
|
}
|
|
9325
|
-
function
|
|
9325
|
+
function OS(e) {
|
|
9326
9326
|
var t;
|
|
9327
9327
|
return ((t = nt(e, "data-junction-id")) == null ? void 0 : t.getAttribute("data-junction-id")) ?? null;
|
|
9328
9328
|
}
|
|
@@ -9330,9 +9330,9 @@ function mn(e) {
|
|
|
9330
9330
|
var r;
|
|
9331
9331
|
const t = (r = nt(e, "data-terminal-id")) == null ? void 0 : r.getAttribute("data-terminal-id");
|
|
9332
9332
|
if (t) return t;
|
|
9333
|
-
const n =
|
|
9333
|
+
const n = OS(e);
|
|
9334
9334
|
if (n) return n;
|
|
9335
|
-
const o =
|
|
9335
|
+
const o = jS(e);
|
|
9336
9336
|
return o || null;
|
|
9337
9337
|
}
|
|
9338
9338
|
function hn(e) {
|
|
@@ -10438,7 +10438,7 @@ function p4(e, t, n = { tx: 0, ty: 0, scale: 1 }) {
|
|
|
10438
10438
|
I.stopPropagation();
|
|
10439
10439
|
const R = [...h.values()];
|
|
10440
10440
|
if (R.length < 2) return;
|
|
10441
|
-
const ie = R[1].x - R[0].x, se = R[1].y - R[0].y, ue = Math.hypot(ie, se) || 1, oe = s.getBoundingClientRect(), re = (R[0].x + R[1].x) / 2 - oe.left, xe = (R[0].y + R[1].y) / 2 - oe.top, ve = ue / g.startDist, Ne =
|
|
10441
|
+
const ie = R[1].x - R[0].x, se = R[1].y - R[0].y, ue = Math.hypot(ie, se) || 1, oe = s.getBoundingClientRect(), re = (R[0].x + R[1].x) / 2 - oe.left, xe = (R[0].y + R[1].y) / 2 - oe.top, ve = ue / g.startDist, Ne = jn(g.startScale * ve, Cn, Pn), Ie = Ne / g.startScale;
|
|
10442
10442
|
o.current.tx = g.startMidX - (g.startMidX - g.startTx) * Ie + (re - g.startMidX), o.current.ty = g.startMidY - (g.startMidY - g.startTy) * Ie + (xe - g.startMidY), o.current.scale = Ne, i();
|
|
10443
10443
|
}, L = (I) => {
|
|
10444
10444
|
var R;
|
|
@@ -10454,7 +10454,7 @@ function p4(e, t, n = { tx: 0, ty: 0, scale: 1 }) {
|
|
|
10454
10454
|
I.preventDefault();
|
|
10455
10455
|
const R = s.getBoundingClientRect(), ie = I.clientX - R.left, se = I.clientY - R.top, ue = I.ctrlKey || I.metaKey;
|
|
10456
10456
|
if (I.deltaX === 0 || ue) {
|
|
10457
|
-
const xe = Math.pow(ue ? h4 : m4, -I.deltaY), ve =
|
|
10457
|
+
const xe = Math.pow(ue ? h4 : m4, -I.deltaY), ve = jn(o.current.scale * xe, Cn, Pn), Ne = ve / o.current.scale;
|
|
10458
10458
|
o.current.tx = ie - (ie - o.current.tx) * Ne, o.current.ty = se - (se - o.current.ty) * Ne, o.current.scale = ve;
|
|
10459
10459
|
} else
|
|
10460
10460
|
o.current.tx -= I.deltaX, o.current.ty -= I.deltaY;
|
|
@@ -10489,7 +10489,7 @@ function p4(e, t, n = { tx: 0, ty: 0, scale: 1 }) {
|
|
|
10489
10489
|
return { ...o.current };
|
|
10490
10490
|
},
|
|
10491
10491
|
setViewport(s) {
|
|
10492
|
-
s.tx !== void 0 && (o.current.tx = s.tx), s.ty !== void 0 && (o.current.ty = s.ty), s.scale !== void 0 && (o.current.scale =
|
|
10492
|
+
s.tx !== void 0 && (o.current.tx = s.tx), s.ty !== void 0 && (o.current.ty = s.ty), s.scale !== void 0 && (o.current.scale = jn(s.scale, Cn, Pn)), i();
|
|
10493
10493
|
},
|
|
10494
10494
|
subscribe(s) {
|
|
10495
10495
|
return r.current.add(s), () => {
|
|
@@ -10498,14 +10498,14 @@ function p4(e, t, n = { tx: 0, ty: 0, scale: 1 }) {
|
|
|
10498
10498
|
}
|
|
10499
10499
|
};
|
|
10500
10500
|
}
|
|
10501
|
-
function
|
|
10501
|
+
function jn(e, t, n) {
|
|
10502
10502
|
return e < t ? t : e > n ? n : e;
|
|
10503
10503
|
}
|
|
10504
|
-
const xx = typeof navigator < "u" && /Mac|iP(ad|hone|od)/.test(navigator.platform), st = xx ? "⌘" : "Ctrl+", g4 = xx ? "⇧" : "Shift+",
|
|
10504
|
+
const xx = typeof navigator < "u" && /Mac|iP(ad|hone|od)/.test(navigator.platform), st = xx ? "⌘" : "Ctrl+", g4 = xx ? "⇧" : "Shift+", On = [10, 20, 50, 100, 200, 500, 1e3, 2e3, 5e3, 1e4], y4 = 18;
|
|
10505
10505
|
function b4(e) {
|
|
10506
|
-
for (const t of
|
|
10506
|
+
for (const t of On)
|
|
10507
10507
|
if (t * e >= y4) return t;
|
|
10508
|
-
return
|
|
10508
|
+
return On[On.length - 1];
|
|
10509
10509
|
}
|
|
10510
10510
|
function w4() {
|
|
10511
10511
|
const e = de(), t = ge(null), n = ge(null), o = ge(null), r = p4(t, n);
|
|
@@ -10830,7 +10830,7 @@ function _x(e) {
|
|
|
10830
10830
|
}
|
|
10831
10831
|
// @__NO_SIDE_EFFECTS__
|
|
10832
10832
|
function P4(e) {
|
|
10833
|
-
const t = /* @__PURE__ */
|
|
10833
|
+
const t = /* @__PURE__ */ O4(e), n = Se.forwardRef((o, r) => {
|
|
10834
10834
|
let { children: i, ...s } = o;
|
|
10835
10835
|
_x(i) && typeof rn == "function" && (i = rn(i._payload));
|
|
10836
10836
|
const a = Se.Children.toArray(i), l = a.find(L4);
|
|
@@ -10842,9 +10842,9 @@ function P4(e) {
|
|
|
10842
10842
|
});
|
|
10843
10843
|
return n.displayName = `${e}.Slot`, n;
|
|
10844
10844
|
}
|
|
10845
|
-
var
|
|
10845
|
+
var j4 = /* @__PURE__ */ P4("Slot");
|
|
10846
10846
|
// @__NO_SIDE_EFFECTS__
|
|
10847
|
-
function
|
|
10847
|
+
function O4(e) {
|
|
10848
10848
|
const t = Se.forwardRef((n, o) => {
|
|
10849
10849
|
let { children: r, ...i } = n;
|
|
10850
10850
|
if (_x(r) && typeof rn == "function" && (r = rn(r._payload)), Se.isValidElement(r)) {
|
|
@@ -10928,9 +10928,9 @@ const kr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _r = oi, R
|
|
|
10928
10928
|
size: "default"
|
|
10929
10929
|
}
|
|
10930
10930
|
}
|
|
10931
|
-
),
|
|
10931
|
+
), je = Se.forwardRef(
|
|
10932
10932
|
({ className: e, variant: t, size: n, asChild: o = !1, ...r }, i) => /* @__PURE__ */ f(
|
|
10933
|
-
o ?
|
|
10933
|
+
o ? j4 : "button",
|
|
10934
10934
|
{
|
|
10935
10935
|
className: Ae(F4({ variant: t, size: n, className: e })),
|
|
10936
10936
|
ref: i,
|
|
@@ -10938,9 +10938,9 @@ const kr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _r = oi, R
|
|
|
10938
10938
|
}
|
|
10939
10939
|
)
|
|
10940
10940
|
);
|
|
10941
|
-
|
|
10941
|
+
je.displayName = "Button";
|
|
10942
10942
|
const H4 = 350;
|
|
10943
|
-
function
|
|
10943
|
+
function Oe({
|
|
10944
10944
|
content: e,
|
|
10945
10945
|
children: t,
|
|
10946
10946
|
disabled: n,
|
|
@@ -11074,14 +11074,14 @@ function q4() {
|
|
|
11074
11074
|
children: [
|
|
11075
11075
|
h && m && o && /* @__PURE__ */ B(et, { children: [
|
|
11076
11076
|
/* @__PURE__ */ f(
|
|
11077
|
-
|
|
11077
|
+
Oe,
|
|
11078
11078
|
{
|
|
11079
11079
|
content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11080
11080
|
/* @__PURE__ */ f("div", { children: /* @__PURE__ */ f("span", { className: "font-medium", children: e("ctx.resetWirePath") }) }),
|
|
11081
11081
|
/* @__PURE__ */ f("div", { className: "text-muted-foreground", children: e("ctx.resetWirePathHint") })
|
|
11082
11082
|
] }),
|
|
11083
11083
|
children: /* @__PURE__ */ f(
|
|
11084
|
-
|
|
11084
|
+
je,
|
|
11085
11085
|
{
|
|
11086
11086
|
variant: "ghost",
|
|
11087
11087
|
size: "icon",
|
|
@@ -11097,7 +11097,7 @@ function q4() {
|
|
|
11097
11097
|
] }),
|
|
11098
11098
|
!w && /* @__PURE__ */ B(et, { children: [
|
|
11099
11099
|
/* @__PURE__ */ f(
|
|
11100
|
-
|
|
11100
|
+
Oe,
|
|
11101
11101
|
{
|
|
11102
11102
|
content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11103
11103
|
/* @__PURE__ */ B("div", { children: [
|
|
@@ -11107,7 +11107,7 @@ function q4() {
|
|
|
11107
11107
|
/* @__PURE__ */ f("div", { className: "text-muted-foreground", children: e("ctx.rotateHint") })
|
|
11108
11108
|
] }),
|
|
11109
11109
|
children: /* @__PURE__ */ f(
|
|
11110
|
-
|
|
11110
|
+
je,
|
|
11111
11111
|
{
|
|
11112
11112
|
variant: "ghost",
|
|
11113
11113
|
size: "icon",
|
|
@@ -11120,7 +11120,7 @@ function q4() {
|
|
|
11120
11120
|
}
|
|
11121
11121
|
),
|
|
11122
11122
|
/* @__PURE__ */ f(
|
|
11123
|
-
|
|
11123
|
+
Oe,
|
|
11124
11124
|
{
|
|
11125
11125
|
content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11126
11126
|
/* @__PURE__ */ B("div", { children: [
|
|
@@ -11130,7 +11130,7 @@ function q4() {
|
|
|
11130
11130
|
/* @__PURE__ */ f("div", { className: "text-muted-foreground", children: e("ctx.mirrorHint") })
|
|
11131
11131
|
] }),
|
|
11132
11132
|
children: /* @__PURE__ */ f(
|
|
11133
|
-
|
|
11133
|
+
je,
|
|
11134
11134
|
{
|
|
11135
11135
|
variant: "ghost",
|
|
11136
11136
|
size: "icon",
|
|
@@ -11145,7 +11145,7 @@ function q4() {
|
|
|
11145
11145
|
/* @__PURE__ */ f("div", { "aria-hidden": !0, className: "mx-0.5 h-4 w-px bg-border" })
|
|
11146
11146
|
] }),
|
|
11147
11147
|
/* @__PURE__ */ f(
|
|
11148
|
-
|
|
11148
|
+
Oe,
|
|
11149
11149
|
{
|
|
11150
11150
|
content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11151
11151
|
/* @__PURE__ */ B("div", { children: [
|
|
@@ -11155,7 +11155,7 @@ function q4() {
|
|
|
11155
11155
|
/* @__PURE__ */ f("div", { className: "text-muted-foreground", children: e(h ? "ctx.deleteHintWire" : g ? "ctx.deleteHintNode" : "ctx.deleteHintElement") })
|
|
11156
11156
|
] }),
|
|
11157
11157
|
children: /* @__PURE__ */ f(
|
|
11158
|
-
|
|
11158
|
+
je,
|
|
11159
11159
|
{
|
|
11160
11160
|
variant: "ghost",
|
|
11161
11161
|
size: "icon",
|
|
@@ -11306,14 +11306,14 @@ function Tx() {
|
|
|
11306
11306
|
function Ax() {
|
|
11307
11307
|
const e = de();
|
|
11308
11308
|
return /* @__PURE__ */ f(
|
|
11309
|
-
|
|
11309
|
+
Oe,
|
|
11310
11310
|
{
|
|
11311
11311
|
content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11312
11312
|
/* @__PURE__ */ f("div", { className: "font-medium", children: e("view.zoomOut") }),
|
|
11313
11313
|
/* @__PURE__ */ f("div", { className: "text-muted-foreground", children: e("view.zoomOutHint") })
|
|
11314
11314
|
] }),
|
|
11315
11315
|
children: /* @__PURE__ */ f(
|
|
11316
|
-
|
|
11316
|
+
je,
|
|
11317
11317
|
{
|
|
11318
11318
|
variant: "ghost",
|
|
11319
11319
|
size: "icon",
|
|
@@ -11328,14 +11328,14 @@ function Ax() {
|
|
|
11328
11328
|
function Ix() {
|
|
11329
11329
|
const e = de();
|
|
11330
11330
|
return /* @__PURE__ */ f(
|
|
11331
|
-
|
|
11331
|
+
Oe,
|
|
11332
11332
|
{
|
|
11333
11333
|
content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11334
11334
|
/* @__PURE__ */ f("div", { className: "font-medium", children: e("view.zoomIn") }),
|
|
11335
11335
|
/* @__PURE__ */ f("div", { className: "text-muted-foreground", children: e("view.zoomInHint") })
|
|
11336
11336
|
] }),
|
|
11337
11337
|
children: /* @__PURE__ */ f(
|
|
11338
|
-
|
|
11338
|
+
je,
|
|
11339
11339
|
{
|
|
11340
11340
|
variant: "ghost",
|
|
11341
11341
|
size: "icon",
|
|
@@ -11350,7 +11350,7 @@ function Ix() {
|
|
|
11350
11350
|
function Cx() {
|
|
11351
11351
|
const e = de(), [t, n] = we(u4);
|
|
11352
11352
|
return ce(() => f4(n), []), /* @__PURE__ */ f(
|
|
11353
|
-
|
|
11353
|
+
Oe,
|
|
11354
11354
|
{
|
|
11355
11355
|
content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11356
11356
|
/* @__PURE__ */ f("div", { className: "font-medium", children: e("view.reset") }),
|
|
@@ -11375,14 +11375,14 @@ function Cx() {
|
|
|
11375
11375
|
function Px() {
|
|
11376
11376
|
const e = de();
|
|
11377
11377
|
return /* @__PURE__ */ f(
|
|
11378
|
-
|
|
11378
|
+
Oe,
|
|
11379
11379
|
{
|
|
11380
11380
|
content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11381
11381
|
/* @__PURE__ */ f("div", { className: "font-medium", children: e("view.fit") }),
|
|
11382
11382
|
/* @__PURE__ */ f("div", { className: "text-muted-foreground", children: e("view.fitHint") })
|
|
11383
11383
|
] }),
|
|
11384
11384
|
children: /* @__PURE__ */ f(
|
|
11385
|
-
|
|
11385
|
+
je,
|
|
11386
11386
|
{
|
|
11387
11387
|
variant: "ghost",
|
|
11388
11388
|
size: "icon",
|
|
@@ -11394,13 +11394,13 @@ function Px() {
|
|
|
11394
11394
|
}
|
|
11395
11395
|
);
|
|
11396
11396
|
}
|
|
11397
|
-
function
|
|
11397
|
+
function jx({
|
|
11398
11398
|
grid: e,
|
|
11399
11399
|
setGrid: t
|
|
11400
11400
|
}) {
|
|
11401
11401
|
const n = de();
|
|
11402
11402
|
return /* @__PURE__ */ f(
|
|
11403
|
-
|
|
11403
|
+
Oe,
|
|
11404
11404
|
{
|
|
11405
11405
|
content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11406
11406
|
/* @__PURE__ */ B("div", { children: [
|
|
@@ -11410,7 +11410,7 @@ function Ox({
|
|
|
11410
11410
|
/* @__PURE__ */ f("div", { className: "text-muted-foreground", children: n(e ? "view.gridHideHint" : "view.gridShowHint") })
|
|
11411
11411
|
] }),
|
|
11412
11412
|
children: /* @__PURE__ */ f(
|
|
11413
|
-
|
|
11413
|
+
je,
|
|
11414
11414
|
{
|
|
11415
11415
|
variant: "ghost",
|
|
11416
11416
|
size: "icon",
|
|
@@ -11424,7 +11424,7 @@ function Ox({
|
|
|
11424
11424
|
}
|
|
11425
11425
|
);
|
|
11426
11426
|
}
|
|
11427
|
-
function
|
|
11427
|
+
function Ox() {
|
|
11428
11428
|
const e = de(), t = b(
|
|
11429
11429
|
(n) => {
|
|
11430
11430
|
var o;
|
|
@@ -11432,14 +11432,14 @@ function jx() {
|
|
|
11432
11432
|
}
|
|
11433
11433
|
);
|
|
11434
11434
|
return /* @__PURE__ */ f(
|
|
11435
|
-
|
|
11435
|
+
Oe,
|
|
11436
11436
|
{
|
|
11437
11437
|
content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11438
11438
|
/* @__PURE__ */ f("div", { className: "font-medium", children: e(t === "off" ? "view.labelOff" : t === "id" ? "view.labelId" : "view.labelAll") }),
|
|
11439
11439
|
/* @__PURE__ */ f("div", { className: "text-muted-foreground", children: e("view.labelHint") })
|
|
11440
11440
|
] }),
|
|
11441
11441
|
children: /* @__PURE__ */ f(
|
|
11442
|
-
|
|
11442
|
+
je,
|
|
11443
11443
|
{
|
|
11444
11444
|
variant: "ghost",
|
|
11445
11445
|
size: "icon",
|
|
@@ -11457,7 +11457,7 @@ function Q4({ stacked: e } = {}) {
|
|
|
11457
11457
|
const t = de(), [n, o] = we(!1), [r, i] = Tx(), s = /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11458
11458
|
/* @__PURE__ */ f("div", { className: "font-medium", children: t("view.menu") }),
|
|
11459
11459
|
/* @__PURE__ */ f("div", { className: "text-muted-foreground", children: t("view.menuHint") })
|
|
11460
|
-
] }), a = e ? /* @__PURE__ */ f(
|
|
11460
|
+
] }), a = e ? /* @__PURE__ */ f(Oe, { content: s, children: /* @__PURE__ */ B(
|
|
11461
11461
|
"button",
|
|
11462
11462
|
{
|
|
11463
11463
|
type: "button",
|
|
@@ -11473,8 +11473,8 @@ function Q4({ stacked: e } = {}) {
|
|
|
11473
11473
|
/* @__PURE__ */ f("span", { className: "max-w-full truncate", children: t("view.menu") })
|
|
11474
11474
|
]
|
|
11475
11475
|
}
|
|
11476
|
-
) }) : /* @__PURE__ */ f(
|
|
11477
|
-
|
|
11476
|
+
) }) : /* @__PURE__ */ f(Oe, { content: s, children: /* @__PURE__ */ f(
|
|
11477
|
+
je,
|
|
11478
11478
|
{
|
|
11479
11479
|
variant: "ghost",
|
|
11480
11480
|
size: "icon",
|
|
@@ -11499,8 +11499,8 @@ function Q4({ stacked: e } = {}) {
|
|
|
11499
11499
|
/* @__PURE__ */ f("div", { "aria-hidden": !0, className: "my-1 h-px bg-border" }),
|
|
11500
11500
|
/* @__PURE__ */ B("div", { className: "flex items-center gap-0.5", children: [
|
|
11501
11501
|
/* @__PURE__ */ f(Px, {}),
|
|
11502
|
-
/* @__PURE__ */ f(
|
|
11503
|
-
/* @__PURE__ */ f(
|
|
11502
|
+
/* @__PURE__ */ f(jx, { grid: r, setGrid: i }),
|
|
11503
|
+
/* @__PURE__ */ f(Ox, {})
|
|
11504
11504
|
] })
|
|
11505
11505
|
] })
|
|
11506
11506
|
}
|
|
@@ -11526,8 +11526,8 @@ function t6({ tier: e }) {
|
|
|
11526
11526
|
/* @__PURE__ */ f(Ix, {}),
|
|
11527
11527
|
/* @__PURE__ */ f("div", { "aria-hidden": !0, className: "mx-1 h-4 w-px bg-border" }),
|
|
11528
11528
|
/* @__PURE__ */ f(Px, {}),
|
|
11529
|
-
/* @__PURE__ */ f(
|
|
11530
|
-
/* @__PURE__ */ f(
|
|
11529
|
+
/* @__PURE__ */ f(jx, { grid: n, setGrid: o }),
|
|
11530
|
+
/* @__PURE__ */ f(Ox, {})
|
|
11531
11531
|
] })
|
|
11532
11532
|
}
|
|
11533
11533
|
);
|
|
@@ -11736,7 +11736,7 @@ function dt({
|
|
|
11736
11736
|
onClick: a,
|
|
11737
11737
|
description: l
|
|
11738
11738
|
}) {
|
|
11739
|
-
return /* @__PURE__ */ f(
|
|
11739
|
+
return /* @__PURE__ */ f(Oe, { content: /* @__PURE__ */ B("div", { className: "space-y-0.5", children: [
|
|
11740
11740
|
/* @__PURE__ */ B("div", { children: [
|
|
11741
11741
|
/* @__PURE__ */ f("span", { className: "font-medium", children: t }),
|
|
11742
11742
|
n && /* @__PURE__ */ f("span", { className: "ml-1.5 text-muted-foreground", children: n })
|
|
@@ -12401,7 +12401,7 @@ const u6 = {
|
|
|
12401
12401
|
function m6(e, t) {
|
|
12402
12402
|
return Mr[e][t] ?? Mr.zh[t];
|
|
12403
12403
|
}
|
|
12404
|
-
function
|
|
12404
|
+
function jt() {
|
|
12405
12405
|
const e = ln((t) => t.locale);
|
|
12406
12406
|
return (t, n) => m6(e, t) ?? n ?? t;
|
|
12407
12407
|
}
|
|
@@ -12485,7 +12485,7 @@ function b6() {
|
|
|
12485
12485
|
);
|
|
12486
12486
|
}
|
|
12487
12487
|
function w6({ sheet: e }) {
|
|
12488
|
-
const t = de(), n =
|
|
12488
|
+
const t = de(), n = jt(), [o, r] = we(""), [i, s] = we(
|
|
12489
12489
|
() => g6()
|
|
12490
12490
|
), a = Fr(() => {
|
|
12491
12491
|
const d = o.trim().toLowerCase();
|
|
@@ -12571,7 +12571,7 @@ function v6({
|
|
|
12571
12571
|
entry: e,
|
|
12572
12572
|
sheet: t
|
|
12573
12573
|
}) {
|
|
12574
|
-
const n = de(), o =
|
|
12574
|
+
const n = de(), o = jt(), r = o(`${e.id}.name`, e.name), i = o(`${e.id}.desc`, e.description ?? ""), s = b((d) => d.setActiveTool), a = b(
|
|
12575
12575
|
(d) => d.activeTool === "place" && d.placeKind === e.id
|
|
12576
12576
|
), l = b(
|
|
12577
12577
|
(d) => t && d.activeTool === "place" && d.placeKind == null && d.lastPlaceKind === e.id
|
|
@@ -12770,7 +12770,7 @@ function S6() {
|
|
|
12770
12770
|
onCommit: (m) => b.getState().updateElement(a, { note: m.trim() === "" ? void 0 : m.trim() })
|
|
12771
12771
|
}
|
|
12772
12772
|
),
|
|
12773
|
-
(d == null ? void 0 : d.state) && d.state.length > 0 && /* @__PURE__ */ f("div", { className: "mt-1 flex flex-col gap-1.5 border-t border-border/40 pt-2.5", children: d.state.map((m) => /* @__PURE__ */ f(
|
|
12773
|
+
(d == null ? void 0 : d.state) && d.state.length > 0 && /* @__PURE__ */ f("div", { className: "mt-1 flex flex-col gap-1.5 border-t border-border/40 pt-2.5", children: d.state.map((m) => /* @__PURE__ */ f(j6, { id: a, element: u, field: m }, m.name)) }),
|
|
12774
12774
|
/* @__PURE__ */ f(
|
|
12775
12775
|
N6,
|
|
12776
12776
|
{
|
|
@@ -12815,7 +12815,7 @@ function E6({
|
|
|
12815
12815
|
field: n
|
|
12816
12816
|
}) {
|
|
12817
12817
|
var l;
|
|
12818
|
-
const o = de(), r =
|
|
12818
|
+
const o = de(), r = jt(), i = ((l = t.params) == null ? void 0 : l[n.name]) ?? n.default, s = r(`${t.kind}.param.${n.name}`, n.label ?? n.name), a = (c) => {
|
|
12819
12819
|
const u = { ...t.params ?? {} };
|
|
12820
12820
|
c === void 0 || c === n.default ? delete u[n.name] : u[n.name] = c, b.getState().updateElement(e, {
|
|
12821
12821
|
params: Object.keys(u).length > 0 ? u : void 0
|
|
@@ -13144,13 +13144,13 @@ function lo({
|
|
|
13144
13144
|
}
|
|
13145
13145
|
);
|
|
13146
13146
|
}
|
|
13147
|
-
function
|
|
13147
|
+
function j6({
|
|
13148
13148
|
id: e,
|
|
13149
13149
|
element: t,
|
|
13150
13150
|
field: n
|
|
13151
13151
|
}) {
|
|
13152
13152
|
var l;
|
|
13153
|
-
const o = de(), i =
|
|
13153
|
+
const o = de(), i = jt()(`${t.kind}.state.${n.name}`, n.label ?? n.name), s = ((l = t.state) == null ? void 0 : l[n.name]) ?? n.default, a = (c) => {
|
|
13154
13154
|
const u = { ...t.state ?? {} };
|
|
13155
13155
|
c === void 0 || c === n.default ? delete u[n.name] : u[n.name] = c, b.getState().updateElement(e, {
|
|
13156
13156
|
state: Object.keys(u).length > 0 ? u : void 0
|
|
@@ -13172,8 +13172,8 @@ function O6({
|
|
|
13172
13172
|
}
|
|
13173
13173
|
);
|
|
13174
13174
|
}
|
|
13175
|
-
function
|
|
13176
|
-
const e = de(), t =
|
|
13175
|
+
function O6() {
|
|
13176
|
+
const e = de(), t = jt(), n = b((d) => d.selection), o = b((d) => d.selectedNode), r = b((d) => d.selectedWire), i = b((d) => d.diagram.elements), s = b((d) => d.diagram.buses), a = Je(), l = Le(a, "dense");
|
|
13177
13177
|
if (n.length === 0 && !o && !r) return null;
|
|
13178
13178
|
let c = e("props.title"), u = null;
|
|
13179
13179
|
if (r)
|
|
@@ -13245,7 +13245,7 @@ function L6() {
|
|
|
13245
13245
|
children: /* @__PURE__ */ B(T4, { width: t, children: [
|
|
13246
13246
|
/* @__PURE__ */ f(w4, {}),
|
|
13247
13247
|
/* @__PURE__ */ f(a6, {}),
|
|
13248
|
-
/* @__PURE__ */ f(
|
|
13248
|
+
/* @__PURE__ */ f(O6, {}),
|
|
13249
13249
|
/* @__PURE__ */ f(o6, {}),
|
|
13250
13250
|
/* @__PURE__ */ f(e6, {}),
|
|
13251
13251
|
/* @__PURE__ */ f(q4, {}),
|
|
@@ -13390,7 +13390,7 @@ function v5() {
|
|
|
13390
13390
|
};
|
|
13391
13391
|
return /* @__PURE__ */ B("div", { ref: c, className: "relative", children: [
|
|
13392
13392
|
/* @__PURE__ */ B(
|
|
13393
|
-
|
|
13393
|
+
je,
|
|
13394
13394
|
{
|
|
13395
13395
|
variant: "ghost",
|
|
13396
13396
|
size: "sm",
|
|
@@ -13469,14 +13469,14 @@ function q6() {
|
|
|
13469
13469
|
}
|
|
13470
13470
|
} };
|
|
13471
13471
|
}
|
|
13472
|
-
const Ln = "WIRES", We = "ELEMENTS", Pr = "LABELS",
|
|
13472
|
+
const Ln = "WIRES", We = "ELEMENTS", Pr = "LABELS", jr = "ANNOTATIONS", Or = 32, Br = 64, G6 = 8, X6 = 1.25, Y6 = 6;
|
|
13473
13473
|
function K6(e, t = {}) {
|
|
13474
13474
|
const n = new l5(t.precision ?? 6);
|
|
13475
13475
|
n.header(t.title), n.tables([
|
|
13476
13476
|
{ name: Ln, color: 7 },
|
|
13477
13477
|
{ name: We, color: 7 },
|
|
13478
13478
|
{ name: Pr, color: 8 },
|
|
13479
|
-
{ name:
|
|
13479
|
+
{ name: jr, color: 3 }
|
|
13480
13480
|
]), n.beginEntities();
|
|
13481
13481
|
for (const r of e.wireRenders.values())
|
|
13482
13482
|
r.path.length < 2 || n.lwpolyline(Ln, r.path.map(Be), !1);
|
|
@@ -13510,7 +13510,7 @@ function K6(e, t = {}) {
|
|
|
13510
13510
|
r.at[0],
|
|
13511
13511
|
r.at[1] + (a + 1) * i * X6
|
|
13512
13512
|
]);
|
|
13513
|
-
n.text(
|
|
13513
|
+
n.text(jr, [l, c], s[a], i, 0, !1);
|
|
13514
13514
|
}
|
|
13515
13515
|
}
|
|
13516
13516
|
return n.endEntities(), n.toString();
|
|
@@ -13629,8 +13629,8 @@ function r5(e, t, n) {
|
|
|
13629
13629
|
m !== 0
|
|
13630
13630
|
);
|
|
13631
13631
|
if (g)
|
|
13632
|
-
for (let w = 1; w <=
|
|
13633
|
-
const $ = g.theta1 + g.delta * w /
|
|
13632
|
+
for (let w = 1; w <= Or; w++) {
|
|
13633
|
+
const $ = g.theta1 + g.delta * w / Or;
|
|
13634
13634
|
s.push([
|
|
13635
13635
|
g.cx + c * Math.cos($),
|
|
13636
13636
|
g.cy + u * Math.sin($)
|
|
@@ -13947,7 +13947,7 @@ function k5() {
|
|
|
13947
13947
|
};
|
|
13948
13948
|
return /* @__PURE__ */ B("div", { ref: o, className: "relative", children: [
|
|
13949
13949
|
/* @__PURE__ */ B(
|
|
13950
|
-
|
|
13950
|
+
je,
|
|
13951
13951
|
{
|
|
13952
13952
|
variant: "ghost",
|
|
13953
13953
|
size: "sm",
|