remove unused imports

This commit is contained in:
casperlamboo 2016-04-21 22:22:59 +02:00
parent 4edb1985c8
commit 386a53849f
5 changed files with 5 additions and 43 deletions

View File

@ -20,12 +20,8 @@ System.config({
"babel": "npm:babel-core@5.8.38", "babel": "npm:babel-core@5.8.38",
"babel-runtime": "npm:babel-runtime@5.8.38", "babel-runtime": "npm:babel-runtime@5.8.38",
"casperlamboo/EventDispatcher": "github:casperlamboo/EventDispatcher@master", "casperlamboo/EventDispatcher": "github:casperlamboo/EventDispatcher@master",
"clipper-lib": "npm:clipper-lib@1.0.0",
"core-js": "npm:core-js@0.9.18", "core-js": "npm:core-js@0.9.18",
"json": "github:systemjs/plugin-json@0.1.0", "json": "github:systemjs/plugin-json@0.1.0",
"nodeca/js-yaml": "github:nodeca/js-yaml@3.5.5",
"read-yaml": "npm:read-yaml@1.0.0",
"systemjs/plugin-json": "github:systemjs/plugin-json@0.1.0",
"three.js": "github:mrdoob/three.js@r72", "three.js": "github:mrdoob/three.js@r72",
"github:Doodle3D/clipper-js@0.0.2": { "github:Doodle3D/clipper-js@0.0.2": {
"clipper-lib": "npm:clipper-lib@1.0.0" "clipper-lib": "npm:clipper-lib@1.0.0"
@ -33,22 +29,12 @@ System.config({
"github:jspm/nodelibs-assert@0.1.0": { "github:jspm/nodelibs-assert@0.1.0": {
"assert": "npm:assert@1.3.0" "assert": "npm:assert@1.3.0"
}, },
"github:jspm/nodelibs-path@0.1.0": {
"path-browserify": "npm:path-browserify@0.0.0"
},
"github:jspm/nodelibs-process@0.1.2": { "github:jspm/nodelibs-process@0.1.2": {
"process": "npm:process@0.11.2" "process": "npm:process@0.11.2"
}, },
"github:jspm/nodelibs-util@0.1.0": { "github:jspm/nodelibs-util@0.1.0": {
"util": "npm:util@0.10.3" "util": "npm:util@0.10.3"
}, },
"npm:argparse@1.0.7": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"sprintf-js": "npm:sprintf-js@1.0.3",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:assert@1.3.0": { "npm:assert@1.3.0": {
"util": "npm:util@0.10.3" "util": "npm:util@0.10.3"
}, },
@ -66,24 +52,9 @@ System.config({
"npm:inherits@2.0.1": { "npm:inherits@2.0.1": {
"util": "github:jspm/nodelibs-util@0.1.0" "util": "github:jspm/nodelibs-util@0.1.0"
}, },
"npm:js-yaml@3.5.5": {
"argparse": "npm:argparse@1.0.7",
"esprima": "npm:esprima@2.7.2",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2",
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:path-browserify@0.0.0": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:process@0.11.2": { "npm:process@0.11.2": {
"assert": "github:jspm/nodelibs-assert@0.1.0" "assert": "github:jspm/nodelibs-assert@0.1.0"
}, },
"npm:read-yaml@1.0.0": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"js-yaml": "npm:js-yaml@3.5.5",
"xtend": "npm:xtend@4.0.1"
},
"npm:util@0.10.3": { "npm:util@0.10.3": {
"inherits": "npm:inherits@2.0.1", "inherits": "npm:inherits@2.0.1",
"process": "github:jspm/nodelibs-process@0.1.2" "process": "github:jspm/nodelibs-process@0.1.2"

View File

@ -7,10 +7,6 @@
"dependencies": { "dependencies": {
"Doodle3D/clipper-js": "github:Doodle3D/clipper-js@^0.0.2", "Doodle3D/clipper-js": "github:Doodle3D/clipper-js@^0.0.2",
"casperlamboo/EventDispatcher": "github:casperlamboo/EventDispatcher@master", "casperlamboo/EventDispatcher": "github:casperlamboo/EventDispatcher@master",
"clipper-lib": "npm:clipper-lib@^1.0.0",
"nodeca/js-yaml": "github:nodeca/js-yaml@^3.3.1",
"read-yaml": "npm:read-yaml@^1.0.0",
"systemjs/plugin-json": "github:systemjs/plugin-json@^0.1.0",
"three.js": "github:mrdoob/three.js@r72" "three.js": "github:mrdoob/three.js@r72"
}, },
"devDependencies": { "devDependencies": {

View File

@ -1,10 +1,5 @@
import Slicer from './slicer.js'; import Slicer from './slicer.js';
import SlicerWorker from './slicerworker.js'; import SlicerWorker from './slicerworker.js';
import Settings from './settings.js'; import Settings from './settings.js';
import ClipperLib from 'clipper-lib';
ClipperLib.Error = function (message) {
console.error(message);
};
export { Slicer, SlicerWorker, Settings }; export { Slicer, SlicerWorker, Settings };

View File

@ -1,5 +1,5 @@
import getFillTemplate from './getFillTemplate.js'; import getFillTemplate from './getFillTemplate.js';
import Paths from '../paths.js'; import Shape from 'Doodle3D/clipper-js';
const scale = 100; const scale = 100;
@ -67,7 +67,7 @@ export default function generateInfills(slices, settings) {
var highFillArea = fillArea; var highFillArea = fillArea;
} }
var fill = new Paths([], false); var fill = new Shape([], false);
if (lowFillArea && lowFillArea.length > 0) { if (lowFillArea && lowFillArea.length > 0) {
var bounds = lowFillArea.bounds(); var bounds = lowFillArea.bounds();

View File

@ -1,5 +1,5 @@
import getFillTemplate from './getFillTemplate.js'; import getFillTemplate from './getFillTemplate.js';
import Paths from '../paths.js'; import Shape from 'Doodle3D/clipper-js';
const scale = 100; const scale = 100;
@ -22,7 +22,7 @@ export default function generateSupport(slices, settings) {
nozzleDiameter *= scale; nozzleDiameter *= scale;
var supportDistanceLayers = Math.max(Math.ceil(supportDistanceY / layerHeight), 1); var supportDistanceLayers = Math.max(Math.ceil(supportDistanceY / layerHeight), 1);
var supportAreas = new Paths([], true); var supportAreas = new Shape([], true);
for (var layer = slices.length - 1 - supportDistanceLayers; layer >= 0; layer --) { for (var layer = slices.length - 1 - supportDistanceLayers; layer >= 0; layer --) {
var currentSlice = slices[layer]; var currentSlice = slices[layer];