schematic-symbols 0.0.7 → 0.0.9

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.
Files changed (42) hide show
  1. package/dist/index.cjs +1697 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +79 -0
  4. package/package.json +9 -2
  5. package/symbols/diode_horz.ts +18 -0
  6. package/symbols/diode_vert.ts +4 -0
  7. package/symbols/index.ts +4 -0
  8. package/.github/CODEOWNERS +0 -1
  9. package/.github/workflows/bun-formatcheck.yml +0 -26
  10. package/.github/workflows/bun-pver-release.yml +0 -27
  11. package/.github/workflows/bun-typecheck.yml +0 -26
  12. package/.github/workflows/formatbot.yml +0 -49
  13. package/assets/symbols-svg-json/boxresistor.json +0 -90
  14. package/assets/symbols-svg-json/capacitor.json +0 -76
  15. package/assets/symbols-svg-json/capacitor_polarized.json +0 -83
  16. package/assets/symbols-svg-json/diode.json +0 -91
  17. package/assets/symbols-svg-json/diode_bipolar_zener.json +0 -166
  18. package/assets/symbols-svg-json/diode_schottky.json +0 -76
  19. package/assets/symbols-svg-json/diode_zener.json +0 -31
  20. package/assets/symbols-svg-json/fuse.json +0 -84
  21. package/assets/symbols-svg-json/led.json +0 -205
  22. package/assets/symbols-svg-json/mosfet_depletion_normally_on.json +0 -267
  23. package/assets/symbols-svg-json/potentiometer.json +0 -137
  24. package/assets/symbols-svg-json/potentiometer2.json +0 -160
  25. package/assets/symbols-svg-json/testshape.json +0 -35
  26. package/assets/symbols-svg-json/varistor.json +0 -129
  27. package/assets/symbols.svg +0 -965
  28. package/biome.json +0 -44
  29. package/bun.lockb +0 -0
  30. package/dev-server.ts +0 -22
  31. package/scripts/build.ts +0 -18
  32. package/scripts/convertToObjectWithOrderedPositionIds.ts +0 -52
  33. package/scripts/generate-symbols-from-asset-svgs.ts +0 -146
  34. package/scripts/lib/applyGroupTransformsToChildren.ts +0 -119
  35. package/scripts/lib/findInnerText.ts +0 -11
  36. package/scripts/lib/generate-web-page.ts +0 -60
  37. package/scripts/lib/getTsFileContentForSvgGroup.ts +0 -33
  38. package/scripts/lib/serializeSvgPathCommands.ts +0 -48
  39. package/tests/assets/boxresistor-untransformed.json +0 -187
  40. package/tests/assets/testshape-untransformed.json +0 -25
  41. package/tests/normalize-svg.test.ts +0 -29
  42. package/tsconfig.json +0 -28
@@ -1,205 +0,0 @@
1
- {
2
- "paths": {
3
- "path45": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": 0.13229164999999998,
8
- "y": 0.09743664999999524
9
- },
10
- {
11
- "x": -0.13229164999999998,
12
- "y": 0.22972834999999847
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path46": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": -0.13229164999999998,
23
- "y": -0.03485505000000444
24
- },
25
- {
26
- "x": 0.13229164999999998,
27
- "y": 0.09743664999999524
28
- }
29
- ],
30
- "color": "primary",
31
- "fill": false
32
- },
33
- "path47": {
34
- "type": "path",
35
- "points": [
36
- {
37
- "x": -0.13229164999999998,
38
- "y": 0.22972834999999847
39
- },
40
- {
41
- "x": -0.13229164999999998,
42
- "y": -0.03485505000000444
43
- }
44
- ],
45
- "color": "primary",
46
- "fill": false
47
- },
48
- "path48": {
49
- "type": "path",
50
- "points": [
51
- {
52
- "x": 0.13229164999999998,
53
- "y": -0.03485505000000444
54
- },
55
- {
56
- "x": 0.13229164999999998,
57
- "y": 0.22972834999999847
58
- }
59
- ],
60
- "color": "primary",
61
- "fill": false
62
- },
63
- "path49": {
64
- "type": "path",
65
- "points": [
66
- {
67
- "x": 0.5291666500000001,
68
- "y": 0.09743664999999524
69
- },
70
- {
71
- "x": -0.5291666500000001,
72
- "y": 0.09743664999999524
73
- }
74
- ],
75
- "color": "primary",
76
- "fill": false
77
- },
78
- "path25": {
79
- "type": "path",
80
- "points": [
81
- {
82
- "x": -0.15930975000000025,
83
- "y": -0.19171255000000187
84
- },
85
- {
86
- "x": -0.25665205,
87
- "y": -0.20859175000000363
88
- },
89
- {
90
- "x": -0.22234925000000016,
91
- "y": -0.11582895000000448
92
- },
93
- {
94
- "x": -0.15930975000000025,
95
- "y": -0.19171255000000187
96
- }
97
- ],
98
- "color": "primary",
99
- "fill": true
100
- },
101
- "path78": {
102
- "type": "path",
103
- "points": [
104
- {
105
- "x": -0.08357035000000002,
106
- "y": -0.07216775000000197
107
- },
108
- {
109
- "x": -0.09559384999999976,
110
- "y": -0.0811007500000045
111
- },
112
- {
113
- "x": -0.21735035000000025,
114
- "y": -0.17155655000000536
115
- },
116
- {
117
- "x": -0.21798034999999993,
118
- "y": -0.17250655000000492
119
- }
120
- ],
121
- "color": "primary",
122
- "fill": false
123
- },
124
- "path25-0": {
125
- "type": "path",
126
- "points": [
127
- {
128
- "x": 0.01815655000000005,
129
- "y": -0.21284915000000026
130
- },
131
- {
132
- "x": -0.07918575000000017,
133
- "y": -0.22972835000000202
134
- },
135
- {
136
- "x": -0.044882949999999866,
137
- "y": -0.13696555000000288
138
- },
139
- {
140
- "x": 0.01815655000000005,
141
- "y": -0.21284915000000026
142
- }
143
- ],
144
- "color": "primary",
145
- "fill": true
146
- },
147
- "path78-6": {
148
- "type": "path",
149
- "points": [
150
- {
151
- "x": 0.09389595000000028,
152
- "y": -0.09330435000000037
153
- },
154
- {
155
- "x": 0.0818724500000001,
156
- "y": -0.10223735000000289
157
- },
158
- {
159
- "x": -0.03988404999999995,
160
- "y": -0.19269315000000375
161
- },
162
- {
163
- "x": -0.04051405000000008,
164
- "y": -0.19364315000000332
165
- }
166
- ],
167
- "color": "primary",
168
- "fill": false
169
- }
170
- },
171
- "texts": {
172
- "bottom1": {
173
- "type": "text",
174
- "text": "{VAL}",
175
- "x": -0.013127550000000099,
176
- "y": 0.4172088499999944
177
- },
178
- "right1": {
179
- "type": "text",
180
- "text": "{REF}",
181
- "x": 0.3110748499999998,
182
- "y": -0.13012545000000486
183
- }
184
- },
185
- "refblocks": {
186
- "left1": {
187
- "x": -0.5397751500000003,
188
- "y": 0.09817314999999738
189
- },
190
- "right1": {
191
- "x": 0.5326434499999997,
192
- "y": 0.09862664999999993
193
- }
194
- },
195
- "bounds": {
196
- "minX": -0.5291666500000001,
197
- "maxX": 0.5291666500000001,
198
- "minY": -0.22972835000000202,
199
- "maxY": 0.22972834999999847,
200
- "width": 1.0583333000000001,
201
- "height": 0.4594567000000005,
202
- "centerX": 0,
203
- "centerY": -1.7763568394002505e-15
204
- }
205
- }
@@ -1,267 +0,0 @@
1
- {
2
- "paths": {
3
- "path208": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": 0.39687494999999995,
8
- "y": -0.13228999999999935
9
- },
10
- {
11
- "x": 0.5291666500000005,
12
- "y": 0.13229300000000066
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path209": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": 0.26458325000000027,
23
- "y": 0.13229300000000066
24
- },
25
- {
26
- "x": 0.39687494999999995,
27
- "y": -0.13228999999999935
28
- }
29
- ],
30
- "color": "primary",
31
- "fill": false
32
- },
33
- "path210": {
34
- "type": "path",
35
- "points": [
36
- {
37
- "x": 0.5291666500000005,
38
- "y": 0.13229300000000066
39
- },
40
- {
41
- "x": 0.26458325000000027,
42
- "y": 0.13229300000000066
43
- }
44
- ],
45
- "color": "primary",
46
- "fill": false
47
- },
48
- "path211": {
49
- "type": "path",
50
- "points": [
51
- {
52
- "x": 0.26458325000000027,
53
- "y": -0.13228999999999935
54
- },
55
- {
56
- "x": 0.5291666500000005,
57
- "y": -0.13228999999999935
58
- }
59
- ],
60
- "color": "primary",
61
- "fill": false
62
- },
63
- "path212": {
64
- "type": "path",
65
- "points": [
66
- {
67
- "x": 0.13229165000000087,
68
- "y": 0.39687499999999964
69
- },
70
- {
71
- "x": 0.39687494999999995,
72
- "y": 0.39687499999999964
73
- }
74
- ],
75
- "color": "primary",
76
- "fill": false
77
- },
78
- "path213": {
79
- "type": "path",
80
- "points": [
81
- {
82
- "x": 0.39687494999999995,
83
- "y": -0.3968740000000004
84
- },
85
- {
86
- "x": 0.13229165000000087,
87
- "y": -0.3968740000000004
88
- }
89
- ],
90
- "color": "primary",
91
- "fill": false
92
- },
93
- "path214": {
94
- "type": "path",
95
- "points": [
96
- {
97
- "x": 0.13229165000000087,
98
- "y": -0.529166
99
- },
100
- {
101
- "x": 0.13229165000000087,
102
- "y": -0.1852090000000004
103
- }
104
- ],
105
- "color": "primary",
106
- "fill": false
107
- },
108
- "path215": {
109
- "type": "path",
110
- "points": [
111
- {
112
- "x": 0.13229165000000087,
113
- "y": 0.529166
114
- },
115
- {
116
- "x": 0.13229165000000087,
117
- "y": -9.999999992515995e-7
118
- }
119
- ],
120
- "color": "primary",
121
- "fill": false
122
- },
123
- "path216": {
124
- "type": "path",
125
- "points": [
126
- {
127
- "x": 0.39687494999999995,
128
- "y": 0.39687563000000026
129
- },
130
- {
131
- "x": 0.39687494999999995,
132
- "y": -0.3968746999999997
133
- }
134
- ],
135
- "color": "primary",
136
- "fill": false
137
- },
138
- "path217": {
139
- "type": "path",
140
- "points": [
141
- {
142
- "x": -0.13229164999999998,
143
- "y": -0.2645850000000003
144
- },
145
- {
146
- "x": -0.13229164999999998,
147
- "y": 0.26458099999999973
148
- }
149
- ],
150
- "color": "primary",
151
- "fill": false
152
- },
153
- "path218": {
154
- "type": "path",
155
- "points": [
156
- {
157
- "x": -0.21166664999999885,
158
- "y": 0.264581999999999
159
- },
160
- {
161
- "x": -0.21166664999999885,
162
- "y": -0.26458399999999926
163
- }
164
- ],
165
- "color": "primary",
166
- "fill": false
167
- },
168
- "path219": {
169
- "type": "path",
170
- "points": [
171
- {
172
- "x": -0.5291666499999996,
173
- "y": 0.26458099999999973
174
- },
175
- {
176
- "x": -0.21166664999999885,
177
- "y": 0.264583
178
- }
179
- ],
180
- "color": "primary",
181
- "fill": false
182
- },
183
- "path220": {
184
- "type": "path",
185
- "points": [
186
- {
187
- "x": -0.13229164999999998,
188
- "y": 0.18520600000000087
189
- },
190
- {
191
- "x": 0.13229175000000026,
192
- "y": 0.18520600000000087
193
- }
194
- ],
195
- "color": "primary",
196
- "fill": false
197
- },
198
- "path221": {
199
- "type": "path",
200
- "points": [
201
- {
202
- "x": -0.13229164999999998,
203
- "y": -0.18520999999999965
204
- },
205
- {
206
- "x": 0.13229175000000026,
207
- "y": -0.18520999999999965
208
- }
209
- ],
210
- "color": "primary",
211
- "fill": false
212
- },
213
- "path222": {
214
- "type": "path",
215
- "points": [
216
- {
217
- "x": -0.05291665000000023,
218
- "y": -9.999999992515995e-7
219
- },
220
- {
221
- "x": 0.13229165000000087,
222
- "y": -9.999999992515995e-7
223
- }
224
- ],
225
- "color": "primary",
226
- "fill": false
227
- }
228
- },
229
- "texts": {
230
- "right1": {
231
- "type": "text",
232
- "text": "{REF}",
233
- "x": 0.5827374500000007,
234
- "y": -0.20929270999999972
235
- },
236
- "right2": {
237
- "type": "text",
238
- "text": "{VAL}",
239
- "x": 0.58412285,
240
- "y": -0.021192649999999702
241
- }
242
- },
243
- "refblocks": {
244
- "top1": {
245
- "x": 0.13275345000000005,
246
- "y": -0.5440228900000008
247
- },
248
- "bottom1": {
249
- "x": 0.13239525000000096,
250
- "y": 0.54252477
251
- },
252
- "left1": {
253
- "x": -0.5308188500000002,
254
- "y": 0.26564980000000027
255
- }
256
- },
257
- "bounds": {
258
- "minX": -0.5291666499999996,
259
- "maxX": 0.5291666500000005,
260
- "minY": -0.529166,
261
- "maxY": 0.529166,
262
- "width": 1.0583333000000001,
263
- "height": 1.058332,
264
- "centerX": 4.440892098500626e-16,
265
- "centerY": 0
266
- }
267
- }
@@ -1,137 +0,0 @@
1
- {
2
- "paths": {
3
- "path11": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": -0.5291669499999998,
8
- "y": 0.1434596500000005
9
- },
10
- {
11
- "x": -0.26458365000000006,
12
- "y": 0.1434596500000005
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path12": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": 0.26458334999999966,
23
- "y": 0.1434596500000005
24
- },
25
- {
26
- "x": 0.52916695,
27
- "y": 0.1434596500000005
28
- }
29
- ],
30
- "color": "primary",
31
- "fill": false
32
- },
33
- "path13": {
34
- "type": "path",
35
- "points": [
36
- {
37
- "x": 0.0000012499999999526779,
38
- "y": 0.011167849999999646
39
- },
40
- {
41
- "x": 0.26458424999999997,
42
- "y": 0.011167849999999646
43
- },
44
- {
45
- "x": 0.26458424999999997,
46
- "y": 0.2757512500000008
47
- },
48
- {
49
- "x": -0.26458274999999976,
50
- "y": 0.2757512500000008
51
- },
52
- {
53
- "x": -0.26458274999999976,
54
- "y": 0.011167849999999646
55
- },
56
- {
57
- "x": 0.0000012500000012849455,
58
- "y": 0.011167849999999646
59
- }
60
- ],
61
- "color": "primary",
62
- "fill": false
63
- },
64
- "path15": {
65
- "type": "path",
66
- "points": [
67
- {
68
- "x": 0.06517084999999989,
69
- "y": -0.10588935
70
- },
71
- {
72
- "x": -0.06529785000000032,
73
- "y": -0.10588935
74
- },
75
- {
76
- "x": -0.00006345000000029799,
77
- "y": 0.00700125000000007
78
- },
79
- {
80
- "x": 0.06517084999999989,
81
- "y": -0.10588935
82
- }
83
- ],
84
- "color": "primary",
85
- "fill": true
86
- },
87
- "path17": {
88
- "type": "path",
89
- "points": [
90
- {
91
- "x": 0.00025875000000041837,
92
- "y": -0.2757512500000008
93
- },
94
- {
95
- "x": 0.00025875000000041837,
96
- "y": -0.060545249999998774
97
- }
98
- ],
99
- "color": "primary",
100
- "fill": false
101
- }
102
- },
103
- "texts": {
104
- "bottom1": {
105
- "type": "text",
106
- "text": "{VAL}",
107
- "x": -0.007583050000000924,
108
- "y": 0.4315381500000015
109
- },
110
- "right1": {
111
- "type": "text",
112
- "text": "{REF}",
113
- "x": 0.12478014999999942,
114
- "y": -0.09260654999999929
115
- }
116
- },
117
- "refblocks": {
118
- "left1": {
119
- "x": -0.5449899500000002,
120
- "y": 0.14431244999999926
121
- },
122
- "right1": {
123
- "x": 0.5378069499999998,
124
- "y": 0.14331605000000103
125
- }
126
- },
127
- "bounds": {
128
- "minX": -0.5291669499999998,
129
- "maxX": 0.52916695,
130
- "minY": -0.2757512500000008,
131
- "maxY": 0.2757512500000008,
132
- "width": 1.0583338999999998,
133
- "height": 0.5515025000000016,
134
- "centerX": 1.1102230246251565e-16,
135
- "centerY": 0
136
- }
137
- }