@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.
Files changed (108) hide show
  1. package/dist/index.d.ts +6 -1
  2. package/dist/index.js +35176 -5772
  3. package/dist/index.js.map +1 -1
  4. package/package.json +3 -5
  5. package/src/pages/led-circuit.tsx +8 -1
  6. package/tsconfig.json +2 -1
  7. package/dist/Schematic.d.ts +0 -6
  8. package/dist/Schematic.js +0 -8609
  9. package/dist/Schematic.js.map +0 -1
  10. package/dist/lib/hooks/index.d.ts +0 -1
  11. package/dist/lib/hooks/index.js +0 -2170
  12. package/dist/lib/hooks/index.js.map +0 -1
  13. package/dist/lib/hooks/use-maybe-promise.d.ts +0 -3
  14. package/dist/lib/hooks/use-maybe-promise.js +0 -2170
  15. package/dist/lib/hooks/use-maybe-promise.js.map +0 -1
  16. package/dist/lib/render-context/index.d.ts +0 -10
  17. package/dist/lib/render-context/index.js +0 -45
  18. package/dist/lib/render-context/index.js.map +0 -1
  19. package/dist/lib/types/core.d.ts +0 -149
  20. package/dist/lib/types/core.js +0 -18
  21. package/dist/lib/types/core.js.map +0 -1
  22. package/dist/lib/types/index.d.ts +0 -4
  23. package/dist/lib/types/index.js +0 -18
  24. package/dist/lib/types/index.js.map +0 -1
  25. package/dist/lib/types/route-solver.d.ts +0 -24
  26. package/dist/lib/types/route-solver.js +0 -18
  27. package/dist/lib/types/route-solver.js.map +0 -1
  28. package/dist/lib/types/source-component.d.ts +0 -44
  29. package/dist/lib/types/source-component.js +0 -18
  30. package/dist/lib/types/source-component.js.map +0 -1
  31. package/dist/lib/types/util.d.ts +0 -14
  32. package/dist/lib/types/util.js +0 -18
  33. package/dist/lib/types/util.js.map +0 -1
  34. package/dist/lib/utils/direction-to-vec.d.ts +0 -13
  35. package/dist/lib/utils/direction-to-vec.js +0 -96
  36. package/dist/lib/utils/direction-to-vec.js.map +0 -1
  37. package/dist/lib/utils/get-svg-path-bounds.d.ts +0 -10
  38. package/dist/lib/utils/get-svg-path-bounds.js +0 -51
  39. package/dist/lib/utils/get-svg-path-bounds.js.map +0 -1
  40. package/dist/lib/utils/point-math.d.ts +0 -20
  41. package/dist/lib/utils/point-math.js +0 -57
  42. package/dist/lib/utils/point-math.js.map +0 -1
  43. package/dist/pages/_app.d.ts +0 -5
  44. package/dist/pages/_app.js +0 -2714
  45. package/dist/pages/_app.js.map +0 -1
  46. package/dist/pages/index.d.ts +0 -3
  47. package/dist/pages/index.js +0 -8615
  48. package/dist/pages/index.js.map +0 -1
  49. package/dist/pages/led-circuit-react.d.ts +0 -3
  50. package/dist/pages/led-circuit-react.js +0 -8640
  51. package/dist/pages/led-circuit-react.js.map +0 -1
  52. package/dist/pages/led-circuit.d.ts +0 -3
  53. package/dist/pages/led-circuit.js +0 -8659
  54. package/dist/pages/led-circuit.js.map +0 -1
  55. package/dist/schematic-components/MovableGrid/MovableGrid.stories.d.ts +0 -7
  56. package/dist/schematic-components/MovableGrid/MovableGrid.stories.js +0 -47
  57. package/dist/schematic-components/MovableGrid/MovableGrid.stories.js.map +0 -1
  58. package/dist/schematic-components/MovableGrid/index.d.ts +0 -3
  59. package/dist/schematic-components/MovableGrid/index.js +0 -34
  60. package/dist/schematic-components/MovableGrid/index.js.map +0 -1
  61. package/dist/schematic-components/ProjectComponent.d.ts +0 -10
  62. package/dist/schematic-components/ProjectComponent.js +0 -8584
  63. package/dist/schematic-components/ProjectComponent.js.map +0 -1
  64. package/dist/schematic-components/RenderError.d.ts +0 -6
  65. package/dist/schematic-components/RenderError.js +0 -40
  66. package/dist/schematic-components/RenderError.js.map +0 -1
  67. package/dist/schematic-components/SVGPathComponent.d.ts +0 -19
  68. package/dist/schematic-components/SVGPathComponent.js +0 -90
  69. package/dist/schematic-components/SVGPathComponent.js.map +0 -1
  70. package/dist/schematic-components/SchematicBug.d.ts +0 -13
  71. package/dist/schematic-components/SchematicBug.js +0 -468
  72. package/dist/schematic-components/SchematicBug.js.map +0 -1
  73. package/dist/schematic-components/SchematicComponent.d.ts +0 -13
  74. package/dist/schematic-components/SchematicComponent.js +0 -8451
  75. package/dist/schematic-components/SchematicComponent.js.map +0 -1
  76. package/dist/schematic-components/SchematicGroup.d.ts +0 -3
  77. package/dist/schematic-components/SchematicGroup.js +0 -32
  78. package/dist/schematic-components/SchematicGroup.js.map +0 -1
  79. package/dist/schematic-components/SchematicPort.d.ts +0 -13
  80. package/dist/schematic-components/SchematicPort.js +0 -8348
  81. package/dist/schematic-components/SchematicPort.js.map +0 -1
  82. package/dist/schematic-components/SchematicText.d.ts +0 -10
  83. package/dist/schematic-components/SchematicText.js +0 -71
  84. package/dist/schematic-components/SchematicText.js.map +0 -1
  85. package/dist/schematic-components/SchematicTrace.d.ts +0 -13
  86. package/dist/schematic-components/SchematicTrace.js +0 -137
  87. package/dist/schematic-components/SchematicTrace.js.map +0 -1
  88. package/dist/schematic-components/SimpleCapacitor.d.ts +0 -13
  89. package/dist/schematic-components/SimpleCapacitor.js +0 -103
  90. package/dist/schematic-components/SimpleCapacitor.js.map +0 -1
  91. package/dist/schematic-components/SimpleDiode.d.ts +0 -13
  92. package/dist/schematic-components/SimpleDiode.js +0 -101
  93. package/dist/schematic-components/SimpleDiode.js.map +0 -1
  94. package/dist/schematic-components/SimpleGround.d.ts +0 -13
  95. package/dist/schematic-components/SimpleGround.js +0 -102
  96. package/dist/schematic-components/SimpleGround.js.map +0 -1
  97. package/dist/schematic-components/SimpleInductor.d.ts +0 -13
  98. package/dist/schematic-components/SimpleInductor.js +0 -102
  99. package/dist/schematic-components/SimpleInductor.js.map +0 -1
  100. package/dist/schematic-components/SimplePowerSource.d.ts +0 -13
  101. package/dist/schematic-components/SimplePowerSource.js +0 -104
  102. package/dist/schematic-components/SimplePowerSource.js.map +0 -1
  103. package/dist/schematic-components/SimpleResistor.d.ts +0 -13
  104. package/dist/schematic-components/SimpleResistor.js +0 -102
  105. package/dist/schematic-components/SimpleResistor.js.map +0 -1
  106. package/dist/schematic-components/index.d.ts +0 -18
  107. package/dist/schematic-components/index.js +0 -8618
  108. package/dist/schematic-components/index.js.map +0 -1
@@ -1,7 +0,0 @@
1
- import { ComponentMeta } from '@storybook/react';
2
-
3
- declare const _default: ComponentMeta<() => JSX.Element>;
4
-
5
- declare const Primary: any;
6
-
7
- export { Primary, _default as default };
@@ -1,47 +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/MovableGrid/MovableGrid.stories.tsx
20
- var MovableGrid_stories_exports = {};
21
- __export(MovableGrid_stories_exports, {
22
- Primary: () => Primary,
23
- default: () => MovableGrid_stories_default
24
- });
25
- module.exports = __toCommonJS(MovableGrid_stories_exports);
26
-
27
- // src/schematic-components/MovableGrid/index.tsx
28
- var MovableGrid = () => {
29
- return <div>asd</div>;
30
- };
31
-
32
- // src/schematic-components/MovableGrid/MovableGrid.stories.tsx
33
- var MovableGrid_stories_default = {
34
- title: "MovableGrid",
35
- component: MovableGrid
36
- };
37
- var Template = (args) => <MovableGrid {...args} />;
38
- var Primary = Template.bind({});
39
- Primary.args = {
40
- primary: true,
41
- label: "MovableGrid"
42
- };
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- Primary
46
- });
47
- //# sourceMappingURL=MovableGrid.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/schematic-components/MovableGrid/MovableGrid.stories.tsx","../../../src/schematic-components/MovableGrid/index.tsx"],"sourcesContent":["import React from \"react\"\nimport { ComponentStory, ComponentMeta } from \"@storybook/react\"\n\nimport { MovableGrid } from \"./\"\n\n// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export\nexport default {\n title: \"MovableGrid\",\n component: MovableGrid,\n // More on argTypes: https://storybook.js.org/docs/react/api/argtypes\n} as ComponentMeta<typeof MovableGrid>\n\n// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args\nconst Template: ComponentStory<typeof MovableGrid> = (args: any) => (\n <MovableGrid {...args} />\n)\n\nexport const Primary = Template.bind({})\n// More on args: https://storybook.js.org/docs/react/writing-stories/args\nPrimary.args = {\n primary: true,\n label: \"MovableGrid\",\n}\n","export const MovableGrid = () => {\n return <div>{`asd`}</div>\n}\nexport default MovableGrid\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,cAAc,MAAM;AAC/B,SAAO,CAAC,IAAK,GAAM,EAAX;AACV;;;ADIA,IAAO,8BAAQ;AAAA,EACb,OAAO;AAAA,EACP,WAAW;AAEb;AAGA,IAAM,WAA+C,CAAC,SACpD,CAAC,gBAAgB,MAAM;AAGlB,IAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAEvC,QAAQ,OAAO;AAAA,EACb,SAAS;AAAA,EACT,OAAO;AACT;","names":[]}
@@ -1,3 +0,0 @@
1
- declare const MovableGrid: () => JSX.Element;
2
-
3
- export { MovableGrid, MovableGrid as default };
@@ -1,34 +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/MovableGrid/index.tsx
20
- var MovableGrid_exports = {};
21
- __export(MovableGrid_exports, {
22
- MovableGrid: () => MovableGrid,
23
- default: () => MovableGrid_default
24
- });
25
- module.exports = __toCommonJS(MovableGrid_exports);
26
- var MovableGrid = () => {
27
- return <div>asd</div>;
28
- };
29
- var MovableGrid_default = MovableGrid;
30
- // Annotate the CommonJS export names for ESM import in node:
31
- 0 && (module.exports = {
32
- MovableGrid
33
- });
34
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/schematic-components/MovableGrid/index.tsx"],"sourcesContent":["export const MovableGrid = () => {\n return <div>{`asd`}</div>\n}\nexport default MovableGrid\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,cAAc,MAAM;AAC/B,SAAO,CAAC,IAAK,GAAM,EAAX;AACV;AACA,IAAO,sBAAQ;","names":[]}
@@ -1,10 +0,0 @@
1
- import { Project } from '../lib/types/core.js';
2
- import '../lib/types/source-component.js';
3
- import '../lib/types/util.js';
4
-
5
- interface Props {
6
- project: Project | Promise<Project>;
7
- }
8
- declare const ProjectComponent: ({ project: $project }: Props) => JSX.Element;
9
-
10
- export { ProjectComponent, ProjectComponent as default };