@tscircuit/core 0.0.396 → 0.0.397
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/index.d.ts +5 -2
- package/dist/index.js +8 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -11828,7 +11828,8 @@ declare class SchematicText extends PrimitiveComponent<typeof schematicTextProps
|
|
|
11828
11828
|
schX: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
11829
11829
|
schY: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
11830
11830
|
text: zod.ZodString;
|
|
11831
|
-
|
|
11831
|
+
fontSize: zod.ZodDefault<zod.ZodNumber>;
|
|
11832
|
+
anchor: zod.ZodDefault<zod.ZodUnion<[zod.ZodEnum<["center", "left", "right", "top", "bottom"]>, zod.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>]>>;
|
|
11832
11833
|
color: zod.ZodDefault<zod.ZodString>;
|
|
11833
11834
|
schRotation: zod.ZodDefault<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
11834
11835
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -11838,13 +11839,15 @@ declare class SchematicText extends PrimitiveComponent<typeof schematicTextProps
|
|
|
11838
11839
|
schRotation: number;
|
|
11839
11840
|
color: string;
|
|
11840
11841
|
text: string;
|
|
11842
|
+
fontSize: number;
|
|
11841
11843
|
}, {
|
|
11842
|
-
anchor: "left" | "right" | "top" | "bottom" | "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center";
|
|
11843
11844
|
schX: string | number;
|
|
11844
11845
|
schY: string | number;
|
|
11845
11846
|
text: string;
|
|
11847
|
+
anchor?: "left" | "right" | "top" | "bottom" | "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center" | undefined;
|
|
11846
11848
|
schRotation?: string | number | undefined;
|
|
11847
11849
|
color?: string | undefined;
|
|
11850
|
+
fontSize?: number | undefined;
|
|
11848
11851
|
}>;
|
|
11849
11852
|
};
|
|
11850
11853
|
doInitialSchematicPrimitiveRender(): void;
|
package/dist/index.js
CHANGED
|
@@ -5286,7 +5286,8 @@ var NormalComponent = class extends PrimitiveComponent2 {
|
|
|
5286
5286
|
x: hasTopOrBottomPins ? center.x + (schematic_box_width ?? 0) / 2 + 0.1 : center.x - (schematic_box_width ?? 0) / 2,
|
|
5287
5287
|
y: hasTopOrBottomPins ? center.y + (schematic_box_height ?? 0) / 2 + 0.35 : center.y - (schematic_box_height ?? 0) / 2 - 0.13
|
|
5288
5288
|
},
|
|
5289
|
-
color: "#006464"
|
|
5289
|
+
color: "#006464",
|
|
5290
|
+
font_size: 0.05
|
|
5290
5291
|
});
|
|
5291
5292
|
const component_name_text = db.schematic_text.insert({
|
|
5292
5293
|
text: props.name ?? "",
|
|
@@ -5297,7 +5298,8 @@ var NormalComponent = class extends PrimitiveComponent2 {
|
|
|
5297
5298
|
x: hasTopOrBottomPins ? center.x + (schematic_box_width ?? 0) / 2 + 0.1 : center.x - (schematic_box_width ?? 0) / 2,
|
|
5298
5299
|
y: hasTopOrBottomPins ? center.y + (schematic_box_height ?? 0) / 2 + 0.55 : center.y + (schematic_box_height ?? 0) / 2 + 0.13
|
|
5299
5300
|
},
|
|
5300
|
-
color: "#006464"
|
|
5301
|
+
color: "#006464",
|
|
5302
|
+
font_size: 0.05
|
|
5301
5303
|
});
|
|
5302
5304
|
this.schematic_component_id = schematic_component2.schematic_component_id;
|
|
5303
5305
|
}
|
|
@@ -8105,6 +8107,7 @@ var SchematicText = class extends PrimitiveComponent2 {
|
|
|
8105
8107
|
db.schematic_text.insert({
|
|
8106
8108
|
anchor: props.anchor ?? "center",
|
|
8107
8109
|
text: props.text,
|
|
8110
|
+
font_size: props.fontSize,
|
|
8108
8111
|
color: props.color || "#000000",
|
|
8109
8112
|
position: {
|
|
8110
8113
|
x: props.schX,
|
|
@@ -8124,7 +8127,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
8124
8127
|
var package_default = {
|
|
8125
8128
|
name: "@tscircuit/core",
|
|
8126
8129
|
type: "module",
|
|
8127
|
-
version: "0.0.
|
|
8130
|
+
version: "0.0.396",
|
|
8128
8131
|
types: "dist/index.d.ts",
|
|
8129
8132
|
main: "dist/index.js",
|
|
8130
8133
|
module: "dist/index.js",
|
|
@@ -8182,9 +8185,9 @@ var package_default = {
|
|
|
8182
8185
|
"@tscircuit/circuit-json-util": "^0.0.47",
|
|
8183
8186
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
8184
8187
|
"@tscircuit/math-utils": "^0.0.14",
|
|
8185
|
-
"@tscircuit/props": "^0.0.
|
|
8188
|
+
"@tscircuit/props": "^0.0.178",
|
|
8186
8189
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
8187
|
-
"circuit-json": "0.0.
|
|
8190
|
+
"circuit-json": "0.0.170",
|
|
8188
8191
|
"circuit-json-to-connectivity-map": "^0.0.20",
|
|
8189
8192
|
"css-select": "^5.1.0",
|
|
8190
8193
|
"format-si-unit": "^0.0.3",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.397",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"@tscircuit/circuit-json-util": "^0.0.47",
|
|
60
60
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
61
61
|
"@tscircuit/math-utils": "^0.0.14",
|
|
62
|
-
"@tscircuit/props": "^0.0.
|
|
62
|
+
"@tscircuit/props": "^0.0.178",
|
|
63
63
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
64
|
-
"circuit-json": "0.0.
|
|
64
|
+
"circuit-json": "0.0.170",
|
|
65
65
|
"circuit-json-to-connectivity-map": "^0.0.20",
|
|
66
66
|
"css-select": "^5.1.0",
|
|
67
67
|
"format-si-unit": "^0.0.3",
|