diff --git a/package.json b/package.json index f98f47d9..f48a6a14 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "compile_lib": "babel -—presets es2015 -d dist/ src/app/", "compile_orbit": "node_modules/.bin/browserify ./src/app/renderer/orbit_demo.js -t babelify --outfile ./orbit_bundle.js", "compile": "node_modules/.bin/browserify ./src/app/appSetup.js -t babelify --outfile ./3DuFapp.js -d -t [ babelify ]", - "publish": "node_modules/.bin/browserify ./src/app/appSetup.js -t babelify --outfile ./3DuFapp.js --debug -t [ babelify ] && cat ./3DuFapp.js | exorcist ./3DuFapp.js.map && echo \"//# sourceMappingUrl=./3DuFapp.js.map\" >> ./3DuFapp.js", + "publish": "node_modules/.bin/browserify ./src/app/appSetup.js -t babelify --outfile ./3DuFapp.js --debug -t [ babelify ] && cat ./3DuFapp.js | exorcist https://3duf.org/3DuFapp.js.map && echo \"//# sourceMappingUrl=./3DuFapp.js.map\" >> ./3DuFapp.js", "test": "node_modules/.bin/mocha --recursive --compilers js:babel/register -R spec ./src/test/", "watch_compile": "node_modules/.bin/watchify ./src/app/appSetup.js -t babelify -v --outfile ./3DuFapp.js -d -t [ babelify ]", "watch_test": "node_modules/.bin/mocha --watch --recursive --compilers js:babel/register -R min ./src/test/", diff --git a/src/app/examples/dafdtemplate.json b/src/app/examples/dafdtemplate.json new file mode 100644 index 00000000..c44e7d60 --- /dev/null +++ b/src/app/examples/dafdtemplate.json @@ -0,0 +1 @@ +{"name":"DAFD Template","params":{"width":135000,"length":85000},"components":[{"id":"e958b4d0-6155-11e9-89ad-d58be75aeb6f","name":"Port_in","entity":"PORT","params":{"position":[30000,40000],"portRadius":1998,"height":1100},"xspan":3996,"yspan":3996,"ports":[]},{"id":"eadf7be0-6155-11e9-89ad-d58be75aeb6f","name":"Port_out","entity":"PORT","params":{"position":[110000,40000],"portRadius":1998,"height":1100},"xspan":3996,"yspan":3996,"ports":[]},{"id":"ec125690-6155-11e9-89ad-d58be75aeb6f","name":"Port_oil1","entity":"PORT","params":{"position":[60000,10000],"portRadius":1998,"height":1100},"xspan":3996,"yspan":3996,"ports":[]},{"id":"f0839360-6155-11e9-89ad-d58be75aeb6f","name":"Port_oil2","entity":"PORT","params":{"position":[60000,70000],"portRadius":1998,"height":1100},"xspan":3996,"yspan":3996,"ports":[]},{"id":"b6d5c690-d628-11e9-9185-859b5727feb8","name":"DropletGen_1","entity":"NOZZLE DROPLET GENERATOR","params":{"position":[60000,40000],"orificeSize":200,"orificeLength":400,"oilInputWidth":800,"waterInputWidth":600,"outputWidth":600,"outputLength":600,"height":250},"xspan":1800,"yspan":600,"ports":[{"x":400,"y":-300,"layer":"FLOW","label":"1"},{"x":1800,"y":0,"layer":"FLOW","label":"2"},{"x":400,"y":300,"layer":"FLOW","label":"3"},{"x":0,"y":0,"layer":"FLOW","label":"4"}]}],"connections":[],"features":[{"name":"flow","color":"indigo","params":{"z_offset":0,"flip":false},"features":{"e957f180-6155-11e9-89ad-d58be75aeb6f":{"id":"e957f180-6155-11e9-89ad-d58be75aeb6f","name":"New Feature","macro":"Port","set":"Basic","referenceID":"e958b4d0-6155-11e9-89ad-d58be75aeb6f","params":{"position":[30000,40000],"portRadius":1998,"height":1100},"dxfData":[],"type":"XY"},"eadf06b0-6155-11e9-89ad-d58be75aeb6f":{"id":"eadf06b0-6155-11e9-89ad-d58be75aeb6f","name":"New Feature","macro":"Port","set":"Basic","referenceID":"eadf7be0-6155-11e9-89ad-d58be75aeb6f","params":{"position":[110000,40000],"portRadius":1998,"height":1100},"dxfData":[],"type":"XY"},"ec119340-6155-11e9-89ad-d58be75aeb6f":{"id":"ec119340-6155-11e9-89ad-d58be75aeb6f","name":"New Feature","macro":"Port","set":"Basic","referenceID":"ec125690-6155-11e9-89ad-d58be75aeb6f","params":{"position":[60000,10000],"portRadius":1998,"height":1100},"dxfData":[],"type":"XY"},"f082f720-6155-11e9-89ad-d58be75aeb6f":{"id":"f082f720-6155-11e9-89ad-d58be75aeb6f","name":"New Feature","macro":"Port","set":"Basic","referenceID":"f0839360-6155-11e9-89ad-d58be75aeb6f","params":{"position":[60000,70000],"portRadius":1998,"height":1100},"dxfData":[],"type":"XY"},"2ea7a050-6156-11e9-89ad-d58be75aeb6f":{"id":"2ea7a050-6156-11e9-89ad-d58be75aeb6f","name":"2ea7a050-6156-11e9-89ad-d58be75aeb6f","macro":"EDGE","set":"Basic","dxfData":[],"type":"EDGE"},"a7c90920-d3f1-11e9-ad52-c581dcc5e148":{"id":"a7c90920-d3f1-11e9-ad52-c581dcc5e148","name":"a7c90920-d3f1-11e9-ad52-c581dcc5e148","macro":"EDGE","set":"Basic","dxfData":[],"type":"EDGE"},"1643a8b0-d3f2-11e9-ad52-c581dcc5e148":{"id":"1643a8b0-d3f2-11e9-ad52-c581dcc5e148","name":"Transition_3","macro":"Transition","set":"Basic","params":{"position":[30500,40000],"cw1":2000,"cw2":900,"length":10000,"rotation":270,"height":250},"dxfData":[],"type":"XY"},"2e07a4b0-d3f2-11e9-ad52-c581dcc5e148":{"id":"2e07a4b0-d3f2-11e9-ad52-c581dcc5e148","name":"Transition_4","macro":"Transition","set":"Basic","params":{"position":[110000,40000],"cw1":2000,"cw2":900,"length":10000,"rotation":90,"height":250},"dxfData":[],"type":"XY"},"313eb3d0-d3f2-11e9-ad52-c581dcc5e148":{"id":"313eb3d0-d3f2-11e9-ad52-c581dcc5e148","name":"Transition_5","macro":"Transition","set":"Basic","params":{"position":[60000,70000],"cw1":2000,"cw2":800,"length":10000,"rotation":180,"height":250},"dxfData":[],"type":"XY"},"336b57d0-d3f2-11e9-ad52-c581dcc5e148":{"id":"336b57d0-d3f2-11e9-ad52-c581dcc5e148","name":"Transition_6","macro":"Transition","set":"Basic","params":{"position":[60000,10000],"cw1":2000,"cw2":800,"length":10000,"height":250},"dxfData":[],"type":"XY"},"b6d50340-d628-11e9-9185-859b5727feb8":{"id":"b6d50340-d628-11e9-9185-859b5727feb8","name":"New Feature","macro":"DropletGen","set":"Basic","referenceID":"b6d5c690-d628-11e9-9185-859b5727feb8","params":{"position":[60000,40000],"orificeSize":200,"orificeLength":400,"oilInputWidth":800,"waterInputWidth":600,"outputWidth":600,"outputLength":600,"height":250},"dxfData":[],"type":"XY"}}},{"name":"control","color":"red","params":{"z_offset":1200,"flip":true},"features":{"2ea7a050-6156-11e9-89ad-d58be75aeb6f":{"id":"2ea7a050-6156-11e9-89ad-d58be75aeb6f","name":"2ea7a050-6156-11e9-89ad-d58be75aeb6f","macro":"EDGE","set":"Basic","dxfData":[],"type":"EDGE"},"a7c90920-d3f1-11e9-ad52-c581dcc5e148":{"id":"a7c90920-d3f1-11e9-ad52-c581dcc5e148","name":"a7c90920-d3f1-11e9-ad52-c581dcc5e148","macro":"EDGE","set":"Basic","dxfData":[],"type":"EDGE"}}},{"name":"cells","color":"indigo","params":{"z_offset":2000,"flip":false},"features":{"2ea7a050-6156-11e9-89ad-d58be75aeb6f":{"id":"2ea7a050-6156-11e9-89ad-d58be75aeb6f","name":"2ea7a050-6156-11e9-89ad-d58be75aeb6f","macro":"EDGE","set":"Basic","dxfData":[],"type":"EDGE"},"a7c90920-d3f1-11e9-ad52-c581dcc5e148":{"id":"a7c90920-d3f1-11e9-ad52-c581dcc5e148","name":"a7c90920-d3f1-11e9-ad52-c581dcc5e148","macro":"EDGE","set":"Basic","dxfData":[],"type":"EDGE"}}}],"version":1,"groups":[],"customComponents":{}} \ No newline at end of file