@tscircuit/core 0.0.1965 → 0.0.1966
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.js +18 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -389,6 +389,17 @@ var mergeRoutes = (routes) => {
|
|
|
389
389
|
// lib/components/primitive-components/Net.ts
|
|
390
390
|
import { netProps } from "@tscircuit/props";
|
|
391
391
|
|
|
392
|
+
// lib/components/base-components/PrimitiveComponent/get-construction-props-schema.ts
|
|
393
|
+
var constructionSchemas = /* @__PURE__ */ new WeakMap();
|
|
394
|
+
var getConstructionPropsSchema = (schema) => {
|
|
395
|
+
let constructionSchema = constructionSchemas.get(schema);
|
|
396
|
+
if (!constructionSchema) {
|
|
397
|
+
constructionSchema = "partial" in schema ? schema.partial({ name: true }) : schema;
|
|
398
|
+
constructionSchemas.set(schema, constructionSchema);
|
|
399
|
+
}
|
|
400
|
+
return constructionSchema;
|
|
401
|
+
};
|
|
402
|
+
|
|
392
403
|
// lib/components/base-components/PrimitiveComponent/select-net-by-literal-selector.ts
|
|
393
404
|
var netsBySelectorByNets = /* @__PURE__ */ new WeakMap();
|
|
394
405
|
var selectNetByLiteralSelector = (nets, selector) => {
|
|
@@ -1575,9 +1586,7 @@ var PrimitiveComponent2 = class extends Renderable {
|
|
|
1575
1586
|
this.childrenPendingRemoval = [];
|
|
1576
1587
|
this.props = props ?? {};
|
|
1577
1588
|
this.externallyAddedAliases = [];
|
|
1578
|
-
const zodProps =
|
|
1579
|
-
name: true
|
|
1580
|
-
}) : this.config.zodProps;
|
|
1589
|
+
const zodProps = getConstructionPropsSchema(this.config.zodProps);
|
|
1581
1590
|
const parsePropsResult = zodProps.safeParse(props ?? {});
|
|
1582
1591
|
if (parsePropsResult.success) {
|
|
1583
1592
|
this._parsedProps = parsePropsResult.data;
|
|
@@ -63774,7 +63783,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
63774
63783
|
var package_default = {
|
|
63775
63784
|
name: "@tscircuit/core",
|
|
63776
63785
|
type: "module",
|
|
63777
|
-
version: "0.0.
|
|
63786
|
+
version: "0.0.1965",
|
|
63778
63787
|
types: "dist/index.d.ts",
|
|
63779
63788
|
main: "dist/index.js",
|
|
63780
63789
|
module: "dist/index.js",
|
|
@@ -69444,6 +69453,7 @@ var findFloatingCopper = (circuitJson, generatedStitchingViaIds = /* @__PURE__ *
|
|
|
69444
69453
|
var Board_doInitialPcbCopperPourCleanup = (board) => {
|
|
69445
69454
|
if (!board.root || board.root.pcbDisabled) return;
|
|
69446
69455
|
const { db } = board.root;
|
|
69456
|
+
if (db.pcb_copper_pour.list().length === 0) return;
|
|
69447
69457
|
const circuitJson = db.subtree({ subcircuit_id: board.subcircuit_id }).toArray();
|
|
69448
69458
|
if (db.pcb_autorouting_error.list().length > 0) return;
|
|
69449
69459
|
if (!circuitJson.some((element) => element.type === "pcb_copper_pour")) return;
|
|
@@ -70087,6 +70097,10 @@ var Board = class extends Group5 {
|
|
|
70087
70097
|
const pcbDisabled = this.root?.pcbDisabled;
|
|
70088
70098
|
const schematicDisabled = this.root?.schematicDisabled;
|
|
70089
70099
|
const drcChecksDisabled = this.root?.platform?.drcChecksDisabled ?? this.getInheritedProperty("drcChecksDisabled");
|
|
70100
|
+
if (drcChecksDisabled) {
|
|
70101
|
+
this._drcChecksComplete = true;
|
|
70102
|
+
return;
|
|
70103
|
+
}
|
|
70090
70104
|
const netlistDrcChecksDisabled = this.root?.platform?.netlistDrcChecksDisabled ?? this.getInheritedProperty("netlistDrcChecksDisabled");
|
|
70091
70105
|
const pinSpecificationDrcChecksDisabled = this.getInheritedProperty(
|
|
70092
70106
|
"pinSpecificationDrcChecksDisabled"
|