@tscircuit/schematic-viewer 0.0.2 → 0.0.4
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 +6 -1
- package/dist/index.js +35176 -5772
- package/dist/index.js.map +1 -1
- package/package.json +3 -5
- package/src/pages/led-circuit.tsx +8 -1
- package/tsconfig.json +2 -1
- package/dist/Schematic.d.ts +0 -6
- package/dist/Schematic.js +0 -8609
- package/dist/Schematic.js.map +0 -1
- package/dist/lib/hooks/index.d.ts +0 -1
- package/dist/lib/hooks/index.js +0 -2170
- package/dist/lib/hooks/index.js.map +0 -1
- package/dist/lib/hooks/use-maybe-promise.d.ts +0 -3
- package/dist/lib/hooks/use-maybe-promise.js +0 -2170
- package/dist/lib/hooks/use-maybe-promise.js.map +0 -1
- package/dist/lib/render-context/index.d.ts +0 -10
- package/dist/lib/render-context/index.js +0 -45
- package/dist/lib/render-context/index.js.map +0 -1
- package/dist/lib/types/core.d.ts +0 -149
- package/dist/lib/types/core.js +0 -18
- package/dist/lib/types/core.js.map +0 -1
- package/dist/lib/types/index.d.ts +0 -4
- package/dist/lib/types/index.js +0 -18
- package/dist/lib/types/index.js.map +0 -1
- package/dist/lib/types/route-solver.d.ts +0 -24
- package/dist/lib/types/route-solver.js +0 -18
- package/dist/lib/types/route-solver.js.map +0 -1
- package/dist/lib/types/source-component.d.ts +0 -44
- package/dist/lib/types/source-component.js +0 -18
- package/dist/lib/types/source-component.js.map +0 -1
- package/dist/lib/types/util.d.ts +0 -14
- package/dist/lib/types/util.js +0 -18
- package/dist/lib/types/util.js.map +0 -1
- package/dist/lib/utils/direction-to-vec.d.ts +0 -13
- package/dist/lib/utils/direction-to-vec.js +0 -96
- package/dist/lib/utils/direction-to-vec.js.map +0 -1
- package/dist/lib/utils/get-svg-path-bounds.d.ts +0 -10
- package/dist/lib/utils/get-svg-path-bounds.js +0 -51
- package/dist/lib/utils/get-svg-path-bounds.js.map +0 -1
- package/dist/lib/utils/point-math.d.ts +0 -20
- package/dist/lib/utils/point-math.js +0 -57
- package/dist/lib/utils/point-math.js.map +0 -1
- package/dist/pages/_app.d.ts +0 -5
- package/dist/pages/_app.js +0 -2714
- package/dist/pages/_app.js.map +0 -1
- package/dist/pages/index.d.ts +0 -3
- package/dist/pages/index.js +0 -8615
- package/dist/pages/index.js.map +0 -1
- package/dist/pages/led-circuit-react.d.ts +0 -3
- package/dist/pages/led-circuit-react.js +0 -8640
- package/dist/pages/led-circuit-react.js.map +0 -1
- package/dist/pages/led-circuit.d.ts +0 -3
- package/dist/pages/led-circuit.js +0 -8659
- package/dist/pages/led-circuit.js.map +0 -1
- package/dist/schematic-components/MovableGrid/MovableGrid.stories.d.ts +0 -7
- package/dist/schematic-components/MovableGrid/MovableGrid.stories.js +0 -47
- package/dist/schematic-components/MovableGrid/MovableGrid.stories.js.map +0 -1
- package/dist/schematic-components/MovableGrid/index.d.ts +0 -3
- package/dist/schematic-components/MovableGrid/index.js +0 -34
- package/dist/schematic-components/MovableGrid/index.js.map +0 -1
- package/dist/schematic-components/ProjectComponent.d.ts +0 -10
- package/dist/schematic-components/ProjectComponent.js +0 -8584
- package/dist/schematic-components/ProjectComponent.js.map +0 -1
- package/dist/schematic-components/RenderError.d.ts +0 -6
- package/dist/schematic-components/RenderError.js +0 -40
- package/dist/schematic-components/RenderError.js.map +0 -1
- package/dist/schematic-components/SVGPathComponent.d.ts +0 -19
- package/dist/schematic-components/SVGPathComponent.js +0 -90
- package/dist/schematic-components/SVGPathComponent.js.map +0 -1
- package/dist/schematic-components/SchematicBug.d.ts +0 -13
- package/dist/schematic-components/SchematicBug.js +0 -468
- package/dist/schematic-components/SchematicBug.js.map +0 -1
- package/dist/schematic-components/SchematicComponent.d.ts +0 -13
- package/dist/schematic-components/SchematicComponent.js +0 -8451
- package/dist/schematic-components/SchematicComponent.js.map +0 -1
- package/dist/schematic-components/SchematicGroup.d.ts +0 -3
- package/dist/schematic-components/SchematicGroup.js +0 -32
- package/dist/schematic-components/SchematicGroup.js.map +0 -1
- package/dist/schematic-components/SchematicPort.d.ts +0 -13
- package/dist/schematic-components/SchematicPort.js +0 -8348
- package/dist/schematic-components/SchematicPort.js.map +0 -1
- package/dist/schematic-components/SchematicText.d.ts +0 -10
- package/dist/schematic-components/SchematicText.js +0 -71
- package/dist/schematic-components/SchematicText.js.map +0 -1
- package/dist/schematic-components/SchematicTrace.d.ts +0 -13
- package/dist/schematic-components/SchematicTrace.js +0 -137
- package/dist/schematic-components/SchematicTrace.js.map +0 -1
- package/dist/schematic-components/SimpleCapacitor.d.ts +0 -13
- package/dist/schematic-components/SimpleCapacitor.js +0 -103
- package/dist/schematic-components/SimpleCapacitor.js.map +0 -1
- package/dist/schematic-components/SimpleDiode.d.ts +0 -13
- package/dist/schematic-components/SimpleDiode.js +0 -101
- package/dist/schematic-components/SimpleDiode.js.map +0 -1
- package/dist/schematic-components/SimpleGround.d.ts +0 -13
- package/dist/schematic-components/SimpleGround.js +0 -102
- package/dist/schematic-components/SimpleGround.js.map +0 -1
- package/dist/schematic-components/SimpleInductor.d.ts +0 -13
- package/dist/schematic-components/SimpleInductor.js +0 -102
- package/dist/schematic-components/SimpleInductor.js.map +0 -1
- package/dist/schematic-components/SimplePowerSource.d.ts +0 -13
- package/dist/schematic-components/SimplePowerSource.js +0 -104
- package/dist/schematic-components/SimplePowerSource.js.map +0 -1
- package/dist/schematic-components/SimpleResistor.d.ts +0 -13
- package/dist/schematic-components/SimpleResistor.js +0 -102
- package/dist/schematic-components/SimpleResistor.js.map +0 -1
- package/dist/schematic-components/index.d.ts +0 -18
- package/dist/schematic-components/index.js +0 -8618
- package/dist/schematic-components/index.js.map +0 -1
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/schematic-components/SchematicGroup.tsx
|
|
20
|
-
var SchematicGroup_exports = {};
|
|
21
|
-
__export(SchematicGroup_exports, {
|
|
22
|
-
SchematicGroup: () => SchematicGroup
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(SchematicGroup_exports);
|
|
25
|
-
var SchematicGroup = () => {
|
|
26
|
-
return null;
|
|
27
|
-
};
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
SchematicGroup
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=SchematicGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schematic-components/SchematicGroup.tsx"],"sourcesContent":["export const SchematicGroup = () => {\n return null\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,iBAAiB,MAAM;AAClC,SAAO;AACT;","names":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SourcePort, SchematicPort as SchematicPort$1 } from '../lib/types/core.js';
|
|
2
|
-
import '../lib/types/source-component.js';
|
|
3
|
-
import '../lib/types/util.js';
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
port: {
|
|
7
|
-
source: SourcePort;
|
|
8
|
-
schematic: SchematicPort$1;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
declare const SchematicPort: ({ port: { source, schematic } }: Props) => JSX.Element;
|
|
12
|
-
|
|
13
|
-
export { SchematicPort, SchematicPort as default };
|