Skip to content

Commit

Permalink
[twisty] Fix build by vendoring stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Sep 27, 2020
1 parent 118aad3 commit e03fc36
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/twisty/dom/viewers/Twisty3DCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { twisty3DCanvasCSS } from "./Twisty3DCanvas.css";
import { TwistyOrbitControls } from "./TwistyOrbitControls";
import { TwistyViewerElement } from "./TwistyViewerElement";
import { customElementsShim } from "../element/node-custom-element-shims";
import Stats from "three/examples/jsm/libs/stats.module";
import Stats from "../../../vendor/node_modules/three/examples/jsm/libs/stats.module";

let SHOW_STATS = false;
// Show render stats for newly contructed renderers.
Expand Down
24 changes: 24 additions & 0 deletions src/vendor/node_modules/three/examples/jsm/libs/stats.module.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

171 changes: 171 additions & 0 deletions src/vendor/node_modules/three/examples/jsm/libs/stats.module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e03fc36

Please sign in to comment.