schematic-symbols 0.0.46 → 0.0.47

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "schematic-symbols",
3
3
  "main": "./dist/index.js",
4
- "version": "0.0.46",
4
+ "version": "0.0.47",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -0,0 +1,30 @@
1
+ import { defineSymbol } from "drawing/defineSymbol"
2
+ import svgJson from "assets/generated/var_meter.json"
3
+
4
+ const { paths, texts, bounds, refblocks, circles } = svgJson
5
+
6
+ export default defineSymbol({
7
+ primitives: [
8
+ ...Object.values(paths),
9
+ ...Object.values(circles),
10
+ {
11
+ ...texts.top1,
12
+ x: 0,
13
+ y: -0.3594553499999995,
14
+ anchor: "middle_bottom",
15
+ },
16
+ {
17
+ ...texts.bottom1,
18
+ x: 0,
19
+ y: 0.35,
20
+ anchor: "middle_top",
21
+ },
22
+ { ...texts.left1, x: -0.02, y: -0.02, fontSize: 0.2, anchor: "center" },
23
+ ] as any,
24
+ ports: [
25
+ { ...refblocks.left1, labels: ["1"] }, // TODO add more "standard" labels
26
+ { ...refblocks.right1, labels: ["2"] }, // TODO add more "standard" labels
27
+ ],
28
+ size: { width: bounds.width, height: bounds.height },
29
+ center: { x: bounds.centerX, y: bounds.centerY },
30
+ })
@@ -0,0 +1,4 @@
1
+ import { rotateSymbol } from "drawing/rotateSymbol"
2
+ import var_meter_horz from "./var_meter_horz"
3
+
4
+ export default rotateSymbol(var_meter_horz)