@tscircuit/core 0.0.495 → 0.0.497
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 +2 -1
- package/dist/index.js +16 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -14779,7 +14779,8 @@ type ChipFn<T extends ChipProps<any>> = (props: T) => any;
|
|
|
14779
14779
|
type ChipFnSel = <T extends ChipFn<any> | string>(chipFn?: T) => UnionToIntersection<T extends ChipFn<any> ? ChipConnections<T> : T extends string ? {
|
|
14780
14780
|
[K in T]: string;
|
|
14781
14781
|
} : never>;
|
|
14782
|
-
type
|
|
14782
|
+
type SelFn = <P extends string>(refdes: string) => Record<P, string>;
|
|
14783
|
+
type Sel = SelFn & ExplicitModuleSel & SelWithoutSubcircuit;
|
|
14783
14784
|
declare const sel: Sel;
|
|
14784
14785
|
|
|
14785
14786
|
interface LocalCacheEngine {
|
package/dist/index.js
CHANGED
|
@@ -5199,6 +5199,14 @@ searched component ${targetComponent.getString()}, which has ports: ${targetComp
|
|
|
5199
5199
|
const connectedNetLabel = this.getSubcircuit().selectAll("netlabel").find((nl) => {
|
|
5200
5200
|
const conn = nl._parsedProps.connection ?? nl._parsedProps.connectsTo;
|
|
5201
5201
|
if (!conn) return false;
|
|
5202
|
+
if (Array.isArray(conn)) {
|
|
5203
|
+
return conn.some((selector) => {
|
|
5204
|
+
const targetPort2 = this.getSubcircuit().selectOne(selector, {
|
|
5205
|
+
port: true
|
|
5206
|
+
});
|
|
5207
|
+
return targetPort2 === port;
|
|
5208
|
+
});
|
|
5209
|
+
}
|
|
5202
5210
|
const targetPort = this.getSubcircuit().selectOne(conn, {
|
|
5203
5211
|
port: true
|
|
5204
5212
|
});
|
|
@@ -10326,7 +10334,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
10326
10334
|
var package_default = {
|
|
10327
10335
|
name: "@tscircuit/core",
|
|
10328
10336
|
type: "module",
|
|
10329
|
-
version: "0.0.
|
|
10337
|
+
version: "0.0.496",
|
|
10330
10338
|
types: "dist/index.d.ts",
|
|
10331
10339
|
main: "dist/index.js",
|
|
10332
10340
|
module: "dist/index.js",
|
|
@@ -10358,7 +10366,7 @@ var package_default = {
|
|
|
10358
10366
|
"@tscircuit/layout": "^0.0.28",
|
|
10359
10367
|
"@tscircuit/log-soup": "^1.0.2",
|
|
10360
10368
|
"@tscircuit/math-utils": "^0.0.18",
|
|
10361
|
-
"@tscircuit/props": "^0.0.
|
|
10369
|
+
"@tscircuit/props": "^0.0.237",
|
|
10362
10370
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
10363
10371
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
10364
10372
|
"@tscircuit/simple-3d-svg": "^0.0.6",
|
|
@@ -10709,7 +10717,12 @@ var useResistor = createUseComponent(
|
|
|
10709
10717
|
|
|
10710
10718
|
// lib/sel/sel.ts
|
|
10711
10719
|
var sel = new Proxy(
|
|
10712
|
-
|
|
10720
|
+
(refdes) => new Proxy(
|
|
10721
|
+
{},
|
|
10722
|
+
{
|
|
10723
|
+
get: (_, pin) => `.${refdes} > .${pin}`
|
|
10724
|
+
}
|
|
10725
|
+
),
|
|
10713
10726
|
{
|
|
10714
10727
|
get: (_, prop1) => {
|
|
10715
10728
|
const fn = (...args) => {
|
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.497",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@tscircuit/layout": "^0.0.28",
|
|
34
34
|
"@tscircuit/log-soup": "^1.0.2",
|
|
35
35
|
"@tscircuit/math-utils": "^0.0.18",
|
|
36
|
-
"@tscircuit/props": "^0.0.
|
|
36
|
+
"@tscircuit/props": "^0.0.237",
|
|
37
37
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
38
38
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
39
39
|
"@tscircuit/simple-3d-svg": "^0.0.6",
|