schematic-symbols 0.0.6 → 0.0.8

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 (39) hide show
  1. package/dist/index.cjs +1529 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +77 -0
  4. package/package.json +8 -1
  5. package/.github/CODEOWNERS +0 -1
  6. package/.github/workflows/bun-formatcheck.yml +0 -26
  7. package/.github/workflows/bun-pver-release.yml +0 -27
  8. package/.github/workflows/bun-typecheck.yml +0 -26
  9. package/.github/workflows/formatbot.yml +0 -49
  10. package/assets/symbols-svg-json/boxresistor.json +0 -90
  11. package/assets/symbols-svg-json/capacitor.json +0 -76
  12. package/assets/symbols-svg-json/capacitor_polarized.json +0 -83
  13. package/assets/symbols-svg-json/diode.json +0 -91
  14. package/assets/symbols-svg-json/diode_bipolar_zener.json +0 -166
  15. package/assets/symbols-svg-json/diode_schottky.json +0 -76
  16. package/assets/symbols-svg-json/diode_zener.json +0 -31
  17. package/assets/symbols-svg-json/fuse.json +0 -84
  18. package/assets/symbols-svg-json/led.json +0 -205
  19. package/assets/symbols-svg-json/mosfet_depletion_normally_on.json +0 -267
  20. package/assets/symbols-svg-json/potentiometer.json +0 -137
  21. package/assets/symbols-svg-json/potentiometer2.json +0 -160
  22. package/assets/symbols-svg-json/testshape.json +0 -35
  23. package/assets/symbols-svg-json/varistor.json +0 -129
  24. package/assets/symbols.svg +0 -965
  25. package/biome.json +0 -44
  26. package/bun.lockb +0 -0
  27. package/dev-server.ts +0 -22
  28. package/scripts/build.ts +0 -18
  29. package/scripts/convertToObjectWithOrderedPositionIds.ts +0 -52
  30. package/scripts/generate-symbols-from-asset-svgs.ts +0 -146
  31. package/scripts/lib/applyGroupTransformsToChildren.ts +0 -119
  32. package/scripts/lib/findInnerText.ts +0 -11
  33. package/scripts/lib/generate-web-page.ts +0 -60
  34. package/scripts/lib/getTsFileContentForSvgGroup.ts +0 -33
  35. package/scripts/lib/serializeSvgPathCommands.ts +0 -48
  36. package/tests/assets/boxresistor-untransformed.json +0 -187
  37. package/tests/assets/testshape-untransformed.json +0 -25
  38. package/tests/normalize-svg.test.ts +0 -29
  39. package/tsconfig.json +0 -28
@@ -1,76 +0,0 @@
1
- {
2
- "paths": {
3
- "path27": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": 0.5291666500000001,
8
- "y": 0
9
- },
10
- {
11
- "x": 0.07937504999999989,
12
- "y": 0
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path28": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": -0.07937494999999961,
23
- "y": 0
24
- },
25
- {
26
- "x": -0.5291666500000001,
27
- "y": 0
28
- }
29
- ],
30
- "color": "primary",
31
- "fill": false
32
- },
33
- "path29": {
34
- "type": "path",
35
- "points": [
36
- {
37
- "x": 0.07937504999999989,
38
- "y": -0.26458330000000174
39
- },
40
- {
41
- "x": 0.07937504999999989,
42
- "y": 0.2645832999999982
43
- }
44
- ],
45
- "color": "primary",
46
- "fill": false
47
- },
48
- "path30": {
49
- "type": "path",
50
- "points": [
51
- {
52
- "x": -0.07937495000000006,
53
- "y": -0.26458330000000174
54
- },
55
- {
56
- "x": -0.07937494999999961,
57
- "y": 0.2645832999999982
58
- }
59
- ],
60
- "color": "primary",
61
- "fill": false
62
- }
63
- },
64
- "texts": {},
65
- "refblocks": {},
66
- "bounds": {
67
- "minX": -0.5291666500000001,
68
- "maxX": 0.5291666500000001,
69
- "minY": -0.26458330000000174,
70
- "maxY": 0.2645832999999982,
71
- "width": 1.0583333000000001,
72
- "height": 0.5291665999999999,
73
- "centerX": 0,
74
- "centerY": -1.7763568394002505e-15
75
- }
76
- }
@@ -1,83 +0,0 @@
1
- {
2
- "paths": {
3
- "path31": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": 0.5291666499999996,
8
- "y": 0
9
- },
10
- {
11
- "x": 0.07937484999999933,
12
- "y": 0
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path32": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": -0.07937515000000017,
23
- "y": 0
24
- },
25
- {
26
- "x": -0.5291666500000001,
27
- "y": 0
28
- }
29
- ],
30
- "color": "primary",
31
- "fill": false
32
- },
33
- "path33": {
34
- "type": "path",
35
- "points": [
36
- {
37
- "x": 0.07937504999999989,
38
- "y": -0.2645832999999982
39
- },
40
- {
41
- "x": 0.07937504999999989,
42
- "y": 0.26458329999999997
43
- }
44
- ],
45
- "color": "primary",
46
- "fill": false
47
- },
48
- "path34": {
49
- "type": "path",
50
- "points": [
51
- {
52
- "x": -0.07937495000000006,
53
- "y": -0.2645832999999982
54
- },
55
- {
56
- "x": -0.07937495000000006,
57
- "y": 0.26458329999999997
58
- }
59
- ],
60
- "color": "primary",
61
- "fill": false
62
- }
63
- },
64
- "texts": {
65
- "top1": {
66
- "type": "text",
67
- "text": "+",
68
- "x": 0.13859564999999963,
69
- "y": -0.3182225999999986
70
- }
71
- },
72
- "refblocks": {},
73
- "bounds": {
74
- "minX": -0.5291666500000001,
75
- "maxX": 0.5291666499999996,
76
- "minY": -0.2645832999999982,
77
- "maxY": 0.26458329999999997,
78
- "width": 1.0583332999999997,
79
- "height": 0.5291665999999982,
80
- "centerX": -2.220446049250313e-16,
81
- "centerY": 8.881784197001252e-16
82
- }
83
- }
@@ -1,91 +0,0 @@
1
- {
2
- "paths": {
3
- "path40": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": 0.13229164999999998,
8
- "y": 0
9
- },
10
- {
11
- "x": -0.13229164999999954,
12
- "y": 0.13229169999999968
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path41": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": -0.13229164999999954,
23
- "y": -0.13229170000000323
24
- },
25
- {
26
- "x": 0.13229164999999998,
27
- "y": 0
28
- }
29
- ],
30
- "color": "primary",
31
- "fill": false
32
- },
33
- "path42": {
34
- "type": "path",
35
- "points": [
36
- {
37
- "x": -0.13229164999999954,
38
- "y": 0.13229169999999613
39
- },
40
- {
41
- "x": -0.13229164999999954,
42
- "y": -0.13229170000000323
43
- }
44
- ],
45
- "color": "primary",
46
- "fill": false
47
- },
48
- "path43": {
49
- "type": "path",
50
- "points": [
51
- {
52
- "x": 0.13229164999999998,
53
- "y": -0.13229170000000323
54
- },
55
- {
56
- "x": 0.13229164999999998,
57
- "y": 0.13229169999999613
58
- }
59
- ],
60
- "color": "primary",
61
- "fill": false
62
- },
63
- "path44": {
64
- "type": "path",
65
- "points": [
66
- {
67
- "x": 0.5291666500000001,
68
- "y": 0
69
- },
70
- {
71
- "x": -0.5291666499999996,
72
- "y": 0
73
- }
74
- ],
75
- "color": "primary",
76
- "fill": false
77
- }
78
- },
79
- "texts": {},
80
- "refblocks": {},
81
- "bounds": {
82
- "minX": -0.5291666499999996,
83
- "maxX": 0.5291666500000001,
84
- "minY": -0.13229170000000323,
85
- "maxY": 0.13229169999999968,
86
- "width": 1.0583332999999997,
87
- "height": 0.2645834000000029,
88
- "centerX": 2.220446049250313e-16,
89
- "centerY": -1.7763568394002505e-15
90
- }
91
- }
@@ -1,166 +0,0 @@
1
- {
2
- "paths": {
3
- "path67": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": 5.000000058430487e-8,
8
- "y": 3.552713678800501e-15
9
- },
10
- {
11
- "x": -0.2645832499999994,
12
- "y": 0.13229200000000318
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path68": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": -0.2645832499999994,
23
- "y": -0.13229199999999608
24
- },
25
- {
26
- "x": 5.000000058430487e-8,
27
- "y": 0
28
- }
29
- ],
30
- "color": "primary",
31
- "fill": false
32
- },
33
- "path69": {
34
- "type": "path",
35
- "points": [
36
- {
37
- "x": -0.2645832499999994,
38
- "y": 0.13229200000000318
39
- },
40
- {
41
- "x": -0.2645832499999994,
42
- "y": -0.13229199999999608
43
- }
44
- ],
45
- "color": "primary",
46
- "fill": false
47
- },
48
- "path70": {
49
- "type": "path",
50
- "points": [
51
- {
52
- "x": 5.000000058430487e-8,
53
- "y": -0.13229199999999608
54
- },
55
- {
56
- "x": 5.000000058430487e-8,
57
- "y": 0.13229200000000318
58
- }
59
- ],
60
- "color": "primary",
61
- "fill": false
62
- },
63
- "path71": {
64
- "type": "path",
65
- "points": [
66
- {
67
- "x": 0.5291666499999996,
68
- "y": -9.999999974752427e-7
69
- },
70
- {
71
- "x": -0.5291666500000001,
72
- "y": -9.999999974752427e-7
73
- }
74
- ],
75
- "color": "primary",
76
- "fill": false
77
- },
78
- "path72": {
79
- "type": "path",
80
- "points": [
81
- {
82
- "x": 4.499999994855841e-7,
83
- "y": 0.13229200000000318
84
- },
85
- {
86
- "x": -0.07937455000000071,
87
- "y": 0.13229200000000318
88
- }
89
- ],
90
- "color": "primary",
91
- "fill": false
92
- },
93
- "path73": {
94
- "type": "path",
95
- "points": [
96
- {
97
- "x": 4.499999994855841e-7,
98
- "y": -0.1322909999999986
99
- },
100
- {
101
- "x": 0.07937544999999968,
102
- "y": -0.1322909999999986
103
- }
104
- ],
105
- "color": "primary",
106
- "fill": false
107
- },
108
- "path74": {
109
- "type": "path",
110
- "points": [
111
- {
112
- "x": 3.49999999649242e-7,
113
- "y": 3.552713678800501e-15
114
- },
115
- {
116
- "x": 0.2645833500000001,
117
- "y": -0.13229199999999608
118
- }
119
- ],
120
- "color": "primary",
121
- "fill": false
122
- },
123
- "path75": {
124
- "type": "path",
125
- "points": [
126
- {
127
- "x": 0.2645833500000001,
128
- "y": 0.13229200000000318
129
- },
130
- {
131
- "x": 3.49999999649242e-7,
132
- "y": 3.552713678800501e-15
133
- }
134
- ],
135
- "color": "primary",
136
- "fill": false
137
- },
138
- "path76": {
139
- "type": "path",
140
- "points": [
141
- {
142
- "x": 0.2645833500000001,
143
- "y": -0.13229199999999608
144
- },
145
- {
146
- "x": 0.2645833500000001,
147
- "y": 0.13229200000000318
148
- }
149
- ],
150
- "color": "primary",
151
- "fill": false
152
- }
153
- },
154
- "texts": {},
155
- "refblocks": {},
156
- "bounds": {
157
- "minX": -0.5291666500000001,
158
- "maxX": 0.5291666499999996,
159
- "minY": -0.13229199999999608,
160
- "maxY": 0.13229200000000318,
161
- "width": 1.0583332999999997,
162
- "height": 0.26458399999999926,
163
- "centerX": -2.220446049250313e-16,
164
- "centerY": 3.552713678800501e-15
165
- }
166
- }
@@ -1,76 +0,0 @@
1
- {
2
- "paths": {
3
- "path63": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": -5.000000014021566e-8,
8
- "y": -0.13229199999999963
9
- },
10
- {
11
- "x": 0.05291665000000023,
12
- "y": -0.13229199999999963
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path64": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": 0.05291665000000023,
23
- "y": -0.07937499999999886
24
- },
25
- {
26
- "x": 0.05291665000000023,
27
- "y": -0.13229199999999963
28
- }
29
- ],
30
- "color": "primary",
31
- "fill": false
32
- },
33
- "path65": {
34
- "type": "path",
35
- "points": [
36
- {
37
- "x": -5.000000014021566e-8,
38
- "y": 0.13229199999999963
39
- },
40
- {
41
- "x": -0.05291665000000023,
42
- "y": 0.13229199999999963
43
- }
44
- ],
45
- "color": "primary",
46
- "fill": false
47
- },
48
- "path66": {
49
- "type": "path",
50
- "points": [
51
- {
52
- "x": -0.05291665000000023,
53
- "y": 0.07937499999999886
54
- },
55
- {
56
- "x": -0.05291665000000023,
57
- "y": 0.13229199999999963
58
- }
59
- ],
60
- "color": "primary",
61
- "fill": false
62
- }
63
- },
64
- "texts": {},
65
- "refblocks": {},
66
- "bounds": {
67
- "minX": -0.05291665000000023,
68
- "maxX": 0.05291665000000023,
69
- "minY": -0.13229199999999963,
70
- "maxY": 0.13229199999999963,
71
- "width": 0.10583330000000046,
72
- "height": 0.26458399999999926,
73
- "centerX": 0,
74
- "centerY": 0
75
- }
76
- }
@@ -1,31 +0,0 @@
1
- {
2
- "paths": {
3
- "path57": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": 0.03968750000000032,
8
- "y": 0
9
- },
10
- {
11
- "x": -0.03968750000000032,
12
- "y": 0
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- }
18
- },
19
- "texts": {},
20
- "refblocks": {},
21
- "bounds": {
22
- "minX": -0.03968750000000032,
23
- "maxX": 0.03968750000000032,
24
- "minY": 0,
25
- "maxY": 0,
26
- "width": 0.07937500000000064,
27
- "height": 0,
28
- "centerX": 0,
29
- "centerY": 0
30
- }
31
- }
@@ -1,84 +0,0 @@
1
- {
2
- "paths": {
3
- "path10": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": -0.529167000000001,
8
- "y": 0
9
- },
10
- {
11
- "x": 0.5291669999999993,
12
- "y": 0
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path14": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": 0.000001999999998503199,
23
- "y": -0.13229169999999968
24
- },
25
- {
26
- "x": 0.2645849999999985,
27
- "y": -0.13229169999999968
28
- },
29
- {
30
- "x": 0.2645849999999985,
31
- "y": 0.13229169999999968
32
- },
33
- {
34
- "x": -0.26458200000000076,
35
- "y": 0.13229169999999968
36
- },
37
- {
38
- "x": -0.26458200000000076,
39
- "y": -0.13229169999999968
40
- },
41
- {
42
- "x": 0.000001999999998503199,
43
- "y": -0.13229169999999968
44
- }
45
- ],
46
- "color": "primary",
47
- "fill": false
48
- }
49
- },
50
- "texts": {
51
- "top1": {
52
- "type": "text",
53
- "text": "{REF}",
54
- "x": -0.00912720000000089,
55
- "y": -0.1995035999999999
56
- },
57
- "bottom1": {
58
- "type": "text",
59
- "text": "{VAL}",
60
- "x": -0.17251720000000148,
61
- "y": 0.27233090000000004
62
- }
63
- },
64
- "refblocks": {
65
- "left1": {
66
- "x": -0.5354181000000011,
67
- "y": -0.0030468999999992974
68
- },
69
- "right1": {
70
- "x": 0.5336915999999992,
71
- "y": 0.0011575000000014768
72
- }
73
- },
74
- "bounds": {
75
- "minX": -0.529167000000001,
76
- "maxX": 0.5291669999999993,
77
- "minY": -0.13229169999999968,
78
- "maxY": 0.13229169999999968,
79
- "width": 1.0583340000000003,
80
- "height": 0.26458339999999936,
81
- "centerX": -8.881784197001252e-16,
82
- "centerY": 0
83
- }
84
- }