@tscircuit/3d-viewer 0.0.635 → 0.0.636
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 +1 -1
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import { AnyCircuitElement, PcbBoard } from 'circuit-json';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
|
-
import { GLTFExporterOptions } from 'three
|
|
4
|
+
import { GLTFExporterOptions } from 'three/examples/jsm/exporters/GLTFExporter.js';
|
|
5
5
|
import { ManifoldToplevel } from 'manifold-3d';
|
|
6
6
|
import { JSDOM } from 'jsdom';
|
|
7
7
|
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
package/dist/index.js
CHANGED
|
@@ -22061,7 +22061,7 @@ import * as THREE30 from "three";
|
|
|
22061
22061
|
// package.json
|
|
22062
22062
|
var package_default = {
|
|
22063
22063
|
name: "@tscircuit/3d-viewer",
|
|
22064
|
-
version: "0.0.
|
|
22064
|
+
version: "0.0.635",
|
|
22065
22065
|
repository: {
|
|
22066
22066
|
type: "git",
|
|
22067
22067
|
url: "https://github.com/tscircuit/3d-viewer"
|
|
@@ -40021,7 +40021,7 @@ function createSectionExport(root, spec) {
|
|
|
40021
40021
|
|
|
40022
40022
|
// src/hooks/useGlobalDownloadGltf.ts
|
|
40023
40023
|
import { useCallback as useCallback24 } from "react";
|
|
40024
|
-
import { GLTFExporter as GLTFExporter2 } from "three
|
|
40024
|
+
import { GLTFExporter as GLTFExporter2 } from "three/examples/jsm/exporters/GLTFExporter.js";
|
|
40025
40025
|
var useGlobalDownloadGltf = () => {
|
|
40026
40026
|
return useCallback24(() => {
|
|
40027
40027
|
const root = window.__TSCIRCUIT_THREE_OBJECT;
|
|
@@ -40708,7 +40708,9 @@ async function convertCircuitJsonTo3dSvg(circuitJson, options = {}) {
|
|
|
40708
40708
|
}
|
|
40709
40709
|
|
|
40710
40710
|
// src/hooks/exporter/gltf.ts
|
|
40711
|
-
import {
|
|
40711
|
+
import {
|
|
40712
|
+
GLTFExporter as GLTFExporter3
|
|
40713
|
+
} from "three/examples/jsm/exporters/GLTFExporter.js";
|
|
40712
40714
|
import { useEffect as useEffect55, useState as useState46, useMemo as useMemo39, useCallback as useCallback26 } from "react";
|
|
40713
40715
|
function useSaveGltfAs(options = {}) {
|
|
40714
40716
|
const parse2 = useParser(options);
|