diff --git a/dist/index.html b/dist/index.html index 5368135..a15d4e1 100644 --- a/dist/index.html +++ b/dist/index.html @@ -38,13 +38,12 @@
+
- -
\ No newline at end of file diff --git a/dist/redux.js b/dist/redux.js deleted file mode 100644 index 3539190..0000000 --- a/dist/redux.js +++ /dev/null @@ -1,18 +0,0 @@ - -// import { createStore, applyMiddleware } from 'redux' -// import logger from 'redux-logger' - - - -function reducer(state = {}, action) { - switch (action.type) { - case 'toggle': - return { ...state, toggle: action.payload } - case 'rx-new-sketch': - return { ...state, sketches: [...state.sketches, action.idx] } - default: - return state - } -} -var bbb = 'bbbx' -var store = Redux.createStore(reducer, {sketches:[]}, Redux.applyMiddleware(reduxLogger.logger)) diff --git a/src/Renderer.js b/src/Renderer.js index ca429c2..0d224b5 100644 --- a/src/Renderer.js +++ b/src/Renderer.js @@ -13,9 +13,9 @@ import { add3DPoint } from './datums' export function Renderer(store) { this.store = store - // this.stats = new Stats(); - // this.stats.showPanel(0); // 0: fps, 1: ms, 2: mb, 3+: custom - // document.getElementById('stats').appendChild(this.stats.dom); + this.stats = new Stats(); + this.stats.showPanel(0); // 0: fps, 1: ms, 2: mb, 3+: custom + document.getElementById('stats').appendChild(this.stats.dom); this.canvas = document.querySelector('#c'); this.renderer = new THREE.WebGLRenderer({ canvas: this.canvas }); @@ -123,7 +123,7 @@ export function Renderer(store) { } function render() { - // this.stats.begin(); + this.stats.begin(); if (this.resizeCanvas(this.renderer)) { const canvas = this.renderer.domElement; this.camera.left = -canvas.clientWidth / canvas.clientHeight; @@ -131,7 +131,7 @@ function render() { this.camera.updateProjectionMatrix(); } this.renderer.render(scene, this.camera); - // this.stats.end(); + this.stats.end(); } function resizeCanvas(renderer) { diff --git a/src/sketcher/Sketcher.js b/src/sketcher/Sketcher.js index 59c841c..ea43a67 100644 --- a/src/sketcher/Sketcher.js +++ b/src/sketcher/Sketcher.js @@ -166,7 +166,7 @@ class Sketcher extends THREE.Group { var string = JSON.stringify(this.toJSON()); window.string = string; alert("Size of sample is: " + string.length); - var compressed = LZString.compress(string); + window.compressed = LZString.compress(string); alert("Size of compressed sample is: " + compressed.length); string = LZString.decompress(compressed); alert("Sample is: " + string);