replace event dispatcher

This commit is contained in:
casperlamboo 2016-07-19 14:32:48 +02:00
parent d016aa345b
commit 5f2a3a6328
3 changed files with 3 additions and 8 deletions

View File

@ -27,11 +27,6 @@ SystemJS.config({
} }
}, },
transpiler: "plugin-babel", transpiler: "plugin-babel",
babelOptions: {
"optional": [
"runtime"
]
},
packages: { packages: {
"slicer": { "slicer": {
"main": "index.js" "main": "index.js"
@ -52,9 +47,9 @@ SystemJS.config({
"github:*/*.json" "github:*/*.json"
], ],
map: { map: {
"EventDispatcher": "github:mrdoob/eventdispatcher.js@1.0.0",
"json": "github:systemjs/plugin-json@0.1.2", "json": "github:systemjs/plugin-json@0.1.2",
"Doodle3D/clipper-js": "github:Doodle3D/clipper-js@master", "Doodle3D/clipper-js": "github:Doodle3D/clipper-js@master",
"casperlamboo/EventDispatcher": "github:casperlamboo/EventDispatcher@master",
"three.js": "github:mrdoob/three.js@r72" "three.js": "github:mrdoob/three.js@r72"
}, },
packages: { packages: {

View File

@ -7,7 +7,7 @@
}, },
"dependencies": { "dependencies": {
"Doodle3D/clipper-js": "github:Doodle3D/clipper-js@master", "Doodle3D/clipper-js": "github:Doodle3D/clipper-js@master",
"casperlamboo/EventDispatcher": "github:casperlamboo/EventDispatcher@master", "EventDispatcher": "github:mrdoob/eventdispatcher.js@^1.0.0",
"json": "github:systemjs/plugin-json@^0.1.2", "json": "github:systemjs/plugin-json@^0.1.2",
"three.js": "github:mrdoob/three.js@r72" "three.js": "github:mrdoob/three.js@r72"
}, },

View File

@ -1,5 +1,5 @@
import THREE from 'three.js'; import THREE from 'three.js';
import EventDispatcher from 'casperlamboo/EventDispatcher'; import EventDispatcher from 'EventDispatcher';
import calculateLayersIntersections from './sliceActions/calculateLayersIntersections.js'; import calculateLayersIntersections from './sliceActions/calculateLayersIntersections.js';
import createLines from './sliceActions/createLines.js'; import createLines from './sliceActions/createLines.js';
import generateInfills from './sliceActions/generateInfills.js'; import generateInfills from './sliceActions/generateInfills.js';