schematic-symbols 0.0.7 → 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 +7 -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,160 +0,0 @@
1
- {
2
- "paths": {
3
- "path18": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": -0.5291669499999998,
8
- "y": 0.0008545000000008685
9
- },
10
- {
11
- "x": -0.26458365000000006,
12
- "y": 0.0008545000000008685
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path19": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": 0.26458334999999966,
23
- "y": 0.0008545000000008685
24
- },
25
- {
26
- "x": 0.5291669499999996,
27
- "y": 0.0008545000000008685
28
- }
29
- ],
30
- "color": "primary",
31
- "fill": false
32
- },
33
- "path20": {
34
- "type": "path",
35
- "points": [
36
- {
37
- "x": 0.0000012499999995085886,
38
- "y": -0.1314371999999988
39
- },
40
- {
41
- "x": 0.26458424999999997,
42
- "y": -0.1314371999999988
43
- },
44
- {
45
- "x": 0.26458424999999997,
46
- "y": 0.13314619999999877
47
- },
48
- {
49
- "x": -0.26458274999999976,
50
- "y": 0.13314619999999877
51
- },
52
- {
53
- "x": -0.26458274999999976,
54
- "y": -0.1314371999999988
55
- },
56
- {
57
- "x": 0.0000012500000012849455,
58
- "y": -0.1314371999999988
59
- }
60
- ],
61
- "color": "primary",
62
- "fill": false
63
- },
64
- "path23": {
65
- "type": "path",
66
- "points": [
67
- {
68
- "x": 0.28137284999999945,
69
- "y": 0.2822274
70
- },
71
- {
72
- "x": 0.17906194999999903,
73
- "y": 0.25486950000000164
74
- },
75
- {
76
- "x": 0.2540149499999984,
77
- "y": 0.1799165000000027
78
- },
79
- {
80
- "x": 0.28137284999999945,
81
- "y": 0.2822274
82
- }
83
- ],
84
- "color": "primary",
85
- "fill": true
86
- },
87
- "path24": {
88
- "type": "path",
89
- "points": [
90
- {
91
- "x": 0.29134274999999965,
92
- "y": 0.2921307000000013
93
- },
94
- {
95
- "x": 0.2577490499999997,
96
- "y": 0.16634940000000142
97
- },
98
- {
99
- "x": 0.16536614999999966,
100
- "y": 0.25853690000000284
101
- },
102
- {
103
- "x": 0.29134274999999965,
104
- "y": 0.2921307000000013
105
- }
106
- ],
107
- "color": "primary",
108
- "fill": true
109
- },
110
- "path26": {
111
- "type": "path",
112
- "points": [
113
- {
114
- "x": -0.29551765000000074,
115
- "y": -0.2921307000000013
116
- },
117
- {
118
- "x": 0.23295514999999956,
119
- "y": 0.2328032000000011
120
- }
121
- ],
122
- "color": "primary",
123
- "fill": false
124
- }
125
- },
126
- "texts": {
127
- "top1": {
128
- "type": "text",
129
- "text": "{REF}",
130
- "x": 0.05811516999999933,
131
- "y": -0.2009376800000009
132
- },
133
- "bottom1": {
134
- "type": "text",
135
- "text": "{VAL}",
136
- "x": -0.09712293000000072,
137
- "y": 0.27857531999999985
138
- }
139
- },
140
- "refblocks": {
141
- "left1": {
142
- "x": -0.5316179500000004,
143
- "y": 0.0013439000000019519
144
- },
145
- "right1": {
146
- "x": 0.5377649500000006,
147
- "y": 0.001956599999999753
148
- }
149
- },
150
- "bounds": {
151
- "minX": -0.5291669499999998,
152
- "maxX": 0.5291669499999996,
153
- "minY": -0.2921307000000013,
154
- "maxY": 0.2921307000000013,
155
- "width": 1.0583338999999994,
156
- "height": 0.5842614000000026,
157
- "centerX": -1.1102230246251565e-16,
158
- "centerY": 0
159
- }
160
- }
@@ -1,35 +0,0 @@
1
- {
2
- "paths": {
3
- "path207": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": -0.31180640000000004,
8
- "y": 0.1908721
9
- },
10
- {
11
- "x": -0.18358699999999972,
12
- "y": -0.1908721
13
- },
14
- {
15
- "x": 0.31180640000000004,
16
- "y": -0.13259049999999917
17
- }
18
- ],
19
- "color": "primary",
20
- "fill": false
21
- }
22
- },
23
- "texts": {},
24
- "refblocks": {},
25
- "bounds": {
26
- "minX": -0.31180640000000004,
27
- "maxX": 0.31180640000000004,
28
- "minY": -0.1908721,
29
- "maxY": 0.1908721,
30
- "width": 0.6236128000000001,
31
- "height": 0.3817442,
32
- "centerX": 0,
33
- "centerY": 0
34
- }
35
- }
@@ -1,129 +0,0 @@
1
- {
2
- "paths": {
3
- "path5": {
4
- "type": "path",
5
- "points": [
6
- {
7
- "x": -0.5291668,
8
- "y": 0
9
- },
10
- {
11
- "x": -0.2645835000000005,
12
- "y": 0
13
- }
14
- ],
15
- "color": "primary",
16
- "fill": false
17
- },
18
- "path6": {
19
- "type": "path",
20
- "points": [
21
- {
22
- "x": 0.2645835000000005,
23
- "y": 0
24
- },
25
- {
26
- "x": 0.5291668,
27
- "y": 0
28
- }
29
- ],
30
- "color": "primary",
31
- "fill": false
32
- },
33
- "path7": {
34
- "type": "path",
35
- "points": [
36
- {
37
- "x": 0.2645835000000005,
38
- "y": 0.23812500000000192
39
- },
40
- {
41
- "x": -0.2645834999999992,
42
- "y": -0.23812500000000014
43
- }
44
- ],
45
- "color": "primary",
46
- "fill": false
47
- },
48
- "path8": {
49
- "type": "path",
50
- "points": [
51
- {
52
- "x": 0.3704165000000006,
53
- "y": 0.23812500000000192
54
- },
55
- {
56
- "x": 0.2645835000000005,
57
- "y": 0.23812500000000192
58
- }
59
- ],
60
- "color": "primary",
61
- "fill": false
62
- },
63
- "path9": {
64
- "type": "path",
65
- "points": [
66
- {
67
- "x": 0.000001400000000817414,
68
- "y": -0.13229179999999907
69
- },
70
- {
71
- "x": 0.2645844000000013,
72
- "y": -0.13229179999999907
73
- },
74
- {
75
- "x": 0.2645844000000013,
76
- "y": 0.13229160000000206
77
- },
78
- {
79
- "x": -0.26458259999999845,
80
- "y": 0.13229160000000206
81
- },
82
- {
83
- "x": -0.26458259999999845,
84
- "y": -0.13229179999999907
85
- },
86
- {
87
- "x": 0.0000014000000021496817,
88
- "y": -0.13229179999999907
89
- }
90
- ],
91
- "color": "primary",
92
- "fill": false
93
- }
94
- },
95
- "texts": {
96
- "top1": {
97
- "type": "text",
98
- "text": "{REF}",
99
- "x": -0.06307419999999953,
100
- "y": -0.2470063999999983
101
- },
102
- "bottom1": {
103
- "type": "text",
104
- "text": "{VAL}",
105
- "x": 0.0039234000000010205,
106
- "y": 0.256324600000001
107
- }
108
- },
109
- "refblocks": {
110
- "left1": {
111
- "x": -0.5438152999999999,
112
- "y": 0.0016897000000017925
113
- },
114
- "right1": {
115
- "x": 0.5346478000000006,
116
- "y": -0.0006806999999984242
117
- }
118
- },
119
- "bounds": {
120
- "minX": -0.5291668,
121
- "maxX": 0.5291668,
122
- "minY": -0.23812500000000014,
123
- "maxY": 0.23812500000000192,
124
- "width": 1.0583336,
125
- "height": 0.47625000000000206,
126
- "centerX": 0,
127
- "centerY": 8.881784197001252e-16
128
- }
129
- }