@tscircuit/core 0.0.913 → 0.0.914
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 +15 -0
- package/dist/index.js +22 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3359,6 +3359,11 @@ declare class Panel extends Group<typeof panelProps> {
|
|
|
3359
3359
|
tabWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3360
3360
|
tabLength: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3361
3361
|
mouseBites: zod.ZodOptional<zod.ZodBoolean>;
|
|
3362
|
+
edgePadding: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3363
|
+
edgePaddingLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3364
|
+
edgePaddingRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3365
|
+
edgePaddingTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3366
|
+
edgePaddingBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3362
3367
|
}, "strip", zod.ZodTypeAny, {
|
|
3363
3368
|
symbol?: _tscircuit_props.SymbolProp | undefined;
|
|
3364
3369
|
key?: any;
|
|
@@ -3622,6 +3627,11 @@ declare class Panel extends Group<typeof panelProps> {
|
|
|
3622
3627
|
tabWidth?: number | undefined;
|
|
3623
3628
|
tabLength?: number | undefined;
|
|
3624
3629
|
mouseBites?: boolean | undefined;
|
|
3630
|
+
edgePadding?: number | undefined;
|
|
3631
|
+
edgePaddingLeft?: number | undefined;
|
|
3632
|
+
edgePaddingRight?: number | undefined;
|
|
3633
|
+
edgePaddingTop?: number | undefined;
|
|
3634
|
+
edgePaddingBottom?: number | undefined;
|
|
3625
3635
|
}, {
|
|
3626
3636
|
symbol?: _tscircuit_props.SymbolProp | undefined;
|
|
3627
3637
|
key?: any;
|
|
@@ -3887,6 +3897,11 @@ declare class Panel extends Group<typeof panelProps> {
|
|
|
3887
3897
|
tabWidth?: string | number | undefined;
|
|
3888
3898
|
tabLength?: string | number | undefined;
|
|
3889
3899
|
mouseBites?: boolean | undefined;
|
|
3900
|
+
edgePadding?: string | number | undefined;
|
|
3901
|
+
edgePaddingLeft?: string | number | undefined;
|
|
3902
|
+
edgePaddingRight?: string | number | undefined;
|
|
3903
|
+
edgePaddingTop?: string | number | undefined;
|
|
3904
|
+
edgePaddingBottom?: string | number | undefined;
|
|
3890
3905
|
}>;
|
|
3891
3906
|
};
|
|
3892
3907
|
get isGroup(): boolean;
|
package/dist/index.js
CHANGED
|
@@ -15744,7 +15744,6 @@ import { distance as distance10 } from "circuit-json";
|
|
|
15744
15744
|
|
|
15745
15745
|
// lib/utils/panels/generate-panel-tabs-and-mouse-bites.ts
|
|
15746
15746
|
import * as Flatten from "@flatten-js/core";
|
|
15747
|
-
var DEFAULT_PANEL_MARGIN = 5;
|
|
15748
15747
|
var DEFAULT_TAB_LENGTH = 5;
|
|
15749
15748
|
var DEFAULT_TAB_WIDTH = 2;
|
|
15750
15749
|
var generateCutoutsAndMousebitesForOutline = (outline, options) => {
|
|
@@ -16056,9 +16055,27 @@ var Panel = class extends Group6 {
|
|
|
16056
16055
|
height: distance10.parse(this._parsedProps.height)
|
|
16057
16056
|
});
|
|
16058
16057
|
} else if (gridWidth > 0 || gridHeight > 0) {
|
|
16058
|
+
const {
|
|
16059
|
+
edgePadding: edgePaddingProp,
|
|
16060
|
+
edgePaddingLeft: edgePaddingLeftProp,
|
|
16061
|
+
edgePaddingRight: edgePaddingRightProp,
|
|
16062
|
+
edgePaddingTop: edgePaddingTopProp,
|
|
16063
|
+
edgePaddingBottom: edgePaddingBottomProp
|
|
16064
|
+
} = this._parsedProps;
|
|
16065
|
+
const edgePadding = distance10.parse(edgePaddingProp ?? 5);
|
|
16066
|
+
const edgePaddingLeft = distance10.parse(
|
|
16067
|
+
edgePaddingLeftProp ?? edgePadding
|
|
16068
|
+
);
|
|
16069
|
+
const edgePaddingRight = distance10.parse(
|
|
16070
|
+
edgePaddingRightProp ?? edgePadding
|
|
16071
|
+
);
|
|
16072
|
+
const edgePaddingTop = distance10.parse(edgePaddingTopProp ?? edgePadding);
|
|
16073
|
+
const edgePaddingBottom = distance10.parse(
|
|
16074
|
+
edgePaddingBottomProp ?? edgePadding
|
|
16075
|
+
);
|
|
16059
16076
|
db.pcb_panel.update(this.pcb_panel_id, {
|
|
16060
|
-
width: hasExplicitWidth ? distance10.parse(this._parsedProps.width) : gridWidth +
|
|
16061
|
-
height: hasExplicitHeight ? distance10.parse(this._parsedProps.height) : gridHeight +
|
|
16077
|
+
width: hasExplicitWidth ? distance10.parse(this._parsedProps.width) : gridWidth + edgePaddingLeft + edgePaddingRight,
|
|
16078
|
+
height: hasExplicitHeight ? distance10.parse(this._parsedProps.height) : gridHeight + edgePaddingTop + edgePaddingBottom
|
|
16062
16079
|
});
|
|
16063
16080
|
}
|
|
16064
16081
|
}
|
|
@@ -19152,7 +19169,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
19152
19169
|
var package_default = {
|
|
19153
19170
|
name: "@tscircuit/core",
|
|
19154
19171
|
type: "module",
|
|
19155
|
-
version: "0.0.
|
|
19172
|
+
version: "0.0.913",
|
|
19156
19173
|
types: "dist/index.d.ts",
|
|
19157
19174
|
main: "dist/index.js",
|
|
19158
19175
|
module: "dist/index.js",
|
|
@@ -19196,7 +19213,7 @@ var package_default = {
|
|
|
19196
19213
|
"@tscircuit/math-utils": "^0.0.29",
|
|
19197
19214
|
"@tscircuit/miniflex": "^0.0.4",
|
|
19198
19215
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
19199
|
-
"@tscircuit/props": "^0.0.
|
|
19216
|
+
"@tscircuit/props": "^0.0.426",
|
|
19200
19217
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
19201
19218
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
19202
19219
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|
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.914",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@tscircuit/math-utils": "^0.0.29",
|
|
46
46
|
"@tscircuit/miniflex": "^0.0.4",
|
|
47
47
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
48
|
-
"@tscircuit/props": "^0.0.
|
|
48
|
+
"@tscircuit/props": "^0.0.426",
|
|
49
49
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
50
50
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
51
51
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|