From 1fa907fbe28ccfcf030ad5a72d26746ecfb579c9 Mon Sep 17 00:00:00 2001 From: Christophe BOSSE Date: Wed, 31 Oct 2018 15:12:08 +0100 Subject: [PATCH 1/3] Fixed releasing a vertex or a line --- src/class/line.js | 10 ++++++++-- src/class/vertex.js | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/class/line.js b/src/class/line.js index 1fe19ec6..b844ec41 100644 --- a/src/class/line.js +++ b/src/class/line.js @@ -122,7 +122,10 @@ class Line{ //add splitted lines to the original line's group let lineGroups = state .getIn(['scene', 'groups']) - .filter( group => group.getIn(['elements', layerID, 'lines']).contains(lineID) ); + .filter( group => { + const lines = group.getIn(['elements', layerID, 'lines']); + return lines && lines.contains(lineID); + }); lineGroups.forEach( group => { state = Group.addElement( state, group.id, layerID, 'lines', line0.id ).updatedState; @@ -481,7 +484,10 @@ class Line{ let lineGroups = state //get groups membership if present .getIn(['scene', 'groups']) - .filter( group => group.getIn(['elements', layerID, 'lines']).contains(lineID) ); + .filter( group => { + const lines = group.getIn(['elements', layerID, 'lines']); + return lines && lines.contains(lineID); + }); state = Layer.mergeEqualsVertices( state, layerID, line.vertices.get(0) ).updatedState; state = Layer.mergeEqualsVertices( state, layerID, line.vertices.get(1) ).updatedState; diff --git a/src/class/vertex.js b/src/class/vertex.js index a2dadbd5..b3592008 100644 --- a/src/class/vertex.js +++ b/src/class/vertex.js @@ -165,7 +165,10 @@ class Vertex{ let lineProps = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'properties']); let lineGroups = reducedState //get groups membership if present .getIn(['scene', 'groups']) - .filter( group => group.getIn(['elements', layerID, 'lines']).contains(lineID) ); + .filter( group => { + const lines = group.getIn(['elements', layerID, 'lines']); + return lines && lines.contains(lineID); + }); reducedState = Layer.removeZeroLengthLines( reducedState, layerID ).updatedState; reducedState = Layer.mergeEqualsVertices( reducedState, layerID, vertexID ).updatedState; From 818b7d580bad1d3bb458e018e368203b17d40e14 Mon Sep 17 00:00:00 2001 From: Christophe BOSSE Date: Thu, 1 Nov 2018 19:57:40 +0100 Subject: [PATCH 2/3] Fixed missing tabs.css --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2abeb3e1..ead4d954 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "start": "webpack-dev-server --inline --config demo/webpack.config.js --port 9000 --mode development", "build-demo": "webpack --config demo/webpack.config.js --mode production", "build-commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib", - "build-es": "cross-env BABEL_ENV=es babel src --out-dir es", + "build-es": "cross-env BABEL_ENV=es babel src --copy-files --out-dir es", "build": "npm run clean && npm run build-demo && npm run build-commonjs && npm run build-es", "add-build-to-vcs": "git add -A src/version.js && git add -A es && git add -A lib && git add -A demo/dist", "clean": "rimraf lib es demo/dist", From 6d3971aa6463e2e65993c89b8564ac9e6cd936de Mon Sep 17 00:00:00 2001 From: Christophe BOSSE Date: Thu, 1 Nov 2018 20:05:46 +0100 Subject: [PATCH 3/3] Updated build --- demo/dist/37cefb9b14a5dabb56df.app.js | 2 ++ demo/dist/37cefb9b14a5dabb56df.app.js.map | 1 + demo/dist/6b94cd3f66e35597e6af.app.js | 2 -- demo/dist/6b94cd3f66e35597e6af.app.js.map | 1 - demo/dist/index.html | 2 +- es/class/line.js | 6 +++-- es/class/vertex.js | 3 ++- es/styles/tabs.css | 30 +++++++++++++++++++++++ lib/class/line.js | 6 +++-- lib/class/vertex.js | 3 ++- 10 files changed, 46 insertions(+), 10 deletions(-) create mode 100644 demo/dist/37cefb9b14a5dabb56df.app.js create mode 100644 demo/dist/37cefb9b14a5dabb56df.app.js.map delete mode 100644 demo/dist/6b94cd3f66e35597e6af.app.js delete mode 100644 demo/dist/6b94cd3f66e35597e6af.app.js.map create mode 100644 es/styles/tabs.css diff --git a/demo/dist/37cefb9b14a5dabb56df.app.js b/demo/dist/37cefb9b14a5dabb56df.app.js new file mode 100644 index 00000000..01b16599 --- /dev/null +++ b/demo/dist/37cefb9b14a5dabb56df.app.js @@ -0,0 +1,2 @@ +!function(e){function t(t){for(var r,i,l=t[0],s=t[1],u=t[2],c=0,p=[];c3)switch(m){case"replace":!function e(t,n,r,a,o,m,y){var g=[];switch(t[3]){case"vertices":if("selected"!==t[5]){var x=n.getIn(["vertices",t[4]]);if("x"!==t[5]&&"y"!==t[5]||(x.lines.forEach(function(t){var i=m.getIn(["layers",n.id,"lines",t,"holes"]);return i&&i.forEach(function(t){e([0,0,0,"holes",t,"selected"],n,r,a,o,m,y)}),e([0,0,0,"lines",t],n,r,a,o,m,y)}),x.areas.forEach(function(t){return e([0,0,0,"areas",t],n,r,a,o,m,y)})),"areas"===t[5]){var w=x.getIn(["areas",~~t[6]]);e([0,0,0,"areas",w],n,r,a,o,m,y)}}break;case"holes":var M=n.getIn(["holes",t[4]]);if(y.getElement(M.type).updateRender3D)g.push(function(e,t,n,r,a,o,i,l,s,u){var d=r.getIn(["holes",a]),c=t.getIn(["layers",r.id,"holes",a]),p=n.sceneGraph.layers[r.id].holes[a];return p?i.getElement(d.type).updateRender3D(d,r,e,p,c,o,s,u):null}(o,m,r,n,t[4],t.slice(5),y,a.holesActions,function(){return l(r,n.id,M.id)},function(){return c(o,r,n,M.id,y,a.holesActions)}));else{var q=M.line;"selected"===t[5]?(l(r,n.id,M.id),g.push(c(o,r,n,M.id,y,a.holesActions))):(n.getIn(["lines",q,"holes"]).forEach(function(e){l(r,n.id,e)}),s(r,n.id,q),g.push(p(o,r,n,q,y,a.linesActions)),n.getIn(["lines",q,"holes"]).forEach(function(e){g.push(c(o,r,n,e,y,a.holesActions))}))}break;case"lines":var _=n.getIn(["lines",t[4]]);y.getElement(_.type).updateRender3D?g.push(function(e,t,n,r,a,o,i,l,s,u){var d=r.getIn(["lines",a]),c=t.getIn(["layers",r.id,"lines",a]),p=n.sceneGraph.layers[r.id].lines[a];return p?i.getElement(d.type).updateRender3D(d,r,e,p,c,o,s,u):null}(o,m,r,n,t[4],t.slice(5),y,a.linesActions,function(){return s(r,n.id,t[4])},function(){return p(o,r,n,t[4],y,a.linesActions)})):(s(r,n.id,t[4]),g.push(p(o,r,n,t[4],y,a.linesActions)));break;case"areas":var b=n.getIn(["areas",t[4]]);y.getElement(b.type).updateRender3D?g.push(function(e,t,n,r,a,o,i,l,s,u){var d=r.getIn(["areas",a]),c=t.getIn(["layers",r.id,"areas",a]),p=n.sceneGraph.layers[r.id].areas[a];return p?i.getElement(d.type).updateRender3D(d,r,e,p,c,o,s,u):null}(o,m,r,n,t[4],t.slice(5),y,a.areaActions,function(){return u(r,n.id,t[4])},function(){return h(o,r,n,t[4],y,a.areaActions)})):(r.sceneGraph.layers[n.id].areas[t[4]]&&u(r,n.id,t[4]),g.push(h(o,r,n,t[4],y,a.areaActions)));break;case"items":var E=n.getIn(["items",t[4]]);y.getElement(E.type).updateRender3D?g.push(function(e,t,n,r,a,o,i,l,s,u){var d=r.getIn(["items",a]),c=t.getIn(["layers",r.id,"items",a]),p=n.sceneGraph.layers[r.id].items[a];return p?i.getElement(d.type).updateRender3D(d,r,e,p,c,o,s,u):null}(o,m,r,n,t[4],t.slice(5),y,a.itemsActions,function(){return d(r,n.id,t[4])},function(){return f(o,r,n,t[4],y,a.itemsActions)})):(d(r,n.id,t[4]),g.push(f(o,r,n,t[4],y,a.itemsActions)));break;case"visible":if(n.visible)g=g.concat(i(n,r,o,a,y));else{var O=r.sceneGraph.layers[n.id];for(var I in O.lines)s(r,n.id,I);for(var P in O.areas)u(r,n.id,P);for(var T in O.items)d(r,n.id,T);for(var G in O.holes)l(r,n.id,G)}break;case"opacity":case"altitude":var S=r.sceneGraph.layers[n.id];for(var D in S.lines)s(r,n.id,D);for(var R in S.areas)u(r,n.id,R);for(var A in S.items)d(r,n.id,A);for(var L in S.holes)l(r,n.id,L);g=g.concat(i(n,r,o,a,y))}Promise.all(g).then(function(e){return v(r)})}(y,x,e,a,t,n,o);break;case"add":!function(e,t,n,r,a,o,i){if(5===e.length){var l=null,s=null;switch(e[3]){case"lines":l=p,s=r.linesActions;break;case"areas":l=h,s=r.areaActions;break;case"items":l=f,s=r.itemsActions;break;case"holes":l=c,s=r.holesActions}l&&l(a,n,t,e[4],i,s).then(function(){return v(n)})}}(y,x,e,a,t,0,o);break;case"remove":!function(e,t,n,r,a,o,i){var h=[];switch(e[3]){case"lines":var f=e[4];o.getIn(["layers",t.id,"lines",f,"holes"]).forEach(function(e){l(n,t.id,e)}),s(n,t.id,f),e.length>5&&(h.push(p(a,n,t,f,i,r.linesActions)),t.getIn(["lines",f,"holes"]).forEach(function(e){h.push(c(a,n,t,e,i,r.holesActions))}));break;case"areas":5===e.length&&u(n,t.id,e[4]);break;case"items":5===e.length&&d(n,t.id,e[4])}Promise.all(h).then(function(e){return v(n)})}(y,x,e,a,t,n,o)}}else if("selectedLayer"===y[1]){var w=g,M=t.getIn(["layers",w]);if(!M.visible){var q=i(M,e,t,a,o);Promise.all(q).then(function(){return v(e)})}var _=e.sceneGraph.layers[n.selectedLayer];if(_&&!_.visible){for(var b in _.lines)s(e,_.id,b);for(var E in _.areas)u(e,_.id,E);for(var O in _.items)d(e,_.id,O);for(var I in _.holes)l(e,_.id,I)}}}),e};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(755)),o=n(68);function i(e,t,n,r,a){var o=[];return t.sceneGraph.layers[e.id]={id:e.id,lines:{},holes:{},areas:{},items:{},visible:e.visible,altitude:e.altitude},t.sceneGraph.busyResources.layers[e.id]={id:e.id,lines:{},holes:{},areas:{},items:{}},e.lines.forEach(function(i){o.push(p(n,t,e,i.id,a,r.linesActions)),i.holes.forEach(function(i){o.push(c(n,t,e,i,a,r.holesActions))})}),e.areas.forEach(function(i){o.push(h(n,t,e,i.id,a,r.areaActions))}),e.items.forEach(function(i){o.push(f(n,t,e,i.id,a,r.itemsActions))}),o}function l(e,t,n){if(e.sceneGraph.busyResources.layers[t].holes[n])setTimeout(function(){return l(e,t,n)},100);else{e.sceneGraph.busyResources.layers[t].holes[n]=!0;var r=e.sceneGraph.layers[t].holes[n];r&&(e.plan.remove(r),(0,o.disposeObject)(r),delete e.sceneGraph.layers[t].holes[n],delete e.sceneGraph.LODs[n],r=null,v(e)),e.sceneGraph.busyResources.layers[t].holes[n]=!1}}function s(e,t,n){if(e.sceneGraph.busyResources.layers[t].lines[n])setTimeout(function(){return s(e,t,n)},100);else{e.sceneGraph.busyResources.layers[t].lines[n]=!0;var r=e.sceneGraph.layers[t].lines[n];r&&(e.plan.remove(r),(0,o.disposeObject)(r),delete e.sceneGraph.layers[t].lines[n],delete e.sceneGraph.LODs[n],r=null,v(e)),e.sceneGraph.busyResources.layers[t].lines[n]=!1}}function u(e,t,n){if(e.sceneGraph.busyResources.layers[t].areas[n])setTimeout(function(){return u(e,t,n)},100);else{e.sceneGraph.busyResources.layers[t].areas[n]=!0;var r=e.sceneGraph.layers[t].areas[n];r&&(e.plan.remove(r),(0,o.disposeObject)(r),delete e.sceneGraph.layers[t].areas[n],delete e.sceneGraph.LODs[n],r=null,v(e)),e.sceneGraph.busyResources.layers[t].areas[n]=!1}}function d(e,t,n){if(e.sceneGraph.busyResources.layers[t].items[n])setTimeout(function(){return d(e,t,n)},100);else{e.sceneGraph.busyResources.layers[t].items[n]=!0;var r=e.sceneGraph.layers[t].items[n];r&&(e.plan.remove(r),(0,o.disposeObject)(r),delete e.sceneGraph.layers[t].items[n],delete e.sceneGraph.LODs[n],r=null,v(e)),e.sceneGraph.busyResources.layers[t].items[n]=!1}}function c(e,t,n,a,o,i){var l=n.getIn(["holes",a]);return o.getElement(l.type).render3D(l,n,e).then(function(e){e instanceof r.LOD&&(t.sceneGraph.LODs[a]=e);var o=new r.Object3D;o.name="pivot",o.add(e);var s=n.getIn(["lines",l.line]),u=n.vertices.get(s.vertices.get(0)),d=n.vertices.get(s.vertices.get(1)),c=l.offset;if(u.x>d.x){var p=u;u=d,d=p,c=1-c}var h=Math.sqrt(Math.pow(u.x-d.x,2)+Math.pow(u.y-d.y,2)),f=Math.asin((d.y-u.y)/h),v=(new r.Box3).setFromObject(o),g=[(v.max.x-v.min.x)/2+v.min.x,(v.max.y-v.min.y)/2+v.min.y,(v.max.z-v.min.z)/2+v.min.z],x=l.properties.getIn(["altitude","length"]),w=l.properties.getIn(["height","length"]);o.rotation.y=f,o.position.x=u.x+h*c*Math.cos(f)-g[2]*Math.sin(f),o.position.y=x+w/2-g[1]+n.altitude,o.position.z=-u.y-h*c*Math.sin(f)-g[2]*Math.cos(f),t.plan.add(o),t.sceneGraph.layers[n.id].holes[l.id]=o,m(o,function(){return i.selectHole(n.id,l.id)});var M=n.opacity;l.selected&&(M=1),y(o,M)})}function p(e,t,n,a,o,i){if(!t.sceneGraph.busyResources.layers[n.id].lines[a]){t.sceneGraph.busyResources.layers[n.id].lines[a]=!0;var l=n.getIn(["lines",a]),s=n.vertices.get(l.vertices.get(0)),u=n.vertices.get(l.vertices.get(1));if(s.x>u.x){var d=s;s=u,u=d}return o.getElement(l.type).render3D(l,n,e).then(function(e){e instanceof r.LOD&&(t.sceneGraph.LODs[l.id]=e);var o=new r.Object3D;o.name="pivot",o.add(e),o.position.x=s.x,o.position.y=n.altitude,o.position.z=-s.y,t.plan.add(o),t.sceneGraph.layers[n.id].lines[a]=o,m(o,function(){return i.selectLine(n.id,l.id)});var u=n.opacity;l.selected&&(u=1),y(o,u),t.sceneGraph.busyResources.layers[n.id].lines[a]=!1})}setTimeout(function(){return p(e,t,n,a,o,i)},100)}function h(e,t,n,a,o,i){if(!t.sceneGraph.busyResources.layers[n.id].areas[a]){t.sceneGraph.busyResources.layers[n.id].areas[a]=!0;var l=n.getIn(["areas",a]),s=function(){return i.selectArea(n.id,a)};return o.getElement(l.type).render3D(l,n,e).then(function(e){e instanceof r.LOD&&(t.sceneGraph.LODs[a]=e);var o=new r.Object3D;o.name="pivot",o.add(e),o.position.y=n.altitude,t.plan.add(o),t.sceneGraph.layers[n.id].areas[a]=o,m(o,s);var i=n.opacity;l.selected&&(i=1),y(o,i),t.sceneGraph.busyResources.layers[n.id].areas[a]=!1})}setTimeout(function(){return h(e,t,n,a,o,i)},100)}function f(e,t,n,a,o,i){var l=n.getIn(["items",a]);return o.getElement(l.type).render3D(l,n,e).then(function(e){e instanceof r.LOD&&(t.sceneGraph.LODs[a]=e);var o=new r.Object3D;o.name="pivot",o.add(e),o.rotation.y=l.rotation*Math.PI/180,o.position.x=l.x,o.position.y=n.altitude,o.position.z=-l.y,m(e,function(){i.selectItem(n.id,l.id)});var s=n.opacity;l.selected&&(s=1),y(o,s),t.plan.add(o),t.sceneGraph.layers[n.id].items[l.id]=o})}function m(e,t){e.traverse(function(e){e instanceof r.Mesh&&(e.interact=t)})}function y(e,t){e.traverse(function(e){e instanceof r.Mesh&&(e.material instanceof r.MultiMaterial?e.material.materials.forEach(function(e){e.transparent=!0,e.maxOpacity?e.opacity=Math.min(e.maxOpacity,t):e.opacity&&e.opacity>t&&(e.maxOpacity=e.opacity,e.opacity=t)}):e.material instanceof Array?e.material.forEach(function(e){e.transparent=!0,e.maxOpacity?e.opacity=Math.min(e.maxOpacity,t):e.opacity&&e.opacity>t&&(e.maxOpacity=e.opacity,e.opacity=t)}):(e.material.transparent=!0,e.material.maxOpacity?e.material.opacity=Math.min(e.material.maxOpacity,t):e.material.opacity&&e.material.opacity>t&&(e.material.maxOpacity=e.material.opacity,e.material.opacity=t)))})}function v(e){var t=(new r.Box3).setFromObject(e.plan);if(isFinite(t.max.x)&&isFinite(t.min.x)&&isFinite(t.max.y)&&isFinite(t.min.y)&&isFinite(t.max.z)&&isFinite(t.min.z)){var n=new r.Vector3((t.max.x-t.min.x)/2+t.min.x,(t.max.y-t.min.y)/2+t.min.y,(t.max.z-t.min.z)/2+t.min.z);e.plan.position.sub(n),e.grid.position.sub(n),t.min.sub(n),t.max.sub(n),e.boundingBox=t}}},106:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}var i={stroke:"#0096fd",strokeWidth:"1px"},l={textAnchor:"middle",fontSize:"12px",fontFamily:"'Courier New', Courier, monospace",pointerEvents:"none",fontWeight:"bold",WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none"};function s(e){var t=e.length,n=e.unit,a=e.transform,o=t.toFixed(2)+" "+n;return r.default.createElement("g",{transform:a},r.default.createElement("text",{x:t/2,y:"-3",transform:"scale(1, -1)",style:l},o),r.default.createElement("line",{x1:"0",y1:"-5",x2:"0",y2:"5",style:i}),r.default.createElement("line",{x1:t,y1:"-5",x2:t,y2:"5",style:i}),r.default.createElement("line",{x1:"0",y1:"0",x2:t,y2:"0",style:i}))}s.propTypes={length:a.default.number.isRequired,unit:a.default.string.isRequired,transform:a.default.string.isRequired}},107:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(n(0)),a=i(n(2)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(37));function i(e){return e&&e.__esModule?e:{default:e}}var l={stroke:"#D32F2F",strokeWidth:"1px"};function s(e){var t=e.snap,n=e.width,a=e.height;switch(t.type){case"point":return r.default.createElement("g",{transform:"translate("+t.x+" "+t.y+")"},r.default.createElement("line",{x1:"0",y1:"-70",x2:"0",y2:"70",style:l}),r.default.createElement("line",{x1:"-70",y1:"0",x2:"70",y2:"0",style:l}));case"line":var i=o.horizontalLine(0),s=o.horizontalLine(a),u=o.twoLinesIntersection(t.a,t.b,t.c,i.a,i.b,i.c),d=o.twoLinesIntersection(t.a,t.b,t.c,s.a,s.b,s.c),c=o.verticalLine(0),p=o.verticalLine(n),h=o.twoLinesIntersection(t.a,t.b,t.c,c.a,c.b,c.c),f=o.twoLinesIntersection(t.a,t.b,t.c,p.a,p.b,p.c);return u&&d?r.default.createElement("line",{x1:u.x,y1:u.y,x2:d.x,y2:d.y,style:l}):h&&f?r.default.createElement("line",{x1:h.x,y1:h.y,x2:f.x,y2:f.y,style:l}):null;case"line-segment":return r.default.createElement("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,style:l});default:return null}}s.propTypes={snap:a.default.object.isRequired,width:a.default.number.isRequired,height:a.default.number.isRequired}},108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(p,["hook","label"]),E=function(e,t){var r=(0,d.toFixedFloat)(e),a=n.merge({length:t!==i.UNIT_CENTIMETER?(0,l.default)(r).from(t).to(i.UNIT_CENTIMETER):r,_length:e,_unit:t});return q?q(a,y,v,g).then(function(e){return o(e)}):o(a)};return a.default.createElement("table",{className:"PropertyLengthMeasure",style:c.default.tableStyle},a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",{style:c.default.firstTdStyle},a.default.createElement(s.FormLabel,null,_)),a.default.createElement("td",{style:f},a.default.createElement("table",{style:h},a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",null,a.default.createElement(s.FormNumberInput,r({value:w,onChange:function(e){return E(e.target.value,M)},onValid:u},b))),a.default.createElement("td",{style:m},a.default.createElement(s.FormSelect,{value:M,onChange:function(e){return E(w,e.target.value)}},i.UNITS_LENGTH.map(function(e){return a.default.createElement("option",{key:e,value:e},e)}))))))))))}y.propTypes={value:o.default.instanceOf(u.Map).isRequired,onUpdate:o.default.func.isRequired,onValid:o.default.func,configs:o.default.object.isRequired,sourceElement:o.default.object,internalState:o.default.object,state:o.default.object.isRequired},y.contextTypes={catalog:o.default.object.isRequired}},128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.value,n=e.onUpdate,a=e.configs,l=e.sourceElement,s=e.internalState,u=e.state;return r.default.createElement("table",{className:"PropertyString",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,a.label)),r.default.createElement("td",null,r.default.createElement(o.FormTextInput,{value:t,onChange:function(e){return function(e){return a.hook?a.hook(e,l,s,u).then(function(e){return n(e)}):n(e)}(e.target.value)}})))))}s.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},13:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormTextInput=t.FormSubmitButton=t.FormSlider=t.FormSelect=t.FormNumberInput=t.FormLabel=t.FormColorInput=t.FormBlock=t.DeleteButton=t.ContentTitle=t.ContentContainer=t.CancelButton=t.Button=void 0;var r=y(n(64)),a=y(n(2510)),o=y(n(169)),i=y(n(168)),l=y(n(2509)),s=y(n(2508)),u=y(n(2507)),d=y(n(2506)),c=y(n(167)),p=y(n(1564)),h=y(n(1563)),f=y(n(1492)),m=y(n(63));function y(e){return e&&e.__esModule?e:{default:e}}t.Button=r.default,t.CancelButton=a.default,t.ContentContainer=o.default,t.ContentTitle=i.default,t.DeleteButton=l.default,t.FormBlock=s.default,t.FormColorInput=u.default,t.FormLabel=d.default,t.FormNumberInput=c.default,t.FormSelect=p.default,t.FormSlider=h.default,t.FormSubmitButton=f.default,t.FormTextInput=m.default,t.default={Button:r.default,CancelButton:a.default,ContentContainer:o.default,ContentTitle:i.default,DeleteButton:l.default,FormBlock:s.default,FormColorInput:u.default,FormLabel:d.default,FormNumberInput:c.default,FormSelect:p.default,FormSlider:h.default,FormSubmitButton:f.default,FormTextInput:m.default}},1397:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["width","height","state","stateExtractor"]),s=t-50-300,u=n-20,d=n-20,c=n-20,p=o(a);return i.default.createElement("div",{style:r({},w,{height:n})},i.default.createElement(v,r({width:50,height:u,state:p},l)),i.default.createElement(f.Content,r({width:s,height:d,state:p},l,{onWheel:function(e){return e.preventDefault()}})),i.default.createElement(g,r({width:300,height:c,state:p},l)),i.default.createElement(x,r({width:t,height:20,state:p},l)))}}]),t}();M.propTypes={translator:l.default.instanceOf(d.default),catalog:l.default.instanceOf(c.default),allowProjectFileSupport:l.default.bool,plugins:l.default.arrayOf(l.default.func),autosaveKey:l.default.string,autosaveDelay:l.default.number,width:l.default.number.isRequired,height:l.default.number.isRequired,stateExtractor:l.default.func.isRequired,toolbarButtons:l.default.array,sidebarComponents:l.default.array,footerbarComponents:l.default.array,customContents:l.default.object,softwareSignature:l.default.string},M.contextTypes={store:l.default.object.isRequired},M.childContextTypes=r({},(0,h.objectsMap)(p.default,function(){return l.default.object}),{translator:l.default.object,catalog:l.default.object}),M.defaultProps={translator:new d.default,catalog:new c.default,plugins:[],allowProjectFileSupport:!0,softwareSignature:"React-Planner "+m.VERSION,toolbarButtons:[],sidebarComponents:[],footerbarComponents:[],customContents:{}},t.default=(0,u.connect)(function(e){return{state:e}},function(e){return(0,h.objectsMap)(p.default,function(t){return(0,s.bindActionCreators)(p.default[t],e)})})(M)},1409:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(e=e.merge({sceneHistory:o.history.historyPush(e.sceneHistory,e.scene)}),t.type){case r.SELECT_TOOL_3D_VIEW:return e=a.Project.rollback(e).updatedState,e=a.Project.setMode(e,r.MODE_3D_VIEW).updatedState;case r.SELECT_TOOL_3D_FIRST_PERSON:return e=a.Project.rollback(e).updatedState,e=a.Project.setMode(e,r.MODE_3D_FIRST_PERSON).updatedState;default:return e}};var r=n(4),a=n(11),o=n(10)},1410:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case r.UPDATE_2D_CAMERA:return e.merge({viewer2D:(0,a.fromJS)(t.value)});case r.SELECT_TOOL_PAN:return e.set("mode",r.MODE_2D_PAN);case r.SELECT_TOOL_ZOOM_IN:return e.set("mode",r.MODE_2D_ZOOM_IN);case r.SELECT_TOOL_ZOOM_OUT:return e.set("mode",r.MODE_2D_ZOOM_OUT)}};var r=n(4),a=n(7)},1411:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case r.BEGIN_DRAGGING_VERTEX:return a.Vertex.beginDraggingVertex(e,t.layerID,t.vertexID,t.x,t.y).updatedState;case r.UPDATE_DRAGGING_VERTEX:return a.Vertex.updateDraggingVertex(e,t.x,t.y).updatedState;case r.END_DRAGGING_VERTEX:return a.Vertex.endDraggingVertex(e,t.x,t.y).updatedState;default:return e}};var r=n(4),a=n(11)},1412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),t.type){case o.ADD_LAYER:return r.Layer.create(e,t.name,t.altitude).updatedState;case o.SELECT_LAYER:return r.Layer.select(e,t.layerID).updatedState;case o.SET_LAYER_PROPERTIES:return r.Layer.setProperties(e,t.layerID,t.properties).updatedState;case o.REMOVE_LAYER:return r.Layer.remove(e,t.layerID).updatedState;default:return e}};var r=n(11),a=n(10),o=n(4)},1413:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case a.NEW_PROJECT:return o.Project.newProject(e).updatedState;case a.LOAD_PROJECT:return o.Project.loadProject(e,t.sceneJSON).updatedState;case a.OPEN_CATALOG:return o.Project.openCatalog(e).updatedState;case a.CHANGE_CATALOG_PAGE:return o.Project.changeCatalogPage(e,t.oldPage,t.newPage).updatedState;case a.GO_BACK_TO_CATALOG_PAGE:return o.Project.goBackToCatalogPage(e,t.newPage).updatedState;case a.SELECT_TOOL_EDIT:return o.Project.setMode(e,a.MODE_IDLE).updatedState;case a.UNSELECT_ALL:return o.Project.unselectAll(e).updatedState;case a.SET_PROPERTIES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.setProperties(e,e.getIn(["scene","selectedLayer"]),t.properties).updatedState;case a.SET_ITEMS_ATTRIBUTES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.setItemsAttributes(e,t.itemsAttributes).updatedState;case a.SET_LINES_ATTRIBUTES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.setLinesAttributes(e,t.linesAttributes).updatedState;case a.SET_HOLES_ATTRIBUTES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.setHolesAttributes(e,t.holesAttributes).updatedState;case a.REMOVE:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.remove(e).updatedState;case a.UNDO:return o.Project.undo(e).updatedState;case a.ROLLBACK:return o.Project.rollback(e).updatedState;case a.SET_PROJECT_PROPERTIES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.setProjectProperties(e,t.properties).updatedState;case a.OPEN_PROJECT_CONFIGURATOR:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.openProjectConfigurator(e).updatedState;case a.INIT_CATALOG:return o.Project.initCatalog(e,t.catalog).updatedState;case a.UPDATE_MOUSE_COORDS:return o.Project.updateMouseCoord(e,t.coords).updatedState;case a.UPDATE_ZOOM_SCALE:return o.Project.updateZoomScale(e,t.scale).updatedState;case a.TOGGLE_SNAP:return o.Project.toggleSnap(e,t.mask).updatedState;case a.THROW_ERROR:return o.Project.throwError(e,t.error).updatedState;case a.THROW_WARNING:return o.Project.throwWarning(e,t.warning).updatedState;case a.COPY_PROPERTIES:return o.Project.copyProperties(e,t.properties).updatedState;case a.PASTE_PROPERTIES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.pasteProperties(e).updatedState;case a.PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY:return o.Project.pushLastSelectedCatalogElementToHistory(e,t.element).updatedState;case a.ALTERATE_STATE:return o.Project.setAlterate(e).updatedState;case a.SET_MODE:return o.Project.setMode(e,t.mode).updatedState;case a.ADD_HORIZONTAL_GUIDE:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.addHorizontalGuide(e,t.coordinate).updatedState;case a.ADD_VERTICAL_GUIDE:return o.Project.addVerticalGuide(e,t.coordinate).updatedState;case a.ADD_CIRCULAR_GUIDE:return o.Project.addCircularGuide(e,t.x,t.y,t.radius).updatedState;case a.REMOVE_HORIZONTAL_GUIDE:return o.Project.removeHorizontalGuide(e,t.guideID).updatedState;case a.REMOVE_VERTICAL_GUIDE:return o.Project.removeVerticalGuide(e,t.guideID).updatedState;case a.REMOVE_CIRCULAR_GUIDE:return o.Project.removeCircularGuide(e,t.guideID).updatedState;default:return e}};var r=n(10),a=n(4),o=n(11)},1414:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(e=e.merge({sceneHistory:o.history.historyPush(e.sceneHistory,e.scene)}),t.type){case r.GROUP_ACTIONS.ADD_GROUP:return a.Group.create(e).updatedState;case r.GROUP_ACTIONS.ADD_GROUP_FROM_SELECTED:return a.Group.createFromSelectedElements(e).updatedState;case r.GROUP_ACTIONS.SELECT_GROUP:return a.Group.select(e,t.groupID).updatedState;case r.GROUP_ACTIONS.UNSELECT_GROUP:return a.Group.unselect(e,t.groupID).updatedState;case r.GROUP_ACTIONS.ADD_TO_GROUP:return a.Group.addElement(e,t.groupID,t.layerID,t.elementPrototype,t.elementID).updatedState;case r.GROUP_ACTIONS.REMOVE_FROM_GROUP:return a.Group.removeElement(e,t.groupID,t.layerID,t.elementPrototype,t.elementID).updatedState;case r.GROUP_ACTIONS.SET_GROUP_ATTRIBUTES:return a.Group.setAttributes(e,t.groupID,t.attributes).updatedState;case r.GROUP_ACTIONS.SET_GROUP_PROPERTIES:return a.Group.setProperties(e,t.groupID,t.properties).updatedState;case r.GROUP_ACTIONS.SET_GROUP_BARYCENTER:return a.Group.setBarycenter(e,t.groupID,t.barycenter.get("x"),t.barycenter.get("y")).updatedState;case r.GROUP_ACTIONS.REMOVE_GROUP:return a.Group.remove(e,t.groupID).updatedState;case r.GROUP_ACTIONS.REMOVE_GROUP_AND_DELETE_ELEMENTS:return a.Group.removeAndDeleteElements(e,t.groupID).updatedState;case r.GROUP_ACTIONS.GROUP_TRANSLATE:return a.Group.translate(e,t.groupID,t.x,t.y).updatedState;case r.GROUP_ACTIONS.GROUP_ROTATE:return a.Group.rotate(e,t.groupID,t.rotation).updatedState;default:return e}};var r=n(4),a=n(11),o=n(10)},1415:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case o.SELECT_TOOL_DRAWING_LINE:return r.Line.selectToolDrawingLine(e,t.sceneComponentType).updatedState;case o.BEGIN_DRAWING_LINE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Line.beginDrawingLine(e,t.layerID,t.x,t.y).updatedState;case o.UPDATE_DRAWING_LINE:return r.Line.updateDrawingLine(e,t.x,t.y).updatedState;case o.END_DRAWING_LINE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Line.endDrawingLine(e,t.x,t.y).updatedState;case o.BEGIN_DRAGGING_LINE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Line.beginDraggingLine(e,t.layerID,t.lineID,t.x,t.y).updatedState;case o.UPDATE_DRAGGING_LINE:return r.Line.updateDraggingLine(e,t.x,t.y).updatedState;case o.END_DRAGGING_LINE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Line.endDraggingLine(e,t.x,t.y).updatedState;case o.SELECT_LINE:return r.Line.select(e,t.layerID,t.lineID).updatedState;default:return e}};var r=n(11),a=n(10),o=n(4)},1416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case o.SELECT_ITEM:return r.Item.select(e,t.layerID,t.itemID).updatedState;case o.SELECT_TOOL_DRAWING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.selectToolDrawingItem(e,t.sceneComponentType).updatedState;case o.UPDATE_DRAWING_ITEM:return r.Item.updateDrawingItem(e,t.layerID,t.x,t.y).updatedState;case o.END_DRAWING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.endDrawingItem(e,t.layerID,t.x,t.y).updatedState;case o.BEGIN_DRAGGING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.beginDraggingItem(e,t.layerID,t.itemID,t.x,t.y).updatedState;case o.UPDATE_DRAGGING_ITEM:return r.Item.updateDraggingItem(e,t.x,t.y).updatedState;case o.END_DRAGGING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.endDraggingItem(e,t.x,t.y).updatedState;case o.BEGIN_ROTATING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.beginRotatingItem(e,t.layerID,t.itemID,t.x,t.y).updatedState;case o.UPDATE_ROTATING_ITEM:return r.Item.updateRotatingItem(e,t.x,t.y).updatedState;case o.END_ROTATING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.endRotatingItem(e,t.x,t.y).updatedState;default:return e}};var r=n(11),a=n(10),o=n(4)},1417:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case o.SELECT_TOOL_DRAWING_HOLE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Hole.selectToolDrawingHole(e,t.sceneComponentType).updatedState;case o.UPDATE_DRAWING_HOLE:return r.Hole.updateDrawingHole(e,t.layerID,t.x,t.y).updatedState;case o.END_DRAWING_HOLE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Hole.endDrawingHole(e,t.layerID,t.x,t.y).updatedState;case o.BEGIN_DRAGGING_HOLE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Hole.beginDraggingHole(e,t.layerID,t.holeID,t.x,t.y).updatedState;case o.UPDATE_DRAGGING_HOLE:return r.Hole.updateDraggingHole(e,t.x,t.y).updatedState;case o.END_DRAGGING_HOLE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Hole.endDraggingHole(e,t.x,t.y).updatedState;case o.SELECT_HOLE:return r.Hole.select(e,t.layerID,t.holeID).updatedState;default:return e}};var r=n(11),a=n(10),o=n(4)},1418:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularGuide=t.VerticalGuide=t.HorizontalGuide=void 0;var r=function(){function e(e,t){for(var n=0;nI.x?P=i.GeometryUtils.pointPositionOnLineSegment(x.x,x.y,w.x,w.y,I.x,I.y):r===O.x&&r===I.x?aI.y?(P=i.GeometryUtils.pointPositionOnLineSegment(x.x,x.y,w.x,w.y,I.x,I.y),P=x.x===f&&x.y===m?P:1-P):P=i.GeometryUtils.pointPositionOnLineSegment(f,m,v,g,r,a):P=i.GeometryUtils.pointPositionOnLineSegment(f,m,v,g,r,a),d&&s){var T=(t=t.mergeIn(["scene","layers",n,"holes",d],{offset:P,line:c})).getIn(["scene","layers",n,"lines"]).findEntry(function(e){return e.id!==c&&e.get("holes").contains(d)});if(T){var G=T[1].get("holes").filter(function(e){return e!==d});t=t.setIn(["scene","layers",n,"lines",T[0],"holes"],G)}var S=t.getIn(["scene","layers",n,"lines",c,"holes"]);S.contains(d)||(t=t.setIn(["scene","layers",n,"lines",c,"holes"],S.push(d)))}else if(!d&&s){var D=this.create(t,n,t.drawingSupport.get("type"),c,P),R=D.updatedState,A=D.hole;t=e.select(R,n,A.id).updatedState}}else 0;return{updatedState:t}}},{key:"endDrawingHole",value:function(e,t,n,r){return e=this.updateDrawingHole(e,t,n,r).updatedState,{updatedState:e=o.Layer.unselectAll(e,t).updatedState}}},{key:"beginDraggingHole",value:function(e,t,n,r,o){var i=e.getIn(["scene","layers",t]),u=i.getIn(["holes",n]),d=i.getIn(["lines",u.line]),c=i.getIn(["vertices",d.vertices.get(0)]),p=i.getIn(["vertices",d.vertices.get(1)]),h=(0,l.addLineSegmentSnap)((0,a.List)(),c.x,c.y,p.x,p.y,9999999,1,null);return{updatedState:e=e.merge({mode:s.MODE_DRAGGING_HOLE,snapElements:h,draggingSupport:(0,a.Map)({layerID:t,holeID:n,startPointX:r,startPointY:o})})}}},{key:"updateDraggingHole",value:function(e,t,n){var r=(0,l.nearestSnap)(e.snapElements,t,n,e.snapMask.merge({SNAP_SEGMENT:!0}));if(!r)return e;var a=e,o=a.draggingSupport,s=a.scene,u=o.get("layerID"),d=o.get("holeID"),c=(o.get("startPointX"),o.get("startPointY"),e.getIn(["scene","layers",u])),p=c.getIn(["holes",d]),h=c.getIn(["lines",p.line]),f=c.getIn(["vertices",h.vertices.get(0)]),m=c.getIn(["vertices",h.vertices.get(1)]),y=r.point;t=y.x,n=y.y;var v=i.GeometryUtils.minVertex(f,m),g=i.GeometryUtils.maxVertex(f,m),x=p.properties.get("width").get("length"),w=i.GeometryUtils.pointsDistance(f.x,f.y,m.x,m.y),M=Math.atan2(Math.abs(m.y-f.y),Math.abs(m.x-f.x)),q=function(e){var t=Math.cos(e);return t<1e-7?0:t}(M),_=function(e){var t=Math.sin(e);return t<1e-7?0:t}(M),b={x:v.x+x/2*q,y:v.y+x/2*_},E={x:v.x+w*q-x/2*q,y:v.y+w*_-x/2*_},O=void 0;return tE.x?O=i.GeometryUtils.pointPositionOnLineSegment(v.x,v.y,g.x,g.y,E.x,E.y):t===b.x&&t===E.x?nE.y?(O=i.GeometryUtils.pointPositionOnLineSegment(v.x,v.y,g.x,g.y,E.x,E.y),O=v===f?O:1-O):(O=i.GeometryUtils.pointPositionOnLineSegment(v.x,v.y,g.x,g.y,t,n),O=v===f?O:1-O):O=i.GeometryUtils.pointPositionOnLineSegment(v.x,v.y,g.x,g.y,t,n),p=p.set("offset",O),{updatedState:e=e.merge({scene:s.mergeIn(["layers",u,"holes",d],p)})}}},{key:"endDraggingHole",value:function(e,t,n){return{updatedState:e=(e=this.updateDraggingHole(e,t,n).updatedState).merge({mode:s.MODE_IDLE})}}},{key:"setProperties",value:function(e,t,n,r){return{updatedState:e=e.setIn(["scene","layers",t,"holes",n,"properties"],r)}}},{key:"setJsProperties",value:function(e,t,n,r){return this.setProperties(e,t,n,(0,a.fromJS)(r))}},{key:"updateProperties",value:function(e,t,n,r){return r.forEach(function(r,a){e.hasIn(["scene","layers",t,"holes",n,"properties",a])&&(e=e.mergeIn(["scene","layers",t,"holes",n,"properties",a],r))}),{updatedState:e}}},{key:"updateJsProperties",value:function(e,t,n,r){return this.updateProperties(e,t,n,(0,a.fromJS)(r))}},{key:"setAttributes",value:function(e,t,n,r){var o=r.toJS(),i=o.offsetA,l=o.offsetB,s=o.offset;delete o.offsetA,delete o.offsetB,delete o.offset;var u=new a.Map({_unitA:i._unit,_unitB:l._unit});return{updatedState:e=e.mergeIn(["scene","layers",t,"holes",n],(0,a.fromJS)(o)).mergeDeepIn(["scene","layers",t,"holes",n],new a.Map({offset:s,misc:u}))}}}]),e}();t.default=u},1423:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n=0&&s<=1&&(e=i.Hole.create(e,t,n.hole.type,w.id,s,n.hole.properties).updatedState)}}),c.push(w)}),{updatedState:e,lines:new o.List(c)}}},{key:"createAvoidingIntersections",value:function(t,n,a,o,i,s,u,d,c){var p=this,h=[{x:o,y:i},{x:s,y:u}];t=t.getIn(["scene","layers",n,"lines"]).reduce(function(e,t){var a=t.vertices.map(function(t){return e.getIn(["scene","layers",n,"vertices"]).get(t)}).toArray(),o=r(a,2),i=o[0],s=o[1],u=l.GeometryUtils.samePoints(i,h[0])||l.GeometryUtils.samePoints(i,h[1])||l.GeometryUtils.samePoints(s,h[0])||l.GeometryUtils.samePoints(s,h[1]),d=l.GeometryUtils.twoLineSegmentsIntersection(h[0],h[1],i,s);if("colinear"===d.type){c||(c=[]);var f=l.GeometryUtils.orderVertices(h);e.getIn(["scene","layers",n,"lines",t.id,"holes"]).forEach(function(r){var a=e.getIn(["scene","layers",n,"holes",r]),o=l.GeometryUtils.pointsDistance(i.x,i.y,s.x,s.y),u=l.GeometryUtils.samePoints(f[1],t.vertices.get(1))?1-a.offset:a.offset,d=l.GeometryUtils.extendLine(i.x,i.y,s.x,s.y,o*u);c.push({hole:a,offsetPosition:d})}),e=p.remove(e,n,t.id).updatedState,h.push(i,s)}return"intersecting"!==d.type||u||(e=p.split(e,n,t.id,d.point.x,d.point.y).updatedState,h.push(d.point)),e},t);var f=e.addFromPoints(t,n,a,h,d,c);return{updatedState:f.updatedState,lines:f.lines}}},{key:"replaceVertex",value:function(e,t,n,r,a,o){var l=e.getIn(["scene","layers",t,"lines",n,"vertices",r]);e=i.Vertex.remove(e,t,l,"lines",n).updatedState;var s=i.Vertex.add(e,t,a,o,"lines",n),u=s.updatedState,d=s.vertex;return{updatedState:e=(e=(e=u).setIn(["scene","layers",t,"lines",n,"vertices",r],d.id)).setIn(["scene","layers",t,"lines",n],e.getIn(["scene","layers",t,"lines",n])),line:e.getIn(["scene","layers",t,"lines",n]),vertex:d}}},{key:"selectToolDrawingLine",value:function(e,t){return{updatedState:e=e.merge({mode:s.MODE_WAITING_DRAWING_LINE,drawingSupport:new o.Map({type:t})})}}},{key:"beginDrawingLine",value:function(t,n,r,a){var u=l.SnapSceneUtils.sceneSnapElements(t.scene,new o.List,t.snapMask),d=null;if(t.snapMask&&!t.snapMask.isEmpty()){if(d=l.SnapUtils.nearestSnap(u,r,a,t.snapMask)){var c=d.point;r=c.x,a=c.y}u=u.withMutations(function(e){var t=void 0,n=void 0,o=void 0,i=l.GeometryUtils.horizontalLine(a);t=i.a,n=i.b,o=i.c,l.SnapUtils.addLineSnap(e,t,n,o,10,3,null);var s=l.GeometryUtils.verticalLine(r);t=s.a,n=s.b,o=s.c,l.SnapUtils.addLineSnap(e,t,n,o,10,3,null)})}var p=t.get("drawingSupport").set("layerID",n);t=i.Layer.unselectAll(t,n).updatedState;var h=e.create(t,n,p.get("type"),r,a,r,a),f=h.updatedState,m=h.line;return{updatedState:t=(t=e.select(f,n,m.id).updatedState).merge({mode:s.MODE_DRAWING_LINE,snapElements:u,activeSnapElement:d?d.snap:null,drawingSupport:p})}}},{key:"updateDrawingLine",value:function(t,n,r){var a=null;if(t.snapMask&&!t.snapMask.isEmpty()&&(a=l.SnapUtils.nearestSnap(t.snapElements,n,r,t.snapMask))){var o=a.point;n=o.x,r=o.y}var i=t.getIn(["drawingSupport","layerID"]),s=t.getIn(["scene","layers",i,"selected","lines"]).first(),u=e.replaceVertex(t,i,s,1,n,r),d=u.updatedState;u.vertex;return t=d,{updatedState:t=(t=this.select(t,i,s).updatedState).merge({activeSnapElement:a?a.snap:null})}}},{key:"endDrawingLine",value:function(t,n,r){if(t.snapMask&&!t.snapMask.isEmpty()){var a=l.SnapUtils.nearestSnap(t.snapElements,n,r,t.snapMask);if(a){var u=a.point;n=u.x,r=u.y}}var d=t.getIn(["drawingSupport","layerID"]),c=t.getIn(["scene","layers",d]),p=t.getIn(["scene","layers",d,"selected","lines"]).first(),h=t.getIn(["scene","layers",d,"lines",p]),f=c.vertices.get(h.vertices.get(0));return t=e.remove(t,d,p).updatedState,t=e.createAvoidingIntersections(t,d,h.type,f.x,f.y,n,r).updatedState,{updatedState:t=(t=i.Layer.detectAndUpdateAreas(t,d).updatedState).merge({mode:s.MODE_WAITING_DRAWING_LINE,snapElements:new o.List,activeSnapElement:null})}}},{key:"beginDraggingLine",value:function(e,t,n,r,a){var i=l.SnapSceneUtils.sceneSnapElements(e.scene,new o.List,e.snapMask),u=e.scene.layers.get(t),d=u.lines.get(n),c=u.vertices.get(d.vertices.get(0)),p=u.vertices.get(d.vertices.get(1));return{updatedState:e=e.merge({mode:s.MODE_DRAGGING_LINE,snapElements:i,draggingSupport:(0,o.Map)({layerID:t,lineID:n,startPointX:r,startPointY:a,startVertex0X:c.x,startVertex0Y:c.y,startVertex1X:p.x,startVertex1Y:p.y})})}}},{key:"updateDraggingLine",value:function(e,t,n){var r=e.draggingSupport,a=e.snapElements,o=r.get("layerID"),i=r.get("lineID"),s=t-r.get("startPointX"),u=n-r.get("startPointY"),d=r.get("startVertex0X")+s,c=r.get("startVertex0Y")+u,p=r.get("startVertex1X")+s,h=r.get("startVertex1Y")+u,f=null,m=null,y=null;e.snapMask&&!e.snapMask.isEmpty()&&(m=l.SnapUtils.nearestSnap(a,d,c,e.snapMask),y=l.SnapUtils.nearestSnap(a,p,h,e.snapMask));var v=0,g=0;return m&&y?m.point.distance1&&void 0!==arguments[1]?arguments[1]:new i.List,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new i.Map,l=e.width,s=e.height,u=void 0,d=void 0,c=void 0;return t.withMutations(function(t){if(e.layers.forEach(function(e){var i=e.lines,l=e.vertices;l.forEach(function(e){var r=e.id,i=e.x,l=e.y;if(n.get(a.SNAP_POINT)&&(0,a.addPointSnap)(t,i,l,10,10,r),n.get(a.SNAP_LINE)){var s=o.GeometryUtils.horizontalLine(l);u=s.a,d=s.b,c=s.c,(0,a.addLineSnap)(t,u,d,c,10,1,r);var p=o.GeometryUtils.verticalLine(i);u=p.a,d=p.b,c=p.c,(0,a.addLineSnap)(t,u,d,c,10,1,r)}}),n.get(a.SNAP_SEGMENT)&&i.forEach(function(e){var n=e.id,o=r(e.vertices,2),i=o[0],s=o[1],u=l.get(i),d=u.x,c=u.y,p=l.get(s),h=p.x,f=p.y;(0,a.addLineSegmentSnap)(t,d,c,h,f,20,1,n)})}),n.get(a.SNAP_GRID))for(var i=l/20,p=s/20,h=0;h0>0?(o=t[n][0],i=t[n][1]):(o=t[n][1],i=t[n][0]),(e[i][0]-e[o][0])*(e[i][1]+e[o][1])})}).map(function(e){return e.reduce(function(e,t){return e+t})}),p=c.filter(function(e){return e>0}).length,h=p>=c.length-p?1:-1;return{v_cycles:n.v_cycles.filter(function(e,t){return h*c[t]>0}),e_cycles:n.e_cycles.filter(function(e,t){return h*c[t]>0}),ev_mapping:n.ev_mapping}}},1444:function(e,t,n){"use strict";e.exports=function(e,t){var n=[];return e.forEach(function(e){n.push([]);var r=function(e){var t=new Set;return e.forEach(function(e){t.add(e.u),t.add(e.v)}),t}(e);r.forEach(function(e){t.adj[e].forEach(function(t){e<=t&&r.has(t)&&n[n.length-1].push([e,t])})})}),n}},1445:function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;nn[l]&&(n[e]=n[l]),1==t[e]&&o.children>1||t[e]>1&&n[l]>=t[e]){for(var s=[];r[r.length-1].u!=e||r[r.length-1].v!=l;)s.push(r[r.length-1]),r.splice(r.length-1,1);s.push(r[r.length-1]),o.subgraphs.push(s),s=[],r.splice(r.length-1,1),o.count++}}else l!=a[e]&&t[l]t[l]&&(n[e]=t[l]),r.push(new i(e,l)))})}},{key:"BCC",value:function(){for(var e=this.V,t=o(e),n=o(e),r=o(e),a=[],i=0;i0;)s=1,u.push(a[a.length-1]),a.splice(a.length-1,1);1==s&&(this.subgraphs.push(u),u=[],this.count++)}}}]),e}();e.exports=l},1446:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateInnerCycles=function(e,t){var n=new i.List,l=new r.default(e.length);t.forEach(function(e){l.addEdge(e[0],e[1]),l.addEdge(e[1],e[0])}),l.BCC();var s=l.subgraphs.filter(function(e){return e.length>=3}),u=[];return(0,a.default)(s,l).forEach(function(e){e.forEach(function(e){return u.push(e)})}),(0,o.default)(e,u).v_cycles.forEach(function(e){e.shift(),n=n.push(e)}),n},t.isClockWiseOrder=function(e){var t=0,n=0,r=e.size;for(t=0;t0};var r=l(n(1445)),a=l(n(1444)),o=l(n(1443)),i=n(7);function l(e){return e&&e.__esModule?e:{default:e}}},1447:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(e,t){for(var n=0;n1&&(t=l.history.historyPop(t)),{updatedState:e=e.merge({mode:o.MODE_IDLE,scene:t.last,sceneHistory:l.history.historyPop(t)})}}},{key:"rollback",value:function(e){var t=e.sceneHistory;return!t.last&&t.list.isEmpty()?{updatedState:e}:{updatedState:e=(e=this.unselectAll(e).updatedState).merge({mode:o.MODE_IDLE,scene:t.last,sceneHistory:l.history.historyPush(t,t.last),snapElements:new a.List,activeSnapElement:null,drawingSupport:new a.Map,draggingSupport:new a.Map,rotatingSupport:new a.Map})}}},{key:"setProjectProperties",value:function(e,t){var n=e.scene.merge(t);return{updatedState:e=e.merge({mode:o.MODE_IDLE,scene:n})}}},{key:"openProjectConfigurator",value:function(e){return{updatedState:e=e.merge({mode:o.MODE_CONFIGURING_PROJECT})}}},{key:"initCatalog",value:function(e,t){return{updatedState:e=e.set("catalog",new i.Catalog(t))}}},{key:"updateMouseCoord",value:function(e,t){return{updatedState:e=e.set("mouse",new a.Map(t))}}},{key:"updateZoomScale",value:function(e,t){return{updatedState:e=e.set("zoom",t)}}},{key:"toggleSnap",value:function(e,t){return{updatedState:e=e.set("snapMask",t)}}},{key:"throwError",value:function(e,t){return{updatedState:e=e.set("errors",e.get("errors").push({date:Date.now(),error:t}))}}},{key:"throwWarning",value:function(e,t){return{updatedState:e=e.set("warnings",e.get("warnings").push({date:Date.now(),warning:t}))}}},{key:"copyProperties",value:function(e,t){return{updatedState:e=e.set("clipboardProperties",t)}}},{key:"pasteProperties",value:function(e){return{updatedState:e=this.updateProperties(e,e.getIn(["scene","selectedLayer"]),e.get("clipboardProperties")).updatedState}}},{key:"pushLastSelectedCatalogElementToHistory",value:function(e,t){var n=e.selectedElementsHistory,r=n.findIndex(function(e){return e.name===t.name});return-1!==r&&(n=n.splice(r,1)),n=n.splice(0,0,t),{updatedState:e=e.set("selectedElementsHistory",n)}}},{key:"changeCatalogPage",value:function(e,t,n){return{updatedState:e=e.setIn(["catalog","page"],n).updateIn(["catalog","path"],function(e){return e.push(t)})}}},{key:"goBackToCatalogPage",value:function(e,t){var n=e.catalog.path.findIndex(function(e){return e===t});return{updatedState:e=e.setIn(["catalog","page"],t).updateIn(["catalog","path"],function(e){return e.take(n)})}}},{key:"setMode",value:function(e,t){return{updatedState:e=e.set("mode",t)}}},{key:"addHorizontalGuide",value:function(e,t){return{updatedState:e=s.HorizontalGuide.create(e,t).updatedState}}},{key:"addVerticalGuide",value:function(e,t){return{updatedState:e=s.VerticalGuide.create(e,t).updatedState}}},{key:"addCircularGuide",value:function(e,t,n,r){return console.log("adding horizontal guide at",t,n,r),{updatedState:e}}},{key:"removeHorizontalGuide",value:function(e,t){return{updatedState:e=s.HorizontalGuide.remove(e,t).updatedState}}},{key:"removeVerticalGuide",value:function(e,t){return{updatedState:e=s.VerticalGuide.remove(e,t).updatedState}}},{key:"removeCircularGuide",value:function(e,t){return console.log("removeing horizontal guide ",t),{updatedState:e}}}]),e}();t.default=u},1448:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case a.SELECT_AREA:return r.Area.select(e,t.layerID,t.areaID).updatedState;default:return e}};var r=n(11),a=n(4)},1449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initialState=void 0,t.default=function(e,t){return r.PROJECT_ACTIONS[t.type]?a.ReactPlannerProjectReducer.apply(void 0,arguments):r.VIEWER2D_ACTIONS[t.type]?a.ReactPlannerViewer2dReducer.apply(void 0,arguments):r.VIEWER3D_ACTIONS[t.type]?a.ReactPlannerViewer3dReducer.apply(void 0,arguments):r.ITEMS_ACTIONS[t.type]?a.ReactPlannerItemsReducer.apply(void 0,arguments):r.HOLE_ACTIONS[t.type]?a.ReactPlannerHolesReducer.apply(void 0,arguments):r.LINE_ACTIONS[t.type]?a.ReactPlannerLinesReducer.apply(void 0,arguments):r.AREA_ACTIONS[t.type]?a.ReactPlannerAreasReducer.apply(void 0,arguments):r.GROUP_ACTIONS[t.type]?a.ReactPlannerGroupsReducer.apply(void 0,arguments):r.SCENE_ACTIONS[t.type]?a.ReactPlannerSceneReducer.apply(void 0,arguments):r.VERTEX_ACTIONS[t.type]?a.ReactPlannerVerticesReducer.apply(void 0,arguments):e||i};var r=n(4),a=n(121),o=n(31),i=t.initialState=new o.State},1450:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"+ Add Horizontal Giude":"+ Добавить горизонтальное руководство","+ Add Vertical Giude":"+ Добавить вертикальное руководство","2D View":"Плоский вид","3D First Person":"3D от первого лица","3D View":"Объёмный вид",altitude:"высота",Altitude:"Высота",Areas:"Поверхности",Cancel:"Отмена",Catalog:"Каталог","Chain selected Elements to Group":"Цепочка выбранных элементов в группу",Circular:"круговой",color:"цвет","Configure layer":"Настроить слой","Configure project":"Настроить проект",Confirm:"подтвердить",Copy:"Копировать","Delete group and all Elements":"Удалить группу и все элементы","Delete layer":"Удалить слой",Delete:"Удалить","Elements on layer {0}":"Элементов на слое {0}",Elements:"элементы","Get Screenshot":"Сделать снимок экрана","Group [{0}]":"группа [{0}]","Group's Barycenter":"Барицентр группы","Group's Elements":"Элементы группы",Groups:"группы",Guides:"руководства",height:"высота",Holes:"Проёмы",Horizontal:"горизонтальный",Items:"Предметы","Last Selected":"Последний выбраный","Layer config":"Настройка слоя",Layer:"Слой",Layers:"Слои",Length:"Длинна",Lines:"Линии","Load project":"Загрузить проект","Mouse X Coordinate":"X-координата курсора","Mouse Y Coordinate":"Y-координата курсора",Name:"Название","New Empty Group":"Новая пустая группа","New Group from selected":"Новая группа из выбранных","New layer":"Новый слой","New project":"Новый проект",opacity:"непрозрачность","Open catalog":"Открыть каталог",order:"порядок",Pan:"Двигать",Paste:"Вставить","Project config":"Настройка проекта","Properties: [{0}] {1}":"Свойства: [{0}] {1}",Prototype:"Опытный образец",Reset:"Сброс",Rotation:"Вращение","Save project":"Сохранить проект",Save:"Сохранить","Scene Zoom Level":"Уровень приближениия сцены","Search Element":"Поиск","Snap to Grid":"Привязка к сетке","Snap to Guide":"Привязать к руководству","Snap to Line":"Привязка к линии","Snap to Point":"Привязка к точке","Snap to Segment":"Привязка к сегменту",texture:"текстура",thickness:"толщина","Toggle Group Visibility":"Переключить видимость группы","Un-chain all Group's Elements and remove Group":"Удалить цепочку элементов группы и удалить группу","Un-chain Element from Group":"Unchain Element из группы","Undo (CTRL-Z)":"Отменить действие (CTRL-Z)",Unselect:"Снять выделене",Vertical:"вертикальный",width:"ширина","Would you want to start a new Project?":"Начать новый проект?","Zoom in":"Приблизить","Zoom out":"Отдалить"}},1451:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"+ Add Horizontal Giude":"+ Aggiungi Guida Orizzontale","+ Add Vertical Giude":"+ Aggiungi Guida Verticale","2D View":"Vista 2D","3D First Person":"3D Prima persona","3D View":"Vista 3D",Altitude:"Quota",altitude:"Quota",Areas:"Aree",Cancel:"Annulla",Catalog:"Catalogo","Chain selected Elements to Group":"Collega l'Elemento selzionato al Gruppo",Circular:"Circolare",color:"colore","Configure layer":"Configura livello","Configure project":"Configura progetto",Confirm:"Conferma",Copy:"Copia","Delete group and all Elements":"Elimina Gruppo e tutti i suoi Elementi","Delete layer":"Elimina livello",Delete:"Elimina","Elements on layer {0}":"Elementi nel livello {0}",Elements:"Elementi","Get Screenshot":"Cattura uno screenshot","Group [{0}]":"Gruppo [{0}]","Group's Barycenter":"Baricentro del Gruppo","Group's Elements":"Elementi del Gruppo",Groups:"Gruppi",Guides:"Guide",height:"Altezza",Holes:"Buchi",Horizontal:"Orizzontale",Items:"Oggetti","Last Selected":"Ultimi Selezionati","Layer config":"Configurazione livello",Layer:"Livello",Layers:"Livelli",Length:"Lunghezza",Lines:"Linee","Load project":"Carica progetto","Mouse X Coordinate":"Coordinata X del Mouse","Mouse Y Coordinate":"Coordinata Y del Mouse",Name:"Nome","New Empty Group":"Crea Gruppo Vuoto","New Group from selected":"Crea Gruppo dai selezionati","New layer":"Nuovo livello","New project":"Nuovo progetto",opacity:"Opacità","Open catalog":"Apri catalogo",order:"Ordine",Pan:"Muovi",Paste:"Incolla","Project config":"Configurazione progetto","Properties: [{0}] {1}":"Proprietà: [{0}] {1}",Prototype:"Prototipo",Reset:"Annulla",Rotation:"Rotazione","Save project":"Salva progetto",Save:"Salva","Scene Zoom Level":"Livello di Zoom della Scena","Search Element":"Cerca Elemento","Snap to Grid":"Snap alla Griglia","Snap to Guide":"Snap alla Guida","Snap to Line":"Snap alla Linea","Snap to Point":"Snap al Punto","Snap to Segment":"Snap al Segmento",texture:"texture",thickness:"spessore","Toggle Group Visibility":"Varia la visibilità del Gruppo","Un-chain all Group's Elements and remove Group":"Elimina il Gruppo e scollega tutti gli Elementi appartenenti","Un-chain Element from Group":"Scollega l'Elemento dal Gruppo","Undo (CTRL-Z)":"Annulla (CTRL-Z)",Unselect:"Deseleziona",Vertical:"Verticale",width:"Larghezza","Would you want to start a new Project?":"Vuoi iniziare un nuovo progetto?","Zoom in":"Ingrandisci","Zoom out":"Riduci"}},1452:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"+ Add Horizontal Giude":"+ Add Horizontal Giude","+ Add Vertical Giude":"+ Add Vertical Giude","2D View":"2D View","3D First Person":"3D First Person","3D View":"3D View",altitude:"altitude",Altitude:"Altitude",Areas:"Areas",Cancel:"Cancel",Catalog:"Catalog","Chain selected Elements to Group":"Chain selected Elements to Group",Circular:"Circular",color:"color","Configure layer":"Configure layer","Configure project":"Configure project",Confirm:"Confirm",Copy:"Copy","Delete group and all Elements":"Delete group and all Elements","Delete layer":"Delete layer",Delete:"Delete","Elements on layer {0}":"Elements on layer {0}",Elements:"Elements","Get Screenshot":"Get Screenshot","Group [{0}]":"Group [{0}]","Group's Barycenter":"Group's Barycenter","Group's Elements":"Group's Elements",Groups:"Groups",Guides:"Guides",height:"height",Holes:"Holes",Horizontal:"Horizontal",Items:"Items","Last Selected":"Last Selected","Layer config":"Layer config",Layer:"Layer",Layers:"Layers",Length:"Length",Lines:"Lines","Load project":"Load project","Mouse X Coordinate":"Mouse X Coordinate","Mouse Y Coordinate":"Mouse Y Coordinate",Name:"Name","New Empty Group":"New Empty Group","New Group from selected":"New Group from selected","New layer":"New layer","New project":"New project",opacity:"opacity","Open catalog":"Open catalog",order:"order",Pan:"Pan",Paste:"Paste","Project config":"Project config","Properties: [{0}] {1}":"Properties: [{0}] {1}",Prototype:"Prototype",Reset:"Reset",Rotation:"Rotation","Save project":"Save project",Save:"Save","Scene Zoom Level":"Scene Zoom Level","Search Element":"Search Element","Snap to Grid":"Snap to Grid","Snap to Guide":"Snap to Guide","Snap to Line":"Snap to Line","Snap to Point":"Snap to Point","Snap to Segment":"Snap to Segment",texture:"texture",thickness:"thickness","Toggle Group Visibility":"Toggle Group Visibility","Un-chain all Group's Elements and remove Group":"Un-chain all Group's Elements and remove Group","Un-chain Element from Group":"Un-chain Element from Group","Undo (CTRL-Z)":"Undo (CTRL-Z)",Unselect:"Unselect",Vertical:"Vertical",width:"width","Would you want to start a new Project?":"Would you want to start a new Project?","Zoom in":"Zoom in","Zoom out":"Zoom out"}},1453:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.value,n=(e.onUpdate,e.configs);e.sourceElement,e.internalState,e.state;return r.default.createElement("table",{className:"PropertyReadOnly",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,n.label)),r.default.createElement("td",null,r.default.createElement("div",null,t)))))}s.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},1454:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;a(n(0));var r=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){e.value,e.onUpdate,e.configs,e.sourceElement,e.internalState,e.state;return null}o.propTypes={value:r.default.any.isRequired,onUpdate:r.default.func.isRequired,configs:r.default.object.isRequired,sourceElement:r.default.object,internalState:r.default.object,state:r.default.object.isRequired}},1455:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}var s={margin:0};function u(e){var t=e.value,n=e.onUpdate,a=e.configs,l=e.sourceElement,u=e.internalState,d=e.state;return r.default.createElement("table",{className:"PropertyCheckbox",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,a.label)),r.default.createElement("td",null,r.default.createElement("input",{style:s,type:"checkbox",checked:t,onChange:function(e){return function(e){return a.hook?a.hook(e,l,u,d).then(function(e){return n(e)}):n(e)}(!t)}})))))}u.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},1456:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.value,n=e.onUpdate,a=e.configs,l=e.sourceElement,s=e.internalState,u=e.state;return r.default.createElement("table",{className:"PropertyToggle",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,a.label)),r.default.createElement("td",null,r.default.createElement(o.Button,{onClick:function(e){return function(e){return a.hook?a.hook(e,l,s,u).then(function(e){return n(e)}):n(e)}(!t)},size:"small"},a.actionName)))))}s.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},1490:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.value,n=e.onUpdate,a=e.onValid,l=e.configs,s=e.sourceElement,u=e.internalState,d=e.state;return r.default.createElement("table",{className:"PropertyNumber",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,l.label)),r.default.createElement("td",null,r.default.createElement(o.FormNumberInput,{value:t,onChange:function(e){return function(e){var t=parseFloat(e);return isNaN(t)&&(t=0),l.hook?l.hook(t,s,u,d).then(function(e){return n(e)}):n(t)}(e.target.value)},onValid:a,min:l.min,max:l.max})))))}s.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,onValid:a.default.func,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},1491:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=d;var a=u(n(0)),o=u(n(2)),i=n(7),l=n(13),s=u(n(22));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=e.value,n=e.onUpdate,o=e.configs,u=e.sourceElement,d=e.internalState,c=e.state;return a.default.createElement("table",{className:"PropertyEnum",style:s.default.tableStyle},a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",{style:s.default.firstTdStyle},a.default.createElement(l.FormLabel,null,o.label)),a.default.createElement("td",null,a.default.createElement(l.FormSelect,{value:t,onChange:function(e){return function(e){return o.hook?o.hook(e,u,d,c).then(function(e){return n(e)}):n(e)}(e.target.value)}},(0,i.Seq)(o.values).entrySeq().map(function(e){var t=r(e,2),n=t[0],o=t[1];return a.default.createElement("option",{key:n,value:n},o)}))))))}d.propTypes={value:o.default.any.isRequired,onUpdate:o.default.func.isRequired,configs:o.default.object.isRequired,sourceElement:o.default.object,internalState:o.default.object,state:o.default.object.isRequired}},1492:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return a.default.createElement(o.default,r({type:"submit",style:s,styleHover:u},n),t)};var a=l(n(0)),o=l(n(64)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5));function l(e){return e&&e.__esModule?e:{default:e}}var s={borderColor:"#415375",backgroundColor:"#415375",color:i.COLORS.white},u={borderColor:"#1f3149",backgroundColor:"#1f3149",color:i.COLORS.white}},1563:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["value","onChange"]);return a.default.createElement("div",null,a.default.createElement("div",{style:s},a.default.createElement(o.default,r({type:"range",style:u,onChange:n,value:t},l))),a.default.createElement("div",{style:d},a.default.createElement(i.default,{value:t,onChange:n,style:c})))};var a=l(n(0)),o=l(n(1562)),i=l(n(63));function l(e){return e&&e.__esModule?e:{default:e}}var s={display:"inline-block",width:"80%",marginRight:"5%"},u={display:"block",width:"100%",height:"30px"},d={display:"inline-block",width:"15%",float:"right"},c={height:"34px",textAlign:"center"}},1564:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","style"]);return a.default.createElement("select",r({type:"text",style:r({},i,n)},o),t)};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5));var i={display:"block",width:"100%",padding:"0px 4px",fontSize:"13px",color:o.PRIMARY_COLOR.input,backgroundColor:o.COLORS.white,backgroundImage:"none",border:"1px solid rgba(0,0,0,.15)",outline:"none",borderRadius:"0px",height:"30px",WebkitAppearance:"none",WebkitBorderRadius:"0px",background:"url(\"data:image/svg+xml;utf8,\") #fff",backgroundPosition:"100% 50%",backgroundRepeat:"no-repeat"}},167:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;ta&&this.setState({showedValue:a});var x=g.test(this.state.showedValue)?this.state.showedValue:parseFloat(this.state.showedValue).toFixed(o),w=parseFloat(this.props.value).toFixed(o)!==parseFloat(this.state.showedValue).toFixed(o),M=function(t){if(t.stopPropagation(),e.state.valid){var n=""!==e.state.showedValue&&"-"!==e.state.showedValue?parseFloat(e.state.showedValue):0;e.setState({showedValue:n}),l({target:{value:n}})}};return i.default.createElement("div",{style:{position:"relative"}},i.default.createElement("input",{type:"text",value:x,style:v,onChange:function(t){var n=g.test(t.nativeEvent.target.value);n?(e.setState({showedValue:t.nativeEvent.target.value}),c&&c(t.nativeEvent)):f&&f(t.nativeEvent),e.setState({valid:n})},onFocus:function(t){return e.setState({focus:!0})},onBlur:function(t){return e.setState({focus:!1})},onKeyDown:function(e){var t=e.keyCode||e.which;t!=d.KEYBOARD_BUTTON_CODE.ENTER&&t!=d.KEYBOARD_BUTTON_CODE.TAB||!w||M(e)},placeholder:y}),i.default.createElement("div",{onClick:function(e){w&&M(e)},title:this.context.translator.t("Confirm"),style:r({},h,{visibility:w?"visible":"hidden",opacity:w?"1":"0"})},i.default.createElement(u.MdUpdate,{style:{width:"100%",height:"100%",padding:"0.2em",color:"#FFF"}})))}}]),t}();t.default=f,f.propTypes={value:l.default.oneOfType([l.default.number,l.default.string]),style:l.default.object,onChange:l.default.func.isRequired,onValid:l.default.func,onInvalid:l.default.func,min:l.default.number,max:l.default.number,precision:l.default.number,placeholder:l.default.string},f.contextTypes={translator:l.default.object.isRequired},f.defaultProps={value:0,style:{},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,precision:3}},168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","style"]);return a.default.createElement("h1",r({style:r({},l,o)},i),t)}s.propsType={style:o.default.object}},169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:o.UNIT_CENTIMETER;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elements={},this.categories={root:{name:"root",label:"/",elements:[],categories:[]}},this.propertyTypes={},this.unit=t,this.registerMultiplePropertyType([["color",a.PropertyColor,a.PropertyColor],["enum",a.PropertyEnum,a.PropertyEnum],["string",a.PropertyString,a.PropertyString],["number",a.PropertyNumber,a.PropertyNumber],["length-measure",a.PropertyLengthMeasure,a.PropertyLengthMeasure],["toggle",a.PropertyToggle,a.PropertyToggle],["checkbox",a.PropertyCheckbox,a.PropertyCheckbox],["hidden",a.PropertyHidden,a.PropertyHidden],["read-only",a.PropertyReadOnly,a.PropertyReadOnly]])}return r(e,[{key:"getElement",value:function(e){if(this.hasElement(e))return this.elements[e];throw new Error("Element "+e+" does not exist in catalog")}},{key:"getCategory",value:function(e){if(this.hasCategory(e))return this.categories[e];throw new Error("Category "+e+" does not exist in catalog")}},{key:"getPropertyType",value:function(e){if(this.propertyTypes.hasOwnProperty(e))return this.propertyTypes[e];throw new Error("Element "+e+" does not exist in catalog")}},{key:"registerElement",value:function(e){e.properties=e.properties||{},this.validateElement(e)&&(this.elements[e.name]=e,this.categories.root.elements.push(this.elements[e.name]))}},{key:"registerMultipleElements",value:function(e){var t=this;e.forEach(function(e){return t.registerElement(e)})}},{key:"registerPropertyType",value:function(e,t,n){this.propertyTypes[e]={type:e,Viewer:t,Editor:n}}},{key:"registerMultiplePropertyType",value:function(e){var t=this;e.forEach(function(e){return t.registerPropertyType.apply(t,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);tn.width.baseVal.value&&(n=t[r]);var a=new XMLSerializer,o=new Image,l=document.createElement("canvas"),s=l.getContext("2d"),u=document.createAttribute("height");u.value=n.height.baseVal.value,l.setAttributeNode(u);var d=document.createAttribute("width");d.value=n.width.baseVal.value,l.setAttributeNode(d),s.fillStyle="white",s.fillRect(0,0,l.width,l.height),o.crossOrigin="anonymous",o. src="data:image/svg+xml;utf8,"+a.serializeToString(n),o.onload=function(){s.drawImage(o,0,0,n.width.baseVal.value,n.height.baseVal.value),i(l.toDataURL())}}},r.default.createElement(o.default,null)):null}b.propTypes={mode:a.default.string.isRequired},b.contextTypes={translator:a.default.object.isRequired}},183:function(e,t,n){e.exports=n.p+"catalog/items/wardrobe/wardrobe.png"},184:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:204}),i=new r.MeshLambertMaterial({color:12632256}),l=new r.MeshLambertMaterial({color:0}),s=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(1,.05,1),i);e.add(t);var n=new r.Mesh(new r.BoxGeometry(1,2,.05),i);n.position.set(0,1.025,.475),e.add(n);var a=new r.Mesh(new r.BoxGeometry(1,2,.05),i);a.position.set(0,1.025,-.475),e.add(a);var s=new r.Mesh(new r.BoxGeometry(.05,2,1),i);s.position.set(.475,1.025,0),e.add(s);var u=new r.Mesh(new r.BoxGeometry(1,.05,1),i);u.position.set(0,2.05,0),e.add(u);var d=new r.Mesh(new r.BoxGeometry(.9,.4,.05),i);d.position.set(0,1.025,0),e.add(d);var c=new r.Mesh(new r.BoxGeometry(.9,.05,.5),i);c.position.set(0,.8,.225),e.add(c);var p=new r.Mesh(new r.BoxGeometry(.9,.05,.5),i);p.position.set(0,1.25,-.225),e.add(p);var h=new r.Mesh(new r.BoxGeometry(.05,.77,.9),o);h.position.set(-.475,1.64,0),e.add(h);var f=new r.Mesh(new r.BoxGeometry(.05,.44,.435),o);f.position.set(-.475,1.035,.23),e.add(f);var m=new r.Mesh(new r.BoxGeometry(.05,.77,.9),o);m.position.set(-.475,.41,0),e.add(m);var y=new r.Mesh(new r.BoxGeometry(.05,.44,.435),o);y.position.set(-.475,1.015,-.23),e.add(y);for(var v=void 0,g=1.64;g>=.4;g-=1.14){v=1.64===g?-.35:.35;var x=new r.Mesh(new r.CylinderGeometry(.025,.03,.02,32,32),l);x.rotation.x=.5*Math.PI,x.rotation.z=.5*Math.PI,x.position.set(-.5,g,v),e.add(x);var w=new r.Mesh(new r.CylinderGeometry(.02,.022,.015,32,32),i);w.rotation.x=.5*Math.PI,w.rotation.z=.5*Math.PI,w.position.set(-.515,g,v),e.add(w);var M=new r.Mesh(new r.BoxGeometry(.01,.015,.005,32,32),l);M.position.set(-.518,g,v),e.add(M)}for(var q=-.47;q<=.47;q+=.94)for(var _=.47;_>=-.47;_-=.94){var b=new r.Mesh(new r.CylinderGeometry(.02,.04,.1,4),i);b.position.set(q,-.05,_),b.rotation.y=.25*Math.PI,b.rotation.z=Math.PI,e.add(b)}return e}(),u=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(1,.05,1),i);e.add(t);var n=new r.Mesh(new r.BoxGeometry(1,2,.05),i);n.position.set(0,1.025,.475),e.add(n);var a=new r.Mesh(new r.BoxGeometry(1,2,.05),i);a.position.set(0,1.025,-.475),e.add(a);var l=new r.Mesh(new r.BoxGeometry(.05,2,1),i);l.position.set(.475,1.025,0),e.add(l);var s=new r.Mesh(new r.BoxGeometry(1,.05,1),i);s.position.set(0,2.05,0),e.add(s);var u=new r.Mesh(new r.BoxGeometry(.9,.4,.05),i);u.position.set(0,1.025,0),e.add(u);var d=new r.Mesh(new r.BoxGeometry(.9,.05,.5),i);d.position.set(0,.8,.225),e.add(d);var c=new r.Mesh(new r.BoxGeometry(.9,.05,.5),i);c.position.set(0,1.25,-.225),e.add(c);var p=new r.Mesh(new r.BoxGeometry(.05,.77,.9),o);p.position.set(-.475,1.64,0),e.add(p);var h=new r.Mesh(new r.BoxGeometry(.05,.44,.435),o);h.position.set(-.475,1.035,.23),e.add(h);var f=new r.Mesh(new r.BoxGeometry(.05,.77,.9),o);f.position.set(-.475,.41,0),e.add(f);var m=new r.Mesh(new r.BoxGeometry(.05,.44,.435),o);m.position.set(-.475,1.015,-.23),e.add(m);for(var y=-.47;y<=.47;y+=.94)for(var v=.47;v>=-.47;v-=.94){var g=new r.Mesh(new r.CylinderGeometry(.02,.04,.1,4),i);g.position.set(y,-.05,v),g.rotation.y=.25*Math.PI,g.rotation.z=Math.PI,e.add(g)}return e}();t.default={name:"wardrobe",prototype:"items",info:{tag:["furnishings","metal"],title:"wardrobe",description:"wardrobe",image:n(183)},properties:{altitude:{label:"altitudine",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-30,-30)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:60,height:60,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(30, 30) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(s.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.z+=-10,o.position.y+=220/24+a,o.rotation.y+=-Math.PI/2,o.scale.set(60/l,220/d,60/c);var p=new r.Object3D;p.add(u.clone()),p.position.z+=-10,p.position.y+=220/24+a,p.rotation.y+=-Math.PI/2,p.scale.set(60/l,220/d,60/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},185:function(e,t,n){e.exports=n.p+"catalog/items/umbrella-stand/umbrellaStand.png"},186:function(e,t,n){e.exports=n.p+"catalog/items/umbrella-stand/bronze-texture.jpg"},187:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=(new r.TextureLoader).load(n(186)),i=new r.MeshLambertMaterial({map:o}),l=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,0),t.lineTo(.45,0),t.lineTo(.45,.7),t.lineTo(0,.7);var n=new r.Path;n.moveTo(.225,.35),n.absellipse(.225,.15,.1,.025,.025,2*Math.PI,!1),t.holes.push(n);var a=new r.ExtrudeGeometry(t,{steps:2,depth:.05,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),o=new r.Mesh(a,i);o.position.set(.05,1.2,0),o.rotation.z+=Math.PI,e.add(o);var l=new r.Mesh(a,i);l.position.set(.05,1.2,-.4),l.rotation.z+=Math.PI,e.add(l);var s=new r.Mesh(a,i);s.position.set(.05,1.2,-.4),s.rotation.z+=Math.PI,s.rotation.y+=Math.PI/2,e.add(s);var u=new r.Mesh(a,i);u.position.set(-.45,1.2,-.4),u.rotation.z+=Math.PI,u.rotation.y+=Math.PI/2,e.add(u);var d=new r.BoxGeometry(.55,.45,.05),c=new r.Mesh(d,i);return c.rotation.x+=Math.PI/2,c.position.set(-.175,.475,-.175),e.add(c),e}(),s=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,0),t.lineTo(.45,0),t.lineTo(.45,.7),t.lineTo(0,.7);var n=new r.ExtrudeGeometry(t,{steps:2,depth:.05,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),a=new r.Mesh(n,i);a.position.set(.05,1.2,0),a.rotation.z+=Math.PI,e.add(a);var o=new r.Mesh(n,i);o.position.set(.05,1.2,-.4),o.rotation.z+=Math.PI,e.add(o);var l=new r.Mesh(n,i);l.position.set(.05,1.2,-.4),l.rotation.z+=Math.PI,l.rotation.y+=Math.PI/2,e.add(l);var s=new r.Mesh(n,i);s.position.set(-.45,1.2,-.4),s.rotation.z+=Math.PI,s.rotation.y+=Math.PI/2,e.add(s);var u=new r.BoxGeometry(.55,.45,.05),d=new r.Mesh(u,i);return d.rotation.x+=Math.PI/2,d.position.set(-.175,.475,-.175),e.add(d),e}();t.default={name:"umbrella-stand",prototype:"items",info:{tag:["furnishings","metal"],title:"umbrella stand",description:"umbrella stand",image:n(185)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-15,-20)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:30,height:40,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(15, 20) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(l.clone());var i=(new r.Box3).setFromObject(o),u=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.x+=-20,o.position.z+=10,o.position.y+=-43.75+a,o.rotation.y+=-Math.PI/2,o.scale.set(30/c,70/d,40/u);var p=new r.Object3D;p.add(s.clone()),p.position.x+=-20,p.position.z+=10,p.position.y+=-43.75+a,p.rotation.y+=-Math.PI/2,p.scale.set(30/c,70/d,40/u);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},188:function(e,t,n){e.exports=n.p+"catalog/items/tv/tv.obj"},189:function(e,t,n){e.exports=n.p+"catalog/items/tv/tv.mtl"},190:function(e,t,n){e.exports=n.p+"catalog/items/tv/tv.png"},191:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=n(27),o=l(n(0)),i=l(n(52));function l(e){return e&&e.__esModule?e:{default:e}}var s=null;t.default={name:"tv",prototype:"items",info:{title:"tv",tag:["furnishing","electronics"],description:"LCD TV",image:n(190)},properties:{altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:0}}},render2D:function(e,t,n){var r=1.6,a="ft",l=.59,s="ft",u=(0,i.default)(r).from(a).to(n.unit),d=(0,i.default)(l).from(s).to(n.unit),c=e.rotation+90,p=0;Math.sin(c*Math.PI/180)<0&&(p=180);var h={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},f={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return o.default.createElement("g",{transform:"translate("+-u/2+","+-d/2+")"},o.default.createElement("rect",{key:"1",x:"0",y:"0",width:u,height:d,style:h}),o.default.createElement("line",{key:"2",x1:u/2,x2:u/2,y1:d,y2:1.5*d,style:f}),o.default.createElement("line",{key:"3",x1:.35*u,x2:u/2,y1:1.2*d,y2:1.5*d,style:f}),o.default.createElement("line",{key:"4",x1:u/2,x2:.65*u,y1:1.5*d,y2:1.2*d,style:f}),o.default.createElement("text",{key:"5",x:"0",y:"0",transform:"translate("+u/2+", "+d/2+") scale(1,-1) rotate("+p+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,o){var l=1.6,u="ft",d=.59,c="ft",p=1.05,h="ft",f=function(t){var n=(0,i.default)(l).from(u).to(o.unit),a=(0,i.default)(p).from(h).to(o.unit),s=(0,i.default)(d).from(c).to(o.unit),f=e.properties.get("altitude").get("length");if(e.selected){var m=new r.BoxHelper(t,10077179);m.material.linewidth=2,m.material.depthTest=!1,m.renderOrder=1e3,t.add(m)}t.scale.set(n/l,a/p,s/d);var y=(new r.Box3).setFromObject(t),v=[(y.max.x-y.min.x)/2+y.min.x,(y.max.y-y.min.y)/2+y.min.y,(y.max.z-y.min.z)/2+y.min.z];return t.position.x-=v[0],t.position.y-=v[1]-(y.max.y-y.min.y)/2,t.position.z-=v[2],t.position.y+=f,t.rotation.y=Math.PI,t};if(s)return Promise.resolve(f(s.clone()));var m=n(189),y=n(188);return(0,a.loadObjWithMaterial)(m,y,"").then(function(e){return f((s=e).clone())})}}},192:function(e,t,n){e.exports=n.p+"catalog/items/trash/trash.png"},193:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));t.default={name:"trash",prototype:"items",info:{tag:["furnishings"],title:"Trash",description:"Trash",image:n(192)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;Math.sin(r*Math.PI/180)<0&&(o=180);var i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},l={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",null,a.default.createElement("circle",{key:"1",cx:"0",cy:"0",r:20,style:i}),a.default.createElement("line",{key:"2",x1:0,x2:0,y1:20,y2:30,style:l}),a.default.createElement("line",{key:"3",x1:-5,x2:0,y1:24,y2:30,style:l}),a.default.createElement("line",{key:"4",x1:0,x2:5,y1:30,y2:24,style:l}),a.default.createElement("text",{key:"5",cx:"0",cy:"0",transform:"scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.MeshLambertMaterial({color:14540253});o.side=r.DoubleSide;var i=new r.Object3D,l=new r.CylinderGeometry(.25,.25,1e-4,80),s=new r.Mesh(l,o);i.add(s);var u=new r.CylinderGeometry(.3,.25,.002,80,80,!0),d=new r.Mesh(u,o);d.position.set(0,.001,0),s.add(d);var c=(new r.Box3).setFromObject(i),p=Math.abs(c.max.x-c.min.x),h=Math.abs(c.max.y-c.min.y),f=Math.abs(c.max.z-c.min.z);if(e.selected){var m=new r.BoxHelper(i,10077179);m.material.linewidth=5,m.renderOrder=1e3,m.material.depthTest=!1,i.add(m)}return i.position.y+=2.5+a,i.scale.set(30/p,40/h,30/f),Promise.resolve(i)}}},194:function(e,t,n){e.exports=n.p+"catalog/items/three-phase-panel/threePhasePanel.png"},195:function(e,t,n){e.exports=n.p+"catalog/items/three-phase-panel/PanelTexture.png"},196:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:11184810});o.side=r.DoubleSide;var i=new r.MeshPhongMaterial({color:11141120}),l=new r.MeshPhongMaterial({color:170}),s=new r.MeshLambertMaterial({color:0});s.side=r.DoubleSide;var u=(new r.TextureLoader).load(n(195)),d=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,.1),t.lineTo(0,.5),t.quadraticCurveTo(0,.6,.1,.6),t.lineTo(.79-.1,.6),t.quadraticCurveTo(.79,.6,.79,.5),t.lineTo(.79,.1),t.quadraticCurveTo(.79,0,.79-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);var n={steps:2,depth:.2,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},a=new r.BoxGeometry(1,1.4,.1),d=new r.Mesh(a,o);d.position.set(.5,1.5,.05),e.add(d);var c=new r.PlaneGeometry(.5,.5),p=new r.Mesh(c,new r.MeshPhongMaterial({map:u,transparent:!0}));p.position.set(.5,1.85,.31),e.add(p);var h=new r.ExtrudeGeometry(t,n),f=new r.Mesh(h,o);f.position.set(.1,1.55,.1),e.add(f);var m=new r.BoxGeometry(.86,.38,.2),y=new r.Mesh(m,o);y.position.set(.495,1.85,.2),e.add(y);var v=new r.ExtrudeGeometry(t,n),g=new r.Mesh(v,o);g.position.set(.1,.85,.1),g.scale.set(1,1.2,.6),e.add(g);var x=new r.BoxGeometry(.86,.51,.1),w=new r.Mesh(x,o);w.position.set(.495,1.225,.15),e.add(w);var M=new r.BoxGeometry(.3,.5,.1),q=new r.Mesh(M,o);q.position.set(.68,1.2,.25),e.add(q);var _=new r.Mesh(M,o);_.position.set(.32,1.2,.25),e.add(_);var b=new r.BoxGeometry(.35,.6,.1),E=new r.Mesh(b,o);E.position.set(.68,1.2,.2),e.add(E);var O=new r.Mesh(b,o);O.position.set(.32,1.2,.2),e.add(O);var I=new r.BoxGeometry(.15,.15,.01),P=new r.Mesh(I,i);P.position.set(.32,1.1,.3),e.add(P);var T=new r.Mesh(I,l);T.position.set(.68,1.1,.3),e.add(T);var G=new r.CylinderGeometry(.05,.05,.05,16,16),S=new r.Mesh(G,i);S.position.set(.32,1.1,.3),S.rotation.x=Math.PI/2,e.add(S);var D=new r.SphereGeometry(.07,16,16),R=new r.Mesh(D,i);R.position.set(.32,1.1,.35),R.rotation.x=Math.PI/2,R.scale.set(1,.5,1),e.add(R);var A=new r.CylinderGeometry(.01,.01,.065,16,16),L=new r.Mesh(A,i);L.position.set(.32,1.15,.32),L.rotation.x=Math.PI/2,L.rotation.z=Math.PI/2,e.add(L);var C=new r.Mesh(G,l);C.position.set(.68,1.1,.3),C.rotation.x=Math.PI/2,e.add(C);var k=new r.Mesh(D,l);k.position.set(.68,1.1,.35),k.rotation.x=Math.PI/2,k.scale.set(1,.5,1),e.add(k);var j=new r.Mesh(A,l);j.position.set(.68,1.15,.32),j.rotation.x=Math.PI/2,j.rotation.z=Math.PI/2,e.add(j);var N=new r.CylinderGeometry(.05,.05,.025,16,16),z=new r.Mesh(N,o);z.position.set(.32,1.3,.3),z.rotation.x=Math.PI/2,e.add(z);var B=new r.Mesh(N,o);B.position.set(.68,1.3,.3),B.rotation.x=Math.PI/2,e.add(B);var U=new r.CylinderGeometry(.051,.051,.05,16,16,!0),V=new r.Mesh(U,s);V.position.set(.32,1.3,.31),V.rotation.x=Math.PI/2,e.add(V);var F=new r.Mesh(U,s);F.position.set(.68,1.3,.31),F.rotation.x=Math.PI/2,e.add(F);var H=new r.BoxGeometry(.1,.02,.02),W=new r.Mesh(H,s);W.position.set(.32,1.3,.32),e.add(W);var Y=new r.Mesh(H,s);Y.position.set(.68,1.3,.32),e.add(Y);var Z=new r.CylinderGeometry(.015,.015,.1,16,16),X=new r.Mesh(Z,s);X.rotation.x+=Math.PI/2,X.position.set(.91,2.05,.2),e.add(X);var J=new r.Mesh(Z,s);J.rotation.x+=Math.PI/2,J.position.set(.91,1.65,.2),e.add(J);var K=new r.Mesh(Z,s);K.rotation.x+=Math.PI/2,K.position.set(.08,2.05,.2),e.add(K);var Q=new r.Mesh(Z,s);Q.rotation.x+=Math.PI/2,Q.position.set(.08,1.65,.2),e.add(Q);var $=new r.CylinderGeometry(.018,.018,.22,16,16,!0),ee=new r.Mesh($,o);ee.rotation.x+=Math.PI/2,ee.position.set(.91,2.05,.18),e.add(ee);var te=new r.Mesh($,o);te.rotation.x+=Math.PI/2,te.position.set(.91,1.65,.18),e.add(te);var ne=new r.Mesh($,o);ne.rotation.x+=Math.PI/2,ne.position.set(.08,2.05,.18),e.add(ne);var re=new r.Mesh($,o);re.rotation.x+=Math.PI/2,re.position.set(.08,1.65,.18),e.add(re);var ae=new r.Mesh(Z,s);ae.rotation.x+=Math.PI/2,ae.position.set(.91,1.5,.16),e.add(ae);var oe=new r.Mesh(Z,s);oe.rotation.x+=Math.PI/2,oe.position.set(.91,.95,.16),e.add(oe);var ie=new r.Mesh(Z,s);ie.rotation.x+=Math.PI/2,ie.position.set(.08,1.5,.16),e.add(ie);var le=new r.Mesh(Z,s);le.rotation.x+=Math.PI/2,le.position.set(.08,.95,.16),e.add(le);var se=new r.CylinderGeometry(.018,.018,.1,16,16,!0),ue=new r.Mesh(se,o);ue.rotation.x+=Math.PI/2,ue.position.set(.91,1.5,.16),e.add(ue);var de=new r.Mesh(se,o);de.rotation.x+=Math.PI/2,de.position.set(.91,.95,.16),e.add(de);var ce=new r.Mesh(se,o);ce.rotation.x+=Math.PI/2,ce.position.set(.08,1.5,.16),e.add(ce);var pe=new r.Mesh(se,o);return pe.rotation.x+=Math.PI/2,pe.position.set(.08,.95,.16),e.add(pe),e}(),c=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,.1),t.lineTo(0,.5),t.quadraticCurveTo(0,.6,.1,.6),t.lineTo(.79-.1,.6),t.quadraticCurveTo(.79,.6,.79,.5),t.lineTo(.79,.1),t.quadraticCurveTo(.79,0,.79-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);var n={steps:2,depth:.2,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},a=new r.BoxGeometry(1,1.4,.1),d=new r.Mesh(a,o);d.position.set(.5,1.5,.05),e.add(d);var c=new r.PlaneGeometry(.5,.5),p=new r.Mesh(c,new r.MeshPhongMaterial({map:u,transparent:!0}));p.position.set(.5,1.85,.31),e.add(p);var h=new r.ExtrudeGeometry(t,n),f=new r.Mesh(h,o);f.position.set(.1,1.55,.1),e.add(f);var m=new r.BoxGeometry(.86,.38,.2),y=new r.Mesh(m,o);y.position.set(.495,1.85,.2),e.add(y);var v=new r.ExtrudeGeometry(t,n),g=new r.Mesh(v,o);g.position.set(.1,.85,.1),g.scale.set(1,1.2,.6),e.add(g);var x=new r.BoxGeometry(.86,.51,.1),w=new r.Mesh(x,o);w.position.set(.495,1.225,.15),e.add(w);var M=new r.BoxGeometry(.3,.5,.1),q=new r.Mesh(M,o);q.position.set(.68,1.2,.25),e.add(q);var _=new r.Mesh(M,o);_.position.set(.32,1.2,.25),e.add(_);var b=new r.BoxGeometry(.35,.6,.1),E=new r.Mesh(b,o);E.position.set(.68,1.2,.2),e.add(E);var O=new r.Mesh(b,o);O.position.set(.32,1.2,.2),e.add(O);var I=new r.BoxGeometry(.15,.15,.01),P=new r.Mesh(I,i);P.position.set(.32,1.1,.3),e.add(P);var T=new r.Mesh(I,l);T.position.set(.68,1.1,.3),e.add(T);var G=new r.CylinderGeometry(.05,.05,.05,16,16),S=new r.Mesh(G,i);S.position.set(.32,1.1,.3),S.rotation.x=Math.PI/2,e.add(S);var D=new r.SphereGeometry(.07,16,16),R=new r.Mesh(D,i);R.position.set(.32,1.1,.35),R.rotation.x=Math.PI/2,R.scale.set(1,.5,1),e.add(R);var A=new r.CylinderGeometry(.01,.01,.065,16,16),L=new r.Mesh(A,i);L.position.set(.32,1.15,.32),L.rotation.x=Math.PI/2,L.rotation.z=Math.PI/2,e.add(L);var C=new r.Mesh(G,l);C.position.set(.68,1.1,.3),C.rotation.x=Math.PI/2,e.add(C);var k=new r.Mesh(D,l);k.position.set(.68,1.1,.35),k.rotation.x=Math.PI/2,k.scale.set(1,.5,1),e.add(k);var j=new r.Mesh(A,l);j.position.set(.68,1.15,.32),j.rotation.x=Math.PI/2,j.rotation.z=Math.PI/2,e.add(j);var N=new r.CylinderGeometry(.05,.05,.025,16,16),z=new r.Mesh(N,o);z.position.set(.32,1.3,.3),z.rotation.x=Math.PI/2,e.add(z);var B=new r.Mesh(N,o);B.position.set(.68,1.3,.3),B.rotation.x=Math.PI/2,e.add(B);var U=new r.CylinderGeometry(.051,.051,.05,16,16,!0),V=new r.Mesh(U,s);V.position.set(.32,1.3,.31),V.rotation.x=Math.PI/2,e.add(V);var F=new r.Mesh(U,s);F.position.set(.68,1.3,.31),F.rotation.x=Math.PI/2,e.add(F);var H=new r.BoxGeometry(.1,.02,.02),W=new r.Mesh(H,s);W.position.set(.32,1.3,.32),e.add(W);var Y=new r.Mesh(H,s);return Y.position.set(.68,1.3,.32),e.add(Y),e}(),p=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,.1),t.lineTo(0,.5),t.quadraticCurveTo(0,.6,.1,.6),t.lineTo(.79-.1,.6),t.quadraticCurveTo(.79,.6,.79,.5),t.lineTo(.79,.1),t.quadraticCurveTo(.79,0,.79-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);var n={steps:2,depth:.2,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},a=new r.BoxGeometry(1,1.4,.1),u=new r.Mesh(a,o);u.position.set(.5,1.5,.05),e.add(u);var d=new r.ExtrudeGeometry(t,n),c=new r.Mesh(d,o);c.position.set(.1,1.55,.1),e.add(c);var p=new r.BoxGeometry(.86,.38,.2),h=new r.Mesh(p,o);h.position.set(.495,1.85,.2),e.add(h);var f=new r.ExtrudeGeometry(t,n),m=new r.Mesh(f,o);m.position.set(.1,.85,.1),m.scale.set(1,1.2,.6),e.add(m);var y=new r.BoxGeometry(.86,.51,.1),v=new r.Mesh(y,o);v.position.set(.495,1.225,.15),e.add(v);var g=new r.BoxGeometry(.3,.5,.1),x=new r.Mesh(g,o);x.position.set(.68,1.2,.25),e.add(x);var w=new r.Mesh(g,o);w.position.set(.32,1.2,.25),e.add(w);var M=new r.BoxGeometry(.35,.6,.1),q=new r.Mesh(M,o);q.position.set(.68,1.2,.2),e.add(q);var _=new r.Mesh(M,o);_.position.set(.32,1.2,.2),e.add(_);var b=new r.BoxGeometry(.15,.15,.01),E=new r.Mesh(b,i);E.position.set(.32,1.1,.3),e.add(E);var O=new r.Mesh(b,l);O.position.set(.68,1.1,.3),e.add(O);var I=new r.CylinderGeometry(.05,.05,.025,8,8),P=new r.Mesh(I,o);P.position.set(.32,1.3,.3),P.rotation.x=Math.PI/2,e.add(P);var T=new r.Mesh(I,o);T.position.set(.68,1.3,.3),T.rotation.x=Math.PI/2,e.add(T);var G=new r.CylinderGeometry(.051,.051,.05,8,8,!0),S=new r.Mesh(G,s);S.position.set(.32,1.3,.31),S.rotation.x=Math.PI/2,e.add(S);var D=new r.Mesh(G,s);D.position.set(.68,1.3,.31),D.rotation.x=Math.PI/2,e.add(D);var R=new r.BoxGeometry(.1,.02,.02),A=new r.Mesh(R,s);A.position.set(.32,1.3,.32),e.add(A);var L=new r.Mesh(R,s);return L.position.set(.68,1.3,.32),e.add(L),e}();t.default={name:"three- phase panel",prototype:"items",info:{tag:["furnishings","metal"],title:"three-phase panel",description:"electric panel",image:n(194)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-20,-10)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:40,height:20,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#ff0000"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(20, 10) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(d.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),u=Math.abs(i.max.z-i.min.z);o.scale.set(40/l,50/s,20/u),o.position.y+=-25+a,o.position.x+=-20,o.position.z+=-10;var h=new r.Object3D;h.add(c.clone()),h.scale.set(40/l,50/s,20/u),h.position.y+=-25+a,h.position.x+=-20,h.position.z+=-10;var f=new r.Object3D;f.add(p.clone()),f.scale.set(40/l,50/s,20/u),f.position.y+=-25+a,f.position.x+=-20,f.position.z+=-10;var m=new r.LOD;if(m.addLevel(o,100),m.addLevel(h,300),m.addLevel(f,700),m.updateMatrix(),m.matrixAutoUpdate=!1,e.selected){var y=new r.BoxHelper(m,10077179);y.material.linewidth=5,y.renderOrder=1e3,y.material.depthTest=!1,m.add(y)}return Promise.resolve(m)}}},197:function(e,t,n){e.exports=n.p+"catalog/items/text-3d/img.png"},198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.HELVETIKER={glyphs:{"ο":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 "},S:{x_min:0,x_max:788,ha:890,o:"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 "},"¦":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"/":{x_min:183.25,x_max:608.328125,ha:792,o:"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 "},"Τ":{x_min:-.4375,x_max:777.453125,ha:839,o:"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 "},y:{x_min:0,x_max:684.78125,ha:771,o:"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 "},"Π":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 "},"ΐ":{x_min:-111,x_max:339,ha:361,o:"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 "},g:{x_min:0,x_max:686,ha:838,o:"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 "},"²":{x_min:0,x_max:442,ha:539,o:"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 "},"–":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},"Κ":{x_min:0,x_max:819.5625,ha:893,o:"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},"ƒ":{x_min:-46.265625,x_max:392,ha:513,o:"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 "},e:{x_min:0,x_max:714,ha:813,o:"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 "},"ό":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 "},J:{x_min:0,x_max:588,ha:699,o:"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 "},"»":{x_min:-1,x_max:503,ha:601,o:"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 "},"©":{x_min:-3,x_max:1008,ha:1106,o:"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 "},"ώ":{x_min:0,x_max:922,ha:1030,o:"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 "},"^":{x_min:193.0625,x_max:598.609375,ha:792,o:"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 "},"«":{x_min:0,x_max:507.203125,ha:604,o:"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 "},D:{x_min:0,x_max:828,ha:935,o:"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 "},"∙":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"ÿ":{x_min:0,x_max:47,ha:125,o:"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 "},w:{x_min:0,x_max:1009.71875,ha:1100,o:"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 "},$:{x_min:0,x_max:700,ha:793,o:"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 "},"\\":{x_min:-.015625,x_max:425.0625,ha:522,o:"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 "},"µ":{x_min:0,x_max:697.21875,ha:747,o:"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 "},"Ι":{x_min:42,x_max:181,ha:297,o:"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 "},"Ύ":{x_min:0,x_max:1144.5,ha:1214,o:"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"’":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"Ν":{x_min:0,x_max:801,ha:915,o:"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 "},"-":{x_min:8.71875,x_max:350.390625,ha:478,o:"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 "},Q:{x_min:0,x_max:968,ha:1072,o:"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 "},"ς":{x_min:1,x_max:676.28125,ha:740,o:"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 "},M:{x_min:0,x_max:954,ha:1067,o:"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 "},"Ψ":{x_min:0,x_max:1006,ha:1094,o:"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 "},C:{x_min:0,x_max:886,ha:944,o:"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 "},"!":{x_min:0,x_max:138,ha:236,o:"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 "},"{":{x_min:0,x_max:480.5625,ha:578,o:"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 "},X:{x_min:-.015625,x_max:854.15625,ha:940,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 "},"#":{x_min:0,x_max:963.890625,ha:1061,o:"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 "},"ι":{x_min:42,x_max:284,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 "},"Ά":{x_min:0,x_max:906.953125,ha:982,o:"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},")":{x_min:0,x_max:318,ha:415,o:"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 "},"ε":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 "},"Δ":{x_min:0,x_max:952.78125,ha:1028,o:"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 "},"}":{x_min:0,x_max:481,ha:578,o:"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 "},"‰":{x_min:-3,x_max:1672,ha:1821,o:"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 "},a:{x_min:0,x_max:698.609375,ha:794,o:"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 "},"—":{x_min:0,x_max:941.671875,ha:1039,o:"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 "},"=":{x_min:8.71875,x_max:780.953125,ha:792,o:"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 "},N:{x_min:0,x_max:801,ha:914,o:"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 "},"ρ":{x_min:0,x_max:712,ha:797,o:"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 "},2:{x_min:59,x_max:731,ha:792,o:"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 "},"¯":{x_min:0,x_max:941.671875,ha:938,o:"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 "},Z:{x_min:0,x_max:779,ha:849,o:"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 "},u:{x_min:0,x_max:617,ha:729,o:"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 "},k:{x_min:0,x_max:612.484375,ha:697,o:"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 "},"Η":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"Α":{x_min:0,x_max:906.953125,ha:985,o:"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},s:{x_min:0,x_max:604,ha:697,o:"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 "},B:{x_min:0,x_max:778,ha:876,o:"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 "},"…":{x_min:0,x_max:614,ha:708,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 "},"?":{x_min:0,x_max:607,ha:704,o:"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 "},H:{x_min:0,x_max:803,ha:915,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"ν":{x_min:0,x_max:675,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 "},c:{x_min:1,x_max:701.390625,ha:775,o:"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 "},"¶":{x_min:0,x_max:566.671875,ha:678,o:"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 "},"β":{x_min:0,x_max:660,ha:745,o:"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 "},"Μ":{x_min:0,x_max:954,ha:1068,o:"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 "},"Ό":{x_min:.109375,x_max:1120,ha:1217,o:"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ή":{x_min:0,x_max:1158,ha:1275,o:"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"•":{x_min:0,x_max:663.890625,ha:775,o:"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 "},"¥":{x_min:.1875,x_max:819.546875,ha:886,o:"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 "},"(":{x_min:0,x_max:318.0625,ha:415,o:"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 "},U:{x_min:0,x_max:796,ha:904,o:"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 "},"γ":{x_min:.5,x_max:744.953125,ha:822,o:"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 "},"α":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 "},F:{x_min:0,x_max:683.328125,ha:717,o:"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 "},"­":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},":":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"Χ":{x_min:0,x_max:854.171875,ha:935,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 "},"*":{x_min:116,x_max:674,ha:792,o:"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 "},"†":{x_min:0,x_max:777,ha:835,o:"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 "},"°":{x_min:0,x_max:347,ha:444,o:"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 "},V:{x_min:0,x_max:862.71875,ha:940,o:"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 "},"Ξ":{x_min:0,x_max:734.71875,ha:763,o:"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 "}," ":{x_min:0,x_max:0,ha:853},"Ϋ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 "},0:{x_min:73,x_max:715,ha:792,o:"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 "},"”":{x_min:0,x_max:347,ha:454,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 "},"@":{x_min:0,x_max:1260,ha:1357,o:"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 "},"Ί":{x_min:0,x_max:499,ha:613,o:"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 "},i:{x_min:14,x_max:136,ha:275,o:"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 "},"Β":{x_min:0,x_max:778,ha:877,o:"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 "},"υ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 "},"]":{x_min:0,x_max:275,ha:372,o:"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 "},m:{x_min:0,x_max:1019,ha:1128,o:"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 "},"χ":{x_min:8.328125,x_max:780.5625,ha:815,o:"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 "},8:{x_min:55,x_max:736,ha:792,o:"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 "},"ί":{x_min:42,x_max:326.71875,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 "},"Ζ":{x_min:0,x_max:779.171875,ha:850,o:"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 "},R:{x_min:0,x_max:781.953125,ha:907,o:"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 "},o:{x_min:0,x_max:713,ha:821,o:"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 "},5:{x_min:54.171875,x_max:738,ha:792,o:"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 "},7:{x_min:58.71875,x_max:730.953125,ha:792,o:"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 "},K:{x_min:0,x_max:819.46875,ha:906,o:"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},",":{x_min:0,x_max:142,ha:239,o:"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 "},d:{x_min:0,x_max:683,ha:796,o:"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 "},"¨":{x_min:-109,x_max:247,ha:232,o:"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 "},E:{x_min:0,x_max:736.109375,ha:789,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},Y:{x_min:0,x_max:820,ha:886,o:"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 "},'"':{x_min:0,x_max:299,ha:396,o:"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"‹":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"„":{x_min:0,x_max:364,ha:467,o:"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 "},"δ":{x_min:1,x_max:710,ha:810,o:"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 "},"έ":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 "},"ω":{x_min:0,x_max:922,ha:1031,o:"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 "},"´":{x_min:0,x_max:96,ha:251,o:"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"±":{x_min:11,x_max:781,ha:792,o:"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 "},"|":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"ϋ":{x_min:0,x_max:617,ha:725,o:"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 "},"§":{x_min:0,x_max:593,ha:690,o:"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 "},b:{x_min:0,x_max:685,ha:783,o:"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 "},q:{x_min:0,x_max:683,ha:876,o:"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 "},"Ω":{x_min:-.171875,x_max:969.5625,ha:1068,o:"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 "},"ύ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 "},z:{x_min:-.015625,x_max:613.890625,ha:697,o:"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 "},"™":{x_min:0,x_max:894,ha:1e3,o:"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 "},"ή":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 "},"Θ":{x_min:0,x_max:960,ha:1056,o:"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 "},"®":{x_min:-3,x_max:1008,ha:1106,o:"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 "},"~":{x_min:0,x_max:833,ha:931,o:"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 "},"Ε":{x_min:0,x_max:736.21875,ha:778,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},"³":{x_min:0,x_max:450,ha:547,o:"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 "},"[":{x_min:0,x_max:273.609375,ha:371,o:"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 "},L:{x_min:0,x_max:645.828125,ha:696,o:"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 "},"σ":{x_min:0,x_max:803.390625,ha:894,o:"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 "},"ζ":{x_min:0,x_max:573,ha:642,o:"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 "},"θ":{x_min:0,x_max:674,ha:778,o:"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 "},"Ο":{x_min:0,x_max:958,ha:1054,o:"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 "},"Γ":{x_min:0,x_max:705.28125,ha:749,o:"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 "}," ":{x_min:0,x_max:0,ha:375},"%":{x_min:-3,x_max:1089,ha:1186,o:"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 "},P:{x_min:0,x_max:726,ha:806,o:"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 "},"Έ":{x_min:0,x_max:1078.21875,ha:1118,o:"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ώ":{x_min:.125,x_max:1136.546875,ha:1235,o:"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 "},_:{x_min:0,x_max:705.5625,ha:803,o:"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 "},"Ϊ":{x_min:-110,x_max:246,ha:275,o:"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 "},"+":{x_min:23,x_max:768,ha:792,o:"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 "},"½":{x_min:0,x_max:1050,ha:1149,o:"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 "},"Ρ":{x_min:0,x_max:720,ha:783,o:"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 "},"'":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"ª":{x_min:0,x_max:350,ha:397,o:"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 "},"΅":{x_min:0,x_max:450,ha:553,o:"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 "},T:{x_min:0,x_max:777,ha:835,o:"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 "},"Φ":{x_min:0,x_max:915,ha:997,o:"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 "},"⁋":{x_min:0,x_max:0,ha:694},j:{x_min:-77.78125,x_max:167,ha:349,o:"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 "},"Σ":{x_min:0,x_max:756.953125,ha:819,o:"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 "},1:{x_min:215.671875,x_max:574,ha:792,o:"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 "},"›":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},"<":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"£":{x_min:0,x_max:704.484375,ha:801,o:"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 "},t:{x_min:0,x_max:367,ha:458,o:"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 "},"¬":{x_min:0,x_max:706,ha:803,o:"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 "},"λ":{x_min:0,x_max:750,ha:803,o:"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 "},W:{x_min:0,x_max:1263.890625,ha:1351,o:"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 "},">":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},"τ":{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},"ξ":{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},"Λ":{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},"ΰ":{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"·":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"Υ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},"μ":{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"φ":{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"“":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},6:{x_min:53,x_max:739,ha:792,o:"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 "},"‘":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},"ϊ":{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},"π":{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},"ά":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},3:{x_min:54,x_max:737,ha:792,o:"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 "},9:{x_min:53,x_max:739,ha:792,o:"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "},"¤":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},"κ":{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},4:{x_min:48,x_max:742.453125,ha:792,o:"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"‡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},"ψ":{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},"η":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},cssFontWeight:"normal",ascender:1189,underlinePosition:-100,cssFontStyle:"normal",boundingBox:{yMin:-334,xMin:-111,yMax:1189,xMax:1672},resolution:1e3,original_font_information:{postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Μagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Μagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:'Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r\n\r\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r\n\r\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r\n\r\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r\n\r\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r\n\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.',manufacturer_name:"Μagenta ltd",font_sub_family_name:"Regular"},descender:-334,familyName:"Helvetiker",lineHeight:1522,underlineThickness:50}},199:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),o=n(198);var i=(new r.FontLoader).parse(o.HELVETIKER);t.default={name:"text",prototype:"items",info:{tag:["text"],title:"Text 3D",description:"Text",image:n(197)},properties:{text:{label:"text",type:"string",defaultValue:"Custom Text"},fontSize:{label:"font size",type:"number",defaultValue:16},color:{label:"text color",type:"color",defaultValue:"#000000"},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.properties.get("color")||"#000000",o=e.properties.get("text")||"",i=e.properties.get("fontSize")||16,l=(o.length-o.length/2)*i+16,s=2*i;return a.default.createElement("g",null,a.default.createElement("rect",{x:-l/2,y:-s/2,fill:"#FFF",width:l,height:s,stroke:"#000",strokeWidth:"2"}),a.default.createElement("text",{x:"0",y:"0",fontFamily:"Arial",alignmentBaseline:"middle",textAnchor:"middle",fontSize:i,fill:r,transform:"scale(1,-1)"},o))},render3D:function(e,t,n){var a=e.properties.get("text")||"",o=e.properties.get("fontSize")||16,l=(a.length-a.length/2)*o+16,s=e.properties.get("color")||"#000000",u=new r.Mesh(new r.TextGeometry(a,{size:o,height:1,font:i}),new r.MeshBasicMaterial({color:s}));if(e.selected){var d=new r.BoxHelper(u,10077179);d.material.linewidth=2,d.material.depthTest=!1,d.renderOrder=1e3,u.add(d)}return u.position.y+=e.properties.getIn(["altitude","length"]),u.position.x-=l/2,Promise.resolve(u)}}},200:function(e,t,n){e.exports=n.p+"catalog/items/teaching-post/teaching-post.png"},201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));t.default={name:"teaching-post",prototype:"items",info:{tag:["furnishings"],title:"Teaching post",description:"Teaching post",image:n(200)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;Math.sin(r*Math.PI/180)<0&&(o=180);var i={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-70,-47.5)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:140,height:95,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("line",{key:"2",x1:70,x2:70,y1:95,y2:142.5,style:i}),a.default.createElement("line",{key:"3",x1:35,x2:70,y1:114,y2:142.5,style:i}),a.default.createElement("line",{key:"4",x1:70,x2:105,y1:142.5,y2:114,style:i}),a.default.createElement("text",{key:"5",x:"0",y:"0",transform:"translate(70, 47.5) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,a){var o=e.properties.get("altitude").get("length"),i=(new r.TextureLoader).load(n(95)),l=new r.MeshLambertMaterial({map:i}),s=new r.MeshBasicMaterial({color:6723942}),u=new r.Object3D,d=new r.Mesh(new r.BoxGeometry(.06,.06,1.2),l);d.position.z+=.6,d.position.x+=.05,d.position.y+=.05;var c=new r.Mesh(new r.BoxGeometry(.06,.06,1.2),l);c.position.z+=.6,c.position.x+=1.9-.05,c.position.y+=.05;var p=new r.Mesh(new r.BoxGeometry(.06,.06,1.2),l);p.position.z+=.6,p.position.x+=1.9-.05,p.position.y+=1.45;var h=new r.Mesh(new r.BoxGeometry(.06,.06,1.2),l);h.position.z+=.6,h.position.x+=.05,h.position.y+=1.45;var f=[l,l,l,l,s,l],m=new r.Mesh(new r.BoxGeometry(1.9,1.5,.04),f);m.position.x+=.95,m.position.y+=.75,m.position.z+=1.2;var y=new r.Mesh(new r.BoxGeometry(1.9,.65,.04),l);y.rotation.x+=Math.PI/2,y.position.x+=.95,y.position.z+=.825;var v=new r.Mesh(new r.BoxGeometry(1.9,.075,.04),l);v.position.x+=.95,v.position.y+=1.15,v.position.z+=.6;var g=new r.Mesh(new r.BoxGeometry(1.5,.65,.04),l);g.rotation.x+=Math.PI/2,g.rotation.y+=Math.PI/2,g.position.x+=1.9,g.position.y+=.75,g.position.z+=.825;var x=g.clone();x.position.x-=1.9;var w=new r.Mesh(new r.BoxGeometry(.475,1.5,.4),l);w.position.x+=.475,w.position.y+=.75,w.position.z+=1.2/1.55;var M=new r.BoxGeometry(.1,.04,.02),q=new r.Mesh(M,l);q.position.y+=.77;var _=new r.BoxGeometry(.5,.04,.3),b=new r.Mesh(_,s);b.position.y+=.75,w.add(q),w.add(b),w.scale.set(1.5,1,.7);var E=w.clone();E.position.z+=1.2/4.5,u.add(d),u.add(c),u.add(p),u.add(h),u.add(m),u.add(w),u.add(E),u.add(y),u.add(g),u.add(x),u.add(v);var O=(new r.Box3).setFromObject(u),I=Math.abs(O.max.x-O.min.x),P=Math.abs(O.max.y-O.min.y),T=Math.abs(O.max.z-O.min.z);u.rotation.x+=-Math.PI/2,u.position.y+=o,u.position.x+=-70,u.position.z+=70/1.5,u.scale.set(140/I,70/T,100/P);var G=function(e){var t=new r.Object3D,a=new r.CylinderGeometry(.02,.02,.5,32),o=new r.MeshLambertMaterial({color:14276567}),i=new r.Mesh(a,o);i.rotation.x+=Math.PI/2,i.position.z+=.25;var l=new r.Mesh(a,o);l.rotation.x+=Math.PI/2,l.position.z+=.25,l.position.y+=.4;var s=new r.Mesh(a,o);s.rotation.x+=Math.PI/2,s.position.z+=.25,s.position.x+=.4;var u=new r.Mesh(a,o);u.rotation.x+=Math.PI/2,u.position.z+=.25,u.position.y+=.4,u.position.x+=.4;var d=new r.Mesh(a,o);d.rotation.x+=Math.PI/2,d.position.z+=.75;var c=new r.Mesh(a,o);c.rotation.x+=Math.PI/2,c.position.z+=.75,c.position.x+=.4;var p=(new r.TextureLoader).load(n(95)),h=new r.MeshLambertMaterial({map:p}),f=new r.Shape;f.moveTo(0,.05),f.lineTo(0,.43),f.quadraticCurveTo(0,.48,.05,.48),f.lineTo(.45,.48),f.quadraticCurveTo(.5,.48,.5,.43),f.lineTo(.5,.05),f.quadraticCurveTo(.5,0,.45,0),f.lineTo(.05,0),f.quadraticCurveTo(0,0,0,.05);var m=new r.ExtrudeGeometry(f,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new r.Mesh(m,h);y.position.x+=-.05,y.position.y+=-.04,y.position.z+=.5;var v=new r.Shape;v.moveTo(0,.05),v.lineTo(0,.2),v.quadraticCurveTo(0,.25,.05,.25),v.lineTo(.4,.25),v.quadraticCurveTo(.45,.25,.45,.2),v.lineTo(.45,.05),v.quadraticCurveTo(.45,0,.4,0),v.lineTo(.05,0),v.quadraticCurveTo(0,0,0,.05);var g=new r.ExtrudeGeometry(v,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),x=new r.Mesh(g,h);x.rotation.x+=Math.PI/2,x.position.z+=.75,x.position.y+=.03,x.position.x+=-.025,t.add(x),t.add(y),t.add(i),t.add(l),t.add(s),t.add(u),t.add(d),t.add(c);var w=(new r.Box3).setFromObject(t),M=Math.abs(w.max.x-w.min.x),q=Math.abs(w.max.y-w.min.y),_=Math.abs(w.max.z-w.min.z);return t.rotation.x+=-Math.PI/2,t.position.y+=e,t.position.x+=-55/3.5,t.position.z+=55/4,t.scale.set(82.5/_,55/1.5/M,50/q),t}(o);G.rotation.z+=Math.PI,G.position.z-=70,G.position.x+=60;var S=new r.Object3D;if(S.add(u),S.add(G),e.selected){var D=new r.BoxHelper(S,10077179);D.material.linewidth=5,D.renderOrder=1e3,D.material.depthTest=!1,S.add(D)}S.rotation.y+=Math.PI,S.position.z-=12.5;var R=(new r.Box3).setFromObject(S),A=Math.abs(R.max.z-R.min.z);return S.scale.set(1,1,95/A),Promise.resolve(S)}}},202:function(e,t,n){e.exports=n.p+"catalog/items/table/table.png"},203:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=3,i=new r.MeshLambertMaterial({color:10194037}),l=new r.MeshLambertMaterial({color:14276567});t.default={name:"table",prototype:"items",info:{tag:["furnishings","wood"],title:"table",description:"table",image:n(202)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:90,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:50,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:80,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.properties.get("width").get("length"),o=e.properties.get("depth").get("length"),i=e.rotation+90,l=0;return Math.sin(i*Math.PI/180)<0&&(l=180),a.default.createElement("g",{transform:"translate("+-r/2+","+-o/2+")"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:r,height:o,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate("+r/2+", "+o/2+") scale(1,-1) rotate("+l+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("width").get("length"),s=e.properties.get("depth").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("altitude").get("length"),c=new r.Object3D,p=function(e,t,n){var a=new r.Mesh,s=new r.BoxGeometry(e,t/20,n),u=new r.Mesh(s,i);u.position.y=t,a.add(u);var d=new r.CylinderGeometry(o,o,t,32,32),c=new r.Mesh(d,l);c.position.x=e/2,c.position.z=n/2,c.position.y=t/2,a.add(c);var p=new r.Mesh(d,l);p.position.x=e/2,p.position.z=-n/2,p.position.y=t/2,a.add(p);var h=new r.Mesh(d,l);h.position.x=-e/2,h.position.z=n/2,h.position.y=t/2,a.add(h);var f=new r.Mesh(d,l);return f.position.x=-e/2,f.position.z=-n/2,f.position.y=t/2,a.add(f),a}(a,u,s);c.add(p.clone()),c.position.y+=u/20+d;var h=new r.Object3D,f=function(e,t,n){var a=new r.Mesh,s=new r.BoxGeometry(e,t/20,n),u=new r.Mesh(s,i);u.position.y=t,a.add(u);var d=new r.CylinderGeometry(o,o,t,8,8),c=new r.Mesh(d,l);c.position.x=e/2,c.position.z=n/2,c.position.y=t/2,a.add(c);var p=new r.Mesh(d,l);p.position.x=e/2,p.position.z=-n/2,p.position.y=t/2,a.add(p);var h=new r.Mesh(d,l);h.position.x=-e/2,h.position.z=n/2,h.position.y=t/2,a.add(h);var f=new r.Mesh(d,l);return f.position.x=-e/2,f.position.z=-n/2,f.position.y=t/2,a.add(f),a}(a,u,s);h.add(f.clone()),h.position.y+=u/20+d;var m=new r.LOD;if(m.addLevel(c,200),m.addLevel(h,900),m.updateMatrix(),m.matrixAutoUpdate=!1,e.selected){var y=new r.BoxHelper(m,10077179);y.material.linewidth=5,y.renderOrder=1e3,y.material.depthTest=!1,m.add(y)}return Promise.resolve(m)}}},204:function(e,t,n){e.exports=n.p+"catalog/items/sofa/sofa.png"},205:function(e,t,n){e.exports=n.p+"catalog/items/sofa/texture.jpg"},206:function(e,t,n){e.exports=n.p+"catalog/items/sofa/sofa.obj"},207:function(e,t,n){e.exports=n.p+"catalog/items/sofa/sofa.mtl"},208:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=n(27),o=s(n(26)),i=s(n(52)),l=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}var u=n(207),d=n(206),c=n(205),p=180,h="cm",f=60,m="cm",y=70,v="cm",g=null;t.default={name:"sofa",prototype:"items",info:{title:"sofa",tag:["furnishings","leather"],description:"Leather sofa",image:n(204)},properties:{},render2D:function(e,t,n){var r=e.rotation+90,a=Math.sin(r*Math.PI/180)<0?180:0,o={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},i={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return l.default.createElement("g",{transform:"translate("+-p/2+","+-f/2+")"},l.default.createElement("rect",{x:"0",y:"0",width:p,height:f,style:o}),l.default.createElement("line",{x1:p/2,x2:p/2,y1:f,y2:1.5*f,style:i}),l.default.createElement("line",{x1:.35*p,x2:p/2,y1:1.2*f,y2:1.5*f,style:i}),l.default.createElement("line",{x1:p/2,x2:.65*p,y1:1.5*f,y2:1.2*f,style:i}),l.default.createElement("text",{x:"0",y:"0",transform:"translate("+p/2+", "+f/2+") scale(1,-1) rotate("+a+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var l=function(t){var a=(0,i.default)(p).from(h).to(n.unit),o=(0,i.default)(y).from(v).to(n.unit),l=(0,i.default)(f).from(m).to(n.unit);t.scale.set(a/p,o/y,l/f);var s=new r.BoxHelper(t,10077179);s.material.linewidth=2,s.material.depthTest=!1,s.renderOrder=1e3,s.visible=e.selected,t.add(s);var u=(new r.Box3).setFromObject(t),d=[(u.max.x-u.min.x)/2+u.min.x,(u.max.y-u.min.y)/2+u.min.y,(u.max.z-u.min.z)/2+u.min.z];return t.position.x-=d[0],t.position.y-=d[1]-(u.max.y-u.min.y)/2,t.position.z-=d[2],t};if(g){var s=(new r.ObjectLoader).parse(g);return Promise.resolve(l(s))}return(0,a.loadObjWithMaterial)(u,d,o.default.dirname(c)+"/").then(function(e){g=e.toJSON();var t=new r.ObjectLoader;return l(t.parse(g))})},updateRender3D:function(e,t,n,a,o,i,l,s){return-1!==i.indexOf("selected")?(a.traverse(function(t){t instanceof r.BoxHelper&&(t.visible=e.selected)}),Promise.resolve(a)):-1!==i.indexOf("rotation")?(a.rotation.y=e.rotation*Math.PI/180,Promise.resolve(a)):(l(),s())}}},209:function(e,t,n){e.exports=n.p+"catalog/items/smoke-detector/smokeDetector.png"},21:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","style"]);return a.default.createElement("label",r({style:r({},o,{style:n})},i),t)};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o={display:"block",marginBottom:"5px"}},2507:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onChange"]);return a.default.createElement(o.default,r({type:"color",style:l,onChange:function(e){var n=e.target.value;s.test(n)&&t(e)},autoComplete:"off"},n))};var a=i(n(0)),o=i(n(63));function i(e){return e&&e.__esModule?e:{default:e}}var l={padding:0,border:0},s=/^.*$/},2508:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","style"]);return a.default.createElement("div",r({style:r({},o,{style:n})},i),t)};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o={marginBottom:"16px"}},2509:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return a.default.createElement(o.default,r({style:s,styleHover:u},n),t)};var a=l(n(0)),o=l(n(64)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5));function l(e){return e&&e.__esModule?e:{default:e}}var s={borderColor:"#c12e2a",backgroundColor:"#c9302c",color:i.COLORS.white},u={backgroundColor:"#972726",borderColor:"#c12e2a",color:i.COLORS.white}},251:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.TextureLoader,i=o.load(n(250)),l=o.load(n(249)),s=o.load(n(248)),u=new r.MeshLambertMaterial({map:i}),d=new r.MeshLambertMaterial({map:l}),c=new r.MeshLambertMaterial({map:s}),p=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(1,.05,1.5),u);t.position.set(0,.15,0),e.add(t);for(var n=-.45;n<=.45;n+=.9)for(var a=-.7125;a<=.7125;a+=1.425){var o=new r.Mesh(new r.CylinderGeometry(.05,.05,.05,4),u);o.position.set(n,-.05,a),o.rotation.y=.25*Math.PI,t.add(o)}var i=new r.Mesh(new r.BoxGeometry(.05,1,1.5),u);i.position.set(.475,.525,0),t.add(i);var l=new r.Mesh(new r.BoxGeometry(1,1,.05),u);l.position.set(0,.525,.725),t.add(l);var s=new r.Mesh(new r.BoxGeometry(1,1,.05),u);s.position.set(0,.525,-.725),t.add(s);var p=new r.Mesh(new r.BoxGeometry(1,.2,1.5),u);p.position.set(0,1.1,0),t.add(p);var h=new r.Mesh(new r.PlaneGeometry(.1,.05),c);h.position.set(-.51,1.13,0),h.rotation.y=-.5*Math.PI,t.add(h);var f=new r.Mesh(new r.BoxGeometry(.05,.99,1.4),u);f.position.set(-.47,.525,0),t.add(f);var m=new r.Mesh(new r.BoxGeometry(.05,.9,1.3),u);m.position.set(-.53,.525,0),t.add(m);var y=new r.Mesh(new r.CylinderGeometry(.02,.02,1),d);y.position.set(-.6,.85,0),y.rotation.x=.5*Math.PI,t.add(y);var v=new r.Mesh(new r.CylinderGeometry(.02,.02,.06),d);v.position.set(-.56,.85,-.4),v.rotation.z=.5*Math.PI,t.add(v);var g=new r.Mesh(new r.CylinderGeometry(.02,.02,.06),d);g.position.set(-.56,.85,.4),g.rotation.z=.5*Math.PI,t.add(g);for(var x=-.6;x<=.65;x+=.3){var w=new r.Mesh(new r.CylinderGeometry(.03,.03,.02,32),d);w.position.set(-.51,1.05,x),w.rotation.z=.5*Math.PI,t.add(w);var M=new r.Mesh(new r.BoxGeometry(.05,.03,.01),d);M.position.set(0,.02,0),w.add(M)}for(var q=-.22;q<=.22;q+=.44)for(var _=-.45;_<=.45;_+=.9){var b=new r.Mesh(new r.CylinderGeometry(.08,.1,.02,32),d);b.position.set(q,1.21,_),t.add(b)}var E=new r.Mesh(new r.CylinderGeometry(.1,.12,.02,32),d);E.position.set(0,1.21,0),t.add(E);for(var O=-.45;O<=.45;O+=.45)if(0!==O){var I=new r.Mesh(new r.BoxGeometry(.03,.05,1.38),d);I.position.set(O,1.21,0),t.add(I)}else for(var P=-.46;P<=.68;P+=.9){var T=new r.Mesh(new r.BoxGeometry(.03,.05,.46),d);T.position.set(O,1.21,P),t.add(T)}for(var G=-.675;G<=.675;G+=.45){var S=new r.Mesh(new r.BoxGeometry(.9,.05,.03),d);S.position.set(0,1.21,G),t.add(S)}for(var D=-.22;D<=.22;D+=.44){for(var R=-.59;R<=.68;R+=.9){var A=new r.Mesh(new r.BoxGeometry(.03,.01,.2),d);A.position.set(D,1.24,R),t.add(A)}for(var L=.59;L>=-.68;L-=.9){var C=new r.Mesh(new r.BoxGeometry(.03,.01,.2),d);C.position.set(D,1.24,L),t.add(C)}}for(var k=-.365;k<=.345;k+=.7)for(var j=-.45;j<=.45;j+=.45)if(0!==j){var N=new r.Mesh(new r.BoxGeometry(.2,.02,.03),d);k<0?N.position.set(k,1.24,j):N.position.set(k+.03,1.24,j),t.add(N)}else{var z=new r.Mesh(new r.BoxGeometry(.4,.02,.03),d);k<0?z.position.set(k+.1,1.24,j):z.position.set(k-.07,1.24,j),t.add(z)}for(var B=-.45;B<=.45;B+=.9){var U=new r.Mesh(new r.BoxGeometry(.35,.02,.03),d);U.position.set(0,1.24,B),t.add(U)}for(var V=-.14;V<=.14;V+=.28){var F=new r.Mesh(new r.BoxGeometry(.03,.02,.2),d);F.position.set(0,1.25,V),t.add(F)}return e}(),h=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(1,.05,1.5),u);t.position.set(0,.15,0),e.add(t);for(var n=-.45;n<=.45;n+=.9)for(var a=-.7125;a<=.7125;a+=1.425){var o=new r.Mesh(new r.CylinderGeometry(.05,.05,.05,4),u);o.position.set(n,-.05,a),o.rotation.y=.25*Math.PI,t.add(o)}var i=new r.Mesh(new r.BoxGeometry(.05,1,1.5),u);i.position.set(.475,.525,0),t.add(i);var l=new r.Mesh(new r.BoxGeometry(1,1,.05),u);l.position.set(0,.525,.725),t.add(l);var s=new r.Mesh(new r.BoxGeometry(1,1,.05),u);s.position.set(0,.525,-.725),t.add(s);var p=new r.Mesh(new r.BoxGeometry(1,.2,1.5),u);p.position.set(0,1.1,0),t.add(p);var h=new r.Mesh(new r.PlaneGeometry(.1,.05),c);h.position.set(-.51,1.13,0),h.rotation.y=-.5*Math.PI,t.add(h);var f=new r.Mesh(new r.BoxGeometry(.05,.99,1.4),u);f.position.set(-.47,.525,0),t.add(f);var m=new r.Mesh(new r.BoxGeometry(.05,.9,1.3),u);m.position.set(-.53,.525,0),t.add(m);var y=new r.Mesh(new r.CylinderGeometry(.02,.02,1),d);y.position.set(-.6,.85,0),y.rotation.x=.5*Math.PI,t.add(y);var v=new r.Mesh(new r.CylinderGeometry(.02,.02,.06),d);v.position.set(-.56,.85,-.4),v.rotation.z=.5*Math.PI,t.add(v);var g=new r.Mesh(new r.CylinderGeometry(.02,.02,.06),d);g.position.set(-.56,.85,.4),g.rotation.z=.5*Math.PI,t.add(g);for(var x=-.6;x<=.65;x+=.3){var w=new r.Mesh(new r.CylinderGeometry(.03,.03,.02,32),d);w.position.set(-.51,1.05,x),w.rotation.z=.5*Math.PI,t.add(w);var M=new r.Mesh(new r.BoxGeometry(.05,.03,.01),d);M.position.set(0,.02,0),w.add(M)}for(var q=-.22;q<=.22;q+=.44)for(var _=-.45;_<=.45;_+=.9){var b=new r.Mesh(new r.CylinderGeometry(.08,.1,.02,32),d);b.position.set(q,1.21,_),t.add(b)}var E=new r.Mesh(new r.CylinderGeometry(.1,.12,.02,32),d);E.position.set(0,1.21,0),t.add(E);for(var O=-.45;O<=.45;O+=.45)if(0!==O){var I=new r.Mesh(new r.BoxGeometry(.03,.05,1.38),d);I.position.set(O,1.21,0),t.add(I)}else for(var P=-.46;P<=.68;P+=.9){var T=new r.Mesh(new r.BoxGeometry(.03,.05,.46),d);T.position.set(O,1.21,P),t.add(T)}for(var G=-.675;G<=.675;G+=.45){var S=new r.Mesh(new r.BoxGeometry(.9,.05,.03),d);S.position.set(0,1.21,G),t.add(S)}for(var D=-.22;D<=.22;D+=.44){for(var R=-.59;R<=.68;R+=.9){var A=new r.Mesh(new r.BoxGeometry(.03,.01,.2),d);A.position.set(D,1.24,R),t.add(A)}for(var L=.59;L>=-.68;L-=.9){var C=new r.Mesh(new r.BoxGeometry(.03,.01,.2),d);C.position.set(D,1.24,L),t.add(C)}}for(var k=-.365;k<=.345;k+=.7)for(var j=-.45;j<=.45;j+=.45)if(0!==j){var N=new r.Mesh(new r.BoxGeometry(.2,.02,.03),d);k<0?N.position.set(k,1.24,j):N.position.set(k+.03,1.24,j),t.add(N)}else{var z=new r.Mesh(new r.BoxGeometry(.4,.02,.03),d);k<0?z.position.set(k+.1,1.24,j):z.position.set(k-.07,1.24,j),t.add(z)}for(var B=-.45;B<=.45;B+=.9){var U=new r.Mesh(new r.BoxGeometry(.35,.02,.03),d);U.position.set(0,1.24,B),t.add(U)}for(var V=-.14;V<=.14;V+=.28){var F=new r.Mesh(new r.BoxGeometry(.03,.02,.2),d);F.position.set(0,1.25,V),t.add(F)}return e}();t.default={name:"kitchen",prototype:"items",info:{tag:["furnishings","metal"],title:"kitchen",description:"kitchen",image:n(247)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-40,-50)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:80,height:100,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(40, 50) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(p.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),u=Math.abs(i.max.z-i.min.z);o.position.y+=a,o.scale.set(80/l,80/s,100/u);var d=new r.Object3D;d.add(h.clone()),d.position.y+=a,d.scale.set(80/l,80/s,100/u);var c=new r.LOD;if(c.addLevel(o,200),c.addLevel(d,900),c.updateMatrix(),c.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(c,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,c.add(f)}return Promise.resolve(c)}}},2510:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return a.default.createElement(o.default,r({style:l,styleHover:s},n),t)};var a=i(n(0)),o=i(n(64));function i(e){return e&&e.__esModule?e:{default:e}}var l={borderColor:"#adadad",backgroundColor:"#e6e6e6"},s={backgroundColor:"#d4d4d4",borderColor:"#8c8c8c"}},2511:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.value,n=e.onUpdate,a=e.configs,l=e.sourceElement,s=e.internalState,u=e.state;return r.default.createElement("table",{className:"PropertyColor",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,a.label)),r.default.createElement("td",null,r.default.createElement(o.FormColorInput,{value:t,onChange:function(e){return function(e){return a.hook?a.hook(e,l,s,u).then(function(e){return n(e)}):n(e)}(e.target.value)}})))))}s.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},2512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34),a=he(n(373)),o=he(n(367)),i=he(n(361)),l=he(n(359)),s=he(n(351)),u=he(n(349)),d=he(n(347)),c=he(n(345)),p=he(n(340)),h=he(n(338)),f=he(n(333)),m=he(n(328)),y=he(n(323)),v=he(n(321)),g=he(n(319)),x=he(n(315)),w=he(n(312)),M=he(n(310)),q=he(n(305)),_=he(n(303)),b=he(n(301)),E=he(n(299)),O=he(n(297)),I=he(n(295)),P=he(n(293)),T=he(n(291)),G=he(n(288)),S=he(n(286)),D=he(n(283)),R=he(n(281)),A=he(n(279)),L=he(n(277)),C=he(n(273)),k=he(n(270)),j=he(n(266)),N=he(n(262)),z=he(n(260)),B=he(n(257)),U=he(n(254)),V=he(n(251)),F=he(n(246)),H=he(n(243)),W=he(n(239)),Y=he(n(233)),Z=he(n(230)),X=he(n(228)),J=he(n(226)),K=he(n(224)),Q=he(n(221)),$=he(n(219)),ee=he(n(216)),te=he(n(214)),ne=he(n(212)),re=he(n(210)),ae=he(n(208)),oe=he(n(203)),ie=he(n(201)),le=he(n(199)),se=he(n(196)),ue=he(n(193)),de=he(n(191)),ce=he(n(187)),pe=he(n(184));function he(e){return e&&e.__esModule?e:{default:e}}var fe=new r.Catalog,me={area:a.default};Object.freeze(me);var ye={wall:o.default};Object.freeze(ye);var ve={doorDouble:i.default,door:l.default,gate:s.default,panicDoorDouble:u.default,panicDoor:d.default,sashWindow:c.default,slidingDoor:p.default,venetianBlindWindow:h.default,windowCurtain:f.default,window:m.default};Object.freeze(ve);var ge={airConditioner:y.default,armchairs:v.default,balcony:g.default,bench:x.default,blackboard:w.default,bookcase:M.default,camera:q.default,canteenTable:_.default,canteencart:b.default,chair:E.default,chairdesk:O.default,childChairDesk:I.default,cleaningcart:P.default,coatHook:T.default,columnSquare:G.default,column:S.default,cube:D.default,desk:R.default,deskdouble:A.default,deskoffice:L.default,electricalPanel:C.default,fireExtinguisher:k.default,fridge:j.default,hanger:N.default,hiroos:z.default,hub:B.default,image:U.default,kitchen:V.default,lim:F.default,metalDetector:H.default,monitorPc:W.default,naspo:Y.default,projector:Z.default,radiatorModernStyle:X.default,radiatorOldStyle:J.default,recyclingBins:K.default,routerWifi:Q.default,schneider:$.default,schoolDeskDouble:ee.default,schoolDesk:te.default,sink:ne.default,smokeDetector:re.default,sofa:ae.default,table:oe.default,teachingPost:ie.default,text3d:le.default,threePhasePanel:se.default,trash:ue.default,tv:de.default,umbrellaStand:ce.default,wardrobe:pe.default};for(var xe in Object.freeze(ge),me)fe.registerElement(me[xe]);for(var we in ye)fe.registerElement(ye[we]);for(var Me in ve)fe.registerElement(ve[Me]);for(var qe in ge)fe.registerElement(ge[qe]);fe.registerCategory("windows","Windows",[ve.window,ve.sashWindow,ve.venetianBlindWindow,ve.windowCurtain]),fe.registerCategory("doors","Doors",[ve.door,ve.doorDouble,ve.panicDoor,ve.panicDoorDouble,ve.slidingDoor]),t.default=fe},252:function(e,t,n){e.exports=n.p+"catalog/items/image/image.png"},253:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;ns&&(n=s),r>i.y?r=i.y:rt?(i.moveTo(0,0),i.lineTo(e,0),i.lineTo(e+(t/2-e/2),a),i.lineTo(-(t/2-e/2),a)):e===t&&(i.moveTo(0,0),i.lineTo(0,a),i.lineTo(e,a),i.lineTo(e,0));var l={steps:2,depth:n/40,bevelEnabled:!1,bevelThickness:n,bevelSize:n,bevelSegments:2},c=new r.ExtrudeGeometry(i,l),p=new r.MeshLambertMaterial({map:s}),h=new r.Mesh(c,p);h.rotation.x+=Math.PI/2,h.position.y=n/1.8;var f=new r.Shape,m=new r.Path;et?(f.moveTo(0,0),f.lineTo(e,0),f.lineTo(e+(t/2-e/2),a),f.lineTo(-(t/2-e/2),a),m.moveTo(e/2-t/2-e/20,a/20),m.lineTo(e-(e/2-t/2)+e/20,a/20),m.lineTo(t+e/20,a-a/20),m.lineTo(e-t-e/20,a-a/20),f.holes.push(m)):e===t&&(f.moveTo(0,0),f.lineTo(e,0),f.lineTo(e,a),f.lineTo(0,a),m.moveTo(e/20,a/20),m.lineTo(e-e/20,a/20),m.lineTo(e-e/20,a-a/20),m.lineTo(e/20,a-a/20),f.holes.push(m));var y=new r.ExtrudeGeometry(f,l),v=new r.Mesh(y,p);v.position.y+=n,v.position.z+=a/40,v.rotation.x+=Math.PI/2;var g=new r.Mesh(c,p);g.position.y+=n,g.rotation.x+=Math.PI/1.5,et||e===t)&&g.scale.set(1,1,1);var x=new r.Shape;et?(x.moveTo(e/2-t/2-e/20,a/20),x.lineTo(e-(e/2-t/2)+e/20,a/20),x.lineTo(t+e/20,a-a/20),x.lineTo(e-t-e/20,a-a/20)):e===t&&(x.moveTo(e/20,a/20),x.lineTo(e-e/20,a/20),x.lineTo(e-e/20,a-a/20),x.lineTo(e/20,a-a/20));var w=new r.ExtrudeGeometry(x,l),M=new r.Mesh(w,u);M.position.y+=n,M.rotation.x+=Math.PI/2;var q=new r.BoxGeometry(e,a/20,1.6*n),_=new r.Mesh(q,p);_.rotation.x+=Math.PI/2,_.position.set(e/2,n/5,0);var b=void 0;et&&(b=e/2-t/2);var E=a/b,O=Math.atan(E),I=void 0;I=Math.sqrt(Math.pow(b,2)+Math.pow(a,2)),e===t&&(I=a);var P=new r.BoxGeometry(I,a/20,1.6*n),T=new r.Mesh(P,p);T.rotation.x+=Math.PI/2,et?(T.position.set((e-(e/2+t/2))/2,n/5,a/2),T.rotation.z+=O):e===t&&(T.position.set(0,n/5,a/2),T.rotation.z+=Math.PI/2);var G=T.clone();et?(G.position.set(e-(e/2-t/2)/2,n/5,a/2),G.rotation.z=-Math.PI-O):e===t&&G.position.set(t,n/5,a/2);var S=void 0,D=void 0,R=void 0,A=void 0,L=void 0;et?(S=e/2-t/2,D=2*(e/2-t/2),R=e-(e/2-t/2),A=e-2*(e/2-t/2),L=e/2-t/2):e===t&&(S=0,D=e/8,R=e,A=e-e/8,L=e/8);for(var C=S+L;Co&&(p.position.x+=a/2),a===o&&(p.position.x+=o/2),p.rotation.y+=Math.PI,ao&&p.scale.set(a/f,i/m,l/y),a===o&&p.scale.set(a/f,i/m,l/y);var v=new r.Object3D;v.add(function(e,t,n,a){var o=new r.Mesh,i=new r.Shape;et?(i.moveTo(0,0),i.lineTo(e,0),i.lineTo(e+(t/2-e/2),a),i.lineTo(-(t/2-e/2),a)):e===t&&(i.moveTo(0,0),i.lineTo(0,a),i.lineTo(e,a),i.lineTo(e,0));var l={steps:2,depth:n/40,bevelEnabled:!1,bevelThickness:n,bevelSize:n,bevelSegments:2},u=new r.ExtrudeGeometry(i,l),d=new r.MeshLambertMaterial({map:s}),c=new r.Mesh(u,d);c.rotation.x+=Math.PI/2,c.position.y=n/1.8;var p=new r.Shape,h=new r.Path;et?(p.moveTo(0,0),p.lineTo(e,0),p.lineTo(e+(t/2-e/2),a),p.lineTo(-(t/2-e/2),a),h.moveTo(e/2-t/2-e/20,a/20),h.lineTo(e-(e/2-t/2)+e/20,a/20),h.lineTo(t+e/20,a-a/20),h.lineTo(e-t-e/20,a-a/20),p.holes.push(h)):e===t&&(p.moveTo(0,0),p.lineTo(e,0),p.lineTo(e,a),p.lineTo(0,a),h.moveTo(e/20,a/20),h.lineTo(e-e/20,a/20),h.lineTo(e-e/20,a-a/20),h.lineTo(e/20,a-a/20),p.holes.push(h));var f=new r.ExtrudeGeometry(p,l),m=new r.Mesh(f,d);m.position.y+=n,m.position.z+=a/40,m.rotation.x+=Math.PI/2;var y=new r.Mesh(u,d);y.position.y+=n,y.rotation.x+=Math.PI/1.5,et||e===t)&&y.scale.set(1,1,1);var v=new r.Shape;et?(v.moveTo(e/2-t/2-e/20,a/20),v.lineTo(e-(e/2-t/2)+e/20,a/20),v.lineTo(t+e/20,a-a/20),v.lineTo(e-t-e/20,a-a/20)):e===t&&(v.moveTo(e/20,a/20),v.lineTo(e-e/20,a/20),v.lineTo(e-e/20,a-a/20),v.lineTo(e/20,a-a/20));var g=new r.ExtrudeGeometry(v,l),x=new r.MeshLambertMaterial({color:13027014,transparent:!0,opacity:.5}),w=new r.Mesh(g,x);w.position.y+=n,w.rotation.x+=Math.PI/2;var M=new r.BoxGeometry(e,a/20,1.6*n),q=new r.Mesh(M,d);q.rotation.x+=Math.PI/2,q.position.set(e/2,n/5,0);var _=void 0;et&&(_=e/2-t/2);var b=a/_,E=Math.atan(b),O=void 0;O=Math.sqrt(Math.pow(_,2)+Math.pow(a,2)),e===t&&(O=a);var I=new r.BoxGeometry(O,a/20,1.6*n),P=new r.Mesh(I,d);P.rotation.x+=Math.PI/2,et?(P.position.set((e-(e/2+t/2))/2,n/5,a/2),P.rotation.z+=E):e===t&&(P.position.set(0,n/5,a/2),P.rotation.z+=Math.PI/2);var T=P.clone();return et?(T.position.set(e-(e/2-t/2)/2,n/5,a/2),T.rotation.z=-Math.PI-E):e===t&&T.position.set(t,n/5,a/2),o.add(c),o.add(m),o.add(y),o.add(w),o.add(q),o.add(P),o.add(T),o}(a,o,l,i).clone()),v.position.y+=l/2+c,v.position.z+=i/2,ao&&(v.position.x+=a/2),a===o&&(v.position.x+=o/2),v.rotation.y+=Math.PI,ao&&v.scale.set(a/f,i/m,l/y),a===o&&v.scale.set(a/f,i/m,l/y);var g=new r.LOD;if(g.addLevel(p,700),g.addLevel(v,1e3),g.updateMatrix(),g.matrixAutoUpdate=!1,e.selected){var x=new r.BoxHelper(g,10077179);x.material.linewidth=5,x.renderOrder=1e3,x.material.depthTest=!1,g.add(x)}return Promise.resolve(g)}}},278:function(e,t,n){e.exports=n.p+"catalog/items/deskdouble/deskdouble.png"},279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:10194037}),i=new r.MeshLambertMaterial({color:14276567}),l=new r.MeshBasicMaterial({color:6723942}),s=function(){var e=new r.Mesh,t=new r.BoxGeometry(1.05,.05,.625),n=[o,o,l,o,o,o],a=new r.Mesh(t,n);a.position.y=1,e.add(a);var s=new r.CylinderGeometry(.03,.03,1,32,32),u=new r.BoxGeometry(.9,.05,.5),d=new r.Mesh(u,o);d.position.y=.75,e.add(d);var c=new r.BoxGeometry(.9,.1,.025),p=new r.Mesh(c,o);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);var h=new r.Mesh(s,i);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);var f=new r.Mesh(s,i);f.position.x=.45,f.position.z=-.25,f.position.y=.5,e.add(f);var m=new r.Mesh(s,i);m.position.x=-.45,m.position.z=.25,m.position.y=.5,e.add(m);var y=new r.Mesh(s,i);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}(),u=function(){var e=new r.Mesh,t=new r.BoxGeometry(1.05,.05,.625),n=[o,o,l,o,o,o],a=new r.Mesh(t,n);a.position.y=1,e.add(a);var s=new r.CylinderGeometry(.03,.03,1,8,8),u=new r.BoxGeometry(.9,.05,.5),d=new r.Mesh(u,o);d.position.y=.75,e.add(d);var c=new r.BoxGeometry(.9,.1,.025),p=new r.Mesh(c,o);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);var h=new r.Mesh(s,i);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);var f=new r.Mesh(s,i);f.position.x=.45,f.position.z=-.25,f.position.y=.5,e.add(f);var m=new r.Mesh(s,i);m.position.x=-.45,m.position.z=.25,m.position.y=.5,e.add(m);var y=new r.Mesh(s,i);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}();t.default={name:"double school desk",prototype:"items",info:{tag:["furnishings","wood"],title:"double school desk",description:"double school desk",image:n(278)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-60,-25)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:120,height:50,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(60, 25) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(s.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.rotation.y+=Math.PI,o.position.y+=a,o.scale.set(120/l,90/d,50/c);var p=new r.Object3D;p.add(u.clone()),p.rotation.y+=Math.PI,p.position.y+=a,p.scale.set(120/l,90/d,50/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},280:function(e,t,n){e.exports=n.p+"catalog/items/desk/desk.png"},281:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:10194037}),i=new r.MeshLambertMaterial({color:14276567}),l=new r.MeshBasicMaterial({color:6723942}),s=function(){var e=new r.Mesh,t=new r.BoxGeometry(1.05,.05,.625),n=[o,o,l,o,o,o],a=new r.Mesh(t,n);a.position.y=1,e.add(a);var s=new r.CylinderGeometry(.03,.03,1,32,32),u=new r.BoxGeometry(.9,.05,.5),d=new r.Mesh(u,o);d.position.y=.75,e.add(d);var c=new r.BoxGeometry(.9,.1,.025),p=new r.Mesh(c,o);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);var h=new r.Mesh(s,i);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);var f=new r.Mesh(s,i);f.position.x=.45,f.position.z=-.25,f.position.y=.5,e.add(f);var m=new r.Mesh(s,i);m.position.x=-.45,m.position.z=.25,m.position.y=.5,e.add(m);var y=new r.Mesh(s,i);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}(),u=function(){var e=new r.Mesh,t=new r.BoxGeometry(1.05,.05,.625),n=[o,o,l,o,o,o],a=new r.Mesh(t,n);a.position.y=1,e.add(a);var s=new r.CylinderGeometry(.03,.03,1,32,32),u=new r.BoxGeometry(.9,.05,.5),d=new r.Mesh(u,o);d.position.y=.75,e.add(d);var c=new r.BoxGeometry(.9,.1,.025),p=new r.Mesh(c,o);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);var h=new r.Mesh(s,i);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);var f=new r.Mesh(s,i);f.position.x=.45,f.position.z=-.25,f.position.y=.5,e.add(f);var m=new r.Mesh(s,i);m.position.x=-.45,m.position.z=.25,m.position.y=.5,e.add(m);var y=new r.Mesh(s,i);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}();t.default={name:"school desk",prototype:"items",info:{tag:["furnishings","wood"],title:"school desk",description:"school desk",image:n(280)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-35,-25)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:70,height:50,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(35, 25) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(s.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.rotation.y+=Math.PI,o.position.y+=a,o.scale.set(70/l,90/d,50/c);var p=new r.Object3D;p.add(u.clone()),p.rotation.y+=Math.PI,p.position.y+=a,p.scale.set(70/l,90/d,50/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},282:function(e,t,n){e.exports=n.p+"catalog/items/cube/cube.png"},283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),a=n(3),o=n(34);t.default={name:"cube",prototype:"items",info:{title:"cube",tag:["demo"],description:"Demo item",image:n(282)},properties:{color:{label:"Color",type:"color",defaultValue:o.ReactPlannerSharedStyle.AREA_MESH_COLOR.unselected},width:{label:"Width",type:"length-measure",defaultValue:{length:100,unit:"cm"}},height:{label:"Height",type:"length-measure",defaultValue:{length:100,unit:"cm"}},depth:{label:"Depth",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){var a={stroke:e.selected?o.ReactPlannerSharedStyle.MESH_SELECTED:o.ReactPlannerSharedStyle.LINE_MESH_COLOR.unselected,strokeWidth:2,fill:e.properties.get("color")},i=e.properties.getIn(["width","length"]),l=e.properties.getIn(["depth","length"]),s=i/2,u=l/2;return r.default.createElement("g",{transform:"translate(-"+s+", -"+u+")"},r.default.createElement("rect",{x:"0",y:"0",width:i,height:l,style:a}))},render3D:function(e,t,n){var r=e.properties.getIn(["width","length"]),i=e.properties.getIn(["height","length"]),l=e.properties.getIn(["depth","length"]),s=new a.BoxGeometry(r,i,l),u=new a.MeshBasicMaterial({color:e.properties.get("color")}),d=new a.Mesh(s,u),c=new a.BoxHelper(d,e.selected?o.ReactPlannerSharedStyle.MESH_SELECTED:o.ReactPlannerSharedStyle.LINE_MESH_COLOR.unselected);return c.material.linewidth=2,c.renderOrder=1e3,d.add(c),d.position.y=i/2,Promise.resolve(d)}}},284:function(e,t,n){e.exports=n.p+"catalog/items/column/column.png"},285:function(e,t,n){e.exports=n.p+"catalog/items/column/copper.jpg"},286:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=(new r.TextureLoader).load(n(285)),i=new r.MeshLambertMaterial({map:o});t.default={name:"round column",prototype:"items",info:{tag:["structure"],title:"round column",description:"round column",image:n(284)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:300,unit:"cm"}},radius:{label:"radius",type:"length-measure",defaultValue:{length:20,unit:"cm"}}},render2D:function(e,t,n){var r=e.properties.get("radius").get("length"),o=e.rotation+90,i=0;Math.sin(o*Math.PI/180)<0&&(i=180);var l={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",null,a.default.createElement("circle",{key:"1",cx:"0",cy:"0",r:r,style:l}),a.default.createElement("text",{key:"2",cx:"0",cy:"0",transform:"scale(1,-1) rotate("+i+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("height").get("length"),o=e.properties.get("radius").get("length"),l=e.properties.get("altitude").get("length"),s=new r.Object3D,u=function(e,t){var n=e/10,a=e/2.5,o=new r.Mesh,l=new r.Mesh(new r.CylinderGeometry(e,e,t,32),i),s=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,32),i),u=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,32),i),d=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,32),i),c=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,32),i);return s.position.x+=a,s.position.z+=a,u.position.x-=a,u.position.z-=a,d.position.x-=a,d.position.z+=a,c.position.x+=a,c.position.z-=a,o.add(s),o.add(u),o.add(d),o.add(c),o.add(l),o}(o,a);s.add(u.clone()),s.position.y+=a/2+l;var d=new r.Object3D,c=function(e,t){var n=e/10,a=e/2.5,o=new r.Mesh,l=new r.Mesh(new r.CylinderGeometry(e,e,t,6,6),i),s=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,6),i),u=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,6),i),d=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,6),i),c=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,6),i);return s.position.x+=a,s.position.z+=a,u.position.x-=a,u.position.z-=a,d.position.x-=a,d.position.z+=a,c.position.x+=a,c.position.z-=a,o.add(s),o.add(u),o.add(d),o.add(c),o.add(l),o}(o,a);d.add(c.clone()),d.position.y+=a/2+l;var p=new r.LOD;if(p.addLevel(s,1300),p.addLevel(d,2e3),p.updateMatrix(),p.matrixAutoUpdate=!1,e.selected){var h=new r.BoxHelper(p,10077179);h.material.linewidth=5,h.renderOrder=1e3,h.material.depthTest=!1,p.add(h)}return Promise.resolve(p)}}},287:function(e,t,n){e.exports=n.p+"catalog/items/column-square/square_column.png"},288:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:16119028});t.default={name:"square column",prototype:"items",info:{tag:["structure"],title:"square column",description:"column",image:n(287)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:300,unit:"cm"}},width:{label:"width",type:"length-measure",defaultValue:{length:50,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:50,unit:"cm"}}},render2D:function(e,t,n){var r=e.properties.get("width").get("length"),o=e.properties.get("depth").get("length"),i=e.rotation+90,l=0;Math.sin(i*Math.PI/180)<0&&(l=180);var s={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate("+-r/2+","+-o/2+")"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:r,height:o,style:s}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate("+r/2+", "+o/2+") scale(1,-1) rotate("+l+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("height").get("length"),i=e.properties.get("width").get("length"),l=e.properties.get("depth").get("length"),s=e.properties.get("altitude").get("length"),u=new r.Object3D,d=new r.Mesh(new r.BoxGeometry(i,a,l,32),o);if(u.add(d),e.selected){var c=new r.BoxHelper(u,10077179);c.material.linewidth=10,c.renderOrder=5e3,c.material.depthTest=!1,u.add(c)}return u.position.y+=a/2+s,u.position.x+=i/2,Promise.resolve(u)}}},289:function(e,t,n){e.exports=n.p+"catalog/items/coat-hook/wood.jpg"},290:function(e,t,n){e.exports=n.p+"catalog/items/coat-hook/coat-hook.png"},291:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));t.default={name:"coat-hook",prototype:"items",info:{tag:["furnishings","optional"],title:"Coat hook",description:"Coat hook",image:n(290)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:120,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;Math.sin(r*Math.PI/180)<0&&(o=180);var i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},l={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-100,-10)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:200,height:20,style:i}),a.default.createElement("line",{key:"2",x1:100,x2:100,y1:20,y2:30,style:l}),a.default.createElement("line",{key:"3",x1:90,x2:100,y1:24,y2:30,style:l}),a.default.createElement("line",{key:"4",x1:100,x2:.55*200,y1:30,y2:24,style:l}),a.default.createElement("text",{key:"5",x:"0",y:"0",transform:"translate(100, 10) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,a){var o=e.properties.get("altitude").get("length"),i=new r.Object3D,l=(new r.TextureLoader).load(n(289)),s=new r.MeshLambertMaterial({map:l}),u=new r.BoxGeometry(2.15,1.5*.1,.04),d=new r.Mesh(u,s);d.position.y=.05,i.add(d);var c=new r.CylinderGeometry(.0125,.0125,.1/1.7,32),p=new r.MeshLambertMaterial({color:14276567}),h=new r.Mesh(c,p);h.rotation.x+=Math.PI/2,h.position.set(1,.05,.05),i.add(h);var f=new r.Mesh(c,p);f.rotation.x+=Math.PI/2,f.position.set(-.95,.05,.05),i.add(f);var m=new r.SphereGeometry(.035,32,32),y=new r.Mesh(m,p);y.position.set(1,.05,.08),y.scale.set(1,1,.5),i.add(y);var v=new r.Mesh(m,p);v.position.set(-.95,.05,.08),v.scale.set(1,1,.5),i.add(v);for(var g=new r.CatmullRomCurve3([new r.Vector3(.05,.125,0),new r.Vector3(.125,.025,0),new r.Vector3(-.05,-.075,0)]),x=-.95;x<=1.05;x+=.15){var w=new r.CylinderGeometry(.0125,.0125,.2,32),M=new r.Mesh(w,p);M.position.set(x,-.05,0),i.add(M);var q=new r.TubeGeometry(g,32,.015,16,!1),_=new r.Mesh(q,p);_.position.set(x,-.05,.045),_.rotation.y-=Math.PI/2,_.rotation.x+=Math.PI+Math.PI/7.5,_.rotation.z+=Math.PI/2,i.add(_);var b=new r.SphereGeometry(.035,32,32),E=new r.Mesh(b,p);E.position.set(x,-.142,.15),E.rotation.x+=Math.PI/2+Math.PI/3,i.add(E)}var O=(new r.Box3).setFromObject(i),I=Math.abs(O.max.x-O.min.x),P=Math.abs(O.max.y-O.min.y),T=Math.abs(O.max.z-O.min.z);if(e.selected){var G=new r.BoxHelper(i,10077179);G.material.linewidth=5,G.renderOrder=1e3,G.material.depthTest=!1,i.add(G)}return i.rotation.y+=Math.PI,i.position.y+=40/1.5+o,i.scale.set(200/I,40/P,20/T),Promise.resolve(i)}}},292:function(e,t,n){e.exports=n.p+"catalog/items/cleaningcart/cleaning_cart.png"},293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:0}),i=new r.MeshLambertMaterial({color:12632256}),l=new r.MeshLambertMaterial({color:13369344}),s=new r.MeshLambertMaterial({color:102}),u=new r.MeshLambertMaterial({color:16243200}),d=new r.MeshLambertMaterial({color:26163}),c=function(){for(var e=new r.Mesh(new r.BoxGeometry(1,.75,.05),i),t=-.4;t<=.45;t+=.85)for(var n=-.3;n<=.3;n+=.6){var a=new r.Mesh(new r.CylinderGeometry(.08,.08,.05,32),o);a.position.set(t,n,.15),e.add(a);var c=new r.Mesh(new r.CylinderGeometry(.06,.06,.06,32),i);a.add(c);var p=new r.Mesh(new r.CylinderGeometry(.01,.01,.08,6),o);p.position.set(0,0,0),a.add(p);var h=new r.Mesh(new r.CylinderGeometry(.06,.06,.01,32),i);h.rotation.x=.5*Math.PI,h.position.set(-.03,0,-.12),a.add(h);var f=new r.Mesh(new r.CylinderGeometry(.03725,.03725,.03,32),o);f.rotation.x=.5*Math.PI,f.position.set(-.03,0,-.1),a.add(f);var m=new r.CylinderGeometry(.055,.055,.005,3),y=new r.Mesh(m,i);y.position.set(-.02,-.035,-.06),a.add(y);var v=new r.BoxGeometry(.055,.11,.005),g=new r.Mesh(v,i);g.rotation.x=.5*Math.PI,g.position.set(0,-.035,-.04),a.add(g);var x=new r.Mesh(m,i);x.position.set(-.02,.035,-.06),a.add(x);var w=new r.Mesh(v,i);w.rotation.x=.5*Math.PI,w.position.set(0,.035,-.04),a.add(w);var M=new r.Mesh(new r.BoxGeometry(.095,.075,.01),i);M.position.set(-.02,0,-.09),a.add(M)}var q=new r.BoxGeometry(.85,.75,.05),_=new r.Mesh(q,i);_.position.set(.475,0,-.45),_.rotation.y=.5*Math.PI,e.add(_);var b=new r.Mesh(q,i);b.position.set(0,0,-.45),b.rotation.y=.5*Math.PI,e.add(b);var E=new r.Mesh(new r.BoxGeometry(.5,.75,.05),i);E.position.set(.25,0,-.8),e.add(E);var O=void 0;for(O=-.74;O<=-.1;O+=.25){var I=new r.BoxGeometry(.05,.75,.02),P=new r.Mesh(I,i);P.position.set(.45,0,O),e.add(P);var T=new r.Mesh(I,i);T.position.set(.025,0,O),e.add(T)}var G=void 0;for(G=-.76;G<=-.1;G+=.25){var S=new r.BoxGeometry(.05,.75,.015),D=new r.Mesh(S,s);D.position.set(.42,0,G),e.add(D);var R=new r.Mesh(S,s);R.position.set(.055,0,G),e.add(R);var A=new r.BoxGeometry(.02,.2,.75),L=new r.Mesh(A,s);L.position.set(.405,0,G+.1),L.rotation.x=.5*Math.PI,e.add(L);var C=new r.Mesh(A,s);C.position.set(.07,0,G+.1),C.rotation.x=.5*Math.PI,e.add(C);var k=new r.BoxGeometry(.02,.34,.215),j=new r.Mesh(k,s);j.position.set(.25,-.365,G+.1),j.rotation.z=.5*Math.PI,e.add(j);var N=new r.Mesh(k,s);N.position.set(.235,.365,G+.1),N.rotation.z=.5*Math.PI,e.add(N);var z=new r.Mesh(new r.BoxGeometry(.355,.75,.015),s);z.position.set(.2375,0,G+.205),e.add(z)}var B=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);B.position.set(.25,-.35,-.85),e.add(B);var U=B.clone();U.position.set(.25,.35,-.85),e.add(U);var V=B.clone();V.position.set(-.25,-.35,-.05),e.add(V);var F=B.clone();F.position.set(-.25,.35,-.05),e.add(F);var H=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);H.position.set(-.475,0,-.05),e.add(H);var W=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);W.position.set(.7,-.35,-.05),e.add(W);var Y=W.clone();Y.position.set(.7,.35,-.05),e.add(Y);var Z=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);Z.position.set(.925,0,-.05),e.add(Z);var X=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);X.position.set(.7,-.35,-.85),e.add(X);var J=X.clone();J.position.set(.7,.35,-.85),e.add(J);var K=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);K.position.set(.925,0,-.85),e.add(K);var Q=new r.Mesh(new r.BoxGeometry(.45,.775,.05),s);Q.position.set(.745,0,-.9),e.add(Q);var $=new r.Mesh(new r.BoxGeometry(.3,.65,.7),o);$.position.set(.75,0,-.5),e.add($);var ee=new r.CylinderGeometry(.01,.01,.05,32),te=new r.Mesh(ee,o);te.position.set(.51,-.35,-.88),e.add(te);var ne=new r.Mesh(ee,o);ne.position.set(.51,.35,-.88),e.add(ne);for(var re=void 0,ae=void 0,oe=-.3;oe<=.3;oe+=.6){ae=-.3===oe?l:s,re=-.3===oe?-1:1;var ie=new r.Mesh(new r.BoxGeometry(.2,.3,.05),ae);ie.position.set(.13,oe-.14*re,-.85),e.add(ie);var le=new r.Mesh(new r.BoxGeometry(.2,.15,.02),ae);le.position.set(.13,oe-.29*re,-.9),le.rotation.x=.5*Math.PI,e.add(le);var se=new r.Mesh(new r.BoxGeometry(.2,.15,.02),ae);se.position.set(.13,oe,-.9),se.rotation.x=.5*Math.PI,e.add(se);var ue=new r.Mesh(new r.BoxGeometry(.15,.3,.02),ae);ue.position.set(.04,oe-.14*re,-.9),ue.rotation.y=.5*Math.PI,e.add(ue);var de=new r.Mesh(new r.BoxGeometry(.15,.3,.02),ae);de.position.set(.22,oe-.14*re,-.9),de.rotation.y=.5*Math.PI,e.add(de)}for(var ce=void 0,pe=void 0,he=-.3;he<=.3;he+=.6){pe=-.3===he?u:d,ce=-.3===he?-1:1;var fe=new r.Mesh(new r.BoxGeometry(.2,.3,.05),pe);fe.position.set(.35,he-.14*ce,-.85),e.add(fe);var me=new r.Mesh(new r.BoxGeometry(.2,.15,.02),pe);me.position.set(.35,he-.29*ce,-.9),me.rotation.x=.5*Math.PI,e.add(me);var ye=new r.Mesh(new r.BoxGeometry(.2,.15,.02),pe);ye.position.set(.35,he,-.9),ye.rotation.x=.5*Math.PI,e.add(ye);var ve=new r.Mesh(new r.BoxGeometry(.15,.3,.02),pe);ve.position.set(.26,he-.14*ce,-.9),ve.rotation.y=.5*Math.PI,e.add(ve);var ge=new r.Mesh(new r.BoxGeometry(.15,.3,.02),pe);ge.position.set(.44,he-.14*ce,-.9),ge.rotation.y=.5*Math.PI,e.add(ge)}for(var xe=void 0,we=void 0,Me=-.3;Me<=.3;Me+=.6){xe=-.3===Me?l:s,we=-.3===Me?-1:1;var qe=new r.Mesh(new r.BoxGeometry(.4,.3,.05),xe);qe.position.set(-.22,Me-.14*we,-.05),e.add(qe);var _e=new r.Mesh(new r.BoxGeometry(.4,.25,.02),xe);_e.position.set(-.22,Me-.28*we,-.2),_e.rotation.x=.5*Math.PI,e.add(_e);var be=new r.Mesh(new r.BoxGeometry(.4,.25,.02),xe);be.position.set(-.22,Me,-.2),be.rotation.x=.5*Math.PI,e.add(be);var Ee=new r.Mesh(new r.BoxGeometry(.25,.3,.02),xe);Ee.position.set(-.41,Me-.14*we,-.2),Ee.rotation.y=.5*Math.PI,e.add(Ee);var Oe=new r.Mesh(new r.BoxGeometry(.25,.3,.02),xe);Oe.position.set(-.03,Me-.14*we,-.2),Oe.rotation.y=.5*Math.PI,e.add(Oe)}for(var Ie=-.45;Ie<=.55;Ie+=.9){var Pe=new r.Mesh(new r.CylinderGeometry(.02,.02,.06,32),s);Pe.rotation.x=.5*Math.PI,Pe.position.set(.48,Ie,-1.3),e.add(Pe);var Te=new r.Mesh(new r.CylinderGeometry(.02,.02,1.3,32),i);Te.position.set(0,.68,0),Pe.add(Te);var Ge=new r.Mesh(new r.CylinderGeometry(.025,.025,.06,32),s);Ge.rotation.y=.5*Math.PI,Ge.position.set(0,1.32,0),Pe.add(Ge);var Se=new r.Mesh(new r.BoxGeometry(.02,.15,.5),s);Se.position.set(0,1.34,0),Se.rotation.z=.5*Math.PI,Se.rotation.y=.5*Math.PI,Pe.add(Se);var De=new r.Mesh(new r.BoxGeometry(.01,.2,.55),i);De.position.set(0,1.35,0),De.rotation.z=.5*Math.PI,De.rotation.y=.5*Math.PI,Pe.add(De)}var Re=new r.Mesh(new r.CylinderGeometry(.01,.01,.05,32),s);Re.position.set(.48,-.39,-.85),e.add(Re);var Ae=new r.Mesh(new r.CylinderGeometry(.025,.025,.03,32),s);Ae.position.set(.48,-.44,-.85),Ae.rotation.x=.5*Math.PI,e.add(Ae);var Le=new r.Mesh(new r.CylinderGeometry(.01,.01,.05,32),s);Le.position.set(.48,.39,-.85),e.add(Le);var Ce=new r.Mesh(new r.CylinderGeometry(.025,.025,.03,32),s);return Ce.position.set(.48,.44,-.85),Ce.rotation.x=.5*Math.PI,e.add(Ce),e}(),p=function(){for(var e=new r.Mesh(new r.BoxGeometry(1,.75,.05),i),t=-.4;t<=.45;t+=.85)for(var n=-.3;n<=.3;n+=.6){var a=new r.Mesh(new r.CylinderGeometry(.08,.08,.05,32),o);a.position.set(t,n,.15),e.add(a);var c=new r.Mesh(new r.CylinderGeometry(.06,.06,.06,32),i);a.add(c);var p=new r.Mesh(new r.CylinderGeometry(.01,.01,.08,6),o);p.position.set(0,0,0),a.add(p);var h=new r.Mesh(new r.CylinderGeometry(.06,.06,.01,32),i);h.rotation.x=.5*Math.PI,h.position.set(-.03,0,-.12),a.add(h);var f=new r.Mesh(new r.CylinderGeometry(.03725,.03725,.03,32),o);f.rotation.x=.5*Math.PI,f.position.set(-.03,0,-.1),a.add(f);var m=new r.CylinderGeometry(.055,.055,.005,3),y=new r.Mesh(m,i);y.position.set(-.02,-.035,-.06),a.add(y);var v=new r.BoxGeometry(.055,.11,.005),g=new r.Mesh(v,i);g.rotation.x=.5*Math.PI,g.position.set(0,-.035,-.04),a.add(g);var x=new r.Mesh(m,i);x.position.set(-.02,.035,-.06),a.add(x);var w=new r.Mesh(v,i);w.rotation.x=.5*Math.PI,w.position.set(0,.035,-.04),a.add(w);var M=new r.Mesh(new r.BoxGeometry(.095,.075,.01),i);M.position.set(-.02,0,-.09),a.add(M)}var q=new r.BoxGeometry(.85,.75,.05),_=new r.Mesh(q,i);_.position.set(.475,0,-.45),_.rotation.y=.5*Math.PI,e.add(_);var b=new r.Mesh(q,i);b.position.set(0,0,-.45),b.rotation.y=.5*Math.PI,e.add(b);var E=new r.Mesh(new r.BoxGeometry(.5,.75,.05),i);E.position.set(.25,0,-.8),e.add(E);var O=void 0;for(O=-.74;O<=-.1;O+=.25){var I=new r.BoxGeometry(.05,.75,.02),P=new r.Mesh(I,i);P.position.set(.45,0,O),e.add(P);var T=new r.Mesh(I,i);T.position.set(.025,0,O),e.add(T)}var G=void 0;for(G=-.76;G<=-.1;G+=.25){var S=new r.BoxGeometry(.05,.75,.015),D=new r.Mesh(S,s);D.position.set(.42,0,G),e.add(D);var R=new r.Mesh(S,s);R.position.set(.055,0,G),e.add(R);var A=new r.BoxGeometry(.02,.2,.75),L=new r.Mesh(A,s);L.position.set(.405,0,G+.1),L.rotation.x=.5*Math.PI,e.add(L);var C=new r.Mesh(A,s);C.position.set(.07,0,G+.1),C.rotation.x=.5*Math.PI,e.add(C);var k=new r.BoxGeometry(.02,.34,.215),j=new r.Mesh(k,s);j.position.set(.25,-.365,G+.1),j.rotation.z=.5*Math.PI,e.add(j);var N=new r.Mesh(k,s);N.position.set(.235,.365,G+.1),N.rotation.z=.5*Math.PI,e.add(N);var z=new r.Mesh(new r.BoxGeometry(.355,.75,.015),s);z.position.set(.2375,0,G+.205),e.add(z)}var B=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);B.position.set(.25,-.35,-.85),e.add(B);var U=B.clone();U.position.set(.25,.35,-.85),e.add(U);var V=B.clone();V.position.set(-.25,-.35,-.05),e.add(V);var F=B.clone();F.position.set(-.25,.35,-.05),e.add(F);var H=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);H.position.set(-.475,0,-.05),e.add(H);var W=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);W.position.set(.7,-.35,-.05),e.add(W);var Y=W.clone();Y.position.set(.7,.35,-.05),e.add(Y);var Z=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);Z.position.set(.925,0,-.05),e.add(Z);var X=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);X.position.set(.7,-.35,-.85),e.add(X);var J=X.clone();J.position.set(.7,.35,-.85),e.add(J);var K=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);K.position.set(.925,0,-.85),e.add(K);var Q=new r.Mesh(new r.BoxGeometry(.45,.775,.05),s);Q.position.set(.745,0,-.9),e.add(Q);var $=new r.Mesh(new r.BoxGeometry(.3,.65,.7),o);$.position.set(.75,0,-.5),e.add($);var ee=new r.CylinderGeometry(.01,.01,.05,32),te=new r.Mesh(ee,o);te.position.set(.51,-.35,-.88),e.add(te);var ne=new r.Mesh(ee,o);ne.position.set(.51,.35,-.88),e.add(ne);for(var re=void 0,ae=void 0,oe=-.3;oe<=.3;oe+=.6){ae=-.3===oe?l:s,re=-.3===oe?-1:1;var ie=new r.Mesh(new r.BoxGeometry(.2,.3,.05),ae);ie.position.set(.13,oe-.14*re,-.85),e.add(ie);var le=new r.Mesh(new r.BoxGeometry(.2,.15,.02),ae);le.position.set(.13,oe-.29*re,-.9),le.rotation.x=.5*Math.PI,e.add(le);var se=new r.Mesh(new r.BoxGeometry(.2,.15,.02),ae);se.position.set(.13,oe,-.9),se.rotation.x=.5*Math.PI,e.add(se);var ue=new r.Mesh(new r.BoxGeometry(.15,.3,.02),ae);ue.position.set(.04,oe-.14*re,-.9),ue.rotation.y=.5*Math.PI,e.add(ue);var de=new r.Mesh(new r.BoxGeometry(.15,.3,.02),ae);de.position.set(.22,oe-.14*re,-.9),de.rotation.y=.5*Math.PI,e.add(de)}for(var ce=void 0,pe=void 0,he=-.3;he<=.3;he+=.6){pe=-.3===he?u:d,ce=-.3===he?-1:1;var fe=new r.Mesh(new r.BoxGeometry(.2,.3,.05),pe);fe.position.set(.35,he-.14*ce,-.85),e.add(fe);var me=new r.Mesh(new r.BoxGeometry(.2,.15,.02),pe);me.position.set(.35,he-.29*ce,-.9),me.rotation.x=.5*Math.PI,e.add(me);var ye=new r.Mesh(new r.BoxGeometry(.2,.15,.02),pe);ye.position.set(.35,he,-.9),ye.rotation.x=.5*Math.PI,e.add(ye);var ve=new r.Mesh(new r.BoxGeometry(.15,.3,.02),pe);ve.position.set(.26,he-.14*ce,-.9),ve.rotation.y=.5*Math.PI,e.add(ve);var ge=new r.Mesh(new r.BoxGeometry(.15,.3,.02),pe);ge.position.set(.44,he-.14*ce,-.9),ge.rotation.y=.5*Math.PI,e.add(ge)}for(var xe=void 0,we=void 0,Me=-.3;Me<=.3;Me+=.6){xe=-.3===Me?l:s,we=-.3===Me?-1:1;var qe=new r.Mesh(new r.BoxGeometry(.4,.3,.05),xe);qe.position.set(-.22,Me-.14*we,-.05),e.add(qe);var _e=new r.Mesh(new r.BoxGeometry(.4,.25,.02),xe);_e.position.set(-.22,Me-.28*we,-.2),_e.rotation.x=.5*Math.PI,e.add(_e);var be=new r.Mesh(new r.BoxGeometry(.4,.25,.02),xe);be.position.set(-.22,Me,-.2),be.rotation.x=.5*Math.PI,e.add(be);var Ee=new r.Mesh(new r.BoxGeometry(.25,.3,.02),xe);Ee.position.set(-.41,Me-.14*we,-.2),Ee.rotation.y=.5*Math.PI,e.add(Ee);var Oe=new r.Mesh(new r.BoxGeometry(.25,.3,.02),xe);Oe.position.set(-.03,Me-.14*we,-.2),Oe.rotation.y=.5*Math.PI,e.add(Oe)}for(var Ie=-.45;Ie<=.55;Ie+=.9){var Pe=new r.Mesh(new r.CylinderGeometry(.02,.02,.06,32),s);Pe.rotation.x=.5*Math.PI,Pe.position.set(.48,Ie,-1.3),e.add(Pe);var Te=new r.Mesh(new r.CylinderGeometry(.02,.02,1.3,32),i);Te.position.set(0,.68,0),Pe.add(Te);var Ge=new r.Mesh(new r.CylinderGeometry(.025,.025,.06,32),s);Ge.rotation.y=.5*Math.PI,Ge.position.set(0,1.32,0),Pe.add(Ge);var Se=new r.Mesh(new r.BoxGeometry(.02,.15,.5),s);Se.position.set(0,1.34,0),Se.rotation.z=.5*Math.PI,Se.rotation.y=.5*Math.PI,Pe.add(Se);var De=new r.Mesh(new r.BoxGeometry(.01,.2,.55),i);De.position.set(0,1.35,0),De.rotation.z=.5*Math.PI,De.rotation.y=.5*Math.PI,Pe.add(De)}var Re=new r.Mesh(new r.CylinderGeometry(.01,.01,.05,32),s);Re.position.set(.48,-.39,-.85),e.add(Re);var Ae=new r.Mesh(new r.CylinderGeometry(.025,.025,.03,32),s);Ae.position.set(.48,-.44,-.85),Ae.rotation.x=.5*Math.PI,e.add(Ae);var Le=new r.Mesh(new r.CylinderGeometry(.01,.01,.05,32),s);Le.position.set(.48,.39,-.85),e.add(Le);var Ce=new r.Mesh(new r.CylinderGeometry(.025,.025,.03,32),s);return Ce.position.set(.48,.44,-.85),Ce.rotation.x=.5*Math.PI,e.add(Ce),e}();t.default={name:"cleaning cart",prototype:"items",info:{tag:["metal","plastic"],title:"cleaning cart",description:"cleaning cart",image:n(292)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-50,-40)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:100,height:80,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(50, 40) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(c.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),u=Math.abs(i.max.z-i.min.z);o.rotation.x=.5*Math.PI,o.position.y+=20+a,o.scale.set(100/l,80/u,100/s);var d=new r.Object3D;d.add(p.clone()),d.rotation.x=.5*Math.PI,d.position.y+=20+a,d.scale.set(100/l,80/u,100/s);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(d,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},294:function(e,t,n){e.exports=n.p+"catalog/items/child-chair-desk/chairDesk.png"},295:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));t.default={name:"child chair desk",prototype:"items",info:{tag:["furnishings","wood","metal"],title:"child chair desk",description:"child chair desk",image:n(294)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation;r=r>-180&&r<0?360:0;var o={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-35,-50)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:70,height:100,style:o}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(35, 50) scale(1,-1) rotate("+r/2+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=new r.MeshLambertMaterial({color:14276567}),o=new r.MeshPhongMaterial({color:16711680}),i=new r.MeshPhongMaterial({color:0}),l=(e.properties.get("altitude").get("length"),new r.Object3D),s=new r.Shape;s.moveTo(0,.25),s.lineTo(0,.95),s.quadraticCurveTo(0,1.2,.25,1.2),s.lineTo(.75,1.2),s.quadraticCurveTo(1,1.2,1,.95),s.lineTo(1,.25),s.quadraticCurveTo(1,0,.75,0),s.lineTo(.25,0),s.quadraticCurveTo(0,0,0,.25);var u=new r.ExtrudeGeometry(s,{steps:2,depth:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),d=new r.Mesh(u,o);d.position.set(0,1.2,0),d.rotation.x+=Math.PI/2,l.add(d);var c=new r.CylinderGeometry(.08,.08,1,32),p=new r.CylinderGeometry(.08,.08,.6,32),h=new r.CylinderGeometry(.08,.08,.2,32),f=new r.CylinderGeometry(.06,.06,.025,32),m=new r.CylinderGeometry(.08,.08,.02,32),y=new r.Mesh(c,a);y.rotation.x+=Math.PI/2,y.position.set(.5,.6,.6),d.add(y);var v=new r.Mesh(c,a);v.position.set(.5,.6,1.1),d.add(v);var g=new r.Mesh(c,a);g.rotation.z+=Math.PI/2,g.position.set(0,.6,1.1),d.add(g);var x=new r.Mesh(p,a);x.rotation.x+=Math.PI/2,x.position.set(-.5,.6,.8),d.add(x);var w=new r.Mesh(h,a);w.position.set(-.5,.6,1.1),d.add(w);var M=new r.Mesh(f,i);M.position.set(.5,.2,1.18),M.rotation.x+=Math.PI/2,d.add(M);var q=new r.Mesh(f,i);q.position.set(.5,1,1.18),q.rotation.x+=Math.PI/2,d.add(q);var _=new r.Mesh(f,i);_.position.set(-.9,0,1.18),_.rotation.x+=Math.PI/2,d.add(_);var b=new r.Mesh(f,i);b.position.set(-.9,1.2,1.18),b.rotation.x+=Math.PI/2,d.add(b);var E=new r.Mesh(m,a);E.position.set(-1,0,1.1),E.rotation.z+=Math.PI/2,d.add(E);var O=new r.Mesh(m,a);O.position.set(-1,1.2,1.1),O.rotation.z+=Math.PI/2,d.add(O);var I=new r.CatmullRomCurve3([new r.Vector3(.35,0,0),new r.Vector3(0,0,0),new r.Vector3(-.05,.25,0)]),P=new r.TubeGeometry(I,32,.03,16,!1),T=new r.Mesh(P,a);T.rotation.x-=Math.PI/2,T.position.set(-1,.35,.48),d.add(T);var G=new r.Mesh(P,a);G.position.set(-1,.85,.48),G.rotation.x-=Math.PI/2,d.add(G);var S=new r.TorusGeometry(.5,.08,32,32,Math.PI/2),D=new r.Mesh(S,a);D.position.set(-1,.7,1.1),d.add(D);var R=new r.Mesh(S,a);R.rotation.x+=Math.PI,R.position.set(-1,.5,1.1),d.add(R);var A=new r.Shape;A.moveTo(0,.25),A.lineTo(0,.55),A.quadraticCurveTo(0,.8,.25,.8),A.lineTo(.55,.8),A.quadraticCurveTo(.8,.8,.8,.55),A.lineTo(.8,.25),A.quadraticCurveTo(.8,0,.55,0),A.lineTo(.25,0),A.quadraticCurveTo(0,0,0,.25);var L={steps:2,depth:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},C=new r.ExtrudeGeometry(A,L),k=new r.Mesh(C,o);k.position.set(-.9,.2,.45),d.add(k);var j=new r.Shape;j.moveTo(0,.25),j.lineTo(0,.55),j.quadraticCurveTo(0,.8,.25,.8),j.lineTo(.55,.8),j.quadraticCurveTo(.8,.8,.8,.55),j.lineTo(.8,.25),j.quadraticCurveTo(.8,0,.55,0),j.lineTo(.25,0),j.quadraticCurveTo(0,0,0,.25);var N=new r.Path;N.moveTo(3.5,3.5),N.absellipse(.65,.4,.035,.125,.125,2*Math.PI,!1),j.holes.push(N);var z=new r.ExtrudeGeometry(j,L),B=new r.Mesh(z,o);B.position.set(-1.08,.2,.45),B.rotation.y+=Math.PI/2,d.add(B);var U=(new r.Box3).setFromObject(l),V=Math.abs(U.max.x-U.min.x),F=Math.abs(U.max.y-U.min.y),H=Math.abs(U.max.z-U.min.z);if(e.selected){var W=new r.BoxHelper(l,10077179);W.material.linewidth=5,W.renderOrder=1e3,W.material.depthTest=!1,l.add(W)}return l.rotation.y+=Math.PI/2,l.position.x+=-100/2.75,l.scale.set(70/H,100/F,125/V),Promise.resolve(l)}}},296:function(e,t,n){e.exports=n.p+"catalog/items/chairdesk/chairdesk.png"},297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshBasicMaterial({color:13882323}),i=new r.MeshBasicMaterial({color:8421504}),l=new r.MeshBasicMaterial({color:0}),s=new r.MeshBasicMaterial({color:0});function u(){var e=new r.Object3D,t=new r.CylinderGeometry(.01,.01,.18,32,32),n=new r.CylinderGeometry(.01,.01,.04,32,32),a=new r.SphereGeometry(.01,32,32),o=new r.Mesh(t,s),i=new r.Mesh(n,s),u=new r.Mesh(t,s),d=new r.Mesh(n,s),c=new r.Mesh(a,s),p=new r.Mesh(a,s),h=function(){var e=new r.Object3D,t=new r.BoxGeometry(.3,.5,.04),n=new r.CylinderGeometry(.02,.02,.3,32,32),a=new r.CylinderGeometry(.02,.02,.5,32,32),o=new r.SphereGeometry(.02,32,32),i=new r.Mesh(n,l),s=new r.Mesh(n,l),u=new r.Mesh(a,l),d=new r.Mesh(a,l),c=new r.Mesh(o,l),p=new r.Mesh(o,l),h=new r.Mesh(o,l),f=new r.Mesh(o,l),m=new r.Mesh(t,l);return i.rotation.z=Math.PI/2,i.position.y=.25,c.position.y=.15,s.rotation.z=Math.PI/2,s.position.y=-.25,p.position.y=-.15,u.position.x=.15,h.position.y=.25,d.position.x=-.15,f.position.y=-.25,d.add(f),e.add(d),u.add(h),e.add(u),s.add(p),e.add(s),i.add(c),e.add(i),e.add(m),e}();return o.rotation.z=96*Math.PI/180,o.position.z=.05,o.position.x=.09,i.rotation.z=96*-Math.PI/180,i.position.x=.02*Math.cos(6*Math.PI/180),u.rotation.z=96*Math.PI/180,u.position.z=-.05,u.position.x=.09,d.rotation.z=96*-Math.PI/180,d.position.x=.02*Math.cos(6*Math.PI/180),c.position.y=.09,p.position.y=.09,c.add(i),p.add(d),h.rotation.y=Math.PI/2,h.position.y=.27,o.add(c),e.add(o),u.add(p),e.add(u),e.add(h),e}function d(){var e=new r.Object3D,t=new r.CylinderGeometry(.01,.01,.18,8,8),n=new r.CylinderGeometry(.01,.01,.04,8,8),a=new r.SphereGeometry(.01,32,32),o=new r.Mesh(t,s),i=new r.Mesh(n,s),u=new r.Mesh(t,s),d=new r.Mesh(n,s),c=new r.Mesh(a,s),p=new r.Mesh(a,s),h=function(){var e=new r.Object3D,t=new r.BoxGeometry(.3,.5,.04),n=new r.CylinderGeometry(.02,.02,.3,8,8),a=new r.CylinderGeometry(.02,.02,.5,8,8),o=new r.SphereGeometry(.02,32,32),i=new r.Mesh(n,l),s=new r.Mesh(n,l),u=new r.Mesh(a,l),d=new r.Mesh(a,l),c=new r.Mesh(o,l),p=new r.Mesh(o,l),h=new r.Mesh(o,l),f=new r.Mesh(o,l),m=new r.Mesh(t,l);return i.rotation.z=Math.PI/2,i.position.y=.25,c.position.y=.15,s.rotation.z=Math.PI/2,s.position.y=-.25,p.position.y=-.15,u.position.x=.15,h.position.y=.25,d.position.x=-.15,f.position.y=-.25,d.add(f),e.add(d),u.add(h),e.add(u),s.add(p),e.add(s),i.add(c),e.add(i),e.add(m),e}();return o.rotation.z=96*Math.PI/180,o.position.z=.05,o.position.x=.09,i.rotation.z=96*-Math.PI/180,i.position.x=.02*Math.cos(6*Math.PI/180),u.rotation.z=96*Math.PI/180,u.position.z=-.05,u.position.x=.09,d.rotation.z=96*-Math.PI/180,d.position.x=.02*Math.cos(6*Math.PI/180),c.position.y=.09,p.position.y=.09,c.add(i),p.add(d),h.rotation.y=Math.PI/2,h.position.y=.27,o.add(c),e.add(o),u.add(p),e.add(u),e.add(h),e}function c(){var e=new r.CylinderGeometry(.027,.02,.3,32,32),t=new r.CylinderGeometry(.02,.01,.02,32,32),n=new r.CylinderGeometry(.008,.008,.01,32,32),a=new r.SphereGeometry(.02,32,32),l=new r.CylinderGeometry(.025,.025,.05,32,32),u=new r.CylinderGeometry(.02,.02,.051,32,32),d=new r.CylinderGeometry(.026,.026,.045,32,32),c=new r.Mesh(e,i),p=new r.Mesh(t,i),h=new r.Mesh(n,o),f=new r.Mesh(a,i),m=new r.Mesh(l,s),y=new r.Mesh(d,i),v=new r.Mesh(u,i),g=new r.Object3D,x=new r.Object3D;return c.rotation.z=80*Math.PI/180,c.position.x=.16,g.rotation.z=80*-Math.PI/180,g.position.y=.15*-Math.sin(80*Math.PI/180),p.position.y=-.01,h.position.y=-.015,m.rotation.x=Math.PI/2,m.position.y=-.025,y.position.z=-.003,m.add(v),m.add(y),h.add(m),p.add(h),g.add(p),g.add(f),c.add(g),x.add(c),x}function p(){var e=new r.CylinderGeometry(.027,.02,.3,8,8),t=new r.CylinderGeometry(.02,.01,.02,8,8),n=new r.CylinderGeometry(.008,.008,.01,8,8),a=new r.SphereGeometry(.02,8,8),l=new r.CylinderGeometry(.025,.025,.05,8,8),u=new r.CylinderGeometry(.02,.02,.051,8,8),d=new r.Mesh(e,i),c=new r.Mesh(t,i),p=new r.Mesh(n,o),h=new r.Mesh(a,i),f=new r.Mesh(l,s),m=new r.Mesh(u,i),y=new r.Object3D,v=new r.Object3D;return d.rotation.z=80*Math.PI/180,d.position.x=.16,y.rotation.z=80*-Math.PI/180,y.position.y=.15*-Math.sin(80*Math.PI/180),c.position.y=-.01,p.position.y=-.015,f.rotation.x=Math.PI/2,f.position.y=-.025,f.add(m),p.add(f),c.add(p),y.add(c),y.add(h),d.add(y),v.add(d),v}function h(){var e=new r.Object3D,t=new r.SphereGeometry(.01,32,32),n=new r.CylinderGeometry(.01,.01,.24,32,32),a=new r.CylinderGeometry(.01,.01,.04,32,32),o=new r.CylinderGeometry(.02,.025,.2,32,32),s=new r.Mesh(t,i),u=new r.Mesh(t,i),d=new r.Mesh(n,i),c=new r.Mesh(a,i),p=new r.Mesh(o,l);return d.rotation.x=Math.PI/2,d.rotation.z=25*-Math.PI/180,d.position.set(.12*Math.sin(d.rotation.z),0,-.12*Math.cos(d.rotation.z)),c.rotation.z=100*Math.PI/180,c.position.x=.02,c.position.y=.0035,u.position.y=-.12,p.position.y=-.1-.02,c.add(p),u.add(c),d.add(u),s.add(d),e.add(s),e}function f(){var e=new r.Object3D,t=new r.SphereGeometry(.01,8,8),n=new r.CylinderGeometry(.01,.01,.24,8,8),a=new r.CylinderGeometry(.01,.01,.04,8,8),o=new r.CylinderGeometry(.02,.025,.2,8,8),s=new r.Mesh(t,i),u=new r.Mesh(t,i),d=new r.Mesh(n,i),c=new r.Mesh(a,i),p=new r.Mesh(o,l);return d.rotation.x=Math.PI/2,d.rotation.z=25*-Math.PI/180,d.position.set(.12*Math.sin(d.rotation.z),0,-.12*Math.cos(d.rotation.z)),c.rotation.z=100*Math.PI/180,c.position.x=.02,c.position.y=.0035,u.position.y=-.12,p.position.y=-.1-.02,c.add(p),u.add(c),d.add(u),s.add(d),e.add(s),e}function m(){var e=new r.Object3D,t=new r.BoxGeometry(.4,.04,.4),n=new r.Mesh(t,l),a=y(),o=y(),i=y(),s=y();return a.rotation.x=Math.PI/2,a.position.x=.2,o.rotation.x=-Math.PI/2,o.position.x=-.2,i.rotation.z=-Math.PI/2,i.position.z=-.2,s.rotation.z=Math.PI/2,s.position.z=.2,n.add(a),n.add(o),n.add(i),n.add(s),e.add(n),e}function y(){var e=new r.CylinderGeometry(.02,.02,.4,32,32,!0),t=new r.SphereGeometry(.02,32,32),n=new r.Mesh(t,l),a=new r.Mesh(e,l);return a.openEnded=1,n.position.y=.2,a.add(n),a}function v(){var e=new r.Object3D,t=new r.CylinderGeometry(.027,.027,.05,32,32),n=new r.CylinderGeometry(.03,.03,.2,32,32),a=new r.CylinderGeometry(.04,.04,.06,32,32),o=new r.TorusGeometry(.04,.025,32,100),l=new r.CylinderGeometry(.02,.02,.14,32,32),s=new r.Mesh(t,i),u=new r.Mesh(n,i),d=new r.Mesh(a,i),p=new r.Mesh(o,i),h=new r.Mesh(l,i),f=function(){for(var e=new r.Object3D,t=0;t<5;t++){var n=c();n.rotation.y=2*Math.PI*t*72/360,e.add(n)}return e}();return s.position.y=-.125,h.position.y=.17,f.position.y=-.07,d.position.y=-.05,p.rotation.x=Math.PI/2,p.position.y=-.05,u.add(d),u.add(p),u.add(f),u.add(s),u.add(h),e.add(u),e}function g(){var e=new r.Object3D,t=new r.CylinderGeometry(.027,.027,.05,8,8),n=new r.CylinderGeometry(.03,.03,.2,8,8),a=new r.CylinderGeometry(.04,.04,.06,8,8),o=new r.TorusGeometry(.04,.025,8,100),l=new r.CylinderGeometry(.02,.02,.14,8,8),s=new r.Mesh(t,i),u=new r.Mesh(n,i),d=new r.Mesh(a,i),c=new r.Mesh(o,i),h=new r.Mesh(l,i),f=function(){for(var e=new r.Object3D,t=0;t<5;t++){var n=p();n.rotation.y=2*Math.PI*t*72/360,e.add(n)}return e}();return s.position.y=-.125,h.position.y=.17,f.position.y=-.07,d.position.y=-.05,c.rotation.x=Math.PI/2,c.position.y=-.05,u.add(d),u.add(c),u.add(f),u.add(s),u.add(h),e.add(u),e}var x=function(){var e=new r.Mesh,t=v(),n=function(){var e=new r.Object3D,t=new r.BoxGeometry(.28,.06,.07),n=new r.BoxGeometry(.3,.04,.09),a=new r.CylinderGeometry(.0045,.0045,.07,32,32),o=new r.CylinderGeometry(.0045,.0045,.09,32,32),u=new r.CylinderGeometry(.007,.005,.06,32),d=new r.CylinderGeometry(.01,.01,.2,32,32),c=new r.Mesh(t,i),p=new r.Mesh(n,i),f=new r.Mesh(o,l),y=new r.Mesh(a,l),v=new r.Mesh(u,s),g=new r.Mesh(u,s),x=new r.Mesh(d,i),w=new r.Mesh(d,i),M=m(),q=h(),_=h();return c.position.y=.03,p.rotation.z=6*Math.PI/180,p.position.y=.06,f.rotation.x=80*Math.PI/180,f.position.z=.08,f.position.x=.1,y.rotation.x=80*-Math.PI/180,y.position.z=-.07,y.position.x=.08,g.position.y=.065,v.position.y=.075,M.position.y=.04,x.rotation.x=Math.PI/2,x.rotation.y=6*-Math.PI/180,w.rotation.x=Math.PI/2,w.rotation.y=6*-Math.PI/180,x.position.z=.045+.1,w.position.z=-.045-.1,q.position.y=.1,_.position.y=-.1,p.add(M),x.add(q),w.add(_),p.add(x),p.add(w),f.add(v),y.add(g),c.add(f),c.add(y),e.add(p),e.add(c),e}(),a=u();return t.position.y=.17,n.position.y=.1+.14,a.position.y=.06,a.position.x=-.25,n.add(a),t.add(n),e.add(t),e.rotation.y=-.5*Math.PI,e.position.z-=.02,e}(),w=function(){var e=new r.Mesh,t=g(),n=function(){var e=new r.Object3D,t=new r.BoxGeometry(.28,.06,.07),n=new r.BoxGeometry(.3,.04,.09),a=new r.CylinderGeometry(.01,.01,.2,8,8),o=new r.Mesh(t,i),l=new r.Mesh(n,i),s=new r.Mesh(a,i),u=new r.Mesh(a,i),d=m(),c=f(),p=f();return o.position.y=.03,l.rotation.z=6*Math.PI/180,l.position.y=.06,d.position.y=.04,s.rotation.x=Math.PI/2,s.rotation.y=6*-Math.PI/180,u.rotation.x=Math.PI/2,u.rotation.y=6*-Math.PI/180,s.position.z=.045+.1,u.position.z=-.045-.1,c.position.y=.1,p.position.y=-.1,l.add(d),s.add(c),u.add(p),l.add(s),l.add(u),e.add(l),e.add(o),e}(),a=d();return t.position.y=.17,n.position.y=.1+.14,a.position.y=.06,a.position.x=-.25,n.add(a),t.add(n),e.add(t),e.rotation.y=-.5*Math.PI,e.position.z-=.02,e}();t.default={name:"chairdesk",prototype:"items",info:{tag:["furnishings","wood"],title:"chairdesk",description:"office chair",image:n(296)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-35,-35)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:70,height:70,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(35, 35) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(x.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),u=Math.abs(i.max.z-i.min.z);o.position.y+=a,o.position.x+=-8.75,o.position.z+=17.5,o.scale.set(70/l,70/u,100/s);var d=new r.Object3D;d.add(w.clone()),d.position.y+=a,d.position.x+=-8.75,d.position.z+=17.5,d.scale.set(70/l,70/u,100/s);var c=new r.LOD;if(c.addLevel(o,200),c.addLevel(d,900),c.updateMatrix(),c.matrixAutoUpdate=!1,e.selected){var p=new r.BoxHelper(c,10077179);p.material.linewidth=5,p.renderOrder=1e3,p.material.depthTest=!1,c.add(p)}return Promise.resolve(c)}}},298:function(e,t,n){e.exports=n.p+"catalog/items/chair/chair.png"},299:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=function(){var e=new r.Mesh,t=new r.CylinderGeometry(.02,.02,.5,32,32),n=new r.MeshLambertMaterial({color:14276567}),a=new r.Mesh(t,n);a.rotation.x+=Math.PI/2,a.position.z+=.25;var o=new r.Mesh(t,n);o.rotation.x+=Math.PI/2,o.position.z+=.25,o.position.y+=.4;var i=new r.Mesh(t,n);i.rotation.x+=Math.PI/2,i.position.z+=.25,i.position.x+=.4;var l=new r.Mesh(t,n);l.rotation.x+=Math.PI/2,l.position.z+=.25,l.position.y+=.4,l.position.x+=.4;var s=new r.Mesh(t,n);s.rotation.x+=Math.PI/2,s.position.z+=.75;var u=new r.Mesh(t,n);u.rotation.x+=Math.PI/2,u.position.z+=.75,u.position.x+=.4;var d=new r.MeshLambertMaterial({color:10194037}),c=new r.Shape;c.moveTo(0,.05),c.lineTo(0,.43),c.quadraticCurveTo(0,.48,.05,.48),c.lineTo(.45,.48),c.quadraticCurveTo(.5,.48,.5,.43),c.lineTo(.5,.05),c.quadraticCurveTo(.5,0,.45,0),c.lineTo(.05,0),c.quadraticCurveTo(0,0,0,.05);var p=new r.ExtrudeGeometry(c,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),h=new r.Mesh(p,d);h.position.x+=-.05,h.position.y+=-.04,h.position.z+=.5;var f=new r.Shape;f.moveTo(0,.05),f.lineTo(0,.2),f.quadraticCurveTo(0,.25,.05,.25),f.lineTo(.4,.25),f.quadraticCurveTo(.45,.25,.45,.2),f.lineTo(.45,.05),f.quadraticCurveTo(.45,0,.4,0),f.lineTo(.05,0),f.quadraticCurveTo(0,0,0,.05);var m=new r.ExtrudeGeometry(f,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new r.Mesh(m,d);return y.rotation.x+=Math.PI/2,y.position.z+=.75,y.position.y+=.03,y.position.x+=-.025,e.add(y),e.add(h),e.add(a),e.add(o),e.add(i),e.add(l),e.add(s),e.add(u),e}(),i=function(){var e=new r.Mesh,t=new r.CylinderGeometry(.02,.02,.5,8,8),n=new r.MeshLambertMaterial({color:14276567}),a=new r.Mesh(t,n);a.rotation.x+=Math.PI/2,a.position.z+=.25;var o=new r.Mesh(t,n);o.rotation.x+=Math.PI/2,o.position.z+=.25,o.position.y+=.4;var i=new r.Mesh(t,n);i.rotation.x+=Math.PI/2,i.position.z+=.25,i.position.x+=.4;var l=new r.Mesh(t,n);l.rotation.x+=Math.PI/2,l.position.z+=.25,l.position.y+=.4,l.position.x+=.4;var s=new r.Mesh(t,n);s.rotation.x+=Math.PI/2,s.position.z+=.75;var u=new r.Mesh(t,n);u.rotation.x+=Math.PI/2,u.position.z+=.75,u.position.x+=.4;var d=new r.MeshLambertMaterial({color:10194037}),c=new r.Shape;c.moveTo(0,.025),c.lineTo(0,.48-.025),c.quadraticCurveTo(0,.48,.025,.48),c.lineTo(.475,.48),c.quadraticCurveTo(.5,.48,.5,.48-.025),c.lineTo(.5,.025),c.quadraticCurveTo(.5,0,.475,0),c.lineTo(.025,0),c.quadraticCurveTo(0,0,0,.025);var p=new r.ExtrudeGeometry(c,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),h=new r.Mesh(p,d);h.position.x+=-.05,h.position.y+=-.04,h.position.z+=.5;var f=new r.Shape;f.moveTo(0,.025),f.lineTo(0,.225),f.quadraticCurveTo(0,.25,.025,.25),f.lineTo(.425,.25),f.quadraticCurveTo(.45,.25,.45,.225),f.lineTo(.45,.025),f.quadraticCurveTo(.45,0,.425,0),f.lineTo(.025,0),f.quadraticCurveTo(0,0,0,.025);var m=new r.ExtrudeGeometry(f,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new r.Mesh(m,d);return y.rotation.x+=Math.PI/2,y.position.z+=.75,y.position.y+=.03,y.position.x+=-.025,e.add(y),e.add(h),e.add(a),e.add(o),e.add(i),e.add(l),e.add(s),e.add(u),e}();t.default={name:"sedia",prototype:"items",info:{tag:["furnishings","wood"],title:"chair",description:"chair",image:n(298)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-27.5,-27.5)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:55,height:55,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(27.5, 27.5) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),l=new r.Object3D;l.add(o.clone());var s=(new r.Box3).setFromObject(l),u=Math.abs(s.max.x-s.min.x),d=Math.abs(s.max.y-s.min.y),c=Math.abs(s.max.z-s.min.z);l.rotation.x+=-Math.PI/2,l.position.y+=a,l.position.x+=-55/3.5,l.position.z+=55/4,l.scale.set(82.5/c,55/1.5/u,50/d);var p=new r.Object3D;p.add(i.clone()),p.rotation.x+=-Math.PI/2,p.position.y+=a,p.position.x+=-55/3.5,p.position.z+=55/4,p.scale.set(82.5/c,55/1.5/u,50/d);var h=new r.LOD;if(h.addLevel(l,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},300:function(e,t,n){e.exports=n.p+"catalog/items/canteencart/canteen_cart.png"},301:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:0}),i=new r.MeshLambertMaterial({color:12632256}),l=function(){for(var e=new r.Mesh(new r.CylinderGeometry(.8,.8,.5,32),o),t=0;t<=6;t+=6)for(var n=0;n<=6;n+=6){var a=new r.Mesh(new r.CylinderGeometry(.8,.8,.5,32),o);a.position.set(t,n,0),e.add(a);var l=new r.Mesh(new r.CylinderGeometry(.6,.6,.6,32),i);a.add(l);var s=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),o);s.position.set(0,0,0),a.add(s);var u=new r.Mesh(new r.CylinderGeometry(.6,.6,.1,32),i);u.rotation.x=.5*Math.PI,u.position.set(-.3,0,-1.2),a.add(u);var d=new r.Mesh(new r.CylinderGeometry(.3725,.3725,.3,32),o);d.rotation.x=.5*Math.PI,d.position.set(-.3,0,-1),a.add(d);var c=new r.Mesh(new r.CylinderGeometry(.55,.55,.05,3),i);c.position.set(-.2,-.35,-.6),a.add(c);var p=new r.Mesh(new r.BoxGeometry(.55,1.1,.05),i);p.rotation.x=.5*Math.PI,p.position.set(0,-.35,-.4),a.add(p);var h=new r.Mesh(new r.CylinderGeometry(.55,.55,.05,3),i);h.position.set(-.2,.35,-.6),a.add(h);var f=new r.Mesh(new r.BoxGeometry(.55,1.1,.05),i);f.rotation.x=.5*Math.PI,f.position.set(0,.35,-.4),a.add(f);var m=new r.Mesh(new r.BoxGeometry(.95,.75,.1),i);m.position.set(-.2,0,-.9),a.add(m)}var y=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);y.rotation.x=.5*Math.PI,y.position.set(-.3,0,-9.6),e.add(y);var v=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);v.rotation.x=.5*Math.PI,v.position.set(-.3,6,-9.6),e.add(v);var g=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);g.rotation.x=.5*Math.PI,g.position.set(5.7,0,-9.6),e.add(g);var x=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);x.rotation.x=.5*Math.PI,x.position.set(5.7,6,-9.6),e.add(x);var w=new r.Mesh(new r.TorusGeometry(3,.15,20,20,3.125),i);w.rotation.x=-.5*Math.PI,w.position.set(2.7,6,-18.1),e.add(w);var M=new r.Mesh(new r.TorusGeometry(3,.15,20,20,3.125),i);M.rotation.x=-.5*Math.PI,M.position.set(2.7,0,-18.1),e.add(M);var q=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);q.position.set(-.3,3,-18),e.add(q);var _=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);_.rotation.x=.5*Math.PI,_.rotation.z=.5*Math.PI,_.position.set(2.7,0,-18),e.add(_);var b=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);b.rotation.x=.5*Math.PI,b.rotation.z=.5*Math.PI,b.position.set(2.7,6,-18),e.add(b);var E=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);E.position.set(5.7,3,-18),e.add(E);for(var O=-16.5;O<=-2.8;O+=1.5){var I=new r.Mesh(new r.BoxGeometry(.5,5.7,.1),i);I.rotation.z=.5*Math.PI,I.position.set(2.7,5.9,O+.2),e.add(I);var P=new r.Mesh(new r.BoxGeometry(.1,5.7,.5),i);P.rotation.z=.5*Math.PI,P.position.set(2.7,6.1,O),e.add(P);var T=new r.Mesh(new r.BoxGeometry(.5,5.7,.1),i);T.rotation.z=.5*Math.PI,T.position.set(2.7,.1,O+.2),e.add(T);var G=new r.Mesh(new r.BoxGeometry(.1,5.7,.5),i);G.rotation.z=.5*Math.PI,G.position.set(2.7,-.1,O),e.add(G)}var S=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);S.position.set(-.3,3,-2),e.add(S);var D=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);return D.position.set(5.7,3,-2),e.add(D),e}(),s=function(){for(var e=new r.Mesh,t=0;t<=6;t+=6)for(var n=0;n<=6;n+=6){var a=new r.Mesh(new r.CylinderGeometry(.8,.8,.5,32),o);a.position.set(t,n,0),e.add(a);var l=new r.Mesh(new r.CylinderGeometry(.6,.6,.6,32),i);a.add(l);var s=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),o);s.position.set(0,0,0),a.add(s);var u=new r.Mesh(new r.CylinderGeometry(.6,.6,.1,32),i);u.rotation.x=.5*Math.PI,u.position.set(-.3,0,-1.2),a.add(u);var d=new r.Mesh(new r.CylinderGeometry(.3725,.3725,.3,32),o);d.rotation.x=.5*Math.PI,d.position.set(-.3,0,-1),a.add(d);var c=new r.Mesh(new r.CylinderGeometry(.55,.55,.05,3),i);c.position.set(-.2,-.35,-.6),a.add(c);var p=new r.Mesh(new r.BoxGeometry(.55,1.1,.05),i);p.rotation.x=.5*Math.PI,p.position.set(0,-.35,-.4),a.add(p);var h=new r.Mesh(new r.CylinderGeometry(.55,.55,.05,3),i);h.position.set(-.2,.35,-.6),a.add(h);var f=new r.Mesh(new r.BoxGeometry(.55,1.1,.05),i);f.rotation.x=.5*Math.PI,f.position.set(0,.35,-.4),a.add(f);var m=new r.Mesh(new r.BoxGeometry(.95,.75,.1),i);m.position.set(-.2,0,-.9),a.add(m)}var y=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);y.rotation.x=.5*Math.PI,y.position.set(-.3,0,-9.6),e.add(y);var v=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);v.rotation.x=.5*Math.PI,v.position.set(-.3,6,-9.6),e.add(v);var g=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);g.rotation.x=.5*Math.PI,g.position.set(5.7,0,-9.6),e.add(g);var x=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);x.rotation.x=.5*Math.PI,x.position.set(5.7,6,-9.6),e.add(x);var w=new r.Mesh(new r.TorusGeometry(3,.15,20,20,3.125),i);w.rotation.x=-.5*Math.PI,w.position.set(2.7,6,-18.1),e.add(w);var M=new r.Mesh(new r.TorusGeometry(3,.15,20,20,3.125),i);M.rotation.x=-.5*Math.PI,M.position.set(2.7,0,-18.1),e.add(M);var q=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);q.position.set(-.3,3,-18),e.add(q);var _=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);_.rotation.x=.5*Math.PI,_.rotation.z=.5*Math.PI,_.position.set(2.7,0,-18),e.add(_);var b=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);b.rotation.x=.5*Math.PI,b.rotation.z=.5*Math.PI,b.position.set(2.7,6,-18),e.add(b);var E=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);E.position.set(5.7,3,-18),e.add(E);for(var O=-16.5;O<=-2.8;O+=1.5){var I=new r.Mesh(new r.BoxGeometry(.5,5.7,.1),i);I.rotation.z=.5*Math.PI,I.position.set(2.7,5.9,O+.2),e.add(I);var P=new r.Mesh(new r.BoxGeometry(.1,5.7,.5),i);P.rotation.z=.5*Math.PI,P.position.set(2.7,6.1,O),e.add(P);var T=new r.Mesh(new r.BoxGeometry(.5,5.7,.1),i);T.rotation.z=.5*Math.PI,T.position.set(2.7,.1,O+.2),e.add(T);var G=new r.Mesh(new r.BoxGeometry(.1,5.7,.5),i);G.rotation.z=.5*Math.PI,G.position.set(2.7,-.1,O),e.add(G)}var S=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);S.position.set(-.3,3,-2),e.add(S);var D=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);return D.position.set(5.7,3,-2),e.add(D),e}();t.default={name:"canteen cart",prototype:"items",info:{tag:["furnishings","metal"],title:"canteen cart",description:"canteen cart",image:n(300)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-15,-20)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:30,height:40,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(15, 20) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(l.clone());var i=(new r.Box3).setFromObject(o),u=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.rotation.x+=Math.PI/2,o.position.y+=a,o.scale.set(30/d,40/u,180/c);var p=new r.Object3D;p.add(s.clone()),p.rotation.x+=Math.PI/2,p.position.y+=a,p.scale.set(30/d,40/u,180/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},302:function(e,t,n){e.exports=n.p+"catalog/items/canteen-table/canteen_table.png"},303:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:11299877}),i=new r.MeshLambertMaterial({color:0}),l=new r.MeshLambertMaterial({color:12632256}),s=function(){var e=new r.BoxGeometry(1,3,1),t=new r.Mesh(e,l),n=new r.Mesh(new r.BoxGeometry(10,.5,10),o);n.position.set(0,1.5,0),t.add(n);for(var a=-.25;a<=.25;a+=.5)for(var s=-.25;s<=.25;s+=.5){var u=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),i);u.position.set(a,1.4,s),t.add(u)}var d=new r.Mesh(new r.BoxGeometry(1,15,1),l);d.rotation.x=.5*Math.PI,d.position.set(0,-1,0),t.add(d);var c=new r.Mesh(new r.BoxGeometry(1,10,1),l);c.rotation.z=.5*Math.PI,c.position.set(0,-1,-7),t.add(c);var p=new r.Mesh(new r.BoxGeometry(1,10,1),l);p.rotation.z=.5*Math.PI,p.position.set(0,-1,7),t.add(p);for(var h=-3;h<=3;h+=6)for(var f=7;f>=-7;f-=14){var m=new r.Mesh(new r.BoxGeometry(1,3,1),l);m.rotation.y=.5*Math.PI,m.position.set(h,-2,f),t.add(m)}for(var y=-3;y<=3;y+=6)for(var v=8;v>=-8;v-=16){var g=new r.Mesh(new r.BoxGeometry(3,.25,1),l);g.rotation.y=.5*Math.PI,g.position.set(y,-3.5,v+1),t.add(g);var x=new r.Mesh(new r.CylinderGeometry(.1,.1,.3,6),i);x.position.set(y,-3.5,v-1),x.position.set(y,-3.5,v+2),t.add(x),v>0&&(g.position.set(y,-3.5,v-1),x.position.set(y,-3.5,v-2));var w=new r.Mesh(new r.CylinderGeometry(.1,.1,.3,6),i);w.position.set(y,-3.5,v),t.add(w)}for(var M=-3;M<=3;M+=6)for(var q=-9.24;q<=9.24;q+=18.48){var _=new r.Mesh(new r.BoxGeometry(4,.5,2.5),o);_.rotation.x=.5*Math.PI,_.position.set(M,2.5,q),t.add(_)}for(var b=-4.5;b<=4.5;b+=9)for(var E=-9.45;E<=9.45;E+=18.9){var O=new r.Mesh(new r.BoxGeometry(.25,.125,4),l);O.rotation.x=.5*Math.PI,O.position.set(b,1.6,E),t.add(O);var I=new r.Mesh(new r.BoxGeometry(.25,.125,4),l);I.rotation.x=.5*Math.PI,I.position.set(b-3,1.6,E),t.add(I);var P=new r.Mesh(new r.CylinderGeometry(.1,.1,.6,6),i);P.rotation.x=.5*Math.PI,P.position.set(b,2.5,E-.2),t.add(P);var T=new r.Mesh(new r.CylinderGeometry(.1,.1,.6,6),i);T.rotation.x=.5*Math.PI,T.position.set(b-3,2.5,E-.2),t.add(T),b<0&&(I.position.set(b+3,1.6,E),T.position.set(b+3,2.5,E-.2),E<0&&T.position.set(b+3,2.5,E+.2)),E<0&&(P.position.set(b,2.5,E+.2),b>0&&T.position.set(b-3,2.5,E+.2))}for(var G=-3;G<=3;G+=6)for(var S=-7;S<=7;S+=14){var D=new r.Mesh(new r.BoxGeometry(4,.5,4),o);D.rotation.y=.5*Math.PI,D.position.set(G,-.25,S),t.add(D)}for(var R=-4.5;R<=4.5;R+=9)for(var A=-9;A<=9;A+=18){var L=new r.Mesh(new r.BoxGeometry(.25,.125,1),l);L.position.set(R,-.35,A),t.add(L);var C=new r.Mesh(new r.BoxGeometry(.25,.125,1),l);C.position.set(R-3,-.35,A),t.add(C);var k=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),i);k.position.set(R,-.35,A-2),t.add(k);var j=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),i);j.position.set(R-3,-.35,A-2),t.add(j),R<0&&(C.position.set(R+3,-.35,A),j.position.set(R+3,-.35,A-2),A<0&&j.position.set(R+3,-.35,A+2)),A<0&&(k.position.set(R,-.35,A+2),R>0&&j.position.set(R-3,-.35,A+2))}return t}(),u=function(){var e=new r.BoxGeometry(1,3,1),t=new r.Mesh(e,l),n=new r.Mesh(new r.BoxGeometry(10,.5,10),o);n.position.set(0,1.5,0),t.add(n);var a=new r.Mesh(new r.BoxGeometry(1,15,1),l);a.rotation.x=.5*Math.PI,a.position.set(0,-1,0),t.add(a);var i=new r.Mesh(new r.BoxGeometry(1,10,1),l);i.rotation.z=.5*Math.PI,i.position.set(0,-1,-7),t.add(i);var s=new r.Mesh(new r.BoxGeometry(1,10,1),l);s.rotation.z=.5*Math.PI,s.position.set(0,-1,7),t.add(s);for(var u=-3;u<=3;u+=6)for(var d=7;d>=-7;d-=14){var c=new r.Mesh(new r.BoxGeometry(1,3,1),l);c.rotation.y=.5*Math.PI,c.position.set(u,-2,d),t.add(c)}for(var p=-3;p<=3;p+=6)for(var h=8;h>=-8;h-=16){var f=new r.Mesh(new r.BoxGeometry(3,.25,1),l);f.rotation.y=.5*Math.PI,f.position.set(p,-3.5,h+1),t.add(f),h>0&&f.position.set(p,-3.5,h-1)}for(var m=-3;m<=3;m+=6)for(var y=-9.24;y<=9.24;y+=18.48){var v=new r.Mesh(new r.BoxGeometry(4,.5,2.5),o);v.rotation.x=.5*Math.PI,v.position.set(m,2.5,y),t.add(v)}for(var g=-4.5;g<=4.5;g+=9)for(var x=-9.45;x<=9.45;x+=18.9){var w=new r.Mesh(new r.BoxGeometry(.25,.125,4),l);w.rotation.x=.5*Math.PI,w.position.set(g,1.6,x),t.add(w);var M=new r.Mesh(new r.BoxGeometry(.25,.125,4),l);M.rotation.x=.5*Math.PI,M.position.set(g-3,1.6,x),t.add(M),g<0&&M.position.set(g+3,1.6,x)}for(var q=-3;q<=3;q+=6)for(var _=-7;_<=7;_+=14){var b=new r.Mesh(new r.BoxGeometry(4,.5,4),o);b.rotation.y=.5*Math.PI,b.position.set(q,-.25,_),t.add(b)}for(var E=-4.5;E<=4.5;E+=9)for(var O=-9;O<=9;O+=18){var I=new r.Mesh(new r.BoxGeometry(.25,.125,1),l);I.position.set(E,-.35,O),t.add(I);var P=new r.Mesh(new r.BoxGeometry(.25,.125,1),l);P.position.set(E-3,-.35,O),t.add(P),E<0&&P.position.set(E+3,-.35,O)}return t}();t.default={name:"canteen table",prototype:"items",info:{tag:["furnishings","wood"],title:"canteen table",description:"canteen table",image:n(302)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-50,-70)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:100,height:140,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(50, 70) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(s.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.y+=50+a,o.scale.set(100/l,100/d,140/c);var p=new r.Object3D;p.add(u.clone()),p.position.y+=50+a,p.scale.set(100/l,100/d,140/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},304:function(e,t,n){e.exports=n.p+"catalog/items/camera/camera.png"},305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:11184810}),i=new r.MeshLambertMaterial({color:0}),l=new r.MeshLambertMaterial({color:16777215}),s=new r.MeshLambertMaterial({color:16777215,transparent:!0,opacity:.5}),u=function(){var e=new r.Mesh,t=new r.CylinderGeometry(.2,.2,.5,80),n=new r.Mesh(t,o);n.rotation.x+=Math.PI/2,n.position.set(0,.5,0);var a=new r.SphereGeometry(.2,32,32),u=new r.Mesh(a,o);u.position.set(0,-.25,0),n.add(u);var d=new r.CylinderGeometry(.085,.085,.5,80),c=new r.Mesh(d,i);c.position.set(0,.04,0),n.add(c);for(var p=new r.SphereGeometry(.025,32,32),h=0;h<16;h++){var f=new r.Mesh(p,l),m=new r.Mesh(p,l);f.position.set(.115*Math.cos(2*Math.PI/14*h),.2497,.115*Math.sin(2*Math.PI/14*h)),m.position.set(.17*Math.cos(2*Math.PI/16*h),.25,.17*Math.sin(2*Math.PI/16*h)),f.scale.set(1,1,1.3),m.scale.set(1,1,1.3),f.rotation.x+=Math.PI/2,m.rotation.x+=Math.PI/2,n.add(f),n.add(m)}var y=new r.CylinderGeometry(.195,.195,.05,80),v=new r.Mesh(y,s);v.position.set(0,.27,0),n.add(v);var g=new r.CylinderGeometry(.2,.2,.1,80,16,!0),x=new r.Mesh(g,o);x.position.set(0,.25,0),n.add(x);var w=new r.BoxGeometry(.25,.05,.25),M=new r.Mesh(w,o);M.position.set(0,-.6,.35),n.add(M);for(var q=.265;q<=.5;q+=.165){var _=new r.CylinderGeometry(.02,.02,.055,6,6),b=new r.Mesh(_,i),E=new r.Mesh(_,i);b.position.set(.08,-.6,q),E.position.set(-.08,-.6,q),n.add(b),n.add(E)}var O=new r.Shape;O.moveTo(.2,.45),O.lineTo(.5,.5),O.lineTo(.7,.5),O.lineTo(.7,.6),O.lineTo(.2,.6);var I=new r.ExtrudeGeometry(O,{steps:2,depth:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),P=new r.Mesh(I,o);P.rotation.z=Math.PI/2,P.rotation.y=-Math.PI/2,P.position.set(.05,-.8,.875),n.add(P);var T=new r.CylinderGeometry(.1,.1,.1,80,16),G=new r.Mesh(T,o);G.rotation.x+=Math.PI/2,G.position.set(0,-.02,.325),n.add(G);var S=new r.CylinderGeometry(.05,.05,.14,80,16),D=new r.Mesh(S,i);D.rotation.x+=Math.PI/2,D.position.set(0,-.02,.325),n.add(D);var R=new r.CylinderGeometry(.025,.025,.16,80,16),A=new r.Mesh(R,o);A.rotation.x+=Math.PI/2,A.position.set(0,-.02,.325),n.add(A);var L=new r.CylinderGeometry(.026,.026,.12,80,16),C=new r.Mesh(L,i);C.rotation.z+=Math.PI/2,C.position.set(0,-.02,.23),n.add(C);var k=new r.CylinderGeometry(.02,.02,.16,80,16),j=new r.Mesh(k,o);j.rotation.z+=Math.PI/2,j.position.set(0,-.02,.23),n.add(j);var N=new r.Shape;N.moveTo(0,0),N.lineTo(0,.1),N.lineTo(.1,.1),N.bezierCurveTo(.05,.05,.05,.05,.1,0);var z=new r.ExtrudeGeometry(N,{depth:.1,bevelEnabled:!1,bevelSegments:1,steps:1,bevelSize:1,bevelThickness:1}),B=new r.Mesh(z,o);B.position.set(-.05,.03,.15),B.rotation.y+=Math.PI/2,B.rotation.z+=-Math.PI;var U=new r.Mesh(z,o);U.position.set(-.05,-.07,.3),U.rotation.y+=Math.PI/2,n.add(B),n.add(U);var V=[];V.push(new r.Vector2(.2,0)),V.push(new r.Vector2(.2,0)),V.push(new r.Vector2(.2,.2)),V.push(new r.Vector2(.2,.2));var F=new r.LatheGeometry(V,200,0,Math.PI);o.side=r.DoubleSide;var H=new r.Mesh(F,o);H.position.set(0,.2,0),H.rotation.y+=Math.PI/2,n.add(H);var W=new r.CylinderGeometry(.025,.02,.3,80,16),Y=new r.Mesh(W,i);Y.rotation.x+=Math.PI/2,Y.position.set(0,-.5,-.18),n.add(Y);var Z=new r.CylinderGeometry(.02,.015,.3,80,16),X=new r.Mesh(Z,i);X.rotation.x+=Math.PI/2,X.position.set(0,-.5,-.35),n.add(X);var J=new r.SphereGeometry(.015,32,32),K=new r.Mesh(J,i);K.position.set(0,-.5,-.5),n.add(K);var Q=new r.SphereGeometry(.04,32,32),$=new r.Mesh(Q,i);$.position.set(0,-.5,0),n.add($);var ee=new r.CylinderGeometry(.025,.025,.1,80,16),te=new r.Mesh(ee,i);return te.position.set(0,-.42,0),n.add(te),e.add(n),e}(),d=function(){var e=new r.Mesh,t=new r.CylinderGeometry(.2,.2,.5,8.8),n=new r.Mesh(t,o);n.rotation.x+=Math.PI/2,n.position.set(0,.5,0);var a=new r.SphereGeometry(.2,8,8),l=new r.Mesh(a,o);l.position.set(0,-.25,0),n.add(l);var u=new r.CylinderGeometry(.085,.085,.5,8,8),d=new r.Mesh(u,i);d.position.set(0,.04,0),n.add(d);var c=new r.CylinderGeometry(.195,.195,.05,8,8),p=new r.Mesh(c,s);p.position.set(0,.27,0),n.add(p);var h=new r.CylinderGeometry(.2,.2,.1,8,8,!0),f=new r.Mesh(h,o);f.position.set(0,.25,0),n.add(f);var m=new r.BoxGeometry(.25,.05,.25),y=new r.Mesh(m,o);y.position.set(0,-.6,.35),n.add(y);var v=new r.Shape;v.moveTo(.2,.45),v.lineTo(.5,.5),v.lineTo(.7,.5),v.lineTo(.7,.6),v.lineTo(.2,.6);var g=new r.ExtrudeGeometry(v,{steps:2,depth:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),x=new r.Mesh(g,o);x.rotation.z=Math.PI/2,x.rotation.y=-Math.PI/2,x.position.set(.05,-.8,.875),n.add(x);var w=new r.CylinderGeometry(.1,.1,.1,80,16),M=new r.Mesh(w,o);M.rotation.x+=Math.PI/2,M.position.set(0,-.02,.325),n.add(M);var q=new r.CylinderGeometry(.05,.05,.14,80,16),_=new r.Mesh(q,i);_.rotation.x+=Math.PI/2,_.position.set(0,-.02,.325),n.add(_);var b=new r.CylinderGeometry(.025,.025,.16,80,16),E=new r.Mesh(b,o);E.rotation.x+=Math.PI/2,E.position.set(0,-.02,.325),n.add(E);var O=new r.CylinderGeometry(.026,.026,.12,80,16),I=new r.Mesh(O,i);I.rotation.z+=Math.PI/2,I.position.set(0,-.02,.23),n.add(I);var P=new r.CylinderGeometry(.02,.02,.16,80,16),T=new r.Mesh(P,o);T.rotation.z+=Math.PI/2,T.position.set(0,-.02,.23),n.add(T);var G=new r.Shape;G.moveTo(0,0),G.lineTo(0,.1),G.lineTo(.1,.1),G.bezierCurveTo(.05,.05,.05,.05,.1,0);var S=new r.ExtrudeGeometry(G,{depth:.1,bevelEnabled:!1,bevelSegments:1,steps:1,bevelSize:1,bevelThickness:1}),D=new r.Mesh(S,o);D.position.set(-.05,.03,.15),D.rotation.y+=Math.PI/2,D.rotation.z+=-Math.PI;var R=new r.Mesh(S,o);R.position.set(-.05,-.07,.3),R.rotation.y+=Math.PI/2,n.add(D),n.add(R);var A=new r.CylinderGeometry(.025,.02,.3,8,8),L=new r.Mesh(A,i);L.rotation.x+=Math.PI/2,L.position.set(0,-.5,-.18),n.add(L);var C=new r.CylinderGeometry(.02,.015,.3,8,8),k=new r.Mesh(C,i);k.rotation.x+=Math.PI/2,k.position.set(0,-.5,-.35),n.add(k);var j=new r.SphereGeometry(.015,8,8),N=new r.Mesh(j,i);N.position.set(0,-.5,-.5),n.add(N);var z=new r.SphereGeometry(.04,8,8),B=new r.Mesh(z,i);B.position.set(0,-.5,0),n.add(B);var U=new r.CylinderGeometry(.025,.025,.1,8,8),V=new r.Mesh(U,i);return V.position.set(0,-.42,0),n.add(V),e.add(n),e}();t.default={name:"camera",prototype:"items",info:{tag:["security","metal"],title:"camera",description:"camera",image:n(304)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-5,-10)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:10,height:20,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(5, 10) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(u.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.y+=2.5+a,o.position.z+=10,o.scale.set(20/c,20/s,10/l);var p=new r.Object3D;p.add(d.clone()),p.position.y+=2.5+a,p.position.z+=10,p.scale.set(20/c,20/s,10/l);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},306:function(e,t,n){e.exports=n.p+"catalog/items/bookcase/bookcase.png"},307:function(e,t,n){e.exports=n.p+"catalog/items/bookcase/bookTexture3.jpg"},308:function(e,t,n){e.exports=n.p+"catalog/items/bookcase/bookTexture2.jpg"},309:function(e,t,n){e.exports=n.p+"catalog/items/bookcase/bookTexture1.jpg"},31:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.State=t.HistoryStructure=t.Catalog=t.CatalogElement=t.Scene=t.DefaultLayers=t.Group=t.Layer=t.Item=t.Area=t.Hole=t.Line=t.Vertex=t.ElementsSet=t.DefaultGrids=t.Grid=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{})})))}return d(t,(0,o.Record)({id:"",type:"",properties:(0,o.Map)()},"Grid")),t}(),h=t.DefaultGrids=new o.Map({h1:new p({id:"h1",type:"horizontal-streak",properties:{step:20,colors:["#808080","#ddd","#ddd","#ddd","#ddd"]}}),v1:new p({id:"v1",type:"vertical-streak",properties:{step:20,colors:["#808080","#ddd","#ddd","#ddd","#ddd"]}})}),f=t.ElementsSet=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{vertices:new o.List(e.vertices||[]),lines:new o.List(e.lines||[]),holes:new o.List(e.holes||[]),areas:new o.List(e.areas||[]),items:new o.List(e.items||[])}))}return d(t,(0,o.Record)({vertices:new o.List,lines:new o.List,holes:new o.List,areas:new o.List,items:new o.List},"ElementsSet")),t}(),m={id:"",type:"",prototype:"",name:"",misc:new o.Map,selected:!1,properties:new o.Map,visible:!0},y=t.Vertex=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{lines:new o.List(e.lines||[]),areas:new o.List(e.areas||[])})))}return d(t,(0,o.Record)(a({},m,{x:-1,y:-1,prototype:"vertices",lines:new o.List,areas:new o.List}),"Vertex")),t}(),v=t.Line=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{}),vertices:new o.List(e.vertices||[]),holes:new o.List(e.holes||[])})))}return d(t,(0,o.Record)(a({},m,{prototype:"lines",vertices:new o.List,holes:new o.List}),"Line")),t}(),g=t.Hole=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{})})))}return d(t,(0,o.Record)(a({},m,{prototype:"holes",offset:-1,line:""}),"Hole")),t}(),x=t.Area=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{}),vertices:new o.List(e.vertices||[])})))}return d(t,(0,o.Record)(a({},m,{prototype:"areas",vertices:new o.List,holes:new o.List}),"Area")),t}(),w=t.Item=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{})})))}return d(t,(0,o.Record)(a({},m,{prototype:"items",x:0,y:0,rotation:0}),"Item")),t}(),M=t.Layer=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{vertices:c(e.vertices,y),lines:c(e.lines,v),holes:c(e.holes,g),areas:c(e.areas,x),items:c(e.items,w),selected:new f(e.selected)})))}return d(t,(0,o.Record)({id:"",altitude:0,order:0,opacity:1,name:"",visible:true,vertices:new o.Map,lines:new o.Map,holes:new o.Map,areas:new o.Map,items:new o.Map,selected:new f},"Layer")),t}(),q=t.Group=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{}),elements:(0,o.fromJS)(e.elements||{})})))}return d(t,(0,o.Record)(a({},m,{prototype:"groups",x:0,y:0,rotation:0,elements:new o.Map}),"Group")),t}(),_=t.DefaultLayers=new o.Map({"layer-1":new M({id:"layer-1",name:"default"})}),b=t.Scene=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t);var n=c(e.layers,M,_);return u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{grids:c(e.grids,p,h),layers:n,selectedLayer:n.first().id,groups:c(e.groups||{},q),meta:e.meta?(0,o.fromJS)(e.meta):new o.Map,guides:e.guides?(0,o.fromJS)(e.guides):new o.Map({horizontal:new o.Map,vertical:new o.Map,circular:new o.Map})})))}return d(t,(0,o.Record)({unit:"cm",layers:new o.Map,grids:new o.Map,selectedLayer:null,groups:new o.Map,width:3e3,height:2e3,meta:new o.Map,guides:new o.Map},"Scene")),t}(),E=t.CatalogElement=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{info:(0,o.fromJS)(e.info),properties:(0,o.fromJS)(e.properties)})))}return d(t,(0,o.Record)({name:"",prototype:"",info:new o.Map,properties:new o.Map},"CatalogElement")),t}(),O=t.Catalog=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t);var n=c(e.elements,E);return u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{elements:n,ready:!n.isEmpty()}))}return d(t,(0,o.Record)({ready:false,page:"root",path:new o.List,elements:new o.Map},"Catalog")),r(t,[{key:"factoryElement",value:function(e,t,n){if(!this.elements.has(e)){var r=this.elements.map(function(e){return e.name}).toArray();throw new Error("Element "+e+" does not exist in catalog "+r)}var a=this.elements.get(e),o=a.properties.map(function(e,t){return n&&n.has(t)?n.get(t):e.get("defaultValue")});switch(a.prototype){case"lines":return new v(t).merge({properties:o});case"holes":return new g(t).merge({properties:o});case"areas":return new x(t).merge({properties:o});case"items":return new w(t).merge({properties:o});default:throw new Error("prototype not valid")}}}]),t}(),I=t.HistoryStructure=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{list:(0,o.fromJS)(e.list||[]),first:new b(e.scene),last:new b(e.last||e.scene)}))}return d(t,(0,o.Record)({list:new o.List,first:null,last:null},"HistoryStructure")),t}();t.State=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{scene:new b(e.scene),sceneHistory:new I(e),catalog:new O(e.catalog||{}),viewer2D:new o.Map(e.viewer2D||{}),drawingSupport:new o.Map(e.drawingSupport||{}),draggingSupport:new o.Map(e.draggingSupport||{}),rotatingSupport:new o.Map(e.rotatingSupport||{}),misc:e.misc?(0,o.fromJS)(e.misc):new o.Map})))}return d(t,(0,o.Record)({mode:i.MODE_IDLE,scene:new b,sceneHistory:new I,catalog:new O,viewer2D:new o.Map,mouse:new o.Map({x:0,y:0}),zoom:0,snapMask:l.SNAP_MASK,snapElements:new o.List,activeSnapElement:null,drawingSupport:new o.Map,draggingSupport:new o.Map,rotatingSupport:new o.Map,errors:new o.List,warnings:new o.List,clipboardProperties:new o.Map,selectedElementsHistory:new o.List,misc:new o.Map,alterate:false},"State")),t}()},310:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.TextureLoader,i=o.load(n(98)),l=o.load(n(309)),s=o.load(n(308)),u=o.load(n(307)),d=function(){var e=new r.Mesh,t=new r.BoxGeometry(.03,2,.8),n=new r.MeshPhongMaterial({map:i}),a=new r.Mesh(t,n);a.position.set(0,1,0),e.add(a);var o=new r.BoxGeometry(.3,2,.03),d=new r.Mesh(o,n);d.position.set(.15,1,.4),e.add(d);var c=new r.Mesh(o,n);c.position.set(.15,1,-.4),e.add(c);var p=new r.BoxGeometry(.3,.03,.8),h=new r.Mesh(p,n);h.position.set(.15,2,0),e.add(h);var f=new r.BoxGeometry(.3,.03,.8),m=new r.Mesh(f,n);m.position.set(.15,.015,0),e.add(m);for(var y=1;y<5;y++){var v=new r.BoxGeometry(.3,.03,.8),g=new r.Mesh(v,n);g.position.set(.15,.015+.4*y,0),e.add(g)}function x(){return Math.floor(3*Math.random())}var w=new r.BoxGeometry(.24,.32,.76),M=[new r.MeshLambertMaterial({map:l}),new r.MeshLambertMaterial({map:s}),new r.MeshLambertMaterial({map:u})],q=new r.Mesh(w,M[x()]);q.position.set(.15,.59,0),e.add(q);var _=new r.Mesh(w,M[x()]);_.position.set(.15,.99,0),e.add(_);var b=new r.Mesh(w,M[x()]);b.position.set(.15,.19,0),e.add(b);var E=new r.Mesh(w,M[x()]);E.position.set(.15,1.39,0),e.add(E);var O=new r.Mesh(w,M[x()]);return O.position.set(.15,1.79,0),e.add(O),e}(),c=function(){var e=new r.Mesh,t=(new r.TextureLoader).load(n(98)),a=new r.BoxGeometry(.03,2,.8),o=new r.MeshPhongMaterial({map:t}),i=new r.Mesh(a,o);i.position.set(0,1,0),e.add(i);var l=new r.BoxGeometry(.3,2,.03),s=new r.Mesh(l,o);s.position.set(.15,1,.4),e.add(s);var u=new r.Mesh(l,o);u.position.set(.15,1,-.4),e.add(u);var d=new r.BoxGeometry(.3,.03,.8),c=new r.Mesh(d,o);c.position.set(.15,2,0),e.add(c);var p=new r.BoxGeometry(.3,.03,.8),h=new r.Mesh(p,o);h.position.set(.15,.015,0),e.add(h);for(var f=1;f<5;f++){var m=new r.BoxGeometry(.3,.03,.8),y=new r.Mesh(m,o);y.position.set(.15,.015+.4*f,0),e.add(y)}return e}();t.default={name:"bookcase",prototype:"items",info:{tag:["furnishings","wood"],title:"bookcase",description:"bookcase",image:n(306)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;Math.sin(r*Math.PI/180)<0&&(o=180);var i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-40,-40)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:80,height:80,style:i}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(40, 40) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(d.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),u=Math.abs(i.max.z-i.min.z);o.rotation.y+=Math.PI/2,o.position.y+=a,o.position.z+=40,o.scale.set(80/l,200/s,80/u);var p=new r.Object3D;p.add(c.clone()),p.rotation.y+=Math.PI/2,p.position.y+=a,p.position.z+=40,p.scale.set(80/l,200/s,80/u);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},311:function(e,t,n){e.exports=n.p+"catalog/items/blackboard/blackboard.png"},312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));t.default={name:"blackboard",prototype:"items",info:{tag:["furnishings"],title:"Blackboard",description:"Blackboard",image:n(311)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;Math.sin(r*Math.PI/180)<0&&(o=180);var i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},l={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-150,-10)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:300,height:20,style:i}),a.default.createElement("line",{key:"2",x1:150,x2:150,y1:20,y2:36,style:l}),a.default.createElement("line",{key:"3",x1:135,x2:150,y1:24,y2:36,style:l}),a.default.createElement("line",{key:"4",x1:150,x2:165,y1:36,y2:24,style:l}),a.default.createElement("text",{key:"5",x:"0",y:"0",transform:"translate(150, 10) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.MeshLambertMaterial({color:0}),i=new r.MeshLambertMaterial({color:13421772}),l=(o=new r.MeshLambertMaterial({color:4277321}),new r.Object3D),s=new r.Shape;s.moveTo(0,.25),s.lineTo(0,3.75),s.quadraticCurveTo(0,4,.25,4),s.lineTo(7.75,4),s.quadraticCurveTo(8,4,8,3.75),s.lineTo(8,.25),s.quadraticCurveTo(8,0,7.75,0),s.lineTo(.25,0),s.quadraticCurveTo(0,0,0,.25);var u=new r.ExtrudeGeometry(s,{steps:1,depth:.2,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1}),d=new r.Mesh(u,i);d.position.set(0,1.2,0),l.add(d);var c=new r.BoxGeometry(8-8/11,3.5,.2),p=new r.Mesh(c,o);p.position.set(4,3.2,.07),l.add(p);var h=new r.BoxGeometry(8,.08,.33),f=new r.Mesh(h,i);f.position.set(4,1,-.095),l.add(f);var m=new r.BoxGeometry(8,.08,.25),y=new r.Mesh(m,i);y.rotation.x+=Math.PI/2,y.position.set(4,1.1,.03),l.add(y);var v=new r.Mesh(m,i);v.rotation.x+=Math.PI/2,v.position.set(4,1.1,-.22),l.add(v);var g=(new r.Box3).setFromObject(l),x=Math.abs(g.max.x-g.min.x),w=Math.abs(g.max.y-g.min.y),M=Math.abs(g.max.z-g.min.z);if(e.selected){var q=new r.BoxHelper(l,10077179);q.material.linewidth=5,q.renderOrder=1e3,q.material.depthTest=!1,l.add(q)}return l.position.y+=-46.875+a,l.position.x+=-150,l.position.z+=5,l.scale.set(300/x,150/w,20/M),Promise.resolve(l)}}},313:function(e,t,n){e.exports=n.p+"catalog/items/bench/bench.png"},314:function(e,t,n){e.exports=n.p+"catalog/items/bench/wood.jpg"},315:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:12632256}),i=new r.MeshLambertMaterial({color:0}),l=(new r.TextureLoader).load(n(314)),s=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(10,.5,.5),o);t.position.set(0,0,0),e.add(t);var n=new r.Mesh(new r.BoxGeometry(10,.5,.5),o);n.position.set(0,0,3),e.add(n);for(var a=-5;a<=5;a+=5){var s=new r.Mesh(new r.BoxGeometry(.5,.5,3.5),o);s.position.set(a,0,1.5),e.add(s)}for(var u=-5;u<=5;u+=5)for(var d=0;d<=3;d+=3){var c=new r.Mesh(new r.BoxGeometry(3,.5,.5),o);c.rotation.z=.5*Math.PI,c.position.set(u,-1.5,d),e.add(c);var p=new r.Mesh(new r.BoxGeometry(.5,.25,.5),i);p.rotation.z=.5*Math.PI,p.position.x=-1.625,c.add(p)}for(var h=0;h<=3;h+=.75){var f=new r.Mesh(new r.BoxGeometry(12,.25,.5),new r.MeshPhongMaterial({map:l}));f.position.set(0,.5,h),e.add(f)}for(var m=0;m<=3;m+=.75)for(var y=-5;y<=5;y+=5){var v=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),i);v.position.set(y,.3,m),e.add(v)}return e}(),u=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(10,.5,.5),o);t.position.set(0,0,0),e.add(t);var n=new r.Mesh(new r.BoxGeometry(10,.5,.5),o);n.position.set(0,0,3),e.add(n);for(var a=-5;a<=5;a+=5){var i=new r.Mesh(new r.BoxGeometry(.5,.5,3.5),o);i.position.set(a,0,1.5),e.add(i)}for(var s=-5;s<=5;s+=5)for(var u=0;u<=3;u+=3){var d=new r.Mesh(new r.BoxGeometry(3,.5,.5),o);d.rotation.z=.5*Math.PI,d.position.set(s,-1.5,u),e.add(d)}for(var c=0;c<=3;c+=.75){var p=new r.Mesh(new r.BoxGeometry(12,.25,.5),new r.MeshPhongMaterial({map:l}));p.position.set(0,.5,c),e.add(p)}return e}();t.default={name:"bench",prototype:"items",info:{tag:["furnishings","wood","metal"],title:"bench",description:"bench",image:n(313)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=Math.sin(r*Math.PI/180)<0?180:0,i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-75,-25)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:150,height:50,style:i}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(75, 25) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.getIn(["altitude","length"]),o=new r.Object3D;o.add(s.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.y+=50+a,o.scale.set(150/l,50/d,50/c);var p=new r.Object3D;p.add(u.clone()),p.position.y+=50+a,p.scale.set(150/l,50/d,50/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},316:function(e,t,n){e.exports=n.p+"catalog/items/balcony/balcony.png"},317:function(e,t,n){e.exports=n.p+"catalog/items/balcony/bricks.jpg"},318:function(e,t,n){e.exports=n.p+"catalog/items/balcony/painted.jpg"},319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=Math.PI/2,i=n(318),l=n(317),s=100,u=new r.TextureLoader;u.setPath("./");var d=u.load(i),c=u.load(l);t.default={name:"balcony",prototype:"items",info:{tag:["furnishings","metal"],title:"balcony",description:"balcony",image:n(316)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:500,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:100,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:100,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},patternColor:{label:"2D color",type:"color",defaultValue:"#f5f4f4"}},render2D:function(e,t,n){var r=e.properties.getIn(["width","length"]),o=e.properties.getIn(["depth","length"]),i=e.selected?"#99c3fb":e.properties.get("patternColor"),l=e.rotation+90,s=0;return Math.sin(l*Math.PI/180)<0&&(s=180),a.default.createElement("g",{transform:"translate("+-r/2+","+-o/2+")"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:r,height:o,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:i}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate("+r/2+", "+o/2+") scale(1,-1) rotate("+s+")",style:{textAnchor:"middle",fontSize:"11px"}},e.name))},render3D:function(e,t,n){var a=e.properties.getIn(["width","length"]),i=e.properties.getIn(["depth","length"]),p=e.properties.getIn(["height","length"]),h=e.properties.getIn(["altitude","length"]),f=new r.Object3D;if(f.add(function(e,t,n){var a=u.load(l,function(n){n.wrapS=n.wrapT=r.RepeatWrapping,n.offset.set(0,0),n.repeat.set(~~(e/s),~~(t/s))}),i=new r.Mesh,p=new r.BoxGeometry(e,t/10,n),h=new r.MeshLambertMaterial({map:d}),f=new r.MeshLambertMaterial({map:c}),m=new r.MeshLambertMaterial({map:a}),y=new r.Mesh(p,h),v=new r.BoxGeometry(e,t/10,n),g=new r.Mesh(v,m);g.position.set(0,t/2,n/2),g.rotation.x+=o;var x=new r.BoxGeometry(n,t/10,n),w=new r.Mesh(x,f);w.position.set(e/2,t/2,0),w.rotation.z+=o,w.rotation.x+=o;var M=new r.Mesh(x,f);M.position.set(-e/2,t/2,0),M.rotation.z+=o,M.rotation.x+=o;var q=new r.BoxGeometry(e+t/5,t/5,n/10),_=new r.Mesh(q,h);_.position.set(0,t+t/32,n/2),_.rotation.x+=o;var b=new r.BoxGeometry(n,t/5,n/10),E=new r.Mesh(b,h);E.position.set(e/2,t+t/32,0),E.rotation.z+=o,E.rotation.x+=o;var O=new r.Mesh(b,h);return O.position.set(-e/2,t+t/32,0),O.rotation.z+=o,O.rotation.x+=o,i.add(y,g,w,M,_,E,O)}(a,p,i)),e.selected){var m=new r.BoxHelper(f,10077179);m.material.linewidth=5,m.renderOrder=1e3,m.material.depthTest=!1,f.add(m)}return f.position.y+=p/10+h,Promise.resolve(f)}}},320:function(e,t,n){e.exports=n.p+"catalog/items/armchairs/armchairs.png"},321:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=60,i=60,l=new r.MeshLambertMaterial({color:12632256});l.side=r.DoubleSide;var s=new r.MeshLambertMaterial({color:33360});t.default={name:"armchairs",prototype:"items",info:{tag:["furnishings","wood"],title:"armchairs",description:"armchairs",image:n(320)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},seat:{label:"seats",type:"number",defaultValue:1},flip:{label:"flip",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){var r={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},l=e.rotation+90,s=0;Math.sin(l*Math.PI/180)<0&&(s=180);for(var u=e.properties.get("seat"),d=e.properties.get("flip"),c=new Array(u),p=0;p-.36;s-=.005){var u=new r.BoxGeometry(.001,.025,.705),d=new r.Mesh(u,i);d.position.set(s,l,.5),d.rotation.z+=Math.PI/4,e.add(d),l-=.005}for(var c=.15;c<.87;c+=.05){var p=new r.BoxGeometry(.079,.025,.005),h=new r.Mesh(p,i);h.position.set(-.324,1.148,c),h.rotation.z+=Math.PI/4,e.add(h)}var f=new r.Shape;f.moveTo(0,0),f.lineTo(.2,0),f.quadraticCurveTo(.35,.4,.1,.4),f.lineTo(.1,.4),f.quadraticCurveTo(.35,.1,0,0);var m=new r.ExtrudeGeometry(f,{steps:2,depth:1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new r.Mesh(m,o);y.position.set(-.2,1.1,0),y.rotation.z+=Math.PI,e.add(y);var v=new r.Shape;v.moveTo(0,0),v.quadraticCurveTo(.075-.05,-.1,.1,0),v.lineTo(.1,0),v.quadraticCurveTo(.125,.2,.05,.1),v.lineTo(.05,.1),v.quadraticCurveTo(.025,0+.1/6,0,0);var g=new r.ExtrudeGeometry(v,{steps:2,depth:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),x=new r.Mesh(g,i);x.position.set(-.27,.62,.1),x.rotation.y+=Math.PI,x.rotation.z-=Math.PI/9,e.add(x);var w=new r.Mesh(g,i);w.position.set(-.27,.62,1),w.rotation.y+=Math.PI,w.rotation.z-=Math.PI/9,e.add(w);var M=[];M.push(new r.Vector3(.5,0)),M.push(new r.Vector3(.5,0)),M.push(new r.Vector3(.5,.8)),M.push(new r.Vector3(.5,.8));var q=new r.LatheGeometry(M,200,Math.PI/2,Math.PI/16),_=new r.Mesh(q,i);_.position.set(-.4,.18,.9),_.rotation.z+=Math.PI/2,_.rotation.y+=-Math.PI/2,e.add(_);var b=new r.Mesh(q,i);return b.position.set(-.4,.15,.9),b.rotation.z+=Math.PI/2,b.rotation.y+=-Math.PI/2,e.add(b),e}(),s=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,0),t.lineTo(.15,0),t.lineTo(.3,.15),t.quadraticCurveTo(.3,.6,.075,.6),t.lineTo(.075,.6),t.lineTo(0,.6);var n=new r.ExtrudeGeometry(t,{steps:2,depth:1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),a=new r.Mesh(n,o);a.position.set(-.11,1.2,0),a.rotation.z+=Math.PI,e.add(a);var i=new r.Shape;i.moveTo(0,0),i.lineTo(.2,0),i.quadraticCurveTo(.35,.4,.1,.4),i.lineTo(.1,.4),i.quadraticCurveTo(.35,.1,0,0);var l=new r.ExtrudeGeometry(i,{steps:2,depth:1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),s=new r.Mesh(l,o);return s.position.set(-.2,1.1,0),s.rotation.z+=Math.PI,e.add(s),e}();t.default={name:"conditioner",prototype:"items",info:{tag:["furnishings","metal"],title:"air conditioner",description:"air conditioner",image:n(322)},properties:{altitude:{label:"quota",type:"length-measure",defaultValue:{length:220,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-45,-20)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:90,height:40,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(45, 20) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(l.clone());var i=(new r.Box3).setFromObject(o),u=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.x+=90/2.2,o.position.z+=40/1.2,o.position.y+=a,o.rotation.y+=-Math.PI/2,o.scale.set(90/c,30/d,40/u/1.4);var p=new r.Object3D;p.add(s.clone()),p.position.x+=90/2.2,p.position.z+=40/1.2,p.position.y+=a,p.rotation.y+=-Math.PI/2,p.scale.set(90/c,30/d,40/u/1.4);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},324:function(e,t,n){e.exports=n.p+"catalog/holes/window/texture.png"},325:function(e,t,n){e.exports=n.p+"catalog/holes/window/window.obj"},326:function(e,t,n){e.exports=n.p+"catalog/holes/window/window.mtl"},327:function(e,t,n){e.exports=n.p+"catalog/holes/window/window.png"},328:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),o=n(27),i=l(n(26));function l(e){return e&&e.__esModule?e:{default:e}}var s=null;t.default={name:"window",prototype:"holes",info:{title:"window",tag:["window"],description:"Window",image:n(327)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:90}},height:{label:"Height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:90}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:10}}},render2D:function(e,t,n){var a=e.properties.get("width").get("length"),o="M0 -3 L"+a+" "+-3+" L"+a+" 3 L0 3 z",i=e.selected?{stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},l=e.properties.get("width").get("length");return r.default.createElement("g",{transform:"translate("+-l/2+", 0)"},r.default.createElement("path",{key:"1",d:o,style:i}),r.default.createElement("line",{key:"2",x1:a/2,y1:-13,x2:a/2,y2:13,style:i}))},render3D:function(e,t,r){var l=function(t){var n=(new a.Box3).setFromObject(t),r=n.max.x-n.min.x,o=n.max.y-n.min.y,i=n.max.z-n.min.z;if(e.selected){var l=new a.BoxHelper(t,10077179);l.material.linewidth=2,l.material.depthTest=!1,l.renderOrder=1e3,t.add(l)}var s=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length");return t.scale.set(s/r,u/o,d/i),t};if(s)return Promise.resolve(l(s.clone()));var u=n(326),d=n(325),c=n(324);return(0,o.loadObjWithMaterial)(u,d,i.default.dirname(c)+"/").then(function(e){return l((s=e).clone())})}}},329:function(e,t,n){e.exports=n.p+"catalog/holes/window-curtain/texture.png"},330:function(e,t,n){e.exports=n.p+"catalog/holes/window-curtain/window.obj"},331:function(e,t,n){e.exports=n.p+"catalog/holes/window-curtain/window.mtl"},332:function(e,t,n){e.exports=n.p+"catalog/holes/window-curtain/window-curtain.jpg"},333:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),o=n(27),i=l(n(26));function l(e){return e&&e.__esModule?e:{default:e}}var s=null,u={stroke:"#000",strokeWidth:"3px",fill:"#000"},d={stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"};t.default={name:"window-curtain",prototype:"holes",info:{tag:["Finestre"],title:"Curtain window",description:"Curtain window",image:n(332)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:90}},height:{label:"height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"altitudine",type:"length-measure",defaultValue:{length:90}},thickness:{label:"spessore",type:"length-measure",defaultValue:{length:10}},flip:{label:"flip",type:"checkbox",defaultValue:"none",values:{none:"none",yes:"yes"}}},render2D:function(e,t,n){var a=e.properties.get("width").get("length"),o="M0 -3 L"+a+" "+-3+" L"+a+" 3 L0 3 z",i=e.selected?d:u,l=e.properties.get("width").get("length");return r.default.createElement("g",{transform:"translate("+-l/2+", 0)"},r.default.createElement("path",{key:"1",d:o,style:i}),r.default.createElement("line",{key:"2",x1:a/2,y1:-13,x2:a/2,y2:13,style:i}))},render3D:function(e,t,r){var l=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length"),c=e.properties.get("flip"),p=function(t){var n=new a.Object3D,r=(new a.Box3).setFromObject(t),o=r.max.x-r.min.x,i=r.max.y-r.min.y,l=r.max.z-r.min.z;if(e.selected){var s=new a.BoxHelper(t,10077179);s.material.linewidth=2,s.material.depthTest=!1,s.renderOrder=1e3,t.add(s)}var u=e.properties.get("width").get("length"),d=e.properties.get("height").get("length"),p=e.properties.get("thickness").get("length");return t.scale.set(u/o,d/i,p/2/l),n.add(t),n.add(y()),!0===c&&(n.rotation.y+=Math.PI),n};if(s)return Promise.resolve(p(s.clone()));var h=n(331),f=n(330),m=n(329);return(0,o.loadObjWithMaterial)(h,f,i.default.dirname(m)+"/").then(function(e){return p((s=e).clone())});function y(){var e=new a.MeshLambertMaterial({color:15394506}),t=new a.Object3D,n=function(e){e.applyMatrix((new a.Matrix4).makeTranslation(-25,0,-25));var t=new a.MeshLambertMaterial({color:16777215,opacity:.9,transparent:!0});return t.side=a.DoubleSide,new a.Mesh(e,t)}(new a.ParametricGeometry(function(e,t){var n=3*Math.sin(e)*10,r=2*Math.sin(t/2)*10,o=.5*(Math.sin(2*e*Math.PI)+Math.cos(2*t*Math.PI));return new a.Vector3(n,o,r)},20,20));n.rotation.x+=Math.PI/2,n.rotation.y+=Math.PI/2,n.position.y+=3.1,n.position.x+=.05,n.scale.set(.125,.125,.125);var r=n.clone();r.rotation.x+=Math.PI,r.position.set(1.4,0,.06),t.add(n),t.add(r);for(var o=-.7;o>-3.4;o-=.45){var i=new a.TorusGeometry(.08,.016,32,32,2*Math.PI),s=new a.Mesh(i,e);-1.15==o?s.position.set(o,3.14,.045):-2.5==o?s.position.set(o,3.14,-.01):s.position.set(o,3.14,.04),s.rotation.y+=Math.PI/2,t.add(s)}var c=new a.CylinderGeometry(.02,.02,1.25,32),p=new a.Mesh(c,e);p.position.set(-1.1,3.18,.02),p.rotation.z+=Math.PI/2,t.add(p);var h=p.clone();h.position.set(-2.5,3.18,.02),t.add(h);var f=new a.SphereGeometry(.04,32,32),m=new a.Mesh(f,e);m.position.set(-.5,3.18,.02),m.rotation.x+=Math.PI/2,m.scale.set(.8,1,1),t.add(m);var y=m.clone();y.position.x+=-1.2,t.add(y);var v=m.clone();v.position.x+=-1.4,t.add(v);var g=m.clone();g.position.x+=-2.6,t.add(g);var x=(new a.Box3).setFromObject(t),w=Math.abs(x.max.x-x.min.x),M=Math.abs(x.max.y-x.min.y),q=Math.abs(x.max.z-x.min.z);return t.position.x+=l/1.48,t.position.y+=-u/2.1,t.position.z+=d/1024,t.scale.set(l/w,u/M,d/q),t}}}},334:function(e,t,n){e.exports=n.p+"catalog/holes/venetian-blind-window/texture.png"},335:function(e,t,n){e.exports=n.p+"catalog/holes/venetian-blind-window/venetian.obj"},336:function(e,t,n){e.exports=n.p+"catalog/holes/venetian-blind-window/venetian.mtl"},337:function(e,t,n){e.exports=n.p+"catalog/holes/venetian-blind-window/venetian.jpg"},338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),o=n(27),i=l(n(26));function l(e){return e&&e.__esModule?e:{default:e}}var s=null;t.default={name:"venetian-blind-window",prototype:"holes",info:{tag:["Window"],title:"Venetian Blind Window",description:"Venetian Blind Window",image:n(337)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:90}},height:{label:"Height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:90}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:10}},flip:{label:"Flip",type:"checkbox",defaultValue:"false"}},render2D:function(e,t,n){var a=e.properties.get("width").get("length"),o="M0 -3 L"+a+" "+-3+" L"+a+" 3 L0 3 z",i=e.selected?{stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},l=e.properties.get("width").get("length");return r.default.createElement("g",{transform:"translate("+-l/2+", 0)"},r.default.createElement("path",{key:"1",d:o,style:i}),r.default.createElement("line",{key:"2",x1:a/2,y1:-13,x2:a/2,y2:13,style:i}))},render3D:function(e,t,r){e.properties.get("width").get("length"),e.properties.get("height").get("length");var l=e.properties.get("thickness").get("length"),u=e.properties.get("flip"),d=function(t){var n=new a.Object3D,r=(new a.Box3).setFromObject(t),o=r.max.x-r.min.x,i=r.max.y-r.min.y,l=r.max.z-r.min.z;if(e.selected){var s=new a.BoxHelper(t,10077179);s.material.linewidth=2,s.material.depthTest=!1,s.renderOrder=1e3,t.add(s)}var d=e.properties.get("width").get("length"),c=e.properties.get("height").get("length"),p=e.properties.get("thickness").get("length");return t.scale.set(d/o,c/i,p/2/l),n.add(t),n.add(f()),!0===u&&(n.rotation.y+=Math.PI),n};if(s)return Promise.resolve(d(s.clone()));var c=n(336),p=n(335),h=n(334);return(0,o.loadObjWithMaterial)(c,p,i.default.dirname(h)+"/").then(function(e){return d((s=e).clone())});function f(){var e=new a.Object3D,t=new a.MeshLambertMaterial({color:16777215,opacity:.5,transparent:!0}),n=new a.MeshLambertMaterial({color:13421772}),r=new a.Shape;r.moveTo(0,.25),r.lineTo(0,17.75),r.quadraticCurveTo(0,18,.25,18),r.lineTo(.75,18),r.quadraticCurveTo(1,18,1,17.75),r.lineTo(1,.25),r.quadraticCurveTo(1,0,.75,0),r.lineTo(.25,0),r.quadraticCurveTo(0,0,0,.25);var o=new a.Path;o.moveTo(.5,.6),o.arc(0,.7,.15,0,Math.PI,!1),o.arc(.15,-.09,.15,Math.PI,0,!1),r.holes.push(o);var i=new a.Path;i.moveTo(.5,4.6),i.arc(0,.7,.15,0,Math.PI,!1),i.arc(.15,-.09,.15,Math.PI,0,!1),r.holes.push(i);var s=new a.Path;s.moveTo(.5,8.6),s.arc(0,.7,.15,0,Math.PI,!1),s.arc(.15,-.09,.15,Math.PI,0,!1),r.holes.push(s);var u=new a.Path;u.moveTo(.5,12.6),u.arc(0,.7,.15,0,Math.PI,!1),u.arc(.15,-.09,.15,Math.PI,0,!1),r.holes.push(u);var d=new a.Path;d.moveTo(.5,16.6),d.arc(0,.7,.15,0,Math.PI,!1),d.arc(.15,-.09,.15,Math.PI,0,!1),r.holes.push(d);for(var c={steps:1,depth:.2,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1},p=0;p<25;p+=.7){var h=new a.ExtrudeGeometry(r,c),f=new a.Mesh(h,n);f.position.set(0,p,.86),f.rotation.z+=Math.PI/2,f.rotation.x+=-Math.PI/2,e.add(f)}for(var m=-1.25;m>-19;m+=-4){var y=new a.CylinderGeometry(.105,.105,26,32),v=new a.Mesh(y,t);v.position.set(m,12.5,.35),e.add(v)}var g=new a.Shape;g.moveTo(0,.25),g.lineTo(0,17.75),g.quadraticCurveTo(0,18,.25,18),g.lineTo(.75,18),g.quadraticCurveTo(1,18,1,17.75),g.lineTo(1,.25),g.quadraticCurveTo(1,0,.75,0),g.lineTo(.25,0),g.quadraticCurveTo(0,0,0,.25);for(var x={steps:1,depth:.4,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1},w=-.5;w<27;w+=26){var M=new a.ExtrudeGeometry(g,x),q=new a.Mesh(M,n);q.position.set(0,w,1),q.rotation.z+=Math.PI/2,q.rotation.x+=-Math.PI/2,e.add(q)}var _=(new a.Box3).setFromObject(e),b=Math.abs(_.max.x-_.min.x),E=Math.abs(_.max.y-_.min.y),O=Math.abs(_.max.z-_.min.z);return e.position.x+=40,e.position.y+=-45,e.scale.set(5.2/O,5.45*18/E,2.5*l/b),e}}}},339:function(e,t,n){e.exports=n.p+"catalog/holes/sliding-door/slidingDoor.png"},34:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactPlannerUtils=t.ElementsFactories=t.ReactPlannerClasses=t.ReactPlannerReducers=t.ReactPlannerActions=t.ReactPlannerComponents=t.ReactPlannerSharedStyle=t.ReactPlannerConstants=t.Plugins=t.ReactPlanner=t.reducer=t.Models=t.Translator=t.Catalog=void 0;var r=g(n(171)),a=g(n(50)),o=v(n(31)),i=g(n(1449)),l=g(n(1408)),s=g(n(383)),u=v(n(4)),d=v(n(5)),c=g(n(118)),p=g(n(70)),h=g(n(121)),f=g(n(11)),m=g(n(379)),y=g(n(10));function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}t.Catalog=r.default,t.Translator=a.default,t.Models=o,t.reducer=i.default,t.ReactPlanner=l.default,t.Plugins=s.default,t.ReactPlannerConstants=u,t.ReactPlannerSharedStyle=d,t.ReactPlannerComponents=c.default,t.ReactPlannerActions=p.default,t.ReactPlannerReducers=h.default,t.ReactPlannerClasses=f.default,t.ElementsFactories=m.default,t.ReactPlannerUtils=y.default},340:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));var o=new a.MeshLambertMaterial({color:4144959}),i=new a.MeshLambertMaterial({color:16777215,transparent:!0,opacity:.5}),l=new a.MeshLambertMaterial({color:0});t.default={name:"sliding door",prototype:"holes",info:{tag:["door"],title:"sliding door",description:"iron door",image:n(339)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:200,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"horizontal flip",type:"checkbox",defaultValue:"none",values:{none:"none",yes:"yes"}},flip_vertical:{label:"vertical flip",type:"checkbox",defaultValue:"right",values:{right:"right",left:"left"}}},render2D:function(e,t,n){var a={stroke:"#0096fd",strokeWidth:"14px",fill:"#0096fd",cursor:"move"},o=e.properties.get("flip_horizontal"),i=e.properties.get("flip_vertical"),l=e.properties.get("width").get("length"),s=e.selected?a:{stroke:"#000",strokeWidth:"14px",fill:"#000"},u=e.selected?a:{stroke:"#000",strokeWidth:"16px",fill:"#000"},d=(e.properties.get("width").get("length"),void 0),c=void 0,p=void 0,h=void 0;return o=o?"yes":"none",i=i?"right":"left","yes"===o?(d=1,"right"===i?(p=0,h=l/2,c=-1):(p=l/2,h=l,c=-1)):(d=1,"right"===i?(p=l/2,h=l,c=1):(p=0,h=l/2,c=1)),r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("line",{key:"1",x1:"0",y1:-3,x2:l,y2:-3,style:s,transform:"scale("+d+","+c+")"}),r.default.createElement("line",{key:"2",x1:p,y1:2,x2:h,y2:2,style:u,transform:"scale("+d+","+c+")"}),r.default.createElement("line",{key:"3",x1:l,y1:-3,x2:l,y2:18,style:u,transform:"scale("+d+","+c+")"}),r.default.createElement("line",{key:"4",x1:"0",y1:-3,x2:"0",y2:18,style:u,transform:"scale("+d+","+c+")"}))},render3D:function(e,t,n){var r=e.properties.get("flip_horizontal"),s=e.properties.get("flip_vertical"),u=e.properties.get("width").get("length"),d=e.properties.get("height").get("length"),c=e.properties.get("thickness").get("length"),p=e.properties.get("altitude").get("length");r=r?"yes":"none",s=s?"right":"left";var h=new a.Object3D;h.add(function(e){var t=new a.Mesh,n=new a.Shape;n.moveTo(1,2),n.lineTo(0,2),n.lineTo(0,0),n.lineTo(1,0);var r=new a.Path;r.moveTo(.65,1.75),r.lineTo(.35,1.75),r.lineTo(.35,1.25),r.lineTo(.65,1.25),n.holes.push(r);var s=new a.ExtrudeGeometry(n,{steps:2,depth:.05,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),u=new a.Mesh(s,o);"right"===e?u.position.set(-1,0,0):u.position.set(0,0,0),t.add(u);var d=new a.BoxGeometry(1,2,.05),c=new a.Mesh(d,o);"right"===e?c.position.set(1.5,1,.065):c.position.set(-.5,1,.065),u.add(c);var p=new a.BoxGeometry(2,.1,.1),h=new a.Mesh(p,o);h.position.set(-0,2.07,.05),t.add(h);var f=new a.BoxGeometry(.3,.5,.05),m=new a.Mesh(f,i);m.position.set(.5,1.5,.025),u.add(m);var y=new a.CylinderGeometry(.051,.051,.0625,80,80,!0);l.side=a.DoubleSide;var v=new a.Mesh(y,l);v.position.set(.2,1,.025),v.rotation.x=Math.PI/2,u.add(v);var g=new a.BoxGeometry(.1,.02,.0625),x=new a.Mesh(g,l);return x.position.set(.2,1,.025),u.add(x),"left"===e&&(v.position.x=.8,x.position.x=.8),t}(s).clone());var f=(new a.Box3).setFromObject(h),m=Math.abs(f.max.x-f.min.x),y=Math.abs(f.max.y-f.min.y),v=Math.abs(f.max.z-f.min.z);if(e.selected){var g=new a.BoxHelper(h,10077179);g.material.linewidth=5,g.renderOrder=1e3,g.material.depthTest=!1,h.add(g)}return"yes"===r&&(h.rotation.y+=Math.PI),h.position.y+=p,h.scale.set(u/m,d/y,c/v),Promise.resolve(h)}}},341:function(e,t,n){e.exports=n.p+"catalog/holes/sash-window/texture.png"},342:function(e,t,n){e.exports=n.p+"catalog/holes/sash-window/sash-window.obj"},343:function(e,t,n){e.exports=n.p+"catalog/holes/sash-window/sash-window.mtl"},344:function(e,t,n){e.exports=n.p+"catalog/holes/sash-window/window.png"},345:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),o=n(27),i=l(n(26));function l(e){return e&&e.__esModule?e:{default:e}}var s=null;t.default={name:"sash window",prototype:"holes",info:{title:"sash window",tag:["window"],description:"Sash window",image:n(344)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:90}},height:{label:"Height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:90}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:10}}},render2D:function(e,t,n){var a=e.properties.get("width").get("length"),o="M0 -3 L"+a+" "+-3+" L"+a+" 3 L0 3 z",i=e.selected?{stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},l=e.properties.get("width").get("length");return r.default.createElement("g",{transform:"translate("+-l/2+", 0)"},r.default.createElement("path",{key:"1",d:o,style:i}),r.default.createElement("line",{key:"2",x1:a/2,y1:-13,x2:a/2,y2:13,style:i}))},render3D:function(e,t,r){var l=function(t){var n=(new a.Box3).setFromObject(t),r=n.max.x-n.min.x,o=n.max.y-n.min.y,i=n.max.z-n.min.z;if(e.selected){var l=new a.BoxHelper(t,10077179);l.material.linewidth=2,l.material.depthTest=!1,l.renderOrder=1e3,t.add(l)}var s=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length");return t.scale.set(s/r,u/o,d/i),t};if(s)return Promise.resolve(l(s.clone()));var u=n(343),d=n(342),c=n(341);return(0,o.loadObjWithMaterial)(u,d,i.default.dirname(c)+"/").then(function(e){return l((s=e).clone())})}}},346:function(e,t,n){e.exports=n.p+"catalog/holes/panic-door/panicDoor.png"},347:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));var o=new a.MeshLambertMaterial({color:0}),i=new a.MeshLambertMaterial({color:3442561}),l=new a.MeshLambertMaterial({color:16711680}),s=new a.MeshLambertMaterial({color:4441819,opacity:.7,transparent:!0}),u=new a.MeshLambertMaterial({color:12046060}),d=(new a.MeshLambertMaterial({color:3223857}),new a.MeshLambertMaterial({color:2171169}),new a.MeshLambertMaterial({color:5664126})),c=void 0,p=void 0;function h(e){var t=new a.Mesh,n=function(){var e=new a.Object3D,t=new a.BoxGeometry(.6,1.2,.01),n=new a.BoxGeometry(.2,.7,.01),r=new a.BoxGeometry(.2,.2,.01),o=new a.CylinderGeometry(.005,.005,1.9,Math.round(32)),l=new a.BoxGeometry(.03,1.9,.01),u=new a.BoxGeometry(.2,.7,.06),d=new a.BoxGeometry(.19,.7,.06),c=new a.BoxGeometry(.2,.2,.06),p=new a.BoxGeometry(.2,.5,.05),h=new a.BoxGeometry(.59,1.2,.06),f=new a.BoxGeometry(.01,.52,.064),m=new a.BoxGeometry(.224,.01,.064),y=new a.Mesh(t,i),v=new a.Mesh(d,i),g=new a.Mesh(u,i),x=new a.Mesh(h,i),w=new a.Mesh(n,i),M=new a.Mesh(n,i),q=new a.Mesh(r,i),_=new a.Mesh(c,i),b=new a.Mesh(o,i),E=new a.Mesh(l,i),O=new a.Mesh(p,s),I=new a.Mesh(f,i),P=new a.Mesh(f,i),T=new a.Mesh(m,i),G=new a.Mesh(m,i);return y.position.set(-(.6-.59)/2,0,-.025),w.position.set(-.2,.95,0),M.position.set(.2,.95,0),q.position.set(0,.35,-.025),_.position.set(0,.35,0),O.position.set(-.005,.85,0),g.position.z=.025,v.position.set(.005,0,.025),b.position.set(-.3,.35,0),I.position.x=.1+.007,P.position.x=-.1-.007,T.position.y=.257,G.position.y=-.257,E.position.set(.01,0,-.005),b.add(E),O.add(q),O.add(I),O.add(P),O.add(T),O.add(G),O.add(q),O.add(_),x.add(O),w.add(v),M.add(g),y.add(b),y.add(w),y.add(M),x.add(y),e.add(x),e.scale.x=1.3,e}(),r=function(e){var t=new a.Object3D,n=function(e){var t=new a.Object3D,n=new a.BoxGeometry(.038,.14,.01),r=new a.CylinderGeometry(.023,.023,.01,Math.round(32)),i=function(){var e=new a.Object3D,t=new a.CylinderGeometry(.005,.005,.02,Math.round(32)),n=new a.BoxGeometry(.008,.02,.02),r=new a.BoxGeometry(.007,.0203,.0018),o=new a.Mesh(t,u),i=new a.Mesh(n,u),l=new a.Mesh(r,d);return i.position.z=.01,o.add(i),o.add(l),e.add(o),e}(),l=new a.Mesh(n,o),s=new a.Mesh(r,o);i.rotation.x=Math.PI/2,s.rotation.x=Math.PI/2,i.position.y=-.03,s.position.y=-.033,e||(l.position.x=.4);return s.scale.z=1.5,l.add(i),l.add(s),t.add(l),t}(e),r=function(){var e=new a.Object3D,t=new a.CylinderGeometry(.01,.01,.03,Math.round(32)),n=new a.SphereGeometry(.01,Math.round(32),Math.round(32)),r=new a.CylinderGeometry(.01,.01,.07,Math.round(32)),i=new a.Mesh(t,o),l=new a.Mesh(n,o),s=new a.Mesh(r,o),u=new a.Mesh(n,o);return s.rotation.z=Math.PI/2,s.position.x=.035,l.position.y=-.015,u.position.y=-.035,s.add(u),l.add(s),i.add(l),e.add(i),e}();r.rotation.x=Math.PI/2,e?r.position.set(0,.04,-.02):(r.position.set(.4,.04,-.02),r.rotation.y=Math.PI);return t.add(n),t.add(r),t.scale.set(1.1,1.1,1.1),t}(e),l=m(),c=m(),p=f(),h=f(),y=function(){var e=new a.Object3D,t=new a.BoxGeometry(.01,.1,.02),n=new a.BoxGeometry(.01,.02,.01),r=new a.BoxGeometry(.006,.04,.008),o=new a.Mesh(t,u),i=new a.Mesh(n,d),l=new a.Mesh(r,d);return i.position.set(-.004,.03,0),l.position.y=-.05,i.add(l),o.add(i),e.add(o),e}(),v=function(){var e=new a.Object3D,t=new a.CylinderGeometry(.012,.012,1.905,Math.round(32)),n=new a.CylinderGeometry(.007,.007,1.907,Math.round(32)),r=new a.Mesh(t,u),o=new a.Mesh(n,d);return e.position.set(-.275,.35,0),e.scale.x=1/1.3,r.add(o),e.add(r),e}();return y.position.set(-.05,-.02,.03),r.position.set(-.235,.425,-.03),e?l.position.set(.2975,0,-.03):l.position.set(-.2975,0,-.03),c.position.set(.3,0,.0385),p.position.set(0,.4,.03),h.position.set(0,.4,-.031),r.add(y),n.add(r),n.add(p),n.add(l),t.add(n),n.add(v),t}function f(){var e=new a.Object3D,t=new a.BoxGeometry(.5,.1,.005),n=new a.CylinderGeometry(.04,.04,.48,Math.round(32)),r=new a.CylinderGeometry(.042,.042,.01,Math.round(32)),i=new a.Mesh(t,o),s=new a.Mesh(n,l),u=new a.Mesh(r,o),d=new a.Mesh(r,o);return i.position.z=.0025,s.rotation.z=Math.PI/2,u.position.y=.245,d.position.y=-.245,s.add(u),s.add(d),i.add(s),e.add(i),e}function m(){var e=new a.Object3D,t=new a.CylinderGeometry(.009,.009,.04,Math.round(32)),n=new a.CylinderGeometry(.01,.01,.04,Math.round(32)),r=new a.Mesh(t,i),o=new a.Mesh(n,i),l=new a.Mesh(t,i),s=new a.Mesh(n,i);return r.position.y=-.4,o.position.y=.04,l.position.y=1,s.position.y=.04,l.add(s),r.add(o),e.add(l),e.add(r),e}t.default={name:"panic door",prototype:"holes",info:{tag:["door"],title:"panic door",description:"iron door",image:n(346)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:100,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"horizontal flip",type:"checkbox",defaultValue:"none",values:{none:"none",yes:"yes"}},flip_vertical:{label:"vertical flip",type:"checkbox",defaultValue:"right",values:{right:"right",left:"left"}}},render2D:function(e,t,n){var a=e.properties.get("flip_horizontal"),o=e.properties.get("flip_vertical"),i=e.properties.get("width").get("length"),l="M0 -3 L"+i+" "+-3+" L"+i+" 3 L0 3 z",s="M0,0 A"+i+","+i+" 0 0,1 "+i+","+i,u=e.selected?{stroke:"#ff0000",strokeWidth:"4px",fill:"#ff0000",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",fill:"#ff0000"},d=e.selected?{stroke:"#ff0000",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"},h=(e.properties.get("width").get("length"),void 0),f=void 0,m=void 0,y=void 0,v=void 0,g=void 0,x=void 0,w=void 0,M=void 0;return c=a?"yes":"none",p=o?"right":"left","yes"===c?(h=1,"right"===p?(y=i,v=-i,g=-i,w=0,x=-i,M=i,m=180,f=-1):(y=0,v=-i,g=0,w=0,x=0,M=-i,f=1,m=0)):"none"===c&&(h=-1,"left"===p?(y=i,v=0,g=0,w=0,x=0,M=-i,m=-90,f=-1):(y=0,v=0,g=i,w=0,x=i,M=i,m=90,f=1)),r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("path",{key:"1",d:s,style:d,transform:"translate("+y+","+v+") scale("+h+","+f+") rotate("+m+")"}),r.default.createElement("line",{key:"2",x1:g,y1:w-3,x2:x,y2:M-3,style:u,transform:"scale("+-h+","+f+")"}),r.default.createElement("path",{key:"5",d:l,style:u}))},render3D:function(e,t,n){var r=e.properties.get("flip_horizontal"),o=e.properties.get("flip_vertical"),i=e.properties.get("width").get("length"),l=e.properties.get("height").get("length"),s=e.properties.get("thickness").get("length"),u=e.properties.get("altitude").get("length"),d=new a.Object3D;if(d.add(h(o).clone()),e.selected){var c=new a.BoxHelper(d,10077179);c.material.linewidth=5,c.renderOrder=1e3,c.material.depthTest=!1,d.add(c)}var p=(new a.Box3).setFromObject(d),f=Math.abs(p.max.x-p.min.x),m=Math.abs(p.max.y-p.min.y),y=Math.abs(p.max.z-p.min.z);return r&&(d.rotation.y+=Math.PI),d.position.y+=u,d.scale.set(i/f,l/m,s/y),Promise.resolve(d)}}},348:function(e,t,n){e.exports=n.p+"catalog/holes/panic-door-double/panicDoorDouble.png"},349:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));var o=new a.MeshLambertMaterial({color:0}),i=new a.MeshLambertMaterial({color:3442561}),l=new a.MeshLambertMaterial({color:16711680}),s=new a.MeshLambertMaterial({color:4441819,opacity:.7,transparent:!0}),u=new a.MeshLambertMaterial({color:12046060}),d=(new a.MeshLambertMaterial({color:3223857}),new a.MeshLambertMaterial({color:2171169}),new a.MeshLambertMaterial({color:5664126}));function c(){var e=new a.Mesh,t=m(),n=m(),r=function(){var e=new a.Object3D,t=function(){var e=new a.Object3D,t=new a.BoxGeometry(.038,.14,.01),n=new a.CylinderGeometry(.023,.023,.01,Math.round(32)),r=function(){var e=new a.Object3D,t=new a.CylinderGeometry(.005,.005,.02,Math.round(32)),n=new a.BoxGeometry(.008,.02,.02),r=new a.BoxGeometry(.007,.0203,.0018),o=new a.Mesh(t,u),i=new a.Mesh(n,u),l=new a.Mesh(r,d);return i.position.z=.01,o.add(i),o.add(l),e.add(o),e}(),i=new a.Mesh(t,o),l=new a.Mesh(n,o);return r.rotation.x=Math.PI/2,r.position.y=-.03,l.rotation.x=Math.PI/2,l.position.y=-.033,l.scale.z=1.5,i.add(r),i.add(l),e.add(i),e}(),n=function(){var e=new a.Object3D,t=new a.CylinderGeometry(.01,.01,.03,Math.round(32)),n=new a.SphereGeometry(.01,Math.round(32),Math.round(32)),r=new a.CylinderGeometry(.01,.01,.07,Math.round(32)),i=new a.Mesh(t,o),l=new a.Mesh(n,o),s=new a.Mesh(r,o),u=new a.Mesh(n,o);return s.rotation.z=Math.PI/2,s.position.x=.035,l.position.y=-.015,u.position.y=-.035,s.add(u),l.add(s),i.add(l),e.add(i),e}();return n.rotation.x=Math.PI/2,n.position.set(0,.04,-.02),e.add(t),e.add(n),e.scale.set(1.1,1.1,1.1),e}(),i=f(),l=f(),s=h(),c=h(),y=function(){var e=new a.Object3D,t=new a.BoxGeometry(.01,.1,.02),n=new a.BoxGeometry(.01,.02,.01),r=new a.BoxGeometry(.006,.04,.008),o=new a.Mesh(t,u),i=new a.Mesh(n,d),l=new a.Mesh(r,d);return i.position.set(-.004,.03,0),l.position.y=-.05,i.add(l),o.add(i),e.add(o),e}(),v=p(),g=p();return y.position.set(-.05,-.02,.03),r.position.set(-.235,.425,-.03),i.position.set(.2975,0,-.03),l.position.set(.3,0,.0385),n.rotation.y=Math.PI,n.position.set(-.259,0,.0043),t.position.set(.259,0,-.0043),s.position.set(0,.4,.03),c.position.set(0,.4,-.031),r.add(y),t.add(r),t.add(s),n.add(c),t.add(i),e.add(t),n.add(l),t.add(v),n.add(g),e.add(n),e}function p(){var e=new a.Object3D,t=new a.CylinderGeometry(.012,.012,1.905,Math.round(32)),n=new a.CylinderGeometry(.007,.007,1.907,Math.round(32)),r=new a.Mesh(t,u),o=new a.Mesh(n,d);return e.position.set(-.275,.35,0),e.scale.x=1/1.3,r.add(o),e.add(r),e}function h(){var e=new a.Object3D,t=new a.BoxGeometry(.5,.1,.005),n=new a.CylinderGeometry(.04,.04,.48,Math.round(32)),r=new a.CylinderGeometry(.042,.042,.01,Math.round(32)),i=new a.Mesh(t,o),s=new a.Mesh(n,l),u=new a.Mesh(r,o),d=new a.Mesh(r,o);return i.position.z=.0025,s.rotation.z=Math.PI/2,u.position.y=.245,d.position.y=-.245,s.add(u),s.add(d),i.add(s),e.add(i),e}function f(){var e=new a.Object3D,t=new a.CylinderGeometry(.009,.009,.04,Math.round(32)),n=new a.CylinderGeometry(.01,.01,.04,Math.round(32)),r=new a.Mesh(t,i),o=new a.Mesh(n,i),l=new a.Mesh(t,i),s=new a.Mesh(n,i);return r.position.y=-.4,o.position.y=.04,l.position.y=1,s.position.y=.04,l.add(s),r.add(o),e.add(l),e.add(r),e}function m(){var e=new a.Object3D,t=new a.BoxGeometry(.6,1.2,.01),n=new a.BoxGeometry(.2,.7,.01),r=new a.BoxGeometry(.2,.2,.01),o=new a.CylinderGeometry(.005,.005,1.9,Math.round(32)),l=new a.BoxGeometry(.03,1.9,.01),u=new a.BoxGeometry(.2,.7,.06),d=new a.BoxGeometry(.19,.7,.06),c=new a.BoxGeometry(.2,.2,.06),p=new a.BoxGeometry(.2,.5,.05),h=new a.BoxGeometry(.59,1.2,.06),f=new a.BoxGeometry(.01,.52,.064),m=new a.BoxGeometry(.224,.01,.064),y=new a.Mesh(t,i),v=new a.Mesh(d,i),g=new a.Mesh(u,i),x=new a.Mesh(h,i),w=new a.Mesh(n,i),M=new a.Mesh(n,i),q=new a.Mesh(r,i),_=new a.Mesh(c,i),b=new a.Mesh(o,i),E=new a.Mesh(l,i),O=new a.Mesh(p,s),I=new a.Mesh(f,i),P=new a.Mesh(f,i),T=new a.Mesh(m,i),G=new a.Mesh(m,i);return y.position.set(-(.6-.59)/2,0,-.025),w.position.set(-.2,.95,0),M.position.set(.2,.95,0),q.position.set(0,.35,-.025),_.position.set(0,.35,0),O.position.set(-.005,.85,0),g.position.z=.025,v.position.set(.005,0,.025),b.position.set(-.3,.35,0),I.position.x=.1+.007,P.position.x=-.1-.007,T.position.y=.257,G.position.y=-.257,E.position.set(.01,0,-.005),b.add(E),O.add(q),O.add(I),O.add(P),O.add(T),O.add(G),O.add(q),O.add(_),x.add(O),w.add(v),M.add(g),y.add(b),y.add(w),y.add(M),x.add(y),e.add(x),e.scale.x=.9,e}t.default={name:"double panic door",prototype:"holes",info:{tag:["door"],title:"double panic door",description:"iron door",image:n(348)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:200,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"flip",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){var a=e.properties.get("flip_horizontal"),o=e.properties.get("width").get("length"),i="M0 -3 L"+o+" "+-3+" L"+o+" 3 L0 3 z",l="M0,0 A"+o/2+","+o/2+" 0 0,1 "+o/2+","+o/2,s="M0,0 A"+o/2+","+o/2+" 0 0,0 "+o/2+","+o/2,u=e.selected?{stroke:"#ff0000",strokeWidth:"4px",fill:"#ff0000",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",fill:"#ff0000"},d=e.selected?{stroke:"#ff0000",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"};e.properties.get("width").get("length");return a?r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("path",{key:"1",d:l,style:d,transform:"translate(0,"+-o/2+")"}),r.default.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:-o/2-3,style:u}),r.default.createElement("path",{key:"3",d:s,style:d,transform:"translate("+o+","+-o/2+") rotate(90)"}),r.default.createElement("line",{key:"4",x1:o,y1:-3,x2:o,y2:-o/2-3,style:u}),r.default.createElement("path",{key:"5",d:i,style:u})):r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("path",{key:"1",d:l,style:d,transform:"translate("+o+","+o/2+") rotate(180)"}),r.default.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:o/2-3,style:u}),r.default.createElement("path",{key:"3",d:s,style:d,transform:"translate(0,"+o/2+") rotate(270)"}),r.default.createElement("line",{key:"4",x1:o,y1:-3,x2:o,y2:o/2-3,style:u}),r.default.createElement("path",{key:"5",d:i,style:u}))},render3D:function(e,t,n){var r=e.properties.get("flip_horizontal"),o=e.properties.get("width").get("length"),i=e.properties.get("height").get("length"),l=e.properties.get("thickness").get("length"),s=e.properties.get("altitude").get("length"),u=new a.Object3D;u.add(c().clone());var d=(new a.Box3).setFromObject(u),p=Math.abs(d.max.x-d.min.x),h=Math.abs(d.max.y-d.min.y),f=Math.abs(d.max.z-d.min.z);if(e.selected){var m=new a.BoxHelper(u,10077179);m.material.linewidth=5,m.renderOrder=1e3,m.material.depthTest=!1,u.add(m)}return r&&(u.rotation.y+=Math.PI),u.position.y+=s,u.scale.set(o/p,i/h,l/f),Promise.resolve(u)}}},350:function(e,t,n){e.exports=n.p+"catalog/holes/gate/gate.jpg"},351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));o(n(26));function o(e){return e&&e.__esModule?e:{default:e}}t.default={name:"gate",prototype:"holes",info:{tag:["gate"],title:"gate",description:"hole in the wall",image:n(350)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:80}},height:{label:"height",type:"length-measure",defaultValue:{length:215}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30}}},render2D:function(e,t,n){var a=e.properties.get("width").get("length"),o="M0,0 A0,0 0 0,1 "+a+",0",i=e.selected?{stroke:"#0096fd",strokeWidth:"4px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},l=e.selected?{stroke:"#0096fd",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"},s=e.properties.get("width").get("length");return r.default.createElement("g",{transform:"translate("+-s/2+", 0)"},r.default.createElement("line",{key:"1",x1:0,y1:a/6-3,x2:0,y2:-a/6+3,style:i,transform:"scale(-1,1)"}),r.default.createElement("line",{key:"2",x1:-a,y1:a/6-3,x2:-a,y2:-a/6+3,style:i,transform:"scale(-1,1)"}),r.default.createElement("path",{key:"3",d:o,style:l}))},render3D:function(e,t,n){var r=new a.Object3D;return Promise.resolve(r)}}},352:function(e,t,n){e.exports=n.p+"catalog/holes/door/texture.jpg"},353:function(e,t,n){e.exports=n.p+"catalog/holes/door/door.obj"},354:function(e,t,n){e.exports=n.p+"catalog/holes/door/door.mtl"},355:function(e,t,n){e.exports=n.p+"catalog/holes/door/door.png"},357:function(e,t,n){"use strict";var r,a=window.THREE||n(3);r=function(){var e=/^[og]\s*(.+)?/,t=/^mtllib /,n=/^usemtl /;function r(e){this.manager=void 0!==e?e:a.DefaultLoadingManager,this.materials=null}return r.prototype={constructor:r,load:function(e,t,n,r){var o=this,i=new a.FileLoader(o.manager);i.setPath(this.path),i.load(e,function(e){t(o.parse(e))},n,r)},setPath:function(e){this.path=e},setMaterials:function(e){return this.materials=e,this},parse:function(r){console.time("OBJLoader");var o=new function(){var e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);var n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(e,t){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var r={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){var t={index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(r),r},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"==typeof n.clone){var r=n.clone(0);r.inherited=!0,this.object.materials.push(r)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){var n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){var r=this.vertices,a=this.object.geometry.vertices;a.push(r[e+0],r[e+1],r[e+2]),a.push(r[t+0],r[t+1],r[t+2]),a.push(r[n+0],r[n+1],r[n+2])},addVertexPoint:function(e){var t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){var t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){var r=this.normals,a=this.object.geometry.normals;a.push(r[e+0],r[e+1],r[e+2]),a.push(r[t+0],r[t+1],r[t+2]),a.push(r[n+0],r[n+1],r[n+2])},addColor:function(e,t,n){var r=this.colors,a=this.object.geometry.colors;a.push(r[e+0],r[e+1],r[e+2]),a.push(r[t+0],r[t+1],r[t+2]),a.push(r[n+0],r[n+1],r[n+2])},addUV:function(e,t,n){var r=this.uvs,a=this.object.geometry.uvs;a.push(r[e+0],r[e+1]),a.push(r[t+0],r[t+1]),a.push(r[n+0],r[n+1])},addUVLine:function(e){var t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,n,r,a,o,i,l,s){var u=this.vertices.length,d=this.parseVertexIndex(e,u),c=this.parseVertexIndex(t,u),p=this.parseVertexIndex(n,u);if(this.addVertex(d,c,p),void 0!==r&&""!==r){var h=this.uvs.length;d=this.parseUVIndex(r,h),c=this.parseUVIndex(a,h),p=this.parseUVIndex(o,h),this.addUV(d,c,p)}if(void 0!==i&&""!==i){var f=this.normals.length;d=this.parseNormalIndex(i,f),c=i===l?d:this.parseNormalIndex(l,f),p=i===s?d:this.parseNormalIndex(s,f),this.addNormal(d,c,p)}this.colors.length>0&&this.addColor(d,c,p)},addPointGeometry:function(e){this.object.geometry.type="Points";for(var t=this.vertices.length,n=0,r=e.length;n0){var x=g.split("/");m.push(x)}}var w=m[0];for(y=1,v=m.length-1;y1){var S=u[1].trim().toLowerCase();o.object.smooth="0"!==S&&"off"!==S}else o.object.smooth=!0;(H=o.object.currentMaterial())&&(H.smooth=o.object.smooth)}o.finalize();var D=new a.Group;D.materialLibraries=[].concat(o.materialLibraries);for(c=0,p=o.objects.length;c0?N.addAttribute("normal",new a.Float32BufferAttribute(A.normals,3)):N.computeVertexNormals(),A.colors.length>0&&(j=!0,N.addAttribute("color",new a.Float32BufferAttribute(A.colors,3))),A.uvs.length>0&&N.addAttribute("uv",new a.Float32BufferAttribute(A.uvs,2));for(var z,B=[],U=0,V=L.length;U1){for(U=0,V=L.length;U=0?l.substring(0,s):l;u=u.toLowerCase();var d=s>=0?l.substring(s+1):"";if(d=d.trim(),"newmtl"===u)n={name:d},o[d]=n;else if(n)if("ka"===u||"kd"===u||"ks"===u){var c=d.split(a,3);n[u]=[parseFloat(c[0]),parseFloat(c[1]),parseFloat(c[2])]}else n[u]=d}}var p=new r.MaterialCreator(this.texturePath||this.path,this.materialOptions);return p.setCrossOrigin(this.crossOrigin),p.setManager(this.manager),p.setMaterials(o),p}}),(r.MaterialCreator=function(e,t){this.baseUrl=e||"",this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:a.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:a.RepeatWrapping}).prototype={constructor:r.MaterialCreator,setCrossOrigin:function(e){this.crossOrigin=e},setManager:function(e){this.manager=e},setMaterials:function(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(e){if(!this.options)return e;var t={};for(var n in e){var r=e[n],a={};for(var o in t[n]=a,r){var i=!0,l=r[o],s=o.toLowerCase();switch(s){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(l=[l[0]/255,l[1]/255,l[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===l[0]&&0===l[1]&&0===l[2]&&(i=!1)}i&&(a[s]=l)}}return t},preload:function(){for(var e in this.materialsInfo)this.create(e)},getIndex:function(e){return this.nameLookup[e]},getAsArray:function(){var e=0;for(var t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray},create:function(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]},createMaterial_:function(e){var t=this.materialsInfo[e],n={name:e,side:this.side},r=function(e,t){return"string"!=typeof t||""===t?"":/^https?:\/\//i.test(t)?t:e+t};for(var o in t){var i=t[o];if(""!==i)switch(o.toLowerCase()){case"kd":n.color=(new a.Color).fromArray(i);break;case"ks":n.specular=(new a.Color).fromArray(i);break;case"map_kd":if(n.map)break;var l=this.getTextureParams(i,n);n.map=this.loadTexture(r(this.baseUrl,l.url)),n.map.repeat.copy(l.scale),n.map.offset.copy(l.offset),n.map.wrapS=this.wrap,n.map.wrapT=this.wrap;break;case"map_ks":if(n.specularMap)break;n.specularMap=this.loadTexture(r(this.baseUrl,i)),n.specularMap.wrapS=this.wrap,n.specularMap.wrapT=this.wrap;break;case"ns":n.shininess=parseFloat(i);break;case"d":i<1&&(n.opacity=i,n.transparent=!0);break;case"Tr":i>0&&(n.opacity=1-i,n.transparent=!0);break;case"map_bump":case"bump":if(n.bumpMap)break;l=this.getTextureParams(i,n);n.bumpMap=this.loadTexture(r(this.baseUrl,l.url)),n.bumpMap.repeat.copy(l.scale),n.bumpMap.offset.copy(l.offset),n.bumpMap.wrapS=this.wrap,n.bumpMap.wrapT=this.wrap}}return this.materials[e]=new a.MeshPhongMaterial(n),this.materials[e]},getTextureParams:function(e,t){var n,r={scale:new a.Vector2(1,1),offset:new a.Vector2(0,0)},o=e.split(/\s+/);return(n=o.indexOf("-bm"))>=0&&(t.bumpScale=parseFloat(o[n+1]),o.splice(n,2)),(n=o.indexOf("-s"))>=0&&(r.scale.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),(n=o.indexOf("-o"))>=0&&(r.offset.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),r.url=o.join(" ").trim(),r},loadTexture:function(e,t,n,r,o){var i,l=a.Loader.Handlers.get(e),s=void 0!==this.manager?this.manager:a.DefaultLoadingManager;return null===l&&(l=new a.TextureLoader(s)),l.setCrossOrigin&&l.setCrossOrigin(this.crossOrigin),i=l.load(e,n,r,o),void 0!==t&&(i.mapping=t),i}},e.exports=r},359:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),o=n(27),i=l(n(26));function l(e){return e&&e.__esModule?e:{default:e}}var s=null,u={stroke:"#000",strokeWidth:"3px",fill:"#000"},d={stroke:"#0096fd",strokeWidth:"4px",fill:"#0096fd",cursor:"move"},c={stroke:"#000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"},p={stroke:"#0096fd",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"};t.default={name:"door",prototype:"holes",info:{title:"door",tag:["door"],description:"Wooden door",image:n(355)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:80}},height:{label:"Height",type:"length-measure",defaultValue:{length:215}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:0}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:30}},flip_orizzontal:{label:"flip orizzontale",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){var a=e.properties.get("flip_orizzontal"),o=e.properties.get("width").get("length"),i="M0 -3 L"+o+" "+-3+" L"+o+" 3 L0 3 z",l="M0,0 A"+o+","+o+" 0 0,1 "+o+","+o,s=e.selected?d:u,h=e.selected?p:c,f=e.properties.get("width").get("length");return 0==a?r.default.createElement("g",{transform:"translate("+-f/2+", 0)"},r.default.createElement("path",{d:l,style:h,transform:"translate(0,"+o+") scale(1,"+-1+") rotate(0)"}),r.default.createElement("line",{x1:0,y1:o-3,x2:0,y2:-3,style:s,transform:"scale(-1,1)"}),r.default.createElement("path",{d:i,style:s})):r.default.createElement("g",{transform:"translate("+-f/2+", 0)"},r.default.createElement("path",{d:l,style:h,transform:"translate(0,"+-o+") scale(1,1) rotate(0)"}),r.default.createElement("line",{x1:0,y1:-o-3,x2:0,y2:-3,style:s,transform:"scale(-1,1)"}),r.default.createElement("path",{d:i,style:s}))},render3D:function(e,t,r){var l=function(t){var n=(new a.Box3).setFromObject(t),r=n.max.x-n.min.x,o=n.max.y-n.min.y,i=n.max.z-n.min.z;if(e.selected){var l=new a.BoxHelper(t,10077179);l.material.linewidth=2,l.material.depthTest=!1,l.renderOrder=1e3,t.add(l)}var s=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length");return t.scale.set(s/r,u/o,d/i),t};if(s)return Promise.resolve(l(s.clone()));var u=n(354),d=n(353),c=n(352);return(0,o.loadObjWithMaterial)(u,d,i.default.dirname(c)+"/").then(function(e){return l((s=e).clone())})}}},36:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.condition,n=e.style,a=e.children;return t?Array.isArray(a)?r.default.createElement("div",{style:n},a):a:null}i.propTypes={condition:a.default.bool.isRequired,style:a.default.object}},360:function(e,t,n){e.exports=n.p+"catalog/holes/door-double/door_double.png"},361:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));var o=new a.MeshLambertMaterial({color:0}),i=new a.MeshLambertMaterial({color:12046060}),l=new a.MeshLambertMaterial({color:13807722}),s=new a.MeshLambertMaterial({color:16773070}),u=[l,l,l,l,s,s];function d(e){var t=new a.Object3D,n=new a.CylinderGeometry(e/100,e/100,e/32.5,Math.round(32)),r=new a.SphereGeometry(e/100,Math.round(32),Math.round(32)),i=new a.CylinderGeometry(e/100,e/100,e/14.5,Math.round(32)),l=new a.Mesh(n,o),s=new a.Mesh(r,o),u=new a.Mesh(i,o),d=new a.Mesh(r,o);return u.rotation.z=Math.PI/2,u.position.x=e/14.5/2,s.position.y=-e/32.5/2,d.position.y=-e/14.5/2,u.add(d),s.add(u),l.add(s),t.add(l),t}function c(){var e=new a.Object3D,t=new a.BoxGeometry(7.6,28,2),n=new a.CylinderGeometry(3.6,3.6,2,Math.round(32)),r=function(){var e=new a.Object3D,t=new a.CylinderGeometry(1.5,1.5,4,Math.round(32)),n=new a.BoxGeometry(1.6,4,4),r=new a.BoxGeometry(1.4,4.06,.36),o=new a.Mesh(t,i),s=new a.Mesh(n,i),u=new a.Mesh(r,l);return s.position.z=1,o.add(s),o.add(u),e.add(o),e}(),s=new a.Mesh(t,o),u=new a.Mesh(n,o);return r.rotation.x=Math.PI/2,r.position.y=-3,u.rotation.x=Math.PI/2,u.position.y=-3.3,u.scale.z=1.5,s.add(r),s.add(u),e.add(s),e}t.default={name:"double door",prototype:"holes",info:{tag:["door"],title:"double door",description:"iron door",image:n(360)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:200,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"flip",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){var a=e.properties.get("flip_horizontal"),o=e.properties.get("width").get("length"),i="M0 -3 L"+o+" "+-3+" L"+o+" 3 L0 3 z",l="M0,0 A"+o/4+","+o/4+" 0 0,1 "+o/4+","+o/4,s="M0,0 A"+(o/2+o/4)+","+(o/2+o/4)+" 0 0,0 "+(o/2+o/4)+","+(o/2+o/4),u=e.selected?{stroke:"#ff0000",strokeWidth:"4px",fill:"#ff0000",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",fill:"#ff0000"},d=e.selected?{stroke:"#ff0000",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"};e.properties.get("width").get("length");return a?r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("path",{key:"1",d:l,style:d,transform:"translate(0,"+-o/4+")"}),r.default.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:-o/4-3,style:u}),r.default.createElement("path",{key:"3",d:s,style:d,transform:"translate("+o+","+(-o/2-o/4)+") rotate(90)"}),r.default.createElement("line",{key:"4",x1:o,y1:-3,x2:o,y2:-o/2-o/4-3,style:u}),r.default.createElement("path",{key:"5",d:i,style:u})):r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("path",{key:"1",d:l,style:d,transform:"translate("+o+","+o/4+") rotate(180)"}),r.default.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:o/2+o/4-3,style:u}),r.default.createElement("path",{key:"3",d:s,style:d,transform:"translate(0,"+(o/2+o/4)+") rotate(270)"}),r.default.createElement("line",{key:"4",x1:o,y1:-3,x2:o,y2:o/4-3,style:u}),r.default.createElement("path",{key:"5",d:i,style:u}))},render3D:function(e,t,n){var r=e.properties.get("flip_horizontal"),o=e.properties.get("width").get("length"),i=e.properties.get("height").get("length"),l=e.properties.get("thickness").get("length"),s=e.properties.get("altitude").get("length"),p=new a.Object3D;p.add(function(e,t,n){var r=new a.Mesh,o=new a.BoxGeometry(.75*e,t,n),i=new a.Mesh(o,u);i.position.x-=.25*e,r.add(i);var l=new a.BoxGeometry(.25*e,t,n),s=new a.Mesh(l,u);s.position.x+=.25*e,s.position.z+=n/10,r.add(s);var p=d(e);p.position.set(e/20,t/40,n/2+n/10),p.rotation.z+=Math.PI,p.rotation.x+=Math.PI/2,r.add(p);var h=c();h.position.set(e/20,0,n/2),h.rotation.x=0,r.add(h);var f=d(e);f.position.set(e/20,t/40,-n/2-n/10),f.rotation.z+=Math.PI,f.rotation.x-=Math.PI/2,r.add(f);var m=c();return m.position.set(e/20,0,-n/2),m.rotation.x=0,r.add(m),r}(o,i,l).clone(o,i,l));var h=(new a.Box3).setFromObject(p),f=Math.abs(h.max.x-h.min.x),m=Math.abs(h.max.y-h.min.y),y=Math.abs(h.max.z-h.min.z);if(e.selected){var v=new a.BoxHelper(p,10077179);v.material.linewidth=5,v.renderOrder=1e3,v.material.depthTest=!1,p.add(v)}return r&&(p.rotation.y+=Math.PI,p.position.x-=o/4),p.position.y+=s,p.position.x+=o/8,p.scale.set(o/f,i/m,l/y),Promise.resolve(p)}}},362:function(e,t,n){e.exports=n.p+"catalog/lines/wall/textures/painted-normal.jpg"},363:function(e,t,n){e.exports=n.p+"catalog/lines/wall/textures/painted.jpg"},364:function(e,t,n){e.exports=n.p+"catalog/lines/wall/textures/bricks-normal.jpg"},365:function(e,t,n){e.exports=n.p+"catalog/lines/wall/textures/bricks.jpg"},366:function(e,t,n){e.exports=n.p+"catalog/lines/wall/wall.png"},367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34),a={title:"wall",tag:["wall"],description:"Wall with bricks or painted",image:n(366),visibility:{catalog:!0,layerElementsVisible:!0}},o={bricks:{name:"Bricks",uri:n(365),lengthRepeatScale:.01,heightRepeatScale:.01,normal:{uri:n(364),lengthRepeatScale:.01,heightRepeatScale:.01,normalScaleX:.8,normalScaleY:.8}},painted:{name:"Painted",uri:n(363),lengthRepeatScale:.01,heightRepeatScale:.01,normal:{uri:n(362),lengthRepeatScale:.01,heightRepeatScale:.01,normalScaleX:.4,normalScaleY:.4}}};t.default=r.ElementsFactories.WallFactory("wall",a,o)},368:function(e,t,n){e.exports=n.p+"catalog/areas/area/textures/grass.jpg"},369:function(e,t,n){e.exports=n.p+"catalog/areas/area/textures/strand-porcelain.jpg"},37:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.compareVertices=i,t.minVertex=function(e,t){return i(e,t)>0?t:e},t.maxVertex=function(e,t){return i(e,t)>0?e:t},t.orderVertices=function(e){return e.sort(i)},t.pointsDistance=l,t.verticesDistance=function(e,t){var n=e.x,r=e.y,a=t.x,o=t.y;return l(n,r,a,o)},t.horizontalLine=s,t.verticalLine=u,t.linePassingThroughTwoPoints=function(e,t,n,r){if(e===n&&t==r)throw new Error("Geometry error");return e===n?u(x):t===r?s(t):{a:t-r,b:n-e,c:r*e-n*t}},t.distancePointFromLine=function(e,t,n,r,o){return(0,a.fAbs)(e*r+t*o+n)/Math.sqrt(e*e+t*t)},t.closestPointFromLine=function(e,t,n,r,a){var o=e*e+t*t;return{x:(t*(t*r-e*a)-e*n)/o,y:(e*-t*r+e*a-t*n)/o}},t.twoLinesIntersection=function(e,t,n,r,a,o){var i=t*r-e*a;return 0===i?void 0:{x:(n*a-t*o)/i,y:(e*o-n*r)/i}},t.twoLineSegmentsIntersection=function(e,t,n,i){var l=e.x,s=e.y,u=t.x,d=t.y,c=n.x,p=n.y,h=i.x,f=i.y,m=(f-p)*(u-l)-(h-c)*(d-s),y=(h-c)*(s-p)-(f-p)*(l-c),v=(u-l)*(s-p)-(d-s)*(l-c);if((0,a.fAbs)(m)<=o.EPSILON){if((0,a.fAbs)(y)<=o.EPSILON&&(0,a.fAbs)(v)<=o.EPSILON){var g=function(e,t){return e.x===t.x?e.y-t.y:e.x-t.x},x=[e,t].sort(g),w=[n.toJS(),i.toJS()].sort(g),M=[x,w].sort(function(e,t){return g(e[0],t[0])}),q=r(M,2),_=q[0],b=q[1];return _[1].x===b[0].x?{type:b[0].y<=_[1].y?"colinear":"none"}:{type:b[0].x<=_[1].x?"colinear":"none"}}return{type:"parallel"}}var E=y/m,O=v/m;if(E>=0-o.EPSILON&&E<=1+o.EPSILON&&O>=0-o.EPSILON&&O<=1+o.EPSILON){var I={x:l+E*(u-l),y:s+E*(d-s)};return{type:"intersecting",point:I}}return{type:"none"}},t.distancePointFromLineSegment=d,t.isPointOnLineSegment=function(e,t,n,r,a,i){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:o.EPSILON;return d(e,t,n,r,a,i)<=l},t.closestPointFromLineSegment=function(e,t,n,r,a,o){if(e===n)return{x:e,y:o};if(t===r)return{x:a,y:t};var i=(r-t)/(n-e),l=t-i*e,s=-1/i,u=(o-s*a-l)/(i-s);return{x:u,y:i*u+l}},t.pointPositionOnLineSegment=function(e,t,n,r,a,o){var i=l(e,t,n,r),s=l(e,t,a,o)/i;e>n&&(s=c(s,0,1,1,0));return s},t.mapRange=c,t.angleBetweenTwoPointsAndOrigin=function(e,t,n,r){return 180*-Math.atan2(t-r,n-e)/Math.PI},t.angleBetweenTwoPoints=p,t.absAngleBetweenTwoPoints=function(e,t,n,r){return Math.atan2(Math.abs(r-t),Math.abs(n-e))},t.samePoints=function(e,t){var n=e.x,r=e.y,i=t.x,l=t.y;return(0,a.fAbs)(n-i)<=o.EPSILON&&(0,a.fAbs)(r-l)<=o.EPSILON},t.extendLine=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:6,l=p(e,t,n,r);return{x:(0,a.toFixedFloat)(e+Math.cos(l)*o,i),y:(0,a.toFixedFloat)(t+Math.sin(l)*o,i)}},t.roundVertex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.set("x",(0,a.toFixedFloat)(e.get("x"),t)),e.set("y",(0,a.toFixedFloat)(e.get("y"),t)),e},t.ContainsPoint=function(e,t,n){var r=e.length>>1,a=void 0,o=void 0,i=e[2*r-3]-n,l=e[2*r-2]-t,s=e[2*r-1]-n;if(0===l&&0===s)return!1;for(var u=0;ui)}for(var d=0,c=0;c0&&s>0||a<0&&l<0)){if(i===s&&Math.min(a,l)<0)return!0;if(i!==s){var p=a+(l-a)*-i/(s-i);if(0===p)return!1;p>0&&d++,0===i&&o&&s>i&&d--,0===i&&!o&&si}}return 1==(1&d)},t.cosWithThreshold=function(e,t){var n=Math.cos(e);return n1?(d=n,c=r):(d=e+u*i,c=t+u*l);var p=a-d,h=o-c;return Math.sqrt(p*p+h*h)}function c(e,t,n,r,a){return r+(a-r)*(e-t)/(n-t)}function p(e,t,n,r){return Math.atan2(r-t,n-e)}},370:function(e,t,n){e.exports=n.p+"catalog/areas/area/textures/ceramic-tile.jpg"},371:function(e,t,n){e.exports=n.p+"catalog/areas/area/textures/tile1.jpg"},372:function(e,t,n){e.exports=n.p+"catalog/areas/area/textures/parquet.jpg"},373:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34),a={parquet:{name:"Parquet",uri:n(372),lengthRepeatScale:.004,heightRepeatScale:.004},tile1:{name:"Tile1",uri:n(371),lengthRepeatScale:.01,heightRepeatScale:.01},ceramic:{name:"Ceramic Tile",uri:n(370),lengthRepeatScale:.02,heightRepeatScale:.02},strand_porcelain:{name:"Strand Porcelain Tile",uri:n(369),lengthRepeatScale:.02,heightRepeatScale:.02},grass:{name:"Grass",uri:n(368),lengthRepeatScale:.01,heightRepeatScale:.01}};t.default=r.ElementsFactories.AreaFactory("area",{title:"area",tag:["area"],description:"Generic Room",image:""},a)},374:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createArea=function(e,t,n,s){var u=[];e.vertices.forEach(function(e){u.push(t.vertices.get(e))});var d=e.properties.get("texture"),c=e.properties.get("patternColor");e.selected?c=a.AREA_MESH_COLOR.selected:d&&"none"!==d&&(c=a.AREA_MESH_COLOR.unselected);var p=new r.Shape;p.moveTo(u[0].x,u[0].y);for(var h=1;h0?this.calculateProperties():this.normal=this.w=void 0}return a(e,[{key:"calculateProperties",value:function(){var e=this.vertices[0],t=this.vertices[1],n=this.vertices[2];return this.normal=t.clone().subtract(e).cross(n.clone().subtract(e)).normalize(),this.w=this.normal.clone().dot(e),this}},{key:"clone",value:function(){var t,n,r=new e;for(t=0,n=this.vertices.length;t=0;e--)t.push(this.vertices[e]);return this.vertices=t,this}},{key:"classifyVertex",value:function(e){var t=this.normal.dot(e)-this.w;return t<-1e-5?2:t>1e-5?1:0}},{key:"classifySide",value:function(e){var t,n,r,a=0,o=0,i=e.vertices.length;for(t=0;t0&&0===o?1:0===a&&o>0?2:0===a&&0===o?0:3}},{key:"splitPolygon",value:function(t,n,r,a,o){var i=this.classifySide(t);if(0===i)(this.normal.dot(t.normal)>0?n:r).push(t);else if(1===i)a.push(t);else if(2===i)o.push(t);else{var l,s,u,d,c,p,h,f,m,y=[],v=[];for(s=0,l=t.vertices.length;s=3&&a.push(new e(y).calculateProperties()),v.length>=3&&o.push(new e(v).calculateProperties())}}}]),e}(),u=function(){function e(t,n,r,a,l){i(this,e),this.x=t,this.y=n,this.z=r,this.normal=a||new o.Vector3,this.uv=l||new o.Vector2}return a(e,[{key:"clone",value:function(){return new e(this.x,this.y,this.z,this.normal.clone(),this.uv.clone())}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}},{key:"subtract",value:function(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this}},{key:"cross",value:function(e){var t=this.x,n=this.y,r=this.z;return this.x=n*e.z-r*e.y,this.y=r*e.x-t*e.z,this.z=t*e.y-n*e.x,this}},{key:"normalize",value:function(){var e=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);return this.x/=e,this.y/=e,this.z/=e,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y+this.z*e.z}},{key:"lerp",value:function(e,t){return this.add(e.clone().subtract(this).multiplyScalar(t)),this.normal.add(e.normal.clone().sub(this.normal).multiplyScalar(t)),this.uv.add(e.uv.clone().sub(this.uv).multiplyScalar(t)),this}},{key:"interpolate",value:function(e,t){return this.clone().lerp(e,t)}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,r=this.z,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12],this.y=a[1]*t+a[5]*n+a[9]*r+a[13],this.z=a[2]*t+a[6]*n+a[10]*r+a[14],this}}]),e}(),d=function(){function e(t){i(this,e);var n,r,a=[],o=[];if(this.polygons=[],this.front=this.back=void 0,t instanceof Array&&0!==t.length){for(this.divider=t[0].clone(),n=0,r=t.length;n0&&(this.front=new e(a)),o.length>0&&(this.back=new e(o))}}return a(e,[{key:"isConvex",value:function(e){var t,n;for(t=0;t0&&(this.front||(this.front=new e),this.front.build(a)),o.length>0&&(this.back||(this.back=new e),this.back.build(o))}},{key:"allPolygons",value:function(){var e=this.polygons.slice();return this.front&&(e=e.concat(this.front.allPolygons())),this.back&&(e=e.concat(this.back.allPolygons())),e}},{key:"clone",value:function(){var t=new e;return t.divider=this.divider.clone(),t.polygons=this.polygons.map(function(e){return e.clone()}),t.front=this.front&&this.front.clone(),t.back=this.back&&this.back.clone(),t}},{key:"invert",value:function(){var e,t,n;for(e=0,t=this.polygons.length;ec.x){var h=d;d=c,c=h,p=!0}var f=e.properties.getIn(["height","length"]),m=e.properties.getIn(["thickness","length"]),y=m/2,v=(0,o.verticesDistance)(d,c),g=v/2,x=new r.MeshBasicMaterial({color:e.selected?i.MESH_SELECTED:13882323}),w=new r.Mesh(new r.BoxGeometry(v,f,m),x),M=Math.asin((c.y-d.y)/v),q=Math.sin(M),_=Math.cos(M);w.position.y+=f/2,w.position.x+=g*_,w.position.z-=g*q,w.rotation.y=M,e.holes.forEach(function(e){var n=t.holes.get(e),o=n.properties.getIn(["width","length"]),i=n.properties.getIn(["height","length"]),l=n.properties.getIn(["altitude","length"]),s=p?1-n.offset:n.offset,u=s*v,d=new r.BoxGeometry(o,i,m),c=new r.Mesh(d);c.position.y+=i/2+l,c.position.x+=u*_,c.position.z-=u*q,c.rotation.y=M;var h=new a.default(w),f=new a.default(c),y=h.subtract(f);w=y.toMesh(x)}),w.name="soul";var b=new r.MeshBasicMaterial,E=new r.MeshBasicMaterial;s(b,u[e.properties.get("textureB")],v,f),s(E,u[e.properties.get("textureA")],v,f);var O=.2/m,I=y+1,P=w.clone();P.material=b,P.scale.set(1,1,O),P.position.x+=I*Math.cos(M-l),P.position.z-=I*Math.sin(M-l),P.name="frontFace";var T=w.clone();T.material=E,T.scale.set(1,1,O),T.position.x+=I*Math.cos(M+l),T.position.z-=I*Math.sin(M+l),T.name="backFace";var G=new r.Group;return G.add(w,P,T),Promise.resolve(G)},t.updatedWall=function(e,t,n,a,o,s,u,d,c){var p=function(){return d(),c()},h=o.getObjectByName("soul"),f=o.getObjectByName("frontFace"),m=o.getObjectByName("backFace");if("selected"==u[0])h.material=new r.MeshBasicMaterial({color:e.selected?i.MESH_SELECTED:13882323});else{if("properties"!=u[0])return p();if("thickness"!=u[1])return p();var y=e.getIn(["properties","thickness","length"]),v=s.getIn(["properties","thickness","length"]),g=y/2,x=g+1,w=v/h.scale.z,M=h.rotation.y,q=x*Math.cos(M-l),_=x*Math.sin(M-l);h.scale.set(1,1,y/w),f.position.x=h.position.x+q,f.position.z=h.position.z+_,m.position.x=h.position.x-q,m.position.z=h.position.z-_}return Promise.resolve(o)};var r=n(3),a=function(e){return e&&e.__esModule?e:{default:e}}(n(376)),o=n(37),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5));var l=Math.PI/2,s=function(e,t,n,a){var o=new r.TextureLoader;t&&(e.map=o.load(t.uri),e.needsUpdate=!0,e.map.wrapS=r.RepeatWrapping,e.map.wrapT=r.RepeatWrapping,e.map.repeat.set(n*t.lengthRepeatScale,a*t.heightRepeatScale),t.normal&&(e.normalMap=o.load(t.normal.uri),e.normalScale=new r.Vector2(t.normal.normalScaleX,t.normal.normalScaleY),e.normalMap.wrapS=r.RepeatWrapping,e.normalMap.wrapT=r.RepeatWrapping,e.normalMap.repeat.set(n*t.normal.lengthRepeatScale,a*t.normal.heightRepeatScale)))}},378:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;ta?-1:1})},t.addPointSnap=g,t.addLineSnap=function(e,t,n,r,a,l,s){return s=new o.List([s]),e.withMutations(function(e){if(e.some(function(e){return"line"===e.type&&t===e.a&&n===e.b&&r===e.c}))return e;e.valueSeq().filter(function(e){return"line"===e.type}).map(function(e){return i.twoLinesIntersection(e.a,e.b,e.c,t,n,r)}).filter(function(e){return void 0!==e}).forEach(function(t){var n=t.x,r=t.y;return g(e,n,r,20,40)}),e.push(new m({a:t,b:n,c:r,radius:a,priority:l,related:s}))})},t.addLineSegmentSnap=function(e,t,n,r,a,i,l,s){return s=new o.List([s]),e.push(new y({x1:t,y1:n,x2:r,y2:a,radius:i,priority:l,related:s}))},t.addGridSnap=function(e,t,n,r,a,i){return i=new o.List([i]),e.push(new v({x:t,y:n,radius:r,priority:a,related:i}))};var o=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(37));function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=t.SNAP_POINT="SNAP_POINT",c=t.SNAP_LINE="SNAP_LINE",p=t.SNAP_SEGMENT="SNAP_SEGMENT",h=t.SNAP_GRID="SNAP_GRID",f=(t.SNAP_GUIDE="SNAP_GUIDE",t.SNAP_MASK=new o.Map({SNAP_POINT:!0,SNAP_LINE:!0,SNAP_SEGMENT:!0,SNAP_GRID:!1,SNAP_GUIDE:!0}),function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,(0,o.Record)({type:"point",x:-1,y:-1,radius:1,priority:1,related:new o.List})),a(t,[{key:"nearestPoint",value:function(e,t){return{x:this.x,y:this.y,distance:i.pointsDistance(this.x,this.y,e,t)}}},{key:"isNear",value:function(e,t,n){return 1+~(this.x-e)1&&void 0!==arguments[1]?arguments[1]:300;t=t.reverse();var r=e.dispatch;setTimeout(function e(){if(console.info("There are other "+t.length+" actions on stack"),0===t.length)return;if(r(t.pop()),0===t.length)return;setTimeout(e,n)},0)}}),console.groupCollapsed("ReactPlanner"),console.info("ReactPlanner is ready"),console.info("console.log(ReactPlanner)"),console.log(window.ReactPlanner),console.groupEnd()}};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(70))},381:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e,t){window.addEventListener("keydown",function(n){var o=t(e.getState()),i=o.get("mode");switch(n.keyCode){case r.KEYBOARD_BUTTON_CODE.BACKSPACE:case r.KEYBOARD_BUTTON_CODE.DELETE:[r.MODE_IDLE,r.MODE_3D_FIRST_PERSON,r.MODE_3D_VIEW].includes(i)&&e.dispatch((0,a.remove)());break;case r.KEYBOARD_BUTTON_CODE.ESC:e.dispatch((0,a.rollback)());break;case r.KEYBOARD_BUTTON_CODE.Z:(n.getModifierState("Control")||n.getModifierState("Meta"))&&e.dispatch((0,a.undo)());break;case r.KEYBOARD_BUTTON_CODE.ALT:r.MODE_SNAPPING.includes(i)&&e.dispatch((0,a.toggleSnap)(o.snapMask.merge({SNAP_POINT:!1,SNAP_LINE:!1,SNAP_SEGMENT:!1,SNAP_GRID:!1,SNAP_GUIDE:!1,tempSnapConfiguartion:o.snapMask.toJS()})));break;case r.KEYBOARD_BUTTON_CODE.C:var l=o.getIn(["scene","selectedLayer"]),s=o.getIn(["scene","layers",l,"selected"]);if((i===r.MODE_IDLE||i===r.MODE_3D_VIEW)&&(s.holes.size||s.areas.size||s.items.size||s.lines.size))if(s.holes.size){var u=o.getIn(["scene","layers",l,"holes",s.holes.get(0)]);e.dispatch((0,a.copyProperties)(u.get("properties")))}else if(s.areas.size){var d=o.getIn(["scene","layers",l,"areas",s.areas.get(0)]);e.dispatch((0,a.copyProperties)(d.properties))}else if(s.items.size){var c=o.getIn(["scene","layers",l,"items",s.items.get(0)]);e.dispatch((0,a.copyProperties)(c.properties))}else if(s.lines.size){var p=o.getIn(["scene","layers",l,"lines",s.lines.get(0)]);e.dispatch((0,a.copyProperties)(p.properties))}break;case r.KEYBOARD_BUTTON_CODE.V:e.dispatch((0,a.pasteProperties)());break;case r.KEYBOARD_BUTTON_CODE.CTRL:e.dispatch((0,a.setAlterateState)())}}),window.addEventListener("keyup",function(n){var o=t(e.getState()),i=o.get("mode");switch(n.keyCode){case r.KEYBOARD_BUTTON_CODE.ALT:r.MODE_SNAPPING.includes(i)&&e.dispatch((0,a.toggleSnap)(o.snapMask.merge(o.snapMask.get("tempSnapConfiguartion"))));break;case r.KEYBOARD_BUTTON_CODE.CTRL:e.dispatch((0,a.setAlterateState)())}})}};var r=n(4),a=n(69)},382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n,l){if(t=t||o,e&&a){if(null!==a.getItem(e)){var s=a.getItem(e),u=JSON.parse(s);n.dispatch((0,r.loadProject)(u))}n.subscribe(function(){i&&clearTimeout(i),i=setTimeout(function(){var t=l(n.getState());a.setItem(e,JSON.stringify(t.scene.toJS()))},t)})}}};var r=n(69),a=!!window.hasOwnProperty("localStorage")&&window.localStorage,o=500,i=null},383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleDebugger=t.Keyboard=t.Autosave=void 0;var r=i(n(382)),a=i(n(381)),o=i(n(380));function i(e){return e&&e.__esModule?e:{default:e}}t.Autosave=r.default,t.Keyboard=a.default,t.ConsoleDebugger=o.default,t.default={Autosave:r.default,Keyboard:a.default,ConsoleDebugger:o.default}},384:function(e,t,n){e.exports=n.p+"e500b4871b2c21b97e6d25cac92f917d.css"},387:function(e,t,n){n(386)(n(384),{hmr:!0})},388:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabsStyle=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(387));t.TabsStyle=r,t.default={TabsStyle:r}},389:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rightTextStyle=t.leftTextStyle=void 0;var r=Object.assign||function(e){for(var t=1;t0},a.size?l.default.createElement("table",{style:g},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",{colSpan:"4"}),l.default.createElement("th",null,this.context.translator.t("Elements")),l.default.createElement("th",null,this.context.translator.t("Name")))),l.default.createElement("tbody",null,a.entrySeq().map(function(t){var n=r(t,2),a=n[0],i=n[1],s=function(t){return e.context.groupsActions.selectGroup(a)},u=i.get("selected"),d=u?w:null,c=i.get("elements").reduce(function(e,t){return e+t.reduce(function(e,t){return e+t.size},0)},0);return l.default.createElement("tr",{key:a,style:d},l.default.createElement("td",{style:x,title:e.context.translator.t("Toggle Group Visibility")},l.default.createElement(p.FaEye,{onClick:function(t){t.stopPropagation(),e.context.groupsActions.setGroupProperties(a,new h.Map({visible:!i.get("visible")}))},style:i.get("visible")?_:b})),l.default.createElement("td",{style:x,title:e.context.translator.t("Chain selected Elements to Group")},l.default.createElement(p.FaChain,{onClick:function(t){o.forEach(function(t){var n=t.get("id"),r={lines:t.get("lines"),items:t.get("items"),holes:t.get("holes"),areas:t.get("areas")},o=function(t){r[t].filter(function(e){return e.get("selected")}).forEach(function(r){e.context.groupsActions.addToGroup(a,n,t,r.get("id"))})};for(var i in r)o(i)}),s()},style:u?M:v})),l.default.createElement("td",{style:x,title:e.context.translator.t("Un-chain all Group's Elements and remove Group")},l.default.createElement(p.FaChainBroken,{onClick:function(t){return e.context.groupsActions.removeGroup(a)},style:u?M:v})),l.default.createElement("td",{style:x,title:e.context.translator.t("Delete group and all Elements")},l.default.createElement(p.FaTrash,{onClick:function(t){return e.context.groupsActions.removeGroupAndDeleteElements(a)},style:u?M:v})),l.default.createElement("td",{onClick:s,style:{width:"0em",textAlign:"center"}},c),l.default.createElement("td",{onClick:s},i.get("name")))}))):null,l.default.createElement("table",{style:{width:"100%",marginTop:"0.1em"}},l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",{style:this.state.newEmptyHover?O:E,onMouseOver:function(){return e.setState({newEmptyHover:!0})},onMouseOut:function(){return e.setState({newEmptyHover:!1})},onClick:function(t){return e.context.groupsActions.addGroup()}},l.default.createElement(c.TiPlus,null),l.default.createElement("b",{style:q},this.context.translator.t("New Empty Group"))),l.default.createElement("td",{style:this.state.newSelectedHover?O:E,onMouseOver:function(){return e.setState({newSelectedHover:!0})},onMouseOut:function(){return e.setState({newSelectedHover:!1})},onClick:function(t){return e.context.groupsActions.addGroupFromSelected()}},l.default.createElement(c.TiPlus,null),l.default.createElement("b",{style:q},this.context.translator.t("New Group from selected"))))))):null}}]),t}();t.default=I,I.propTypes={mode:s.default.string.isRequired,groups:s.default.object.isRequired,layers:s.default.object.isRequired},I.contextTypes={catalog:s.default.object.isRequired,translator:s.default.object.isRequired,itemsActions:s.default.object.isRequired,linesActions:s.default.object.isRequired,holesActions:s.default.object.isRequired,groupsActions:s.default.object.isRequired,projectActions:s.default.object.isRequired}},392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n1?t-1:0),r=1;r1?t-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style"]),o=r({},s,n);return this.state.focus&&(o.border="1px solid "+l.SECONDARY_COLOR.main),i.default.createElement("input",r({onFocus:function(t){return e.setState({focus:!0})},onBlur:function(t){return e.setState({focus:!1})},style:o,type:"text"},a))}}]),t}();t.default=u,u.defaultProps={style:{}}},64:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["type","style","styleHover","children","size"]),h=Object.assign({},u,d[c],t?l:o);return i.default.createElement("button",r({type:a,onMouseEnter:function(t){return e.setState({hover:!0})},onMouseLeave:function(t){return e.setState({hover:!1})},style:h},p),s)}}]),t}();t.default=c,c.defaultProps={type:"button",size:"normal",style:{backgroundColor:"#e6e6e6",borderColor:"#adadad"},styleHover:{backgroundColor:"#d4d4d4",borderColor:"#8c8c8c"}},c.propTypes={type:l.default.string,style:l.default.object,styleHover:l.default.object,size:l.default.oneOf(["large","normal","small"])}},68:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disposeScene=function(e){e.traverse(function(e){o(e),e=null})},t.disposeObject=function(e){e.traverse(function(e){o(e),e=null})};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));function a(e){e instanceof r.Material&&(!function(e){e&&e.dispose()}(e.map),e.map=null,e.dispose())}function o(e){(e instanceof r.Mesh||e instanceof r.BoxHelper||e instanceof r.LineSegments)&&(!function(e){e.dispose()}(e.geometry),function(e){e instanceof r.MultiMaterial&&e.materials.forEach(function(e){a(e)})}(e.material),a(e.material),e.geometry=null,e.material=null)}},69:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadProject=function(e){return{type:r.LOAD_PROJECT,sceneJSON:e}},t.newProject=function(){return{type:r.NEW_PROJECT}},t.saveProject=function(){return{type:r.SAVE_PROJECT}},t.openCatalog=function(){return{type:r.OPEN_CATALOG}},t.changeCatalogPage=function(e,t){return{type:r.CHANGE_CATALOG_PAGE,newPage:e,oldPage:t}},t.goBackToCatalogPage=function(e){return{type:r.GO_BACK_TO_CATALOG_PAGE,newPage:e}},t.selectToolEdit=function(){return{type:r.SELECT_TOOL_EDIT}},t.unselectAll=function(){return{type:r.UNSELECT_ALL}},t.setProperties=function(e){return{type:r.SET_PROPERTIES,properties:e}},t.setItemsAttributes=function(e){return e=e.set("rotation",parseFloat(e.get("rotation"))),{type:r.SET_ITEMS_ATTRIBUTES,itemsAttributes:e}},t.setLinesAttributes=function(e){return e=e.withMutations(function(t){t.setIn(["vertexOne","x"],parseFloat(e.getIn(["vertexOne","x"]))),t.setIn(["vertexOne","y"],parseFloat(e.getIn(["vertexOne","y"]))),t.setIn(["vertexTwo","x"],parseFloat(e.getIn(["vertexTwo","x"]))),t.setIn(["vertexTwo","y"],parseFloat(e.getIn(["vertexTwo","y"])))}),{type:r.SET_LINES_ATTRIBUTES,linesAttributes:e}},t.setHolesAttributes=function(e){return e=e.set("offset",parseFloat(e.get("offset"))),{type:r.SET_HOLES_ATTRIBUTES,holesAttributes:e}},t.remove=function(){return{type:r.REMOVE}},t.undo=function(){return{type:r.UNDO}},t.rollback=function(){return{type:r.ROLLBACK}},t.openProjectConfigurator=function(){return{type:r.OPEN_PROJECT_CONFIGURATOR}},t.setProjectProperties=function(e){return{type:r.SET_PROJECT_PROPERTIES,properties:e}},t.initCatalog=function(e){return{type:r.INIT_CATALOG,catalog:e}},t.updateMouseCoord=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:x,y:y};return{type:r.UPDATE_MOUSE_COORDS,coords:e}},t.updateZoomScale=function(e){return{type:r.UPDATE_ZOOM_SCALE,scale:e}},t.toggleSnap=function(e){return{type:r.TOGGLE_SNAP,mask:e}},t.throwError=function(e){return{type:r.THROW_ERROR,error:e}},t.throwWarning=function(e){return{type:r.THROW_WARNING,warning:e}},t.copyProperties=function(e){return{type:r.COPY_PROPERTIES,properties:e}},t.pasteProperties=function(){return{type:r.PASTE_PROPERTIES}},t.pushLastSelectedCatalogElementToHistory=function(e){return{type:r.PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,element:e}},t.setAlterateState=function(){return{type:r.ALTERATE_STATE}},t.setMode=function(e){return{type:r.SET_MODE,mode:e}},t.addHorizontalGuide=function(e){return{type:r.ADD_HORIZONTAL_GUIDE,coordinate:e}},t.addVerticalGuide=function(e){return{type:r.ADD_VERTICAL_GUIDE,coordinate:e}},t.addCircularGuide=function(e,t,n){return{type:r.ADD_CIRCULAR_GUIDE,x:e,y:t,radius:n}},t.removeHorizontalGuide=function(e){return{type:r.REMOVE_HORIZONTAL_GUIDE,guideID:e}},t.removeVerticalGuide=function(e){return{type:r.REMOVE_VERTICAL_GUIDE,guideID:e}},t.removeCircularGuide=function(e){return{type:r.REMOVE_CIRCULAR_GUIDE,guideID:e}};var r=n(4)},70:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupsActions=t.areaActions=t.itemsActions=t.verticesActions=t.sceneActions=t.holesActions=t.linesActions=t.viewer3DActions=t.viewer2DActions=t.projectActions=void 0;var r=h(n(69)),a=h(n(1407)),o=h(n(1406)),i=h(n(1405)),l=h(n(1404)),s=h(n(1403)),u=h(n(1402)),d=h(n(1401)),c=h(n(1400)),p=h(n(1399));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.projectActions=r,t.viewer2DActions=a,t.viewer3DActions=o,t.linesActions=i,t.holesActions=l,t.sceneActions=s,t.verticesActions=u,t.itemsActions=d,t.areaActions=c,t.groupsActions=p,t.default={projectActions:r,viewer2DActions:a,viewer3DActions:o,linesActions:i,holesActions:l,sceneActions:s,verticesActions:u,itemsActions:d,areaActions:c,groupsActions:p}},72:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toFixedFloat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;if(e&&t)return parseFloat(parseFloat(e).toFixed(t));return 0};t.fAbs=function(e){var t=e;return t<0&&(t=1+~t),t},t.multiplyMatrices=function(e,t){for(var n=[],r=0;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["element","onUpdate","attributeFormData","state"]),c=s.has("name")?s.get("name"):n.name,p=s.has("offsetA")?s.get("offsetA"):n.offsetA,h=s.has("offsetB")?s.get("offsetB"):n.offsetA;return a.default.createElement("div",null,a.default.createElement(l.default,r({value:c,onUpdate:function(e){return o("name",e)},configs:{label:"Nome"},state:u},d)),a.default.createElement(i.default,r({value:p,onUpdate:function(e){return o("offsetA",e)},configs:{label:"Offset 1",min:0,max:1/0,precision:2},state:u},d)),a.default.createElement(i.default,r({value:h,onUpdate:function(e){return o("offsetB",e)},configs:{label:"Offset 2",min:0,max:1/0,precision:2},state:u},d)))}t.default=u,u.propTypes={element:o.default.object.isRequired,onUpdate:o.default.func.isRequired,attributeFormData:o.default.object.isRequired,state:o.default.object.isRequired},u.contextTypes={translator:o.default.object.isRequired}},734:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["element","onUpdate","attributeFormData","state"]),m=p.has("name")?p.get("name"):o.name,y=p.has("vertexOne")?p.get("vertexOne"):null,v=p.has("vertexTwo")?p.get("vertexTwo"):null,g=p.has("lineLength")?p.get("lineLength"):null;return a.default.createElement("div",null,a.default.createElement("table",{style:u},a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",{style:d},n.t("Name")),a.default.createElement("td",null,a.default.createElement(i.FormTextInput,{value:m,onChange:function(e){return s("name",e.target.value)},style:c}))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"X1"),a.default.createElement("td",null,a.default.createElement(i.FormNumberInput,r({value:y.get("x"),onChange:function(e){return s("vertexOne",{x:e.target.value})},style:c,state:h,precision:2},f)))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"Y1"),a.default.createElement("td",null,a.default.createElement(i.FormNumberInput,r({value:y.get("y"),onChange:function(e){return s("vertexOne",{y:e.target.value})},style:c,state:h,precision:2},f)))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"X2"),a.default.createElement("td",null,a.default.createElement(i.FormNumberInput,r({value:v.get("x"),onChange:function(e){return s("vertexTwo",{x:e.target.value})},style:c,state:h,precision:2},f)))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"Y2"),a.default.createElement("td",null,a.default.createElement(i.FormNumberInput,r({value:v.get("y"),onChange:function(e){return s("vertexTwo",{y:e.target.value})},style:c,state:h,precision:2},f)))))),a.default.createElement(l.PropertyLengthMeasure,{value:g,onUpdate:function(e){return s("lineLength",e)},configs:{label:n.t("Length"),min:0,max:1/0,precision:2},state:h}))}t.default=p,p.propTypes={element:o.default.object.isRequired,onUpdate:o.default.func.isRequired,onValid:o.default.func,attributeFormData:o.default.object.isRequired,state:o.default.object.isRequired},p.contextTypes={translator:o.default.object.isRequired}},735:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["element","onUpdate","attributeFormData","state"]),m=p.has("name")?p.get("name"):o.name,y=p.has("x")?p.get("x"):o.x,v=p.has("y")?p.get("y"):o.y,g=p.has("rotation")?p.get("rotation"):o.rotation;return a.default.createElement("table",{style:u},a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",{style:d},n.t("Name")),a.default.createElement("td",null,a.default.createElement(l.default,{value:m,onChange:function(e){return s("name",e.target.value)},style:c}))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"X"),a.default.createElement("td",null,a.default.createElement(i.default,r({value:y,onChange:function(e){return s("x",e.target.value)},style:c,state:h,precision:2},f)))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"Y"),a.default.createElement("td",null,a.default.createElement(i.default,r({value:v,onChange:function(e){return s("y",e.target.value)},style:c,state:h,precision:2},f)))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},n.t("Rotation")),a.default.createElement("td",null,a.default.createElement(i.default,r({value:g,onChange:function(e){return s("rotation",e.target.value)},style:c,state:h,precision:2},f))))))}p.propTypes={element:o.default.object.isRequired,onUpdate:o.default.func.isRequired,attributeFormData:o.default.object.isRequired,state:o.default.object.isRequired},p.contextTypes={translator:o.default.object.isRequired}},736:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["element","onUpdate","onValid","attributeFormData","state"]);switch(t.prototype){case"items":return a.default.createElement(i.default,r({element:t,onUpdate:n,onValid:o,attributeFormData:u,state:d},c));case"lines":return a.default.createElement(l.default,r({element:t,onUpdate:n,onValid:o,attributeFormData:u,state:d},c));case"holes":return a.default.createElement(s.default,r({element:t,onUpdate:n,onValid:o,attributeFormData:u,state:d},c));case"areas":return null}return null}d.propTypes={element:o.default.object.isRequired,onUpdate:o.default.func.isRequired,onValid:o.default.func,attributeFormData:o.default.object.isRequired,state:o.default.object.isRequired}},737:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n1||f.items.size>1||f.holes.size>1||f.areas.size>1||f.lines.size+f.items.size+f.holes.size+f.areas.size>1,x=t.getIn(["scene","groups"]).findEntry(function(e){return e.get("selected")}),w=[{index:0,condition:!0,dom:a.default.createElement(u.default,{state:t})},{index:1,condition:!0,dom:a.default.createElement(s.default,{state:t})},{index:2,condition:!0,dom:a.default.createElement(c.default,{mode:t.mode,layers:t.scene.layers,selectedLayer:t.scene.selectedLayer})},{index:3,condition:!0,dom:a.default.createElement(d.default,{mode:t.mode,groups:t.scene.groups,layers:t.scene.layers})},{index:4,condition:!g,dom:a.default.createElement(i.default,{state:t})},{index:6,condition:!!x,dom:a.default.createElement(l.default,{state:t,groupID:x?x[0]:null})}];return w=w.concat(p.map(function(e,n){return e.prototype?{condition:!0,dom:a.default.createElement(e,{state:t,key:n})}:{index:e.index,condition:e.condition,dom:a.default.createElement(e.dom,{state:t,key:n})}})),a.default.createElement("aside",{style:r({width:n,height:o},m),onKeyDown:function(e){return e.stopPropagation()},onKeyUp:function(e){return e.stopPropagation()},className:"sidebar"},w.sort(y).map(v))}g.propTypes={state:o.default.object.isRequired,width:o.default.number.isRequired,height:o.default.number.isRequired}},740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PanelGuides=t.PanelLayerElement=t.PanelLayers=t.Panel=t.Sidebar=void 0;var r=s(n(739)),a=s(n(21)),o=s(n(104)),i=s(n(102)),l=s(n(103));function s(e){return e&&e.__esModule?e:{default:e}}t.Sidebar=r.default,t.Panel=a.default,t.PanelLayers=o.default,t.PanelLayerElement=i.default,t.PanelGuides=l.default,t.default={Sidebar:r.default,Panel:a.default,PanelLayers:o.default,PanelLayerElement:i.default,PanelGuides:l.default}},741:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0?i.default.createElement(c.default,{key:m,page:this.context.catalog.categories[this.props.state.catalog.path.get(m-1)]}):null,b=this.props.state.get("selectedElementsHistory"),E=b.map(function(t,n){return i.default.createElement("div",{key:n,style:q,title:t.name,onClick:function(){return e.select(t)}},t.name)});return i.default.createElement(p.default,{width:this.props.width,height:this.props.height,style:a({},y,this.props.style)},i.default.createElement(h.default,null,this.context.translator.t("Catalog")),l,i.default.createElement("div",{style:g},i.default.createElement("span",{style:x},this.context.translator.t("Search Element")),i.default.createElement("input",{type:"text",style:w,onChange:function(t){e.matcharray(t.target.value)}})),b.size?i.default.createElement("div",{style:M},i.default.createElement("span",null,this.context.translator.t("Last Selected")),E):null,i.default.createElement("div",{style:v},""===this.state.matchString?[_,r.map(function(e){return i.default.createElement(d.default,{key:e.name,page:e,oldPage:n})}),o.map(function(e){return i.default.createElement(s.default,{key:e.name,element:e})})]:this.state.matchedElements.map(function(e){return i.default.createElement(s.default,{key:e.name,element:e})})))}}]),t}();t.default=_,_.propTypes={state:l.default.object.isRequired,width:l.default.number.isRequired,height:l.default.number.isRequired,style:l.default.object},_.contextTypes={catalog:l.default.object.isRequired,translator:l.default.object.isRequired,itemsActions:l.default.object.isRequired,linesActions:l.default.object.isRequired,holesActions:l.default.object.isRequired,projectActions:l.default.object.isRequired}},747:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstPersonOnKeyDown=function(e,t,n,r,a,o,i){switch(e.keyCode){case 38:case 87:t=!0;break;case 37:case 65:n=!0;break;case 40:case 83:r=!0;break;case 39:case 68:a=!0;break;case 32:!0===o&&(i.y+=225),o=!1}return{moveForward:t,moveLeft:n,moveBackward:r,moveRight:a,canJump:o}},t.firstPersonOnKeyUp=function(e,t,n,r,a,o){switch(e.keyCode){case 38:case 87:t=!1;break;case 37:case 65:n=!1;break;case 40:case 83:r=!1;break;case 39:case 68:a=!1}return{moveForward:t,moveLeft:n,moveBackward:r,moveRight:a,canJump:o}}},748:function(e,t,n){"use strict";var r=window.THREE||n(3);e.exports=function(e){var t=this;e.rotation.set(0,0,0);var n=new r.Object3D;n.name="pitchObject",n.add(e);var a=new r.Object3D;a.name="yawObject",a.position.y=10,a.add(n);var o=Math.PI/2,i=function(e){if(!1!==t.enabled){var r=e.movementX||e.mozMovementX||e.webkitMovementX||0,i=e.movementY||e.mozMovementY||e.webkitMovementY||0;a.rotation.y-=.002*r,n.rotation.x-=.002*i,n.rotation.x=Math.max(-o,Math.min(o,n.rotation.x))}};this.dispose=function(){document.removeEventListener("mousemove",i,!1)},document.addEventListener("mousemove",i,!1),this.enabled=!1,this.getObject=function(){return a},this.getDirection=function(){var e=new r.Vector3(0,0,-1),t=new r.Euler(0,0,0,"YXZ");return function(r){return t.set(n.rotation.x,a.rotation.y,0),r.copy(e).applyEuler(t),r}}()}},749:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initPointerLock=function(e,t){var n=function(e){o.enabled=!o.enabled},a=function(e){document.body.requestPointerLock=document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock,document.body.requestPointerLock()};"pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document?(document.addEventListener("pointerlockchange",n,!1),document.addEventListener("mozpointerlockchange",n,!1),document.addEventListener("webkitpointerlockchange",n,!1),t.addEventListener("click",a)):console.log("Your browser doesn't seem to support Pointer Lock API");var o=new r.default(e);return{controls:o,pointerlockChangeEvent:n,requestPointerLockEvent:a}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(748))},750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&!isNaN(n[0].distance)?n[0].object.interact&&n[0].object.interact():e.context.projectActions.unselectAll()}},document.addEventListener("mousedown",this.firstPersonMouseDown,!1),this.renderer.domElement.style.display="block",g.appendChild(this.renderer.domElement),this.renderer.autoClear=!1;!function i(){if(!e.stopRendering){T=e.planData.boundingBox.min.y+170;var l=performance.now(),s=(l-t)/1e3*5;n.x-=10*n.x*s,n.z-=10*n.z*s,n.y-=9.8*100*s/5,r.z=Number(a)-Number(o),r.x=Number(u)-Number(d),r.normalize(),(a||o)&&(n.z-=400*r.z*s),(u||d)&&(n.x-=400*r.x*s),e.controls.getObject().translateX(n.x*s),e.controls.getObject().translateY(n.y*s),e.controls.getObject().translateZ(n.z*s),e.controls.getObject().position.yu||8*(1-y.dot(n.object.quaternion))>u)&&(n.dispatchEvent(r),m.copy(n.object.position),y.copy(n.object.quaternion),f=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",z,!1),n.domElement.removeEventListener("mousedown",D,!1),n.domElement.removeEventListener("wheel",L,!1),n.domElement.removeEventListener("touchstart",k,!1),n.domElement.removeEventListener("touchend",N,!1),n.domElement.removeEventListener("touchmove",j,!1),document.removeEventListener("mousemove",R,!1),document.removeEventListener("mouseup",A,!1),window.removeEventListener("keydown",C,!1)};var n=this,r={type:"change"},o={type:"start"},i={type:"end"},l={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},s=l.NONE,u=1e-6,d=new a.Spherical,c=new a.Spherical,p=1,h=new a.Vector3,f=!1,m=new a.Vector2,y=new a.Vector2,v=new a.Vector2,g=new a.Vector2,x=new a.Vector2,w=new a.Vector2,M=new a.Vector2,q=new a.Vector2,_=new a.Vector2;function b(){return Math.pow(.95,n.zoomSpeed)}function E(e){c.theta-=e}function O(e){c.phi-=e}var I=function(){var e=new a.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),h.add(e)}}(),P=function(){var e=new a.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),h.add(e)}}(),T=function(){var e=new a.Vector3;return function(t,r){var o=n.domElement===document?n.domElement.body:n.domElement;if(n.object instanceof a.PerspectiveCamera){var i=n.object.position;e.copy(i).sub(n.target);var l=e.length();l*=Math.tan(n.object.fov/2*Math.PI/180),I(2*t*l/o.clientHeight,n.object.matrix),P(2*r*l/o.clientHeight,n.object.matrix)}else n.object instanceof a.OrthographicCamera?(I(t*(n.object.right-n.object.left)/n.object.zoom/o.clientWidth,n.object.matrix),P(r*(n.object.top-n.object.bottom)/n.object.zoom/o.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function G(e){n.object instanceof a.PerspectiveCamera?p/=e:n.object instanceof a.OrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*e)),n.object.updateProjectionMatrix(),f=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function S(e){n.object instanceof a.PerspectiveCamera?p*=e:n.object instanceof a.OrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/e)),n.object.updateProjectionMatrix(),f=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function D(e){if(!1!==n.enabled){if(e.preventDefault(),e.button===n.mouseButtons.ORBIT){if(!1===n.enableRotate)return;!function(e){m.set(e.clientX,e.clientY)}(e),s=l.ROTATE}else if(e.button===n.mouseButtons.ZOOM){if(!1===n.enableZoom)return;!function(e){M.set(e.clientX,e.clientY)}(e),s=l.DOLLY}else if(e.button===n.mouseButtons.PAN){if(!1===n.enablePan)return;!function(e){g.set(e.clientX,e.clientY)}(e),s=l.PAN}s!==l.NONE&&(document.addEventListener("mousemove",R,!1),document.addEventListener("mouseup",A,!1),n.dispatchEvent(o))}}function R(e){if(!1!==n.enabled)if(s===l.ROTATE){if(!1===n.enableRotate)return;!function(e){y.set(e.clientX,e.clientY),v.subVectors(y,m);var t=n.domElement===document?n.domElement.body:n.domElement;E(2*Math.PI*v.x/t.clientWidth*n.rotateSpeed),O(2*Math.PI*v.y/t.clientHeight*n.rotateSpeed),m.copy(y),n.update()}(e)}else if(s===l.DOLLY){if(!1===n.enableZoom)return;!function(e){q.set(e.clientX,e.clientY),_.subVectors(q,M),_.y>0?G(b()):_.y<0&&S(b()),M.copy(q),n.update()}(e)}else if(s===l.PAN){if(!1===n.enablePan)return;!function(e){x.set(e.clientX,e.clientY),w.subVectors(x,g),T(w.x,w.y),g.copy(x),n.update()}(e)}}function A(e){!1!==n.enabled&&(document.removeEventListener("mousemove",R,!1),document.removeEventListener("mouseup",A,!1),n.dispatchEvent(i),s=l.NONE)}function L(e){!1===n.enabled||!1===n.enableZoom||s!==l.NONE&&s!==l.ROTATE||(e.stopPropagation(),function(e){e.deltaY<0?S(b()):e.deltaY>0&&G(b()),n.update()}(e),n.dispatchEvent(o),n.dispatchEvent(i))}function C(e){!1!==n.enabled&&!1!==n.enableKeys&&!1!==n.enablePan&&function(e){switch(e.keyCode){case n.keys.UP:T(0,n.keyPanSpeed),n.update();break;case n.keys.BOTTOM:T(0,-n.keyPanSpeed),n.update();break;case n.keys.LEFT:T(n.keyPanSpeed,0),n.update();break;case n.keys.RIGHT:T(-n.keyPanSpeed,0),n.update()}}(e)}function k(e){if(!1!==n.enabled){switch(e.touches.length){case 1:if(!1===n.enableRotate)return;!function(e){m.set(e.touches[0].pageX,e.touches[0].pageY)}(e),s=l.TOUCH_ROTATE;break;case 2:if(!1===n.enableZoom)return;!function(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,r=Math.sqrt(t*t+n*n);M.set(0,r)}(e),s=l.TOUCH_DOLLY;break;case 3:if(!1===n.enablePan)return;!function(e){g.set(e.touches[0].pageX,e.touches[0].pageY)}(e),s=l.TOUCH_PAN;break;default:s=l.NONE}s!==l.NONE&&n.dispatchEvent(o)}}function j(e){if(!1!==n.enabled)switch(e.stopPropagation(),e.touches.length){case 1:if(!1===n.enableRotate)return;if(s!==l.TOUCH_ROTATE)return;!function(e){y.set(e.touches[0].pageX,e.touches[0].pageY),v.subVectors(y,m);var t=n.domElement===document?n.domElement.body:n.domElement;E(2*Math.PI*v.x/t.clientWidth*n.rotateSpeed),O(2*Math.PI*v.y/t.clientHeight*n.rotateSpeed),m.copy(y),n.update()}(e);break;case 2:if(!1===n.enableZoom)return;if(s!==l.TOUCH_DOLLY)return;!function(e){var t=e.touches[0].pageX-e.touches[1].pageX,r=e.touches[0].pageY-e.touches[1].pageY,a=Math.sqrt(t*t+r*r);q.set(0,a),_.subVectors(q,M),_.y>0?S(b()):_.y<0&&G(b()),M.copy(q),n.update()}(e);break;case 3:if(!1===n.enablePan)return;if(s!==l.TOUCH_PAN)return;!function(e){x.set(e.touches[0].pageX,e.touches[0].pageY),w.subVectors(x,g),T(w.x,w.y),g.copy(x),n.update()}(e);break;default:s=l.NONE}}function N(e){!1!==n.enabled&&(n.dispatchEvent(i),s=l.NONE)}function z(e){e.preventDefault()}n.domElement.addEventListener("contextmenu",z,!1),n.domElement.addEventListener("mousedown",D,!1),n.domElement.addEventListener("wheel",L,{passive:!0}),n.domElement.addEventListener("touchstart",k,{passive:!0}),n.domElement.addEventListener("touchend",N,{passive:!0}),n.domElement.addEventListener("touchmove",j,{passive:!0}),window.addEventListener("keydown",C,{passive:!0}),this.update()},(r.prototype=Object.create(a.EventDispatcher.prototype)).constructor=r,Object.defineProperties(r.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(e){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!e}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(e){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!e}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(e){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!e}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(e){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(e){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(e){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=e}}})},752:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var l=n.properties.get("step"),s=n.properties.has("color")?new a.List([n.properties.get("color")]):n.properties.get("colors"),u=new r.Object3D;u.name="streak";for(var d=0,c=0;c<=e;c+=l){var p=new r.Geometry;p.vertices.push(new r.Vector3(c,0,0)),p.vertices.push(new r.Vector3(c,0,-t));var h=s.get(d%s.size),f=new r.LineBasicMaterial({color:h});if(d%5==0){var m=new r.TextGeometry(""+d*l,{size:16,height:1,font:i}),y=new r.MeshBasicMaterial({color:o.COLORS.black}),v=new r.Mesh(m,y);v.rotation.x-=Math.PI/2,v.position.set(c-20,0,50),u.add(v)}u.add(new r.LineSegments(p,f)),d++}return u};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=n(7),o=n(5)},753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var l=n.properties.get("step"),s=n.properties.has("color")?new a.List([n.properties.get("color")]):n.properties.get("colors"),u=new r.Object3D;u.name="streak";for(var d=0,c=0;c<=t;c+=l){var p=new r.Geometry;p.vertices.push(new r.Vector3(0,0,-c)),p.vertices.push(new r.Vector3(e,0,-c));var h=s.get(d%s.size),f=new r.LineBasicMaterial({color:h});if(d%5==0){var m=new r.TextGeometry(""+d*l,{size:16,height:1,font:i}),y=new r.MeshBasicMaterial({color:o.COLORS.black}),v=new r.Mesh(m,y);v.rotation.x-=Math.PI/2,v.position.set(-90,0,-c),u.add(v)}u.add(new r.LineSegments(p,f)),d++}return u};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=n(7),o=n(5)},754:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.HELVETIKER={glyphs:{"ο":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 "},S:{x_min:0,x_max:788,ha:890,o:"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 "},"¦":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"/":{x_min:183.25,x_max:608.328125,ha:792,o:"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 "},"Τ":{x_min:-.4375,x_max:777.453125,ha:839,o:"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 "},y:{x_min:0,x_max:684.78125,ha:771,o:"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 "},"Π":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 "},"ΐ":{x_min:-111,x_max:339,ha:361,o:"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 "},g:{x_min:0,x_max:686,ha:838,o:"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 "},"²":{x_min:0,x_max:442,ha:539,o:"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 "},"–":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},"Κ":{x_min:0,x_max:819.5625,ha:893,o:"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},"ƒ":{x_min:-46.265625,x_max:392,ha:513,o:"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 "},e:{x_min:0,x_max:714,ha:813,o:"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 "},"ό":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 "},J:{x_min:0,x_max:588,ha:699,o:"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 "},"»":{x_min:-1,x_max:503,ha:601,o:"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 "},"©":{x_min:-3,x_max:1008,ha:1106,o:"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 "},"ώ":{x_min:0,x_max:922,ha:1030,o:"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 "},"^":{x_min:193.0625,x_max:598.609375,ha:792,o:"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 "},"«":{x_min:0,x_max:507.203125,ha:604,o:"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 "},D:{x_min:0,x_max:828,ha:935,o:"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 "},"∙":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"ÿ":{x_min:0,x_max:47,ha:125,o:"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 "},w:{x_min:0,x_max:1009.71875,ha:1100,o:"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 "},$:{x_min:0,x_max:700,ha:793,o:"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 "},"\\":{x_min:-.015625,x_max:425.0625,ha:522,o:"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 "},"µ":{x_min:0,x_max:697.21875,ha:747,o:"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 "},"Ι":{x_min:42,x_max:181,ha:297,o:"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 "},"Ύ":{x_min:0,x_max:1144.5,ha:1214,o:"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"’":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"Ν":{x_min:0,x_max:801,ha:915,o:"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 "},"-":{x_min:8.71875,x_max:350.390625,ha:478,o:"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 "},Q:{x_min:0,x_max:968,ha:1072,o:"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 "},"ς":{x_min:1,x_max:676.28125,ha:740,o:"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 "},M:{x_min:0,x_max:954,ha:1067,o:"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 "},"Ψ":{x_min:0,x_max:1006,ha:1094,o:"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 "},C:{x_min:0,x_max:886,ha:944,o:"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 "},"!":{x_min:0,x_max:138,ha:236,o:"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 "},"{":{x_min:0,x_max:480.5625,ha:578,o:"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 "},X:{x_min:-.015625,x_max:854.15625,ha:940,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 "},"#":{x_min:0,x_max:963.890625,ha:1061,o:"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 "},"ι":{x_min:42,x_max:284,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 "},"Ά":{x_min:0,x_max:906.953125,ha:982,o:"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},")":{x_min:0,x_max:318,ha:415,o:"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 "},"ε":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 "},"Δ":{x_min:0,x_max:952.78125,ha:1028,o:"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 "},"}":{x_min:0,x_max:481,ha:578,o:"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 "},"‰":{x_min:-3,x_max:1672,ha:1821,o:"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 "},a:{x_min:0,x_max:698.609375,ha:794,o:"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 "},"—":{x_min:0,x_max:941.671875,ha:1039,o:"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 "},"=":{x_min:8.71875,x_max:780.953125,ha:792,o:"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 "},N:{x_min:0,x_max:801,ha:914,o:"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 "},"ρ":{x_min:0,x_max:712,ha:797,o:"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 "},2:{x_min:59,x_max:731,ha:792,o:"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 "},"¯":{x_min:0,x_max:941.671875,ha:938,o:"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 "},Z:{x_min:0,x_max:779,ha:849,o:"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 "},u:{x_min:0,x_max:617,ha:729,o:"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 "},k:{x_min:0,x_max:612.484375,ha:697,o:"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 "},"Η":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"Α":{x_min:0,x_max:906.953125,ha:985,o:"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},s:{x_min:0,x_max:604,ha:697,o:"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 "},B:{x_min:0,x_max:778,ha:876,o:"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 "},"…":{x_min:0,x_max:614,ha:708,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 "},"?":{x_min:0,x_max:607,ha:704,o:"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 "},H:{x_min:0,x_max:803,ha:915,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"ν":{x_min:0,x_max:675,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 "},c:{x_min:1,x_max:701.390625,ha:775,o:"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 "},"¶":{x_min:0,x_max:566.671875,ha:678,o:"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 "},"β":{x_min:0,x_max:660,ha:745,o:"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 "},"Μ":{x_min:0,x_max:954,ha:1068,o:"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 "},"Ό":{x_min:.109375,x_max:1120,ha:1217,o:"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ή":{x_min:0,x_max:1158,ha:1275,o:"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"•":{x_min:0,x_max:663.890625,ha:775,o:"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 "},"¥":{x_min:.1875,x_max:819.546875,ha:886,o:"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 "},"(":{x_min:0,x_max:318.0625,ha:415,o:"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 "},U:{x_min:0,x_max:796,ha:904,o:"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 "},"γ":{x_min:.5,x_max:744.953125,ha:822,o:"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 "},"α":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 "},F:{x_min:0,x_max:683.328125,ha:717,o:"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 "},"­":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},":":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"Χ":{x_min:0,x_max:854.171875,ha:935,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 "},"*":{x_min:116,x_max:674,ha:792,o:"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 "},"†":{x_min:0,x_max:777,ha:835,o:"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 "},"°":{x_min:0,x_max:347,ha:444,o:"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 "},V:{x_min:0,x_max:862.71875,ha:940,o:"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 "},"Ξ":{x_min:0,x_max:734.71875,ha:763,o:"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 "}," ":{x_min:0,x_max:0,ha:853},"Ϋ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 "},0:{x_min:73,x_max:715,ha:792,o:"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 "},"”":{x_min:0,x_max:347,ha:454,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 "},"@":{x_min:0,x_max:1260,ha:1357,o:"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 "},"Ί":{x_min:0,x_max:499,ha:613,o:"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 "},i:{x_min:14,x_max:136,ha:275,o:"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 "},"Β":{x_min:0,x_max:778,ha:877,o:"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 "},"υ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 "},"]":{x_min:0,x_max:275,ha:372,o:"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 "},m:{x_min:0,x_max:1019,ha:1128,o:"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 "},"χ":{x_min:8.328125,x_max:780.5625,ha:815,o:"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 "},8:{x_min:55,x_max:736,ha:792,o:"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 "},"ί":{x_min:42,x_max:326.71875,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 "},"Ζ":{x_min:0,x_max:779.171875,ha:850,o:"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 "},R:{x_min:0,x_max:781.953125,ha:907,o:"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 "},o:{x_min:0,x_max:713,ha:821,o:"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 "},5:{x_min:54.171875,x_max:738,ha:792,o:"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 "},7:{x_min:58.71875,x_max:730.953125,ha:792,o:"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 "},K:{x_min:0,x_max:819.46875,ha:906,o:"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},",":{x_min:0,x_max:142,ha:239,o:"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 "},d:{x_min:0,x_max:683,ha:796,o:"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 "},"¨":{x_min:-109,x_max:247,ha:232,o:"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 "},E:{x_min:0,x_max:736.109375,ha:789,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},Y:{x_min:0,x_max:820,ha:886,o:"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 "},'"':{x_min:0,x_max:299,ha:396,o:"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"‹":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"„":{x_min:0,x_max:364,ha:467,o:"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 "},"δ":{x_min:1,x_max:710,ha:810,o:"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 "},"έ":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 "},"ω":{x_min:0,x_max:922,ha:1031,o:"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 "},"´":{x_min:0,x_max:96,ha:251,o:"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"±":{x_min:11,x_max:781,ha:792,o:"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 "},"|":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"ϋ":{x_min:0,x_max:617,ha:725,o:"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 "},"§":{x_min:0,x_max:593,ha:690,o:"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 "},b:{x_min:0,x_max:685,ha:783,o:"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 "},q:{x_min:0,x_max:683,ha:876,o:"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 "},"Ω":{x_min:-.171875,x_max:969.5625,ha:1068,o:"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 "},"ύ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 "},z:{x_min:-.015625,x_max:613.890625,ha:697,o:"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 "},"™":{x_min:0,x_max:894,ha:1e3,o:"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 "},"ή":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 "},"Θ":{x_min:0,x_max:960,ha:1056,o:"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 "},"®":{x_min:-3,x_max:1008,ha:1106,o:"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 "},"~":{x_min:0,x_max:833,ha:931,o:"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 "},"Ε":{x_min:0,x_max:736.21875,ha:778,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},"³":{x_min:0,x_max:450,ha:547,o:"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 "},"[":{x_min:0,x_max:273.609375,ha:371,o:"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 "},L:{x_min:0,x_max:645.828125,ha:696,o:"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 "},"σ":{x_min:0,x_max:803.390625,ha:894,o:"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 "},"ζ":{x_min:0,x_max:573,ha:642,o:"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 "},"θ":{x_min:0,x_max:674,ha:778,o:"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 "},"Ο":{x_min:0,x_max:958,ha:1054,o:"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 "},"Γ":{x_min:0,x_max:705.28125,ha:749,o:"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 "}," ":{x_min:0,x_max:0,ha:375},"%":{x_min:-3,x_max:1089,ha:1186,o:"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 "},P:{x_min:0,x_max:726,ha:806,o:"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 "},"Έ":{x_min:0,x_max:1078.21875,ha:1118,o:"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ώ":{x_min:.125,x_max:1136.546875,ha:1235,o:"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 "},_:{x_min:0,x_max:705.5625,ha:803,o:"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 "},"Ϊ":{x_min:-110,x_max:246,ha:275,o:"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 "},"+":{x_min:23,x_max:768,ha:792,o:"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 "},"½":{x_min:0,x_max:1050,ha:1149,o:"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 "},"Ρ":{x_min:0,x_max:720,ha:783,o:"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 "},"'":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"ª":{x_min:0,x_max:350,ha:397,o:"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 "},"΅":{x_min:0,x_max:450,ha:553,o:"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 "},T:{x_min:0,x_max:777,ha:835,o:"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 "},"Φ":{x_min:0,x_max:915,ha:997,o:"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 "},"⁋":{x_min:0,x_max:0,ha:694},j:{x_min:-77.78125,x_max:167,ha:349,o:"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 "},"Σ":{x_min:0,x_max:756.953125,ha:819,o:"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 "},1:{x_min:215.671875,x_max:574,ha:792,o:"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 "},"›":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},"<":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"£":{x_min:0,x_max:704.484375,ha:801,o:"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 "},t:{x_min:0,x_max:367,ha:458,o:"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 "},"¬":{x_min:0,x_max:706,ha:803,o:"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 "},"λ":{x_min:0,x_max:750,ha:803,o:"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 "},W:{x_min:0,x_max:1263.890625,ha:1351,o:"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 "},">":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},"τ":{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},"ξ":{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},"Λ":{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},"ΰ":{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"·":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"Υ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},"μ":{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"φ":{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"“":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},6:{x_min:53,x_max:739,ha:792,o:"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 "},"‘":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},"ϊ":{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},"π":{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},"ά":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},3:{x_min:54,x_max:737,ha:792,o:"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 "},9:{x_min:53,x_max:739,ha:792,o:"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "},"¤":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},"κ":{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},4:{x_min:48,x_max:742.453125,ha:792,o:"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"‡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},"ψ":{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},"η":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},cssFontWeight:"normal",ascender:1189,underlinePosition:-100,cssFontStyle:"normal",boundingBox:{yMin:-334,xMin:-111,yMax:1189,xMax:1672},resolution:1e3,original_font_information:{postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Μagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Μagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:'Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r\n\r\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r\n\r\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r\n\r\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r\n\r\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r\n\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.',manufacturer_name:"Μagenta ltd",font_sub_family_name:"Regular"},descender:-334,familyName:"Helvetiker",lineHeight:1522,underlineThickness:50}},755:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new r.Object3D;t.name="grid";var n=(new r.FontLoader).parse(a.HELVETIKER),l=e.grids,s=e.width,u=e.height;return l.forEach(function(e){switch(e.type){case"horizontal-streak":t.add((0,o.default)(s,u,e,n));break;case"vertical-streak":t.add((0,i.default)(s,u,e,n))}}),t.position.y=-1,t};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=n(754),o=l(n(753)),i=l(n(752));function l(e){return e&&e.__esModule?e:{default:e}}},756:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&!isNaN(n[0].distance)?n[0].object.interact&&n[0].object.interact():e.context.projectActions.unselectAll()}},this.renderer.domElement.addEventListener("mousedown",this.mouseDownEvent),this.renderer.domElement.addEventListener("mouseup",this.mouseUpEvent),this.renderer.domElement.style.display="block",r.appendChild(this.renderer.domElement);var M=new d.default(c,this.renderer.domElement),q=new l.Object3D;q.name="spotLightTarget",q.position.set(M.target.x,M.target.y,M.target.z),a.add(q),v.target=q;!function t(){for(var n in M.update(),v.position.set(c.position.x,c.position.y,c.position.z),q.position.set(M.target.x,M.target.y,M.target.z),c.updateMatrix(),c.updateMatrixWorld(),o.sceneGraph.LODs)o.sceneGraph.LODs[n].update(c);e.renderer.render(a,c),e.renderingID=requestAnimationFrame(t)}(),this.orbitControls=M,this.camera=c,this.scene3D=a,this.planData=o}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.renderingID),this.orbitControls.dispose(),this.renderer.domElement.removeEventListener("mousedown",this.mouseDownEvent),this.renderer.domElement.removeEventListener("mouseup",this.mouseUpEvent),(0,u.disposeScene)(this.scene3D),this.scene3D.remove(this.planData.plan),this.scene3D.remove(this.planData.grid),this.scene3D=null,this.planData=null,this.camera=null,this.orbitControls=null,this.renderer.renderLists.dispose()}},{key:"componentWillReceiveProps",value:function(e){var t=e.width,n=e.height,r={areaActions:this.context.areaActions,holesActions:this.context.holesActions,itemsActions:this.context.itemsActions,linesActions:this.context.linesActions,projectActions:this.context.projectActions};if(this.width=t,this.height=n,this.camera.aspect=t/n,this.camera.updateProjectionMatrix(),e.state.scene!==this.props.state.scene){var a=(0,c.default)(this.props.state.scene,e.state.scene);(0,s.updateScene)(this.planData,e.state.scene,this.props.state.scene,a.toJS(),r,this.context.catalog)}this.renderer.setSize(t,n)}},{key:"render",value:function(){return a.default.createElement("div",{ref:"canvasWrapper"})}}]),t}();t.default=m,m.propTypes={state:o.default.object.isRequired,width:o.default.number.isRequired,height:o.default.number.isRequired},m.contextTypes={areaActions:o.default.object.isRequired,holesActions:o.default.object.isRequired,itemsActions:o.default.object.isRequired,linesActions:o.default.object.isRequired,projectActions:o.default.object.isRequired,catalog:o.default.object}},757:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t30?100*(this.props.positiveUnitsNumber-c):""));else if(e>200)for(var p=1;p<=this.props.positiveUnitsNumber;p++){var h=100*(this.props.positiveUnitsNumber-p);d.push(i.default.createElement("div",{key:p,style:r({},t,{gridColumn:1,gridRow:p})},i.default.createElement("div",{style:n},h+80),i.default.createElement("div",{style:n},h+60),i.default.createElement("div",{style:n},h+40),i.default.createElement("div",{style:n},h+20),i.default.createElement("div",{style:n},h)))}return i.default.createElement("div",{style:a},i.default.createElement("div",{id:"verticalMarker",style:o}),i.default.createElement("div",{id:"negativeRuler",style:u}),i.default.createElement("div",{id:"positiveRuler",style:s},d))}}]),t}();t.default=d,d.propTypes={unitPixelSize:l.default.number.isRequired,zoom:l.default.number.isRequired,mouseY:l.default.number.isRequired,height:l.default.number.isRequired,zeroTopPosition:l.default.number.isRequired,backgroundColor:l.default.string,fontColor:l.default.string,markerColor:l.default.string},d.defaultProps={positiveUnitsNumber:50,negativeUnitsNumber:50,backgroundColor:s.PRIMARY_COLOR.main,fontColor:s.COLORS.white,markerColor:s.SECONDARY_COLOR.main},d.contextTypes={translator:l.default.object.isRequired}},758:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t30?100*c:""));else if(e>200)for(var p=0;pp&&(d=u.x,c=u.y,p=s.x,h=s.y);var f=o.GeometryUtils.pointsDistance(d,c,p,h),m=o.GeometryUtils.angleBetweenTwoPointsAndOrigin(d,c,p,h),y=t.holes.map(function(e){var t=n.holes.get(e),o=f*t.offset,i=l.getElement(t.type).render2D(t,n,a);return r.default.createElement("g",{key:e,transform:"translate("+o+", 0)","data-element-root":!0,"data-prototype":t.prototype,"data-id":t.id,"data-selected":t.selected,"data-layer":n.id},i)}),v=t.getIn(["properties","thickness","length"])/2,g=l.getElement(t.type).render2D(t,n),x=t.selected?r.default.createElement(i.default,{unit:a.unit,length:f,transform:"translate(0, "+(v+10)+" )"}):null;return r.default.createElement("g",{transform:"translate("+d+", "+c+") rotate("+m+", 0, 0)","data-element-root":!0,"data-prototype":t.prototype,"data-id":t.id,"data-selected":t.selected,"data-layer":n.id,style:t.selected?{cursor:"move"}:{}},x,g,y)}s.propTypes={line:a.default.object.isRequired,layer:a.default.object.isRequired,scene:a.default.object.isRequired,catalog:a.default.object.isRequired}},770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}var i={fill:"#0096fd",stroke:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5)).COLORS.white,cursor:"move"};function l(e){var t=e.vertex,n=e.layer,a=t.x,o=t.y;return r.default.createElement("g",{transform:"translate("+a+", "+o+")","data-element-root":!0,"data-prototype":t.prototype,"data-id":t.id,"data-selected":t.selected,"data-layer":n.id},r.default.createElement("circle",{cx:"0",cy:"0",r:"7",style:i}))}l.propTypes={vertex:a.default.object.isRequired,layer:a.default.object.isRequired}},772:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=c(n(0)),a=c(n(2)),o=c(n(110)),i=c(n(756)),l=c(n(750)),s=c(n(746)),u=c(n(741)),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));function c(e){return e&&e.__esModule?e:{default:e}}function p(e){var t=e.width,n=e.height,a=e.state,c=e.customContents,p=a.get("mode");switch(p){case d.MODE_3D_VIEW:return r.default.createElement(i.default,{state:a,width:t,height:n});case d.MODE_3D_FIRST_PERSON:return r.default.createElement(l.default,{state:a,width:t,height:n});case d.MODE_VIEWING_CATALOG:return r.default.createElement(s.default,{state:a,width:t,height:n});case d.MODE_IDLE:case d.MODE_2D_ZOOM_IN:case d.MODE_2D_ZOOM_OUT:case d.MODE_2D_PAN:case d.MODE_WAITING_DRAWING_LINE:case d.MODE_DRAGGING_LINE:case d.MODE_DRAGGING_VERTEX:case d.MODE_DRAGGING_ITEM:case d.MODE_DRAWING_LINE:case d.MODE_DRAWING_HOLE:case d.MODE_DRAWING_ITEM:case d.MODE_DRAGGING_HOLE:case d.MODE_ROTATING_ITEM:return r.default.createElement(o.default,{state:a,width:t,height:n});case d.MODE_CONFIGURING_PROJECT:return r.default.createElement(u.default,{width:t,height:n,state:a});default:if(c.hasOwnProperty(p)){var h=c[p];return r.default.createElement(h,{width:t,height:n,state:a})}throw new Error("Mode "+p+" doesn't have a mapped content")}}p.propTypes={state:a.default.object.isRequired,width:a.default.number.isRequired,height:a.default.number.isRequired}},95:function(e,t,n){e.exports=n.p+"catalog/items/teaching-post/wood.jpg"},96:function(e,t,n){e.exports=n.p+"catalog/items/school-desk/wood.jpg"},97:function(e,t,n){e.exports=n.p+"catalog/items/school-desk-double/wood.jpg"},98:function(e,t,n){e.exports=n.p+"catalog/items/bookcase/wood.jpg"},99:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.VERSION="2.0.2"}}); +//# sourceMappingURL=37cefb9b14a5dabb56df.app.js.map \ No newline at end of file diff --git a/demo/dist/37cefb9b14a5dabb56df.app.js.map b/demo/dist/37cefb9b14a5dabb56df.app.js.map new file mode 100644 index 00000000..2e93d707 --- /dev/null +++ b/demo/dist/37cefb9b14a5dabb56df.app.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../src/utils/export.js","webpack:///../src/components/footerbar/footer-content-button.jsx","webpack:///../src/components/footerbar/footer-toggle-button.jsx","webpack:///../src/components/sidebar/panel-layer-elements.jsx","webpack:///../src/components/sidebar/panel-guides.jsx","webpack:///../src/components/sidebar/panel-layers.jsx","webpack:///../src/components/viewer3d/scene-creator.js","webpack:///../src/components/viewer2d/ruler.jsx","webpack:///../src/components/viewer2d/snap.jsx","webpack:///../src/components/viewer2d/scene.jsx","webpack:///../src/components/viewer2d/state.jsx","webpack:///../src/class/export.js","webpack:///../src/components/viewer2d/viewer2d.jsx","webpack:///../src/components/toolbar/toolbar-load-button.jsx","webpack:///../src/utils/browser.js","webpack:///../src/components/toolbar/toolbar-save-button.jsx","webpack:///../src/components/export.js","webpack:///../src/utils/objects-utils.js","webpack:///../src/reducers/export.js","webpack:///../src/catalog/properties/property-lenght-measure.jsx","webpack:///../src/catalog/properties/property-string.jsx","webpack:///../src/components/style/export.jsx","webpack:///../src/components/toolbar/toolbar.jsx","webpack:///../src/components/toolbar/export.js","webpack:///../src/actions/groups-actions.js","webpack:///../src/actions/area-actions.js","webpack:///../src/actions/items-actions.js","webpack:///../src/actions/vertices-actions.js","webpack:///../src/actions/scene-actions.js","webpack:///../src/actions/holes-actions.js","webpack:///../src/actions/lines-actions.js","webpack:///../src/actions/viewer3d-actions.js","webpack:///../src/actions/viewer2d-actions.js","webpack:///../src/react-planner.jsx","webpack:///../src/reducers/viewer3d-reducer.js","webpack:///../src/reducers/viewer2d-reducer.js","webpack:///../src/reducers/vertices-reducer.js","webpack:///../src/reducers/scene-reducer.js","webpack:///../src/reducers/project-reducer.js","webpack:///../src/reducers/groups-reducer.js","webpack:///../src/reducers/lines-reducer.js","webpack:///../src/reducers/items-reducer.js","webpack:///../src/reducers/holes-reducer.js","webpack:///../src/class/guide.js","webpack:///../src/class/item.js","webpack:///../src/class/area.js","webpack:///../src/class/vertex.js","webpack:///../src/class/hole.js","webpack:///../src/class/line.js","webpack:///../src/class/layer.js","webpack:///../src/class/group.js","webpack:///../src/utils/name-generator.js","webpack:///../src/utils/id-broker.js","webpack:///../src/utils/history.js","webpack:///../src/utils/snap-scene.js","webpack:///../src/utils/graph-cycles.js","webpack:///../src/utils/get-edges-of-subgraphs.js","webpack:///../src/utils/graph.js","webpack:///../src/utils/graph-inner-cycles.js","webpack:///../src/class/project.js","webpack:///../src/reducers/areas-reducer.js","webpack:///../src/reducers/reducer.js","webpack:///../src/translator/ru.js","webpack:///../src/translator/it.js","webpack:///../src/translator/en.js","webpack:///../src/catalog/properties/property-read-only.jsx","webpack:///../src/catalog/properties/property-hidden.jsx","webpack:///../src/catalog/properties/property-checkbox.jsx","webpack:///../src/catalog/properties/property-toggle.jsx","webpack:///../src/catalog/properties/property-number.jsx","webpack:///../src/catalog/properties/property-enum.jsx","webpack:///../src/components/style/form-submit-button.jsx","webpack:///../src/components/style/form-slider.jsx","webpack:///../src/components/style/form-select.jsx","webpack:///../src/components/style/form-number-input.jsx","webpack:///../src/components/style/content-title.jsx","webpack:///../src/components/style/content-container.jsx","webpack:///../src/catalog/properties/export.js","webpack:///../src/catalog/catalog.js","webpack:///./src/ui/toolbar-screenshot-button.jsx","webpack:///./src/catalog/items/wardrobe/wardrobe.png","webpack:///./src/catalog/items/wardrobe/planner-element.jsx","webpack:///./src/catalog/items/umbrella-stand/umbrellaStand.png","webpack:///./src/catalog/items/umbrella-stand/bronze-texture.jpg","webpack:///./src/catalog/items/umbrella-stand/planner-element.jsx","webpack:///./src/catalog/items/tv/tv.obj","webpack:///./src/catalog/items/tv/tv.mtl","webpack:///./src/catalog/items/tv/tv.png","webpack:///./src/catalog/items/tv/planner-element.jsx","webpack:///./src/catalog/items/trash/trash.png","webpack:///./src/catalog/items/trash/planner-element.jsx","webpack:///./src/catalog/items/three-phase-panel/threePhasePanel.png","webpack:///./src/catalog/items/three-phase-panel/PanelTexture.png","webpack:///./src/catalog/items/three-phase-panel/planner-element.jsx","webpack:///./src/catalog/items/text-3d/img.png","webpack:///./src/catalog/items/text-3d/helvetiker_regular.typeface.js","webpack:///./src/catalog/items/text-3d/planner-element.jsx","webpack:///./src/catalog/items/teaching-post/teaching-post.png","webpack:///./src/catalog/items/teaching-post/planner-element.jsx","webpack:///./src/catalog/items/table/table.png","webpack:///./src/catalog/items/table/planner-element.jsx","webpack:///./src/catalog/items/sofa/sofa.png","webpack:///./src/catalog/items/sofa/texture.jpg","webpack:///./src/catalog/items/sofa/sofa.obj","webpack:///./src/catalog/items/sofa/sofa.mtl","webpack:///./src/catalog/items/sofa/planner-element.jsx","webpack:///./src/catalog/items/smoke-detector/smokeDetector.png","webpack:///../src/components/sidebar/panel.jsx","webpack:///./src/catalog/items/smoke-detector/planner-element.jsx","webpack:///./src/catalog/items/sink/sink.png","webpack:///./src/catalog/items/sink/planner-element.jsx","webpack:///./src/catalog/items/school-desk/school-desk.png","webpack:///./src/catalog/items/school-desk/planner-element.jsx","webpack:///./src/catalog/items/school-desk-double/school-desk-double.png","webpack:///./src/catalog/items/school-desk-double/planner-element.jsx","webpack:///./src/catalog/items/schneider/schneider.png","webpack:///./src/catalog/items/schneider/monitor.png","webpack:///./src/catalog/items/schneider/planner-element.jsx","webpack:///../src/catalog/properties/shared-property-style.js","webpack:///./src/catalog/items/router-wifi/routerWifi.png","webpack:///./src/catalog/items/router-wifi/planner-element.jsx","webpack:///./src/catalog/items/recycling-bins/recycle.png","webpack:///./src/catalog/items/recycling-bins/recycling-bins.png","webpack:///./src/catalog/items/recycling-bins/planner-element.jsx","webpack:///./src/catalog/items/radiator-old-style/OldStyleRadiator.png","webpack:///./src/catalog/items/radiator-old-style/planner-element.jsx","webpack:///./src/catalog/items/radiator-modern-style/ModernStyleRadiator.png","webpack:///./src/catalog/items/radiator-modern-style/planner-element.jsx","webpack:///./src/catalog/items/projector/projector.png","webpack:///./src/catalog/items/projector/planner-element.jsx","webpack:///./src/catalog/items/naspo/naspo.png","webpack:///./src/catalog/items/naspo/naspofront.png","webpack:///./src/catalog/items/naspo/planner-element.jsx","webpack:///./src/catalog/items/monitor-pc/monitorPC.png","webpack:///./src/catalog/items/monitor-pc/keyboard.jpg","webpack:///./src/catalog/items/monitor-pc/white.jpg","webpack:///./src/catalog/items/monitor-pc/black.jpg","webpack:///./src/catalog/items/monitor-pc/power.jpg","webpack:///./src/catalog/items/monitor-pc/planner-element.jsx","webpack:///./src/catalog/items/metal-detector/metalDetector.png","webpack:///./src/catalog/items/metal-detector/display2.png","webpack:///./src/catalog/items/metal-detector/display1.png","webpack:///./src/catalog/items/metal-detector/planner-element.jsx","webpack:///./src/catalog/items/lim/example_lim.png","webpack:///./src/catalog/items/lim/lim.png","webpack:///./src/catalog/items/lim/planner-element.jsx","webpack:///./src/catalog/items/kitchen/kitchen.png","webpack:///./src/catalog/items/kitchen/logo.jpg","webpack:///./src/catalog/items/kitchen/darksteel.jpg","webpack:///./src/catalog/items/kitchen/steel.jpg","webpack:///../src/components/style/form-label.jsx","webpack:///../src/components/style/form-color-input.jsx","webpack:///../src/components/style/form-block.jsx","webpack:///../src/components/style/delete-button.jsx","webpack:///./src/catalog/items/kitchen/planner-element.jsx","webpack:///../src/components/style/cancel-button.jsx","webpack:///../src/catalog/properties/property-color.jsx","webpack:///./src/catalog/mycatalog.js","webpack:///./src/catalog/items/image/image.png","webpack:///./src/catalog/items/image/imageful.jsx","webpack:///./src/renderer.jsx","webpack:///./src/catalog/items/image/planner-element.jsx","webpack:///./src/catalog/items/hub/hub.png","webpack:///./src/catalog/items/hub/front.png","webpack:///./src/catalog/items/hub/planner-element.jsx","webpack:///./src/catalog/items/hiroos/hiroos.png","webpack:///./src/catalog/items/hiroos/hiroosTexture.jpg","webpack:///./src/catalog/items/hiroos/planner-element.jsx","webpack:///./src/catalog/items/hanger/hanger.png","webpack:///./src/catalog/items/hanger/planner-element.jsx","webpack:///./src/catalog/items/fridge/fridge.png","webpack:///./src/catalog/items/fridge/steel.jpg","webpack:///./src/catalog/items/fridge/logo.jpg","webpack:///./src/catalog/items/fridge/planner-element.jsx","webpack:///./src/catalog/items/fire-extinguisher/fire-extinguisher.png","webpack:///./src/catalog/items/fire-extinguisher/label-image.png","webpack:///./src/catalog/items/fire-extinguisher/gage-image.png","webpack:///./src/catalog/utils/load-obj.js","webpack:///./src/catalog/items/fire-extinguisher/planner-element.jsx","webpack:///./src/catalog/items/electrical-panel/electricalPanel.png","webpack:///./src/catalog/items/electrical-panel/texturePanel.png","webpack:///./src/catalog/items/electrical-panel/planner-element.jsx","webpack:///./src/catalog/items/deskoffice/desk.png","webpack:///./src/catalog/items/deskoffice/wood.jpg","webpack:///./src/catalog/items/deskoffice/white.jpg","webpack:///./src/catalog/items/deskoffice/planner-element.jsx","webpack:///./src/catalog/items/deskdouble/deskdouble.png","webpack:///./src/catalog/items/deskdouble/planner-element.jsx","webpack:///./src/catalog/items/desk/desk.png","webpack:///./src/catalog/items/desk/planner-element.jsx","webpack:///./src/catalog/items/cube/cube.png","webpack:///./src/catalog/items/cube/planner-element.jsx","webpack:///./src/catalog/items/column/column.png","webpack:///./src/catalog/items/column/copper.jpg","webpack:///./src/catalog/items/column/planner-element.jsx","webpack:///./src/catalog/items/column-square/square_column.png","webpack:///./src/catalog/items/column-square/planner-element.jsx","webpack:///./src/catalog/items/coat-hook/wood.jpg","webpack:///./src/catalog/items/coat-hook/coat-hook.png","webpack:///./src/catalog/items/coat-hook/planner-element.jsx","webpack:///./src/catalog/items/cleaningcart/cleaning_cart.png","webpack:///./src/catalog/items/cleaningcart/planner-element.jsx","webpack:///./src/catalog/items/child-chair-desk/chairDesk.png","webpack:///./src/catalog/items/child-chair-desk/planner-element.jsx","webpack:///./src/catalog/items/chairdesk/chairdesk.png","webpack:///./src/catalog/items/chairdesk/planner-element.jsx","webpack:///./src/catalog/items/chair/chair.png","webpack:///./src/catalog/items/chair/planner-element.jsx","webpack:///./src/catalog/items/canteencart/canteen_cart.png","webpack:///./src/catalog/items/canteencart/planner-element.jsx","webpack:///./src/catalog/items/canteen-table/canteen_table.png","webpack:///./src/catalog/items/canteen-table/planner-element.jsx","webpack:///./src/catalog/items/camera/camera.png","webpack:///./src/catalog/items/camera/planner-element.jsx","webpack:///./src/catalog/items/bookcase/bookcase.png","webpack:///./src/catalog/items/bookcase/bookTexture3.jpg","webpack:///./src/catalog/items/bookcase/bookTexture2.jpg","webpack:///./src/catalog/items/bookcase/bookTexture1.jpg","webpack:///../src/models.js","webpack:///./src/catalog/items/bookcase/planner-element.jsx","webpack:///./src/catalog/items/blackboard/blackboard.png","webpack:///./src/catalog/items/blackboard/planner-element.jsx","webpack:///./src/catalog/items/bench/bench.png","webpack:///./src/catalog/items/bench/wood.jpg","webpack:///./src/catalog/items/bench/planner-element.jsx","webpack:///./src/catalog/items/balcony/balcony.png","webpack:///./src/catalog/items/balcony/bricks.jpg","webpack:///./src/catalog/items/balcony/painted.jpg","webpack:///./src/catalog/items/balcony/planner-element.jsx","webpack:///./src/catalog/items/armchairs/armchairs.png","webpack:///./src/catalog/items/armchairs/planner-element.jsx","webpack:///./src/catalog/items/air-conditioner/air_conditioner.png","webpack:///./src/catalog/items/air-conditioner/planner-element.jsx","webpack:///./src/catalog/holes/window/texture.png","webpack:///./src/catalog/holes/window/window.obj","webpack:///./src/catalog/holes/window/window.mtl","webpack:///./src/catalog/holes/window/window.png","webpack:///./src/catalog/holes/window/planner-element.jsx","webpack:///./src/catalog/holes/window-curtain/texture.png","webpack:///./src/catalog/holes/window-curtain/window.obj","webpack:///./src/catalog/holes/window-curtain/window.mtl","webpack:///./src/catalog/holes/window-curtain/window-curtain.jpg","webpack:///./src/catalog/holes/window-curtain/planner-element.jsx","webpack:///./src/catalog/holes/venetian-blind-window/texture.png","webpack:///./src/catalog/holes/venetian-blind-window/venetian.obj","webpack:///./src/catalog/holes/venetian-blind-window/venetian.mtl","webpack:///./src/catalog/holes/venetian-blind-window/venetian.jpg","webpack:///./src/catalog/holes/venetian-blind-window/planner-element.jsx","webpack:///./src/catalog/holes/sliding-door/slidingDoor.png","webpack:///../src/index.js","webpack:///./src/catalog/holes/sliding-door/planner-element.jsx","webpack:///./src/catalog/holes/sash-window/texture.png","webpack:///./src/catalog/holes/sash-window/sash-window.obj","webpack:///./src/catalog/holes/sash-window/sash-window.mtl","webpack:///./src/catalog/holes/sash-window/window.png","webpack:///./src/catalog/holes/sash-window/planner-element.jsx","webpack:///./src/catalog/holes/panic-door/panicDoor.png","webpack:///./src/catalog/holes/panic-door/planner-element.jsx","webpack:///./src/catalog/holes/panic-door-double/panicDoorDouble.png","webpack:///./src/catalog/holes/panic-door-double/planner-element.jsx","webpack:///./src/catalog/holes/gate/gate.jpg","webpack:///./src/catalog/holes/gate/planner-element.jsx","webpack:///./src/catalog/holes/door/texture.jpg","webpack:///./src/catalog/holes/door/door.obj","webpack:///./src/catalog/holes/door/door.mtl","webpack:///./src/catalog/holes/door/door.png","webpack:///./src/catalog/utils/obj-loader.js","webpack:///./src/catalog/utils/mtl-loader.js","webpack:///./src/catalog/holes/door/planner-element.jsx","webpack:///../src/utils/react-if.jsx","webpack:///./src/catalog/holes/door-double/door_double.png","webpack:///./src/catalog/holes/door-double/planner-element.jsx","webpack:///./src/catalog/lines/wall/textures/painted-normal.jpg","webpack:///./src/catalog/lines/wall/textures/painted.jpg","webpack:///./src/catalog/lines/wall/textures/bricks-normal.jpg","webpack:///./src/catalog/lines/wall/textures/bricks.jpg","webpack:///./src/catalog/lines/wall/wall.png","webpack:///./src/catalog/lines/wall/planner-element.jsx","webpack:///./src/catalog/areas/area/textures/grass.jpg","webpack:///./src/catalog/areas/area/textures/strand-porcelain.jpg","webpack:///../src/utils/geometry.js","webpack:///./src/catalog/areas/area/textures/ceramic-tile.jpg","webpack:///./src/catalog/areas/area/textures/tile1.jpg","webpack:///./src/catalog/areas/area/textures/parquet.jpg","webpack:///./src/catalog/areas/area/planner-element.jsx","webpack:///../src/catalog/factories/area-factory-3d.js","webpack:///../src/catalog/factories/area-factory.jsx","webpack:///../src/utils/threeCSG.es6.js","webpack:///../src/catalog/factories/wall-factory-3d.js","webpack:///../src/catalog/factories/wall-factory.jsx","webpack:///../src/catalog/factories/export.js","webpack:///../src/utils/snap.js","webpack:///../src/plugins/console-debugger.js","webpack:///../src/plugins/keyboard.js","webpack:///../src/plugins/autosave.js","webpack:///../src/plugins/export.js","webpack:///../src/styles/tabs.css","webpack:///../src/styles/tabs.css?5165","webpack:///../src/styles/export.js","webpack:///../src/components/footerbar/footerbar.jsx","webpack:///../src/components/footerbar/export.js","webpack:///../src/components/sidebar/panel-groups.jsx","webpack:///../src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx","webpack:///../src/constants.js","webpack:///../src/components/viewer2d/export.js","webpack:///../src/components/toolbar/toolbar-button.jsx","webpack:///../src/shared-style.js","webpack:///../src/translator/translator.js","webpack:///../src/components/style/form-text-input.jsx","webpack:///../src/components/style/button.jsx","webpack:///../src/components/viewer3d/three-memory-cleaner.js","webpack:///../src/actions/project-actions.js","webpack:///../src/actions/export.js","webpack:///../src/utils/math.js","webpack:///../src/components/sidebar/panel-group-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/element-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/panel-element-editor.jsx","webpack:///../src/components/sidebar/sidebar.jsx","webpack:///../src/components/sidebar/export.js","webpack:///../src/components/configurator/project-configurator.jsx","webpack:///../src/components/catalog-view/catalog-turn-back-page-item.jsx","webpack:///../src/components/catalog-view/catalog-page-item.jsx","webpack:///../src/components/catalog-view/catalog-breadcrumb.jsx","webpack:///../src/components/catalog-view/catalog-item.jsx","webpack:///../src/components/catalog-view/catalog-list.jsx","webpack:///../src/components/viewer3d/libs/first-person-controls.js","webpack:///../src/components/viewer3d/libs/pointer-lock-controls.js","webpack:///../src/components/viewer3d/pointer-lock-navigation.js","webpack:///../src/components/viewer3d/viewer3d-first-person.js","webpack:///../src/components/viewer3d/libs/orbit-controls.js","webpack:///../src/components/viewer3d/grids/grid-vertical-streak.js","webpack:///../src/components/viewer3d/grids/grid-horizontal-streak.js","webpack:///../src/components/viewer3d/libs/helvetiker_regular.typeface.js","webpack:///../src/components/viewer3d/grid-creator.js","webpack:///../src/components/viewer3d/viewer3d.js","webpack:///../src/components/viewer2d/rulerY.jsx","webpack:///../src/components/viewer2d/rulerX.jsx","webpack:///../src/components/viewer2d/group.jsx","webpack:///../src/components/viewer2d/grids/grid-vertical-streak.jsx","webpack:///../src/components/viewer2d/grids/grid-horizontal-streak.jsx","webpack:///../src/components/viewer2d/grids/grids.jsx","webpack:///../src/components/viewer2d/area.jsx","webpack:///../src/components/viewer2d/item.jsx","webpack:///../src/components/viewer2d/layer.jsx","webpack:///../src/components/viewer2d/line.jsx","webpack:///../src/components/viewer2d/vertex.jsx","webpack:///../src/components/content.jsx","webpack:///./src/catalog/items/teaching-post/wood.jpg","webpack:///./src/catalog/items/school-desk/wood.jpg","webpack:///./src/catalog/items/school-desk-double/wood.jpg","webpack:///./src/catalog/items/bookcase/wood.jpg","webpack:///../src/version.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","GeometryUtils","GraphInnerCycles","MathUtils","SnapUtils","SnapSceneUtils","history","ObjectUtils","IDBroker","NameGenerator","_react","SharedStyle","labelContainerStyle","width","display","margin","padding","toggleButtonStyle","color","textAlign","cursor","userSelect","toggleButtonStyleOver","COLORS","white","contentContainerStyleActive","position","height","left","bottom","backgroundColor","PRIMARY_COLOR","alt","borderTop","border","zIndex","transition","contentContainerStyleInactive","visibility","contentHeaderStyle","top","borderBottom","titleStyle","lineHeight","marginLeft","contentAreaStyle","overflowY","iconCloseStyleOut","right","borderLeft","iconCloseStyleOver","SECONDARY_COLOR","iconStyle","marginTop","marginRight","textStyle","FooterContentButton","props","_classCallCheck","this","_this","_possibleConstructorReturn","__proto__","getPrototypeOf","state","over","closeOver","active","toggleState","Component","e","setState","isActive","nextProps","nextState","content","_this2","LabelIcon","icon","labelIconStyle","labelTextStyle","inputTitleStyle","_react2","default","createElement","style","onClick","toggle","title","_extends","text","_close2","onMouseOver","onMouseOut","propTypes","PropTypes","isRequired","string","func","array","bool","contextTypes","projectActions","viewer2DActions","viewer3DActions","linesActions","holesActions","itemsActions","translator","borderRadius","FooterToggleButton","toggleOn","toggleOff","toggleOver","toggleOut","_constants","VISIBILITY_MODE","MODE_IDLE","MODE_2D_ZOOM_IN","MODE_2D_ZOOM_OUT","MODE_2D_PAN","MODE_3D_VIEW","MODE_3D_FIRST_PERSON","MODE_WAITING_DRAWING_LINE","MODE_DRAWING_LINE","MODE_DRAWING_HOLE","MODE_DRAWING_ITEM","MODE_DRAGGING_LINE","MODE_DRAGGING_VERTEX","MODE_DRAGGING_ITEM","MODE_DRAGGING_HOLE","MODE_FITTING_IMAGE","MODE_UPLOADING_IMAGE","MODE_ROTATING_ITEM","contentArea","maxHeight","marginBottom","elementStyle","elementSelectedStyle","main","borderColor","categoryDividerStyle","paddingBottom","tableSearchStyle","searchIconStyle","fontSize","searchInputStyle","PanelLayerElement","context","layer","layers","selectedLayer","elements","lines","holes","items","matchString","matchedElements","oldElements","newElements","hashCode","regexp","RegExp","filterCb","el","test","filter","_panel2","onWheel","stopPropagation","_search2","type","onChange","matcharray","target","count","entrySeq","map","_ref","_ref2","_slicedToArray","lineID","line","selectLine","id","selected","_ref3","_ref4","holeID","hole","selectHole","_ref5","_ref6","itemID","item","selectItem","catalog","_reactTabs","_fa","_export","tabStyle","addGuideStyle","tableTabStyle","PanelGuides","addHGVisible","addVGVisible","addCGVisible","getIn","_context","guides","scene","Tabs","TabList","Tab","TabPanel","ind","hgKey","hgVal","FaTrash","removeHorizontalGuide","colSpan","FormNumberInput","addHorizontalGuide","min","max","FaClose","removeVerticalGuide","addVerticalGuide","_immutable","_ti","styleEditButton","background","outline","tableLayerStyle","iconColStyle","styleHoverColor","styleEditButtonHover","styleAddLabel","styleEyeVisible","styleEyeHidden","firstTdStyle","newLayerLableStyle","newLayerLableHoverStyle","layerInputTableStyle","borderSpacing","inputTableButtonStyle","float","PanelLayers","headHovered","layerAddUIVisible","editingLayer","Map","size","sceneHistory","sceneActions","addLayer","layerData","_layerData$toJS","toJS","opacity","altitude","order","parseInt","setLayerProperties","layerID","removeLayer","isLastLayer","configureClick","isCurrentLayer","selectLayer","onDoubleClick","FaEye","visible","FaPencil","delLayer","TiDelete","TiPlus","FormTextInput","merge","FormSlider","Math","round","CancelButton","resetLayerMod","FormSubmitButton","updateLayer","parseData","sceneData","actions","planData","sceneGraph","unit","busyResources","LODs","plan","Three","Object3D","grid","_gridCreator2","boundingBox","Box3","setFromObject","promises","forEach","concat","createLayerObjects","Promise","all","then","updateBoundingBox","updateScene","oldSceneData","diffArray","filteredDiffs","foundDiff","path","op","indexOf","minimizeRemoveDiffsWhenSwitchingLayers","idsFound","minimizeChangePropertiesAfterSelectionsDiffs","_ref7","minimizeChangePropertiesDiffs","filterDiffs","split","layerId","layerGraph","removeLine","areaID","areas","removeArea","removeItem","removeHole","replaceObject","modifiedPath","vertex","lineHoles","newHoleData","getElement","updateRender3D","differences","selfDestroy","selfBuild","oldHole","mesh","updateHole","addHole","addLine","oldLine","updateLine","area","areaActions","oldArea","updateArea","addArea","oldItem","updateItem","addItem","values","addPromise","addAction","addObject","removeObject","layerSelectedID","layerSelected","_threeMemoryCleaner","setTimeout","hole3D","remove","disposeObject","line3D","area3D","item3D","holeData","render3D","LOD","pivot","add","vertex0","vertices","vertex1","offset","x","tmp","distance","sqrt","pow","y","alpha","asin","center","z","holeAltitude","properties","holeHeight","rotation","cos","sin","applyInteract","applyOpacity","interactFunction","selectArea","PI","traverse","child","Mesh","interact","material","MultiMaterial","materials","materialChild","transparent","maxOpacity","Array","newBoundingBox","isFinite","newCenter","Vector3","sub","Ruler","STYLE","stroke","strokeWidth","STYLE_TEXT","textAnchor","fontFamily","pointerEvents","fontWeight","WebkitTouchCallout","WebkitUserSelect","MozUserSelect","MsUserSelect","transform","distanceText","toFixed","x1","y1","x2","y2","number","ActiveDrawingHelper","Geometry","snap","h0","horizontalLine","h1","pointH0","twoLinesIntersection","a","b","pointH1","v0","verticalLine","v1","pointV0","pointV1","Scene","_props","Grids","Layer","State","guideStyle","strokewidth","activeSnapElement","snapElements","_snap2","fill","_scene2","vgKey","vgVal","_guide","Project","Group","Line","Hole","Vertex","Area","Item","HorizontalGuide","VerticalGuide","Viewer2D","_reactSvgPanZoom","constants","extractElementData","node","attributes","getNamedItem","tagName","parentNode","part","undefined","verticesActions","viewer2D","mapCursorPosition","_state$get$toJS","f","SVGWidth","SVGHeight","rulerBgColor","rulerFnColor","rulerMkColor","rulerXElements","ceil","rulerYElements","gridRowGap","gridColumnGap","gridTemplateColumns","rulerSize","gridTemplateRows","gridColumn","gridRow","overflow","RulerX","unitPixelSize","zoom","mouseX","mouse","zeroLeftPosition","fontColor","markerColor","positiveUnitsNumber","negativeUnitsNumber","RulerY","mouseY","zeroTopPosition","ReactSVGPanZoom","isEmpty","onChangeValue","updateZoomScale","updateCameraView","tool","TOOL_PAN","TOOL_ZOOM_IN","TOOL_ZOOM_OUT","TOOL_AUTO","TOOL_NONE","mode2Tool","onChangeTool","selectToolEdit","selectToolPan","selectToolZoomIn","selectToolZoomOut","detectAutoPan","mode2DetectAutopan","onMouseDown","viewerEvent","event","originalEvent","evt","Event","document","dispatchEvent","_mapCursorPosition2","elementData","beginDraggingLine","snapMask","beginDraggingVertex","beginRotatingItem","beginDraggingItem","beginDraggingHole","onMouseMove","_mapCursorPosition","updateMouseCoord","updateDrawingLine","updateDrawingHole","updateDrawingItem","updateDraggingHole","updateDraggingLine","updateDraggingVertex","updateDraggingItem","updateRotatingItem","onMouseUp","_mapCursorPosition3","unselectAll","beginDrawingLine","endDrawingLine","endDrawingHole","endDrawingItem","endDraggingLine","endDraggingVertex","endDraggingItem","endDraggingHole","endRotatingItem","miniaturePosition","toolbarPosition","patternUnits","assign","mode2Cursor","mode2PointerEvents","_state2","ToolbarLoadButton","_browser","_toolbarButton2","tooltip","preventDefault","browserUpload","loadProject","JSON","parse","_folderOpenO2","browserDownload","json","fileOutputLink","filename","Date","now","prompt","output","stringify","Blob","url","URL","createObjectURL","setAttribute","href","body","appendChild","click","removeChild","resolve","reject","fileInput","addEventListener","file","files","reader","FileReader","fileEvent","loadedData","readAsText","ToolbarSaveButton","updatedState","_floppyO2","ToolbarComponents","Content","SidebarComponents","FooterBarComponents","Viewer2DComponents","StyleComponents","objectsMap","mappedObject","objectsCompare","constructor","_typeof","ReactPlannerAreasReducer","ReactPlannerHolesReducer","ReactPlannerItemsReducer","ReactPlannerLinesReducer","ReactPlannerGroupsReducer","ReactPlannerProjectReducer","ReactPlannerSceneReducer","ReactPlannerVerticesReducer","ReactPlannerViewer2dReducer","ReactPlannerViewer3dReducer","PropertyLengthMeasure","_math","internalTableStyle","borderCollapse","secondTdStyle","unitContainerStyle","onUpdate","onValid","configs","sourceElement","internalState","_length","_unit","UNIT_CENTIMETER","hook","label","configRest","_objectWithoutProperties","update","lengthInput","unitInput","newLength","toFixedFloat","merged","_convertUnits2","from","to","val","className","PropertyStyle","tableStyle","FormLabel","FormSelect","UNITS_LENGTH","instanceOf","PropertyString","_val","any","Button","ContentContainer","ContentTitle","DeleteButton","FormBlock","FormColorInput","_md","iconTextStyle","textDecoration","Icon2D","Icon3D","ASIDE_STYLE","sortButtonsCb","index","Number","MAX_SAFE_INTEGER","mapButtonsCb","_reactIf2","condition","dom","Toolbar","alterate","toolbarButtons","allowProjectFileSupport","alterateColor","MATERIAL_COLORS","orange","sorter","confirm","newProject","FaFileO","_toolbarSaveButton2","_toolbarLoadButton2","MODE_VIEWING_CATALOG","includes","openCatalog","FaPlus","selectTool3DView","setMode","FaMousePointer","selectTool3DFirstPerson","MdDirectionsRun","undo","MdUndo","MODE_CONFIGURING_PROJECT","openProjectConfigurator","MdSettings","React","maxWidth","sort","ToolbarButton","addGroup","GROUP_ACTIONS","ADD_GROUP","addGroupFromSelected","ADD_GROUP_FROM_SELECTED","selectGroup","groupID","SELECT_GROUP","unselectGroup","UNSELECT_GROUP","addToGroup","elementPrototype","elementID","ADD_TO_GROUP","removeFromGroup","REMOVE_FROM_GROUP","setGroupAttributes","SET_GROUP_ATTRIBUTES","setGroupProperties","SET_GROUP_PROPERTIES","setGroupBarycenter","barycenter","SET_GROUP_BARYCENTER","removeGroup","REMOVE_GROUP","removeGroupAndDeleteElements","REMOVE_GROUP_AND_DELETE_ELEMENTS","groupTranslate","GROUP_TRANSLATE","groupRotate","GROUP_ROTATE","SELECT_AREA","SELECT_ITEM","selectToolDrawingItem","sceneComponentType","SELECT_TOOL_DRAWING_ITEM","UPDATE_DRAWING_ITEM","END_DRAWING_ITEM","BEGIN_DRAGGING_ITEM","UPDATE_DRAGGING_ITEM","END_DRAGGING_ITEM","BEGIN_ROTATING_ITEM","UPDATE_ROTATING_ITEM","END_ROTATING_ITEM","vertexID","BEGIN_DRAGGING_VERTEX","UPDATE_DRAGGING_VERTEX","END_DRAGGING_VERTEX","SELECT_LAYER","ADD_LAYER","SET_LAYER_PROPERTIES","REMOVE_LAYER","SELECT_HOLE","selectToolDrawingHole","SELECT_TOOL_DRAWING_HOLE","UPDATE_DRAWING_HOLE","END_DRAWING_HOLE","BEGIN_DRAGGING_HOLE","UPDATE_DRAGGING_HOLE","END_DRAGGING_HOLE","SELECT_LINE","selectToolDrawingLine","SELECT_TOOL_DRAWING_LINE","BEGIN_DRAWING_LINE","UPDATE_DRAWING_LINE","END_DRAWING_LINE","BEGIN_DRAGGING_LINE","UPDATE_DRAGGING_LINE","END_DRAGGING_LINE","SELECT_TOOL_3D_VIEW","SELECT_TOOL_3D_FIRST_PERSON","UPDATE_2D_CAMERA","SELECT_TOOL_PAN","SELECT_TOOL_ZOOM_OUT","SELECT_TOOL_ZOOM_IN","_redux","_reactRedux","_objectsUtils","_export3","_version","Sidebar","FooterBar","wrapperStyle","flexFlow","ReactPlanner","actionNamespace","store","stateExtractor","plugins","plugin","initCatalog","_props2","contentW","toolbarH","contentH","sidebarH","extractedState","Translator","Catalog","arrayOf","autosaveKey","autosaveDelay","sidebarComponents","footerbarComponents","customContents","softwareSignature","childContextTypes","defaultProps","VERSION","connect","reduxState","dispatch","bindActionCreators","action","historyPush","rollback","_export2","fromJS","set","select","setProperties","NEW_PROJECT","LOAD_PROJECT","sceneJSON","OPEN_CATALOG","CHANGE_CATALOG_PAGE","changeCatalogPage","oldPage","newPage","GO_BACK_TO_CATALOG_PAGE","goBackToCatalogPage","SELECT_TOOL_EDIT","UNSELECT_ALL","SET_PROPERTIES","SET_ITEMS_ATTRIBUTES","setItemsAttributes","itemsAttributes","SET_LINES_ATTRIBUTES","setLinesAttributes","linesAttributes","SET_HOLES_ATTRIBUTES","setHolesAttributes","holesAttributes","REMOVE","UNDO","ROLLBACK","SET_PROJECT_PROPERTIES","setProjectProperties","OPEN_PROJECT_CONFIGURATOR","INIT_CATALOG","UPDATE_MOUSE_COORDS","coords","UPDATE_ZOOM_SCALE","scale","TOGGLE_SNAP","toggleSnap","mask","THROW_ERROR","throwError","error","THROW_WARNING","throwWarning","warning","COPY_PROPERTIES","copyProperties","PASTE_PROPERTIES","pasteProperties","PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY","pushLastSelectedCatalogElementToHistory","element","ALTERATE_STATE","setAlterate","SET_MODE","ADD_HORIZONTAL_GUIDE","coordinate","ADD_VERTICAL_GUIDE","ADD_CIRCULAR_GUIDE","addCircularGuide","radius","REMOVE_HORIZONTAL_GUIDE","guideID","REMOVE_VERTICAL_GUIDE","REMOVE_CIRCULAR_GUIDE","removeCircularGuide","createFromSelectedElements","unselect","addElement","removeElement","setAttributes","setBarycenter","removeAndDeleteElements","translate","rotate","hGuideID","acquireID","setIn","deleteIn","vGuideID","CircularGuide","factoryElement","generateName","selectElement","group","drawingSupport","hasIn","updateIn","_create","stateI","draggingSupport","startPointX","startPointY","originalX","originalY","_state","diffX","diffY","mergeIn","rotatingSupport","deltaX","deltaY","atan2","v","k","updateProperties","itemAttributes","verticesCoords","withMutations","_models","relatedPrototype","relatedID","find","samePoints","related","VertexModel","_defineProperty","List","vertexAttributes","list","elementIndex","findIndex","elems","forceRemove","ID","delete","sceneSnapElements","previousMode","nearestSnap","_snap$point","point","reduce","reducedState","v_id0","v_id1","oldVertexID","oldVertex","oldHoles","orderedVertices","orderVertices","lineType","oldLineLength","pointsDistance","offsetPosition","extendLine","lineProps","lineGroups","contains","removeZeroLengthLines","mergeEqualsVertices","ret","createAvoidingIntersections","addedLine","oldLineGroup","detectAndUpdateAreas","_snap","_state$getIn","_vertices$get","_vertices$get2","addLineSegmentSnap","SNAP_SEGMENT","selectedHole","first","_state$getIn2","_state$getIn3","minVertex","maxVertex","lineLength","absAngleBetweenTwoPoints","cosAlpha","cosWithThreshold","sinAlpha","sinWithThreshold","minLeftVertexHole","maxRightVertexHole","pointPositionOnLineSegment","findEntry","removed","hl","line_holes","stateH","_snap$point2","abs","hAttr","offsetA","offsetB","misc","_unitA","_unitB","mergeDeepIn","x0","y0","_Vertex$add","stateV0","_Vertex$add2","stateV1","_Line$create","stateL1","line0","_Line$create2","stateL2","line1","splitPointOffset","holeOffset","points","zip","skip","filterNot","_ref4$","_ref4$2","_ref6$","_ref6$2","stateL","holeWithOffsetPoint","_holeWithOffsetPoint$","xp","yp","isPointOnLineSegment","newOffset","oldProperties","_line$vertices$map$to","toArray","_line$vertices$map$to2","hasCommonEndpoint","intersection","twoLineSegmentsIntersection","_Line$addFromPoints","addFromPoints","vertexIndex","_Vertex$add3","stateV","_GeometryUtils$horizo","addLineSnap","_GeometryUtils$vertic","_Line$create3","_Line$replaceVertex","replaceVertex","stateLV","_snap$point3","startVertex0X","startVertex0Y","startVertex1X","startVertex1Y","newVertex0X","newVertex0Y","newVertex1X","newVertex1Y","curSnap0","curSnap1","lineVertices","maxV","minV","verticesDistance","holesWithOffsetPosition","pointOnLine","lineAttributes","lAttr","vertexOne","vertexTwo","_unitLength","sameSet","set1","set2","isSuperset","isSubset","LayerModel","removeIn","linesArray","verticesArray","vertexID_to_verticesArrayIndex","verticesArrayIndex_to_vertexID","latestVertexIndex","innerCyclesByVerticesArrayIndex","calculateInnerCycles","innerCyclesByVerticesID","cycle","isClockWiseOrder","reverse","areaIDs","some","areaInUse","areaVerticesCoords","resultAdd","verticesCoordsForArea","holesList","areaVerticesList","flatten","ContainsPoint","doubleHoles","Set","areaHoles","areaHoleID","doubleHoleID","newState","doubleVertices","doubleVertex","reduced","biReduced","layerList","groupLayerID","groupLayerElements","groups","g","GroupModel","layerElements","_loop","actualList","reloadBaricenter","xBar","yBar","elementCount","vID","_GeometryUtils$midPoi","midPoint","xM","yM","_lineVertices$get","_lineVertices$get2","_GeometryUtils$extend","areaVertices","verticesMidPoint","_ref8","_vertices$vertexID","xV","yV","xI","yI","newAlpha","barX","barY","_ref9","_ref10","_vertices$vertexID2","_GeometryUtils$rotate","rotatePointAroundPoint","newX","newY","rI","_GeometryUtils$rotate2","substr","toUpperCase","shortid","generate","historyStructure","last","toPush","time","diff","_immutablediff2","historyPop","_immutablepatch2","pop","arguments","SNAP_POINT","addPointSnap","SNAP_LINE","_ref2$vertices","SNAP_GRID","xCycle","yCycle","xMul","yMul","onXCross","onYCross","addGridSnap","SNAP_GUIDE","horizontal","vertical","hValues","valueSeq","vValues","hVal","vVal","mod","compute_incidences","V","EV","incidence","edge","endpoint","angle","P","v2","compute_angle","i1","i2","get_starting_edge","incidences","ev_mapping","direction","get_next_edge","n_items","out","cycles","ev","compute_ev_mapping","V_cycles","E_cycles","dir_E_cycles","V_cycle","E_cycle","dir_E_cycle","next","start","v_cycles","e_cycles","dir_e_cycles","find_cycles","indexes","e_cycle","v_cycle","find_short_cycles_indexes","indx","rooms_sums","room","positive_count","sum","rm_neg","subgraphs","graph","edges","component","u","getVerticesFromBiconnectedComponent","adj","has","create_array","Edge","Graph","E","w","disc","low","st","parent","children","_BCCUtil","subgraph","edgesArray","innerCycles","addEdge","BCC","_getEdgesOfSubgraphs2","es","_graphCycles2","innerCycleWithCoords","twiceEnclosedArea","_innerCycleWithCoords","_innerCycleWithCoords2","setPropertiesOnSelected","updatePropertiesOnSelected","setAttributesOnSelected","selectedLines","selectedHoles","selectedItems","date","currHistory","selectedElementsHistory","previousPosition","pageIndex","page","take","console","log","PROJECT_ACTIONS","VIEWER2D_ACTIONS","VIEWER3D_ACTIONS","ITEMS_ACTIONS","HOLE_ACTIONS","LINE_ACTIONS","AREA_ACTIONS","SCENE_ACTIONS","VERTEX_ACTIONS","initialState","+ Add Horizontal Giude","+ Add Vertical Giude","2D View","3D First Person","3D View","Altitude","Areas","Cancel","Chain selected Elements to Group","Circular","Configure layer","Configure project","Confirm","Copy","Delete group and all Elements","Delete layer","Delete","Elements on layer {0}","Elements","Get Screenshot","Group [{0}]","Group's Barycenter","Group's Elements","Groups","Guides","Holes","Horizontal","Items","Last Selected","Layer config","Layers","Length","Lines","Load project","Mouse X Coordinate","Mouse Y Coordinate","Name","New Empty Group","New Group from selected","New layer","New project","Open catalog","Pan","Paste","Project config","Properties: [{0}] {1}","Prototype","Reset","Rotation","Save project","Save","Scene Zoom Level","Search Element","Snap to Grid","Snap to Guide","Snap to Line","Snap to Point","Snap to Segment","texture","thickness","Toggle Group Visibility","Un-chain all Group's Elements and remove Group","Un-chain Element from Group","Undo (CTRL-Z)","Unselect","Vertical","Would you want to start a new Project?","Zoom in","Zoom out","PropertyReadOnly","PropertyHidden","PropertyCheckbox","checkboxStyle","checked","PropertyToggle","actionName","PropertyNumber","parseFloat","isNaN","PropertyEnum","Seq","rest","_button2","styleHover","STYLE_HOVER","sliderContainerStyle","_reactRange2","sliderStyle","textContainerStyle","_formTextInput2","BASE_STYLE","input","backgroundImage","WebkitAppearance","WebkitBorderRadius","backgroundPosition","backgroundRepeat","STYLE_INPUT","confirmStyle","focus","valid","showedValue","precision","onInvalid","placeholder","numericInputStyle","currValue","different","saveFn","savedValue","nativeEvent","onFocus","onBlur","onKeyDown","keyCode","which","KEYBOARD_BUTTON_CODE","ENTER","TAB","MdUpdate","oneOfType","MIN_SAFE_INTEGER","_ref$style","propsType","PropertyColor","categories","root","propertyTypes","registerMultiplePropertyType","hasElement","Error","categoryName","hasCategory","validateElement","elementArray","registerElement","Viewer","Editor","propertyTypeArray","registerPropertyType","_toConsumableArray","info","propertyName","propertyConfigs","childs","_this3","validateCategory","addToCategory","elementName","ToolbarScreenshotButton","_reactPlanner","ReactPlannerConstants","ReactPlannerComponents","imageBrowserDownload","imageUri","canvas","getElementsByTagName","toDataURL","_cameraAlt2","svgElements","maxWidthSVGElement","baseVal","serializer","XMLSerializer","img","Image","ctx","getContext","heightAtt","createAttribute","setAttributeNode","widthAtt","fillStyle","fillRect","crossOrigin","src","serializeToString","onload","drawImage","blue","MeshLambertMaterial","grey","black","objectMaxLOD","wardrobe","bottomSide","BoxGeometry","side1","side2","backside","topside","centralAxis","lowShelve","upShelve","upDoor_p1","upDoor_p2","lowDoor_p1","lowDoor_p2","fz","fy","lock_p1","CylinderGeometry","lock_p2","lock_p3","fx","foot","makeObjectMaxLOD","objectMinLOD","makeObjectMinLOD","tag","description","image","defaultValue","render2D","textRotation","newAltitude","wardrobeMaxLOD","clone","deltaZ","wardrobeMinLOD","lod","addLevel","updateMatrix","matrixAutoUpdate","bbox","BoxHelper","linewidth","renderOrder","depthTest","TextureLoader","load","umbrellaStand","roundedRectShape","Shape","moveTo","lineTo","holePath","Path","absellipse","SideGeometry","ExtrudeGeometry","steps","depth","bevelEnabled","bevelThickness","bevelSize","bevelSegments","Side1","Side2","Side3","Side4","geometryBox","downPlane","umbrellaStandMaxLOD","DEPTH","umbrellaStandMinLOD","_loadObj","cached3DTV","newWidth","newDepth","arrow_style","onLoadItem","newHeight","box","mtl","obj","loadObjWithMaterial","circleStyle","cx","cy","side","DoubleSide","cestino","cylinderGeometry1","p1","cylinderGeometry2","p2","HEIGHT","red","MeshPhongMaterial","quadro","threePhasePanel","quadraticCurveTo","extrudeSettings","BackSideGeometry","BackSide","PanelGeometry","PlaneGeometry","meshPanel","geometry0","mesh0","geometry1","mesh1","geometry00","mesh00","geometry11","mesh11","geometry1b","mesh1b","mesh1c","geometry1d","mesh1d","mesh1e","geometry1f","mesh1f","mesh1g","stopperGeometry1","stopper_p1","stopperGeometry2","SphereGeometry","stopper_p2","stopperGeometry3","stopper_p3","stopper2_p1","stopper2_p2","stopper2_p3","handleGeometry","handle_p1","handle2_p1","handle_p2","handle2_p2","geometry2","handle_p3","handle2_p3","cylinderGeometry3","pivot1","pivot2","pivot3","pivot4","cylinderGeometry4","pivot11","pivot22","pivot33","pivot44","pivot1b","pivot2b","pivot3b","pivot4b","cylinderGeometry5","pivot11b","pivot22b","pivot33b","pivot44b","objectMiddleLOD","backSideGeometry","backSide","Panel","makeObjectMiddleLOD","threePhasePanelMaxLOD","threePhasePanelMiddleLOD","threePhasePanelMinLOD","HELVETIKER","glyphs","ο","x_min","x_max","ha","S","¦","/","Τ","Π","ΐ","²","–","Κ","ƒ","ό","J","»","©","ώ","^","«","D","∙","ÿ","$","\\","µ","Ι","Ύ","’","Ν","-","Q","ς","M","Ψ","C","!","{","X","#","ι","Ά",")","ε","Δ","}","‰","—","=","N","ρ","2","¯","Z","Η","Α","B","…","?","H","ν","¶","β","Μ","Ό","Ή","•","¥","(","U","γ","α","F","­",":","Χ","*","†","°","Ξ"," ","Ϋ","0","”","@","Ί","Β","υ","]","χ","8","ί","Ζ","R","5","7","K",",","¨","Y","\"","‹","„","δ","έ","ω","´","±","|","ϋ","§","q","Ω","ύ","™","ή","Θ","®","~","Ε","³","[","L","σ","ζ","θ","Ο","Γ"," ","%","Έ","Ώ","_","Ϊ","+","½","Ρ","'","ª","΅","T","Φ","⁋","Σ","›","<","£","¬","λ","W",">","τ","ξ","&","Λ","I","G","ΰ","`","·","Υ","μ","h",".","φ",";","“","A","6","‘","ϊ","π","ά","O","3","9","¤","κ","4","‡","ψ","η","cssFontWeight","ascender","underlinePosition","cssFontStyle","yMin","xMin","yMax","xMax","resolution","original_font_information","postscript_name","version_string","vendor_url","full_font_name","font_family_name","copyright","trademark","designer","designer_url","unique_font_identifier","license_url","license_description","manufacturer_name","font_sub_family_name","descender","familyName","underlineThickness","_three","_helvetiker_regularTypeface","font","FontLoader","alignmentBaseline","TextGeometry","MeshBasicMaterial","WIDTH","materialTexture","green","cattedra","cattedraZ","p3","cattedraY","p4","boxMaterials","plane","cattedraX","backPlane","leftPlane","rightPlane","drawer","geometry","handle","drawer2","valueObject","chair","p5","p6","geometry50","roundedRectShape2","geometry22","back","aa","makeChair","deskAndChair","boundingBoxDeskAndChair","deltaZDeskAndChair","RADIUS","PlaneMaterial","material_legs","tableMaxLOD","objectMaxLod","table","geometry_legs","leg1","leg2","leg3","leg4","tableMinLOD","objectMinLod","cachedJSONSofa","ObjectLoader","dirname","toJSON","loader","oldElement","STYLE_TITLE","text_alt","textShadow","boxShadow","STYLE_CONTENT","STYLE_ARROW","opened","hover","headComponents","onMouseEnter","toggleHover","onMouseLeave","toggleOpen","FaAngleUp","FaAngleDown","detector","BaseGeometry1","base_p1","BaseGeometry2","base_p2","BaseGeometry3","base_p3","BaseGeometry4","base_p4","geometrySphereUp","led","TorusGeometry","torus","torus2","geometry3","torus3","detectorMaxLOD","valuePosition","detectorMinLOD","steel","yellow","rect_style","sinkMaxLOD","sink","rectShape","rectShape2","extrudeSettings2","mesh2","pipe_p1","pipe_p2","pipe_p3","cylinderGeometry66","tap_p1","tap_p2","cylinderGeometry6","tap_p3","curve","CatmullRomCurve3","geometry7","TubeGeometry","mesh3","cylinderGeometry7","blackMaterial","hole_p1","cylinderGeometry8","whiteMaterial","hole_p2","hole_p3","hole_p4","hole_p5","sinkMinLOD","banco","tMaterial","plane2","plane3","bancoDouble","MeshFaceMaterial","chair2","deskAndChairDouble","darkGrey","boxMaterials2","boxMaterials3","lcdTexture","filterWidth","filterDepth","filterHeight","gridThickness","patternColor","fillValue","rackMaxLOD","schneider","gridVerticalElemGeometry","gridHorizontalElemGeometry","gridVerticalElem","gridHorizontalElem","filterClone","panelSideElemGeometry","panelSideElemLeft","panelSideElemRight","panelSideBackElemGeometry","panelSideElemBack","boxElemGeometry","boxElem","panelSideFrontElemGeometry","panelSideElemFront_P1","panelSideElemFront_P2","panelSideElemFront_P3","planeGeometryFront","planeMaterialFront","overdraw","planeGeometryFront1","panelBase","lcd","panelSideMiddleElemGeometry","panelSideElemMiddle","panelSideElemFooter","rackMinLOD","textTransform","grey2","greenMaterial","routerWifi","cylinderGeometry","led2","led3","routerWifiMaxLOD","routerWifiMinLOD","makeBin","cestino_carta","coloredMaterial","plane1","Vector2","LatheGeometry","etichetta","planeGeometry2","planeMaterial2","bins","metalBin","yellowBin","brownBin","paperBin","glassBin","OldStyleRadiatorMaxLOD","OldStyleRadiator","holePath1","arc","holePath4","holePath7","holePath2","holePath5","holePath8","holePath3","holePath6","holePath9","tube","tube2","tube3","OldStyleRadiatorMinLOD","ModernRadiatorMaxLOD","ModernRadiator","mesh4","mesh5","mesh6","mesh7","mesh8","ModernRadiatorMinLOD","projectorMaxLOD","projector","g1","m1","geometry4","projectorMinLOD","frontTexture","naspo","geometryBody","geometryPlane","naspoMaxLOD","naspoMiddleLOD","naspoMinLOD","textureLoader","power","keyboard","monitorPC","cubeGeometryBase","edge_p0","cubeGeometryBase2","edge_p1","cubeGeometryBase3","edge_p3","cubeGeometryBase4","edge_p4","cubeGeometryBase5","powerGeometry","powerMaterial","powerButton","cubeGeometryBase8","keyboardMesh","monitorPC_MaxLOD","monitorPC_MinLOD","metalDetector","display1","display2","up","cubeGeometryBorderUp","up_border_down","up_border_top","cubeGeometrySide","cubeGeometrySide2","left2","right2","cubeGeometryBorder","left_border","right_border","cubeGeometryBorderLed","left_borderLed","right_borderLed","planeDisplay1","planeMaterial1","planeDisplay2","metalDetectorMaxLOD","metalDetectorMinLOD","lim","etichettaImage","roundedRectShape3","y3","x3","roundedRectShape4","y4","x4","geometry5","supportGeometry","support","roundedRectShape5","geometry6","supportGeometry2","support2","EREG_NUMBER","autoComplete","darkSteel","logo","steelTexture","darkSteelTexture","logoTexture","kitchen","gx","gz","front","oven","handle1","handle2","handle3","knob","knob_p2","fire","centralFire","longSideGrid","longSideGrid2","shortSideGrid","lsgc1","lsgc2","ssgc1","ssgc2","lsgi","cp","kitchenMaxLOD","kitchenMinLOD","registerCategory","sashWindow","venetianBlindWindow","windowCurtain","door","doorDouble","panicDoor","panicDoorDouble","slidingDoor","grabCircleStyle","hoverCircleStyle","ImageFul","handleMouseMove1","handleMouseMove2","hover1","hover2","imageLoadError","toggleHover1","toggleHover2","nodeName","nodeValue","_event$viewerEvent","dist","origin","minX","minY","naturalWidth","naturalHeight","onerror","removeEventListener","half_w","ruler","xlinkHref","dy","AppState","react-planner","PlannerModels","createStore","plannerState","reducer","PlannerPlugins","Keyboard","Autosave","ConsoleDebugger","ReactDOM","render","Provider","_reactContainerDimensions2","MyCatalog","getElementById","_element$properties$t","_imageful2","hubMaxLOD","hub","planeGeometry","planeMaterial","plane_texture","hubMinLOD","cubeMaterial","frontTexture1","rack","greyMaterial","blueMaterial","hanger","base_geom","base","base2_geom","base2","body_geom","g_umbrella_base","umbrella_base","g_umbrella","umbrella","g_hook_body","g_hook","hooks","hook_body","m_umbrella","hangerMaxLOD","hangerMinLOD","logoMaterial","fridge","door1","door2","middlePlane","handle1_p1","handle1_p2","handle1_p3","fridgeMaxLOD","fridgeMinLOD","mtlFile","objFile","imgPath","mtlLoader","MTLLoader","setTexturePath","preload","objLoader","OBJLoader","setMaterials","bodyGeometry","bodyGeometry2","lock","sphereUp","vent_p1","vent_p2","cylinder2","cylinder3","cylinder4","cylinder5","gageImage","material2","gage","cylinder6","cylinder7","labelImage","wrapS","RepeatWrapping","wrapT","repeat","shape2","material4","valve_p1","shape3","valve_p2","safetyValve_p1","safetyValve_p2","cylinderGeometry9","cylinder9","bodyGeometry21","body1","bodyGeometry22","lock2","geometrySphereUp1","sphereUp1","bodyGeometry0","body0","rx","ry","fireExtinguisher2","fireExtinguisher1","fireExtinguisher0","elettricalPannel2","electricalPanel","mat","planeGeometryBase","elettricalPannel1","wood","glassMaterial","makeMonitor","monitor","whiteTexture","edge1","edge2","edge3","edge4","screen","widthA","widthB","newWidthA","newWidthB","scrivaniaMaxLOD","desk","woodTexture","glass","atan","indexMonitor","lastPosition","lastPositionMonitor","incrPosition","geometry8","monitor2","scrivaniaMinLOD","brown","deskdouble","deskdoubleMaxLOD","deskdoubleMinLOD","deskMaxLOD","deskMinLOD","ReactPlannerSharedStyle","AREA_MESH_COLOR","unselected","MESH_SELECTED","LINE_MESH_COLOR","w2","d2","frameMaterial","columnMaxLOD","RADIUS_10","RADIUS_2_5","column","frame1","frame2","frame3","frame4","columnMinLOD","coatHook","sphere","sphere2","geometry_legs2","geometrySphere","sphereTop","cleaning_cart","rz","tire","bearing","nut","coverUp","coverDown","p1Geometry","p1_left","p2Geometry","p2_left","p1_right","p2_right","drawerSupportGeometry","drawer_p1","drawer_p2","baseTop","shelfGeometry","shelf_1","shelf_2","cz","drawerBorderGeometry","drawerBorder_1","drawerBorder_2","longSideGeometry","longSide_1","longSide_2","shortSideGeometry","shortSide_1","shortSide_2","bucket_1","bucket_2","bucket_3","bucket_4","bucket_5","wasteSupport_1","wasteSupport_2","wasteSupport_3","wasteSupportDown_1","wasteSupportDown_2","wasteSupportDown_3","wasteCover","sack","coverPivotGeometry","coverPivot_1","coverPivot_2","delta1","color1","sty","bucketTop_1","bucketTop_2","bucketTop_3","bucketTop_4","bucketTop_5","delta2","color2","bucketTop2_p1","bucketTop2_p2","bucketTop2_p3","bucketTop2_p4","bucketTop2_p5","delta","sdy","bucketTop3_p1","bucketTop3_p2","bucketTop3_p3","bucketTop3_p4","bucketTop3_p5","scy","broom","broom_handle","broom_p2","broom_p3","broom_p4","hook_p1","hook_p2","hook_p3","hook_p4","cleaning_cartMaxLOD","cleaning_cartMinLOD","chairDesk","roundedRectShapeTable","tableGeometry","baseGeometry","baseVerticalGeometry","unionGeometry","footGeometry","closureGeometry","basePiece1","basePiece2","basePiece3","baseVerticalPiece","unionPiece","foot1","foot2","foot3","foot4","closurePiece1","closurePiece2","barGeometry","leftBar","rightBar","baseCurvedGeometry","baseCurvePiece1","baseCurvePiece2","roundedRectShapeStairPiece1","extrudeSettingsStairPiece1","stairGeometryPiece1","stairPiece1","roundedRectShapeStairPiece2","stairGeometryPiece2","stairPiece2","metalGrey","makeBackrest","backrest","backrestGeometry1","backrestGeometry2","NodeGeometry","backrest1","backrest2","backrest3","backrest4","node1","node2","backrestPillow","pillow","CenterGeometry","ShortEdgeGeometry","LongEdgeGeometry","AngleGeometry","edgeShort1","edgeShort2","edgeLong1","edgeLong2","angle1c","angle2c","angle1l","angle2l","makeBackrestPillow","makeBackrestMinLOD","makeBackrestPillowMinLOD","makeWheel","ArmrestGeometry","SupportGeometry","PivotGeometry","SupportGeometryStart","WheelGeometry","InsideWheelGeometry","WheelCoverGeometry","armrest","SupportStart","Wheel","WheelCover","InsideWheel","Armrest1","Armrest2","makeWheelMinLOD","makeArmrest","GeometryP1","GeometryP2","GeometryP3","P1","P2","P3","makeArmrestMinLOD","makePillow","CenterPillow","makeEdge","EdgeGeometry","openEnded","makeBase","CylinderGeometry1","CylinderGeometry2","CylinderGeometry3","CylinderCoverGeometryCylinder2","CylinderGeometry4","Cylinder1","Cylinder2","CoverCylinder1","CoverCylinder2","Cylinder3","wheels","wheel","makeWheels","makeBaseMinLOD","makeWheelsMinLOD","baseChair","bodyChair","SupportPillowGeometry1","SupportPillowGeometry2","ShortHandleGeometry","LongHandleGeometry","HandleGeometry","ArmrestSupportGeometry","SupportPillow1","SupportPillow2","LongHandle","ShortHandle","Handle1","Handle2","ArmrestBase1","ArmrestBase2","Pillow","armrest1","armrest2","makeBody","backrestChair","makeBodyMinLOD","chairDeskMaxLOD","chairDeskMinLOD","LegGeometry","LegMaterial","leg5","leg6","WoodMaterial","backGeometry","chair1","chair0","canteen_cart","r1a","cr1","wheelCoverUp","wheelCoverDown","cr2","b1","cr3","b2","b3","side3","side4","a1","a2","plane4","Dz","plane5","plane6","plane7","plane8","d1","canteen_cartMaxLOD","canteen_cartMinLOD","centralPillar","canteen_table","planeTop","dx","dz","axis1","axis2","axis3","leg","legBase","baseNut1","baseNut2","fsx","fsz","chairBack","fbx","fbz","support1","nutBack1","nutBack2","fdx","fdz","seat","fbsx","fbsz","seatSupport1","seatSupport2","seatNut1","seatNut2","canteen_table_MaxLOD","canteen_table_MinLOD","video_camera","cylinderGeometry2b","geometrySphereUp2","led_1","led_2","cover","locknut1","locknut2","arm_p1","arm_p2","arm_p3","arm_p3b","arm_p4","arm_p5","joint","bezierCurveTo","mesh_1","mesh_2","cover_2","antenna_p1","cylinderGeometry10","antenna_p2","sphere_p1","antenna_p3","sphere_p2","antenna_p4","cylinderGeometry11","antenna_p5","video_cameraMaxLOD","video_cameraMinLOD","safeLoadMapList","mapList","Model","defaultMap","toMap","Grid","Record","DefaultGrids","step","colors","ElementsSet","sharedAttributes","DefaultLayers","layer-1","grids","meta","circular","CatalogElement","ready","options","initialProperties","catList","HistoryStructure","SNAP_MASK","errors","warnings","clipboardProperties","woodMaterial","bookTexture1","bookTexture2","bookTexture3","bookcase","sideGeometry","bottomGeometry","bottomPanel","topGeometry","topPanel","shelveGeometry","shelve","choiceTexture","floor","random","bookGeometry","bookMaterial","book1","book2","book3","book4","book5","bookcaseMaxLOD","bookcaseMinLOD","lavagna","bench","axi2","lx","beam","woodAxis","benchMaxLOD","benchMinLOD","PI_2","paintedtexture","brickTexture","setPath","mat2","balcony","mat3","cubeMaterial2","cubeMaterial3","cubeGeometryBase6","p7","makeObject","flip","none","yes","seats","seatsArray","armchairsMaxLOD","seatArray","setArmchairsPos","listObject","armchairsObject2","armchair","g_base_foot","m_base_foot1","g_base_foot2","m_base_foot2","extrusionSettings","shape_sed","g_sitting","sitting","shape_sc","g_back","g_asse_rotaz2","asse_rotaz2","armrest_1","armrest_2","makeArmchairMaxLOD","makeSeriesArmchair2","armchairsMinLOD","armchairsObject1","base_foot1","base_foot2","makeArmchairMinLOD","makeSeriesArmchair1","air_conditioner","gridHorizontalGeometry","gridHorizontal","gridVerticalGeometry","gridVertical","frontCoverGeometry","frontCover","radius3","flapSupportGeometry","flapLeft","flapRight","points2","flapGeometry","flap1","flap2","air_conditionerMaxLOD","air_conditionerMinLOD","cached3DWindow","holeWidth","holeStyle","initialWidth","initialHeight","initialThickness","STYLE_HOLE_BASE","STYLE_HOLE_SELECTED","createTenda","Tenda","geom","applyMatrix","Matrix4","makeTranslation","meshMaterial","createMesh","ParametricGeometry","geometryAsta","asta","asta2","sphere3","sphere4","venetian","tubo","width1","Models","Plugins","ReactPlannerActions","ReactPlannerReducers","ReactPlannerClasses","ElementsFactories","ReactPlannerUtils","flip_horizontal","flip_vertical","handleSide","holeStyle2","scaleX","scaleY","pX1","pX2","doorShape","doorHole","doorGeometry","doorBar","glassGeometry","HandleGeometry1","HandleGeometry2","makeDoor","turquoise","metalBlue","metalBlueGrey","flip_value","handleSide_value","makePanicDoor","leftDoor","lowBaseDoorGeometry","middleBaseDoorGeometry","highBaseDoorGeometry","BorderCoverDoorGeometry1","BorderCoverDoorGeometry2","MiddleDoorGeometry2","MiddleDoorGeometry1","HighDoorGeometry","LowDoorGeometry","glassCoverVertical","glassCoverHorizontal","lowCoverDoor","middleDoor1","middleDoor2","baseDoor","middleCoverDoor1","middleCoverDoor2","highCoverDoor","highDoor","borderCoverDoor1","borderCoverDoor2","glassVerticalCover1","glassVerticalCover2","glassHorizontalCover1","glassHorizontalCover2","makeDoorStructure","handleBase","Lock","LockPiece1","LockPiece2","LockPiece3","makeLockKey","base1","makeHandleBase","hilt","Geometry_p1","Geometry_p2","Geometry_p3","piece1","piece2","piece3","piece4","makeHilt","makeHandle","leftDoorPivot","makePivot","rightDoorPivot","safetyHandleLeft","makeSafetyHandle","safetyHandleRight","mechanism","BaseGeometry","PieceGeometry1","PieceGeometry2","makeLock","doorLock","DoorLock","doorLockGeometry1","doorLockGeometry2","doorLock1","doorLock2","makeDoorLock","HandleSupportGeometry","PushGeometry","CoverPushGeometry","handleSupport","PushButton","CoverPush1","CoverPush2","DoorPivot","DownPivotGeometry","UpPivotGeometry","downPivot1","upPivot1","downPivot2","upPivot2","arcPath","arcStyle","strokeDasharray","rotateAngle","tX","tY","pY1","pY2","doorLeft","doorRight","geometryLock1","geometryLock2","geometryLock3","lockPiece1","lockPiece2","lockPiece3","GeometryPiece1","GeometryPiece2","GeometryPiece3","doorLeftPivot","doorRightPivot","FirstBlockGeometry","SecondBlockGeometry","FirstBlock","SecondBlock","doorLockLeft","doorLockRight","block","DoorLockGeometry1","DoorLockGeometry2","DoorLock1","DoorLock2","handleSupportGeometry","PushButtonGeometry","PushButtonCoverGeometry","pushButton","pushButtonCover1","pushButtonCover2","arcPath2","THREE","object_pattern","material_library_pattern","material_use_pattern","manager","DefaultLoadingManager","onLoad","onProgress","onError","scope","FileLoader","objects","normals","uvs","materialLibraries","startObject","fromDeclaration","previousMaterial","currentMaterial","_finalize","smooth","startMaterial","libraries","previous","inherited","groupCount","mtllib","isArray","groupStart","groupEnd","cloned","end","lastMultiMaterial","mi","declared","finalize","parseVertexIndex","len","parseNormalIndex","parseUVIndex","addVertex","dst","addVertexPoint","addVertexLine","addNormal","addColor","addUV","addUVLine","addFace","ua","ub","uc","na","nb","nc","vLen","ia","ib","ic","uvLen","nLen","addPointGeometry","vi","addLineGeometry","uvi","replace","lineFirstChar","trimLeft","trim","charAt","vertexData","faceVertices","jl","vertexParts","v3","lineParts","substring","lineUVs","li","llen","parts","pointData","exec","toLowerCase","container","isLine","isPoints","hasVertexColors","buffergeometry","BufferGeometry","addAttribute","Float32BufferAttribute","computeVertexNormals","createdMaterials","miLen","sourceMaterial","LineBasicMaterial","PointsMaterial","materialPoints","sizeAttenuation","materialLine","copy","lights","flatShading","vertexColors","VertexColors","NoColors","LineSegments","Points","timeEnd","EventDispatcher","texturePath","setBaseUrl","warn","setCrossOrigin","setMaterialOptions","materialOptions","delimiter_pattern","materialsInfo","pos","ss","materialCreator","MaterialCreator","setManager","baseUrl","materialsArray","nameLookup","FrontSide","wrap","convert","converted","mn","covmat","prop","save","lprop","normalizeRGB","ignoreZeroRGBs","getIndex","materialName","getAsArray","createMaterial_","params","resolveURL","Color","fromArray","specular","texParams","getTextureParams","loadTexture","specularMap","shininess","bumpMap","matParams","bumpScale","join","mapping","Loader","Handlers","cached3DDoor","STYLE_ARC_BASE","STYLE_ARC_SELECTED","flip_orizzontal","If","geometry_p1","geometry_p2","geometry_p3","geometryBase1","geometryBase2","LockGeometry1","lockGeometry2","lockGeometry3","handleBase1","handleBase2","door_double","LongDoorGeometry","longDoor","ShortDoorGeometry","shortDoor","layerElementsVisible","textures","bricks","uri","lengthRepeatScale","heightRepeatScale","normal","normalScaleX","normalScaleY","painted","WallFactory","compareVertices","linePassingThroughTwoPoints","distancePointFromLine","fAbs","closestPointFromLine","denom","angularCoefficientsDiff","numA","numB","EPSILON","comparator","pa","pb","_sort","lineA","lineB","_sort2","lineSX","lineDX","uA","uB","distancePointFromLineSegment","maxDistance","closestPointFromLineSegment","mapRange","angleBetweenTwoPointsAndOrigin","angleBetweenTwoPoints","newDistance","rad","roundVertex","polygon","pointX","pointY","ax","lup","ay","bx","by","ii","threshold","res","incr","px","py","ox","oy","theta","thetaRad","diff_x","diff_y","len_sq","param","xx","yy","low1","high1","low2","high2","parquet","tile1","ceramic","strand_porcelain","grass","AreaFactory","createArea","textureName","shape","areaMaterial","holeCoords","_layer$getIn","holeShape","createShape","shapeGeometry","ShapeGeometry","assignUVs","applyTexture","updatedArea","noPerf","getObjectByName","needsUpdate","normalMap","normalScale","computeBoundingBox","_geometry$boundingBox","range","faceVertexUvs","faces","face","uvsNeedUpdate","shapeCoords","areaElement","_areaFactory3d","textureValues","ThreeBSP","_length_i","polygons","Polygon","Node","matrix","tree","Face3","vertexNormals","applyMatrix4","Face4","calculateProperties","other_tree","invert","clipTo","build","allPolygons","polygon_vertice_count","vertex_idx_a","vertex_idx_b","vertex_idx_c","verticeUvs","getInverse","polygon_count","vertice_dict","uv","toGeometry","setFromMatrixPosition","setFromRotationMatrix","subtract","cross","normalize","dot","vertice_count","multiplyScalar","side_value","classification","num_positive","num_negative","classifyVertex","coplanar_front","coplanar_back","classifySide","ti","tj","vj","interpolate","scalar","other","lerp","divider","splitPolygon","temp","clipPolygons","buildWall","inverted","app","halfThickness","_geometry","halfDistance","soulMaterial","soul","holeDistance","holeGeometry","holeMesh","wallBSP","holeBSP","wallWithHoleBSP","toMesh","frontMaterial","backMaterial","scaleFactor","texturedFaceDistance","frontFace","halfPI","backFace","updatedWall","newThickness","oldThickness","halfNewThickness","originalThickness","xTemp","zTemp","wallElement","_layer$vertices$get","_layer$vertices$get2","length_5","half_thickness","half_thickness_eps","epsilon","textDistance","STYLE_RECT_SELECTED","STYLE_LINE","STYLE_RECT","_wallFactory3d","textureA","textureB","line-segment","isNear","nearestPoint","priority","lineSnap","LineSnap","LineSegmentSnap","GridSnap","PointSnap","getStore","getState","do","delay","dispatchAction","groupCollapsed","BACKSPACE","DELETE","_projectActions","ESC","getModifierState","ALT","MODE_SNAPPING","tempSnapConfiguartion","CTRL","setAlterateState","TIMEOUT_DELAY","localStorage","getItem","subscribe","timeout","clearTimeout","setItem","hmr","TabsStyle","footerBarStyle","boxSizing","leftTextStyle","borderRight","rightTextStyle","coordStyle","appMessageStyle","globalState","_globalState$get$toJS","errorsJsx","err","toLocaleString","errorLableStyle","errorIconStyle","warningsJsx","warningLableStyle","warningIconStyle","updateSnapMask","_footerToggleButton2","_footerContentButton2","MdAddCircle","toString","MdWarning","tablegroupStyle","PanelGroups","newEmptyHover","newSelectedHover","selectClick","groupsActions","shouldHighlight","rowStyle","dimension","lSum","elProt","FaChain","FaChainBroken","PanelMultiElementsEditor","selectedGroupID","selecteds","selectedJs","SAVE_PROJECT","SELECT_TOOL_UPLOAD_IMAGE","BEGIN_UPLOADING_IMAGE","END_UPLOADING_IMAGE","BEGIN_FITTING_IMAGE","END_FITTING_IMAGE","UNIT_MILLIMETER","UNIT_METER","UNIT_INCH","UNIT_FOOT","UNIT_MILE","Snap","alignItems","justifyContent","STYLE_TOOLTIP","STYLE_TOOLTIP_PIN","500","amber","blue_grey","cyan","deep_orange","deep_purple","indigo","light_blue","light_green","lime","pink","purple","teal","text_main","DEFAULT_LOCALE","locale","translations","registerTranslation","EN","IT","RU","languages","getBrowserLanguages","lang","setLocale","phrase","_len","_key","_len2","_key2","translation","translatedPhrase","match","navigator","language","userLanguage","textInputStyle","whiteSpace","verticalAlign","fonWeight","borderWidth","borderType","BASE_STYLE_SIZE","small","large","customStyle","customStyleHover","styleMerged","oneOf","disposeScene","scene3D","disposeMesh","disposeMaterial","Material","dispose","disposeTexture","disposeGeometry","disposeMultimaterial","saveProject","num","multiplyMatrices","m2","inputStyle","PanelGroupEditor","nextContext","HoleAttributesEditor","attributeFormData","_propertyString2","mapped","_propertyLenghtMeasure2","Infinity","LineAttributesEditor","ItemAttributesEditor","renderedX","renderedY","renderedR","_formNumberInput2","AttributesEditor","_itemAttributesEditor2","_lineAttributesEditor2","_holeAttributesEditor2","attrPorpSeparatorStyle","headActionStyle","iconHeadStyle","ElementEditor","attributesFormData","initAttrData","propertiesFormData","initPropData","updateAttribute","v_a","v_b","startAt","_lengthA","endAt","_lengthB","catalogElement","currentValue","attributeName","v_0","v_1","_GeometryUtils$orderV","_GeometryUtils$orderV2","v_b_new","attr","_orderedVertices","_orderedVertices$","_orderedVertices$2","widthLength","halfWidthLength","lengthValue","offsetUnit","offsetAttribute","_orderedVertices3","_orderedVertices3$","_orderedVertices3$2","appState","_attributesEditor2","MdContentCopy","MdContentPaste","getPropertyType","updateProperty","PanelElementEditor","_elementEditor2","componentRenderer","overflowX","multiselected","selectedGroup","_panelGuides2","_panelLayers2","_panelLayerElements2","_panelGroups2","_panelElementEditor2","_panelGroupEditor2","onKeyUp","ProjectConfigurator","dataWidth","dataHeight","alert","onSubmit","htmlFor","STYLE_BOX","WebkitTransition","STYLE_BOX_HOVER","STYLE_BACK","STYLE_BACK_HOVER","CONTAINER_DIV","CatalogTurnBackPageItem","changePage","_navigateBefore2","alignSelf","justifySelf","STYLE_TITLE_HOVERED","STYLE_NEXT_HOVER","CatalogPageItem","_navigateNext2","breadcrumbStyle","breadcrumbTextStyle","breadcrumbLastTextStyle","breadcrumbTabStyle","CatalogBreadcrumb","names","labelNames","lastElement","_keyboardArrowRight2","STYLE_TITLE_HOVER","STYLE_IMAGE_CONTAINER","STYLE_IMAGE","backgroundSize","STYLE_IMAGE_HOVER","STYLE_PLUS_HOVER","STYLE_DESCRIPTION","_STYLE_DESCRIPTION","STYLE_TAGS","listStyle","STYLE_TAG","CatalogItem","_plusCircle2","containerStyle","itemsStyle","gridGap","searchContainer","searchText","searchInput","historyContainer","historyElementStyle","CatalogList","currentCategory","getCategory","elementsToDisplay","toRet","curr","flattenCategories","filtered","categoriesToDisplay","breadcrumbComponent","breadcrumbsNames","pathName","_catalogBreadcrumb2","pathSize","turnBackButton","_catalogTurnBackPageItem2","selectedHistory","selectedHistoryElements","_contentContainer2","_contentTitle2","cat","_catalogPageItem2","elem","_catalogItem2","firstPersonOnKeyDown","moveForward","moveLeft","moveBackward","moveRight","canJump","velocity","firstPersonOnKeyUp","camera","pitchObject","yawObject","enabled","movementX","mozMovementX","webkitMovementX","movementY","mozMovementY","webkitMovementY","getObject","getDirection","Euler","applyEuler","initPointerLock","rendererElement","pointerlockchange","controls","requestPointerLockEvent","requestPointerLock","mozRequestPointerLock","webkitRequestPointerLock","PointerLockControls","pointerlockChangeEvent","_sceneCreator","_pointerLockNavigation","_firstPersonControls","Viewer3DFirstPerson","stopRendering","renderer","__threeRenderer","WebGLRenderer","preserveDrawingBuffer","prevTime","performance","canvasWrapper","findDOMNode","refs","sceneOnTop","setClearColor","setSize","aspectRatio","PerspectiveCamera","light","AmbientLight","pointLight","PointLight","_initPointerLock","domElement","pointerlockChangeListener","yInitialPosition","keyDownEvent","moveResult","keyUpEvent","pointer","pointerMaterial","depthWrite","pointerGeometry1","linePointer1","pointerGeometry2","linePointer2","renderDepth","pointerGeometry3","linePointer3","toIntersect","mouseVector","raycaster","Raycaster","firstPersonMouseDown","setFromCamera","intersects","intersectObjects","autoClear","translateX","translateY","translateZ","controlObjectPosition","elemID","clear","clearDepth","requestAnimationFrame","renderLists","aspect","updateProjectionMatrix","changedValues","ref","OrbitControls","minDistance","minZoom","maxZoom","minPolarAngle","maxPolarAngle","minAzimuthAngle","maxAzimuthAngle","enableDamping","dampingFactor","enableZoom","zoomSpeed","enableRotate","rotateSpeed","enablePan","keyPanSpeed","autoRotate","autoRotateSpeed","enableKeys","keys","LEFT","UP","RIGHT","BOTTOM","mouseButtons","ORBIT","MOUSE","ZOOM","MIDDLE","PAN","target0","position0","zoom0","getPolarAngle","spherical","phi","getAzimuthalAngle","reset","changeEvent","STATE","NONE","quat","Quaternion","setFromUnitVectors","quatInverse","inverse","lastQuaternion","applyQuaternion","setFromVector3","rotateLeft","sphericalDelta","makeSafe","panOffset","setFromSpherical","lookAt","zoomChanged","distanceToSquared","EPS","quaternion","onContextMenu","onMouseWheel","onTouchStart","onTouchEnd","onTouchMove","startEvent","endEvent","ROTATE","DOLLY","TOUCH_ROTATE","TOUCH_DOLLY","TOUCH_PAN","Spherical","rotateStart","rotateEnd","rotateDelta","panStart","panEnd","panDelta","dollyStart","dollyEnd","dollyDelta","getZoomScale","rotateUp","panLeft","objectMatrix","setFromMatrixColumn","panUp","pan","targetDistance","tan","fov","clientHeight","OrthographicCamera","clientWidth","dollyIn","dollyScale","dollyOut","button","clientX","clientY","handleMouseDownRotate","handleMouseDownDolly","handleMouseDownPan","subVectors","handleMouseMoveRotate","handleMouseMoveDolly","handleMouseMovePan","handleMouseWheel","handleKeyDown","touches","pageX","pageY","handleTouchStartRotate","handleTouchStartDolly","handleTouchStartPan","handleTouchMoveRotate","handleTouchMoveDolly","handleTouchMovePan","passive","defineProperties","noZoom","noRotate","noPan","noKeys","staticMoving","dynamicDampingFactor","streak","counter","wrapper","words","_sharedStyle","gridMesh","_gridHorizontalStreak2","_gridVerticalStreak2","Scene3DViewer","lastMousePosition","renderingID","cameraPositionX","cameraPositionY","cameraPositionZ","spotLight1","SpotLight","mouseDownEvent","offsetX","offsetY","mouseUpEvent","orbitController","spotLightTarget","updateMatrixWorld","orbitControls","cancelAnimationFrame","elementH","textOrientation","writingMode","letterSpacing","insideElementsStyle","rulerStyle","markerStyle","rulerContainer","grdAutoRows","paddingLeft","positiveRulerContainer","negativeRulerContainer","positiveDomElements","elementW","grdAutoColumns","sharedStyles","STYLE_CIRCLE","data-element-root","data-prototype","data-id","data-selected","data-layer","data-part","GridVerticalStreak","rendered","GridHorizontalStreak","renderedGrids","gridID","toList","renderedAreaSize","polygonWithHoles","polygonHole","_polylabel2","areaSize","_areaPolygon2","holePolygon","_layer$vertices$get3","String","fromCharCode","STYLE_CIRCLE2","renderedItem","renderedHoles","renderedHole","renderedLine","renderedRuler","_ruler2","_viewer3d2","_viewer3dFirstPerson2","_catalogList2","_viewer2d2","_projectConfigurator2","CustomContent"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EA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G,kBAAe,eAwHfrqB,IArHAwrC,mBACX7c,cACAC,eACAuiF,eACAriF,eACAO,mBACAC,eACAC,iBACAC,uBACAG,uBACAG,uBACAG,SACAC,OACAC,WACAC,yBACAE,4BACAC,eACAC,sBACAE,oBACAE,cACA7B,sBACAI,0BACA4B,cACAG,gBACAG,kBACAE,mBACAE,gDACAG,iBACAE,WACAC,uBACAE,qBACAC,qBACAG,0BACAE,wBACAC,yBAGWiZ,oBACX7f,sBACAD,uBACAD,kBACAD,oBAGWigB,oBACXngB,sBACAC,+BAGWmgB,iBACXziB,eACAG,2BACAC,sBACAC,mBACAC,sBACAC,uBACAC,oBACAC,sBACAC,uBACAC,qBAGW+hB,gBACXthB,eACAE,4BACAC,uBACAC,oBACAC,uBACAC,wBACAC,sBAGWghB,gBACX/gB,eACAE,4BACAC,sBACAC,uBACAC,oBACAC,uBACAC,wBACAC,sBAGWwgB,gBACX7iB,gBAGW9B,iBACXC,YACAE,0BACAG,gBACAE,kBACAI,gBACAE,qBACAI,wBACAF,wBACAK,wBACAE,gBACAE,oCACAE,mBACAE,iBAGW+iB,iBACX5hB,aACAC,wBACAF,gBACAG,iBAGW2hB,kBACXjiB,yBACAC,0BACAC,wBAIWjqB,YAAY,aACZC,qBAAkB,kBAClBC,sBAAmB,mBACnBC,iBAAc,cAGdG,IAFAF,eAAe,eACfC,uBAAuB,uBACvBC,4BAA4B,6BAC5BI,wBAAqB,qBACrBC,0BAAuB,uBACvBC,wBAAqB,qBACrBC,wBAAqB,qBACrBN,uBAAoB,oBACpBC,uBAAoB,oBACpBC,uBAAoB,oBACpBO,wBAAqB,qBACrBD,0BAAuB,uBACvBD,wBAAqB,qBAyCrB2wG,IAxCAzrF,uBAAuB,uBACvBW,2BAA2B,2BA8B3BmnF,iBACX9tG,GAAWC,GAAiBC,GAAkBC,GAC9CG,GAA2BC,GAAmBC,GAC9CC,GAAmBC,GAAoBC,GACvCC,GAAoBC,GAAoBC,GACxCC,GAAsBC,IAIXywG,kBAAk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A8B,EAAA,oHCCau1B,UAAU","file":"37cefb9b14a5dabb56df.app.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([2537,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import * as GeometryUtils from './geometry';\nimport * as GraphInnerCycles from './graph-inner-cycles';\nimport * as MathUtils from './math';\nimport * as SnapUtils from './snap';\nimport * as SnapSceneUtils from './snap-scene';\nimport * as history from './history';\nimport * as ObjectUtils from './objects-utils';\nimport IDBroker from './id-broker';\nimport NameGenerator from './name-generator';\n\nexport {\n GeometryUtils,\n GraphInnerCycles,\n MathUtils,\n SnapUtils,\n SnapSceneUtils,\n history,\n IDBroker,\n NameGenerator,\n ObjectUtils\n};\n\nexport default {\n GeometryUtils,\n GraphInnerCycles,\n MathUtils,\n SnapUtils,\n SnapSceneUtils,\n history,\n IDBroker,\n NameGenerator,\n ObjectUtils\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\nimport IconClose from 'react-icons/lib/fa/close';\n\nconst labelContainerStyle = {\n width: 'auto',\n display: 'inline-block',\n margin:0,\n padding:'0px 5px 0px 0px'\n};\n\nconst toggleButtonStyle = {\n color: '#CCC',\n textAlign: 'center',\n cursor: 'pointer',\n userSelect: 'none'\n};\n\nconst toggleButtonStyleOver = {\n ...toggleButtonStyle,\n color: SharedStyle.COLORS.white\n};\n\nconst contentContainerStyleActive = {\n position:'fixed',\n width:'calc( 100% - 2px )',\n height:'40%',\n left:0,\n bottom:20,\n backgroundColor:SharedStyle.PRIMARY_COLOR.alt,\n borderTop: SharedStyle.PRIMARY_COLOR.border,\n zIndex:0,\n padding:0,\n margin:0,\n transition:'all 300ms ease'\n};\n\nconst contentContainerStyleInactive = {\n ...contentContainerStyleActive,\n visibility:'hidden',\n height:0\n};\n\nconst contentHeaderStyle = {\n position:'relative',\n width:'100%',\n height:'2em',\n top:0,\n left:0,\n borderBottom:SharedStyle.PRIMARY_COLOR.border\n};\n\nconst titleStyle = {\n position:'relative',\n height:'2em',\n lineHeight:'2em',\n marginLeft:'1em'\n};\n\nconst contentAreaStyle = {\n position:'relative',\n width:'100%',\n height:'calc( 100% - 2em )',\n padding:'1em',\n overflowY:'auto'\n};\n\nconst iconCloseStyleOut = {\n position:'absolute',\n width:'2em',\n height:'2em',\n right:0,\n top:0,\n padding:'0.5em',\n borderLeft:SharedStyle.PRIMARY_COLOR.border,\n cursor:'pointer'\n};\n\nconst iconCloseStyleOver = {\n ...iconCloseStyleOut,\n color:SharedStyle.COLORS.white,\n backgroundColor:SharedStyle.SECONDARY_COLOR.alt\n};\n\nconst iconStyle = {\n width:'15px',\n height:'15px',\n marginTop:'-2px',\n marginRight:'2px'\n};\n\nconst textStyle = {\n position: 'relative'\n}\n\nexport default class FooterContentButton extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n over: false,\n closeOver: false,\n active: this.props.toggleState || false\n };\n }\n\n toggleOver(e) { this.setState({ over: true }); }\n toggleOut(e) { this.setState({ over: false }); }\n\n toggle(e) {\n let isActive = !this.state.active;\n this.setState({ active: isActive });\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n if( this.state.over != nextState.over ) return true;\n if( this.state.closeOver != nextState.closeOver ) return true;\n if( this.state.active != nextState.active ) return true;\n\n if( this.props.content.length != nextProps.content.length ) return true;\n if( this.props.toggleState != nextProps.toggleState ) return true;\n\n return false;\n }\n\n componentWillReceiveProps(nextProps) {\n if( nextProps.toggleState != this.props.toggleState )\n this.state.active = nextProps.toggleState;\n }\n\n render() {\n\n let s = this.state;\n let p = this.props;\n\n let LabelIcon = p.icon || null;\n let labelIconStyle = p.iconStyle || {};\n let labelTextStyle = p.textStyle || {};\n let inputTitleStyle = p.titleStyle || {};\n\n return (\n
\n this.toggle(e)}\n title={p.title}\n >\n \n {p.text}\n
\n
\n
\n {p.title}\n this.setState({closeOver:true})}\n onMouseOut={e => this.setState({closeOver:false})}\n onClick={e => this.toggle(e)}\n />\n
\n
\n {p.content}\n
\n
\n \n );\n }\n}\n\nFooterContentButton.propTypes = {\n state: PropTypes.object.isRequired,\n text: PropTypes.string.isRequired,\n textStyle: PropTypes.object,\n icon: PropTypes.func,\n iconStyle: PropTypes.object,\n content: PropTypes.array.isRequired,\n toggleState: PropTypes.bool,\n title: PropTypes.string,\n titleStyle: PropTypes.object\n};\n\nFooterContentButton.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n viewer2DActions: PropTypes.object.isRequired,\n viewer3DActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nconst toggleButtonStyle = {\n width: '5.5em',\n color: '#CCC',\n textAlign: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n border: '1px solid transparent',\n margin: '-1px 5px 0 5px',\n borderRadius: '2px',\n display: 'inline-block'\n};\n\nconst toggleButtonStyleOver = {\n ...toggleButtonStyle,\n backgroundColor: '#1c82c6',\n border: '1px solid #FFF',\n color: SharedStyle.COLORS.white\n};\n\nexport default class FooterToggleButton extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n over: false,\n active: this.props.toggleState || false\n };\n }\n\n toggleOver(e) { this.setState({ over: true }); }\n toggleOut(e) { this.setState({ over: false }); }\n\n toggle(e) {\n let isActive = !this.state.active;\n this.setState({ active: isActive });\n\n if (isActive)\n {\n this.props.toggleOn();\n }\n else\n {\n this.props.toggleOff();\n }\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n if( this.state.over != nextState.over ) return true;\n if( this.state.active != nextState.active ) return true;\n if( this.props.toggleState != nextProps.toggleState ) return true;\n\n return false;\n }\n\n componentWillReceiveProps(nextProps) {\n if( nextProps.toggleState != this.props.toggleState )\n this.state.active = nextProps.toggleState;\n }\n\n render() {\n\n return (\n this.toggleOver(e)}\n onMouseOut={e => this.toggleOut(e)}\n onClick={e => this.toggle(e)}\n title={this.props.title}\n >\n {this.props.text}\n \n );\n }\n}\n\nFooterToggleButton.propTypes = {\n state: PropTypes.object.isRequired,\n toggleOn: PropTypes.func.isRequired,\n toggleOff: PropTypes.func.isRequired,\n text: PropTypes.string.isRequired,\n toggleState: PropTypes.bool,\n title: PropTypes.string\n};\n\nFooterToggleButton.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n viewer2DActions: PropTypes.object.isRequired,\n viewer3DActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from './panel';\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../constants';\nimport * as SharedStyle from '../../shared-style';\nimport MdSearch from 'react-icons/lib/md/search';\n\nconst VISIBILITY_MODE = {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n};\n\nconst contentArea = {\n height: 'auto',\n maxHeight: '15em',\n overflowY: 'auto',\n padding: '0.25em 1.15em',\n cursor: 'pointer',\n marginBottom: '1em',\n userSelect: 'none'\n};\n\nconst elementStyle = {\n width: 'auto',\n height: '2.5em',\n margin: '0.25em 0.25em 0 0',\n padding: '0.5em',\n textAlign: 'center',\n display: 'inline-block',\n border: '1px solid #CCC',\n borderRadius: '0.2em'\n};\n\nconst elementSelectedStyle = {\n ...elementStyle,\n color: SharedStyle.SECONDARY_COLOR.main,\n borderColor: SharedStyle.SECONDARY_COLOR.main,\n};\n\nconst categoryDividerStyle = {\n paddingBottom: '0.5em',\n borderBottom: '1px solid #888',\n};\n\nconst tableSearchStyle = {width: '100%', marginTop: '0.8em'};\nconst searchIconStyle = {fontSize: '1.5em'};\nconst searchInputStyle = {fontSize: '1em', width: '100%', height: '1em', padding: '1em 0.5em'};\n\nexport default class PanelLayerElement extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n let layer = props.layers.get(props.selectedLayer);\n let elements = {\n lines: layer.lines,\n holes: layer.holes,\n items: layer.items,\n };\n\n this.state = {\n elements,\n matchString: '',\n matchedElements: elements\n };\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n if (this.state.matchString !== nextState.matchString) return true;\n\n let oldElements = this.state.elements;\n let newElements = nextState.elements;\n\n if(\n oldElements.lines.hashCode() !== newElements.lines.hashCode() ||\n oldElements.holes.hashCode() !== newElements.holes.hashCode() ||\n oldElements.items.hashCode() !== newElements.items.hashCode()\n ) return true;\n\n return false;\n }\n\n componentWillReceiveProps(nextProps) {\n let layer = nextProps.layers.get(nextProps.selectedLayer);\n\n if ( this.props.layers.hashCode() === nextProps.layers.hashCode() ) return;\n\n let elements = {\n lines: layer.lines,\n holes: layer.holes,\n items: layer.items,\n };\n\n if (this.state.matchString !== '') {\n let regexp = new RegExp(this.state.matchString, 'i');\n let filterCb = el => regexp.test(el.get('name'));\n\n this.setState({\n matchedElements: {\n elements,\n lines: elements.lines.filter(filterCb),\n holes: elements.holes.filter(filterCb),\n items: elements.items.filter(filterCb)\n }\n });\n } else {\n this.setState({elements, matchedElements: elements});\n }\n }\n\n matcharray(text) {\n if (text === '') {\n this.setState({\n matchString: '',\n matchedElements: this.state.elements\n });\n return;\n }\n\n let regexp = new RegExp(text, 'i');\n let filterCb = el => regexp.test(el.get('name'));\n\n this.setState({\n matchString: text,\n matchedElements: {\n lines: this.state.elements.lines.filter(filterCb),\n holes: this.state.elements.holes.filter(filterCb),\n items: this.state.elements.items.filter(filterCb)\n }\n });\n }\n\n render() {\n if (!VISIBILITY_MODE[this.props.mode]) return null;\n\n let layer = this.props.layers.get(this.props.selectedLayer);\n\n return (\n \n
e.stopPropagation()}>\n\n \n \n \n \n \n \n \n
{\n this.matcharray(e.target.value);\n }}/>
\n\n {\n this.state.matchedElements.lines.count() ?\n
\n

{this.context.translator.t('Lines')}

\n {\n this.state.matchedElements.lines.entrySeq().map(([lineID, line]) => {\n return (\n this.context.linesActions.selectLine(layer.id, line.id)}\n style={line.selected ? elementSelectedStyle : elementStyle}\n >\n {line.name}\n
\n )\n })\n }\n
\n : null\n }\n\n {\n this.state.matchedElements.holes.count() ?\n
\n

{this.context.translator.t('Holes')}

\n {\n this.state.matchedElements.holes.entrySeq().map(([holeID, hole]) => {\n return (\n this.context.holesActions.selectHole(layer.id, hole.id)}\n style={hole.selected ? elementSelectedStyle : elementStyle}\n >\n {hole.name}\n
\n )\n })\n }\n \n : null\n }\n\n {\n this.state.matchedElements.items.count() ?\n
\n

{this.context.translator.t('Items')}

\n {\n this.state.matchedElements.items.entrySeq().map(([itemID, item]) => {\n return (\n this.context.itemsActions.selectItem(layer.id, item.id)}\n style={item.selected ? elementSelectedStyle : elementStyle}\n >\n {item.name}\n
\n )\n })\n }\n \n : null\n }\n\n \n
\n );\n }\n\n}\n\nPanelLayerElement.propTypes = {\n mode: PropTypes.string.isRequired,\n layers: PropTypes.object.isRequired,\n};\n\nPanelLayerElement.contextTypes = {\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from './panel';\nimport * as SharedStyle from '../../shared-style';\nimport { Tab, Tabs, TabList, TabPanel } from 'react-tabs';\nimport { FaPencil, FaTrash, FaClose } from 'react-icons/lib/fa';\nimport { FormNumberInput } from '../../components/style/export';\n\nconst tabStyle = { margin: '1em' };\n\nconst iconStyle = {\n fontSize: '14px',\n margin: '2px',\n cursor: 'pointer'\n};\n\nconst addGuideStyle = {\n cursor: 'pointer',\n height: '2em'\n};\n\nconst tableTabStyle = {\n width: '100%',\n textAlign: 'center'\n};\n\nexport default class PanelGuides extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n addHGVisible: true,\n addVGVisible: true,\n addCGVisible: true,\n };\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n return (\n this.state.addHGVisible !== nextState.addHGVisible ||\n this.state.addVGVisible !== nextState.addVGVisible ||\n this.state.addCGVisible !== nextState.addCGVisible ||\n this.props.state.getIn(['scene', 'guides']).hashCode() !== nextProps.state.getIn(['scene', 'guides']).hashCode()\n );\n }\n\n render() {\n let { state } = this.props;\n let { projectActions, translator } = this.context;\n let { guides } = state.scene;\n\n return (\n \n \n \n {translator.t('Horizontal')}\n {translator.t('Vertical')}\n {/*{translator.t('Circular')}*/}\n \n\n \n \n \n {\n guides.get('horizontal').entrySeq().map(([hgKey, hgVal], ind) => {\n return (\n \n \n \n \n \n );\n })\n }\n {\n this.state.addHGVisible ?\n \n \n :\n \n \n \n \n }\n \n
{ind + 1}{hgVal}\n {/**/}\n projectActions.removeHorizontalGuide(hgKey)} />\n
this.setState({ 'addHGVisible': false })}>{translator.t('+ Add Horizontal Giude')}
\n {\n projectActions.addHorizontalGuide(e.target.value);\n return this.setState({ 'addHGVisible': true });\n }}\n min={0}\n max={this.props.state.getIn(['scene', 'height'])} />\n this.setState({ 'addHGVisible': true })} />
\n
\n \n \n \n {\n guides.get('vertical').entrySeq().map(([hgKey, hgVal], ind) => {\n return (\n \n \n \n \n \n );\n })\n }\n {\n this.state.addVGVisible ?\n \n \n :\n \n \n \n \n }\n \n
{ind + 1}{hgVal}\n {/**/}\n projectActions.removeVerticalGuide(hgKey)} />\n
this.setState({ 'addVGVisible': false })}>{translator.t('+ Add Vertical Giude')}
\n {\n projectActions.addVerticalGuide(e.target.value);\n return this.setState({ 'addVGVisible': true });\n }}\n min={0}\n max={this.props.state.getIn(['scene', 'height'])} />\n this.setState({ 'addVGVisible': true })} />
\n
\n {/*\n TODO Circular Giudes\n */}\n
\n
\n );\n }\n\n\n}\n\nPanelGuides.propTypes = {\n state: PropTypes.object.isRequired\n};\n\nPanelGuides.contextTypes = {\n translator: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport { Map } from 'immutable';\nimport Panel from './panel';\nimport {TiPlus, TiDelete} from 'react-icons/lib/ti';\nimport {FaPencil, FaTrash, FaEye} from 'react-icons/lib/fa';\nimport {\n FormTextInput,\n FormNumberInput,\n FormSubmitButton,\n FormSlider,\n CancelButton\n} from '../style/export';\n\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../constants';\nimport * as SharedStyle from '../../shared-style';\n\nconst VISIBILITY_MODE = {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN,\n MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM,\n MODE_DRAGGING_LINE, MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE,\n MODE_ROTATING_ITEM, MODE_UPLOADING_IMAGE, MODE_FITTING_IMAGE\n};\n\nconst styleEditButton = {\n cursor: 'pointer',\n marginLeft: '5px',\n border: '0px',\n background: 'none',\n color: SharedStyle.COLORS.white,\n fontSize: '14px',\n outline: '0px'\n};\n\nconst tableLayerStyle = {\n width: '100%',\n cursor: 'pointer',\n overflowY: 'auto',\n maxHeight: '20em',\n display: 'block',\n padding: '0 1em',\n marginLeft: '1px'\n};\n\nconst iconColStyle = {width: '2em'};\nconst styleHoverColor = {color: SharedStyle.SECONDARY_COLOR.main};\nconst styleEditButtonHover = {...styleEditButton, ...styleHoverColor};\nconst styleAddLabel = {fontSize: '10px', marginLeft: '5px'};\nconst styleEyeVisible = {fontSize: '1.25em'};\nconst styleEyeHidden = {...styleEyeVisible, color: '#a5a1a1'};\nconst firstTdStyle = {width: '6em'};\nconst newLayerLableStyle = {margin: '0.5em 0', fontSize: '1.3em', cursor: 'pointer', textAlign: 'center'};\nconst newLayerLableHoverStyle = {...newLayerLableStyle, ...styleHoverColor};\nconst layerInputTableStyle = {width: '100%', borderSpacing: '2px 0', padding: '5px 15px'};\nconst inputTableButtonStyle = {float: 'right', marginTop: '0.5em', borderSpacing: '0'};\n\nexport default class PanelLayers extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n headHovered: false,\n layerAddUIVisible: false,\n editingLayer: new Map()\n };\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n if(\n this.props.state.scene.layers.size !== nextProps.state.scene.layers.size ||\n nextState.layerAddUIVisible != this.state.layerAddUIVisible ||\n this.state.editingLayer.hashCode() !== nextState.editingLayer.hashCode() ||\n this.props.state.sceneHistory.hashCode() !== nextProps.state.sceneHistory.hashCode()\n ) return true;\n\n return false;\n }\n\n addLayer(e) {\n e.stopPropagation();\n if (!this.state.layerAddUIVisible) {\n this.context.sceneActions.addLayer('', 0);\n this.setState({layerAddUIVisible: false});\n }\n else this.setState({layerAddUIVisible: !this.state.layerAddUIVisible});\n }\n\n resetLayerMod(e) {\n e.stopPropagation();\n this.setState({layerAddUIVisible: false, editingLayer: new Map()});\n }\n\n updateLayer(e, layerData) {\n e.stopPropagation();\n let {id, name, opacity, altitude, order} = layerData.toJS();\n\n altitude = parseInt(altitude);\n\n this.context.sceneActions.setLayerProperties(id, {name, opacity, altitude, order});\n this.setState({layerAddUIVisible: false, editingLayer: new Map()});\n }\n\n delLayer(e, layerID) {\n e.stopPropagation();\n this.context.sceneActions.removeLayer(layerID);\n this.setState({layerAddUIVisible: false, editingLayer: new Map()});\n }\n\n render() {\n if (!VISIBILITY_MODE[this.props.state.mode]) return null;\n\n let scene = this.props.state.scene;\n let isLastLayer = scene.layers.size === 1;\n\n return (\n \n \n \n \n \n \n \n \n \n \n {\n scene.layers.entrySeq().map(([layerID, layer]) => {\n\n let selectClick = e => this.context.sceneActions.selectLayer(layerID);\n let configureClick = e => this.setState({editingLayer: layer, layerAddUIVisible: true});\n\n let swapVisibility = e => {\n e.stopPropagation();\n this.context.sceneActions.setLayerProperties(layerID, {visible: !layer.visible});\n };\n\n let isCurrentLayer = layerID === scene.selectedLayer;\n\n return (\n \n \n \n \n \n \n \n );\n\n })\n }\n \n
{this.context.translator.t('Altitude')}{this.context.translator.t('Name')}
\n {\n !isCurrentLayer ?\n \n : null\n }\n \n \n \n {\n !isLastLayer ?\n this.delLayer(e, layerID) }\n style={!isCurrentLayer ? styleEditButton : styleEditButtonHover}\n title={this.context.translator.t('Delete layer')}\n />\n : null\n }\n \n [ h : {layer.altitude} ]\n \n {layer.name}\n
\n this.setState({headHovered: true}) }\n onMouseOut={ () => this.setState({headHovered: false}) }\n onClick={ (e) => this.addLayer(e) }\n >\n { !this.state.layerAddUIVisible ? : }\n {this.context.translator.t('New layer')}\n

\n\n {\n this.state.layerAddUIVisible && this.state.editingLayer ?\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{this.context.translator.t('Name')}:\n this.setState({editingLayer: this.state.editingLayer.merge({name: e.target.value})})}\n />\n
{this.context.translator.t('opacity')}:\n this.setState({editingLayer: this.state.editingLayer.merge({opacity: (e.target.value / 100)})})}\n />\n
{this.context.translator.t('altitude')}:\n this.setState({editingLayer: this.state.editingLayer.merge({altitude: e.target.value})})}\n />\n
{this.context.translator.t('order')}:\n this.setState({editingLayer: this.state.editingLayer.merge({order: e.target.value})})}\n />\n
\n \n \n \n \n \n \n \n
{\n this.resetLayerMod(e);\n } }>{this.context.translator.t('Reset')} {\n this.updateLayer(e, this.state.editingLayer);\n } }>{this.context.translator.t('Save')}
\n
\n : null\n }\n\n
\n )\n }\n\n}\n\nPanelLayers.propTypes = {\n state: PropTypes.object.isRequired,\n};\n\nPanelLayers.contextTypes = {\n sceneActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import * as Three from 'three';\nimport createGrid from './grid-creator';\nimport { disposeObject } from './three-memory-cleaner';\n\nexport function parseData(sceneData, actions, catalog) {\n\n let planData = {};\n\n planData.sceneGraph = {\n unit: sceneData.unit,\n layers: {},\n busyResources: { layers: {} },\n width: sceneData.width,\n height: sceneData.height,\n LODs: {}\n };\n\n planData.plan = new Three.Object3D();\n planData.plan.name = 'plan';\n\n // Add a grid to the plan\n planData.grid = createGrid(sceneData);\n planData.grid.name = 'grid';\n\n planData.boundingBox = new Three.Box3().setFromObject(planData.grid);\n planData.boundingBox.name = 'boundingBox';\n\n let promises = [];\n\n sceneData.layers.forEach(layer => {\n\n if (layer.id === sceneData.selectedLayer || layer.visible) {\n promises = promises.concat(createLayerObjects(layer, planData, sceneData, actions, catalog));\n }\n });\n\n Promise.all(promises).then(value => updateBoundingBox(planData));\n\n return planData;\n}\n\nfunction createLayerObjects(layer, planData, sceneData, actions, catalog) {\n\n let promises = [];\n\n planData.sceneGraph.layers[layer.id] = {\n id: layer.id,\n lines: {},\n holes: {},\n areas: {},\n items: {},\n visible: layer.visible,\n altitude: layer.altitude\n };\n\n planData.sceneGraph.busyResources.layers[layer.id] = {\n id: layer.id,\n lines: {},\n holes: {},\n areas: {},\n items: {}\n };\n\n // Import lines\n layer.lines.forEach(line => {\n promises.push(addLine(sceneData, planData, layer, line.id, catalog, actions.linesActions));\n line.holes.forEach(holeID => {\n promises.push(addHole(sceneData, planData, layer, holeID, catalog, actions.holesActions));\n });\n });\n\n // Import areas\n layer.areas.forEach(area => {\n promises.push(addArea(sceneData, planData, layer, area.id, catalog, actions.areaActions));\n });\n\n // Import items\n layer.items.forEach(item => {\n promises.push(addItem(sceneData, planData, layer, item.id, catalog, actions.itemsActions));\n });\n\n return promises;\n}\n\nexport function updateScene(planData, sceneData, oldSceneData, diffArray, actions, catalog) {\n\n let splitted = diffArray.map( el => { return { op: el.op, path: el.path.split('/'), value: el.value }; } );\n let filteredDiffs = filterDiffs(splitted, sceneData, oldSceneData);\n\n //***testing additional filter***\n filteredDiffs = filteredDiffs.filter( ({path}) => path[3] !== 'selected' );\n filteredDiffs = filteredDiffs.filter( ({path}) => path[1] !== 'groups' );\n //*******************************\n\n filteredDiffs.forEach(({op, path, value}) => {\n /* First of all I need to find the object I need to update */\n if (path[1] === 'layers') {\n\n let layer = sceneData.getIn(['layers', path[2]]);\n\n if (path.length === 3 && op === 'remove') {\n removeLayer(path[2], planData);\n } else if (path.length > 3) {\n switch (op) {\n case 'replace':\n replaceObject(path, layer, planData, actions, sceneData, oldSceneData, catalog);\n break;\n case 'add':\n addObject(path, layer, planData, actions, sceneData, oldSceneData, catalog);\n break;\n case 'remove':\n removeObject(path, layer, planData, actions, sceneData, oldSceneData, catalog);\n break;\n }\n }\n } else if (path[1] === 'selectedLayer') {\n let layerSelectedID = value;\n let layerSelected = sceneData.getIn(['layers', layerSelectedID]);\n // First of all I check if the new selected layer is not visible\n if (!layerSelected.visible) {\n // I need to create the objects for this layer\n let promises = createLayerObjects(layerSelected, planData, sceneData, actions, catalog);\n Promise.all(promises).then(() => updateBoundingBox(planData));\n }\n\n let layerGraph = planData.sceneGraph.layers[oldSceneData.selectedLayer];\n\n if (layerGraph) {\n if (!layerGraph.visible) {\n // I need to remove the objects for this layer\n for (let lineID in layerGraph.lines) removeLine(planData, layerGraph.id, lineID);\n for (let areaID in layerGraph.areas) removeArea(planData, layerGraph.id, areaID);\n for (let itemID in layerGraph.items) removeItem(planData, layerGraph.id, itemID);\n for (let holeID in layerGraph.holes) removeHole(planData, layerGraph.id, holeID);\n }\n }\n }\n });\n return planData;\n}\n\nfunction replaceObject(modifiedPath, layer, planData, actions, sceneData, oldSceneData, catalog) {\n\n let promises = [];\n\n switch (modifiedPath[3]) {\n case 'vertices':\n if (modifiedPath[5] !== 'selected') {\n let vertex = layer.getIn(['vertices', modifiedPath[4]]);\n\n if (modifiedPath[5] === 'x' || modifiedPath[5] === 'y') {\n vertex.lines.forEach(lineID => {\n let lineHoles = oldSceneData.getIn(['layers',layer.id, 'lines', lineID, 'holes' ]);\n if( lineHoles ) lineHoles.forEach(holeID => { replaceObject([0, 0, 0, 'holes', holeID, 'selected'], layer, planData, actions, sceneData, oldSceneData, catalog); });\n return replaceObject([0, 0, 0, 'lines', lineID], layer, planData, actions, sceneData, oldSceneData, catalog);\n });\n vertex.areas.forEach(areaID => replaceObject([0, 0, 0, 'areas', areaID], layer, planData, actions, sceneData, oldSceneData, catalog));\n }\n\n if (modifiedPath[5] === 'areas') {\n let areaID = vertex.getIn(['areas', ~~modifiedPath[6]]);\n replaceObject([0, 0, 0, 'areas', areaID], layer, planData, actions, sceneData, oldSceneData, catalog);\n }\n }\n break;\n case 'holes':\n let newHoleData = layer.getIn(['holes', modifiedPath[4]]);\n\n if (catalog.getElement(newHoleData.type).updateRender3D) {\n promises.push(\n updateHole(\n sceneData,\n oldSceneData,\n planData,\n layer,\n modifiedPath[4],\n modifiedPath.slice(5),\n catalog,\n actions.holesActions,\n () => removeHole(planData, layer.id, newHoleData.id),\n () => addHole(sceneData, planData, layer, newHoleData.id, catalog, actions.holesActions)\n )\n );\n }\n else {\n let lineID = newHoleData.line;\n if (modifiedPath[5] === 'selected') {\n // I remove only the hole without removing the wall\n removeHole(planData, layer.id, newHoleData.id);\n promises.push(addHole(sceneData, planData, layer, newHoleData.id, catalog, actions.holesActions));\n }\n else {\n layer.getIn(['lines', lineID, 'holes']).forEach(holeID => {\n removeHole(planData, layer.id, holeID);\n });\n removeLine(planData, layer.id, lineID);\n promises.push(addLine(sceneData, planData, layer, lineID, catalog, actions.linesActions));\n layer.getIn(['lines', lineID, 'holes']).forEach(holeID => {\n promises.push(addHole(sceneData, planData, layer, holeID, catalog, actions.holesActions));\n });\n }\n }\n break;\n case 'lines':\n let line = layer.getIn(['lines', modifiedPath[4]]);\n\n if (catalog.getElement(line.type).updateRender3D) {\n promises.push(\n updateLine(\n sceneData,\n oldSceneData,\n planData,\n layer,\n modifiedPath[4],\n modifiedPath.slice(5),\n catalog,\n actions.linesActions,\n () => removeLine(planData, layer.id, modifiedPath[4]),\n () => addLine(sceneData, planData, layer, modifiedPath[4], catalog, actions.linesActions)\n )\n );\n }\n else {\n removeLine(planData, layer.id, modifiedPath[4]);\n promises.push(addLine(sceneData, planData, layer, modifiedPath[4], catalog, actions.linesActions));\n }\n break;\n case 'areas':\n let area = layer.getIn(['areas', modifiedPath[4]]);\n\n if (catalog.getElement(area.type).updateRender3D) {\n promises.push(\n updateArea(\n sceneData,\n oldSceneData,\n planData,\n layer,\n modifiedPath[4],\n modifiedPath.slice(5),\n catalog,\n actions.areaActions,\n () => removeArea(planData, layer.id, modifiedPath[4]),\n () => addArea(sceneData, planData, layer, modifiedPath[4], catalog, actions.areaActions)\n )\n );\n }\n else {\n if (planData.sceneGraph.layers[layer.id].areas[modifiedPath[4]]) {\n removeArea(planData, layer.id, modifiedPath[4]);\n }\n promises.push(addArea(sceneData, planData, layer, modifiedPath[4], catalog, actions.areaActions));\n }\n break;\n case 'items':\n let item = layer.getIn(['items', modifiedPath[4]]);\n\n if (catalog.getElement(item.type).updateRender3D) {\n promises.push(\n updateItem(\n sceneData,\n oldSceneData,\n planData,\n layer,\n modifiedPath[4],\n modifiedPath.slice(5),\n catalog,\n actions.itemsActions,\n () => removeItem(planData, layer.id, modifiedPath[4]),\n () => addItem(sceneData, planData, layer, modifiedPath[4], catalog, actions.itemsActions)\n )\n );\n }\n else {\n removeItem(planData, layer.id, modifiedPath[4]);\n promises.push(addItem(sceneData, planData, layer, modifiedPath[4], catalog, actions.itemsActions));\n }\n break;\n\n case 'visible':\n if (!layer.visible) {\n let layerGraph = planData.sceneGraph.layers[layer.id];\n\n for (let lineID in layerGraph.lines) removeLine(planData, layer.id, lineID);\n for (let areaID in layerGraph.areas) removeArea(planData, layer.id, areaID);\n for (let itemID in layerGraph.items) removeItem(planData, layer.id, itemID);\n for (let holeID in layerGraph.holes) removeHole(planData, layer.id, holeID);\n\n } else {\n promises = promises.concat(createLayerObjects(layer, planData, sceneData, actions, catalog));\n }\n\n break;\n\n case 'opacity':\n case 'altitude':\n let layerGraph = planData.sceneGraph.layers[layer.id];\n for (let lineID in layerGraph.lines) removeLine(planData, layer.id, lineID);\n for (let areaID in layerGraph.areas) removeArea(planData, layer.id, areaID);\n for (let itemID in layerGraph.items) removeItem(planData, layer.id, itemID);\n for (let holeID in layerGraph.holes) removeHole(planData, layer.id, holeID);\n\n promises = promises.concat(createLayerObjects(layer, planData, sceneData, actions, catalog));\n\n }\n Promise.all(promises).then(values => updateBoundingBox(planData));\n}\n\nfunction removeObject(modifiedPath, layer, planData, actions, sceneData, oldSceneData, catalog) {\n\n let promises = [];\n switch (modifiedPath[3]) {\n case 'lines':\n // Here I remove the line with all its holes\n let lineID = modifiedPath[4];\n oldSceneData.getIn(['layers', layer.id, 'lines', lineID, 'holes']).forEach(holeID => {\n removeHole(planData, layer.id, holeID);\n });\n removeLine(planData, layer.id, lineID);\n if (modifiedPath.length > 5) {\n // I removed an hole, so I should add the new line\n promises.push(addLine(sceneData, planData, layer, lineID, catalog, actions.linesActions));\n layer.getIn(['lines', lineID, 'holes']).forEach(holeID => {\n promises.push(addHole(sceneData, planData, layer, holeID, catalog, actions.holesActions));\n });\n }\n break;\n case 'areas':\n if (modifiedPath.length === 5) {\n // I am removing an entire area\n removeArea(planData, layer.id, modifiedPath[4]);\n }\n break;\n case 'items':\n if (modifiedPath.length === 5) {\n // I am removing an item\n removeItem(planData, layer.id, modifiedPath[4]);\n }\n break;\n }\n\n Promise.all(promises).then(values => updateBoundingBox(planData));\n}\n\nfunction removeLayer(layerId, planData) {\n let layerGraph = planData.sceneGraph.layers[layerId];\n\n for (let lineID in layerGraph.lines) removeLine(planData, layerId, lineID);\n for (let areaID in layerGraph.areas) removeArea(planData, layerId, areaID);\n for (let itemID in layerGraph.items) removeItem(planData, layerId, itemID);\n for (let holeID in layerGraph.holes) removeHole(planData, layerId, holeID);\n\n delete planData.sceneGraph.layers[layerId];\n}\n\nfunction removeHole(planData, layerId, holeID) {\n\n if (planData.sceneGraph.busyResources.layers[layerId].holes[holeID]) {\n setTimeout(() => removeHole(planData, layerId, holeID), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layerId].holes[holeID] = true;\n\n let hole3D = planData.sceneGraph.layers[layerId].holes[holeID];\n\n if (hole3D) {\n planData.plan.remove(hole3D);\n disposeObject(hole3D);\n delete planData.sceneGraph.layers[layerId].holes[holeID];\n delete planData.sceneGraph.LODs[holeID];\n hole3D = null;\n updateBoundingBox(planData);\n }\n\n planData.sceneGraph.busyResources.layers[layerId].holes[holeID] = false;\n}\n\nfunction removeLine(planData, layerId, lineID) {\n\n if (planData.sceneGraph.busyResources.layers[layerId].lines[lineID]) {\n setTimeout(() => removeLine(planData, layerId, lineID), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layerId].lines[lineID] = true;\n\n let line3D = planData.sceneGraph.layers[layerId].lines[lineID];\n\n if (line3D) {\n planData.plan.remove(line3D);\n disposeObject(line3D);\n delete planData.sceneGraph.layers[layerId].lines[lineID];\n delete planData.sceneGraph.LODs[lineID];\n line3D = null;\n updateBoundingBox(planData);\n }\n\n planData.sceneGraph.busyResources.layers[layerId].lines[lineID] = false;\n}\n\nfunction removeArea(planData, layerId, areaID) {\n\n if (planData.sceneGraph.busyResources.layers[layerId].areas[areaID]) {\n setTimeout(() => removeArea(planData, layerId, areaID), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layerId].areas[areaID] = true;\n\n let area3D = planData.sceneGraph.layers[layerId].areas[areaID];\n\n if (area3D) {\n planData.plan.remove(area3D);\n disposeObject(area3D);\n delete planData.sceneGraph.layers[layerId].areas[areaID];\n delete planData.sceneGraph.LODs[areaID];\n area3D = null;\n updateBoundingBox(planData);\n }\n\n planData.sceneGraph.busyResources.layers[layerId].areas[areaID] = false;\n}\n\nfunction removeItem(planData, layerId, itemID) {\n\n if (planData.sceneGraph.busyResources.layers[layerId].items[itemID]) {\n setTimeout(() => removeItem(planData, layerId, itemID), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layerId].items[itemID] = true;\n\n let item3D = planData.sceneGraph.layers[layerId].items[itemID];\n\n if (item3D) {\n planData.plan.remove(item3D);\n disposeObject(item3D);\n delete planData.sceneGraph.layers[layerId].items[itemID];\n delete planData.sceneGraph.LODs[itemID];\n item3D = null;\n updateBoundingBox(planData);\n }\n\n planData.sceneGraph.busyResources.layers[layerId].items[itemID] = false;\n}\n\n//TODO generate an area's replace if vertex has been changed\nfunction addObject(modifiedPath, layer, planData, actions, sceneData, oldSceneData, catalog) {\n if (modifiedPath.length === 5) {\n let addPromise = null, addAction = null;\n\n switch (modifiedPath[3]) {\n case 'lines': addPromise = addLine; addAction = actions.linesActions; break;\n case 'areas': addPromise = addArea; addAction = actions.areaActions; break;\n case 'items': addPromise = addItem; addAction = actions.itemsActions; break;\n case 'holes': addPromise = addHole; addAction = actions.holesActions; break;\n }\n\n if( addPromise ) addPromise( sceneData, planData, layer, modifiedPath[4], catalog, addAction ).then(() => updateBoundingBox(planData));\n }\n}\n\nfunction addHole(sceneData, planData, layer, holeID, catalog, holesActions) {\n let holeData = layer.getIn(['holes', holeID]);\n\n // Create the hole object\n return catalog.getElement(holeData.type).render3D(holeData, layer, sceneData).then(object => {\n\n if (object instanceof Three.LOD) {\n planData.sceneGraph.LODs[holeID] = object;\n }\n\n let pivot = new Three.Object3D();\n pivot.name = 'pivot';\n pivot.add(object);\n\n let line = layer.getIn(['lines', holeData.line]);\n\n // First of all I need to find the vertices of this line\n let vertex0 = layer.vertices.get(line.vertices.get(0));\n let vertex1 = layer.vertices.get(line.vertices.get(1));\n let offset = holeData.offset;\n\n if (vertex0.x > vertex1.x) {\n let tmp = vertex0;\n vertex0 = vertex1;\n vertex1 = tmp;\n offset = 1 - offset;\n }\n\n let distance = Math.sqrt(Math.pow(vertex0.x - vertex1.x, 2) + Math.pow(vertex0.y - vertex1.y, 2));\n let alpha = Math.asin((vertex1.y - vertex0.y) / distance);\n\n let boundingBox = new Three.Box3().setFromObject(pivot);\n let center = [\n (boundingBox.max.x - boundingBox.min.x) / 2 + boundingBox.min.x,\n (boundingBox.max.y - boundingBox.min.y) / 2 + boundingBox.min.y,\n (boundingBox.max.z - boundingBox.min.z) / 2 + boundingBox.min.z];\n\n let holeAltitude = holeData.properties.getIn(['altitude', 'length']);\n let holeHeight = holeData.properties.getIn(['height', 'length']);\n\n pivot.rotation.y = alpha;\n pivot.position.x = vertex0.x + distance * offset * Math.cos(alpha) - center[2] * Math.sin(alpha);\n pivot.position.y = holeAltitude + holeHeight / 2 - center[1] + layer.altitude;\n pivot.position.z = -vertex0.y - distance * offset * Math.sin(alpha) - center[2] * Math.cos(alpha);\n\n planData.plan.add(pivot);\n planData.sceneGraph.layers[layer.id].holes[holeData.id] = pivot;\n\n applyInteract(pivot, () => {\n return holesActions.selectHole(layer.id, holeData.id);\n });\n\n let opacity = layer.opacity;\n if (holeData.selected) {\n opacity = 1;\n }\n applyOpacity(pivot, opacity);\n\n });\n}\n\nfunction updateHole(sceneData, oldSceneData, planData, layer, holeID, differences, catalog, holesActions, selfDestroy, selfBuild) {\n let hole = layer.getIn(['holes', holeID]);\n let oldHole = oldSceneData.getIn(['layers', layer.id, 'holes', holeID]);\n let mesh = planData.sceneGraph.layers[layer.id].holes[holeID];\n\n if (!mesh) return null;\n\n return catalog.getElement(hole.type).updateRender3D(hole, layer, sceneData, mesh, oldHole, differences, selfDestroy, selfBuild);\n}\n\nfunction addLine(sceneData, planData, layer, lineID, catalog, linesActions) {\n\n if (planData.sceneGraph.busyResources.layers[layer.id].lines[lineID]) {\n setTimeout(() => addLine(sceneData, planData, layer, lineID, catalog, linesActions), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layer.id].lines[lineID] = true;\n\n let line = layer.getIn(['lines', lineID]);\n\n // First of all I need to find the vertices of this line\n let vertex0 = layer.vertices.get(line.vertices.get(0));\n let vertex1 = layer.vertices.get(line.vertices.get(1));\n\n if (vertex0.x > vertex1.x) {\n let tmp = vertex0;\n vertex0 = vertex1;\n vertex1 = tmp;\n }\n\n return catalog.getElement(line.type).render3D(line, layer, sceneData).then(line3D => {\n\n if (line3D instanceof Three.LOD) {\n planData.sceneGraph.LODs[line.id] = line3D;\n }\n\n let pivot = new Three.Object3D();\n pivot.name = 'pivot';\n pivot.add(line3D);\n\n pivot.position.x = vertex0.x;\n pivot.position.y = layer.altitude;\n pivot.position.z = -vertex0.y;\n\n planData.plan.add(pivot);\n planData.sceneGraph.layers[layer.id].lines[lineID] = pivot;\n\n applyInteract(pivot, () => {\n return linesActions.selectLine(layer.id, line.id);\n });\n\n let opacity = layer.opacity;\n if (line.selected) {\n opacity = 1;\n }\n applyOpacity(pivot, opacity);\n planData.sceneGraph.busyResources.layers[layer.id].lines[lineID] = false;\n });\n}\n\nfunction updateLine(sceneData, oldSceneData, planData, layer, lineID, differences, catalog, linesActions, selfDestroy, selfBuild) {\n let line = layer.getIn(['lines', lineID]);\n let oldLine = oldSceneData.getIn(['layers', layer.id, 'lines', lineID]);\n let mesh = planData.sceneGraph.layers[layer.id].lines[lineID];\n\n if (!mesh) return null;\n\n return catalog.getElement(line.type).updateRender3D(line, layer, sceneData, mesh, oldLine, differences, selfDestroy, selfBuild);\n}\n\nfunction addArea(sceneData, planData, layer, areaID, catalog, areaActions) {\n\n if (planData.sceneGraph.busyResources.layers[layer.id].areas[areaID]) {\n setTimeout(() => addArea(sceneData, planData, layer, areaID, catalog, areaActions), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layer.id].areas[areaID] = true;\n\n let area = layer.getIn(['areas', areaID]);\n let interactFunction = () => areaActions.selectArea(layer.id, areaID);\n\n return catalog.getElement(area.type).render3D(area, layer, sceneData).then(area3D => {\n\n if (area3D instanceof Three.LOD) {\n planData.sceneGraph.LODs[areaID] = area3D;\n }\n\n let pivot = new Three.Object3D();\n pivot.name = 'pivot';\n pivot.add(area3D);\n pivot.position.y = layer.altitude;\n planData.plan.add(pivot);\n planData.sceneGraph.layers[layer.id].areas[areaID] = pivot;\n\n applyInteract(pivot, interactFunction);\n\n let opacity = layer.opacity;\n if (area.selected) {\n opacity = 1;\n }\n\n applyOpacity(pivot, opacity);\n planData.sceneGraph.busyResources.layers[layer.id].areas[areaID] = false;\n });\n}\n\nfunction updateArea(sceneData, oldSceneData, planData, layer, areaID, differences, catalog, areaActions, selfDestroy, selfBuild) {\n let area = layer.getIn(['areas', areaID]);\n let oldArea = oldSceneData.getIn(['layers', layer.id, 'areas', areaID]);\n let mesh = planData.sceneGraph.layers[layer.id].areas[areaID];\n\n if (!mesh) return null;\n\n return catalog.getElement(area.type).updateRender3D(area, layer, sceneData, mesh, oldArea, differences, selfDestroy, selfBuild);\n}\n\nfunction addItem(sceneData, planData, layer, itemID, catalog, itemsActions) {\n\n let item = layer.getIn(['items', itemID]);\n\n return catalog.getElement(item.type).render3D(item, layer, sceneData).then(item3D => {\n\n if (item3D instanceof Three.LOD) {\n planData.sceneGraph.LODs[itemID] = item3D;\n }\n\n let pivot = new Three.Object3D();\n pivot.name = 'pivot';\n pivot.add(item3D);\n\n pivot.rotation.y = item.rotation * Math.PI / 180;\n pivot.position.x = item.x;\n pivot.position.y = layer.altitude;\n pivot.position.z = -item.y;\n\n applyInteract(item3D, () => {\n itemsActions.selectItem(layer.id, item.id);\n }\n );\n\n let opacity = layer.opacity;\n if (item.selected) {\n opacity = 1;\n }\n\n applyOpacity(pivot, opacity);\n\n planData.plan.add(pivot);\n planData.sceneGraph.layers[layer.id].items[item.id] = pivot;\n });\n\n}\n\nfunction updateItem(sceneData, oldSceneData, planData, layer, itemID, differences, catalog, itemsActions, selfDestroy, selfBuild) {\n let item = layer.getIn(['items', itemID]);\n let oldItem = oldSceneData.getIn(['layers', layer.id, 'items', itemID]);\n let mesh = planData.sceneGraph.layers[layer.id].items[itemID];\n\n if (!mesh) return null;\n\n return catalog.getElement(item.type).updateRender3D(item, layer, sceneData, mesh, oldItem, differences, selfDestroy, selfBuild);\n}\n\n// Apply interact function to children of an Object3D\nfunction applyInteract(object, interactFunction) {\n object.traverse((child) => {\n if (child instanceof Three.Mesh) {\n child.interact = interactFunction;\n }\n });\n}\n\n// Apply opacity to children of an Object3D\nfunction applyOpacity(object, opacity) {\n object.traverse((child) => {\n\n if (child instanceof Three.Mesh) {\n if (child.material instanceof Three.MultiMaterial) {\n child.material.materials.forEach(materialChild => {\n materialChild.transparent = true;\n if (materialChild.maxOpacity) {\n materialChild.opacity = Math.min(materialChild.maxOpacity, opacity);\n } else if (materialChild.opacity && materialChild.opacity > opacity) {\n materialChild.maxOpacity = materialChild.opacity;\n materialChild.opacity = opacity;\n }\n });\n } else if (child.material instanceof Array) {\n child.material.forEach(material => {\n material.transparent = true;\n if (material.maxOpacity) {\n material.opacity = Math.min(material.maxOpacity, opacity);\n } else if (material.opacity && material.opacity > opacity) {\n material.maxOpacity = material.opacity;\n material.opacity = opacity;\n }\n });\n } else {\n child.material.transparent = true;\n if (child.material.maxOpacity) {\n child.material.opacity = Math.min(child.material.maxOpacity, opacity);\n } else if (child.material.opacity && child.material.opacity > opacity) {\n child.material.maxOpacity = child.material.opacity;\n child.material.opacity = opacity;\n }\n }\n }\n });\n}\n\n\nfunction updateBoundingBox(planData) {\n let newBoundingBox = new Three.Box3().setFromObject(planData.plan);\n if (isFinite(newBoundingBox.max.x)\n && isFinite(newBoundingBox.min.x)\n && isFinite(newBoundingBox.max.y)\n && isFinite(newBoundingBox.min.y)\n && isFinite(newBoundingBox.max.z)\n && isFinite(newBoundingBox.min.z)) {\n\n let newCenter = new Three.Vector3(\n (newBoundingBox.max.x - newBoundingBox.min.x) / 2 + newBoundingBox.min.x,\n (newBoundingBox.max.y - newBoundingBox.min.y) / 2 + newBoundingBox.min.y,\n (newBoundingBox.max.z - newBoundingBox.min.z) / 2 + newBoundingBox.min.z\n );\n\n planData.plan.position.sub(newCenter);\n planData.grid.position.sub(newCenter);\n\n newBoundingBox.min.sub(newCenter);\n newBoundingBox.max.sub(newCenter);\n\n planData.boundingBox = newBoundingBox;\n }\n}\n\n/**\n * Filter the array of diffs\n * @param diffArray\n * @param sceneData\n * @param oldSceneData\n * @returns {Array}\n */\nfunction filterDiffs(diffArray, sceneData, oldSceneData) {\n return minimizeRemoveDiffsWhenSwitchingLayers(\n minimizeChangePropertiesAfterSelectionsDiffs(\n minimizeChangePropertiesDiffs(diffArray, sceneData, oldSceneData), sceneData, oldSceneData),\n sceneData, oldSceneData);\n}\n\n/**\n * Reduces the number of remove diffs when switching an hidden layer\n * @param diffArray the array of the diffs\n * @param sceneData\n * @param oldSceneData\n * @returns {Array}\n */\nfunction minimizeRemoveDiffsWhenSwitchingLayers(diffArray, sceneData, oldSceneData) {\n\n let foundDiff;\n let i;\n for (i = 0; i < diffArray.length && !foundDiff; i++) {\n if (diffArray[i].path[1] === 'selectedLayer') {\n foundDiff = diffArray[i];\n }\n }\n\n if (foundDiff) {\n if (!sceneData.getIn(['layers', oldSceneData.selectedLayer, 'visible'])) {\n return diffArray.filter(({op, path}) => {\n\n return (\n !( path[ path.length - 1] === 'selected' && ( path[1] === 'layers' && path[2] === oldSceneData.selectedLayer )) &&\n !(op === 'remove' && path.indexOf(oldSceneData.selectedLayer) !== -1)\n );\n\n });\n }\n }\n\n return diffArray;\n}\n\n/**\n * Reduces the number of change properties diffs for selected elements\n * @param diffArray the array of the diffs\n * @param sceneData\n * @param oldSceneData\n * @returns {Array}\n */\nfunction minimizeChangePropertiesAfterSelectionsDiffs(diffArray, sceneData, oldSceneData) {\n let idsFound = {};\n diffArray.forEach( ({path}) => {\n if (path[5] === 'selected') {\n idsFound[path[4]] = path[4];\n }\n });\n\n return diffArray.filter( ({path}) => {\n if (path[5] === 'properties') {\n return idsFound[path[4]] ? false : true;\n }\n return true;\n });\n}\n\n/**\n * Reduces the number of change properties diffs\n * @param diffArray the array of the diffs\n * @param sceneData\n * @param oldSceneData\n * @returns {Array}\n */\nfunction minimizeChangePropertiesDiffs(diffArray, sceneData, oldSceneData) {\n let idsFound = {};\n return diffArray.filter( ({path}) => {\n if (path[5] === 'properties') {\n return idsFound[path[4]] ? false : (idsFound[path[4]] = true);\n } else if (path[5] === 'misc') {\n // Remove misc changes\n return false;\n }\n return true;\n });\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst STYLE = {\n stroke: \"#0096fd\",\n strokeWidth: \"1px\"\n};\n\nconst STYLE_TEXT = {\n textAnchor: \"middle\",\n fontSize: \"12px\",\n fontFamily: \"'Courier New', Courier, monospace\",\n pointerEvents: \"none\",\n fontWeight: \"bold\",\n\n //http://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css\n WebkitTouchCallout: \"none\", /* iOS Safari */\n WebkitUserSelect: \"none\", /* Chrome/Safari/Opera */\n MozUserSelect: \"none\", /* Firefox */\n MsUserSelect: \"none\", /* Internet Explorer/Edge */\n userSelect: \"none\"\n};\n\n\nexport default function Ruler({length, unit, transform}) {\n\n let distanceText = `${length.toFixed(2)} ${unit}`;\n\n return (\n \n {distanceText}\n \n \n \n \n );\n\n}\n\nRuler.propTypes = {\n length: PropTypes.number.isRequired,\n unit: PropTypes.string.isRequired,\n transform: PropTypes.string.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as Geometry from '../../utils/geometry';\n\nconst STYLE = {\n stroke: '#D32F2F',\n strokeWidth: \"1px\"\n};\n\nexport default function ActiveDrawingHelper({snap, width, height}) {\n switch (snap.type) {\n case 'point':\n return (\n \n \n \n );\n\n case 'line':\n let h0 = Geometry.horizontalLine(0);\n let h1 = Geometry.horizontalLine(height);\n let pointH0 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, h0.a, h0.b, h0.c);\n let pointH1 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, h1.a, h1.b, h1.c);\n\n let v0 = Geometry.verticalLine(0);\n let v1 = Geometry.verticalLine(width);\n let pointV0 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, v0.a, v0.b, v0.c);\n let pointV1 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, v1.a, v1.b, v1.c);\n\n if (pointH0 && pointH1)\n return ;\n if (pointV0 && pointV1)\n return ;\n return null;\n\n case'line-segment':\n return ;\n\n default:\n return null;\n }\n}\n\nActiveDrawingHelper.propTypes = {\n snap: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { Layer, Grids } from './export';\n\nexport default class Scene extends Component {\n\n shouldComponentUpdate(nextProps, nextState) {\n return this.props.scene.hashCode() !== nextProps.scene.hashCode();\n }\n\n render() {\n let {scene, catalog} = this.props;\n let {height, layers} = scene;\n let selectedLayer = layers.get(scene.selectedLayer);\n\n return (\n \n \n\n \n {\n layers\n .entrySeq()\n .filter(([layerID, layer]) => layerID !== scene.selectedLayer && layer.visible)\n .map(([layerID, layer]) => )\n }\n \n\n \n \n );\n }\n}\n\n\nScene.propTypes = {\n scene: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Scene from './scene';\nimport Snap from './snap';\nimport * as SharedStyle from '../../shared-style';\n\nconst guideStyle = {\n stroke: SharedStyle.SECONDARY_COLOR.main,\n strokewidth:'2.5px'\n};\n\nexport default function State({state, catalog}) {\n\n let {activeSnapElement, snapElements, scene} = state;\n let {width, height} = scene;\n\n activeSnapElement = activeSnapElement ?\n : null;\n// snapElements = snapElements.map((snap,id) => );\n snapElements = null; //only for debug purpose\n\n return (\n \n \n \n\n \n {scene.getIn(['guides','horizontal']).entrySeq().map( ([ hgKey, hgVal ]) => )}\n {scene.getIn(['guides','vertical']).entrySeq().map( ([ vgKey, vgVal ]) => )}\n {activeSnapElement}\n {snapElements}\n\n \n \n )\n}\n\nState.propTypes = {\n state: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n","import Project from './project';\nimport Group from './group';\nimport Layer from './layer';\nimport Line from './line';\nimport Hole from './hole';\nimport Vertex from './vertex';\nimport Area from './area';\nimport Item from './item';\nimport { HorizontalGuide, VerticalGuide } from './guide';\n\nexport {\n Project,\n Group,\n Layer,\n Line,\n Hole,\n Vertex,\n Area,\n Item,\n HorizontalGuide,\n VerticalGuide\n};\n\nexport default {\n Project,\n Group,\n Layer,\n Line,\n Hole,\n Vertex,\n Area,\n Item,\n HorizontalGuide,\n VerticalGuide\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { ReactSVGPanZoom, TOOL_NONE, TOOL_PAN, TOOL_ZOOM_IN, TOOL_ZOOM_OUT, TOOL_AUTO } from 'react-svg-pan-zoom';\nimport * as constants from '../../constants';\nimport State from './state';\nimport * as SharedStyle from '../../shared-style';\nimport { RulerX, RulerY } from './export';\n\nfunction mode2Tool(mode) {\n switch (mode) {\n case constants.MODE_2D_PAN:\n return TOOL_PAN;\n case constants.MODE_2D_ZOOM_IN:\n return TOOL_ZOOM_IN;\n case constants.MODE_2D_ZOOM_OUT:\n return TOOL_ZOOM_OUT;\n case constants.MODE_IDLE:\n return TOOL_AUTO;\n default:\n return TOOL_NONE;\n }\n}\n\nfunction mode2PointerEvents(mode) {\n switch (mode) {\n case constants.MODE_DRAWING_LINE:\n case constants.MODE_DRAWING_HOLE:\n case constants.MODE_DRAWING_ITEM:\n case constants.MODE_DRAGGING_HOLE:\n case constants.MODE_DRAGGING_ITEM:\n case constants.MODE_DRAGGING_LINE:\n case constants.MODE_DRAGGING_VERTEX:\n return { pointerEvents: 'none' };\n\n default:\n return {};\n }\n}\n\nfunction mode2Cursor(mode) {\n switch (mode) {\n case constants.MODE_DRAGGING_HOLE:\n case constants.MODE_DRAGGING_LINE:\n case constants.MODE_DRAGGING_VERTEX:\n case constants.MODE_DRAGGING_ITEM:\n return { cursor: 'move' };\n\n case constants.MODE_ROTATING_ITEM:\n return { cursor: 'ew-resize' };\n\n case constants.MODE_WAITING_DRAWING_LINE:\n case constants.MODE_DRAWING_LINE:\n return { cursor: 'crosshair' };\n default:\n return { cursor: 'default' };\n }\n}\n\nfunction mode2DetectAutopan(mode) {\n switch (mode) {\n case constants.MODE_DRAWING_LINE:\n case constants.MODE_DRAGGING_LINE:\n case constants.MODE_DRAGGING_VERTEX:\n case constants.MODE_DRAGGING_HOLE:\n case constants.MODE_DRAGGING_ITEM:\n case constants.MODE_DRAWING_HOLE:\n case constants.MODE_DRAWING_ITEM:\n return true;\n\n default:\n return false;\n }\n}\n\nfunction extractElementData(node) {\n while (!node.attributes.getNamedItem('data-element-root') && node.tagName !== 'svg') {\n node = node.parentNode;\n }\n if (node.tagName === 'svg') return null;\n\n return {\n part: node.attributes.getNamedItem('data-part') ? node.attributes.getNamedItem('data-part').value : undefined,\n layer: node.attributes.getNamedItem('data-layer').value,\n prototype: node.attributes.getNamedItem('data-prototype').value,\n selected: node.attributes.getNamedItem('data-selected').value === 'true',\n id: node.attributes.getNamedItem('data-id').value\n }\n}\n\nexport default function Viewer2D(\n { state, width, height },\n { viewer2DActions, linesActions, holesActions, verticesActions, itemsActions, areaActions, projectActions, catalog }) {\n\n\n let { viewer2D, mode, scene } = state;\n\n let layerID = scene.selectedLayer;\n\n let mapCursorPosition = ({ x, y }) => {\n return { x, y: -y + scene.height }\n };\n\n let onMouseMove = viewerEvent => {\n\n //workaround that allow imageful component to work\n let evt = new Event('mousemove-planner-event');\n evt.viewerEvent = viewerEvent;\n document.dispatchEvent(evt);\n\n let { x, y } = mapCursorPosition(viewerEvent);\n\n projectActions.updateMouseCoord({ x, y });\n\n switch (mode) {\n case constants.MODE_DRAWING_LINE:\n linesActions.updateDrawingLine(x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAWING_HOLE:\n holesActions.updateDrawingHole(layerID, x, y);\n break;\n\n case constants.MODE_DRAWING_ITEM:\n itemsActions.updateDrawingItem(layerID, x, y);\n break;\n\n case constants.MODE_DRAGGING_HOLE:\n holesActions.updateDraggingHole(x, y);\n break;\n\n case constants.MODE_DRAGGING_LINE:\n linesActions.updateDraggingLine(x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAGGING_VERTEX:\n verticesActions.updateDraggingVertex(x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAGGING_ITEM:\n itemsActions.updateDraggingItem(x, y);\n break;\n\n case constants.MODE_ROTATING_ITEM:\n itemsActions.updateRotatingItem(x, y);\n break;\n }\n\n viewerEvent.originalEvent.stopPropagation();\n };\n\n let onMouseDown = viewerEvent => {\n let event = viewerEvent.originalEvent;\n\n //workaround that allow imageful component to work\n let evt = new Event('mousedown-planner-event');\n evt.viewerEvent = viewerEvent;\n document.dispatchEvent(evt);\n\n let { x, y } = mapCursorPosition(viewerEvent);\n\n if (mode === constants.MODE_IDLE) {\n let elementData = extractElementData(event.target);\n if (!elementData || !elementData.selected) return;\n\n switch (elementData.prototype) {\n case 'lines':\n linesActions.beginDraggingLine(elementData.layer, elementData.id, x, y, state.snapMask);\n break;\n\n case 'vertices':\n verticesActions.beginDraggingVertex(elementData.layer, elementData.id, x, y, state.snapMask);\n break;\n\n case 'items':\n if (elementData.part === 'rotation-anchor')\n itemsActions.beginRotatingItem(elementData.layer, elementData.id, x, y);\n else\n itemsActions.beginDraggingItem(elementData.layer, elementData.id, x, y);\n break;\n\n case 'holes':\n holesActions.beginDraggingHole(elementData.layer, elementData.id, x, y);\n break;\n\n default: break;\n }\n }\n event.stopPropagation();\n };\n\n let onMouseUp = viewerEvent => {\n let event = viewerEvent.originalEvent;\n\n let evt = new Event('mouseup-planner-event');\n evt.viewerEvent = viewerEvent;\n document.dispatchEvent(evt);\n\n let { x, y } = mapCursorPosition(viewerEvent);\n\n switch (mode) {\n\n case constants.MODE_IDLE:\n let elementData = extractElementData(event.target);\n\n if (elementData && elementData.selected) return;\n\n switch (elementData ? elementData.prototype : 'none') {\n case 'areas':\n areaActions.selectArea(elementData.layer, elementData.id);\n break;\n\n case 'lines':\n linesActions.selectLine(elementData.layer, elementData.id);\n break;\n\n case 'holes':\n holesActions.selectHole(elementData.layer, elementData.id);\n break;\n\n case 'items':\n itemsActions.selectItem(elementData.layer, elementData.id);\n break;\n\n case 'none':\n projectActions.unselectAll();\n break;\n }\n break;\n\n case constants.MODE_WAITING_DRAWING_LINE:\n linesActions.beginDrawingLine(layerID, x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAWING_LINE:\n linesActions.endDrawingLine(x, y, state.snapMask);\n linesActions.beginDrawingLine(layerID, x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAWING_HOLE:\n holesActions.endDrawingHole(layerID, x, y);\n break;\n\n case constants.MODE_DRAWING_ITEM:\n itemsActions.endDrawingItem(layerID, x, y);\n break;\n\n case constants.MODE_DRAGGING_LINE:\n linesActions.endDraggingLine(x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAGGING_VERTEX:\n verticesActions.endDraggingVertex(x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAGGING_ITEM:\n itemsActions.endDraggingItem(x, y);\n break;\n\n case constants.MODE_DRAGGING_HOLE:\n holesActions.endDraggingHole(x, y);\n break;\n\n case constants.MODE_ROTATING_ITEM:\n itemsActions.endRotatingItem(x, y);\n break;\n }\n\n event.stopPropagation();\n };\n\n let onChangeValue = (value) => {\n projectActions.updateZoomScale(value.a);\n return viewer2DActions.updateCameraView(value)\n };\n\n let onChangeTool = (tool) => {\n switch (tool) {\n case TOOL_NONE:\n projectActions.selectToolEdit();\n break;\n\n case TOOL_PAN:\n viewer2DActions.selectToolPan();\n break;\n\n case TOOL_ZOOM_IN:\n viewer2DActions.selectToolZoomIn();\n break;\n\n case TOOL_ZOOM_OUT:\n viewer2DActions.selectToolZoomOut();\n break;\n }\n };\n\n let { e, f, SVGWidth, SVGHeight } = state.get('viewer2D').toJS();\n\n let rulerSize = 15; //px\n let rulerUnitPixelSize = 100;\n let rulerBgColor = SharedStyle.PRIMARY_COLOR.main;\n let rulerFnColor = SharedStyle.COLORS.white;\n let rulerMkColor = SharedStyle.SECONDARY_COLOR.main;\n let rulerXElements = Math.ceil( SVGWidth / rulerUnitPixelSize ) + 1;\n let rulerYElements = Math.ceil( SVGHeight / rulerUnitPixelSize ) + 1;\n\n return (\n
\n
\n
\n { SVGWidth ? : null }\n
\n
\n { SVGHeight ? : null }\n
\n \n\n \n \n \n \n \n \n \n \n \n \n \n\n \n
\n );\n}\n\n\nViewer2D.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n};\n\nViewer2D.contextTypes = {\n viewer2DActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n verticesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n areaActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport IconLoad from 'react-icons/lib/fa/folder-open-o';\nimport ToolbarButton from './toolbar-button';\nimport {browserUpload} from '../../utils/browser';\n\nexport default function ToolbarLoadButton({state}, {translator, projectActions}) {\n\n let loadProjectFromFile = event => {\n event.preventDefault();\n browserUpload().then((data) => {\n projectActions.loadProject(JSON.parse(data));\n });\n };\n\n return (\n \n \n \n );\n}\n\nToolbarLoadButton.propTypes = {\n state: PropTypes.object.isRequired,\n};\n\nToolbarLoadButton.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","export function browserDownload(json) {\n let fileOutputLink = document.createElement('a');\n\n let filename = 'output' + Date.now() + '.json';\n filename = window.prompt('Insert output filename', filename);\n if (!filename) return;\n\n let output = JSON.stringify(json);\n let data = new Blob([output], {type: 'text/plain'});\n let url = window.URL.createObjectURL(data);\n fileOutputLink.setAttribute('download', filename);\n fileOutputLink.href = url;\n fileOutputLink.style.display = 'none';\n document.body.appendChild(fileOutputLink);\n fileOutputLink.click();\n document.body.removeChild(fileOutputLink);\n}\n\nexport function browserUpload() {\n return new Promise(function (resolve, reject) {\n\n let fileInput = document.createElement('input');\n fileInput.type = 'file';\n\n fileInput.addEventListener('change', function (event) {\n let file = event.target.files[0];\n let reader = new FileReader();\n reader.addEventListener('load', (fileEvent) => {\n let loadedData = fileEvent.target.result;\n resolve(loadedData);\n });\n reader.readAsText(file);\n });\n\n fileInput.click();\n });\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport IconSave from 'react-icons/lib/fa/floppy-o';\nimport ToolbarButton from './toolbar-button';\nimport {browserDownload} from '../../utils/browser';\nimport { Project } from '../../class/export';\n\nexport default function ToolbarSaveButton({state}, {translator}) {\n\n let saveProjectToFile = e => {\n e.preventDefault();\n state = Project.unselectAll( state ).updatedState;\n browserDownload(state.get('scene').toJS());\n };\n\n return (\n \n \n \n );\n}\n\nToolbarSaveButton.propTypes = {\n state: PropTypes.object.isRequired,\n};\n\nToolbarSaveButton.contextTypes = {\n translator: PropTypes.object.isRequired,\n};\n","import ToolbarComponents from './toolbar/export';\nimport Content from './content';\nimport SidebarComponents from './sidebar/export';\nimport FooterBarComponents from './footerbar/export';\nimport Viewer2DComponents from './viewer2d/export';\nimport StyleComponents from './style/export';\n\nexport {\n ToolbarComponents,\n Content,\n SidebarComponents,\n FooterBarComponents,\n Viewer2DComponents,\n StyleComponents\n};\n\nexport default {\n ToolbarComponents,\n Content,\n SidebarComponents,\n FooterBarComponents,\n Viewer2DComponents,\n StyleComponents\n};\n","export function objectsMap(object, func){\n let mappedObject = {};\n for (let key in object) {\n mappedObject[key] = func(key, mappedObject[key]);\n }\n return mappedObject;\n}\n\nexport function objectsCompare( x, y ) {\n if ( x === y ) return true;\n if ( ! ( x instanceof Object ) || ! ( y instanceof Object ) ) return false;\n if ( x.constructor !== y.constructor ) return false;\n \n for ( let p in x ) {\n if ( ! x.hasOwnProperty( p ) ) continue;\n if ( ! y.hasOwnProperty( p ) ) return false;\n if ( x[ p ] === y[ p ] ) continue;\n if ( typeof( x[ p ] ) !== 'object' ) return false;\n if ( ! objectsCompare( x[ p ], y[ p ] ) ) return false;\n }\n\n for ( let p in y ) {\n if ( y.hasOwnProperty( p ) && ! x.hasOwnProperty( p ) ) return false;\n }\n\n return true;\n}","import ReactPlannerAreasReducer from './areas-reducer';\nimport ReactPlannerHolesReducer from './holes-reducer';\nimport ReactPlannerItemsReducer from './items-reducer';\nimport ReactPlannerLinesReducer from './lines-reducer';\nimport ReactPlannerGroupsReducer from './groups-reducer';\nimport ReactPlannerProjectReducer from './project-reducer';\nimport ReactPlannerSceneReducer from './scene-reducer';\nimport ReactPlannerVerticesReducer from './vertices-reducer';\nimport ReactPlannerViewer2dReducer from './viewer2d-reducer';\nimport ReactPlannerViewer3dReducer from './viewer3d-reducer';\n\nexport {\n ReactPlannerAreasReducer,\n ReactPlannerHolesReducer,\n ReactPlannerItemsReducer,\n ReactPlannerLinesReducer,\n ReactPlannerGroupsReducer,\n ReactPlannerProjectReducer,\n ReactPlannerSceneReducer,\n ReactPlannerVerticesReducer,\n ReactPlannerViewer2dReducer,\n ReactPlannerViewer3dReducer\n};\n\nexport default {\n ReactPlannerAreasReducer,\n ReactPlannerHolesReducer,\n ReactPlannerItemsReducer,\n ReactPlannerLinesReducer,\n ReactPlannerGroupsReducer,\n ReactPlannerProjectReducer,\n ReactPlannerSceneReducer,\n ReactPlannerVerticesReducer,\n ReactPlannerViewer2dReducer,\n ReactPlannerViewer3dReducer\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {UNITS_LENGTH, UNIT_CENTIMETER} from './../../constants';\nimport convert from 'convert-units';\nimport { FormLabel, FormNumberInput, FormSelect } from '../../components/style/export';\nimport {Map} from 'immutable';\nimport {toFixedFloat} from '../../utils/math';\nimport PropertyStyle from './shared-property-style';\n\nconst internalTableStyle = {borderCollapse: 'collapse'};\nconst secondTdStyle = {padding: 0};\nconst unitContainerStyle = {width: '5em'};\n\nexport default function PropertyLengthMeasure({value, onUpdate, onValid, configs, sourceElement, internalState, state}, {catalog}) {\n\n let length = value.get('length') || 0;\n let _length = value.get('_length') || length;\n let _unit = value.get('_unit') || UNIT_CENTIMETER;\n let { hook, label, ...configRest} = configs;\n\n let update = (lengthInput, unitInput) => {\n\n let newLength = toFixedFloat(lengthInput);\n let merged = value.merge({\n length: unitInput !== UNIT_CENTIMETER ? convert(newLength).from(unitInput).to(UNIT_CENTIMETER) : newLength,\n _length: lengthInput,\n _unit: unitInput\n });\n\n if (hook) {\n return hook(merged, sourceElement, internalState, state).then(val => {\n return onUpdate(val);\n });\n }\n\n return onUpdate(merged);\n };\n\n return (\n \n \n \n \n \n \n \n
{label}\n \n \n \n \n \n \n \n
\n update(event.target.value, _unit)}\n onValid={onValid}\n {...configRest}\n />\n \n update(_length, event.target.value) }>\n {\n UNITS_LENGTH.map(el => )\n }\n \n
\n
\n );\n\n}\n\nPropertyLengthMeasure.propTypes = {\n value: PropTypes.instanceOf(Map).isRequired,\n onUpdate: PropTypes.func.isRequired,\n onValid: PropTypes.func,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n\nPropertyLengthMeasure.contextTypes = {\n catalog: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel, FormTextInput } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nconst tableStyle = {width: \"100%\", borderSpacing: \"2px 0\", marginBottom: \"2px\"};\nconst firstTdStyle = {width: '6em', textTransform:'capitalize'};\n\nexport default function PropertyString({value, onUpdate, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n\n if (configs.hook) {\n return configs.hook(val, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(val);\n };\n\n return (\n \n \n \n \n \n \n \n
{configs.label}\n update(event.target.value)}/>\n
\n );\n}\n\nPropertyString.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import Button from './button';\nimport CancelButton from './cancel-button';\nimport ContentContainer from './content-container';\nimport ContentTitle from './content-title';\nimport DeleteButton from './delete-button';\nimport FormBlock from './form-block';\nimport FormColorInput from './form-color-input';\nimport FormLabel from './form-label';\nimport FormNumberInput from './form-number-input';\nimport FormSelect from './form-select';\nimport FormSlider from './form-slider';\nimport FormSubmitButton from './form-submit-button';\nimport FormTextInput from './form-text-input';\n\nexport {\n Button,\n CancelButton,\n ContentContainer,\n ContentTitle,\n DeleteButton,\n FormBlock,\n FormColorInput,\n FormLabel,\n FormNumberInput,\n FormSelect,\n FormSlider,\n FormSubmitButton,\n FormTextInput\n};\n\nexport default {\n Button,\n CancelButton,\n ContentContainer,\n ContentTitle,\n DeleteButton,\n FormBlock,\n FormColorInput,\n FormLabel,\n FormNumberInput,\n FormSelect,\n FormSlider,\n FormSubmitButton,\n FormTextInput\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { MdSettings, MdUndo, MdDirectionsRun } from 'react-icons/lib/md';\nimport { FaFileO, FaMousePointer, FaPlus } from 'react-icons/lib/fa';\nimport ToolbarButton from './toolbar-button';\nimport ToolbarSaveButton from './toolbar-save-button';\nimport ToolbarLoadButton from './toolbar-load-button';\nimport If from '../../utils/react-if';\nimport {\n MODE_IDLE,\n MODE_3D_VIEW,\n MODE_3D_FIRST_PERSON,\n MODE_VIEWING_CATALOG,\n MODE_CONFIGURING_PROJECT\n} from '../../constants';\nimport * as SharedStyle from '../../shared-style';\n\nconst iconTextStyle = {\n fontSize: '19px',\n textDecoration: 'none',\n fontWeight: 'bold',\n margin: '0px',\n userSelect: 'none'\n};\n\nconst Icon2D = ( {style} ) =>

2D

;\nconst Icon3D = ( {style} ) =>

3D

;\n\nconst ASIDE_STYLE = {\n backgroundColor: SharedStyle.PRIMARY_COLOR.main,\n padding: '10px'\n};\n\nconst sortButtonsCb = (a, b) => {\n if (a.index === undefined || a.index === null) {\n a.index = Number.MAX_SAFE_INTEGER;\n }\n\n if (b.index === undefined || b.index === null) {\n b.index = Number.MAX_SAFE_INTEGER;\n }\n\n return a.index - b.index;\n};\n\nconst mapButtonsCb = (el, ind) => {\n return (\n \n {el.dom}\n \n );\n};\n\nexport default class Toolbar extends Component {\n\n constructor(props, context) {\n super(props, context);\n this.state = {};\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n return this.props.state.mode !== nextProps.state.mode ||\n this.props.height !== nextProps.height ||\n this.props.width !== nextProps.width ||\n this.props.state.alterate !== nextProps.state.alterate;\n }\n\n render() {\n\n let {\n props: { state, width, height, toolbarButtons, allowProjectFileSupport },\n context: { projectActions, viewer3DActions, translator }\n } = this;\n\n let mode = state.get('mode');\n let alterate = state.get('alterate');\n let alterateColor = alterate ? SharedStyle.MATERIAL_COLORS[500].orange : '';\n\n let sorter = [\n {\n index: 0, condition: allowProjectFileSupport, dom: confirm(translator.t('Would you want to start a new Project?')) ? projectActions.newProject() : null}>\n \n \n },\n {\n index: 1, condition: allowProjectFileSupport,\n dom: \n },\n {\n index: 2, condition: allowProjectFileSupport,\n dom: \n },\n {\n index: 3, condition: true,\n dom: projectActions.openCatalog()}>\n \n \n },\n {\n index: 4, condition: true, dom: viewer3DActions.selectTool3DView()}>\n \n \n },\n {\n index: 5, condition: true, dom: projectActions.setMode( MODE_IDLE )}>\n {[MODE_3D_FIRST_PERSON, MODE_3D_VIEW].includes(mode) ? : }\n \n },\n {\n index: 6, condition: true, dom: viewer3DActions.selectTool3DFirstPerson()}>\n \n \n },\n {\n index: 7, condition: true, dom: projectActions.undo()}>\n \n \n },\n {\n index: 8, condition: true, dom: projectActions.openProjectConfigurator()}>\n \n \n }\n ];\n\n sorter = sorter.concat(toolbarButtons.map((Component, key) => {\n return Component.prototype ? //if is a react component\n {\n condition: true,\n dom: React.createElement(Component, { mode, state, key })\n } :\n { //else is a sortable toolbar button\n index: Component.index,\n condition: Component.condition,\n dom: React.createElement(Component.dom, { mode, state, key })\n };\n }));\n\n return (\n \n )\n }\n}\n\nToolbar.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n allowProjectFileSupport: PropTypes.bool.isRequired,\n toolbarButtons: PropTypes.array\n};\n\nToolbar.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n viewer2DActions: PropTypes.object.isRequired,\n viewer3DActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import ToolbarButton from './toolbar-button';\nimport ToolbarSaveButton from './toolbar-save-button';\nimport ToolbarLoadButton from './toolbar-load-button';\nimport Toolbar from './toolbar';\n\nexport {\n ToolbarButton,\n ToolbarSaveButton,\n ToolbarLoadButton,\n Toolbar\n};\n\nexport default {\n ToolbarButton,\n ToolbarSaveButton,\n ToolbarLoadButton,\n Toolbar\n};\n","import { GROUP_ACTIONS } from '../constants';\n\nexport function addGroup() {\n return {\n type: GROUP_ACTIONS.ADD_GROUP\n };\n}\n\nexport function addGroupFromSelected() {\n return {\n type: GROUP_ACTIONS.ADD_GROUP_FROM_SELECTED\n };\n}\n\nexport function selectGroup(groupID) {\n return {\n type: GROUP_ACTIONS.SELECT_GROUP,\n groupID\n };\n}\n\nexport function unselectGroup(groupID) {\n return {\n type: GROUP_ACTIONS.UNSELECT_GROUP,\n groupID\n };\n}\n\nexport function addToGroup( groupID, layerID, elementPrototype, elementID ) {\n return {\n type: GROUP_ACTIONS.ADD_TO_GROUP,\n groupID,\n layerID,\n elementPrototype,\n elementID\n };\n}\n\nexport function removeFromGroup( groupID, layerID, elementPrototype, elementID ) {\n return {\n type: GROUP_ACTIONS.REMOVE_FROM_GROUP,\n groupID,\n layerID,\n elementPrototype,\n elementID\n };\n}\n\nexport function setGroupAttributes( groupID, attributes ) {\n return {\n type: GROUP_ACTIONS.SET_GROUP_ATTRIBUTES,\n groupID,\n attributes\n };\n}\n\nexport function setGroupProperties( groupID, properties ) {\n return {\n type: GROUP_ACTIONS.SET_GROUP_PROPERTIES,\n groupID,\n properties\n };\n}\n\nexport function setGroupBarycenter( groupID, barycenter ) {\n return {\n type: GROUP_ACTIONS.SET_GROUP_BARYCENTER,\n groupID,\n barycenter\n };\n}\n\nexport function removeGroup( groupID ) {\n return {\n type: GROUP_ACTIONS.REMOVE_GROUP,\n groupID\n };\n}\n\nexport function removeGroupAndDeleteElements( groupID ) {\n return {\n type: GROUP_ACTIONS.REMOVE_GROUP_AND_DELETE_ELEMENTS,\n groupID\n };\n}\n\nexport function groupTranslate( groupID, x, y ) {\n return {\n type: GROUP_ACTIONS.GROUP_TRANSLATE,\n groupID,\n x,\n y\n };\n}\n\nexport function groupRotate( groupID, rotation ) {\n return {\n type: GROUP_ACTIONS.GROUP_ROTATE,\n groupID,\n rotation\n };\n}\n","import {SELECT_AREA} from '../constants';\n\nexport function selectArea(layerID, areaID) {\n return {\n type: SELECT_AREA,\n layerID,\n areaID\n }\n}\n","import {\n SELECT_ITEM,\n SELECT_TOOL_DRAWING_ITEM,\n UPDATE_DRAWING_ITEM,\n END_DRAWING_ITEM,\n BEGIN_DRAGGING_ITEM,\n UPDATE_DRAGGING_ITEM,\n END_DRAGGING_ITEM,\n BEGIN_ROTATING_ITEM,\n UPDATE_ROTATING_ITEM,\n END_ROTATING_ITEM\n} from '../constants';\n\nexport function selectItem(layerID, itemID) {\n return {\n type: SELECT_ITEM,\n layerID,\n itemID\n }\n}\n\nexport function selectToolDrawingItem(sceneComponentType) {\n return {\n type: SELECT_TOOL_DRAWING_ITEM,\n sceneComponentType\n }\n}\n\nexport function updateDrawingItem(layerID, x, y) {\n return {\n type: UPDATE_DRAWING_ITEM,\n layerID, x, y\n }\n}\n\nexport function endDrawingItem(layerID, x, y) {\n return {\n type: END_DRAWING_ITEM,\n layerID, x, y\n }\n}\n\nexport function beginDraggingItem(layerID, itemID, x, y) {\n return {\n type: BEGIN_DRAGGING_ITEM,\n layerID, itemID, x, y\n }\n}\n\nexport function updateDraggingItem(x, y) {\n return {\n type: UPDATE_DRAGGING_ITEM,\n x, y\n }\n}\n\nexport function endDraggingItem(x, y) {\n return {\n type: END_DRAGGING_ITEM,\n x, y\n }\n}\n\nexport function beginRotatingItem(layerID, itemID, x, y) {\n return {\n type: BEGIN_ROTATING_ITEM,\n layerID, itemID, x, y\n }\n}\n\nexport function updateRotatingItem(x, y) {\n return {\n type: UPDATE_ROTATING_ITEM,\n x, y\n }\n}\n\nexport function endRotatingItem(x, y) {\n return {\n type: END_ROTATING_ITEM,\n x, y\n }\n}\n","import {BEGIN_DRAGGING_VERTEX, UPDATE_DRAGGING_VERTEX, END_DRAGGING_VERTEX} from '../constants'\n\nexport function beginDraggingVertex(layerID, vertexID, x, y, snapMask) {\n return {\n type: BEGIN_DRAGGING_VERTEX,\n layerID, vertexID, x, y, snapMask\n }\n}\n\nexport function updateDraggingVertex(x, y, snapMask) {\n return {\n type: UPDATE_DRAGGING_VERTEX,\n x, y, snapMask\n }\n}\n\nexport function endDraggingVertex(x, y, snapMask) {\n return {\n type: END_DRAGGING_VERTEX,\n x, y, snapMask\n\n }\n}\n","import {SELECT_LAYER, ADD_LAYER, SET_LAYER_PROPERTIES, REMOVE_LAYER} from '../constants';\n\nexport function selectLayer(layerID) {\n return {\n type: SELECT_LAYER,\n layerID\n }\n}\n\nexport function addLayer(name, altitude) {\n return {\n type: ADD_LAYER,\n name, altitude\n }\n}\n\nexport function setLayerProperties(layerID, properties) {\n return {\n type: SET_LAYER_PROPERTIES,\n layerID,\n properties\n }\n}\n\nexport function removeLayer(layerID) {\n return {\n type: REMOVE_LAYER,\n layerID,\n }\n}\n","import {\n SELECT_HOLE,\n SELECT_TOOL_DRAWING_HOLE,\n UPDATE_DRAWING_HOLE,\n END_DRAWING_HOLE,\n BEGIN_DRAGGING_HOLE,\n UPDATE_DRAGGING_HOLE,\n END_DRAGGING_HOLE\n} from '../constants';\n\nexport function selectHole(layerID, holeID) {\n return {\n type: SELECT_HOLE,\n layerID,\n holeID\n }\n}\n\nexport function selectToolDrawingHole(sceneComponentType) {\n return {\n type: SELECT_TOOL_DRAWING_HOLE,\n sceneComponentType\n }\n}\n\nexport function updateDrawingHole(layerID, x, y) {\n return {\n type: UPDATE_DRAWING_HOLE,\n layerID, x, y\n }\n}\n\nexport function endDrawingHole(layerID, x, y) {\n return {\n type: END_DRAWING_HOLE,\n layerID, x, y\n }\n}\n\n\nexport function beginDraggingHole(layerID, holeID, x, y) {\n return {\n type: BEGIN_DRAGGING_HOLE,\n layerID, holeID, x, y\n };\n}\n\nexport function updateDraggingHole(x, y) {\n return {\n type: UPDATE_DRAGGING_HOLE,\n x, y\n }\n}\n\nexport function endDraggingHole(x, y) {\n return {\n type: END_DRAGGING_HOLE,\n x, y\n }\n}\n","import {\n SELECT_LINE,\n SELECT_TOOL_DRAWING_LINE,\n BEGIN_DRAWING_LINE,\n UPDATE_DRAWING_LINE,\n END_DRAWING_LINE,\n BEGIN_DRAGGING_LINE,\n UPDATE_DRAGGING_LINE,\n END_DRAGGING_LINE\n} from '../constants';\n\nexport function selectLine(layerID, lineID) {\n return {\n type: SELECT_LINE,\n layerID,\n lineID\n }\n}\n\nexport function selectToolDrawingLine(sceneComponentType) {\n return {\n type: SELECT_TOOL_DRAWING_LINE,\n sceneComponentType\n }\n}\n\nexport function beginDrawingLine(layerID, x, y, snapMask) {\n return {\n type: BEGIN_DRAWING_LINE,\n layerID, x, y, snapMask\n }\n}\n\nexport function updateDrawingLine(x, y, snapMask) {\n return {\n type: UPDATE_DRAWING_LINE,\n x, y, snapMask\n }\n}\n\nexport function endDrawingLine(x, y, snapMask) {\n return {\n type: END_DRAWING_LINE,\n x, y, snapMask\n }\n}\n\nexport function beginDraggingLine(layerID, lineID, x, y, snapMask) {\n return {\n type: BEGIN_DRAGGING_LINE,\n layerID, lineID, x, y, snapMask\n }\n}\n\nexport function updateDraggingLine(x, y, snapMask) {\n return {\n type: UPDATE_DRAGGING_LINE,\n x, y, snapMask\n }\n}\n\nexport function endDraggingLine(x, y, snapMask) {\n return {\n type: END_DRAGGING_LINE,\n x, y, snapMask\n }\n}\n","import {SELECT_TOOL_3D_VIEW, SELECT_TOOL_3D_FIRST_PERSON} from '../constants';\n\nexport function selectTool3DView() {\n return {\n type: SELECT_TOOL_3D_VIEW\n }\n}\n\n\nexport function selectTool3DFirstPerson() {\n return {\n type: SELECT_TOOL_3D_FIRST_PERSON\n }\n}\n\n\n","import {UPDATE_2D_CAMERA, SELECT_TOOL_PAN, SELECT_TOOL_ZOOM_IN, SELECT_TOOL_ZOOM_OUT} from '../constants';\n\nexport function updateCameraView(value) {\n return {\n type: UPDATE_2D_CAMERA,\n value\n }\n}\n\nexport function selectToolPan() {\n return {\n type: SELECT_TOOL_PAN\n };\n}\n\nexport function selectToolZoomOut() {\n return {\n type: SELECT_TOOL_ZOOM_OUT\n };\n}\n\nexport function selectToolZoomIn() {\n return {\n type: SELECT_TOOL_ZOOM_IN\n };\n}\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport {bindActionCreators} from 'redux';\nimport {connect} from 'react-redux';\n\nimport Translator from './translator/translator';\nimport Catalog from './catalog/catalog';\nimport actions from './actions/export';\nimport {objectsMap} from './utils/objects-utils';\nimport {\n ToolbarComponents,\n Content,\n SidebarComponents,\n FooterBarComponents\n} from './components/export';\nimport {VERSION} from './version';\nimport './styles/export';\n\nconst {Toolbar} = ToolbarComponents;\nconst {Sidebar} = SidebarComponents;\nconst {FooterBar} = FooterBarComponents;\n\nconst toolbarW = 50;\nconst sidebarW = 300;\nconst footerBarH= 20;\n\nconst wrapperStyle = {\n display: 'flex',\n flexFlow: 'row nowrap'\n};\n\nclass ReactPlanner extends Component {\n\n getChildContext() {\n return {\n ...objectsMap(actions, actionNamespace => this.props[actionNamespace]),\n translator: this.props.translator,\n catalog: this.props.catalog,\n }\n }\n\n componentWillMount() {\n let {store} = this.context;\n let {projectActions, catalog, stateExtractor, plugins} = this.props;\n plugins.forEach(plugin => plugin(store, stateExtractor));\n projectActions.initCatalog(catalog);\n }\n\n componentWillReceiveProps(nextProps) {\n let {stateExtractor, state, projectActions, catalog} = nextProps;\n let plannerState = stateExtractor(state);\n let catalogReady = plannerState.getIn(['catalog', 'ready']);\n if (!catalogReady) {\n projectActions.initCatalog(catalog);\n }\n }\n\n render() {\n let {width, height, state, stateExtractor, ...props} = this.props;\n\n let contentW = width - toolbarW - sidebarW;\n let toolbarH = height - footerBarH;\n let contentH = height - footerBarH;\n let sidebarH = height - footerBarH;\n\n let extractedState = stateExtractor(state);\n\n return (\n
\n \n event.preventDefault()} />\n \n \n
\n );\n }\n}\n\nReactPlanner.propTypes = {\n translator: PropTypes.instanceOf(Translator),\n catalog: PropTypes.instanceOf(Catalog),\n allowProjectFileSupport: PropTypes.bool,\n plugins: PropTypes.arrayOf(PropTypes.func),\n autosaveKey: PropTypes.string,\n autosaveDelay: PropTypes.number,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n stateExtractor: PropTypes.func.isRequired,\n toolbarButtons: PropTypes.array,\n sidebarComponents: PropTypes.array,\n footerbarComponents: PropTypes.array,\n customContents: PropTypes.object,\n softwareSignature: PropTypes.string\n};\n\nReactPlanner.contextTypes = {\n store: PropTypes.object.isRequired,\n};\n\nReactPlanner.childContextTypes = {\n ...objectsMap(actions, () => PropTypes.object),\n translator: PropTypes.object,\n catalog: PropTypes.object,\n};\n\nReactPlanner.defaultProps = {\n translator: new Translator(),\n catalog: new Catalog(),\n plugins: [],\n allowProjectFileSupport: true,\n softwareSignature: `React-Planner ${VERSION}`,\n toolbarButtons: [],\n sidebarComponents: [],\n footerbarComponents: [],\n customContents: {},\n};\n\n//redux connect\nfunction mapStateToProps(reduxState) {\n return {\n state: reduxState\n }\n}\n\nfunction mapDispatchToProps(dispatch) {\n return objectsMap(actions, actionNamespace => bindActionCreators(actions[actionNamespace], dispatch));\n}\n\nexport default connect(mapStateToProps, mapDispatchToProps)(ReactPlanner);\n","import {\n MODE_3D_VIEW,\n MODE_3D_FIRST_PERSON,\n SELECT_TOOL_3D_VIEW,\n SELECT_TOOL_3D_FIRST_PERSON\n} from '../constants';\nimport { Project } from '../class/export';\nimport { history } from '../utils/export';\n\nexport default function (state, action) {\n\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n\n switch (action.type) {\n case SELECT_TOOL_3D_VIEW:\n state = Project.rollback( state ).updatedState;\n state = Project.setMode( state, MODE_3D_VIEW ).updatedState;\n return state;\n\n case SELECT_TOOL_3D_FIRST_PERSON:\n state = Project.rollback( state ).updatedState;\n state = Project.setMode( state, MODE_3D_FIRST_PERSON ).updatedState;\n return state;\n\n default:\n return state;\n }\n}\n","import {\n UPDATE_2D_CAMERA,\n SELECT_TOOL_PAN,\n SELECT_TOOL_ZOOM_IN,\n SELECT_TOOL_ZOOM_OUT,\n MODE_2D_PAN,\n MODE_2D_ZOOM_IN,\n MODE_2D_ZOOM_OUT\n} from '../constants';\nimport {fromJS} from 'immutable';\n\nexport default function (state, action) {\n switch (action.type) {\n case UPDATE_2D_CAMERA:\n return state.merge({\n viewer2D: fromJS(action.value)\n });\n\n case SELECT_TOOL_PAN:\n return state.set('mode', MODE_2D_PAN);\n\n case SELECT_TOOL_ZOOM_IN:\n return state.set('mode', MODE_2D_ZOOM_IN);\n\n case SELECT_TOOL_ZOOM_OUT:\n return state.set('mode', MODE_2D_ZOOM_OUT);\n }\n}\n","import {\n BEGIN_DRAGGING_VERTEX,\n UPDATE_DRAGGING_VERTEX,\n END_DRAGGING_VERTEX\n} from '../constants';\nimport { Vertex } from '../class/export';\n\nexport default function (state, action) {\n switch (action.type) {\n case BEGIN_DRAGGING_VERTEX:\n return Vertex.beginDraggingVertex( state, action.layerID, action.vertexID, action.x, action.y ).updatedState;\n\n case UPDATE_DRAGGING_VERTEX:\n return Vertex.updateDraggingVertex( state, action.x, action.y ).updatedState;\n\n case END_DRAGGING_VERTEX:\n return Vertex.endDraggingVertex( state, action.x, action.y ).updatedState;\n\n default:\n return state;\n }\n}\n","import { Layer } from '../class/export';\nimport { history } from '../utils/export';\nimport {\n ADD_LAYER,\n SELECT_LAYER,\n SET_LAYER_PROPERTIES,\n REMOVE_LAYER\n} from '../constants';\n\nexport default function (state, action) {\n\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n\n switch (action.type) {\n case ADD_LAYER:\n return Layer.create( state, action.name, action.altitude).updatedState;\n\n case SELECT_LAYER:\n return Layer.select( state, action.layerID ).updatedState;\n\n case SET_LAYER_PROPERTIES:\n return Layer.setProperties( state, action.layerID, action.properties ).updatedState;\n\n case REMOVE_LAYER:\n return Layer.remove( state, action.layerID ).updatedState;\n\n default:\n return state;\n }\n}\n","import { history } from '../utils/export';\nimport {\n LOAD_PROJECT,\n NEW_PROJECT,\n OPEN_CATALOG,\n SELECT_TOOL_EDIT,\n MODE_IDLE,\n UNSELECT_ALL,\n SET_PROPERTIES,\n SET_ITEMS_ATTRIBUTES,\n SET_LINES_ATTRIBUTES,\n SET_HOLES_ATTRIBUTES,\n REMOVE,\n UNDO,\n ROLLBACK,\n SET_PROJECT_PROPERTIES,\n OPEN_PROJECT_CONFIGURATOR,\n INIT_CATALOG,\n UPDATE_MOUSE_COORDS,\n UPDATE_ZOOM_SCALE,\n TOGGLE_SNAP,\n CHANGE_CATALOG_PAGE,\n GO_BACK_TO_CATALOG_PAGE,\n THROW_ERROR,\n THROW_WARNING,\n COPY_PROPERTIES,\n PASTE_PROPERTIES,\n PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,\n ALTERATE_STATE,\n SET_MODE,\n ADD_HORIZONTAL_GUIDE,\n ADD_VERTICAL_GUIDE,\n ADD_CIRCULAR_GUIDE,\n REMOVE_HORIZONTAL_GUIDE,\n REMOVE_VERTICAL_GUIDE,\n REMOVE_CIRCULAR_GUIDE\n} from '../constants';\n\nimport { Project } from '../class/export';\n\nexport default function (state, action) {\n\n switch (action.type) {\n case NEW_PROJECT:\n return Project.newProject(state).updatedState;\n\n case LOAD_PROJECT:\n return Project.loadProject(state, action.sceneJSON).updatedState;\n\n case OPEN_CATALOG:\n return Project.openCatalog(state).updatedState;\n\n case CHANGE_CATALOG_PAGE:\n return Project.changeCatalogPage( state, action.oldPage, action.newPage ).updatedState;\n\n case GO_BACK_TO_CATALOG_PAGE:\n return Project.goBackToCatalogPage( state, action.newPage ).updatedState;\n\n case SELECT_TOOL_EDIT:\n return Project.setMode(state, MODE_IDLE).updatedState;\n\n case UNSELECT_ALL:\n return Project.unselectAll(state).updatedState;\n\n case SET_PROPERTIES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.setProperties(state, state.getIn(['scene', 'selectedLayer']), action.properties).updatedState;\n\n case SET_ITEMS_ATTRIBUTES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.setItemsAttributes(state, action.itemsAttributes).updatedState;\n\n case SET_LINES_ATTRIBUTES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.setLinesAttributes(state, action.linesAttributes).updatedState;\n\n case SET_HOLES_ATTRIBUTES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.setHolesAttributes(state, action.holesAttributes).updatedState;\n\n case REMOVE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.remove(state).updatedState;\n\n case UNDO:\n return Project.undo(state).updatedState;\n\n case ROLLBACK:\n return Project.rollback(state).updatedState;\n\n case SET_PROJECT_PROPERTIES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.setProjectProperties(state, action.properties).updatedState;\n\n case OPEN_PROJECT_CONFIGURATOR:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.openProjectConfigurator(state).updatedState;\n\n case INIT_CATALOG:\n return Project.initCatalog(state, action.catalog).updatedState;\n\n case UPDATE_MOUSE_COORDS:\n return Project.updateMouseCoord(state, action.coords).updatedState;\n\n case UPDATE_ZOOM_SCALE:\n return Project.updateZoomScale(state, action.scale).updatedState;\n\n case TOGGLE_SNAP:\n return Project.toggleSnap(state, action.mask).updatedState;\n\n case THROW_ERROR:\n return Project.throwError(state, action.error).updatedState;\n\n case THROW_WARNING:\n return Project.throwWarning(state, action.warning).updatedState;\n\n case COPY_PROPERTIES:\n return Project.copyProperties(state, action.properties).updatedState;\n\n case PASTE_PROPERTIES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.pasteProperties(state).updatedState;\n\n case PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY:\n return Project.pushLastSelectedCatalogElementToHistory(state, action.element).updatedState;\n\n case ALTERATE_STATE:\n return Project.setAlterate( state ).updatedState;\n \n case SET_MODE:\n return Project.setMode(state, action.mode).updatedState;\n \n case ADD_HORIZONTAL_GUIDE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.addHorizontalGuide(state, action.coordinate).updatedState;\n \n case ADD_VERTICAL_GUIDE:\n return Project.addVerticalGuide(state, action.coordinate).updatedState;\n \n case ADD_CIRCULAR_GUIDE:\n return Project.addCircularGuide(state, action.x, action.y, action.radius).updatedState;\n\n case REMOVE_HORIZONTAL_GUIDE:\n return Project.removeHorizontalGuide(state, action.guideID).updatedState;\n\n case REMOVE_VERTICAL_GUIDE:\n return Project.removeVerticalGuide(state, action.guideID).updatedState;\n\n case REMOVE_CIRCULAR_GUIDE:\n return Project.removeCircularGuide(state, action.guideID).updatedState;\n\n default:\n return state;\n\n }\n}\n","import { GROUP_ACTIONS } from '../constants';\nimport { Group } from '../class/export';\nimport { history } from '../utils/export';\n\nexport default function (state, action) {\n\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n\n switch (action.type) {\n case GROUP_ACTIONS.ADD_GROUP:\n return Group.create(state).updatedState;\n\n case GROUP_ACTIONS.ADD_GROUP_FROM_SELECTED:\n return Group.createFromSelectedElements(state).updatedState;\n\n case GROUP_ACTIONS.SELECT_GROUP:\n return Group.select(state, action.groupID).updatedState;\n\n case GROUP_ACTIONS.UNSELECT_GROUP:\n return Group.unselect(state, action.groupID).updatedState;\n\n case GROUP_ACTIONS.ADD_TO_GROUP:\n return Group.addElement(state, action.groupID, action.layerID, action.elementPrototype, action.elementID).updatedState;\n\n case GROUP_ACTIONS.REMOVE_FROM_GROUP:\n return Group.removeElement(state, action.groupID, action.layerID, action.elementPrototype, action.elementID).updatedState;\n\n case GROUP_ACTIONS.SET_GROUP_ATTRIBUTES:\n return Group.setAttributes(state, action.groupID, action.attributes).updatedState;\n\n case GROUP_ACTIONS.SET_GROUP_PROPERTIES:\n return Group.setProperties(state, action.groupID, action.properties).updatedState;\n\n case GROUP_ACTIONS.SET_GROUP_BARYCENTER:\n return Group.setBarycenter(state, action.groupID, action.barycenter.get('x'), action.barycenter.get('y')).updatedState;\n\n case GROUP_ACTIONS.REMOVE_GROUP:\n return Group.remove(state, action.groupID).updatedState;\n\n case GROUP_ACTIONS.REMOVE_GROUP_AND_DELETE_ELEMENTS:\n return Group.removeAndDeleteElements(state, action.groupID).updatedState;\n\n case GROUP_ACTIONS.GROUP_TRANSLATE:\n return Group.translate(state, action.groupID, action.x, action.y).updatedState;\n\n case GROUP_ACTIONS.GROUP_ROTATE:\n return Group.rotate(state, action.groupID, action.rotation).updatedState;\n\n default:\n return state;\n }\n}\n\n","import { Line } from '../class/export';\nimport { history } from '../utils/export';\nimport {\n SELECT_TOOL_DRAWING_LINE,\n BEGIN_DRAWING_LINE,\n UPDATE_DRAWING_LINE,\n END_DRAWING_LINE,\n BEGIN_DRAGGING_LINE,\n UPDATE_DRAGGING_LINE,\n END_DRAGGING_LINE,\n SELECT_LINE\n} from '../constants';\n\nexport default function (state, action) {\n\n switch (action.type) {\n case SELECT_TOOL_DRAWING_LINE:\n return Line.selectToolDrawingLine(state, action.sceneComponentType).updatedState;\n\n case BEGIN_DRAWING_LINE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Line.beginDrawingLine(state, action.layerID, action.x, action.y).updatedState;\n\n case UPDATE_DRAWING_LINE:\n return Line.updateDrawingLine(state, action.x, action.y).updatedState;\n\n case END_DRAWING_LINE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Line.endDrawingLine(state, action.x, action.y).updatedState;\n\n case BEGIN_DRAGGING_LINE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Line.beginDraggingLine(state, action.layerID, action.lineID, action.x, action.y).updatedState;\n\n case UPDATE_DRAGGING_LINE:\n return Line.updateDraggingLine(state, action.x, action.y).updatedState;\n\n case END_DRAGGING_LINE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Line.endDraggingLine(state, action.x, action.y).updatedState;\n\n case SELECT_LINE:\n return Line.select(state, action.layerID, action.lineID).updatedState;\n\n default:\n return state;\n }\n}\n","import { Item } from '../class/export';\nimport { history } from '../utils/export';\nimport {\n SELECT_TOOL_DRAWING_ITEM,\n UPDATE_DRAWING_ITEM,\n END_DRAWING_ITEM,\n BEGIN_DRAGGING_ITEM,\n UPDATE_DRAGGING_ITEM,\n END_DRAGGING_ITEM,\n BEGIN_ROTATING_ITEM,\n UPDATE_ROTATING_ITEM,\n END_ROTATING_ITEM,\n SELECT_ITEM\n} from '../constants';\n\nexport default function (state, action) {\n switch (action.type) {\n case SELECT_ITEM:\n return Item.select(state, action.layerID, action.itemID).updatedState;\n\n case SELECT_TOOL_DRAWING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.selectToolDrawingItem(state, action.sceneComponentType).updatedState;\n\n case UPDATE_DRAWING_ITEM:\n return Item.updateDrawingItem(state, action.layerID, action.x, action.y).updatedState;\n\n case END_DRAWING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.endDrawingItem(state, action.layerID, action.x, action.y).updatedState;\n\n case BEGIN_DRAGGING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.beginDraggingItem(state, action.layerID, action.itemID, action.x, action.y).updatedState;\n\n case UPDATE_DRAGGING_ITEM:\n return Item.updateDraggingItem(state, action.x, action.y).updatedState;\n\n case END_DRAGGING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.endDraggingItem(state, action.x, action.y).updatedState;\n\n case BEGIN_ROTATING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.beginRotatingItem(state, action.layerID, action.itemID, action.x, action.y).updatedState;\n\n case UPDATE_ROTATING_ITEM:\n return Item.updateRotatingItem(state, action.x, action.y).updatedState;\n\n case END_ROTATING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.endRotatingItem(state, action.x, action.y).updatedState;\n\n default:\n return state;\n }\n}\n","import { Hole } from '../class/export';\nimport { history } from '../utils/export';\nimport {\n SELECT_TOOL_DRAWING_HOLE,\n UPDATE_DRAWING_HOLE,\n END_DRAWING_HOLE,\n BEGIN_DRAGGING_HOLE,\n UPDATE_DRAGGING_HOLE,\n END_DRAGGING_HOLE,\n SELECT_HOLE,\n} from '../constants';\n\nexport default function (state, action) {\n switch (action.type) {\n case SELECT_TOOL_DRAWING_HOLE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Hole.selectToolDrawingHole(state, action.sceneComponentType).updatedState;\n\n case UPDATE_DRAWING_HOLE:\n return Hole.updateDrawingHole(state, action.layerID, action.x, action.y).updatedState;\n\n case END_DRAWING_HOLE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Hole.endDrawingHole(state, action.layerID, action.x, action.y).updatedState;\n\n case BEGIN_DRAGGING_HOLE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Hole.beginDraggingHole(state, action.layerID, action.holeID, action.x, action.y).updatedState;\n\n case UPDATE_DRAGGING_HOLE:\n return Hole.updateDraggingHole(state, action.x, action.y).updatedState;\n\n case END_DRAGGING_HOLE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Hole.endDraggingHole(state, action.x, action.y).updatedState;\n\n case SELECT_HOLE:\n return Hole.select( state, action.layerID, action.holeID ).updatedState;\n\n default:\n return state;\n }\n}\n","import { IDBroker } from '../utils/export';\n\nclass HorizontalGuide {\n static create(state, coordinate) {\n let hGuideID = IDBroker.acquireID();\n state = state.setIn(['scene', 'guides', 'horizontal', hGuideID], coordinate);\n\n return { updatedState: state };\n }\n\n static remove(state, hGuideID) {\n state = state.deleteIn(['scene', 'guides', 'horizontal', hGuideID]);\n\n return { updatedState: state };\n }\n};\n\nclass VerticalGuide {\n static create(state, coordinate) {\n let vGuideID = IDBroker.acquireID();\n state = state.setIn(['scene', 'guides', 'vertical', vGuideID], coordinate);\n\n return { updatedState: state };\n }\n\n static remove(state, vGuideID) {\n state = state.deleteIn(['scene', 'guides', 'vertical', vGuideID]);\n\n return { updatedState: state };\n }\n};\n\nclass CircularGuide {\n};\n\nexport {\n HorizontalGuide,\n VerticalGuide,\n CircularGuide\n};\n\nexport default {\n HorizontalGuide,\n VerticalGuide,\n CircularGuide\n};\n","import { Layer, Group } from './export';\nimport {\n IDBroker,\n NameGenerator\n} from '../utils/export';\nimport { Map, fromJS } from 'immutable';\n\nimport {\n MODE_IDLE,\n MODE_DRAWING_ITEM,\n MODE_DRAGGING_ITEM,\n MODE_ROTATING_ITEM\n} from '../constants';\n\nclass Item{\n\n static create( state, layerID, type, x, y, width, height, rotation ) {\n let itemID = IDBroker.acquireID();\n\n let item = state.catalog.factoryElement(type, {\n id: itemID,\n name: NameGenerator.generateName('items', state.catalog.getIn(['elements', type, 'info', 'title'])),\n type,\n height,\n width,\n x,\n y,\n rotation\n });\n\n state = state.setIn(['scene', 'layers', layerID, 'items', itemID], item);\n\n return { updatedState: state, item };\n }\n\n static select( state, layerID, itemID ){\n state = Layer.select( state, layerID ).updatedState;\n state = Layer.selectElement( state, layerID, 'items', itemID ).updatedState;\n\n return {updatedState: state};\n }\n\n static remove( state, layerID, itemID ) {\n state = this.unselect( state, layerID, itemID ).updatedState;\n state = Layer.removeElement( state, layerID, 'items', itemID ).updatedState;\n\n state.getIn(['scene', 'groups']).forEach( group => state = Group.removeElement(state, group.id, layerID, 'items', itemID).updatedState );\n\n return { updatedState: state };\n }\n\n static unselect( state, layerID, itemID ) {\n state = Layer.unselect( state, layerID, 'items', itemID ).updatedState;\n\n return { updatedState: state };\n }\n\n static selectToolDrawingItem(state, sceneComponentType) {\n state = state.merge({\n mode: MODE_DRAWING_ITEM,\n drawingSupport: new Map({\n type: sceneComponentType\n })\n });\n\n return { updatedState: state };\n }\n\n static updateDrawingItem(state, layerID, x, y) {\n if (state.hasIn(['drawingSupport','currentID'])) {\n state = state.updateIn(['scene', 'layers', layerID, 'items', state.getIn(['drawingSupport','currentID'])], item => item.merge({x, y}));\n }\n else {\n let { updatedState: stateI, item } = this.create( state, layerID, state.getIn(['drawingSupport','type']), x, y, 200, 100, 0);\n state = Item.select( stateI, layerID, item.id ).updatedState;\n state = state.setIn(['drawingSupport','currentID'], item.id);\n }\n\n return { updatedState: state };\n }\n\n static endDrawingItem(state, layerID, x, y) {\n let catalog = state.catalog;\n state = this.updateDrawingItem(state, layerID, x, y, catalog).updatedState;\n state = Layer.unselectAll( state, layerID ).updatedState;\n state = state.merge({\n drawingSupport: Map({\n type: state.drawingSupport.get('type')\n })\n });\n\n return { updatedState: state };\n }\n\n static beginDraggingItem(state, layerID, itemID, x, y) {\n\n let item = state.getIn(['scene', 'layers', layerID, 'items', itemID]);\n\n state = state.merge({\n mode: MODE_DRAGGING_ITEM,\n draggingSupport: Map({\n layerID,\n itemID,\n startPointX: x,\n startPointY: y,\n originalX: item.x,\n originalY: item.y\n })\n });\n\n return { updatedState: state };\n }\n\n static updateDraggingItem(state, x, y) {\n let {draggingSupport, scene} = state;\n\n let layerID = draggingSupport.get('layerID');\n let itemID = draggingSupport.get('itemID');\n let startPointX = draggingSupport.get('startPointX');\n let startPointY = draggingSupport.get('startPointY');\n let originalX = draggingSupport.get('originalX');\n let originalY = draggingSupport.get('originalY');\n\n let diffX = startPointX - x;\n let diffY = startPointY - y;\n\n let item = scene.getIn(['layers', layerID, 'items', itemID]);\n item = item.merge({\n x: originalX - diffX,\n y: originalY - diffY\n });\n\n state = state.merge({\n scene: scene.mergeIn(['layers', layerID, 'items', itemID], item)\n });\n\n return { updatedState: state };\n }\n\n static endDraggingItem(state, x, y) {\n state = this.updateDraggingItem(state, x, y).updatedState;\n state = state.merge({ mode: MODE_IDLE });\n\n return { updatedState: state };\n }\n\n static beginRotatingItem(state, layerID, itemID, x, y) {\n state = state.merge({\n mode: MODE_ROTATING_ITEM,\n rotatingSupport: Map({\n layerID,\n itemID\n })\n });\n\n return { updatedState: state };\n }\n\n static updateRotatingItem(state, x, y) {\n let {rotatingSupport, scene} = state;\n\n let layerID = rotatingSupport.get('layerID');\n let itemID = rotatingSupport.get('itemID');\n let item = state.getIn(['scene', 'layers', layerID, 'items', itemID]);\n\n let deltaX = x - item.x;\n let deltaY = y - item.y;\n let rotation = Math.atan2(deltaY, deltaX) * 180 / Math.PI - 90;\n\n if (-5 < rotation && rotation < 5) rotation = 0;\n if (-95 < rotation && rotation < -85) rotation = -90;\n if (-185 < rotation && rotation < -175) rotation = -180;\n if (85 < rotation && rotation < 90) rotation = 90;\n if (-270 < rotation && rotation < -265) rotation = 90;\n\n item = item.merge({\n rotation,\n });\n\n state = state.merge({\n scene: scene.mergeIn(['layers', layerID, 'items', itemID], item)\n });\n\n return { updatedState: state };\n }\n\n static endRotatingItem(state, x, y) {\n state = this.updateRotatingItem(state, x, y).updatedState;\n state = state.merge({ mode: MODE_IDLE });\n\n return { updatedState: state };\n }\n\n static setProperties( state, layerID, itemID, properties ) {\n state = state.mergeIn(['scene', 'layers', layerID, 'items', itemID, 'properties'], properties);\n\n return { updatedState: state };\n }\n\n static setJsProperties( state, layerID, itemID, properties ) {\n return this.setProperties( state, layerID, itemID, fromJS(properties) );\n }\n\n static updateProperties( state, layerID, itemID, properties) {\n properties.forEach( ( v, k ) => {\n if( state.hasIn(['scene', 'layers', layerID, 'items', itemID, 'properties', k]) )\n state = state.mergeIn(['scene', 'layers', layerID, 'items', itemID, 'properties', k], v);\n });\n\n return { updatedState: state };\n }\n\n static updateJsProperties( state, layerID, itemID, properties) {\n return this.updateProperties( state, layerID, itemID, fromJS(properties) );\n }\n\n static setAttributes( state, layerID, itemID, itemAttributes) {\n state = state.mergeIn(['scene', 'layers', layerID, 'items', itemID], itemAttributes);\n return { updatedState: state };\n }\n\n static setJsAttributes( state, layerID, itemID, itemAttributes) {\n itemAttributes = fromJS(itemAttributes);\n return this.setAttributes(state, layerID, itemID, itemAttributes);\n }\n\n}\n\nexport { Item as default };\n","import { fromJS } from 'immutable';\nimport { Layer, Vertex, Group } from './export';\nimport {\n IDBroker,\n NameGenerator\n} from '../utils/export';\n\nclass Area{\n\n static add( state, layerID, type, verticesCoords, catalog ) {\n\n let area;\n\n let layer = state.getIn(['scene', 'layers', layerID]);\n\n layer = layer.withMutations(layer => {\n let areaID = IDBroker.acquireID();\n\n let vertices = verticesCoords.map( ( v ) => Vertex.add( state, layerID, v.x, v.y, 'areas', areaID).vertex.id );\n\n area = catalog.factoryElement(type, {\n id: areaID,\n name: NameGenerator.generateName('areas', catalog.getIn(['elements', type, 'info', 'title'])),\n type,\n prototype: 'areas',\n vertices\n });\n\n layer.setIn(['areas', areaID], area);\n });\n\n state = state.setIn(['scene', 'layers', layerID], layer);\n\n return { updatedState: state, area };\n }\n\n static select( state, layerID, areaID ){\n state = Layer.select( state, layerID ).updatedState;\n state = Layer.selectElement( state, layerID, 'areas', areaID ).updatedState;\n\n return {updatedState: state};\n }\n\n static remove( state, layerID, areaID ) {\n\n let area = state.getIn(['scene', 'layers', layerID, 'areas', areaID]);\n\n if( area.get('selected') === true ) state = this.unselect( state, layerID, areaID ).updatedState;\n\n area.vertices.forEach(vertexID => { state = Vertex.remove( state, layerID, vertexID, 'areas', areaID).updatedState; });\n\n state = state.deleteIn(['scene', 'layers', layerID, 'areas', areaID]);\n\n state.getIn(['scene', 'groups']).forEach( group => state = Group.removeElement(state, group.id, layerID, 'areas', areaID).updatedState );\n\n return {updatedState: state};\n }\n\n static unselect( state, layerID, areaID ) {\n state = Layer.unselect( state, layerID, 'areas', areaID ).updatedState;\n\n return {updatedState: state};\n }\n\n static setProperties( state, layerID, areaID, properties ) {\n state = state.mergeIn(['scene', 'layers', layerID, 'areas', areaID, 'properties'], properties);\n\n return { updatedState: state };\n }\n\n static setJsProperties( state, layerID, areaID, properties ) {\n return this.setProperties( state, layerID, areaID, fromJS(properties) );\n }\n\n static updateProperties( state, layerID, areaID, properties) {\n properties.forEach( ( v, k ) => {\n if( state.hasIn(['scene', 'layers', layerID, 'areas', areaID, 'properties', k]) )\n state = state.mergeIn(['scene', 'layers', layerID, 'areas', areaID, 'properties', k], v);\n });\n\n return { updatedState: state };\n }\n\n static updateJsProperties( state, layerID, areaID, properties) {\n return this.updateProperties( state, layerID, areaID, fromJS(properties) );\n }\n\n static setAttributes( state ) {\n return { updatedState: state };\n }\n\n}\n\nexport { Area as default };\n","import { Map, List } from 'immutable';\nimport { Vertex as VertexModel } from '../models';\nimport {\n IDBroker,\n GeometryUtils,\n SnapSceneUtils,\n SnapUtils\n} from '../utils/export';\nimport {\n MODE_DRAGGING_VERTEX,\n MODE_IDLE\n} from '../constants';\nimport { Layer, Line, Group } from '../class/export';\n\nclass Vertex{\n\n static add( state, layerID, x, y, relatedPrototype, relatedID ) {\n\n let vertex = state.getIn(['scene', 'layers', layerID, 'vertices']).find(vertex => GeometryUtils.samePoints(vertex, {x, y}));\n\n if (vertex) {\n vertex = vertex.update(relatedPrototype, related => related.push(relatedID));\n }\n else {\n vertex = new VertexModel({\n id: IDBroker.acquireID(),\n name: 'Vertex',\n x, y,\n [relatedPrototype]: new List([relatedID])\n });\n }\n\n state = state.setIn(['scene', 'layers', layerID, 'vertices', vertex.id], vertex);\n\n return { updatedState: state, vertex };\n }\n\n static setAttributes(state, layerID, vertexID, vertexAttributes) {\n state = state.mergeIn(['scene', 'layers', layerID, 'vertices', vertexID ], vertexAttributes)\n\n return { updatedState: state };\n }\n\n static addElement( state, layerID, vertexID, elementPrototype, elementID ) {\n state = state.updateIn(['scene', 'layers', layerID, 'vertices', vertexID, elementPrototype], list => list.push( elementID ) );\n return { updatedState: state };\n }\n\n static removeElement( state, layerID, vertexID, elementPrototype, elementID ) {\n let elementIndex = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID, elementPrototype]).findIndex( el => el === elementID );\n if( elementIndex !== -1 ) {\n state = state.updateIn(['scene', 'layers', layerID, 'vertices', vertexID, elementPrototype], list => list.remove( elementIndex ) );\n }\n return { updatedState: state };\n }\n\n static select( state, layerID, vertexID ){\n state = state.setIn(['scene', 'layers', layerID, 'vertices', vertexID, 'selected'], true);\n state = state.updateIn(['scene', 'layers', layerID, 'selected', 'vertices'], elems => elems.push(vertexID));\n\n return { updatedState: state };\n }\n\n static unselect( state, layerID, vertexID ){\n state = state.setIn(['scene', 'layers', layerID, 'vertices', vertexID, 'selected'], false);\n state = state.updateIn(['scene', 'layers', layerID, 'selected', 'vertices'], elems => elems.filter( el => el.id !== vertexID ));\n\n return { updatedState: state };\n }\n\n static remove( state, layerID, vertexID, relatedPrototype, relatedID, forceRemove ) {\n let vertex = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]);\n\n\n if( vertex ) {\n if( relatedPrototype && relatedID ) vertex = vertex.update(relatedPrototype, related => {\n let index = related.findIndex(ID => relatedID === ID);\n return related.delete(index);\n });\n\n let inUse = vertex.areas.size || vertex.lines.size;\n\n if( inUse && !forceRemove ) {\n state = state.setIn(['scene', 'layers', layerID, 'vertices', vertexID], vertex);\n }\n else {\n state = state.deleteIn(['scene', 'layers', layerID, 'vertices', vertexID]);\n }\n }\n\n return { updatedState: state };\n }\n\n static beginDraggingVertex(state, layerID, vertexID, x, y) {\n\n let snapElements = SnapSceneUtils.sceneSnapElements(state.scene, new List(), state.snapMask);\n\n state = state.merge({\n mode: MODE_DRAGGING_VERTEX,\n snapElements,\n draggingSupport: Map({\n layerID,\n vertexID,\n previousMode: state.get('mode')\n })\n });\n\n return { updatedState: state };\n }\n\n static updateDraggingVertex(state, x, y) {\n let { draggingSupport, snapElements, scene } = state;\n\n let snap = null;\n if (state.snapMask && !state.snapMask.isEmpty()) {\n snap = SnapUtils.nearestSnap(snapElements, x, y, state.snapMask);\n if (snap) ({ x, y } = snap.point);\n }\n\n let layerID = draggingSupport.get('layerID');\n let vertexID = draggingSupport.get('vertexID');\n state = state.merge({\n activeSnapElement: snap ? snap.snap : null,\n scene: scene.mergeIn(['layers', layerID, 'vertices', vertexID], { x, y })\n });\n\n return { updatedState: state };\n }\n\n static endDraggingVertex(state, x, y) {\n let { draggingSupport } = state;\n let layerID = draggingSupport.get('layerID');\n let vertexID = draggingSupport.get('vertexID');\n let lines = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID, 'lines']);\n\n if( lines ) {\n state = lines.reduce(\n ( reducedState, lineID ) =>\n {\n if( !reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID])) return reducedState;\n\n let v_id0 = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices', 0]);\n let v_id1 = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices', 1]);\n let oldVertexID = v_id0 === vertexID ? v_id1 : v_id0;\n\n let oldVertex = reducedState.getIn(['scene', 'layers', layerID, 'vertices', oldVertexID]);\n let vertex = reducedState.getIn(['scene', 'layers', layerID, 'vertices', vertexID]);\n\n let oldHoles = [];\n\n let orderedVertices = GeometryUtils.orderVertices([oldVertex, vertex]);\n\n let holes = reducedState\n .getIn(['scene', 'layers', layerID, 'lines', lineID, 'holes'])\n .forEach(holeID => {\n let hole = reducedState.getIn(['scene', 'layers', layerID, 'holes', holeID]);\n let oldLineLength = GeometryUtils.pointsDistance(oldVertex.x, oldVertex.y, vertex.x, vertex.y);\n let offset = GeometryUtils.samePoints( orderedVertices[1], reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices', 1]) ) ? ( 1 - hole.offset ) : hole.offset;\n let offsetPosition = GeometryUtils.extendLine( oldVertex.x, oldVertex.y, vertex.x, vertex.y, oldLineLength * offset );\n\n oldHoles.push({hole, offsetPosition});\n });\n\n let lineType = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'type']);\n let lineProps = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'properties']);\n let lineGroups = reducedState //get groups membership if present\n .getIn(['scene', 'groups'])\n .filter( group => {\n const lines = group.getIn(['elements', layerID, 'lines']);\n return lines && lines.contains(lineID);\n });\n\n reducedState = Layer.removeZeroLengthLines( reducedState, layerID ).updatedState;\n reducedState = Layer.mergeEqualsVertices( reducedState, layerID, vertexID ).updatedState;\n reducedState = Line.remove( reducedState, layerID, lineID ).updatedState;\n\n if (!GeometryUtils.samePoints(oldVertex, vertex)) {\n let ret = Line.createAvoidingIntersections(\n reducedState,\n layerID,\n lineType,\n oldVertex.x,\n oldVertex.y,\n vertex.x,\n vertex.y,\n lineProps,\n oldHoles\n );\n\n reducedState = ret.updatedState;\n\n //re-add to old line's groups if present\n ret.lines.forEach( addedLine => {\n lineGroups.forEach( oldLineGroup => {\n reducedState = Group.addElement( reducedState, oldLineGroup.id, layerID, 'lines', addedLine.id ).updatedState;\n });\n });\n }\n\n return reducedState;\n },\n state\n );\n }\n\n state = Layer.detectAndUpdateAreas( state, layerID ).updatedState;\n\n state = state.merge({\n mode: draggingSupport.get('previousMode'),\n draggingSupport: null,\n activeSnapElement: null,\n snapElements: new List()\n });\n\n return { updatedState: state };\n }\n\n}\n\nexport { Vertex as default };\n","import {Map, List, fromJS} from 'immutable';\nimport {Layer, Group} from './export';\n\nimport {\n IDBroker,\n NameGenerator\n} from '../utils/export';\n\nimport {\n nearestSnap,\n addLineSegmentSnap,\n} from '../utils/snap';\n\nimport {\n MODE_IDLE,\n MODE_DRAWING_HOLE,\n MODE_DRAGGING_HOLE,\n} from '../constants';\n\nimport {\n GeometryUtils\n} from '../utils/export';\n\nclass Hole {\n\n static create(state, layerID, type, lineID, offset, properties) {\n\n let holeID = IDBroker.acquireID();\n\n let hole = state.catalog.factoryElement(type, {\n id: holeID,\n name: NameGenerator.generateName('holes', state.catalog.getIn(['elements', type, 'info', 'title'])),\n type,\n offset,\n line: lineID\n }, properties);\n\n state = state.setIn(['scene', 'layers', layerID, 'holes', holeID], hole);\n state = state.updateIn(['scene', 'layers', layerID, 'lines', lineID, 'holes'],\n holes => holes.push(holeID));\n\n return {updatedState: state, hole};\n }\n\n static select(state, layerID, holeID) {\n state = Layer.select(state, layerID).updatedState;\n state = Layer.selectElement(state, layerID, 'holes', holeID).updatedState;\n\n return {updatedState: state};\n }\n\n static remove(state, layerID, holeID) {\n let hole = state.getIn(['scene', 'layers', layerID, 'holes', holeID]);\n state = this.unselect(state, layerID, holeID).updatedState;\n state = Layer.removeElement(state, layerID, 'holes', holeID).updatedState;\n\n state = state.updateIn(['scene', 'layers', layerID, 'lines', hole.line, 'holes'], holes => {\n let index = holes.findIndex(ID => holeID === ID);\n return index !== -1 ? holes.remove(index) : holes;\n });\n\n state.getIn(['scene', 'groups']).forEach(group => state = Group.removeElement(state, group.id, layerID, 'holes', holeID).updatedState);\n\n return {updatedState: state};\n }\n\n static unselect(state, layerID, holeID) {\n state = Layer.unselect(state, layerID, 'holes', holeID).updatedState;\n\n return {updatedState: state};\n }\n\n static selectToolDrawingHole(state, sceneComponentType) {\n\n let snapElements = (new List()).withMutations(snapElements => {\n let {lines, vertices} = state.getIn(['scene', 'layers', state.scene.selectedLayer]);\n\n lines.forEach(line => {\n let {x: x1, y: y1} = vertices.get(line.vertices.get(0));\n let {x: x2, y: y2} = vertices.get(line.vertices.get(1));\n\n addLineSegmentSnap(snapElements, x1, y1, x2, y2, 20, 1, line.id);\n });\n });\n\n state = state.merge({\n mode: MODE_DRAWING_HOLE,\n snapElements,\n drawingSupport: Map({\n type: sceneComponentType\n })\n });\n\n return {updatedState: state};\n }\n\n static updateDrawingHole(state, layerID, x, y) {\n let catalog = state.catalog;\n\n //calculate snap and overwrite coords if needed\n //force snap to segment\n let snap = nearestSnap(state.snapElements, x, y, state.snapMask.merge({SNAP_SEGMENT: true}));\n if (snap) ({x, y} = snap.point);\n\n let selectedHole = state.getIn(['scene', 'layers', layerID, 'selected', 'holes']).first();\n\n if (snap) {\n let lineID = snap.snap.related.get(0);\n\n let vertices = state.getIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices']);\n let {x: x1, y: y1} = state.getIn(['scene', 'layers', layerID, 'vertices', vertices.get(0)]);\n let {x: x2, y: y2} = state.getIn(['scene', 'layers', layerID, 'vertices', vertices.get(1)]);\n\n // I need min and max vertices on this line segment\n let minVertex = GeometryUtils.minVertex({x: x1, y: y1}, {x: x2, y: y2});\n let maxVertex = GeometryUtils.maxVertex({x: x1, y: y1}, {x: x2, y: y2});\n let width = catalog.factoryElement(state.drawingSupport.get('type')).properties.getIn(['width', 'length']);\n\n // Now I need min and max possible coordinates for the hole on the line. They depend on the width of the hole\n let lineLength = GeometryUtils.pointsDistance(x1, y1, x2, y2);\n let alpha = GeometryUtils.absAngleBetweenTwoPoints(x1, y1, x2, y2);\n\n let cosAlpha = GeometryUtils.cosWithThreshold(alpha, 0.0000001);\n let sinAlpha = GeometryUtils.sinWithThreshold(alpha, 0.0000001);\n\n let minLeftVertexHole = {\n x: minVertex.x + width / 2 * cosAlpha,\n y: minVertex.y + width / 2 * sinAlpha\n };\n\n let maxRightVertexHole = {\n x: minVertex.x + lineLength * cosAlpha - width / 2 * cosAlpha,\n y: minVertex.y + lineLength * sinAlpha - width / 2 * sinAlpha\n };\n\n let offset;\n if (x < minLeftVertexHole.x) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n minLeftVertexHole.x, minLeftVertexHole.y);\n } else if (x > maxRightVertexHole.x) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n maxRightVertexHole.x, maxRightVertexHole.y);\n } else {\n\n if (x === minLeftVertexHole.x && x === maxRightVertexHole.x) {\n if (y < minLeftVertexHole.y) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n minLeftVertexHole.x, minLeftVertexHole.y);\n offset = minVertex.x === x1 && minVertex.y === y1 ? offset : 1 - offset;\n } else if (y > maxRightVertexHole.y) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n maxRightVertexHole.x, maxRightVertexHole.y);\n offset = minVertex.x === x1 && minVertex.y === y1 ? offset : 1 - offset;\n } else {\n offset = GeometryUtils.pointPositionOnLineSegment(x1, y1, x2, y2, x, y);\n }\n } else {\n offset = GeometryUtils.pointPositionOnLineSegment(x1, y1, x2, y2, x, y);\n }\n }\n\n //if hole does exist, update\n if (selectedHole && snap) {\n state = state.mergeIn(['scene', 'layers', layerID, 'holes', selectedHole], {offset, line: lineID});\n\n //remove from old line ( if present )\n let index = state.getIn(['scene', 'layers', layerID, 'lines']).findEntry(line => {\n return line.id !== lineID && line.get('holes').contains(selectedHole);\n });\n\n if (index) {\n let removed = index[1].get('holes').filter(hl => hl !== selectedHole);\n state = state.setIn(['scene', 'layers', layerID, 'lines', index[0], 'holes'], removed);\n }\n\n //add to line\n let line_holes = state.getIn(['scene', 'layers', layerID, 'lines', lineID, 'holes']);\n if (!line_holes.contains(selectedHole)) {\n state = state.setIn(['scene', 'layers', layerID, 'lines', lineID, 'holes'], line_holes.push(selectedHole));\n }\n } else if (!selectedHole && snap) {\n //if hole does not exist, create\n let {updatedState: stateH, hole} = this.create(state, layerID, state.drawingSupport.get('type'), lineID, offset);\n state = Hole.select(stateH, layerID, hole.id).updatedState;\n }\n }\n //i've lost the snap while trying to drop the hole\n else if (false && selectedHole) //think if enable\n {\n state = Hole.remove(state, layerID, selectedHole).updatedState;\n }\n\n return {updatedState: state};\n }\n\n static endDrawingHole(state, layerID, x, y) {\n state = this.updateDrawingHole(state, layerID, x, y).updatedState;\n state = Layer.unselectAll(state, layerID).updatedState;\n\n return {updatedState: state};\n }\n\n static beginDraggingHole(state, layerID, holeID, x, y) {\n let layer = state.getIn(['scene', 'layers', layerID]);\n let hole = layer.getIn(['holes', holeID]);\n let line = layer.getIn(['lines', hole.line]);\n let v0 = layer.getIn(['vertices', line.vertices.get(0)]);\n let v1 = layer.getIn(['vertices', line.vertices.get(1)]);\n\n let snapElements = addLineSegmentSnap(List(), v0.x, v0.y, v1.x, v1.y, 9999999, 1, null);\n\n state = state.merge({\n mode: MODE_DRAGGING_HOLE,\n snapElements,\n draggingSupport: Map({\n layerID,\n holeID,\n startPointX: x,\n startPointY: y,\n })\n });\n\n return {updatedState: state};\n }\n\n static updateDraggingHole(state, x, y) {\n\n //calculate snap and overwrite coords if needed\n //force snap to segment\n let snap = nearestSnap(state.snapElements, x, y, state.snapMask.merge({SNAP_SEGMENT: true}));\n if (!snap) return state;\n\n let {draggingSupport, scene} = state;\n\n let layerID = draggingSupport.get('layerID');\n let holeID = draggingSupport.get('holeID');\n let startPointX = draggingSupport.get('startPointX');\n let startPointY = draggingSupport.get('startPointY');\n\n let layer = state.getIn(['scene', 'layers', layerID]);\n let hole = layer.getIn(['holes', holeID]);\n let line = layer.getIn(['lines', hole.line]);\n let v0 = layer.getIn(['vertices', line.vertices.get(0)]);\n let v1 = layer.getIn(['vertices', line.vertices.get(1)]);\n\n ({x, y} = snap.point);\n\n // I need min and max vertices on this line segment\n let minVertex = GeometryUtils.minVertex(v0, v1);\n let maxVertex = GeometryUtils.maxVertex(v0, v1);\n\n // Now I need min and max possible coordinates for the hole on the line. They depend on the width of the hole\n\n let width = hole.properties.get('width').get('length');\n let lineLength = GeometryUtils.pointsDistance(v0.x, v0.y, v1.x, v1.y);\n let alpha = Math.atan2(Math.abs(v1.y - v0.y), Math.abs(v1.x - v0.x));\n\n let cosWithThreshold = (alpha) => {\n let cos = Math.cos(alpha);\n return cos < 0.0000001 ? 0 : cos;\n };\n\n let sinWithThreshold = (alpha) => {\n let sin = Math.sin(alpha);\n return sin < 0.0000001 ? 0 : sin;\n };\n\n let cosAlpha = cosWithThreshold(alpha);\n let sinAlpha = sinWithThreshold(alpha);\n\n let minLeftVertexHole = {\n x: minVertex.x + width / 2 * cosAlpha,\n y: minVertex.y + width / 2 * sinAlpha\n };\n\n let maxRightVertexHole = {\n x: minVertex.x + lineLength * cosAlpha - width / 2 * cosAlpha,\n y: minVertex.y + lineLength * sinAlpha - width / 2 * sinAlpha\n };\n\n // Now I need to verify if the snap vertex (with coordinates x and y) is on the line segment\n\n let offset;\n\n if (x < minLeftVertexHole.x) {\n // Snap point is previous the the line\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n minLeftVertexHole.x, minLeftVertexHole.y);\n } else {\n // Snap point is after the line or on the line\n if (x > maxRightVertexHole.x) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n maxRightVertexHole.x, maxRightVertexHole.y);\n } else if (x === minLeftVertexHole.x && x === maxRightVertexHole.x) {\n // I am on a vertical line, I need to check y coordinates\n if (y < minLeftVertexHole.y) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n minLeftVertexHole.x, minLeftVertexHole.y);\n\n offset = minVertex === v0 ? offset : 1 - offset;\n\n } else if (y > maxRightVertexHole.y) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n maxRightVertexHole.x, maxRightVertexHole.y);\n\n offset = minVertex === v0 ? offset : 1 - offset;\n\n } else {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n x, y);\n\n offset = minVertex === v0 ? offset : 1 - offset;\n }\n } else {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n x, y);\n }\n }\n\n hole = hole.set('offset', offset);\n\n state = state.merge({\n scene: scene.mergeIn(['layers', layerID, 'holes', holeID], hole)\n });\n\n return {updatedState: state};\n }\n\n static endDraggingHole(state, x, y) {\n state = this.updateDraggingHole(state, x, y).updatedState;\n state = state.merge({mode: MODE_IDLE});\n\n return {updatedState: state};\n }\n\n static setProperties(state, layerID, holeID, properties) {\n state = state.setIn(['scene', 'layers', layerID, 'holes', holeID, 'properties'], properties);\n\n return {updatedState: state};\n }\n\n static setJsProperties(state, layerID, holeID, properties) {\n return this.setProperties(state, layerID, holeID, fromJS(properties));\n }\n\n static updateProperties(state, layerID, holeID, properties) {\n properties.forEach((v, k) => {\n if (state.hasIn(['scene', 'layers', layerID, 'holes', holeID, 'properties', k]))\n state = state.mergeIn(['scene', 'layers', layerID, 'holes', holeID, 'properties', k], v);\n });\n\n return {updatedState: state};\n }\n\n static updateJsProperties(state, layerID, holeID, properties) {\n return this.updateProperties(state, layerID, holeID, fromJS(properties));\n }\n\n static setAttributes(state, layerID, holeID, holesAttributes) {\n\n let hAttr = holesAttributes.toJS();\n let {offsetA, offsetB, offset} = hAttr;\n\n delete hAttr['offsetA'];\n delete hAttr['offsetB'];\n delete hAttr['offset'];\n\n let misc = new Map({_unitA: offsetA._unit, _unitB: offsetB._unit});\n\n state = state\n .mergeIn(['scene', 'layers', layerID, 'holes', holeID], fromJS(hAttr))\n .mergeDeepIn(['scene', 'layers', layerID, 'holes', holeID], new Map({offset, misc}));\n\n return {updatedState: state};\n }\n\n}\n\nexport {Hole as default};\n","import {Map, List, fromJS} from 'immutable';\nimport {\n Group,\n Layer,\n Hole,\n Vertex\n} from './export';\nimport {\n IDBroker,\n NameGenerator,\n GeometryUtils,\n SnapUtils,\n SnapSceneUtils,\n} from '../utils/export';\nimport {\n MODE_IDLE,\n MODE_WAITING_DRAWING_LINE,\n MODE_DRAWING_LINE,\n MODE_DRAGGING_LINE\n} from '../constants';\n\nclass Line{\n\n static create( state, layerID, type, x0, y0, x1, y1, properties ) {\n\n let lineID = IDBroker.acquireID();\n\n let { updatedState: stateV0, vertex: v0 } = Vertex.add( state , layerID, x0, y0, 'lines', lineID );\n let { updatedState: stateV1, vertex: v1 } = Vertex.add( stateV0, layerID, x1, y1, 'lines', lineID );\n state = stateV1;\n\n let line = state.catalog.factoryElement(type, {\n id: lineID,\n name: NameGenerator.generateName('lines', state.catalog.getIn(['elements', type, 'info', 'title'])),\n vertices: new List([v0.id, v1.id]),\n type\n }, properties);\n\n state = state.setIn(['scene', 'layers', layerID, 'lines', lineID], line);\n\n return {updatedState: state, line};\n }\n\n static select( state, layerID, lineID ){\n state = Layer.select( state, layerID ).updatedState;\n\n let line = state.getIn([ 'scene','layers', layerID, 'lines', lineID ]);\n\n state = Layer.selectElement( state, layerID, 'lines', lineID ).updatedState;\n state = Layer.selectElement( state, layerID, 'vertices', line.vertices.get(0) ).updatedState;\n state = Layer.selectElement( state, layerID, 'vertices', line.vertices.get(1) ).updatedState;\n\n return {updatedState: state};\n }\n\n static remove( state, layerID, lineID ) {\n let line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);\n\n if( line ) {\n state = this.unselect( state, layerID, lineID ).updatedState;\n line.holes.forEach(holeID => state = Hole.remove(state, layerID, holeID).updatedState);\n state = Layer.removeElement( state, layerID, 'lines', lineID ).updatedState;\n\n line.vertices.forEach(vertexID => state = Vertex.remove( state, layerID, vertexID, 'lines', lineID ).updatedState);\n\n state.getIn(['scene', 'groups']).forEach( group => state = Group.removeElement(state, group.id, layerID, 'lines', lineID).updatedState );\n }\n\n return {updatedState: state};\n }\n\n static unselect( state, layerID, lineID ) {\n let line = state.getIn([ 'scene','layers', layerID, 'lines', lineID ]);\n\n if( line ) {\n state = Layer.unselect( state, layerID, 'vertices', line.vertices.get(0) ).updatedState;\n state = Layer.unselect( state, layerID, 'vertices', line.vertices.get(1) ).updatedState;\n state = Layer.unselect( state, layerID, 'lines', lineID ).updatedState;\n }\n\n return {updatedState: state};\n }\n\n static split( state, layerID, lineID, x, y ) {\n let line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);\n let v0 = state.getIn(['scene', 'layers', layerID, 'vertices', line.vertices.get(0)]);\n let v1 = state.getIn(['scene', 'layers', layerID, 'vertices', line.vertices.get(1)]);\n let {x: x0, y: y0} = v0;\n let {x: x1, y: y1} = v1;\n\n let { updatedState: stateL1, line: line0 } = Line.create( state , layerID, line.type, x0, y0, x, y, line.get('properties'));\n let { updatedState: stateL2, line: line1 } = Line.create( stateL1, layerID, line.type, x1, y1, x, y, line.get('properties'));\n state = stateL2;\n\n let splitPointOffset = GeometryUtils.pointPositionOnLineSegment(x0, y0, x1, y1, x, y);\n let minVertex = GeometryUtils.minVertex(v0, v1);\n\n line.holes.forEach(holeID => {\n let hole = state.getIn(['scene', 'layers', layerID, 'holes', holeID]);\n\n let holeOffset = hole.offset;\n if (minVertex.x === x1 && minVertex.y === y1) {\n splitPointOffset = 1 - splitPointOffset;\n holeOffset = 1 - hole.offset;\n }\n\n if (holeOffset < splitPointOffset) {\n let offset = holeOffset / splitPointOffset;\n if (minVertex.x === x1 && minVertex.y === y1) {\n offset = 1 - offset;\n }\n state = Hole.create( state, layerID, hole.type, line0.id, offset, hole.properties ).updatedState;\n } else {\n let offset = (holeOffset - splitPointOffset) / (1 - splitPointOffset);\n if (minVertex.x === x1 && minVertex.y === y1) {\n offset = 1 - offset;\n }\n state = Hole.create( state, layerID, hole.type, line1.id, offset, hole.properties ).updatedState;\n }\n });\n\n //add splitted lines to the original line's group\n let lineGroups = state\n .getIn(['scene', 'groups'])\n .filter( group => {\n const lines = group.getIn(['elements', layerID, 'lines']);\n return lines && lines.contains(lineID);\n });\n\n lineGroups.forEach( group => {\n state = Group.addElement( state, group.id, layerID, 'lines', line0.id ).updatedState;\n state = Group.addElement( state, group.id, layerID, 'lines', line1.id ).updatedState;\n });\n\n state = Line.remove( state, layerID, lineID ).updatedState;\n\n return { updatedState: state, lines: new List([line0, line1]) };\n }\n\n static addFromPoints( state, layerID, type, points, properties, holes ) {\n points = new List(points)\n .sort(({x: x1, y: y1}, {x: x2, y: y2}) => x1 === x2 ? y1 - y2 : x1 - x2 );\n\n let pointsPair = points.zip(points.skip(1))\n .filterNot(([{x: x1, y: y1}, {x: x2, y: y2}]) => x1 === x2 && y1 === y2 );\n\n let lines = [];\n\n pointsPair.forEach( ([{x: x1, y: y1}, {x: x2, y: y2}]) => {\n let { updatedState: stateL, line } = this.create( state, layerID, type, x1, y1, x2, y2, properties );\n state = stateL;\n\n if( holes ) {\n holes.forEach(holeWithOffsetPoint => {\n let {x: xp, y: yp} = holeWithOffsetPoint.offsetPosition;\n\n if (GeometryUtils.isPointOnLineSegment(x1, y1, x2, y2, xp, yp)) {\n\n let newOffset = GeometryUtils.pointPositionOnLineSegment(x1, y1, x2, y2, xp, yp);\n\n if (newOffset >= 0 && newOffset <= 1) {\n state = Hole.create( state, layerID, holeWithOffsetPoint.hole.type, line.id, newOffset, holeWithOffsetPoint.hole.properties ).updatedState;\n }\n }\n });\n }\n\n lines.push( line );\n });\n\n return { updatedState: state, lines: new List(lines) };\n }\n\n static createAvoidingIntersections( state, layerID, type, x0, y0, x1, y1, oldProperties, oldHoles ) {\n let points = [{x: x0, y: y0}, {x: x1, y: y1}];\n\n state = state.getIn(['scene', 'layers', layerID, 'lines']).reduce( ( reducedState, line ) => {\n let [v0, v1] = line.vertices.map(vertexID => reducedState.getIn(['scene', 'layers', layerID, 'vertices']).get(vertexID)).toArray();\n\n let hasCommonEndpoint = (\n GeometryUtils.samePoints(v0, points[0]) ||\n GeometryUtils.samePoints(v0, points[1]) ||\n GeometryUtils.samePoints(v1, points[0]) ||\n GeometryUtils.samePoints(v1, points[1])\n );\n\n let intersection = GeometryUtils.twoLineSegmentsIntersection( points[0], points[1], v0, v1 );\n\n if (intersection.type === 'colinear') {\n if (!oldHoles) { oldHoles = []; }\n\n let orderedVertices = GeometryUtils.orderVertices(points);\n\n reducedState.getIn(['scene', 'layers', layerID, 'lines', line.id, 'holes']).forEach(holeID => {\n let hole = reducedState.getIn(['scene', 'layers', layerID, 'holes', holeID]);\n let oldLineLength = GeometryUtils.pointsDistance(v0.x, v0.y, v1.x, v1.y);\n let offset = GeometryUtils.samePoints( orderedVertices[1], line.vertices.get(1) ) ? ( 1 - hole.offset ) : hole.offset;\n let offsetPosition = GeometryUtils.extendLine( v0.x, v0.y, v1.x, v1.y, oldLineLength * offset );\n\n oldHoles.push({hole, offsetPosition});\n });\n\n reducedState = this.remove( reducedState, layerID, line.id ).updatedState;\n\n points.push(v0, v1);\n }\n\n if (intersection.type === 'intersecting' && (!hasCommonEndpoint)) {\n reducedState = this.split( reducedState, layerID, line.id, intersection.point.x, intersection.point.y ).updatedState;\n points.push(intersection.point);\n }\n\n return reducedState;\n\n }, state );\n\n let { updatedState, lines } = Line.addFromPoints( state, layerID, type, points, oldProperties, oldHoles );\n\n return { updatedState, lines };\n }\n\n static replaceVertex ( state, layerID, lineID, vertexIndex, x, y ) {\n let vertexID = state.getIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices', vertexIndex]);\n\n state = Vertex.remove( state, layerID, vertexID, 'lines', lineID ).updatedState;\n let { updatedState: stateV, vertex } = Vertex.add( state, layerID, x, y, 'lines', lineID );\n state = stateV;\n\n state = state.setIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices', vertexIndex], vertex.id);\n state = state.setIn(['scene', 'layers', layerID, 'lines', lineID], state.getIn(['scene', 'layers', layerID, 'lines', lineID]) );\n\n return { updatedState: state, line: state.getIn(['scene', 'layers', layerID, 'lines', lineID]), vertex };\n }\n\n static selectToolDrawingLine(state, sceneComponentType) {\n state = state.merge({\n mode: MODE_WAITING_DRAWING_LINE,\n drawingSupport: new Map({\n type: sceneComponentType\n })\n });\n\n return { updatedState: state };\n }\n\n static beginDrawingLine(state, layerID, x, y) {\n let snapElements = SnapSceneUtils.sceneSnapElements(state.scene, new List(), state.snapMask);\n let snap = null;\n\n if (state.snapMask && !state.snapMask.isEmpty()) {\n snap = SnapUtils.nearestSnap(snapElements, x, y, state.snapMask);\n if (snap) ({x, y} = snap.point);\n\n snapElements = snapElements.withMutations(snapElements => {\n let a, b, c;\n ({a, b, c} = GeometryUtils.horizontalLine(y));\n SnapUtils.addLineSnap(snapElements, a, b, c, 10, 3, null);\n ({a, b, c} = GeometryUtils.verticalLine(x));\n SnapUtils.addLineSnap(snapElements, a, b, c, 10, 3, null);\n });\n }\n\n let drawingSupport = state.get('drawingSupport').set('layerID', layerID);\n\n state = Layer.unselectAll( state, layerID ).updatedState;\n\n let { updatedState: stateL, line } = Line.create( state, layerID, drawingSupport.get('type'), x, y, x, y );\n state = Line.select( stateL, layerID, line.id ).updatedState;\n\n state = state.merge({\n mode: MODE_DRAWING_LINE,\n snapElements,\n activeSnapElement: snap ? snap.snap : null,\n drawingSupport\n });\n\n return { updatedState: state };\n }\n\n static updateDrawingLine(state, x, y) {\n let snap = null;\n if (state.snapMask && !state.snapMask.isEmpty()) {\n snap = SnapUtils.nearestSnap(state.snapElements, x, y, state.snapMask);\n if (snap) ({x, y} = snap.point);\n }\n\n let layerID = state.getIn(['drawingSupport', 'layerID']);\n let lineID = state.getIn(['scene', 'layers', layerID, 'selected', 'lines']).first();\n\n let { updatedState: stateLV, vertex } = Line.replaceVertex( state, layerID, lineID, 1, x, y );\n state = stateLV;\n\n state = this.select( state, layerID, lineID ).updatedState;\n state = state.merge({ activeSnapElement: snap ? snap.snap : null });\n\n return { updatedState: state };\n }\n\n static endDrawingLine(state, x, y) {\n\n if (state.snapMask && !state.snapMask.isEmpty()) {\n let snap = SnapUtils.nearestSnap(state.snapElements, x, y, state.snapMask);\n if (snap) ({x, y} = snap.point);\n }\n\n let layerID = state.getIn(['drawingSupport', 'layerID']);\n let layer = state.getIn(['scene','layers', layerID]);\n\n let lineID = state.getIn(['scene', 'layers', layerID, 'selected', 'lines']).first();\n let line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);\n\n let v0 = layer.vertices.get(line.vertices.get(0));\n\n state = Line.remove( state, layerID, lineID ).updatedState;\n state = Line.createAvoidingIntersections( state, layerID, line.type, v0.x, v0.y, x, y ).updatedState;\n state = Layer.detectAndUpdateAreas( state, layerID ).updatedState;\n\n state = state.merge({\n mode: MODE_WAITING_DRAWING_LINE,\n snapElements: new List(),\n activeSnapElement: null\n });\n\n return { updatedState: state };\n }\n\n static beginDraggingLine(state, layerID, lineID, x, y) {\n\n let snapElements = SnapSceneUtils.sceneSnapElements(state.scene, new List(), state.snapMask);\n\n let layer = state.scene.layers.get(layerID);\n let line = layer.lines.get(lineID);\n\n let vertex0 = layer.vertices.get(line.vertices.get(0));\n let vertex1 = layer.vertices.get(line.vertices.get(1));\n\n state = state.merge({\n mode: MODE_DRAGGING_LINE,\n snapElements,\n draggingSupport: Map({\n layerID, lineID,\n startPointX: x,\n startPointY: y,\n startVertex0X: vertex0.x,\n startVertex0Y: vertex0.y,\n startVertex1X: vertex1.x,\n startVertex1Y: vertex1.y,\n })\n });\n\n return { updatedState: state };\n }\n\n static updateDraggingLine(state, x, y) {\n\n let draggingSupport = state.draggingSupport;\n let snapElements = state.snapElements;\n\n let layerID = draggingSupport.get('layerID');\n let lineID = draggingSupport.get('lineID');\n let diffX = x - draggingSupport.get('startPointX');\n let diffY = y - draggingSupport.get('startPointY');\n let newVertex0X = draggingSupport.get('startVertex0X') + diffX;\n let newVertex0Y = draggingSupport.get('startVertex0Y') + diffY;\n let newVertex1X = draggingSupport.get('startVertex1X') + diffX;\n let newVertex1Y = draggingSupport.get('startVertex1Y') + diffY;\n\n\n let activeSnapElement = null;\n let curSnap0 = null, curSnap1 = null;\n if (state.snapMask && !state.snapMask.isEmpty()) {\n curSnap0 = SnapUtils.nearestSnap(snapElements, newVertex0X, newVertex0Y, state.snapMask);\n curSnap1 = SnapUtils.nearestSnap(snapElements, newVertex1X, newVertex1Y, state.snapMask);\n }\n\n let deltaX = 0, deltaY = 0;\n if (curSnap0 && curSnap1) {\n if (curSnap0.point.distance < curSnap1.point.distance) {\n deltaX = curSnap0.point.x - newVertex0X;\n deltaY = curSnap0.point.y - newVertex0Y;\n activeSnapElement = curSnap0.snap;\n } else {\n deltaX = curSnap1.point.x - newVertex1X;\n deltaY = curSnap1.point.y - newVertex1Y;\n activeSnapElement = curSnap1.snap;\n }\n } else {\n if (curSnap0) {\n deltaX = curSnap0.point.x - newVertex0X;\n deltaY = curSnap0.point.y - newVertex0Y;\n activeSnapElement = curSnap0.snap;\n }\n if (curSnap1) {\n deltaX = curSnap1.point.x - newVertex1X;\n deltaY = curSnap1.point.y - newVertex1Y;\n activeSnapElement = curSnap1.snap;\n }\n }\n\n newVertex0X += deltaX;\n newVertex0Y += deltaY;\n newVertex1X += deltaX;\n newVertex1Y += deltaY;\n\n state = state.merge({\n activeSnapElement,\n scene: state.scene.updateIn(['layers', layerID], layer => layer.withMutations(layer => {\n let lineVertices = layer.getIn(['lines', lineID, 'vertices']);\n layer.updateIn(['vertices', lineVertices.get(0)], vertex => vertex.merge({x: newVertex0X, y: newVertex0Y}));\n layer.updateIn(['vertices', lineVertices.get(1)], vertex => vertex.merge({x: newVertex1X, y: newVertex1Y}));\n return layer;\n }))\n });\n\n return { updatedState: state };\n }\n\n static endDraggingLine(state, x, y) {\n let {draggingSupport} = state;\n let layerID = draggingSupport.get('layerID');\n let layer = state.scene.layers.get(layerID);\n let lineID = draggingSupport.get('lineID');\n let line = layer.lines.get(lineID);\n\n let vertex0 = layer.vertices.get(line.vertices.get(0));\n let vertex1 = layer.vertices.get(line.vertices.get(1));\n\n let maxV = GeometryUtils.maxVertex(vertex0, vertex1);\n let minV = GeometryUtils.minVertex(vertex0, vertex1);\n\n let lineLength = GeometryUtils.verticesDistance(minV,maxV);\n let alpha = Math.atan2(maxV.y - minV.y, maxV.x - minV.x);\n\n let holesWithOffsetPosition = [];\n layer.lines.get(lineID).holes.forEach(holeID => {\n let hole = layer.holes.get(holeID);\n let pointOnLine = lineLength * hole.offset;\n\n let offsetPosition = {\n x: pointOnLine * Math.cos(alpha) + minV.x,\n y: pointOnLine * Math.sin(alpha) + minV.y\n };\n\n holesWithOffsetPosition.push({hole, offsetPosition});\n });\n\n let diffX = x - draggingSupport.get('startPointX');\n let diffY = y - draggingSupport.get('startPointY');\n let newVertex0X = draggingSupport.get('startVertex0X') + diffX;\n let newVertex0Y = draggingSupport.get('startVertex0Y') + diffY;\n let newVertex1X = draggingSupport.get('startVertex1X') + diffX;\n let newVertex1Y = draggingSupport.get('startVertex1Y') + diffY;\n\n if (state.snapMask && !state.snapMask.isEmpty()) {\n\n let curSnap0 = SnapUtils.nearestSnap(state.snapElements, newVertex0X, newVertex0Y, state.snapMask);\n let curSnap1 = SnapUtils.nearestSnap(state.snapElements, newVertex1X, newVertex1Y, state.snapMask);\n\n let deltaX = 0, deltaY = 0;\n if (curSnap0 && curSnap1) {\n if (curSnap0.point.distance < curSnap1.point.distance) {\n deltaX = curSnap0.point.x - newVertex0X;\n deltaY = curSnap0.point.y - newVertex0Y;\n } else {\n deltaX = curSnap1.point.x - newVertex1X;\n deltaY = curSnap1.point.y - newVertex1Y;\n }\n } else {\n if (curSnap0) {\n deltaX = curSnap0.point.x - newVertex0X;\n deltaY = curSnap0.point.y - newVertex0Y;\n }\n if (curSnap1) {\n deltaX = curSnap1.point.x - newVertex1X;\n deltaY = curSnap1.point.y - newVertex1Y;\n }\n }\n\n newVertex0X += deltaX;\n newVertex0Y += deltaY;\n newVertex1X += deltaX;\n newVertex1Y += deltaY;\n }\n\n let lineGroups = state //get groups membership if present\n .getIn(['scene', 'groups'])\n .filter( group => {\n const lines = group.getIn(['elements', layerID, 'lines']);\n return lines && lines.contains(lineID);\n });\n\n state = Layer.mergeEqualsVertices( state, layerID, line.vertices.get(0) ).updatedState;\n state = Layer.mergeEqualsVertices( state, layerID, line.vertices.get(1) ).updatedState;\n\n state = Line.remove( state, layerID, lineID ).updatedState;\n\n if(!GeometryUtils.samePoints({newVertex0X, newVertex0Y}, {newVertex1X, newVertex1Y})) {\n let ret = Line.createAvoidingIntersections(\n state,\n layerID,\n line.type,\n newVertex0X,\n newVertex0Y,\n newVertex1X,\n newVertex1Y,\n line.properties,\n holesWithOffsetPosition\n );\n\n state = ret.updatedState;\n\n //re-add to old line's groups if present\n ret.lines.forEach( addedLine => {\n lineGroups.forEach( oldLineGroup => {\n state = Group.addElement( state, oldLineGroup.id, layerID, 'lines', addedLine.id ).updatedState;\n });\n });\n }\n\n state = Layer.detectAndUpdateAreas( state, layerID ).updatedState;\n\n state = state.merge({\n mode: MODE_IDLE,\n draggingSupport: null,\n activeSnapElement: null,\n snapElements: new List()\n });\n\n return { updatedState: state };\n }\n\n static setProperties( state, layerID, lineID, properties ) {\n state = state.mergeIn(['scene', 'layers', layerID, 'lines', lineID, 'properties'], properties);\n\n return { updatedState: state };\n }\n\n static setJsProperties( state, layerID, lineID, properties ) {\n return this.setProperties( state, layerID, lineID, fromJS(properties) );\n }\n\n static updateProperties( state, layerID, lineID, properties) {\n properties.forEach( ( v, k ) => {\n if( state.hasIn(['scene', 'layers', layerID, 'lines', lineID, 'properties', k]) )\n state = state.mergeIn(['scene', 'layers', layerID, 'lines', lineID, 'properties', k], v);\n });\n\n return { updatedState: state };\n }\n\n static updateJsProperties( state, layerID, lineID, properties) {\n return this.updateProperties( state, layerID, lineID, fromJS(properties) );\n }\n\n static setAttributes( state, layerID, lineID, lineAttributes ) {\n\n let lAttr = lineAttributes.toJS();\n let {vertexOne, vertexTwo, lineLength} = lAttr;\n\n delete lAttr['vertexOne'];\n delete lAttr['vertexTwo'];\n delete lAttr['lineLength'];\n\n state = state\n .mergeIn(['scene', 'layers', layerID, 'lines', lineID], fromJS(lAttr))\n .mergeIn(['scene', 'layers', layerID, 'vertices', vertexOne.id], {x: vertexOne.x, y: vertexOne.y})\n .mergeIn(['scene', 'layers', layerID, 'vertices', vertexTwo.id], {x: vertexTwo.x, y: vertexTwo.y})\n .mergeIn(['scene', 'layers', layerID, 'lines', lineID, 'misc'], new Map({'_unitLength': lineLength._unit}));\n\n state = Layer.mergeEqualsVertices( state, layerID, vertexOne.id ).updatedState;\n\n if (vertexOne.x != vertexTwo.x && vertexOne.y != vertexTwo.y) {\n state = Layer.mergeEqualsVertices( state, layerID, vertexTwo.id ).updatedState;\n }\n\n state = Layer.detectAndUpdateAreas( state, layerID ).updatedState;\n\n return { updatedState: state };\n }\n\n static setVerticesCoords( state, layerID, lineID, x1, y1, x2, y2 ) {\n let line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);\n state = Vertex.setAttributes( state, layerID, line.vertices.get(0), new Map({ x: x1, y: y1 }) ).updatedState;\n state = Vertex.setAttributes( state, layerID, line.vertices.get(1), new Map({ x: x2, y: y2 }) ).updatedState;\n\n return { updatedState: state };\n }\n\n}\n\nexport { Line as default };\n","import { List } from 'immutable';\nimport { Project, Area, Line, Hole, Item, Vertex } from './export';\nimport {\n GraphInnerCycles,\n GeometryUtils,\n IDBroker\n} from '../utils/export';\nimport { Layer as LayerModel } from '../models';\n\nconst sameSet = (set1, set2) => set1.size === set2.size && set1.isSuperset(set2) && set1.isSubset(set2);\n\nclass Layer{\n\n static create( state, name, altitude ) {\n let layerID = IDBroker.acquireID();\n name = name || `layer ${layerID}`;\n altitude = altitude || 0;\n\n let layer = new LayerModel({ id: layerID, name, altitude });\n\n state = state.setIn(['scene', 'selectedLayer'], layerID );\n state = state.setIn(['scene', 'layers', layerID], layer);\n\n return { updatedState: state };\n }\n\n static select( state, layerID ) {\n if( !state.get('alterate') ) state = Project.unselectAll( state ).updatedState;\n state = state.setIn(['scene', 'selectedLayer'], layerID);\n\n return { updatedState: state };\n }\n\n static selectElement( state, layerID, elementPrototype, elementID ){\n state = state.setIn(['scene', 'layers', layerID, elementPrototype, elementID, 'selected'], true);\n state = state.updateIn(['scene', 'layers', layerID, 'selected', elementPrototype], elems => elems.push(elementID));\n\n return { updatedState: state };\n }\n\n static unselect( state, layerID, elementPrototype, elementID ){\n state = state.setIn(['scene', 'layers', layerID, elementPrototype, elementID, 'selected'], false);\n state = state.updateIn(['scene', 'layers', layerID, 'selected', elementPrototype], elems => elems.filter( el => el.id === elementID ));\n return { updatedState: state };\n }\n\n static unselectAll( state, layerID ) {\n let { lines, holes, items, areas } = state.getIn(['scene', 'layers', layerID]);\n\n if( lines ) lines.forEach( line => { state = Line.unselect( state, layerID, line.id ).updatedState; });\n if( holes ) holes.forEach( hole => { state = Hole.unselect( state, layerID, hole.id ).updatedState; });\n if( items ) items.forEach( item => { state = Item.unselect( state, layerID, item.id ).updatedState; });\n if( areas ) areas.forEach( area => { state = Area.unselect( state, layerID, area.id ).updatedState; });\n\n return { updatedState: state };\n }\n\n static setProperties( state, layerID, properties ) {\n state = state.mergeIn(['scene', 'layers', layerID], properties);\n state = state.updateIn(['scene', 'layers'], layers => layers.sort( ( a, b ) => a.altitude !== b.altitude ? a.altitude - b.altitude : a.order - b.order ));\n\n return { updatedState: state };\n }\n\n static remove( state, layerID ) {\n state = state.removeIn(['scene', 'layers', layerID]);\n\n state = state.setIn(\n ['scene', 'selectedLayer'],\n state.scene.selectedLayer !== layerID ? state.scene.selectedLayer : state.scene.layers.first().id\n );\n\n return { updatedState: state };\n }\n\n static removeElement( state, layerID, elementPrototype, elementID ) {\n state = state.deleteIn(['scene', 'layers', layerID, elementPrototype, elementID]);\n\n return { updatedState: state };\n }\n\n static detectAndUpdateAreas( state, layerID ) {\n\n let verticesArray = []; //array with vertices coords\n let linesArray; //array with edges\n\n let vertexID_to_verticesArrayIndex = {};\n let verticesArrayIndex_to_vertexID = {};\n\n state.getIn(['scene', 'layers', layerID, 'vertices']).forEach(vertex => {\n let verticesCount = verticesArray.push([vertex.x, vertex.y]);\n let latestVertexIndex = verticesCount - 1;\n vertexID_to_verticesArrayIndex[vertex.id] = latestVertexIndex;\n verticesArrayIndex_to_vertexID[latestVertexIndex] = vertex.id;\n });\n\n linesArray = state.getIn(['scene', 'layers', layerID, 'lines'])\n .map(line => line.vertices.map(vertexID => vertexID_to_verticesArrayIndex[vertexID]).toArray());\n\n let innerCyclesByVerticesArrayIndex = GraphInnerCycles.calculateInnerCycles(verticesArray, linesArray);\n\n let innerCyclesByVerticesID = new List(innerCyclesByVerticesArrayIndex)\n .map(cycle => new List(cycle.map(vertexIndex => verticesArrayIndex_to_vertexID[vertexIndex])));\n\n // All area vertices should be ordered in counterclockwise order\n innerCyclesByVerticesID = innerCyclesByVerticesID.map( ( area ) =>\n GraphInnerCycles.isClockWiseOrder( area.map(vertexID => state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]) ) ) ? area.reverse() : area\n );\n\n let areaIDs = [];\n\n //remove areas\n state.getIn(['scene', 'layers', layerID, 'areas']).forEach(area => {\n let areaInUse = innerCyclesByVerticesID.some(vertices => sameSet(vertices, area.vertices));\n if (!areaInUse) {\n state = Area.remove( state, layerID, area.id ).updatedState;\n }\n });\n\n //add new areas\n innerCyclesByVerticesID.forEach((cycle, ind) => {\n let areaInUse = state.getIn(['scene', 'layers', layerID, 'areas']).find(area => sameSet(area.vertices, cycle));\n\n if (areaInUse) {\n areaIDs[ind] = areaInUse.id;\n state = state.setIn(['scene', 'layers', layerID, 'areas', areaIDs[ind], 'holes'], new List());\n } else {\n let areaVerticesCoords = cycle.map(vertexID => state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]));\n let resultAdd = Area.add(state, layerID, 'area', areaVerticesCoords, state.catalog);\n\n areaIDs[ind] = resultAdd.area.id;\n state = resultAdd.updatedState;\n }\n });\n\n // Build a relationship between areas and their coordinates\n let verticesCoordsForArea = areaIDs.map(id => {\n let vertices = state.getIn(['scene', 'layers', layerID, 'areas', id]).vertices.map(vertexID => {\n let { x, y } = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]);\n return new List([x,y]);\n });\n return { id, vertices };\n });\n\n // Find all holes for an area\n let i, j;\n for (i = 0; i < verticesCoordsForArea.length; i++) {\n let holesList = new List(); // The holes for this area\n let areaVerticesList = verticesCoordsForArea[i].vertices.flatten().toArray();\n for (j = 0; j < verticesCoordsForArea.length; j++) {\n if (i !== j) {\n let isHole = GeometryUtils.ContainsPoint(areaVerticesList,\n verticesCoordsForArea[j].vertices.get(0).get(0),\n verticesCoordsForArea[j].vertices.get(0).get(1));\n if (isHole) {\n holesList = holesList.push(verticesCoordsForArea[j].id);\n }\n }\n }\n state = state.setIn(['scene', 'layers', layerID, 'areas', verticesCoordsForArea[i].id, 'holes'], holesList);\n }\n\n // Remove holes which are already holes for other areas\n areaIDs.forEach(areaID => {\n let doubleHoles = new Set();\n let areaHoles = state.getIn(['scene', 'layers', layerID, 'areas', areaID, 'holes']);\n areaHoles.forEach((areaHoleID) => {\n let holesOfholes = state.getIn(['scene', 'layers', layerID, 'areas', areaHoleID, 'holes']);\n holesOfholes.forEach((holeID) => {\n if (areaHoles.indexOf(holeID) !== -1) doubleHoles.add(holeID);\n });\n });\n doubleHoles.forEach(doubleHoleID => {\n areaHoles = areaHoles.remove( areaHoles.indexOf(doubleHoleID) );\n });\n state = state.setIn(['scene', 'layers', layerID, 'areas', areaID, 'holes'], areaHoles);\n });\n\n return { updatedState: state };\n }\n\n static removeZeroLengthLines( state, layerID ) {\n let updatedState = state.getIn(['scene', 'layers', layerID, 'lines']).reduce(\n ( newState, line ) =>\n {\n let v_id0 = line.getIn(['vertices', 0]);\n let v_id1 = line.getIn(['vertices', 1]);\n\n let v0 = newState.getIn(['scene', 'layers', layerID, 'vertices', v_id0]);\n let v1 = newState.getIn(['scene', 'layers', layerID, 'vertices', v_id1]);\n\n if( GeometryUtils.verticesDistance( v0, v1 ) === 0 )\n {\n newState = Line.remove( newState, layerID, line.id ).updatedState;\n }\n\n return newState;\n },\n state\n );\n\n return { updatedState };\n }\n\n static mergeEqualsVertices( state, layerID, vertexID ) {\n //1. find vertices to remove\n let vertex = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]);\n\n let doubleVertices = state.getIn(['scene', 'layers', layerID, 'vertices'])\n .filter(v => {\n return (\n v.id !== vertexID &&\n GeometryUtils.samePoints(vertex, v)// &&\n //!v.lines.contains( vertexID ) &&\n //!v.areas.contains( vertexID )\n );\n });\n\n if (doubleVertices.isEmpty()) return { updatedState: state };\n\n doubleVertices.forEach(doubleVertex => {\n let reduced = doubleVertex.lines.reduce(\n ( reducedState, lineID ) => {\n\n reducedState = reducedState.updateIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices'], vertices => {\n if( vertices ) {\n return vertices.map(v => v === doubleVertex.id ? vertexID : v);\n }\n });\n reducedState = Vertex.addElement( reducedState, layerID, vertexID, 'lines', lineID ).updatedState;\n\n return reducedState;\n },\n state\n );\n\n let biReduced = doubleVertex.areas.reduce(\n ( reducedState, areaID ) => {\n\n reducedState = reducedState.updateIn(['scene', 'layers', layerID, 'areas', areaID, 'vertices'], vertices => {\n if( vertices ) return vertices.map(v => v === doubleVertex.id ? vertexID : v);\n });\n reducedState = Vertex.addElement( reducedState, layerID, vertexID, 'areas', areaID ).updatedState;\n\n return reducedState;\n },\n reduced\n );\n\n state = Vertex.remove( biReduced, layerID, doubleVertex.id, null, null, true ).updatedState;\n });\n\n return { updatedState: state };\n }\n\n static setPropertiesOnSelected( state, layerID, properties ) {\n let selected = state.getIn(['scene', 'layers', layerID, 'selected']);\n\n selected.lines.forEach(lineID => state = Line.setProperties(state, layerID, lineID, properties).updatedState);\n selected.holes.forEach(holeID => state = Hole.setProperties(state, layerID, holeID, properties).updatedState);\n selected.areas.forEach(areaID => state = Area.setProperties(state, layerID, areaID, properties).updatedState);\n selected.items.forEach(itemID => state = Item.setProperties(state, layerID, itemID, properties).updatedState);\n\n return { updatedState: state };\n }\n\n static updatePropertiesOnSelected( state, layerID, properties ) {\n let selected = state.getIn(['scene', 'layers', layerID, 'selected']);\n\n selected.lines.forEach(lineID => state = Line.updateProperties(state, layerID, lineID, properties).updatedState);\n selected.holes.forEach(holeID => state = Hole.updateProperties(state, layerID, holeID, properties).updatedState);\n selected.areas.forEach(areaID => state = Area.updateProperties(state, layerID, areaID, properties).updatedState);\n selected.items.forEach(itemID => state = Item.updateProperties(state, layerID, itemID, properties).updatedState);\n\n return { updatedState: state };\n }\n\n static setAttributesOnSelected( state, layerID, attributes ) {\n let selected = state.getIn(['scene', 'layers', layerID, 'selected']);\n\n selected.lines.forEach(lineID => state = Line.setAttributes( state, layerID, lineID, attributes ).updatedState);\n selected.holes.forEach(holeID => state = Hole.setAttributes( state, layerID, holeID, attributes ).updatedState);\n selected.items.forEach(itemID => state = Item.setAttributes( state, layerID, itemID, attributes ).updatedState);\n //selected.areas.forEach(areaID => state = Area.setAttributes( state, layerID, areaID, attributes ).updatedState);\n\n return { updatedState: state };\n }\n\n}\n\nexport { Layer as default };\n","import {\n Project,\n Line,\n Hole,\n Item,\n Area,\n Layer,\n Vertex\n} from './export';\nimport { Map, List } from 'immutable';\nimport { Group as GroupModel } from '../models';\nimport { IDBroker, MathUtils, GeometryUtils } from '../utils/export';\n\nclass Group{\n\n static select( state, groupID ){\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n\n state = Project.setAlterate( state ).updatedState;\n\n layerList.entrySeq().forEach( ([groupLayerID, groupLayerElements]) => {\n state = Layer.unselectAll( state, groupLayerID ).updatedState;\n\n let lines = groupLayerElements.get('lines');\n let holes = groupLayerElements.get('holes');\n let items = groupLayerElements.get('items');\n let areas = groupLayerElements.get('areas');\n\n if( lines ) lines.forEach( lineID => { state = Line.select( state, groupLayerID, lineID ).updatedState; });\n if( holes ) holes.forEach( holeID => { state = Hole.select( state, groupLayerID, holeID ).updatedState; });\n if( items ) items.forEach( itemID => { state = Item.select( state, groupLayerID, itemID ).updatedState; });\n if( areas ) areas.forEach( areaID => { state = Area.select( state, groupLayerID, areaID ).updatedState; });\n });\n\n state = Project.setAlterate( state ).updatedState;\n\n let groups = state.getIn(['scene', 'groups']).map( g => g.set('selected', false) );\n\n state = state.setIn(['scene', 'groups'], groups).setIn([ 'scene', 'groups', groupID, 'selected' ], true);\n\n return { updatedState: state };\n }\n\n static unselect( state, groupID ){\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n let reduced = layerList.reduce( ( newState, layer, layerID ) => Layer.unselectAll( newState, layerID ).updatedState, state );\n state = reduced.setIn([ 'scene', 'groups', groupID, 'selected' ], false);\n\n return { updatedState: state };\n }\n\n static create( state ){\n let groupID = IDBroker.acquireID();\n\n state = state.setIn(['scene', 'groups', groupID], new GroupModel({ id: groupID, name: groupID}) );\n\n return { updatedState: state };\n }\n\n static createFromSelectedElements( state ){\n let groupID = IDBroker.acquireID();\n\n state = state.setIn(['scene', 'groups', groupID], new GroupModel({ id: groupID, name: groupID}) );\n\n state.getIn(['scene', 'layers']).forEach((layer) => {\n\n let layerID = layer.get('id');\n let layerElements = {\n 'lines': layer.get('lines').filter( el => el.get('selected') ),\n 'items': layer.get('items').filter( el => el.get('selected') ),\n 'holes': layer.get('holes').filter( el => el.get('selected') ),\n 'areas': layer.get('areas').filter( el => el.get('selected') )\n };\n\n for( let elementPrototype in layerElements ) {\n layerElements[elementPrototype].forEach( el => state = this.addElement( state, groupID, layerID, elementPrototype, el.get('id') ).updatedState );\n }\n });\n\n return {updatedState: state};\n }\n\n static addElement( state, groupID, layerID, elementPrototype, elementID ){\n let actualList = state.getIn(['scene', 'groups', groupID, 'elements', layerID, elementPrototype]) || new List();\n\n if( !actualList.contains(elementID) ) {\n state = state.setIn(['scene', 'groups', groupID, 'elements', layerID, elementPrototype], actualList.push(elementID));\n\n state = this.reloadBaricenter( state, groupID ).updatedState;\n }\n\n return { updatedState: state };\n }\n\n static setBarycenter( state, groupID, x, y ) {\n if (typeof x !== 'undefined') state = state.setIn(['scene', 'groups', groupID, 'x'], x);\n if (typeof y !== 'undefined') state = state.setIn(['scene', 'groups', groupID, 'y'], y);\n\n return { updatedState: state };\n }\n\n static reloadBaricenter( state, groupID ) {\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n\n let { a, b, c, d, e, f, SVGHeight } = state.get('viewer2D').toJS();\n\n let m1 = [\n [ a, b, c ],\n [ d, e, f ],\n [ 0, 0, 1 ]\n ];\n\n let xBar = 0;\n let yBar = 0;\n let elementCount = 0;\n\n layerList.entrySeq().forEach( ([groupLayerID, groupLayerElements]) => {\n state = Layer.unselectAll( state, groupLayerID ).updatedState;\n\n let lines = groupLayerElements.get('lines');\n let holes = groupLayerElements.get('holes');\n let items = groupLayerElements.get('items');\n let areas = groupLayerElements.get('areas');\n\n if( lines ) lines.forEach( ( lineID ) => {\n let vertices = state.getIn(['scene', 'layers', groupLayerID, 'lines', lineID, 'vertices'])\n .map( vID => state.getIn(['scene', 'layers', groupLayerID, 'vertices', vID]) );\n\n let { x: x1, y: y1 } = vertices.get(0);\n let { x: x2, y: y2 } = vertices.get(1);\n let { x: xM, y: yM } = GeometryUtils.midPoint( x1, y1, x2, y2 );\n\n xBar += xM;\n yBar += yM;\n elementCount++;\n });\n\n if( holes ) holes.forEach( holeID => {\n let hole = state.getIn(['scene', 'layers', groupLayerID, 'holes', holeID]);\n let lineVertices = state.getIn(['scene', 'layers', groupLayerID, 'lines', hole.line, 'vertices'])\n .map( vID => state.getIn(['scene', 'layers', groupLayerID, 'vertices', vID]) );\n let { x: x1, y: y1 } = lineVertices.get(0);\n let { x: x2, y: y2 } = lineVertices.get(1);\n let { x, y } = GeometryUtils.extendLine( x1, y1, x2, y2, hole.offset * GeometryUtils.pointsDistance( x1, y1, x2, y2 ) );\n\n xBar += x;\n yBar += y;\n elementCount++;\n });\n\n if( items ) items.forEach( itemID => {\n let { x, y } = state.getIn(['scene', 'layers', groupLayerID, 'items', itemID]);\n\n xBar += x;\n yBar += y;\n elementCount++;\n });\n\n if( areas ) areas.forEach( areaID => {\n let areaVertices = state.getIn(['scene', 'layers', groupLayerID, 'areas', areaID, 'vertices'])\n .map( vID => state.getIn(['scene', 'layers', groupLayerID, 'vertices', vID]) ).toJS();\n let { x, y } = GeometryUtils.verticesMidPoint( areaVertices );\n\n xBar += x;\n yBar += y;\n elementCount++;\n });\n });\n\n if( elementCount ) {\n state = this.setBarycenter( state, groupID, xBar / elementCount, yBar / elementCount ).updatedState;\n }\n\n return { updatedState: state };\n }\n\n static removeElement( state, groupID, layerID, elementPrototype, elementID ) {\n let actualList = state.getIn(['scene', 'groups', groupID, 'elements', layerID, elementPrototype]);\n\n if( !actualList || !actualList.contains(elementID) )\n {\n return { updatedState: state };\n }\n\n state = state.setIn(['scene', 'groups', groupID, 'elements', layerID, elementPrototype], actualList.filterNot( el => el === elementID ));\n\n return { updatedState : state };\n }\n\n static setAttributes( state, groupID, attributes ){\n state = state.mergeIn(['scene', 'groups', groupID], attributes);\n\n return { updatedState : state };\n }\n\n static setProperties( state, groupID, properties ){\n state = state.mergeIn(['scene', 'groups', groupID, 'properties'], properties);\n\n return { updatedState : state };\n }\n\n static remove( state, groupID ) {\n state = state.removeIn(['scene', 'groups', groupID]);\n\n return { updatedState : state };\n }\n\n static removeAndDeleteElements( state, groupID ) {\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n\n layerList.entrySeq().forEach( ([groupLayerID, groupLayerElements]) => {\n state = Layer.unselectAll( state, groupLayerID ).updatedState;\n\n let lines = groupLayerElements.get('lines');\n let holes = groupLayerElements.get('holes');\n let items = groupLayerElements.get('items');\n let areas = groupLayerElements.get('areas');\n\n if( lines ) {\n lines.forEach( lineID => {\n state = Line.remove( state, groupLayerID, lineID ).updatedState;\n state = Layer.detectAndUpdateAreas( state, groupLayerID ).updatedState;\n });\n }\n\n if( holes ) holes.forEach( holeID => { state = Hole.remove( state, groupLayerID, holeID ).updatedState; });\n if( items ) items.forEach( itemID => { state = Item.remove( state, groupLayerID, itemID ).updatedState; });\n //( actually ) no effect by area's destruction\n if( false && areas ) areas.forEach( areaID => { state = Area.remove( state, groupLayerID, areaID ).updatedState; });\n });\n\n state = state.deleteIn([ 'scene', 'groups', groupID ]);\n\n return { updatedState: state };\n }\n\n static translate( state, groupID, x, y ) {\n let deltaX = x - state.getIn(['scene', 'groups', groupID, 'x']);\n let deltaY = y - state.getIn(['scene', 'groups', groupID, 'y']);\n\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n\n layerList.entrySeq().forEach( ([groupLayerID, groupLayerElements]) => {\n let lines = groupLayerElements.get('lines');\n //let holes = groupLayerElements.get('holes');\n let items = groupLayerElements.get('items');\n //let areas = groupLayerElements.get('areas');\n\n //move vertices instead lines avoiding multiple vertex translation\n if( lines ) {\n let vertices = {};\n lines.forEach( lineID => {\n let line = state.getIn(['scene', 'layers', groupLayerID, 'lines', lineID]);\n if( !vertices[ line.vertices.get(0) ] ) vertices[ line.vertices.get(0) ] = state.getIn(['scene', 'layers', groupLayerID, 'vertices', line.vertices.get(0)])\n if( !vertices[ line.vertices.get(1) ] ) vertices[ line.vertices.get(1) ] = state.getIn(['scene', 'layers', groupLayerID, 'vertices', line.vertices.get(1)])\n });\n\n for( let vertexID in vertices ) {\n let { x: xV, y: yV } = vertices[ vertexID ];\n state = Vertex.setAttributes( state, groupLayerID, vertexID, new Map({ x: xV + deltaX, y: yV + deltaY }) ).updatedState;\n }\n\n //need to be separated from setAttributes cycle\n for( let vertexID in vertices ) {\n state = Vertex.beginDraggingVertex( state, groupLayerID, vertexID ).updatedState;\n state = Vertex.endDraggingVertex( state ).updatedState;\n }\n }\n\n if( items ) state = items\n .map( itemID => state.getIn(['scene', 'layers', groupLayerID, 'items', itemID]) )\n .reduce( ( newState, item ) => {\n let { x: xI, y: yI } = item;\n return Item.setAttributes( newState, groupLayerID, item.id, new Map({ x: xI + deltaX, y: yI + deltaY }) ).updatedState;\n }, state );\n\n //translation of holes and areas should not take any effect\n //if( holes ) holes.forEach( holeID => { state = Hole.select( state, groupLayerID, holeID ).updatedState; });\n //if( areas ) areas.forEach( areaID => { state = Area.select( state, groupLayerID, areaID ).updatedState; });\n\n state = Layer.detectAndUpdateAreas( state, groupLayerID ).updatedState;\n });\n\n state = this.setBarycenter( state, groupID, x, y ).updatedState;\n\n state = Group.select( state, groupID ).updatedState;\n\n return { updatedState: state };\n }\n\n static rotate( state, groupID, newAlpha ) {\n\n\n let { x: barX, y: barY, rotation } = state.getIn(['scene', 'groups', groupID]);\n\n let alpha = newAlpha - rotation;\n\n state = Group.setAttributes( state, groupID, new Map({ rotation: newAlpha }) ).updatedState;\n\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n\n layerList.entrySeq().forEach( ([groupLayerID, groupLayerElements]) => {\n let lines = groupLayerElements.get('lines');\n let holes = groupLayerElements.get('holes');\n let items = groupLayerElements.get('items');\n let areas = groupLayerElements.get('areas');\n\n //move vertices instead lines avoiding multiple vertex translation\n if( lines ) {\n let vertices = {};\n lines.forEach( lineID => {\n let line = state.getIn(['scene', 'layers', groupLayerID, 'lines', lineID]);\n if( !vertices[ line.vertices.get(0) ] ) vertices[ line.vertices.get(0) ] = state.getIn(['scene', 'layers', groupLayerID, 'vertices', line.vertices.get(0)])\n if( !vertices[ line.vertices.get(1) ] ) vertices[ line.vertices.get(1) ] = state.getIn(['scene', 'layers', groupLayerID, 'vertices', line.vertices.get(1)])\n });\n\n for( let vertexID in vertices ) {\n let { x: xV, y: yV } = vertices[ vertexID ];\n let { x: newX, y: newY } = GeometryUtils.rotatePointAroundPoint( xV, yV, barX, barY, alpha );\n state = Vertex.setAttributes( state, groupLayerID, vertexID, new Map({ x: newX, y: newY }) ).updatedState;\n }\n //need to be separated from setAttributes cycle\n for( let vertexID in vertices ) {\n state = Vertex.beginDraggingVertex( state, groupLayerID, vertexID ).updatedState;\n state = Vertex.endDraggingVertex( state ).updatedState;\n }\n }\n\n if( items ) state = items\n .map( itemID => state.getIn(['scene', 'layers', groupLayerID, 'items', itemID]) )\n .reduce( ( newState, item ) => {\n let { x: xI, y: yI, rotation: rI } = item;\n\n let { x: newX, y: newY } = GeometryUtils.rotatePointAroundPoint( xI, yI, barX, barY, alpha );\n\n return Item.setAttributes( newState, groupLayerID, item.id, new Map({ x: newX, y: newY, rotation: rI + alpha }) ).updatedState;\n }, state );\n\n //rotation of holes and areas should not take any effect\n //if( holes ) holes.forEach( holeID => { state = Hole.select( state, groupLayerID, holeID ).updatedState; });\n //if( areas ) areas.forEach( areaID => { state = Area.select( state, groupLayerID, areaID ).updatedState; });\n\n state = Layer.detectAndUpdateAreas( state, groupLayerID ).updatedState;\n });\n\n state = Group.select( state, groupID ).updatedState;\n\n return { updatedState: state };\n }\n\n}\n\nexport { Group as default };\n","export default class NameGenerator {\n static generateName( prototype, type ) {\n return type.substr(0, 1).toUpperCase() + type.substr(1);\n }\n}\n","let shortid = require('shortid');\n\nexport class IDBroker {\n static acquireID() {\n return shortid.generate();\n }\n}\n\nexport default IDBroker;\n","import { Map } from 'immutable';\nimport diff from 'immutablediff';\nimport patch from 'immutablepatch';\n\nexport const historyPush = (historyStructure, item) => {\n if (historyStructure.last) {\n if (historyStructure.last.hashCode() !== item.hashCode()) {\n let toPush = new Map({\n time: Date.now(),\n diff: diff(historyStructure.last, item)\n });\n\n historyStructure = historyStructure\n .set('last', item)\n .set('list', historyStructure.list.push(toPush));\n }\n }\n else {\n historyStructure = historyStructure.set('last', item);\n }\n return historyStructure;\n};\n\nexport const historyPop = (historyStructure) => {\n if (historyStructure.last) {\n if (historyStructure.list.size) {\n let last = historyStructure.first;\n for (let x = 0; x < historyStructure.list.size - 1; x++) {\n last = patch(last, historyStructure.list.get(x).get('diff'));\n }\n\n historyStructure = historyStructure\n .set('last', last)\n .set('list', historyStructure.list.pop());\n }\n }\n return historyStructure;\n};\n","import {\n SNAP_POINT,\n SNAP_LINE,\n SNAP_SEGMENT,\n SNAP_GRID,\n SNAP_GUIDE,\n addPointSnap,\n addLineSnap,\n addLineSegmentSnap,\n addGridSnap\n} from './snap';\nimport { GeometryUtils } from './export';\nimport { Map, List } from 'immutable';\n\nexport function sceneSnapElements(scene, snapElements = new List(), snapMask = new Map()) {\n\n let { width, height } = scene;\n\n let a, b, c;\n return snapElements.withMutations(snapElements => {\n scene.layers.forEach(layer => {\n\n let { lines, vertices } = layer;\n\n vertices.forEach(({ id: vertexID, x, y }) => {\n\n if (snapMask.get(SNAP_POINT)) {\n addPointSnap(snapElements, x, y, 10, 10, vertexID);\n }\n\n if (snapMask.get(SNAP_LINE)) {\n ({ a, b, c } = GeometryUtils.horizontalLine(y));\n addLineSnap(snapElements, a, b, c, 10, 1, vertexID);\n ({ a, b, c } = GeometryUtils.verticalLine(x));\n addLineSnap(snapElements, a, b, c, 10, 1, vertexID);\n }\n\n });\n\n if (snapMask.get(SNAP_SEGMENT)) {\n lines.forEach(({ id: lineID, vertices: [v0, v1] }) => {\n let { x: x1, y: y1 } = vertices.get(v0);\n let { x: x2, y: y2 } = vertices.get(v1);\n\n addLineSegmentSnap(snapElements, x1, y1, x2, y2, 20, 1, lineID);\n });\n }\n\n });\n\n if (snapMask.get(SNAP_GRID)) {\n let divider = 5;\n let gridCellSize = 100 / divider;\n let xCycle = width / gridCellSize;\n let yCycle = height / gridCellSize;\n\n for (let x = 0; x < xCycle; x++) {\n let xMul = x * gridCellSize;\n\n for (let y = 0; y < yCycle; y++) {\n let yMul = y * gridCellSize;\n\n let onXCross = !(x % divider) ? true : false;\n let onYCross = !(y % divider) ? true : false;\n\n addGridSnap(snapElements, xMul, yMul, 10, onXCross && onYCross ? 15 : 10, null);\n }\n }\n }\n\n if (snapMask.get(SNAP_GUIDE)) {\n\n let horizontal = scene.getIn(['guides', 'horizontal']);\n let vertical = scene.getIn(['guides', 'vertical']);\n\n let hValues = horizontal.valueSeq();\n let vValues = vertical.valueSeq();\n\n hValues.forEach(hVal => {\n vValues.forEach(vVal => {\n addPointSnap(snapElements, vVal, hVal, 10, 10);\n });\n });\n\n hValues.forEach(hVal => addLineSegmentSnap(snapElements, 0, hVal, width, hVal, 20, 1));\n vValues.forEach(vVal => addLineSegmentSnap(snapElements, vVal, 0, vVal, height, 20, 1));\n\n }\n\n })\n}\n","/**\n * UTILS\n */\n\nfunction sub (v1, v2) {\n return [v1[0] - v2[0], v1[1] - v2[1]]\n}\n\nfunction mod (n, m) {\n return ((n % m) + m) % m\n}\n\n/**\n * CYCLES\n */\n\nfunction compute_ev_mapping (EV) {\n let ev_mapping = EV.map(function (ev) {\n return {\n ev: ev,\n color: 0,\n direction: -1\n }\n })\n\n return ev_mapping\n}\n\nfunction compute_angle (P, V) {\n let point = sub(V, P)\n let angle = Math.atan2(point[1], point[0])\n return angle\n}\n\nfunction compute_incidences (V, EV) {\n let incidences = V.map(function (vertex, i) {\n let incidence = []\n EV.forEach(function (edge, j) {\n let endpoint\n let position\n\n if (edge[0] === i) {\n endpoint = edge[1]\n position = 1\n }\n\n if (edge[1] === i) {\n endpoint = edge[0]\n position = 0\n }\n\n endpoint !== undefined && incidence.push({\n index: j,\n endpoint: endpoint,\n angle: compute_angle(vertex, V[endpoint]),\n edge: edge,\n position: position\n })\n })\n\n incidence.sort(function (i1, i2) {\n return i2.angle - i1.angle\n })\n\n return incidence\n })\n\n return incidences\n}\n\nfunction get_starting_edge (incidences, ev_mapping) {\n let e\n let position\n let direction\n for (e = 0; e < ev_mapping.length; e += 1) {\n if (ev_mapping[e].color < 2) {\n direction = -1 * ev_mapping[e].direction\n color(ev_mapping, e, direction)\n return {\n edge: e,\n direction: direction,\n position: direction === -1 ? 0 : 1\n }\n }\n }\n}\n\nfunction get_next_edge (incidences, edge, position, EV) {\n let items = incidences[EV[edge][position]]\n //console.log(items, incidences, EV, edge, position);\n let n_items = items.length\n let item\n let out\n let j\n for (j = 0; j < n_items; j += 1) {\n item = items[j]\n if (item.index === edge) {\n out = items[mod(j + 1, items.length)]\n return {\n edge: out.index,\n vertex: out.endpoint,\n position: out.position,\n direction: out.position ? 1 : -1\n }\n }\n }\n}\n\nfunction color (ev_mapping, index, direction) {\n ev_mapping[index].color += 1\n ev_mapping[index].direction = direction\n}\n\nfunction find_cycles (V, EV) {\n let ev_mapping = compute_ev_mapping(EV)\n let incidences = compute_incidences(V, EV)\n let V_cycles = []\n let E_cycles = []\n let dir_E_cycles = []\n let V_cycle\n let E_cycle\n let dir_E_cycle\n let next\n let counter = 0\n let start = get_starting_edge(incidences, ev_mapping)\n\n while (start !== undefined) {\n V_cycle = [EV[start.edge][mod(start.position + 1, 2)], EV[start.edge][start.position]]\n E_cycle = [start.edge]\n dir_E_cycle = [start.direction]\n next = get_next_edge(incidences, start.edge, start.position, EV)\n while (next.edge !== start.edge) {\n V_cycle.push(next.vertex)\n E_cycle.push(next.edge)\n dir_E_cycle.push(next.direction)\n color(ev_mapping, next.edge, next.direction)\n next = get_next_edge(incidences, next.edge, next.position, EV)\n }\n E_cycles.push(E_cycle)\n V_cycles.push(V_cycle)\n dir_E_cycles.push(dir_E_cycle)\n\n //console.log('############## CYCLE ', ++counter)\n //console.log('EDGES:', E_cycle)\n //console.log('VERTICES:', V_cycle)\n //console.log('START', 'edge:', start.edge, 'position:', start.position)\n //console.log('COUNTER:', ev_mapping.map(e => e.color), ev_mapping.map(e => e.color).reduce((a, b) => a + b));\n //console.log('\\n')\n\n start = get_starting_edge(incidences, ev_mapping)\n }\n\n return {\n v_cycles: V_cycles,\n e_cycles: E_cycles,\n dir_e_cycles: dir_E_cycles,\n ev_mapping: ev_mapping\n }\n}\n\nfunction find_short_cycles_indexes (v_cycles, e_cycles) {\n let indexes = [];\n let e_cycle;\n let v_cycle;\n let i;\n\n for (i = 0; i < e_cycles.length; i += 1) {\n e_cycle = e_cycles[i];\n v_cycle = v_cycles[i];\n if ((e_cycle.length < 3) || (v_cycle[0] !== v_cycle[v_cycle.length - 1])) {\n indexes.push(i);\n }\n }\n\n return indexes;\n}\n\nfunction find_inner_cycles (V, EV) {\n let cycles = find_cycles(V, EV);\n let v_cycles = cycles.v_cycles;\n let e_cycles = cycles.e_cycles;\n let short_cycles_indexes = find_short_cycles_indexes(v_cycles, e_cycles);\n short_cycles_indexes.forEach(indx => {\n v_cycles.splice(indx, 1);\n e_cycles.splice(indx, 1);\n })\n let dir_e_cycles = cycles.dir_e_cycles;\n let rooms_values = cycles.e_cycles.map((cycle, i) => cycle.map(function (edge, j) {\n let v1;\n let v2;\n\n let dir = dir_e_cycles[i][j] > 0\n\n if (dir > 0) {\n v1 = EV[edge][0];\n v2 = EV[edge][1];\n } else {\n v1 = EV[edge][1];\n v2 = EV[edge][0];\n }\n\n return (V[v2][0] - V[v1][0]) * (V[v2][1] + V[v1][1]);\n }));\n\n let rooms_sums = rooms_values.map(room => room.reduce((a, b) => a + b))\n\n let positive_count = rooms_sums.filter(sum => sum > 0).length;\n let negative_count = rooms_sums.length - positive_count;\n\n let rm_neg = positive_count >= negative_count ? 1 : -1;\n\n return {\n v_cycles: cycles.v_cycles.filter((v, i) => (rm_neg * rooms_sums[i]) > 0 ),\n e_cycles: cycles.e_cycles.filter((v, i) => (rm_neg * rooms_sums[i]) > 0 ),\n ev_mapping: cycles.ev_mapping\n }\n}\n\n// export default find_inner_cycles;\nmodule.exports = find_inner_cycles\n\n/**\n* DATA\n*/\n\n// let V = [[0.5774, 1.0], [1.0, 1.0], [1.1547, 0.0], [1.0, 0.0], [0.0, 0.0], [0.0, 0.732], [1.0, 0.1547], [0.732, 0.0], [1.0491, 0.183], [-0.317, 0.549], [1.0, 0.268], [0.183, -0.3169], [0.5491, 1.049], [0.4642, 1.0], [0.0, -0.4226], [0.0, 1.0]]\n// let EV = [[0, 1], [2, 3], [5, 4], [7, 6], [2, 8], [3, 6], [4, 9], [0, 10], [9, 5], [8, 10], [7, 11], [12, 13], [6, 8], [6, 10], [4, 7], [4, 11], [4, 14], [5, 15], [11, 14], [0, 12], [13, 15], [0, 13], [1, 10], [3, 7], [5, 13]]\n\n// let V = [[0,0],[10,0],[10,10],[0,10], [100,100],[110,100],[110,110],[100,110], [5,0], [5,10]]\n// let V = [[0,0.5],[12,-0.7],[14,14],[-2,10], [103,106],[117,98],[96,112],[104,109], [5.5,0.8], [4.8,10.5]]\n// let EV = [[3,9],[9,2],[2,1],[1,8],[8,0],[0,3],[8,9]] // IT WORKS\n// let EV = [[3,9],[9,2],[2,1],[1,8],[8,0],[0,3],[8,9], [5,6], [6,7], [2,5]] // IT DOESN'T WORK\n// let EV = [[3,2],[2,1],[1,0],[0,3]] // IT WORKS\n// let EV = [[2,3],[1,2],[0,1],[3,0]] // IT WORKS\n// let EV = [[2,3],[1,2],[0,1],[3,0],[6,7],[5,6],[4,5],[7,4]] // IT WORKS\n// let EV = [[3,2],[2,1],[1,0],[0,3],[7,6],[6,5],[5,4],[4,7]] // IT WORKS\n\n// let V = [[2,5],[5,6],[10,6.8],[23,8],[9.6,11.3],[20,15],[25,16],[29,18],[30,22],[4,11],[6,10],[24,25],[18,20],[27,7]]\n// let EV = [[0,1],[10,0],[9,10],[9,1],[1,2],[4,2],[3,13],[2,3],[4,5],[5,6],[6,7],[12,5],[12,11],[11,6],[11,8],[7,8],[9,4]]\n\n/**\n* MAIN\n*/\n\n// let cycles_data = find_inner_cycles(V, EV)\n// console.log('############## OUTPUT')\n// console.log('EDGES:')\n// console.log(cycles_data.e_cycles)\n// console.log('\\n')\n// console.log('VERTICES:')\n// console.log(cycles_data.v_cycles)\n// console.log('\\n')\n// console.log(cycles_data.ev_mapping.every(m => m.color === 2))\n\n","function getEdgesOfSubgraphs(subgraphs, graph) {\n\n let edges = [];\n\n subgraphs.forEach(component => {\n edges.push([]);\n let vertices = getVerticesFromBiconnectedComponent(component);\n let inserted = [];\n vertices.forEach(vertex => {\n let adjacents = graph.adj[vertex];\n adjacents.forEach(adj => {\n if (vertex <= adj && vertices.has(adj)) {\n edges[edges.length - 1].push([vertex,adj]);\n }\n });\n });\n });\n return edges;\n\n}\n\nfunction getVerticesFromBiconnectedComponent(component) {\n let vertices = new Set();\n component.forEach(edge => {\n vertices.add(edge.u);\n vertices.add(edge.v);\n });\n return vertices;\n}\n\nmodule.exports = getEdgesOfSubgraphs;\n","//JS porting of this code http://www.geeksforgeeks.org/biconnected-components/\n\nfunction create_array(length) {\n let array = [];\n for (let i = 0; i < length; ++i) {\n array.push([]);\n }\n return array;\n}\n\n\nclass Edge {\n constructor(u, v) {\n this.u = u;\n this.v = v;\n }\n}\n\nclass Graph {\n\n constructor(v) {\n this.count = 0; // count is number of biconnected components\n this.subgraphs = []; //biconnected components\n this.time = 0; // time is used to find discovery times\n\n this.V = v; // No. of vertices\n this.E = 0; // No. of Edges\n this.adj = []; // Adjacency List\n\n this.adj = create_array(v);\n }\n\n //Function to add an edge into the graph\n addEdge(v, w) {\n this.adj[v].push(w);\n this.E++;\n }\n\n // A recursive function that finds and prints strongly connected\n // components using DFS traversal\n // u --> The vertex to be visited next\n // disc[] --> Stores discovery times of visited vertices\n // low[] -- >> earliest visited vertex (the vertex with minimum\n // discovery time) that can be reached from subtree\n // rooted with current vertex\n // *st -- >> To store visited edges\n // // A recursive function that finds and prints strongly connected\n // components using DFS traversal\n // u --> The vertex to be visited next\n // disc[] --> Stores discovery times of visited vertices\n // low[] -- >> earliest visited vertex (the vertex with minimum\n // discovery time) that can be reached from subtree\n // rooted with current vertex\n // *st -- >> To store visited edges\n _BCCUtil(u, disc, low, st, parent) {\n // Initialize discovery time and low value\n disc[u] = low[u] = ++this.time;\n this.children = 0;\n\n // Go through all vertices adjacent to this\n // v is current adjacent of 'u'\n this.adj[u].forEach(v => {\n\n // If v is not visited yet, then recur for it\n if (disc[v] == -1) {\n this.children++;\n parent[v] = u;\n\n // store the edge in stack\n st.push(new Edge(u, v));\n this._BCCUtil(v, disc, low, st, parent);\n\n // Check if the subtree rooted with 'v' has a\n // connection to one of the ancestors of 'u'\n // Case 1 -- per Strongly Connected Components Article\n if (low[u] > low[v])\n low[u] = low[v];\n\n // If u is an articulation point,\n // pop all edges from stack till u -- v\n if ((disc[u] == 1 && this.children > 1) || (disc[u] > 1 && low[v] >= disc[u])) {\n let subgraph = [];\n while (st[st.length - 1].u != u || st[st.length - 1].v != v) {\n subgraph.push(st[st.length - 1]);\n //console.log(st[st.length - 1].u + \"--\" + st[st.length - 1].v + \" \");\n st.splice(st.length - 1, 1);\n }\n\n subgraph.push(st[st.length - 1]);\n //console.log(st[st.length - 1].u + \"--\" + st[st.length - 1].v + \" \");\n this.subgraphs.push(subgraph);\n subgraph = [];\n //console.log()\n st.splice(st.length - 1, 1);\n\n this.count++;\n }\n }\n\n // Update low value of 'u' only of 'v' is still in stack\n // (i.e. it's a back edge, not cross edge).\n // Case 2 -- per Strongly Connected Components Article\n else if (v != parent[u] && disc[v] < low[u]) {\n if (low[u] > disc[v])\n low[u] = disc[v];\n st.push(new Edge(u, v));\n }\n })\n }\n\n BCC() {\n let V = this.V;\n let disc = create_array(V);\n let low = create_array(V);\n let parent = create_array(V);\n let st = [];\n\n // Initialize disc and low, and parent arrays\n for (let i = 0; i < V; i++) {\n disc[i] = -1;\n low[i] = -1;\n parent[i] = -1;\n }\n\n for (let i = 0; i < V; i++) {\n if (disc[i] == -1)\n this._BCCUtil(i, disc, low, st, parent);\n\n let j = 0;\n\n // If stack is not empty, pop all edges from stack\n let subgraph = [];\n while (st.length > 0) {\n j = 1;\n subgraph.push(st[st.length - 1]);\n //console.log(st[st.length - 1].u + \"--\" + st[st.length - 1].v + \" \");\n st.splice(st.length - 1, 1);\n }\n\n if (j == 1) {\n this.subgraphs.push(subgraph);\n subgraph = [];\n //console.log();\n this.count++;\n }\n }\n }\n}\n\nmodule.exports = Graph;\n","import Graph from './graph';\nimport getEdgesOfSubgraphs from './get-edges-of-subgraphs';\nimport graphCycles from './graph-cycles';\nimport {List} from 'immutable';\n\nexport function calculateInnerCycles(verticesArray, edgesArray) {\n let innerCycles = new List();\n\n let graph = new Graph(verticesArray.length);\n edgesArray.forEach(line => {\n graph.addEdge(line[0], line[1]);\n graph.addEdge(line[1], line[0]);\n });\n\n graph.BCC();\n\n let subgraphs = graph.subgraphs.filter(subgraph => subgraph.length >= 3);\n let edgesOfSubgraphsArray = getEdgesOfSubgraphs(subgraphs, graph);\n\n let edges = [];\n edgesOfSubgraphsArray.forEach(es => {\n es.forEach(edge => edges.push(edge))\n });\n\n let cycles = graphCycles(verticesArray, edges);\n cycles.v_cycles.forEach(cycle => {\n cycle.shift();\n innerCycles = innerCycles.push(cycle);\n });\n\n return innerCycles;\n}\n\nexport function isClockWiseOrder(innerCycleWithCoords) {\n // See: https://stackoverflow.com/a/1165943 and http://blog.element84.com/polygon-winding.html\n\n let i = 0;\n let twiceEnclosedArea = 0;\n let size = innerCycleWithCoords.size;\n\n for (i = 0; i < size; i++) {\n\n let { x: x1, y: y1 } = innerCycleWithCoords.get(i);\n let { x: x2, y: y2 } = innerCycleWithCoords.get((i + 1) % size);\n\n twiceEnclosedArea += (x2 - x1) * (y2 + y1);\n }\n\n return twiceEnclosedArea > 0;\n}\n","import { Map, List } from 'immutable';\nimport {\n MODE_VIEWING_CATALOG,\n MODE_CONFIGURING_PROJECT,\n MODE_IDLE\n} from '../constants';\nimport { State, Catalog } from '../models';\nimport { history } from '../utils/export';\nimport {\n Layer,\n Group,\n Line,\n Hole,\n Item,\n HorizontalGuide,\n VerticalGuide\n} from '../class/export';\n\nclass Project{\n\n static setAlterate( state ){\n return { updatedState: state.set('alterate', !state.alterate ) };\n }\n\n static openCatalog( state ) {\n state = this.setMode( state, MODE_VIEWING_CATALOG ).updatedState;\n\n return { updatedState: state };\n }\n\n static newProject() {\n return { updatedState: new State() };\n }\n\n static loadProject(state, sceneJSON) {\n state = new State({ scene: sceneJSON, catalog: state.catalog.toJS() });\n\n return { updatedState: state };\n }\n\n static setProperties(state, layerID, properties) {\n state = Layer.setPropertiesOnSelected( state, layerID, properties ).updatedState;\n \n return { updatedState: state };\n }\n\n static updateProperties(state, layerID, properties) {\n state = Layer.updatePropertiesOnSelected( state, layerID, properties ).updatedState;\n\n return { updatedState: state };\n }\n\n static setItemsAttributes(state, attributes) {\n //TODO apply only to items\n state.getIn(['scene', 'layers']).forEach( layer => { state = Layer.setAttributesOnSelected( state, layer.id, attributes ).updatedState; } );\n\n return { updatedState: state };\n }\n\n static setLinesAttributes(state, attributes) {\n //TODO apply only to lines\n state.getIn(['scene', 'layers']).forEach( layer => { state = Layer.setAttributesOnSelected( state, layer.id, attributes ).updatedState; } );\n\n return { updatedState: state };\n }\n\n static setHolesAttributes(state, attributes) {\n //TODO apply only to holes\n state.getIn(['scene', 'layers']).forEach( layer => { state = Layer.setAttributesOnSelected( state, layer.id, attributes ).updatedState; } );\n\n return { updatedState: state };\n }\n\n static unselectAll(state) {\n state.getIn(['scene', 'layers']).forEach( ({ id: layerID }) => { state = Layer.unselectAll( state, layerID ).updatedState; });\n state.getIn(['scene', 'groups']).forEach( group => { state = Group.unselect( state, group.get('id') ).updatedState; });\n\n return { updatedState: state };\n }\n\n static remove(state) {\n let selectedLayer = state.getIn(['scene', 'selectedLayer']);\n let {\n lines: selectedLines,\n holes: selectedHoles,\n items: selectedItems\n } = state.getIn(['scene', 'layers', selectedLayer, 'selected']);\n\n state = Layer.unselectAll( state, selectedLayer ).updatedState;\n\n selectedLines.forEach(lineID => { state = Line.remove( state, selectedLayer, lineID ).updatedState; });\n selectedHoles.forEach(holeID => { state = Hole.remove( state, selectedLayer, holeID ).updatedState; });\n selectedItems.forEach(itemID => { state = Item.remove( state, selectedLayer, itemID ).updatedState; });\n\n state = Layer.detectAndUpdateAreas( state, selectedLayer ).updatedState;\n\n return { updatedState: state };\n }\n\n static undo(state) {\n let sceneHistory = state.sceneHistory;\n if (state.scene === sceneHistory.last && sceneHistory.list.size > 1) {\n sceneHistory = history.historyPop(sceneHistory);\n }\n\n state = state.merge({\n mode: MODE_IDLE,\n scene: sceneHistory.last,\n sceneHistory: history.historyPop(sceneHistory)\n });\n\n return { updatedState: state };\n }\n\n static rollback(state) {\n let sceneHistory = state.sceneHistory;\n\n if (!sceneHistory.last && sceneHistory.list.isEmpty()) {\n return { updatedState: state };\n }\n\n state = this.unselectAll( state ).updatedState;\n\n state = state.merge({\n mode: MODE_IDLE,\n scene: sceneHistory.last,\n sceneHistory: history.historyPush(sceneHistory, sceneHistory.last),\n snapElements: new List(),\n activeSnapElement: null,\n drawingSupport: new Map(),\n draggingSupport: new Map(),\n rotatingSupport: new Map(),\n });\n\n return { updatedState: state };\n }\n\n static setProjectProperties(state, properties) {\n let scene = state.scene.merge(properties);\n state = state.merge({\n mode: MODE_IDLE,\n scene\n });\n\n return { updatedState: state };\n }\n\n static openProjectConfigurator(state) {\n state = state.merge({\n mode: MODE_CONFIGURING_PROJECT,\n });\n\n return { updatedState: state };\n }\n\n static initCatalog(state, catalog) {\n state = state.set('catalog', new Catalog(catalog));\n\n return { updatedState: state };\n }\n\n static updateMouseCoord(state, coords) {\n state = state.set('mouse', new Map(coords));\n\n return { updatedState: state };\n }\n\n static updateZoomScale(state, scale) {\n state = state.set('zoom', scale);\n\n return { updatedState: state };\n }\n\n static toggleSnap(state, mask) {\n state = state.set('snapMask', mask);\n return { updatedState: state };\n }\n\n static throwError(state, error) {\n state = state.set('errors', state.get('errors').push({\n date: Date.now(),\n error\n }));\n\n return { updatedState: state };\n }\n\n static throwWarning(state, warning) {\n state = state.set('warnings', state.get('warnings').push({\n date: Date.now(),\n warning\n }));\n\n return { updatedState: state };\n }\n\n static copyProperties(state, properties){\n state = state.set('clipboardProperties', properties);\n\n return { updatedState: state };\n }\n\n static pasteProperties(state) {\n state = this.updateProperties(state, state.getIn(['scene', 'selectedLayer']), state.get('clipboardProperties')).updatedState;\n\n return { updatedState: state };\n }\n\n static pushLastSelectedCatalogElementToHistory(state, element) {\n let currHistory = state.selectedElementsHistory;\n\n let previousPosition = currHistory.findIndex(el => el.name === element.name);\n if (previousPosition !== -1) {\n currHistory = currHistory.splice(previousPosition, 1);\n }\n currHistory = currHistory.splice(0, 0, element);\n\n state = state.set('selectedElementsHistory', currHistory);\n return { updatedState: state };\n }\n\n static changeCatalogPage( state, oldPage, newPage ) {\n state = state.setIn(['catalog', 'page'], newPage)\n .updateIn(['catalog', 'path'], path => path.push(oldPage));\n\n return { updatedState: state };\n }\n\n static goBackToCatalogPage( state, newPage ){\n let pageIndex = state.catalog.path.findIndex(page => page === newPage);\n state = state.setIn(['catalog', 'page'], newPage)\n .updateIn(['catalog', 'path'], path => path.take(pageIndex));\n\n return { updatedState: state };\n }\n\n static setMode( state, mode ){\n state = state.set('mode', mode);\n return { updatedState: state };\n }\n\n static addHorizontalGuide( state, coordinate ){\n state = HorizontalGuide.create( state, coordinate ).updatedState;\n\n return { updatedState: state };\n }\n\n static addVerticalGuide( state, coordinate ){\n state = VerticalGuide.create( state, coordinate ).updatedState;\n\n return { updatedState: state };\n }\n\n static addCircularGuide( state, x, y, radius ){\n console.log('adding horizontal guide at', x, y, radius);\n\n return { updatedState: state };\n }\n\n static removeHorizontalGuide( state, guideID ){\n state = HorizontalGuide.remove( state, guideID ).updatedState;\n\n return { updatedState: state };\n }\n\n static removeVerticalGuide( state, guideID ){\n state = VerticalGuide.remove( state, guideID ).updatedState;\n\n return { updatedState: state };\n }\n\n static removeCircularGuide( state, guideID ){\n console.log('removeing horizontal guide ', guideID);\n\n return { updatedState: state };\n }\n\n}\n\nexport { Project as default };\n","import { Area } from '../class/export';\nimport { SELECT_AREA } from '../constants';\n\nexport default function (state, action) {\n switch (action.type) {\n case SELECT_AREA:\n return Area.select(state, action.layerID, action.areaID).updatedState;\n default:\n return state;\n }\n}\n","import {\n PROJECT_ACTIONS,\n VIEWER2D_ACTIONS,\n VIEWER3D_ACTIONS,\n GROUP_ACTIONS,\n ITEMS_ACTIONS,\n HOLE_ACTIONS,\n LINE_ACTIONS,\n AREA_ACTIONS,\n SCENE_ACTIONS,\n VERTEX_ACTIONS\n} from '../constants';\n\nimport {\n ReactPlannerAreasReducer,\n ReactPlannerHolesReducer,\n ReactPlannerItemsReducer,\n ReactPlannerLinesReducer,\n ReactPlannerGroupsReducer,\n ReactPlannerProjectReducer,\n ReactPlannerSceneReducer,\n ReactPlannerVerticesReducer,\n ReactPlannerViewer2dReducer,\n ReactPlannerViewer3dReducer\n} from './export';\n\nimport {State} from '../models';\n\nexport const initialState = new State();\n\nexport default function appReducer(state, action) {\n if( PROJECT_ACTIONS[action.type] ) return ReactPlannerProjectReducer(...arguments);\n if( VIEWER2D_ACTIONS[action.type] ) return ReactPlannerViewer2dReducer(...arguments);\n if( VIEWER3D_ACTIONS[action.type] ) return ReactPlannerViewer3dReducer(...arguments);\n if( ITEMS_ACTIONS[action.type] ) return ReactPlannerItemsReducer(...arguments);\n if( HOLE_ACTIONS[action.type] ) return ReactPlannerHolesReducer(...arguments);\n if( LINE_ACTIONS[action.type] ) return ReactPlannerLinesReducer(...arguments);\n if( AREA_ACTIONS[action.type] ) return ReactPlannerAreasReducer(...arguments);\n if( GROUP_ACTIONS[action.type] ) return ReactPlannerGroupsReducer(...arguments);\n if( SCENE_ACTIONS[action.type] ) return ReactPlannerSceneReducer(...arguments);\n if( VERTEX_ACTIONS[action.type] ) return ReactPlannerVerticesReducer(...arguments);\n\n return state || initialState;\n};\n","export default {\n \"+ Add Horizontal Giude\":\"+ Добавить горизонтальное руководство\",\n \"+ Add Vertical Giude\":\"+ Добавить вертикальное руководство\",\n \"2D View\": \"Плоский вид\",\n \"3D First Person\": \"3D от первого лица\",\n \"3D View\": \"Объёмный вид\",\n \"altitude\": \"высота\",\n \"Altitude\": \"Высота\",\n \"Areas\": \"Поверхности\",\n \"Cancel\": \"Отмена\",\n \"Catalog\": \"Каталог\",\n \"Chain selected Elements to Group\":\"Цепочка выбранных элементов в группу\",\n \"Circular\":\"круговой\",\n \"color\":\"цвет\",\n \"Configure layer\": \"Настроить слой\",\n \"Configure project\": \"Настроить проект\",\n \"Confirm\": \"подтвердить\",\n \"Copy\": \"Копировать\",\n \"Delete group and all Elements\":\"Удалить группу и все элементы\",\n \"Delete layer\": \"Удалить слой\",\n \"Delete\": \"Удалить\",\n \"Elements on layer {0}\": \"Элементов на слое {0}\",\n \"Elements\":\"элементы\",\n \"Get Screenshot\": \"Сделать снимок экрана\",\n \"Group [{0}]\":\"группа [{0}]\",\n \"Group's Barycenter\":\"Барицентр группы\",\n \"Group's Elements\":\"Элементы группы\",\n \"Groups\":\"группы\",\n \"Guides\":\"руководства\",\n \"height\": \"высота\",\n \"Holes\": \"Проёмы\",\n \"Horizontal\":\"горизонтальный\",\n \"Items\": \"Предметы\",\n \"Last Selected\": \"Последний выбраный\",\n \"Layer config\": \"Настройка слоя\",\n \"Layer\":\"Слой\",\n \"Layers\": \"Слои\",\n \"Length\": \"Длинна\",\n \"Lines\": \"Линии\",\n \"Load project\": \"Загрузить проект\",\n \"Mouse X Coordinate\": \"X-координата курсора\",\n \"Mouse Y Coordinate\": \"Y-координата курсора\",\n \"Name\": \"Название\",\n \"New Empty Group\":\"Новая пустая группа\",\n \"New Group from selected\":\"Новая группа из выбранных\",\n \"New layer\": \"Новый слой\",\n \"New project\": \"Новый проект\",\n \"opacity\": \"непрозрачность\",\n \"Open catalog\": \"Открыть каталог\",\n \"order\": \"порядок\",\n \"Pan\": \"Двигать\",\n \"Paste\": \"Вставить\",\n \"Project config\": \"Настройка проекта\",\n \"Properties: [{0}] {1}\": \"Свойства: [{0}] {1}\",\n \"Prototype\":\"Опытный образец\",\n \"Reset\": \"Сброс\",\n \"Rotation\": \"Вращение\",\n \"Save project\": \"Сохранить проект\",\n \"Save\": \"Сохранить\",\n \"Scene Zoom Level\": \"Уровень приближениия сцены\",\n \"Search Element\": \"Поиск\",\n \"Snap to Grid\": \"Привязка к сетке\",\n \"Snap to Guide\": \"Привязать к руководству\",\n \"Snap to Line\": \"Привязка к линии\",\n \"Snap to Point\": \"Привязка к точке\",\n \"Snap to Segment\": \"Привязка к сегменту\",\n \"texture\":\"текстура\",\n \"thickness\":\"толщина\",\n \"Toggle Group Visibility\":\"Переключить видимость группы\",\n \"Un-chain all Group\\'s Elements and remove Group\":\"Удалить цепочку элементов группы и удалить группу\",\n \"Un-chain Element from Group\":\"Unchain Element из группы\",\n \"Undo (CTRL-Z)\": \"Отменить действие (CTRL-Z)\",\n \"Unselect\": \"Снять выделене\",\n \"Vertical\":\"вертикальный\",\n \"width\": \"ширина\",\n \"Would you want to start a new Project?\": \"Начать новый проект?\",\n \"Zoom in\": \"Приблизить\",\n \"Zoom out\": \"Отдалить\"\n};\n","export default {\n \"+ Add Horizontal Giude\":\"+ Aggiungi Guida Orizzontale\",\n \"+ Add Vertical Giude\":\"+ Aggiungi Guida Verticale\",\n \"2D View\": \"Vista 2D\",\n \"3D First Person\": \"3D Prima persona\",\n \"3D View\": \"Vista 3D\",\n \"Altitude\": \"Quota\",\n \"altitude\": \"Quota\",\n \"Areas\":\"Aree\",\n \"Cancel\": \"Annulla\",\n \"Catalog\" : \"Catalogo\",\n \"Chain selected Elements to Group\":\"Collega l'Elemento selzionato al Gruppo\",\n \"Circular\":\"Circolare\",\n \"color\":\"colore\",\n \"Configure layer\": \"Configura livello\",\n \"Configure project\": \"Configura progetto\",\n \"Confirm\": \"Conferma\",\n \"Copy\":\"Copia\",\n \"Delete group and all Elements\":\"Elimina Gruppo e tutti i suoi Elementi\",\n \"Delete layer\": \"Elimina livello\",\n \"Delete\": \"Elimina\",\n \"Elements on layer {0}\": \"Elementi nel livello {0}\",\n \"Elements\":\"Elementi\",\n \"Get Screenshot\" : \"Cattura uno screenshot\",\n \"Group [{0}]\":\"Gruppo [{0}]\",\n \"Group's Barycenter\":\"Baricentro del Gruppo\",\n \"Group's Elements\":\"Elementi del Gruppo\",\n \"Groups\":\"Gruppi\",\n \"Guides\":\"Guide\",\n \"height\": \"Altezza\",\n \"Holes\":\"Buchi\",\n \"Horizontal\":\"Orizzontale\",\n \"Items\":\"Oggetti\",\n \"Last Selected\":\"Ultimi Selezionati\",\n \"Layer config\": \"Configurazione livello\",\n \"Layer\":\"Livello\",\n \"Layers\": \"Livelli\",\n \"Length\":\"Lunghezza\",\n \"Lines\":\"Linee\",\n \"Load project\": \"Carica progetto\",\n \"Mouse X Coordinate\":\"Coordinata X del Mouse\",\n \"Mouse Y Coordinate\":\"Coordinata Y del Mouse\",\n \"Name\" : \"Nome\",\n \"New Empty Group\":\"Crea Gruppo Vuoto\",\n \"New Group from selected\":\"Crea Gruppo dai selezionati\",\n \"New layer\": \"Nuovo livello\",\n \"New project\": \"Nuovo progetto\",\n \"opacity\": \"Opacità\",\n \"Open catalog\": \"Apri catalogo\",\n \"order\":\"Ordine\",\n \"Pan\": \"Muovi\",\n \"Paste\":\"Incolla\",\n \"Project config\": \"Configurazione progetto\",\n \"Properties: [{0}] {1}\": \"Proprietà: [{0}] {1}\",\n \"Prototype\":\"Prototipo\",\n \"Reset\": \"Annulla\",\n \"Rotation\" : \"Rotazione\",\n \"Save project\": \"Salva progetto\",\n \"Save\" : \"Salva\",\n \"Scene Zoom Level\":\"Livello di Zoom della Scena\",\n \"Search Element\":\"Cerca Elemento\",\n \"Snap to Grid\":\"Snap alla Griglia\",\n \"Snap to Guide\":\"Snap alla Guida\",\n \"Snap to Line\":\"Snap alla Linea\",\n \"Snap to Point\":\"Snap al Punto\",\n \"Snap to Segment\":\"Snap al Segmento\",\n \"texture\":\"texture\",\n \"thickness\":\"spessore\",\n \"Toggle Group Visibility\":\"Varia la visibilità del Gruppo\",\n \"Un-chain all Group\\'s Elements and remove Group\":\"Elimina il Gruppo e scollega tutti gli Elementi appartenenti\",\n \"Un-chain Element from Group\":\"Scollega l'Elemento dal Gruppo\",\n \"Undo (CTRL-Z)\": \"Annulla (CTRL-Z)\",\n \"Unselect\": \"Deseleziona\",\n \"Vertical\":\"Verticale\",\n \"width\": \"Larghezza\",\n \"Would you want to start a new Project?\": \"Vuoi iniziare un nuovo progetto?\",\n \"Zoom in\": \"Ingrandisci\",\n \"Zoom out\": \"Riduci\"\n};\n","export default {\n \"+ Add Horizontal Giude\":\"+ Add Horizontal Giude\",\n \"+ Add Vertical Giude\":\"+ Add Vertical Giude\",\n \"2D View\": \"2D View\",\n \"3D First Person\": \"3D First Person\",\n \"3D View\": \"3D View\",\n \"altitude\": \"altitude\",\n \"Altitude\": \"Altitude\",\n \"Areas\":\"Areas\",\n \"Cancel\": \"Cancel\",\n \"Catalog\" : \"Catalog\",\n \"Chain selected Elements to Group\":\"Chain selected Elements to Group\",\n \"Circular\":\"Circular\",\n \"color\":\"color\",\n \"Configure layer\": \"Configure layer\",\n \"Configure project\": \"Configure project\",\n \"Confirm\": \"Confirm\",\n \"Copy\":\"Copy\",\n \"Delete group and all Elements\":\"Delete group and all Elements\",\n \"Delete layer\": \"Delete layer\",\n \"Delete\": \"Delete\",\n \"Elements on layer {0}\": \"Elements on layer {0}\",\n \"Elements\":\"Elements\",\n \"Get Screenshot\" : \"Get Screenshot\",\n \"Group [{0}]\":\"Group [{0}]\",\n \"Group's Barycenter\":\"Group's Barycenter\",\n \"Group's Elements\":\"Group's Elements\",\n \"Groups\":\"Groups\",\n \"Guides\":\"Guides\",\n \"height\": \"height\",\n \"Holes\":\"Holes\",\n \"Horizontal\":\"Horizontal\",\n \"Items\":\"Items\",\n \"Last Selected\":\"Last Selected\",\n \"Layer config\": \"Layer config\",\n \"Layer\":\"Layer\",\n \"Layers\": \"Layers\",\n \"Length\":\"Length\",\n \"Lines\":\"Lines\",\n \"Load project\": \"Load project\",\n \"Mouse X Coordinate\":\"Mouse X Coordinate\",\n \"Mouse Y Coordinate\":\"Mouse Y Coordinate\",\n \"Name\": \"Name\",\n \"New Empty Group\":\"New Empty Group\",\n \"New Group from selected\":\"New Group from selected\",\n \"New layer\": \"New layer\",\n \"New project\": \"New project\",\n \"opacity\": \"opacity\",\n \"Open catalog\": \"Open catalog\",\n \"order\": \"order\",\n \"Pan\": \"Pan\",\n \"Paste\":\"Paste\",\n \"Project config\": \"Project config\",\n \"Properties: [{0}] {1}\": \"Properties: [{0}] {1}\",\n \"Prototype\":\"Prototype\",\n \"Reset\": \"Reset\",\n \"Rotation\" : \"Rotation\",\n \"Save project\": \"Save project\",\n \"Save\": \"Save\",\n \"Scene Zoom Level\":\"Scene Zoom Level\",\n \"Search Element\":\"Search Element\",\n \"Snap to Grid\":\"Snap to Grid\",\n \"Snap to Guide\":\"Snap to Guide\",\n \"Snap to Line\":\"Snap to Line\",\n \"Snap to Point\":\"Snap to Point\",\n \"Snap to Segment\":\"Snap to Segment\",\n \"texture\":\"texture\",\n \"thickness\":\"thickness\",\n \"Toggle Group Visibility\":\"Toggle Group Visibility\",\n \"Un-chain all Group\\'s Elements and remove Group\":\"Un-chain all Group\\'s Elements and remove Group\",\n \"Un-chain Element from Group\":\"Un-chain Element from Group\",\n \"Undo (CTRL-Z)\": \"Undo (CTRL-Z)\",\n \"Unselect\": \"Unselect\",\n \"Vertical\":\"Vertical\",\n \"width\": \"width\",\n \"Would you want to start a new Project?\": \"Would you want to start a new Project?\",\n \"Zoom in\": \"Zoom in\",\n \"Zoom out\": \"Zoom out\"\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nexport default function PropertyReadOnly({value, onUpdate, configs, sourceElement, internalState, state}) {\n return (\n \n \n \n \n \n \n \n
{configs.label}\n
{value}
\n
\n );\n}\n\nPropertyReadOnly.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport default function PropertyHidden({value, onUpdate, configs, sourceElement, internalState, state}) {\n return null\n}\n\nPropertyHidden.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nconst checkboxStyle = {margin: 0};\n\nexport default function PropertyCheckbox({value, onUpdate, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n\n if (configs.hook) {\n return configs.hook(val, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(val);\n };\n\n return (\n \n \n \n \n \n \n \n
{configs.label}\n update(!value)}/>\n
\n );\n}\n\nPropertyCheckbox.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel, Button } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\n\nexport default function PropertyToggle({value, onUpdate, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n\n if (configs.hook) {\n return configs.hook(val, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(val);\n };\n\n return (\n \n \n \n \n \n \n \n
{configs.label}\n \n
\n );\n}\n\nPropertyToggle.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel, FormNumberInput } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nexport default function PropertyNumber({value, onUpdate, onValid, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n let number = parseFloat(val);\n\n if (isNaN(number)) {\n number = 0;\n }\n\n if (configs.hook) {\n return configs.hook(number, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(number);\n };\n\n return (\n \n \n \n \n \n \n \n
{configs.label}\n update(event.target.value)}\n onValid={onValid}\n min={configs.min}\n max={configs.max}/>\n
\n );\n\n}\n\nPropertyNumber.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onValid: PropTypes.func,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {Seq} from 'immutable';\nimport { FormLabel, FormSelect } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nexport default function PropertyEnum({value, onUpdate, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n\n if (configs.hook) {\n return configs.hook(val, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(val);\n };\n\n return (\n \n \n \n \n \n \n \n
{configs.label}\n update(event.target.value)}>\n {Seq(configs.values)\n .entrySeq()\n .map(([key, value]) => )}\n \n
\n );\n}\n\nPropertyEnum.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport Button from './button';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE = {\n borderColor: \"#415375\",\n backgroundColor: \"#415375\",\n color: SharedStyle.COLORS.white\n};\n\nconst STYLE_HOVER = {\n borderColor: \"#1f3149\",\n backgroundColor: \"#1f3149\",\n color: SharedStyle.COLORS.white\n};\n\nexport default function FormSubmitButton({children, ...rest}) {\n return \n}\n","import React from 'react';\nimport ReactRange from '@mapbox/react-range';\nimport FormTextInput from './form-text-input';\n\nconst sliderContainerStyle = {display: 'inline-block', width: '80%', marginRight: '5%'};\nconst sliderStyle = { display: 'block', width: '100%', height: '30px' };\nconst textContainerStyle = {display: 'inline-block', width: '15%', float: 'right'};\nconst textStyle = {height:'34px', textAlign:'center'};\n\nexport default function FormNumberInput({value, onChange, ...rest}) {\n return (\n
\n
\n \n
\n\n
\n \n
\n
\n )\n}\n","import React from 'react';\nimport * as SharedStyle from '../../shared-style';\n\nconst BASE_STYLE = {\n display: \"block\",\n width: \"100%\",\n padding: \"0px 4px\",\n fontSize: \"13px\",\n color: SharedStyle.PRIMARY_COLOR.input,\n backgroundColor: SharedStyle.COLORS.white,\n backgroundImage: \"none\",\n border: \"1px solid rgba(0,0,0,.15)\",\n outline: \"none\",\n borderRadius: \"0px\",\n height: \"30px\",\n WebkitAppearance: \"none\",\n WebkitBorderRadius: \"0px\",\n background: `url(\"data:image/svg+xml;utf8,\") #fff`,\n backgroundPosition: \"100% 50%\",\n backgroundRepeat: \"no-repeat\",\n};\n\nexport default function FormSelect({children, style, ...rest}) {\n return ;\n}\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\nimport { MdUpdate } from 'react-icons/lib/md';\nimport { KEYBOARD_BUTTON_CODE } from '../../constants';\n\nconst STYLE_INPUT = {\n display: 'block',\n width: '100%',\n padding: '0 2px',\n fontSize: '13px',\n lineHeight: '1.25',\n color: SharedStyle.PRIMARY_COLOR.input,\n backgroundColor: SharedStyle.COLORS.white,\n backgroundImage: 'none',\n border: '1px solid rgba(0,0,0,.15)',\n outline: 'none',\n height: '30px',\n};\n\nconst confirmStyle = {\n position: 'absolute',\n cursor: 'pointer',\n width: '2em',\n height: '2em',\n right: '0.35em',\n top: '0.35em',\n backgroundColor: SharedStyle.SECONDARY_COLOR.main,\n color: '#FFF',\n transition: 'all 0.1s linear'\n};\n\nexport default class FormNumberInput extends Component {\n\n constructor(props, context) {\n super(props, context);\n this.state = {\n focus: false,\n valid: true,\n showedValue: props.value\n };\n }\n\n componentWillReceiveProps( nextProps ) {\n if( this.props.value !== nextProps.value ) {\n this.setState({ showedValue: nextProps.value });\n }\n }\n\n render() {\n\n let { value, min, max, precision, onChange, onValid, onInvalid, style, placeholder } = this.props;\n let numericInputStyle = { ...STYLE_INPUT, ...style };\n\n if (this.state.focus) numericInputStyle.border = `1px solid ${SharedStyle.SECONDARY_COLOR.main}`;\n\n let regexp = new RegExp(`^-?([0-9]+)?\\\\.?([0-9]{0,${precision}})?$`);\n\n if (!isNaN(min) && isFinite(min) && this.state.showedValue < min) this.setState({ showedValue: min }); // value = min;\n if (!isNaN(max) && isFinite(max) && this.state.showedValue > max) this.setState({ showedValue: max }); // value = max;\n\n let currValue = regexp.test(this.state.showedValue) ? this.state.showedValue : parseFloat(this.state.showedValue).toFixed(precision);\n\n let different = parseFloat(this.props.value).toFixed(precision) !== parseFloat(this.state.showedValue).toFixed(precision);\n\n let saveFn = (e) => {\n e.stopPropagation();\n\n if (this.state.valid) {\n let savedValue = (this.state.showedValue !== '' && this.state.showedValue !== '-') ? parseFloat(this.state.showedValue) : 0;\n\n this.setState({ showedValue: savedValue });\n onChange({ target: { value: savedValue } });\n }\n };\n\n return (\n
\n {\n let valid = regexp.test(evt.nativeEvent.target.value);\n\n if (valid) {\n this.setState({ showedValue: evt.nativeEvent.target.value });\n if (onValid) onValid(evt.nativeEvent);\n }\n else {\n if (onInvalid) onInvalid(evt.nativeEvent);\n }\n\n this.setState({ valid });\n }}\n onFocus={e => this.setState({ focus: true })}\n onBlur={e => this.setState({ focus: false })}\n onKeyDown={e => {\n var keyCode = e.keyCode || e.which;\n if ((keyCode == KEYBOARD_BUTTON_CODE.ENTER || keyCode == KEYBOARD_BUTTON_CODE.TAB) && different) {\n saveFn(e);\n }\n }}\n placeholder={placeholder}\n />\n { if (different) saveFn(e); }}\n title={this.context.translator.t('Confirm')}\n style={{ ...confirmStyle, visibility: different ? 'visible' : 'hidden', opacity: different ? '1' : '0' }}\n >\n \n
\n \n );\n }\n}\n\nFormNumberInput.propTypes = {\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n style: PropTypes.object,\n onChange: PropTypes.func.isRequired,\n onValid: PropTypes.func,\n onInvalid: PropTypes.func,\n min: PropTypes.number,\n max: PropTypes.number,\n precision: PropTypes.number,\n placeholder: PropTypes.string\n};\n\nFormNumberInput.contextTypes = {\n translator: PropTypes.object.isRequired\n};\n\nFormNumberInput.defaultProps = {\n value: 0,\n style: {},\n min: Number.MIN_SAFE_INTEGER,\n max: Number.MAX_SAFE_INTEGER,\n precision: 3\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE = {\n color: SharedStyle.PRIMARY_COLOR.alt,\n fontWeight: 300,\n};\n\nexport default function ContentTitle({children, style = {}, ...rest}) {\n return

{children}

\n}\n\nContentTitle.propsType = {\n style: PropTypes.object\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst STYLE = {\n padding: '0 20px',\n overflowY: 'auto'\n};\n\nexport default function ContentContainer({children, width, height, style = {}}) {\n return
event.stopPropagation()}>{children}
\n}\n\nContentContainer.propsType = {\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n style: PropTypes.object\n};\n","import PropertyColor from './property-color';\nimport PropertyEnum from './property-enum';\nimport PropertyString from './property-string';\nimport PropertyNumber from './property-number';\nimport PropertyLengthMeasure from './property-lenght-measure';\nimport PropertyToggle from './property-toggle';\nimport PropertyCheckbox from './property-checkbox';\nimport PropertyHidden from './property-hidden';\nimport PropertyReadOnly from './property-read-only';\n\nexport {\n PropertyColor,\n PropertyEnum,\n PropertyString,\n PropertyNumber,\n PropertyLengthMeasure,\n PropertyToggle,\n PropertyCheckbox,\n PropertyHidden,\n PropertyReadOnly\n};\n\nexport default {\n PropertyColor,\n PropertyEnum,\n PropertyString,\n PropertyNumber,\n PropertyLengthMeasure,\n PropertyToggle,\n PropertyCheckbox,\n PropertyHidden,\n PropertyReadOnly\n};\n","import {\n PropertyColor,\n PropertyEnum,\n PropertyString,\n PropertyNumber,\n PropertyLengthMeasure,\n PropertyToggle,\n PropertyCheckbox,\n PropertyHidden,\n PropertyReadOnly\n} from './properties/export';\n\nimport {UNIT_CENTIMETER} from '../constants';\n\nexport default class Catalog {\n\n constructor(unit = UNIT_CENTIMETER) {\n this.elements = {};\n this.categories = {root: {name: 'root', label: '/', elements: [], categories: []}};\n this.propertyTypes = {};\n this.unit = unit;\n\n this.registerMultiplePropertyType([\n ['color', PropertyColor, PropertyColor],\n ['enum', PropertyEnum, PropertyEnum],\n ['string', PropertyString, PropertyString],\n ['number', PropertyNumber, PropertyNumber],\n ['length-measure', PropertyLengthMeasure, PropertyLengthMeasure],\n ['toggle', PropertyToggle, PropertyToggle],\n ['checkbox', PropertyCheckbox, PropertyCheckbox],\n ['hidden', PropertyHidden, PropertyHidden],\n ['read-only', PropertyReadOnly, PropertyReadOnly]\n ]);\n }\n\n /** @description Get catalog's element\n * @param {string} type Element's type\n * @return {?object} Element\n */\n getElement(type) {\n if (this.hasElement(type)) {\n return this.elements[type];\n }\n throw new Error(`Element ${type} does not exist in catalog`);\n }\n\n /** @description Get catalog category\n * @param {string} categoryName Name of category\n * @return {object} Category\n */\n getCategory(categoryName) {\n if (this.hasCategory(categoryName)) {\n return this.categories[categoryName];\n }\n throw new Error(`Category ${categoryName} does not exist in catalog`);\n }\n\n /** @description Return type of a specfied property\n * @param {string} type Property type\n * @return {?object} Property\n */\n getPropertyType(type) {\n if (this.propertyTypes.hasOwnProperty(type)) {\n return this.propertyTypes[type];\n }\n throw new Error(`Element ${type} does not exist in catalog`);\n }\n\n /** @description Register a new element\n * @param {object} json Element structure\n * @return {void}\n */\n registerElement(json) {\n json.properties = json.properties || {};\n if (this.validateElement(json)) {\n this.elements[json.name] = json;\n this.categories.root.elements.push(this.elements[json.name]);\n }\n }\n\n /** @description Register multiple elements\n * @param {array} [elementArray] Array of elements\n * @return {void}\n */\n registerMultipleElements(elementArray) {\n elementArray.forEach(el => this.registerElement(el));\n }\n\n /** @description Register a new property\n * @param {string} type Type of property\n * @param {object} Viewer Property viewer component\n * @param {object} Editor Property editor component\n * @return {void}\n */\n registerPropertyType(type, Viewer, Editor) {\n this.propertyTypes[type] = {type, Viewer, Editor};\n }\n\n /** @description Register multiple property\n * @param {array} propertyTypeArray Array of properties\n * @return {void}\n */\n registerMultiplePropertyType(propertyTypeArray) {\n propertyTypeArray.forEach(el => this.registerPropertyType(...el));\n }\n\n /** @description Validate an element\n * @param {object} json Element's structure\n * @return {?boolean}\n */\n validateElement(json) {\n if (!json.hasOwnProperty('name')) throw new Error('Element not valid');\n\n let name = json.name;\n if (!json.hasOwnProperty('prototype')) throw new Error(`Element ${name} doesn't have prototype`);\n\n if (!json.hasOwnProperty('info')) throw new Error(`Element ${name} doesn't have info`);\n if (!json.info.hasOwnProperty('tag')) throw new Error(`Element ${name} doesn't have tag`);\n if (!json.info.hasOwnProperty('description')) throw new Error(`Element ${name} doesn't have description`);\n if (!json.info.hasOwnProperty('image')) throw new Error(`Element ${name} doesn't have image`);\n\n if (!json.hasOwnProperty('render2D')) throw new Error(`Element ${name} doesn't have render2D handler`);\n if (!json.hasOwnProperty('render3D')) throw new Error(`Element ${name} doesn't have render3D handler`);\n if (!json.hasOwnProperty('properties')) throw new Error(`Element ${name} doesn't have properties`);\n\n for (let propertyName in json.properties) {\n let propertyConfigs = json.properties[propertyName];\n if (!propertyConfigs.hasOwnProperty('type')) throw new Error(`Element ${name}, Property ${propertyName} doesn't have type`);\n if (!propertyConfigs.hasOwnProperty('defaultValue')) throw new Error(`Element ${name}, Property ${propertyName} doesn't have defaultValue`);\n }\n\n return true;\n }\n\n /** @description Check if catalog has element\n * @param {string} type Element's type\n * @return {boolean}\n */\n hasElement(type) {\n return this.elements.hasOwnProperty(type);\n }\n\n /** @description Register a new category\n * @param {string} name Name of category\n * @param {string} label Label of category\n * @param {array} [childs] Category's childs\n * @return {?object} Registered category\n */\n registerCategory(name, label, childs) {\n if (this.validateCategory(name, label)) {\n this.categories[name] = {name, label, categories: [], elements: []};\n this.categories.root.categories.push(this.categories[name]);\n\n if(childs && childs.length) {\n childs.forEach( el => this.addToCategory( name, el ) );\n }\n\n return this.categories[name];\n }\n return null;\n }\n\n /** @description Add an element to the specified category\n * @param {string} name Name of category\n * @param {object} child Element's structure\n * @return {?void}\n */\n addToCategory(name, child) {\n if (this.hasElement(child.name)) {\n this.categories[name].elements.push(child);\n this.categories.root.elements.splice(this.categories.root.elements.indexOf(child), 1);\n } else if (this.hasCategory(child.name)) {\n this.categories[name].categories.push(child);\n this.categories.root.categories.splice(this.categories.root.categories.indexOf(child), 1);\n } else {\n throw new Error(`child ${child} is either category nor element`);\n }\n }\n\n /** @description Check if category contain element\n * @param {string} categoryName Name of category\n * @param {string} elementName Name of element\n * @return {boolean}\n */\n categoryHasElement(categoryName, elementName) {\n return this.hasCategory(categoryName) && this.categories[categoryName].elements.some(el => el.name === elementName);\n }\n\n /** @description Validate a category\n * @param {string} name Name of category\n * @param {string} label Label of category\n * @return {?boolean}\n */\n validateCategory(name, label) {\n if (!name) {\n throw new Error('Category has undefined name');\n }\n if (name === '') {\n throw new Error('Category has empty name');\n }\n if (this.hasCategory(name)) {\n throw new Error('Category has already been registered');\n }\n\n return true;\n }\n\n /** @description Verify if catalog already contain a category with specified name\n * @param {string} categoryName Name of category\n * @return {boolean}\n */\n hasCategory(categoryName) {\n return this.categories.hasOwnProperty(categoryName);\n }\n\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport IconSave from 'react-icons/lib/md/camera-alt';\nimport {ReactPlannerComponents, ReactPlannerConstants} from 'react-planner';\n\nconst {\n MODE_IDLE,\n MODE_2D_ZOOM_IN,\n MODE_2D_ZOOM_OUT,\n MODE_2D_PAN,\n MODE_WAITING_DRAWING_LINE,\n MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX,\n MODE_DRAGGING_ITEM,\n MODE_DRAWING_LINE,\n MODE_DRAWING_HOLE,\n MODE_DRAWING_ITEM,\n MODE_DRAGGING_HOLE,\n MODE_ROTATING_ITEM,\n MODE_3D_FIRST_PERSON,\n MODE_3D_VIEW\n} = ReactPlannerConstants;\n\nconst { ToolbarButton } = ReactPlannerComponents.ToolbarComponents;\n\nexport default function ToolbarScreenshotButton({mode}, {translator}) {\n\n let imageBrowserDownload = imageUri => {\n let fileOutputLink = document.createElement('a');\n\n let filename = 'output' + Date.now() + '.png';\n filename = window.prompt('Insert output filename', filename);\n if (!filename) return;\n\n fileOutputLink.setAttribute('download', filename);\n fileOutputLink.href = imageUri;\n fileOutputLink.style.display = 'none';\n document.body.appendChild(fileOutputLink);\n fileOutputLink.click();\n document.body.removeChild(fileOutputLink);\n };\n\n\n let saveScreenshotToFile = event => {\n event.preventDefault();\n let canvas = document.getElementsByTagName('canvas')[0];\n imageBrowserDownload(canvas.toDataURL());\n };\n\n let saveSVGScreenshotToFile = event => {\n event.preventDefault();\n\n // First of all I need the svg content of the viewer\n let svgElements = document.getElementsByTagName('svg');\n\n // I get the element with max width (which is the viewer)\n let maxWidthSVGElement = svgElements[0];\n for (let i = 1; i < svgElements.length; i++) {\n if (svgElements[i].width.baseVal.value > maxWidthSVGElement.width.baseVal.value) {\n maxWidthSVGElement = svgElements[i];\n }\n }\n\n let serializer = new XMLSerializer();\n\n let img = new Image;\n\n // I create the new canvas to draw\n let canvas = document.createElement('canvas');\n let ctx = canvas.getContext('2d');\n\n // Set width and height for the new canvas\n let heightAtt = document.createAttribute('height');\n heightAtt.value = maxWidthSVGElement.height.baseVal.value;\n canvas.setAttributeNode(heightAtt);\n\n let widthAtt = document.createAttribute('width');\n widthAtt.value = maxWidthSVGElement.width.baseVal.value;\n canvas.setAttributeNode(widthAtt);\n\n ctx.fillStyle = 'white';\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n\n img.crossOrigin = 'anonymous';\n img.src = `data:image/svg+xml;utf8,${serializer.serializeToString(maxWidthSVGElement)}`;\n\n img.onload = () => {\n ctx.drawImage(img, 0, 0, maxWidthSVGElement.width.baseVal.value, maxWidthSVGElement.height.baseVal.value);\n imageBrowserDownload(canvas.toDataURL());\n };\n\n };\n\n if ([MODE_3D_FIRST_PERSON, MODE_3D_VIEW].includes(mode)) {\n return (\n \n \n \n );\n }\n\n if ([MODE_IDLE,\n MODE_2D_ZOOM_IN,\n MODE_2D_ZOOM_OUT,\n MODE_2D_PAN,\n MODE_WAITING_DRAWING_LINE,\n MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX,\n MODE_DRAGGING_ITEM,\n MODE_DRAWING_LINE,\n MODE_DRAWING_HOLE,\n MODE_DRAWING_ITEM,\n MODE_DRAGGING_HOLE,\n MODE_ROTATING_ITEM].includes(mode)) {\n\n return (\n \n \n \n );\n }\n\n return null;\n\n}\n\nToolbarScreenshotButton.propTypes = {\n mode: PropTypes.string.isRequired,\n};\n\nToolbarScreenshotButton.contextTypes = {\n translator: PropTypes.object.isRequired,\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/wardrobe/wardrobe.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 60;\nconst DEPTH = 60;\nconst HEIGHT = 220;\n\nconst blue = new Three.MeshLambertMaterial({color: 0x0000CC});\nconst grey = new Three.MeshLambertMaterial({color: 0xC0C0C0});\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\n\nfunction makeObjectMaxLOD() {\n\n let wardrobe = new Three.Mesh();\n\n //base\n let bottomSide = new Three.Mesh(new Three.BoxGeometry(1, 0.05, 1), grey);\n wardrobe.add(bottomSide);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1, 2, 0.05), grey);\n side1.position.set(0, 1.025, 0.475);\n wardrobe.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1, 2, 0.05), grey);\n side2.position.set(0, 1.025, -0.475);\n wardrobe.add(side2);\n\n //backside\n let backside = new Three.Mesh(new Three.BoxGeometry(0.05, 2, 1), grey);\n backside.position.set(0.475, 1.025, 0);\n wardrobe.add(backside);\n\n // top\n let topside = new Three.Mesh(new Three.BoxGeometry(1, 0.05, 1), grey);\n topside.position.set(0, 2.05, 0);\n wardrobe.add(topside);\n\n //central axis\n let centralAxis = new Three.Mesh(new Three.BoxGeometry(0.9, 0.4, 0.05), grey);\n centralAxis.position.set(0, 1.025, 0);\n wardrobe.add(centralAxis);\n\n //lower shelve\n let lowShelve = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.5), grey);\n lowShelve.position.set(0, 0.8, 0.225);\n wardrobe.add(lowShelve);\n\n //upper shelve\n let upShelve = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.5), grey);\n upShelve.position.set(0, 1.25, -0.225);\n wardrobe.add(upShelve);\n\n //up door\n let upDoor_p1 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.77, 0.9), blue);\n upDoor_p1.position.set(-0.475, 1.64, 0);\n wardrobe.add(upDoor_p1);\n\n let upDoor_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.44, 0.435), blue);\n upDoor_p2.position.set(-0.475, 1.035, 0.23);\n wardrobe.add(upDoor_p2);\n\n //low door\n let lowDoor_p1 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.77, 0.9), blue);\n lowDoor_p1.position.set(-0.475, 0.41, 0);\n wardrobe.add(lowDoor_p1);\n\n let lowDoor_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.44, 0.435), blue);\n lowDoor_p2.position.set(-0.475, 1.015, -0.23);\n wardrobe.add(lowDoor_p2);\n\n let fz;\n\n for (let fy = 1.64; fy >= 0.4; fy -= 1.14) {\n fy === 1.64 ? fz = -0.35 : fz = 0.35;\n\n //lock\n let lock_p1 = new Three.Mesh(new Three.CylinderGeometry(0.025, 0.03, 0.02, 32, 32), black);\n lock_p1.rotation.x = 0.5 * Math.PI;\n lock_p1.rotation.z = 0.5 * Math.PI;\n lock_p1.position.set(-0.5, fy, fz);\n wardrobe.add(lock_p1);\n\n let lock_p2 = new Three.Mesh(new Three.CylinderGeometry(0.02, 0.022, 0.015, 32, 32), grey);\n lock_p2.rotation.x = 0.5 * Math.PI;\n lock_p2.rotation.z = 0.5 * Math.PI;\n lock_p2.position.set(-0.515, fy, fz);\n wardrobe.add(lock_p2);\n\n let lock_p3 = new Three.Mesh(new Three.BoxGeometry(0.01, 0.015, 0.005, 32, 32), black);\n lock_p3.position.set(-0.518, fy, fz);\n wardrobe.add(lock_p3);\n\n }\n\n for (let fx = -0.47; fx <= 0.47; fx += 0.94) {\n for (let fz = 0.47; fz >= -0.47; fz -= 0.94) {\n //foot\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.02, 0.04, 0.1, 4), grey);\n foot.position.set(fx, -0.05, fz);\n foot.rotation.y = 0.25 * Math.PI;\n foot.rotation.z = Math.PI;\n wardrobe.add(foot);\n }\n }\n\n return wardrobe\n}\n\nfunction makeObjectMinLOD() {\n\n let wardrobe = new Three.Mesh();\n\n //base\n let bottomSide = new Three.Mesh(new Three.BoxGeometry(1, 0.05, 1), grey);\n wardrobe.add(bottomSide);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1, 2, 0.05), grey);\n side1.position.set(0, 1.025, 0.475);\n wardrobe.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1, 2, 0.05), grey);\n side2.position.set(0, 1.025, -0.475);\n wardrobe.add(side2);\n\n //backside\n let backside = new Three.Mesh(new Three.BoxGeometry(0.05, 2, 1), grey);\n backside.position.set(0.475, 1.025, 0);\n wardrobe.add(backside);\n\n // top\n let topside = new Three.Mesh(new Three.BoxGeometry(1, 0.05, 1), grey);\n topside.position.set(0, 2.05, 0);\n wardrobe.add(topside);\n\n //central axis\n let centralAxis = new Three.Mesh(new Three.BoxGeometry(0.9, 0.4, 0.05), grey);\n centralAxis.position.set(0, 1.025, 0);\n wardrobe.add(centralAxis);\n\n //lower shelve\n let lowShelve = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.5), grey);\n lowShelve.position.set(0, 0.8, 0.225);\n wardrobe.add(lowShelve);\n\n //upper shelve\n let upShelve = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.5), grey);\n upShelve.position.set(0, 1.25, -0.225);\n wardrobe.add(upShelve);\n\n //up door\n let upDoor_p1 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.77, 0.9), blue);\n upDoor_p1.position.set(-0.475, 1.64, 0);\n wardrobe.add(upDoor_p1);\n\n let upDoor_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.44, 0.435), blue);\n upDoor_p2.position.set(-0.475, 1.035, 0.23);\n wardrobe.add(upDoor_p2);\n\n //low door\n let lowDoor_p1 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.77, 0.9), blue);\n lowDoor_p1.position.set(-0.475, 0.41, 0);\n wardrobe.add(lowDoor_p1);\n\n let lowDoor_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.44, 0.435), blue);\n lowDoor_p2.position.set(-0.475, 1.015, -0.23);\n wardrobe.add(lowDoor_p2);\n\n\n for (let fx = -0.47; fx <= 0.47; fx += 0.94) {\n for (let fz = 0.47; fz >= -0.47; fz -= 0.94) {\n //foot\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.02, 0.04, 0.1, 4), grey);\n foot.position.set(fx, -0.05, fz);\n foot.rotation.y = 0.25 * Math.PI;\n foot.rotation.z = Math.PI;\n wardrobe.add(foot);\n }\n }\n\n return wardrobe\n}\n\nexport default {\n name: \"wardrobe\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"wardrobe\",\n description: \"wardrobe\",\n image: require('./wardrobe.png')\n },\n properties: {\n altitude: {\n label: \"altitudine\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /*************** lod max *******************/\n\n let wardrobeMaxLOD=new Three.Object3D();\n wardrobeMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(wardrobeMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n wardrobeMaxLOD.position.z+= -DEPTH/6;\n wardrobeMaxLOD.position.y+= HEIGHT/24 +newAltitude;\n wardrobeMaxLOD.rotation.y+= -Math.PI/2;\n wardrobeMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /************** lod min ********************/\n\n let wardrobeMinLOD=new Three.Object3D();\n wardrobeMinLOD.add(objectMinLOD.clone());\n wardrobeMinLOD.position.z+= -DEPTH/6;\n wardrobeMinLOD.position.y+= HEIGHT/24 +newAltitude;\n wardrobeMinLOD.rotation.y+= -Math.PI/2;\n wardrobeMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(wardrobeMaxLOD, 200);\n lod.addLevel(wardrobeMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/umbrella-stand/umbrellaStand.png\";","module.exports = __webpack_public_path__ + \"catalog/items/umbrella-stand/bronze-texture.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH=30;\nconst DEPTH=40;\nconst HEIGHT=70;\n\nconst textureLoader = new Three.TextureLoader();\nconst Image = textureLoader.load(require('./bronze-texture.jpg'));\nconst material = new Three.MeshLambertMaterial( {map:Image} );\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let umbrellaStand = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=.45;\n let height=.7;\n\n roundedRectShape.moveTo( x, y );\n roundedRectShape.lineTo( x + width, y);\n roundedRectShape.lineTo( x + width, y+height );\n roundedRectShape.lineTo( x, y + height) ;\n\n let holePath = new Three.Path();\n holePath.moveTo( width/2, height/2 );\n holePath.absellipse( .225, .15, .100, .025, .025, Math.PI*2, false );\n roundedRectShape.holes.push( holePath );\n\n let extrudeSettings = {\n steps: 2,\n depth: .05,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let SideGeometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let Side1 = new Three.Mesh( SideGeometry, material ) ;\n\n Side1.position.set(.05,1.2,0);\n Side1.rotation.z+=Math.PI;\n umbrellaStand.add(Side1);\n\n let Side2 = new Three.Mesh( SideGeometry, material ) ;\n Side2.position.set(.05,1.2,-.4);\n Side2.rotation.z+=Math.PI;\n umbrellaStand.add(Side2);\n\n let Side3 = new Three.Mesh( SideGeometry, material ) ;\n Side3.position.set(.05,1.2,-.4);\n Side3.rotation.z+=Math.PI;\n Side3.rotation.y+=Math.PI/2;\n umbrellaStand.add(Side3);\n\n let Side4 = new Three.Mesh( SideGeometry, material ) ;\n Side4.position.set(-.45,1.2,-.4);\n Side4.rotation.z+=Math.PI;\n Side4.rotation.y+=Math.PI/2;\n umbrellaStand.add(Side4);\n\n let geometryBox = new Three.BoxGeometry(.55, .45, .05 );\n let downPlane = new Three.Mesh( geometryBox, material );\n downPlane.rotation.x+=Math.PI/2;\n downPlane.position.set(-.175,.475,-.175);\n umbrellaStand.add(downPlane);\n\n return umbrellaStand\n}\n\nfunction makeObjectMinLOD() {\n\n let umbrellaStand = new Three.Mesh();\n\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=.45;\n let height=.7;\n\n roundedRectShape.moveTo( x, y );\n roundedRectShape.lineTo( x + width, y);\n roundedRectShape.lineTo( x + width, y+height );\n roundedRectShape.lineTo( x, y + height) ;\n\n let extrudeSettings = {\n steps: 2,\n depth: .05,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let SideGeometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let Side1 = new Three.Mesh( SideGeometry, material ) ;\n\n Side1.position.set(.05,1.2,0);\n Side1.rotation.z+=Math.PI;\n umbrellaStand.add(Side1);\n\n let Side2 = new Three.Mesh( SideGeometry, material ) ;\n Side2.position.set(.05,1.2,-.4);\n Side2.rotation.z+=Math.PI;\n umbrellaStand.add(Side2);\n\n let Side3 = new Three.Mesh( SideGeometry, material ) ;\n Side3.position.set(.05,1.2,-.4);\n Side3.rotation.z+=Math.PI;\n Side3.rotation.y+=Math.PI/2;\n umbrellaStand.add(Side3);\n\n let Side4 = new Three.Mesh( SideGeometry, material ) ;\n Side4.position.set(-.45,1.2,-.4);\n Side4.rotation.z+=Math.PI;\n Side4.rotation.y+=Math.PI/2;\n umbrellaStand.add(Side4);\n\n let geometryBox = new Three.BoxGeometry(.55, .45, .05 );\n let downPlane = new Three.Mesh( geometryBox, material );\n downPlane.rotation.x+=Math.PI/2;\n downPlane.position.set(-.175,.475,-.175);\n umbrellaStand.add(downPlane);\n\n return umbrellaStand\n}\n\nexport default {\n name: \"umbrella-stand\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"umbrella stand\",\n description: \"umbrella stand\",\n image: require('./umbrellaStand.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /***************** lod max *******************/\n\n let umbrellaStandMaxLOD = new Three.Object3D();\n umbrellaStandMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(umbrellaStandMaxLOD);\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n umbrellaStandMaxLOD.position.x+= -WIDTH/1.5;\n umbrellaStandMaxLOD.position.z+= DEPTH/4;\n umbrellaStandMaxLOD.position.y+= -HEIGHT/1.6 + newAltitude;\n umbrellaStandMaxLOD.rotation.y+= -Math.PI/2;\n umbrellaStandMaxLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX);\n\n /**************** lod min *******************/\n\n let umbrellaStandMinLOD = new Three.Object3D();\n umbrellaStandMinLOD.add(objectMinLOD.clone());\n umbrellaStandMinLOD.position.x+= -WIDTH/1.5;\n umbrellaStandMinLOD.position.z+= DEPTH/4;\n umbrellaStandMinLOD.position.y+= -HEIGHT/1.6 + newAltitude;\n umbrellaStandMinLOD.rotation.y+= -Math.PI/2;\n umbrellaStandMinLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(umbrellaStandMaxLOD, 200);\n lod.addLevel(umbrellaStandMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n\n","module.exports = __webpack_public_path__ + \"catalog/items/tv/tv.obj\";","module.exports = __webpack_public_path__ + \"catalog/items/tv/tv.mtl\";","module.exports = __webpack_public_path__ + \"catalog/items/tv/tv.png\";","import * as Three from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\n\nimport React from 'react';\nimport convert from 'convert-units';\n\nlet cached3DTV = null;\n\nexport default {\n name: \"tv\",\n prototype: \"items\",\n\n info: {\n title: \"tv\",\n tag: ['furnishing', 'electronics'],\n description: \"LCD TV\",\n image: require('./tv.png')\n },\n\n properties: {\n altitude: {\n label: \"Altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n let width = {length: 1.60, unit: 'ft'};\n let depth = {length: 0.59, unit: 'ft'};\n\n let newWidth = convert(width.length).from(width.unit).to(scene.unit);\n let newDepth = convert(depth.length).from(depth.unit).to(scene.unit);\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n let width = {length: 1.60, unit: 'ft'};\n let depth = {length: 0.59, unit: 'ft'};\n let height = {length: 1.05, unit: 'ft'};\n\n let onLoadItem = (object) => {\n\n let newWidth = convert(width.length).from(width.unit).to(scene.unit);\n let newHeight = convert(height.length).from(height.unit).to(scene.unit);\n let newDepth = convert(depth.length).from(depth.unit).to(scene.unit);\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n object.scale.set(newWidth / width.length, newHeight / height.length, newDepth / depth.length);\n\n // Normalize the origin of the object\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let center = [\n (boundingBox.max.x - boundingBox.min.x) / 2 + boundingBox.min.x,\n (boundingBox.max.y - boundingBox.min.y) / 2 + boundingBox.min.y,\n (boundingBox.max.z - boundingBox.min.z) / 2 + boundingBox.min.z];\n\n object.position.x -= center[0];\n object.position.y -= center[1] - (boundingBox.max.y - boundingBox.min.y) / 2;\n object.position.z -= center[2];\n\n object.position.y += newAltitude;\n\n object.rotation.y = Math.PI;\n\n return object;\n };\n\n\n if(cached3DTV) {\n return Promise.resolve(onLoadItem(cached3DTV.clone()));\n }\n\n let mtl = require('./tv.mtl');\n let obj = require('./tv.obj');\n\n return loadObjWithMaterial(mtl, obj, '')\n .then(object => {\n cached3DTV = object;\n return onLoadItem(cached3DTV.clone())\n })\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/trash/trash.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst RADIUS = 20;\nconst HEIGHT = 40;\n\n\nexport default {\n name: \"trash\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"Trash\",\n description: \"Trash\",\n image: require('./trash.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let circleStyle = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n var grey = new Three.MeshLambertMaterial( {color: 0xdddddd} );\n grey.side = Three.DoubleSide;\n\n\n var cestino=new Three.Object3D();\n\n\n var cylinderGeometry1 = new Three.CylinderGeometry(0.25,0.25,0.0001,80);\n var p1 = new Three.Mesh(cylinderGeometry1,grey);\n cestino.add(p1);\n\n var cylinderGeometry2 = new Three.CylinderGeometry(0.30,0.25,0.002,80,80,true);\n var p2 = new Three.Mesh(cylinderGeometry2,grey);\n p2.position.set(0,0.001,0);\n p1.add(p2);\n\n\n let value = new Three.Box3().setFromObject(cestino);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(cestino, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n cestino.add(bbox);\n }\n\n cestino.position.y += HEIGHT/16 + newAltitude;\n cestino.scale.set(1.5*RADIUS / deltaX, HEIGHT / deltaY, 1.5*RADIUS/ deltaZ);\n\n return Promise.resolve(cestino);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/three-phase-panel/threePhasePanel.png\";","module.exports = __webpack_public_path__ + \"catalog/items/three-phase-panel/PanelTexture.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 40;\nconst DEPTH = 20;\nconst HEIGHT = 50;\n\nconst grey = new Three.MeshLambertMaterial({color:0xAAAAAA});\ngrey.side = Three.DoubleSide;\nconst red = new Three.MeshPhongMaterial({color:0xAA0000});\nconst blue = new Three.MeshPhongMaterial({color:0x0000AA} );\nconst black = new Three.MeshLambertMaterial({color:0x000000});\nblack.side=Three.DoubleSide;\n\nconst textureLoader = new Three.TextureLoader();\nconst quadro=textureLoader.load(require('./PanelTexture.png'));\n\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMiddleLOD = makeObjectMiddleLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\n\n\nfunction makeObjectMaxLOD() {\n\n\n let threePhasePanel = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=0.79;\n let height=0.6;\n let radius=0.1;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.2,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let BackSideGeometry = new Three.BoxGeometry(1,1.4,0.1);\n let BackSide = new Three.Mesh( BackSideGeometry, grey );\n BackSide.position.set(0.5,1.5,0.05);\n threePhasePanel.add(BackSide);\n\n let PanelGeometry = new Three.PlaneGeometry(0.5,0.5);\n let meshPanel = new Three.Mesh( PanelGeometry, new Three.MeshPhongMaterial({map:quadro, transparent:true} ) );\n meshPanel.position.set(0.5,1.85,0.31);\n threePhasePanel.add(meshPanel);\n\n let geometry0 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh0 = new Three.Mesh( geometry0, grey ) ;\n mesh0.position.set(0.1,1.55,0.1);\n threePhasePanel.add(mesh0);\n\n let geometry1 = new Three.BoxGeometry(0.86,.38,0.2);\n let mesh1 = new Three.Mesh( geometry1, grey );\n mesh1.position.set(0.495,1.85,0.2);\n threePhasePanel.add(mesh1);\n\n let geometry00 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh00 = new Three.Mesh( geometry00, grey ) ;\n mesh00.position.set(0.1,.85,0.1);\n mesh00.scale.set(1,1.2,.6);\n threePhasePanel.add(mesh00);\n\n let geometry11 = new Three.BoxGeometry(0.86,.51,0.1);\n let mesh11 = new Three.Mesh( geometry11, grey );\n mesh11.position.set(0.495,1.225,0.15);\n threePhasePanel.add(mesh11);\n\n let geometry1b = new Three.BoxGeometry(0.3,.5,0.1);\n let mesh1b = new Three.Mesh( geometry1b, grey);\n mesh1b.position.set(0.68,1.2,0.25);\n threePhasePanel.add(mesh1b);\n\n let mesh1c = new Three.Mesh( geometry1b, grey );\n mesh1c.position.set(0.32,1.2,0.25);\n threePhasePanel.add(mesh1c);\n\n let geometry1d = new Three.BoxGeometry(0.35,.6,0.1);\n let mesh1d = new Three.Mesh( geometry1d, grey);\n mesh1d.position.set(0.68,1.2,0.2);\n threePhasePanel.add(mesh1d);\n\n let mesh1e = new Three.Mesh( geometry1d, grey );\n mesh1e.position.set(0.32,1.2,0.2);\n threePhasePanel.add(mesh1e);\n\n let geometry1f = new Three.BoxGeometry(.15,.15,.01);\n let mesh1f = new Three.Mesh( geometry1f, red);\n mesh1f.position.set(0.32,1.1,0.3);\n threePhasePanel.add(mesh1f);\n\n let mesh1g = new Three.Mesh( geometry1f, blue );\n mesh1g.position.set(0.68,1.1,0.3);\n threePhasePanel.add(mesh1g);\n\n let stopperGeometry1 = new Three.CylinderGeometry(0.05,0.05,0.05,16,16);\n let stopper_p1 = new Three.Mesh(stopperGeometry1, red);\n stopper_p1.position.set(0.32,1.1,0.3);\n stopper_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(stopper_p1);\n\n let stopperGeometry2 = new Three.SphereGeometry(0.07,16,16);\n let stopper_p2 = new Three.Mesh(stopperGeometry2, red);\n stopper_p2.position.set(0.32,1.1,0.35);\n stopper_p2.rotation.x=Math.PI/2;\n stopper_p2.scale.set(1,.5,1);\n threePhasePanel.add(stopper_p2);\n\n let stopperGeometry3 = new Three.CylinderGeometry(0.01,0.01,0.065,16,16);\n let stopper_p3 = new Three.Mesh(stopperGeometry3, red);\n stopper_p3.position.set(0.32,1.15,0.32);\n stopper_p3.rotation.x=Math.PI/2;\n stopper_p3.rotation.z=Math.PI/2;\n threePhasePanel.add(stopper_p3);\n\n let stopper2_p1 = new Three.Mesh(stopperGeometry1,blue);\n stopper2_p1.position.set(0.68,1.1,0.3);\n stopper2_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(stopper2_p1);\n\n let stopper2_p2 = new Three.Mesh(stopperGeometry2,blue);\n stopper2_p2.position.set(0.68,1.1,0.35);\n stopper2_p2.rotation.x=Math.PI/2;\n stopper2_p2.scale.set(1,.5,1);\n threePhasePanel.add(stopper2_p2);\n\n let stopper2_p3 = new Three.Mesh(stopperGeometry3,blue);\n stopper2_p3.position.set(0.68,1.15,0.32);\n stopper2_p3.rotation.x=Math.PI/2;\n stopper2_p3.rotation.z=Math.PI/2;\n threePhasePanel.add(stopper2_p3);\n\n let handleGeometry = new Three.CylinderGeometry(0.05,0.05,0.025,16,16);\n let handle_p1 = new Three.Mesh(handleGeometry,grey);\n handle_p1.position.set(0.32,1.3,0.3);\n handle_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p1);\n\n let handle2_p1 = new Three.Mesh(handleGeometry,grey);\n handle2_p1.position.set(0.68,1.3,0.3);\n handle2_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p1);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.051,0.051,0.05,16,16,true);\n let handle_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle_p2.position.set(0.32,1.3,0.31);\n handle_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p2);\n\n let handle2_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle2_p2.position.set(0.68,1.3,0.31);\n handle2_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p2);\n\n let geometry2 = new Three.BoxGeometry(0.1,0.02,0.02);\n let handle_p3 = new Three.Mesh( geometry2,black );\n handle_p3.position.set(0.32,1.3,0.32);\n threePhasePanel.add(handle_p3);\n\n let handle2_p3 = new Three.Mesh( geometry2, black );\n handle2_p3.position.set(0.68,1.3,0.32);\n threePhasePanel.add(handle2_p3);\n\n let cylinderGeometry3 = new Three.CylinderGeometry(0.015,0.015,0.1,16,16);\n let pivot1 = new Three.Mesh(cylinderGeometry3,black);\n pivot1.rotation.x += Math.PI/2;\n pivot1.position.set(0.91,2.05,0.2);\n threePhasePanel.add(pivot1);\n\n let pivot2 = new Three.Mesh(cylinderGeometry3, black);\n pivot2.rotation.x += Math.PI/2;\n pivot2.position.set(0.91,1.65,0.2);\n threePhasePanel.add(pivot2);\n\n let pivot3 = new Three.Mesh(cylinderGeometry3,black);\n pivot3.rotation.x += Math.PI/2;\n pivot3.position.set(.08,2.05,0.2);\n threePhasePanel.add(pivot3);\n\n let pivot4 = new Three.Mesh(cylinderGeometry3,black);\n pivot4.rotation.x += Math.PI/2;\n pivot4.position.set(.08,1.65,0.2);\n threePhasePanel.add(pivot4);\n\n let cylinderGeometry4 = new Three.CylinderGeometry(0.018,0.018,0.22,16,16,true);\n let pivot11 = new Three.Mesh(cylinderGeometry4,grey);\n pivot11.rotation.x += Math.PI/2;\n pivot11.position.set(0.91,2.05,0.18);\n threePhasePanel.add(pivot11);\n\n let pivot22 = new Three.Mesh(cylinderGeometry4,grey);\n pivot22.rotation.x += Math.PI/2;\n pivot22.position.set(0.91,1.65,0.18);\n threePhasePanel.add(pivot22);\n\n let pivot33 = new Three.Mesh(cylinderGeometry4,grey);\n pivot33.rotation.x += Math.PI/2;\n pivot33.position.set(.08,2.05,0.18);\n threePhasePanel.add(pivot33);\n\n let pivot44 = new Three.Mesh(cylinderGeometry4,grey);\n pivot44.rotation.x += Math.PI/2;\n pivot44.position.set(.08,1.65,0.18);\n threePhasePanel.add(pivot44);\n\n let pivot1b = new Three.Mesh(cylinderGeometry3,black);\n pivot1b.rotation.x += Math.PI/2;\n pivot1b.position.set(0.91,1.5,0.16);\n threePhasePanel.add(pivot1b);\n\n let pivot2b = new Three.Mesh(cylinderGeometry3,black);\n pivot2b.rotation.x += Math.PI/2;\n pivot2b.position.set(0.91,.95,0.16);\n threePhasePanel.add(pivot2b);\n\n let pivot3b = new Three.Mesh(cylinderGeometry3,black);\n pivot3b.rotation.x += Math.PI/2;\n pivot3b.position.set(.08,1.5,0.16);\n threePhasePanel.add(pivot3b);\n\n let pivot4b = new Three.Mesh(cylinderGeometry3,black);\n pivot4b.rotation.x += Math.PI/2;\n pivot4b.position.set(.08,.95,0.16);\n threePhasePanel.add(pivot4b);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(0.018,0.018,0.1,16,16,true);\n let pivot11b = new Three.Mesh(cylinderGeometry5,grey);\n pivot11b.rotation.x += Math.PI/2;\n pivot11b.position.set(0.91,1.5,0.16);\n threePhasePanel.add(pivot11b);\n\n let pivot22b = new Three.Mesh(cylinderGeometry5,grey);\n pivot22b.rotation.x += Math.PI/2;\n pivot22b.position.set(0.91,.95,0.16);\n threePhasePanel.add(pivot22b);\n\n let pivot33b = new Three.Mesh(cylinderGeometry5,grey);\n pivot33b.rotation.x += Math.PI/2;\n pivot33b.position.set(.08,1.5,0.16);\n threePhasePanel.add(pivot33b);\n\n let pivot44b = new Three.Mesh(cylinderGeometry5,grey);\n pivot44b.rotation.x += Math.PI/2;\n pivot44b.position.set(.08,.95,0.16);\n threePhasePanel.add(pivot44b);\n\n\n return threePhasePanel;\n}\n\nfunction makeObjectMiddleLOD() {\n\n let threePhasePanel = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=0.79;\n let height=0.6;\n let radius=0.1;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.2,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let backSideGeometry = new Three.BoxGeometry(1,1.4,0.1);\n let backSide = new Three.Mesh( backSideGeometry, grey );\n backSide.position.set(0.5,1.5,0.05);\n threePhasePanel.add(backSide);\n\n let PanelGeometry = new Three.PlaneGeometry(0.5,0.5);\n let Panel = new Three.Mesh( PanelGeometry, new Three.MeshPhongMaterial({map:quadro, transparent:true} ) );\n Panel.position.set(0.5,1.85,0.31);\n threePhasePanel.add(Panel);\n\n let geometry0 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh0 = new Three.Mesh( geometry0, grey ) ;\n mesh0.position.set(0.1,1.55,0.1);\n threePhasePanel.add(mesh0);\n\n let geometry1 = new Three.BoxGeometry(0.86,.38,0.2);\n let mesh1 = new Three.Mesh( geometry1, grey );\n mesh1.position.set(0.495,1.85,0.2);\n threePhasePanel.add(mesh1);\n\n let geometry00 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh00 = new Three.Mesh( geometry00, grey ) ;\n mesh00.position.set(0.1,.85,0.1);\n mesh00.scale.set(1,1.2,.6);\n threePhasePanel.add(mesh00);\n\n let geometry11 = new Three.BoxGeometry(0.86,.51,0.1);\n let mesh11 = new Three.Mesh( geometry11, grey );\n mesh11.position.set(0.495,1.225,0.15);\n threePhasePanel.add(mesh11);\n\n let geometry1b = new Three.BoxGeometry(0.3,.5,0.1);\n let mesh1b = new Three.Mesh( geometry1b, grey);\n mesh1b.position.set(0.68,1.2,0.25);\n threePhasePanel.add(mesh1b);\n\n let mesh1c = new Three.Mesh( geometry1b, grey );\n mesh1c.position.set(0.32,1.2,0.25);\n threePhasePanel.add(mesh1c);\n\n let geometry1d = new Three.BoxGeometry(0.35,.6,0.1);\n let mesh1d = new Three.Mesh( geometry1d, grey);\n mesh1d.position.set(0.68,1.2,0.2);\n threePhasePanel.add(mesh1d);\n\n let mesh1e = new Three.Mesh( geometry1d, grey );\n mesh1e.position.set(0.32,1.2,0.2);\n threePhasePanel.add(mesh1e);\n\n let geometry1f = new Three.BoxGeometry(.15,.15,.01);\n let mesh1f = new Three.Mesh( geometry1f, red);\n mesh1f.position.set(0.32,1.1,0.3);\n threePhasePanel.add(mesh1f);\n\n let mesh1g = new Three.Mesh( geometry1f, blue );\n mesh1g.position.set(0.68,1.1,0.3);\n threePhasePanel.add(mesh1g);\n\n let stopperGeometry1 = new Three.CylinderGeometry(0.05,0.05,0.05,16,16);\n let stopper_p1 = new Three.Mesh(stopperGeometry1, red);\n stopper_p1.position.set(0.32,1.1,0.3);\n stopper_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(stopper_p1);\n\n let stopperGeometry2 = new Three.SphereGeometry(0.07,16,16);\n let stopper_p2 = new Three.Mesh(stopperGeometry2, red);\n stopper_p2.position.set(0.32,1.1,0.35);\n stopper_p2.rotation.x=Math.PI/2;\n stopper_p2.scale.set(1,.5,1);\n threePhasePanel.add(stopper_p2);\n\n let stopperGeometry3 = new Three.CylinderGeometry(0.01,0.01,0.065,16,16);\n let stopper_p3 = new Three.Mesh(stopperGeometry3, red);\n stopper_p3.position.set(0.32,1.15,0.32);\n stopper_p3.rotation.x=Math.PI/2;\n stopper_p3.rotation.z=Math.PI/2;\n threePhasePanel.add(stopper_p3);\n\n let stopper2_p1 = new Three.Mesh(stopperGeometry1,blue);\n stopper2_p1.position.set(0.68,1.1,0.3);\n stopper2_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(stopper2_p1);\n\n let stopper2_p2 = new Three.Mesh(stopperGeometry2,blue);\n stopper2_p2.position.set(0.68,1.1,0.35);\n stopper2_p2.rotation.x=Math.PI/2;\n stopper2_p2.scale.set(1,.5,1);\n threePhasePanel.add(stopper2_p2);\n\n let stopper2_p3 = new Three.Mesh(stopperGeometry3,blue);\n stopper2_p3.position.set(0.68,1.15,0.32);\n stopper2_p3.rotation.x=Math.PI/2;\n stopper2_p3.rotation.z=Math.PI/2;\n threePhasePanel.add(stopper2_p3);\n\n let handleGeometry = new Three.CylinderGeometry(0.05,0.05,0.025,16,16);\n let handle_p1 = new Three.Mesh(handleGeometry,grey);\n handle_p1.position.set(0.32,1.3,0.3);\n handle_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p1);\n\n let handle2_p1 = new Three.Mesh(handleGeometry,grey);\n handle2_p1.position.set(0.68,1.3,0.3);\n handle2_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p1);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.051,0.051,0.05,16,16,true);\n let handle_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle_p2.position.set(0.32,1.3,0.31);\n handle_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p2);\n\n let handle2_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle2_p2.position.set(0.68,1.3,0.31);\n handle2_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p2);\n\n let geometry2 = new Three.BoxGeometry(0.1,0.02,0.02);\n let handle_p3 = new Three.Mesh( geometry2,black );\n handle_p3.position.set(0.32,1.3,0.32);\n threePhasePanel.add(handle_p3);\n\n let handle2_p3 = new Three.Mesh( geometry2, black );\n handle2_p3.position.set(0.68,1.3,0.32);\n threePhasePanel.add(handle2_p3);\n\n return threePhasePanel;\n}\n\nfunction makeObjectMinLOD() {\n\n let threePhasePanel = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=0.79;\n let height=0.6;\n let radius=0.1;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.2,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let backSideGeometry = new Three.BoxGeometry(1,1.4,0.1);\n let backSide = new Three.Mesh( backSideGeometry, grey );\n backSide.position.set(0.5,1.5,0.05);\n threePhasePanel.add(backSide);\n\n let geometry0 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh0 = new Three.Mesh( geometry0, grey ) ;\n mesh0.position.set(0.1,1.55,0.1);\n threePhasePanel.add(mesh0);\n\n let geometry1 = new Three.BoxGeometry(0.86,.38,0.2);\n let mesh1 = new Three.Mesh( geometry1, grey );\n mesh1.position.set(0.495,1.85,0.2);\n threePhasePanel.add(mesh1);\n\n let geometry00 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh00 = new Three.Mesh( geometry00, grey ) ;\n mesh00.position.set(0.1,.85,0.1);\n mesh00.scale.set(1,1.2,.6);\n threePhasePanel.add(mesh00);\n\n let geometry11 = new Three.BoxGeometry(0.86,.51,0.1);\n let mesh11 = new Three.Mesh( geometry11, grey );\n mesh11.position.set(0.495,1.225,0.15);\n threePhasePanel.add(mesh11);\n\n let geometry1b = new Three.BoxGeometry(0.3,.5,0.1);\n let mesh1b = new Three.Mesh( geometry1b, grey);\n mesh1b.position.set(0.68,1.2,0.25);\n threePhasePanel.add(mesh1b);\n\n let mesh1c = new Three.Mesh( geometry1b, grey );\n mesh1c.position.set(0.32,1.2,0.25);\n threePhasePanel.add(mesh1c);\n\n let geometry1d = new Three.BoxGeometry(0.35,.6,0.1);\n let mesh1d = new Three.Mesh( geometry1d, grey);\n mesh1d.position.set(0.68,1.2,0.2);\n threePhasePanel.add(mesh1d);\n\n let mesh1e = new Three.Mesh( geometry1d, grey );\n mesh1e.position.set(0.32,1.2,0.2);\n threePhasePanel.add(mesh1e);\n\n let geometry1f = new Three.BoxGeometry(.15,.15,.01);\n let mesh1f = new Three.Mesh( geometry1f, red);\n mesh1f.position.set(0.32,1.1,0.3);\n threePhasePanel.add(mesh1f);\n\n let mesh1g = new Three.Mesh( geometry1f, blue );\n mesh1g.position.set(0.68,1.1,0.3);\n threePhasePanel.add(mesh1g);\n\n let handleGeometry = new Three.CylinderGeometry(0.05,0.05,0.025,8,8);\n let handle_p1 = new Three.Mesh(handleGeometry,grey);\n handle_p1.position.set(0.32,1.3,0.3);\n handle_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p1);\n\n let handle2_p1 = new Three.Mesh(handleGeometry,grey);\n handle2_p1.position.set(0.68,1.3,0.3);\n handle2_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p1);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.051,0.051,0.05,8,8,true);\n let handle_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle_p2.position.set(0.32,1.3,0.31);\n handle_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p2);\n\n let handle2_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle2_p2.position.set(0.68,1.3,0.31);\n handle2_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p2);\n\n let geometry2 = new Three.BoxGeometry(0.1,0.02,0.02);\n let handle_p3 = new Three.Mesh( geometry2,black );\n handle_p3.position.set(0.32,1.3,0.32);\n threePhasePanel.add(handle_p3);\n\n let handle2_p3 = new Three.Mesh( geometry2, black );\n handle2_p3.position.set(0.68,1.3,0.32);\n threePhasePanel.add(handle2_p3);\n\n return threePhasePanel;\n}\n\nexport default {\n name: \"three- phase panel\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"three-phase panel\",\n description: \"electric panel\",\n image: require('./threePhasePanel.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = WIDTH;\n let newDepth = DEPTH;\n let angle = element.rotation + 90;\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = WIDTH;\n let newDepth = DEPTH;\n let newHeight = HEIGHT;\n let newAltitude = element.properties.get('altitude').get('length');\n\n\n /**************** LOD max ***********************/\n\n let threePhasePanelMaxLOD=new Three.Object3D();\n threePhasePanelMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(threePhasePanelMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n threePhasePanelMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n threePhasePanelMaxLOD.position.y+= -newHeight/2 + newAltitude;\n threePhasePanelMaxLOD.position.x+= -newWidth/2;\n threePhasePanelMaxLOD.position.z+= -newDepth/2;\n\n /**************** LOD middle ***********************/\n\n let threePhasePanelMiddleLOD=new Three.Object3D();\n threePhasePanelMiddleLOD.add(objectMiddleLOD.clone());\n\n threePhasePanelMiddleLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n threePhasePanelMiddleLOD.position.y+= -newHeight/2 + newAltitude;\n threePhasePanelMiddleLOD.position.x+= -newWidth/2;\n threePhasePanelMiddleLOD.position.z+= -newDepth/2;\n\n\n /**************** LOD min ***********************/\n\n let threePhasePanelMinLOD=new Three.Object3D();\n threePhasePanelMinLOD.add(objectMinLOD.clone());\n\n threePhasePanelMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n threePhasePanelMinLOD.position.y+= -newHeight/2 + newAltitude;\n threePhasePanelMinLOD.position.x+= -newWidth/2;\n threePhasePanelMinLOD.position.z+= -newDepth/2;\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(threePhasePanelMaxLOD, 100);\n lod.addLevel(threePhasePanelMiddleLOD, 300);\n lod.addLevel(threePhasePanelMinLOD, 700);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n\n};\n\n\n","module.exports = __webpack_public_path__ + \"catalog/items/text-3d/img.png\";","export const HELVETIKER = {\"glyphs\":{\"ο\":{\"x_min\":0,\"x_max\":712,\"ha\":815,\"o\":\"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 \"},\"S\":{\"x_min\":0,\"x_max\":788,\"ha\":890,\"o\":\"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 \"},\"¦\":{\"x_min\":343,\"x_max\":449,\"ha\":792,\"o\":\"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 \"},\"/\":{\"x_min\":183.25,\"x_max\":608.328125,\"ha\":792,\"o\":\"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 \"},\"Τ\":{\"x_min\":-0.4375,\"x_max\":777.453125,\"ha\":839,\"o\":\"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 \"},\"y\":{\"x_min\":0,\"x_max\":684.78125,\"ha\":771,\"o\":\"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 \"},\"Π\":{\"x_min\":0,\"x_max\":803,\"ha\":917,\"o\":\"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 \"},\"ΐ\":{\"x_min\":-111,\"x_max\":339,\"ha\":361,\"o\":\"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 \"},\"g\":{\"x_min\":0,\"x_max\":686,\"ha\":838,\"o\":\"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 \"},\"²\":{\"x_min\":0,\"x_max\":442,\"ha\":539,\"o\":\"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 \"},\"–\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 \"},\"Κ\":{\"x_min\":0,\"x_max\":819.5625,\"ha\":893,\"o\":\"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 \"},\"ƒ\":{\"x_min\":-46.265625,\"x_max\":392,\"ha\":513,\"o\":\"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 \"},\"e\":{\"x_min\":0,\"x_max\":714,\"ha\":813,\"o\":\"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 \"},\"ό\":{\"x_min\":0,\"x_max\":712,\"ha\":815,\"o\":\"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 \"},\"J\":{\"x_min\":0,\"x_max\":588,\"ha\":699,\"o\":\"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 \"},\"»\":{\"x_min\":-1,\"x_max\":503,\"ha\":601,\"o\":\"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 \"},\"©\":{\"x_min\":-3,\"x_max\":1008,\"ha\":1106,\"o\":\"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 \"},\"ώ\":{\"x_min\":0,\"x_max\":922,\"ha\":1030,\"o\":\"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 \"},\"^\":{\"x_min\":193.0625,\"x_max\":598.609375,\"ha\":792,\"o\":\"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 \"},\"«\":{\"x_min\":0,\"x_max\":507.203125,\"ha\":604,\"o\":\"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 \"},\"D\":{\"x_min\":0,\"x_max\":828,\"ha\":935,\"o\":\"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 \"},\"∙\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 \"},\"ÿ\":{\"x_min\":0,\"x_max\":47,\"ha\":125,\"o\":\"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 \"},\"w\":{\"x_min\":0,\"x_max\":1009.71875,\"ha\":1100,\"o\":\"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 \"},\"$\":{\"x_min\":0,\"x_max\":700,\"ha\":793,\"o\":\"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 \"},\"\\\\\":{\"x_min\":-0.015625,\"x_max\":425.0625,\"ha\":522,\"o\":\"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 \"},\"µ\":{\"x_min\":0,\"x_max\":697.21875,\"ha\":747,\"o\":\"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 \"},\"Ι\":{\"x_min\":42,\"x_max\":181,\"ha\":297,\"o\":\"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 \"},\"Ύ\":{\"x_min\":0,\"x_max\":1144.5,\"ha\":1214,\"o\":\"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"’\":{\"x_min\":0,\"x_max\":139,\"ha\":236,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 \"},\"Ν\":{\"x_min\":0,\"x_max\":801,\"ha\":915,\"o\":\"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 \"},\"-\":{\"x_min\":8.71875,\"x_max\":350.390625,\"ha\":478,\"o\":\"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 \"},\"Q\":{\"x_min\":0,\"x_max\":968,\"ha\":1072,\"o\":\"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 \"},\"ς\":{\"x_min\":1,\"x_max\":676.28125,\"ha\":740,\"o\":\"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 \"},\"M\":{\"x_min\":0,\"x_max\":954,\"ha\":1067,\"o\":\"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 \"},\"Ψ\":{\"x_min\":0,\"x_max\":1006,\"ha\":1094,\"o\":\"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 \"},\"C\":{\"x_min\":0,\"x_max\":886,\"ha\":944,\"o\":\"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 \"},\"!\":{\"x_min\":0,\"x_max\":138,\"ha\":236,\"o\":\"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 \"},\"{\":{\"x_min\":0,\"x_max\":480.5625,\"ha\":578,\"o\":\"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 \"},\"X\":{\"x_min\":-0.015625,\"x_max\":854.15625,\"ha\":940,\"o\":\"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 \"},\"#\":{\"x_min\":0,\"x_max\":963.890625,\"ha\":1061,\"o\":\"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 \"},\"ι\":{\"x_min\":42,\"x_max\":284,\"ha\":361,\"o\":\"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 \"},\"Ά\":{\"x_min\":0,\"x_max\":906.953125,\"ha\":982,\"o\":\"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 \"},\")\":{\"x_min\":0,\"x_max\":318,\"ha\":415,\"o\":\"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 \"},\"ε\":{\"x_min\":0,\"x_max\":634.71875,\"ha\":714,\"o\":\"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 \"},\"Δ\":{\"x_min\":0,\"x_max\":952.78125,\"ha\":1028,\"o\":\"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 \"},\"}\":{\"x_min\":0,\"x_max\":481,\"ha\":578,\"o\":\"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 \"},\"‰\":{\"x_min\":-3,\"x_max\":1672,\"ha\":1821,\"o\":\"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 \"},\"a\":{\"x_min\":0,\"x_max\":698.609375,\"ha\":794,\"o\":\"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 \"},\"—\":{\"x_min\":0,\"x_max\":941.671875,\"ha\":1039,\"o\":\"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 \"},\"=\":{\"x_min\":8.71875,\"x_max\":780.953125,\"ha\":792,\"o\":\"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 \"},\"N\":{\"x_min\":0,\"x_max\":801,\"ha\":914,\"o\":\"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 \"},\"ρ\":{\"x_min\":0,\"x_max\":712,\"ha\":797,\"o\":\"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 \"},\"2\":{\"x_min\":59,\"x_max\":731,\"ha\":792,\"o\":\"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 \"},\"¯\":{\"x_min\":0,\"x_max\":941.671875,\"ha\":938,\"o\":\"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 \"},\"Z\":{\"x_min\":0,\"x_max\":779,\"ha\":849,\"o\":\"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 \"},\"u\":{\"x_min\":0,\"x_max\":617,\"ha\":729,\"o\":\"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 \"},\"k\":{\"x_min\":0,\"x_max\":612.484375,\"ha\":697,\"o\":\"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 \"},\"Η\":{\"x_min\":0,\"x_max\":803,\"ha\":917,\"o\":\"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 \"},\"Α\":{\"x_min\":0,\"x_max\":906.953125,\"ha\":985,\"o\":\"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 \"},\"s\":{\"x_min\":0,\"x_max\":604,\"ha\":697,\"o\":\"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 \"},\"B\":{\"x_min\":0,\"x_max\":778,\"ha\":876,\"o\":\"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 \"},\"…\":{\"x_min\":0,\"x_max\":614,\"ha\":708,\"o\":\"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 \"},\"?\":{\"x_min\":0,\"x_max\":607,\"ha\":704,\"o\":\"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 \"},\"H\":{\"x_min\":0,\"x_max\":803,\"ha\":915,\"o\":\"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 \"},\"ν\":{\"x_min\":0,\"x_max\":675,\"ha\":761,\"o\":\"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 \"},\"c\":{\"x_min\":1,\"x_max\":701.390625,\"ha\":775,\"o\":\"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 \"},\"¶\":{\"x_min\":0,\"x_max\":566.671875,\"ha\":678,\"o\":\"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 \"},\"β\":{\"x_min\":0,\"x_max\":660,\"ha\":745,\"o\":\"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 \"},\"Μ\":{\"x_min\":0,\"x_max\":954,\"ha\":1068,\"o\":\"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 \"},\"Ό\":{\"x_min\":0.109375,\"x_max\":1120,\"ha\":1217,\"o\":\"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"Ή\":{\"x_min\":0,\"x_max\":1158,\"ha\":1275,\"o\":\"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"•\":{\"x_min\":0,\"x_max\":663.890625,\"ha\":775,\"o\":\"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 \"},\"¥\":{\"x_min\":0.1875,\"x_max\":819.546875,\"ha\":886,\"o\":\"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 \"},\"(\":{\"x_min\":0,\"x_max\":318.0625,\"ha\":415,\"o\":\"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 \"},\"U\":{\"x_min\":0,\"x_max\":796,\"ha\":904,\"o\":\"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 \"},\"γ\":{\"x_min\":0.5,\"x_max\":744.953125,\"ha\":822,\"o\":\"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 \"},\"α\":{\"x_min\":0,\"x_max\":765.5625,\"ha\":809,\"o\":\"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 \"},\"F\":{\"x_min\":0,\"x_max\":683.328125,\"ha\":717,\"o\":\"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 \"},\"­\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 \"},\":\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 \"},\"Χ\":{\"x_min\":0,\"x_max\":854.171875,\"ha\":935,\"o\":\"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 \"},\"*\":{\"x_min\":116,\"x_max\":674,\"ha\":792,\"o\":\"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 \"},\"†\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 \"},\"°\":{\"x_min\":0,\"x_max\":347,\"ha\":444,\"o\":\"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 \"},\"V\":{\"x_min\":0,\"x_max\":862.71875,\"ha\":940,\"o\":\"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 \"},\"Ξ\":{\"x_min\":0,\"x_max\":734.71875,\"ha\":763,\"o\":\"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 \"},\" \":{\"x_min\":0,\"x_max\":0,\"ha\":853},\"Ϋ\":{\"x_min\":0.328125,\"x_max\":819.515625,\"ha\":889,\"o\":\"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 \"},\"0\":{\"x_min\":73,\"x_max\":715,\"ha\":792,\"o\":\"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 \"},\"”\":{\"x_min\":0,\"x_max\":347,\"ha\":454,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 \"},\"@\":{\"x_min\":0,\"x_max\":1260,\"ha\":1357,\"o\":\"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 \"},\"Ί\":{\"x_min\":0,\"x_max\":499,\"ha\":613,\"o\":\"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 \"},\"i\":{\"x_min\":14,\"x_max\":136,\"ha\":275,\"o\":\"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 \"},\"Β\":{\"x_min\":0,\"x_max\":778,\"ha\":877,\"o\":\"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 \"},\"υ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 \"},\"]\":{\"x_min\":0,\"x_max\":275,\"ha\":372,\"o\":\"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 \"},\"m\":{\"x_min\":0,\"x_max\":1019,\"ha\":1128,\"o\":\"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 \"},\"χ\":{\"x_min\":8.328125,\"x_max\":780.5625,\"ha\":815,\"o\":\"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 \"},\"8\":{\"x_min\":55,\"x_max\":736,\"ha\":792,\"o\":\"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 \"},\"ί\":{\"x_min\":42,\"x_max\":326.71875,\"ha\":361,\"o\":\"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 \"},\"Ζ\":{\"x_min\":0,\"x_max\":779.171875,\"ha\":850,\"o\":\"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 \"},\"R\":{\"x_min\":0,\"x_max\":781.953125,\"ha\":907,\"o\":\"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 \"},\"o\":{\"x_min\":0,\"x_max\":713,\"ha\":821,\"o\":\"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 \"},\"5\":{\"x_min\":54.171875,\"x_max\":738,\"ha\":792,\"o\":\"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 \"},\"7\":{\"x_min\":58.71875,\"x_max\":730.953125,\"ha\":792,\"o\":\"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 \"},\"K\":{\"x_min\":0,\"x_max\":819.46875,\"ha\":906,\"o\":\"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 \"},\",\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 \"},\"d\":{\"x_min\":0,\"x_max\":683,\"ha\":796,\"o\":\"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 \"},\"¨\":{\"x_min\":-109,\"x_max\":247,\"ha\":232,\"o\":\"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 \"},\"E\":{\"x_min\":0,\"x_max\":736.109375,\"ha\":789,\"o\":\"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 \"},\"Y\":{\"x_min\":0,\"x_max\":820,\"ha\":886,\"o\":\"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 \"},\"\\\"\":{\"x_min\":0,\"x_max\":299,\"ha\":396,\"o\":\"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 \"},\"‹\":{\"x_min\":17.984375,\"x_max\":773.609375,\"ha\":792,\"o\":\"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 \"},\"„\":{\"x_min\":0,\"x_max\":364,\"ha\":467,\"o\":\"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 \"},\"δ\":{\"x_min\":1,\"x_max\":710,\"ha\":810,\"o\":\"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 \"},\"έ\":{\"x_min\":0,\"x_max\":634.71875,\"ha\":714,\"o\":\"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 \"},\"ω\":{\"x_min\":0,\"x_max\":922,\"ha\":1031,\"o\":\"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 \"},\"´\":{\"x_min\":0,\"x_max\":96,\"ha\":251,\"o\":\"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 \"},\"±\":{\"x_min\":11,\"x_max\":781,\"ha\":792,\"o\":\"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 \"},\"|\":{\"x_min\":343,\"x_max\":449,\"ha\":792,\"o\":\"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 \"},\"ϋ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 \"},\"§\":{\"x_min\":0,\"x_max\":593,\"ha\":690,\"o\":\"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 \"},\"b\":{\"x_min\":0,\"x_max\":685,\"ha\":783,\"o\":\"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 \"},\"q\":{\"x_min\":0,\"x_max\":683,\"ha\":876,\"o\":\"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 \"},\"Ω\":{\"x_min\":-0.171875,\"x_max\":969.5625,\"ha\":1068,\"o\":\"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 \"},\"ύ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 \"},\"z\":{\"x_min\":-0.015625,\"x_max\":613.890625,\"ha\":697,\"o\":\"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 \"},\"™\":{\"x_min\":0,\"x_max\":894,\"ha\":1000,\"o\":\"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 \"},\"ή\":{\"x_min\":0.78125,\"x_max\":697,\"ha\":810,\"o\":\"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 \"},\"Θ\":{\"x_min\":0,\"x_max\":960,\"ha\":1056,\"o\":\"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 \"},\"®\":{\"x_min\":-3,\"x_max\":1008,\"ha\":1106,\"o\":\"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 \"},\"~\":{\"x_min\":0,\"x_max\":833,\"ha\":931,\"o\":\"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 \"},\"Ε\":{\"x_min\":0,\"x_max\":736.21875,\"ha\":778,\"o\":\"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 \"},\"³\":{\"x_min\":0,\"x_max\":450,\"ha\":547,\"o\":\"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 \"},\"[\":{\"x_min\":0,\"x_max\":273.609375,\"ha\":371,\"o\":\"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 \"},\"L\":{\"x_min\":0,\"x_max\":645.828125,\"ha\":696,\"o\":\"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 \"},\"σ\":{\"x_min\":0,\"x_max\":803.390625,\"ha\":894,\"o\":\"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 \"},\"ζ\":{\"x_min\":0,\"x_max\":573,\"ha\":642,\"o\":\"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 \"},\"θ\":{\"x_min\":0,\"x_max\":674,\"ha\":778,\"o\":\"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 \"},\"Ο\":{\"x_min\":0,\"x_max\":958,\"ha\":1054,\"o\":\"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 \"},\"Γ\":{\"x_min\":0,\"x_max\":705.28125,\"ha\":749,\"o\":\"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 \"},\" \":{\"x_min\":0,\"x_max\":0,\"ha\":375},\"%\":{\"x_min\":-3,\"x_max\":1089,\"ha\":1186,\"o\":\"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 \"},\"P\":{\"x_min\":0,\"x_max\":726,\"ha\":806,\"o\":\"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 \"},\"Έ\":{\"x_min\":0,\"x_max\":1078.21875,\"ha\":1118,\"o\":\"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"Ώ\":{\"x_min\":0.125,\"x_max\":1136.546875,\"ha\":1235,\"o\":\"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 \"},\"_\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 \"},\"Ϊ\":{\"x_min\":-110,\"x_max\":246,\"ha\":275,\"o\":\"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 \"},\"+\":{\"x_min\":23,\"x_max\":768,\"ha\":792,\"o\":\"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 \"},\"½\":{\"x_min\":0,\"x_max\":1050,\"ha\":1149,\"o\":\"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 \"},\"Ρ\":{\"x_min\":0,\"x_max\":720,\"ha\":783,\"o\":\"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 \"},\"'\":{\"x_min\":0,\"x_max\":139,\"ha\":236,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 \"},\"ª\":{\"x_min\":0,\"x_max\":350,\"ha\":397,\"o\":\"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 \"},\"΅\":{\"x_min\":0,\"x_max\":450,\"ha\":553,\"o\":\"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 \"},\"T\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 \"},\"Φ\":{\"x_min\":0,\"x_max\":915,\"ha\":997,\"o\":\"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 \"},\"⁋\":{\"x_min\":0,\"x_max\":0,\"ha\":694},\"j\":{\"x_min\":-77.78125,\"x_max\":167,\"ha\":349,\"o\":\"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 \"},\"Σ\":{\"x_min\":0,\"x_max\":756.953125,\"ha\":819,\"o\":\"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 \"},\"1\":{\"x_min\":215.671875,\"x_max\":574,\"ha\":792,\"o\":\"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 \"},\"›\":{\"x_min\":18.0625,\"x_max\":774,\"ha\":792,\"o\":\"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 \"},\"<\":{\"x_min\":17.984375,\"x_max\":773.609375,\"ha\":792,\"o\":\"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 \"},\"£\":{\"x_min\":0,\"x_max\":704.484375,\"ha\":801,\"o\":\"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 \"},\"t\":{\"x_min\":0,\"x_max\":367,\"ha\":458,\"o\":\"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 \"},\"¬\":{\"x_min\":0,\"x_max\":706,\"ha\":803,\"o\":\"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 \"},\"λ\":{\"x_min\":0,\"x_max\":750,\"ha\":803,\"o\":\"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 \"},\"W\":{\"x_min\":0,\"x_max\":1263.890625,\"ha\":1351,\"o\":\"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 \"},\">\":{\"x_min\":18.0625,\"x_max\":774,\"ha\":792,\"o\":\"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 \"},\"v\":{\"x_min\":0,\"x_max\":675.15625,\"ha\":761,\"o\":\"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 \"},\"τ\":{\"x_min\":0.28125,\"x_max\":644.5,\"ha\":703,\"o\":\"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 \"},\"ξ\":{\"x_min\":0,\"x_max\":624.9375,\"ha\":699,\"o\":\"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 \"},\"&\":{\"x_min\":-3,\"x_max\":894.25,\"ha\":992,\"o\":\"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 \"},\"Λ\":{\"x_min\":0,\"x_max\":862.5,\"ha\":942,\"o\":\"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 \"},\"I\":{\"x_min\":41,\"x_max\":180,\"ha\":293,\"o\":\"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 \"},\"G\":{\"x_min\":0,\"x_max\":921,\"ha\":1011,\"o\":\"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 \"},\"ΰ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 \"},\"`\":{\"x_min\":0,\"x_max\":138.890625,\"ha\":236,\"o\":\"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 \"},\"·\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 \"},\"Υ\":{\"x_min\":0.328125,\"x_max\":819.515625,\"ha\":889,\"o\":\"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 \"},\"r\":{\"x_min\":0,\"x_max\":355.5625,\"ha\":432,\"o\":\"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 \"},\"x\":{\"x_min\":0,\"x_max\":675,\"ha\":764,\"o\":\"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 \"},\"μ\":{\"x_min\":0,\"x_max\":696.609375,\"ha\":747,\"o\":\"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 \"},\"h\":{\"x_min\":0,\"x_max\":615,\"ha\":724,\"o\":\"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 \"},\".\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 \"},\"φ\":{\"x_min\":-2,\"x_max\":878,\"ha\":974,\"o\":\"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 \"},\";\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 \"},\"f\":{\"x_min\":0,\"x_max\":378,\"ha\":472,\"o\":\"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 \"},\"“\":{\"x_min\":1,\"x_max\":348.21875,\"ha\":454,\"o\":\"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 \"},\"A\":{\"x_min\":0.03125,\"x_max\":906.953125,\"ha\":1008,\"o\":\"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 \"},\"6\":{\"x_min\":53,\"x_max\":739,\"ha\":792,\"o\":\"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 \"},\"‘\":{\"x_min\":1,\"x_max\":139.890625,\"ha\":236,\"o\":\"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 \"},\"ϊ\":{\"x_min\":-70,\"x_max\":283,\"ha\":361,\"o\":\"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 \"},\"π\":{\"x_min\":-0.21875,\"x_max\":773.21875,\"ha\":857,\"o\":\"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 \"},\"ά\":{\"x_min\":0,\"x_max\":765.5625,\"ha\":809,\"o\":\"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 \"},\"O\":{\"x_min\":0,\"x_max\":958,\"ha\":1057,\"o\":\"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 \"},\"n\":{\"x_min\":0,\"x_max\":615,\"ha\":724,\"o\":\"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 \"},\"3\":{\"x_min\":54,\"x_max\":737,\"ha\":792,\"o\":\"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 \"},\"9\":{\"x_min\":53,\"x_max\":739,\"ha\":792,\"o\":\"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 \"},\"l\":{\"x_min\":41,\"x_max\":166,\"ha\":279,\"o\":\"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 \"},\"¤\":{\"x_min\":40.09375,\"x_max\":728.796875,\"ha\":825,\"o\":\"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 \"},\"κ\":{\"x_min\":0,\"x_max\":632.328125,\"ha\":679,\"o\":\"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 \"},\"4\":{\"x_min\":48,\"x_max\":742.453125,\"ha\":792,\"o\":\"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 \"},\"p\":{\"x_min\":0,\"x_max\":685,\"ha\":786,\"o\":\"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 \"},\"‡\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 \"},\"ψ\":{\"x_min\":0,\"x_max\":808,\"ha\":907,\"o\":\"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 \"},\"η\":{\"x_min\":0.78125,\"x_max\":697,\"ha\":810,\"o\":\"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 \"}},\"cssFontWeight\":\"normal\",\"ascender\":1189,\"underlinePosition\":-100,\"cssFontStyle\":\"normal\",\"boundingBox\":{\"yMin\":-334,\"xMin\":-111,\"yMax\":1189,\"xMax\":1672},\"resolution\":1000,\"original_font_information\":{\"postscript_name\":\"Helvetiker-Regular\",\"version_string\":\"Version 1.00 2004 initial release\",\"vendor_url\":\"http://www.magenta.gr/\",\"full_font_name\":\"Helvetiker\",\"font_family_name\":\"Helvetiker\",\"copyright\":\"Copyright (c) Μagenta ltd, 2004\",\"description\":\"\",\"trademark\":\"\",\"designer\":\"\",\"designer_url\":\"\",\"unique_font_identifier\":\"Μagenta ltd:Helvetiker:22-10-104\",\"license_url\":\"http://www.ellak.gr/fonts/MgOpen/license.html\",\"license_description\":\"Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\\r\\n\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license (\\\"Fonts\\\") and associated documentation files (the \\\"Font Software\\\"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \\r\\n\\r\\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\\r\\n\\r\\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word \\\"MgOpen\\\", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\\r\\n\\r\\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the \\\"MgOpen\\\" name.\\r\\n\\r\\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \\r\\n\\r\\nTHE FONT SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.\",\"manufacturer_name\":\"Μagenta ltd\",\"font_sub_family_name\":\"Regular\"},\"descender\":-334,\"familyName\":\"Helvetiker\",\"lineHeight\":1522,\"underlineThickness\":50}\n","import { FontLoader, TextGeometry, MeshBasicMaterial, Mesh, BoxHelper } from 'three';\nimport React from 'react';\nimport { HELVETIKER } from './helvetiker_regular.typeface.js';\n\nconst fontLoader = new FontLoader();\nconst font = fontLoader.parse(HELVETIKER);\n\nconst defaultFontSize = 16;\nconst defaultColor = '#000000';\n\nexport default {\n name: 'text',\n prototype: 'items',\n\n info: {\n tag: ['text'],\n title: 'Text 3D',\n description: 'Text',\n image: require('./img.png')\n },\n\n properties: {\n text: {\n label: 'text',\n type: 'string',\n defaultValue: 'Custom Text'\n },\n fontSize: {\n label: 'font size',\n type: 'number',\n defaultValue: defaultFontSize\n },\n color: {\n label: 'text color',\n type: 'color',\n defaultValue: defaultColor\n },\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let color = element.properties.get('color') || defaultColor;\n let text = element.properties.get('text') || '';\n let fontSize = element.properties.get('fontSize') || defaultFontSize;\n let textHorizontalPadding = defaultFontSize;\n let width = ( ( text.length - ( text.length / 2 ) ) * fontSize ) + textHorizontalPadding;\n let height = 2 * fontSize;\n\n return (\n \n \n \n {text}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let text = element.properties.get('text') || '';\n let size = element.properties.get('fontSize') || defaultFontSize;\n let textHorizontalPadding = defaultFontSize;\n let width = ( ( text.length - ( text.length / 2 ) ) * size ) + textHorizontalPadding;\n let color = element.properties.get('color') || defaultColor;\n\n let mesh = new Mesh(\n new TextGeometry( text, { size, height: 1, font }),\n new MeshBasicMaterial({color})\n );\n\n if (element.selected) {\n let box = new BoxHelper(mesh, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n mesh.add(box);\n }\n\n mesh.position.y += element.properties.getIn(['altitude','length']);\n mesh.position.x -= ( width / 2 );\n\n return Promise.resolve( mesh );\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/teaching-post/teaching-post.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 140;\nconst DEPTH = 70;\nconst HEIGHT = 100;\n\nconst CHAIR_WIDTH = 55;\nconst CHAIR_DEPTH = 55;\nconst CHAIR_HEIGHT = 50;\n\nconst CHAIR_TRANSLATION = 30;\n\nconst TOTAL_DEPTH = DEPTH + CHAIR_DEPTH / 2 - (CHAIR_TRANSLATION - CHAIR_DEPTH / 2);\n\nexport default {\n name: \"teaching-post\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"Teaching post\",\n description: \"Teaching post\",\n image: require('./teaching-post.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let makeChair = (altitude) => {\n\n let WIDTH = CHAIR_WIDTH;\n let DEPTH = CHAIR_DEPTH;\n let HEIGHT = CHAIR_HEIGHT;\n\n let chair = new Three.Object3D();\n\n let geometry = new Three.CylinderGeometry(0.02, 0.02, 0.5, 32);\n let material = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n\n let p1 = new Three.Mesh(geometry, material);\n p1.rotation.x += Math.PI / 2;\n p1.position.z += 0.5 / 2;\n\n let p2 = new Three.Mesh(geometry, material);\n p2.rotation.x += Math.PI / 2;\n p2.position.z += 0.5 / 2;\n p2.position.y += 0.4;\n\n let p3 = new Three.Mesh(geometry, material);\n p3.rotation.x += Math.PI / 2;\n p3.position.z += 0.5 / 2;\n p3.position.x += 0.4;\n\n let p4 = new Three.Mesh(geometry, material);\n p4.rotation.x += Math.PI / 2;\n p4.position.z += 0.5 / 2;\n p4.position.y += 0.4;\n p4.position.x += 0.4;\n\n let p5 = new Three.Mesh(geometry, material);\n p5.rotation.x += Math.PI / 2;\n p5.position.z += 0.5 * 3 / 2;\n\n let p6 = new Three.Mesh(geometry, material);\n p6.rotation.x += Math.PI / 2;\n p6.position.z += 0.5 * 3 / 2;\n p6.position.x += 0.4;\n\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n let roundedRectShape = new Three.Shape();\n\n let x = 0;\n let y = 0;\n let width = .5;\n let height = .48;\n let radius = 0.05;\n\n roundedRectShape.moveTo(x, y + radius);\n roundedRectShape.lineTo(x, y + height - radius);\n roundedRectShape.quadraticCurveTo(x, y + height, x + radius, y + height);\n roundedRectShape.lineTo(x + width - radius, y + height);\n roundedRectShape.quadraticCurveTo(x + width, y + height, x + width, y + height - radius);\n roundedRectShape.lineTo(x + width, y + radius);\n roundedRectShape.quadraticCurveTo(x + width, y, x + width - radius, y);\n roundedRectShape.lineTo(x + radius, y);\n roundedRectShape.quadraticCurveTo(x, y, x, y + radius);\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry50 = new Three.ExtrudeGeometry(roundedRectShape, extrudeSettings);\n let plane = new Three.Mesh(geometry50, materialTexture);\n\n\n plane.position.x += -0.05;\n plane.position.y += -0.04;\n plane.position.z += 0.5;\n\n let roundedRectShape2 = new Three.Shape();\n\n let x1 = 0;\n let y1 = 0;\n let width1 = .45;\n let height1 = .25;\n let radius1 = 0.05;\n\n roundedRectShape2.moveTo(x1, y1 + radius1);\n roundedRectShape2.lineTo(x1, y1 + height1 - radius1);\n roundedRectShape2.quadraticCurveTo(x1, y1 + height1, x1 + radius1, y1 + height1);\n roundedRectShape2.lineTo(x1 + width1 - radius1, y1 + height1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1);\n roundedRectShape2.lineTo(x1 + width1, y1 + radius1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1, x1 + width1 - radius1, y1);\n roundedRectShape2.lineTo(x1 + radius1, y1);\n roundedRectShape2.quadraticCurveTo(x1, y1, x1, y1 + radius1);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry22 = new Three.ExtrudeGeometry(roundedRectShape2, extrudeSettings2);\n let back = new Three.Mesh(geometry22, materialTexture);\n\n\n //geometry = new Three.BoxGeometry( 0.38, 0.02, 0.15);\n //let back = new Three.Mesh( geometry, material );\n back.rotation.x += Math.PI / 2;\n back.position.z += 0.5 * 12 / 8;\n back.position.y += 0.03;\n back.position.x += -0.025;\n\n chair.add(back);\n chair.add(plane);\n chair.add(p1);\n chair.add(p2);\n chair.add(p3);\n chair.add(p4);\n chair.add(p5);\n chair.add(p6);\n\n\n let aa = new Three.Box3().setFromObject(chair);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n chair.rotation.x += -Math.PI / 2;\n chair.position.y += altitude;\n chair.position.x += -WIDTH / 3.5;\n chair.position.z += DEPTH / 4;\n chair.scale.set(1.5 * WIDTH / deltaZ, DEPTH / 1.5 / deltaX, HEIGHT / deltaY);\n\n return chair;\n };\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n let green = new Three.MeshBasicMaterial({color: 0x669966});\n\n\n let cattedra = new Three.Object3D();\n\n let cattedraX = 1.9;\n let cattedraY = 1.5;\n let cattedraZ = 1.2;\n\n\n let p1 = new Three.Mesh(new Three.BoxGeometry(0.06, 0.06, cattedraZ), materialTexture);\n p1.position.z += cattedraZ / 2;\n p1.position.x += 0.05;\n p1.position.y += 0.05;\n\n let p2 = new Three.Mesh(new Three.BoxGeometry(0.06, 0.06, cattedraZ), materialTexture);\n p2.position.z += cattedraZ / 2;\n p2.position.x += cattedraX - 0.05;\n p2.position.y += 0.05;\n\n let p3 = new Three.Mesh(new Three.BoxGeometry(0.06, 0.06, cattedraZ), materialTexture);\n p3.position.z += cattedraZ / 2;\n p3.position.x += cattedraX - 0.05;\n p3.position.y += cattedraY - 0.05;\n\n let p4 = new Three.Mesh(new Three.BoxGeometry(0.06, 0.06, cattedraZ), materialTexture);\n p4.position.z += cattedraZ / 2;\n p4.position.x += 0.05;\n p4.position.y += cattedraY - 0.05;\n\n let boxMaterials = [materialTexture, materialTexture,materialTexture,materialTexture, green, materialTexture];\n\n let plane = new Three.Mesh(new Three.BoxGeometry(cattedraX, cattedraY, 0.04), boxMaterials);\n plane.position.x += cattedraX / 2;\n plane.position.y += cattedraY / 2;\n plane.position.z += cattedraZ;\n\n\n let backPlane = new Three.Mesh(new Three.BoxGeometry(cattedraX, (cattedraY / 2) - 0.1, 0.04), materialTexture);\n backPlane.rotation.x += Math.PI / 2;\n backPlane.position.x += cattedraX / 2;\n backPlane.position.z += cattedraZ - cattedraY / 4;\n\n\n let downPlane = new Three.Mesh(new Three.BoxGeometry(cattedraX, (cattedraY / 20), 0.04), materialTexture);\n downPlane.position.x += cattedraX / 2;\n downPlane.position.y += cattedraY / 2 + 0.4;\n downPlane.position.z += cattedraZ - 0.6;\n\n\n let leftPlane = new Three.Mesh(new Three.BoxGeometry(cattedraY, (cattedraY / 2) - 0.1, 0.04), materialTexture);\n leftPlane.rotation.x += Math.PI / 2;\n leftPlane.rotation.y += Math.PI / 2;\n leftPlane.position.x += cattedraX;\n leftPlane.position.y += cattedraY / 2;\n leftPlane.position.z += cattedraZ - cattedraY / 4;\n\n\n let rightPlane = leftPlane.clone();\n rightPlane.position.x -= cattedraX;\n\n\n let drawer = new Three.Mesh(new Three.BoxGeometry(cattedraX / 4, cattedraY, 0.4), materialTexture);\n drawer.position.x += cattedraX / 4;\n drawer.position.y += cattedraY / 2;\n drawer.position.z += cattedraZ / 1.55;\n\n\n let geometry = new Three.BoxGeometry(0.1, 0.04, 0.02);\n let handle = new Three.Mesh(geometry, materialTexture);\n handle.position.y += cattedraY / 2 + 0.02;\n\n let geometry2 = new Three.BoxGeometry(0.5, 0.04, 0.3);\n let p = new Three.Mesh(geometry2, green);\n p.position.y += cattedraY / 2;\n\n\n drawer.add(handle);\n drawer.add(p);\n drawer.scale.set(1.5, 1, .7);\n\n let drawer2 = drawer.clone();\n drawer2.position.z += (cattedraZ / 4.5);\n\n\n cattedra.add(p1);\n cattedra.add(p2);\n cattedra.add(p3);\n cattedra.add(p4);\n cattedra.add(plane);\n cattedra.add(drawer);\n cattedra.add(drawer2);\n cattedra.add(backPlane);\n cattedra.add(leftPlane);\n cattedra.add(rightPlane);\n cattedra.add(downPlane);\n\n\n let valueObject = new Three.Box3().setFromObject(cattedra);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n cattedra.rotation.x += -Math.PI / 2;\n cattedra.position.y += newAltitude;\n cattedra.position.x += -WIDTH / 2;\n cattedra.position.z += DEPTH / 1.5;\n cattedra.scale.set(WIDTH / deltaX, DEPTH / deltaZ, HEIGHT / deltaY);\n\n let chair = makeChair(newAltitude);\n chair.rotation.z += Math.PI;\n chair.position.z -= 70;\n chair.position.x += 60;\n\n let deskAndChair = new Three.Object3D();\n deskAndChair.add(cattedra);\n deskAndChair.add(chair);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(deskAndChair, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n deskAndChair.add(bbox);\n }\n\n deskAndChair.rotation.y += Math.PI;\n\n deskAndChair.position.z -= (CHAIR_DEPTH / 2 - (CHAIR_TRANSLATION - CHAIR_DEPTH / 2)) / 2;\n\n let boundingBoxDeskAndChair = new Three.Box3().setFromObject(deskAndChair);\n\n let deltaZDeskAndChair = Math.abs(boundingBoxDeskAndChair.max.z - boundingBoxDeskAndChair.min.z);\n\n deskAndChair.scale.set(1, 1, TOTAL_DEPTH / deltaZDeskAndChair); //Fix Depth problem with the chair\n\n\n return Promise.resolve(deskAndChair);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/table/table.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst RADIUS = 3;\n\nconst PlaneMaterial = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\nconst material_legs = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth) {\n\n let table = new Three.Mesh();\n\n let PlaneGeometry = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane = new Three.Mesh( PlaneGeometry, PlaneMaterial );\n plane.position.y = newHeight;\n table.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( RADIUS, RADIUS, newHeight, 32, 32 );\n\n let leg1 = new Three.Mesh( geometry_legs, material_legs );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n table.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, material_legs );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n table.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, material_legs );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n table.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, material_legs );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n table.add(leg4);\n\n return table;\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth) {\n\n let table = new Three.Mesh();\n\n let PlaneGeometry = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane = new Three.Mesh( PlaneGeometry, PlaneMaterial );\n plane.position.y = newHeight;\n table.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( RADIUS, RADIUS, newHeight, 8, 8 );\n\n let leg1 = new Three.Mesh( geometry_legs, material_legs );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n table.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, material_legs );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n table.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, material_legs );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n table.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, material_legs );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n table.add(leg4);\n\n return table;\n}\n\nexport default {\n name: \"table\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'wood'],\n title: \"table\",\n description: \"table\",\n image: require('./table.png')\n },\n\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 90,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 50,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 80,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let newHeight = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n /********** lod max ************/\n\n let tableMaxLOD = new Three.Object3D();\n let objectMaxLod = makeObjectMaxLOD(newWidth,newHeight,newDepth);\n tableMaxLOD.add(objectMaxLod.clone());\n tableMaxLOD.position.y += newHeight/20 + newAltitude;\n\n /********** lod min ************/\n\n let tableMinLOD = new Three.Object3D();\n let objectMinLod = makeObjectMinLOD(newWidth,newHeight,newDepth);\n tableMinLOD.add(objectMinLod.clone());\n tableMinLOD.position.y += newHeight/20 + newAltitude;\n\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(tableMaxLOD, 200);\n lod.addLevel(tableMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/sofa/sofa.png\";","module.exports = __webpack_public_path__ + \"catalog/items/sofa/texture.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/sofa/sofa.obj\";","module.exports = __webpack_public_path__ + \"catalog/items/sofa/sofa.mtl\";","import {BoxHelper, Box3, ObjectLoader} from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\nimport path from 'path';\nimport convert from 'convert-units';\n\nimport React from 'react';\n\nconst mtl = require('./sofa.mtl');\nconst obj = require('./sofa.obj');\nconst img = require('./texture.jpg');\n\nconst width = {length: 180, unit: 'cm'};\nconst depth = {length: 60, unit: 'cm'};\nconst height = {length: 70, unit: 'cm'};\n\nlet cachedJSONSofa = null;\n\nexport default {\n name: 'sofa',\n prototype: 'items',\n\n info: {\n title: 'sofa',\n tag: ['furnishings', 'leather'],\n description: 'Leather sofa',\n image: require('./sofa.png')\n },\n\n properties: {},\n\n render2D: function (element, layer, scene) {\n let angle = element.rotation + 90;\n let textRotation = Math.sin(angle * Math.PI / 180) < 0 ? 180 : 0;\n\n let style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n\n let onLoadItem = (object) => {\n let newWidth = convert(width.length).from(width.unit).to(scene.unit);\n let newHeight = convert(height.length).from(height.unit).to(scene.unit);\n let newDepth = convert(depth.length).from(depth.unit).to(scene.unit);\n\n object.scale.set(newWidth / width.length, newHeight / height.length, newDepth / depth.length);\n\n let box = new BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n box.visible = element.selected;\n object.add(box);\n\n // Normalize the origin of this item\n let boundingBox = new Box3().setFromObject(object);\n\n let center = [\n (boundingBox.max.x - boundingBox.min.x) / 2 + boundingBox.min.x,\n (boundingBox.max.y - boundingBox.min.y) / 2 + boundingBox.min.y,\n (boundingBox.max.z - boundingBox.min.z) / 2 + boundingBox.min.z];\n\n object.position.x -= center[0];\n object.position.y -= center[1] - (boundingBox.max.y - boundingBox.min.y) / 2;\n object.position.z -= center[2];\n\n return object;\n };\n\n if (cachedJSONSofa) {\n let loader = new ObjectLoader();\n let object = loader.parse(cachedJSONSofa);\n return Promise.resolve(onLoadItem(object));\n }\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cachedJSONSofa = object.toJSON();\n let loader = new ObjectLoader();\n return onLoadItem(loader.parse(cachedJSONSofa))\n });\n },\n\n updateRender3D: ( element, layer, scene, mesh, oldElement, differences, selfDestroy, selfBuild ) => {\n\n let noPerf = () => { selfDestroy(); return selfBuild(); };\n\n if( differences.indexOf('selected') !== -1 )\n {\n mesh.traverse(( child ) => {\n if ( child instanceof BoxHelper ) {\n child.visible = element.selected;\n }\n });\n\n return Promise.resolve(mesh);\n }\n\n if( differences.indexOf('rotation') !== -1 ) {\n mesh.rotation.y = element.rotation * Math.PI / 180;\n return Promise.resolve(mesh);\n }\n\n return noPerf();\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/smoke-detector/smokeDetector.png\";","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\nimport { FaAngleDown, FaAngleUp } from 'react-icons/lib/fa';\n\nconst STYLE = {\n borderTop: '1px solid #222',\n borderBottom: '1px solid #48494E',\n userSelect: 'none'\n};\nconst STYLE_TITLE = {\n fontSize: '11px',\n color: SharedStyle.PRIMARY_COLOR.text_alt,\n padding: '5px 15px 8px 15px',\n backgroundColor: SharedStyle.PRIMARY_COLOR.alt,\n textShadow: '-1px -1px 2px rgba(0, 0, 0, 1)',\n boxShadow: 'inset 0px -3px 19px 0px rgba(0,0,0,0.5)',\n margin: '0px',\n cursor: 'pointer'\n};\nconst STYLE_CONTENT = {\n fontSize: '11px',\n color: SharedStyle.PRIMARY_COLOR.text_alt,\n border: '1px solid #222',\n padding: '0px',\n backgroundColor: SharedStyle.PRIMARY_COLOR.alt,\n textShadow: '-1px -1px 2px rgba(0, 0, 0, 1)'\n};\nconst STYLE_ARROW = {\n float: 'right'\n};\n\nexport default class Panel extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n opened: props.hasOwnProperty('opened') ? props.opened : false,\n hover: false\n };\n }\n\n toggleOpen() {\n this.setState({opened: !this.state.opened});\n }\n\n toggleHover() {\n this.setState({hover: !this.state.hover});\n }\n\n render() {\n\n let { name, headComponents, children } = this.props;\n let { opened, hover } = this.state;\n\n return (\n
\n this.toggleHover()}\n onMouseLeave={() => this.toggleHover()}\n onClick={() => this.toggleOpen()}\n >\n {name}\n {headComponents}\n {\n opened ?\n :\n \n }\n \n\n
\n {children}\n
\n
\n )\n }\n}\n\nPanel.propTypes = {\n name: PropTypes.string.isRequired,\n headComponents: PropTypes.array,\n opened: PropTypes.bool\n};\n","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH=10;\nconst DEPTH=10;\nconst HEIGHT=5;\n\nconst red = new Three.MeshLambertMaterial( { color: 0xff0000 } );\nconst grey = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\nconst black = new Three.MeshLambertMaterial({color:0x000000});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let detector = new Three.Mesh();\n\n let BaseGeometry1 = new Three.CylinderGeometry( .55,.55,.25, 32, 32 );\n let base_p1 = new Three.Mesh( BaseGeometry1, grey );\n detector.add(base_p1);\n\n let BaseGeometry2 = new Three.CylinderGeometry( .65,.65,.1, 32, 32 );\n let base_p2 = new Three.Mesh( BaseGeometry2, grey );\n base_p2.position.y+=.125;\n base_p1.add(base_p2);\n\n let BaseGeometry3 = new Three.CylinderGeometry( .55,.65,.1, 32, 32 );\n let base_p3 = new Three.Mesh( BaseGeometry3, grey );\n base_p3.position.y+=.22;\n base_p1.add(base_p3);\n\n let BaseGeometry4 = new Three.CylinderGeometry( .65,.65,.1, 32, 32 );\n let base_p4 = new Three.Mesh( BaseGeometry4, grey );\n base_p4.position.y+= -.125;\n base_p1.add(base_p4);\n\n let geometrySphereUp = new Three.SphereGeometry( 0.025, 32, 32, 32 );\n let led = new Three.Mesh( geometrySphereUp, red );\n led.position.y+=.28;\n led.position.x+=.4;\n led.position.z+=-.25;\n led.scale.set(1,1.3,1);\n base_p1.add(led);\n\n\n for (let i = 0; i < Math.PI*4; i+=4*Math.PI/3) {\n\n let geometry = new Three.TorusGeometry( .45, .025, 32, 100, Math.PI/3 );\n let torus = new Three.Mesh( geometry, black );\n torus.position.y+=.028;\n torus.position.x+=.01;\n torus.rotation.z+=i;\n torus.rotation.x+=Math.PI/2;\n base_p3.add( torus );\n\n let geometry2 = new Three.TorusGeometry( .35, .025, 32, 100, Math.PI/3 );\n let torus2 = new Three.Mesh( geometry2, black );\n torus2.position.y+=.028;\n torus2.position.x+=.01;\n torus2.rotation.x+=Math.PI/2;\n torus2.rotation.z+=i;\n base_p3.add(torus2);\n\n let geometry3 = new Three.TorusGeometry( .25, .025, 32, 100, Math.PI/3 );\n let torus3 = new Three.Mesh( geometry3, black );\n torus3.position.y+=.028;\n torus3.position.x+=.01;\n torus3.rotation.x+=Math.PI/2;\n torus3.rotation.z+=i;\n base_p3.add(torus3);\n }\n\n return detector\n}\n\nfunction makeObjectMinLOD() {\n\n let detector = new Three.Mesh();\n\n let BaseGeometry1 = new Three.CylinderGeometry( .55,.55,.25, 8, 8 );\n let base_p1 = new Three.Mesh( BaseGeometry1, grey );\n detector.add(base_p1);\n\n let BaseGeometry2 = new Three.CylinderGeometry( .65,.65,.1, 8, 8 );\n let base_p2 = new Three.Mesh( BaseGeometry2, grey );\n base_p2.position.y+=.125;\n base_p1.add(base_p2);\n\n let BaseGeometry3 = new Three.CylinderGeometry( .55,.65,.1, 8, 8 );\n let base_p3 = new Three.Mesh( BaseGeometry3, grey );\n base_p3.position.y+=.22;\n base_p1.add(base_p3);\n\n let BaseGeometry4 = new Three.CylinderGeometry( .65,.65,.1, 8, 8 );\n let base_p4 = new Three.Mesh( BaseGeometry4, grey );\n base_p4.position.y+= -.125;\n base_p1.add(base_p4);\n\n return detector\n}\n\n\nexport default {\n name: \"smoke-detector\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"smoke detector\",\n description: \"smoke detector\",\n image: require('./smokeDetector.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 250,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************* lod max ****************/\n\n let detectorMaxLOD = new Three.Object3D();\n detectorMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(detectorMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n detectorMaxLOD.position.z+= -DEPTH/3;\n detectorMaxLOD.position.y+= -HEIGHT/1.3 + newAltitude;\n detectorMaxLOD.rotation.x+= -Math.PI/2;\n detectorMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /************* lod min ****************/\n\n let detectorMinLOD = new Three.Object3D();\n detectorMinLOD.add(objectMinLOD.clone());\n detectorMinLOD.position.z+= -DEPTH/3;\n detectorMinLOD.position.y+= -HEIGHT/1.3 + newAltitude;\n detectorMinLOD.rotation.x+= -Math.PI/2;\n detectorMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(detectorMaxLOD, 200);\n lod.addLevel(detectorMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/sink/sink.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst HEIGHT = 60;\n\nconst steel = new Three.MeshLambertMaterial({color:0xffffff});\nconst grey = new Three.MeshLambertMaterial({color:0xAAAAAA});\nconst yellow = new Three.MeshLambertMaterial({color: 0xFF9933});\nconst blue = new Three.MeshLambertMaterial({color:0x0000ff});\n\nfunction makeObjectMaxLOD(newWidth,newDepth) {\n\n let sink = new Three.Mesh();\n\n let rectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=newWidth;\n let height=newDepth;\n let newHeight= HEIGHT;\n let radius=newDepth/10;\n\n rectShape.moveTo( x, y + radius );\n rectShape.lineTo( x, y + height - radius );\n rectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n rectShape.lineTo( x + width - radius, y + height) ;\n rectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n rectShape.lineTo( x + width, y + radius );\n rectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n rectShape.lineTo( x + radius, y );\n rectShape.quadraticCurveTo( x, y, x, y + radius );\n\n\n let extrudeSettings = {\n steps: 2,\n depth: newHeight/40,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n let geometry = new Three.ExtrudeGeometry( rectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, steel ) ;\n mesh.rotation.x+=Math.PI/2;\n mesh.position.y=newHeight/4;\n sink.add(mesh);\n\n let rectShape2 = new Three.Shape();\n let hole = new Three.Path();\n\n rectShape2.moveTo( x, y + radius );\n rectShape2.lineTo( x, y + height - radius );\n rectShape2.quadraticCurveTo( x, y + height, x + radius, y + height );\n rectShape2.lineTo( x + width - radius, y + height) ;\n rectShape2.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n rectShape2.lineTo( x + width, y + radius );\n rectShape2.quadraticCurveTo( x + width, y, x + width - radius, y );\n rectShape2.lineTo( x + radius, y );\n rectShape2.quadraticCurveTo( x, y, x, y + radius );\n\n hole.moveTo(newWidth/20, newDepth/20);\n hole.lineTo(newWidth-newWidth/20, newDepth/20);\n hole.lineTo(newWidth-newWidth/20, newDepth-newDepth/20);\n hole.lineTo(newWidth/20, newDepth-newDepth/20);\n rectShape2.holes.push(hole);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: newHeight/4,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n let geometry2 = new Three.ExtrudeGeometry( rectShape2, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, steel ) ;\n mesh2.rotation.x+=Math.PI/2;\n mesh2.position.y+=newHeight/2;\n sink.add(mesh2);\n\n //pipe\n let pipe_p1 = new Three.Mesh(new Three.TorusGeometry( 2.5, 2.5, 16, 16, Math.PI/2 ), yellow);\n pipe_p1.position.set(newWidth/2,newHeight/5.5,newDepth/2-2.5);\n pipe_p1.rotation.z=-Math.PI/2;\n pipe_p1.rotation.y-=Math.PI/2;\n sink.add(pipe_p1);\n\n let cylinderGeometry1 = new Three.CylinderGeometry(2.25,2.25,newDepth/2,80);\n let pipe_p2 = new Three.Mesh(cylinderGeometry1,yellow);\n pipe_p2.rotation.z=Math.PI/2;\n pipe_p2.rotation.y-=Math.PI/2;\n pipe_p2.position.set(newWidth/2,newHeight/7.5,newDepth/4.5);\n sink.add(pipe_p2);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(2.5,2.5,newDepth/12,80);\n let pipe_p3 = new Three.Mesh(cylinderGeometry2,yellow);\n pipe_p3.rotation.y-=Math.PI/2;\n pipe_p3.position.set(newWidth/2,newHeight/4.85,newDepth/2);\n sink.add(pipe_p3);\n\n //tap\n let cylinderGeometry66 = new Three.CylinderGeometry(1.25,1.25,8,12);\n let tap_p1 = new Three.Mesh(cylinderGeometry66,grey);\n tap_p1.position.set(newWidth/2,newHeight/1.45,3);\n tap_p1.rotation.z-=Math.PI/2;\n tap_p1.rotation.y+=Math.PI/2;\n sink.add(tap_p1);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(2.7,3,5,12);\n let tap_p2 = new Three.Mesh(cylinderGeometry5,grey);\n tap_p2.position.set(newWidth/2, newHeight/1.45,10);\n tap_p2.rotation.z-=Math.PI/2;\n tap_p2.rotation.y+=Math.PI/2;\n sink.add(tap_p2);\n\n let cylinderGeometry6 = new Three.CylinderGeometry(2,2,5.5,80);\n let tap_p3 = new Three.Mesh(cylinderGeometry6,blue);\n tap_p3.position.set(newWidth/2, newHeight/1.45,10);\n tap_p3.rotation.z-=Math.PI/2;\n tap_p3.rotation.y+=Math.PI/2;\n sink.add(tap_p3);\n\n let curve = new Three.CatmullRomCurve3( [\n new Three.Vector3( -12, -10, 0 ),\n new Three.Vector3( -12, -5, 0 ),\n new Three.Vector3( 0, 0, 0 ),\n new Three.Vector3( 6, 5, 0 ),\n new Three.Vector3( 6, 10, 0 )\n ] );\n\n let geometry7 = new Three.TubeGeometry(curve, 32, 1, 16, false);\n let mesh3 = new Three.Mesh(geometry7, grey);\n mesh3.position.set(newWidth/2, newHeight/1.7,11);\n mesh3.rotation.y+=Math.PI/2;\n mesh3.rotation.z-=Math.PI/8;\n sink.add(mesh3);\n\n //hole\n let cylinderGeometry7 = new Three.CylinderGeometry(newDepth/20,newDepth/20,newHeight/100,80);\n let blackMaterial = new Three.MeshLambertMaterial({color: 0x000000});\n let hole_p1 = new Three.Mesh(cylinderGeometry7,blackMaterial);\n hole_p1.position.set(newWidth/2,newHeight/4,newDepth/2);\n sink.add(hole_p1);\n\n let cylinderGeometry8 = new Three.CylinderGeometry(newDepth/10,newDepth/10,newHeight/200,80,80,false,0,Math.PI);\n let whiteMaterial = new Three.MeshLambertMaterial({color: 0xffffff});\n let hole_p2 = new Three.Mesh(cylinderGeometry8,whiteMaterial);\n hole_p2.scale.set(.25,.5,.5);\n hole_p2.rotation.z=Math.PI/2;\n hole_p2.position.set(newWidth/2,newHeight/4,newDepth/2);\n sink.add(hole_p2);\n\n let hole_p3 = new Three.Mesh(cylinderGeometry8,whiteMaterial);\n hole_p3.rotation.z=Math.PI/2;\n hole_p3.rotation.y=Math.PI/2;\n hole_p3.scale.set(.25,.5,.5);\n hole_p3.position.set(newWidth/2,newHeight/4,newDepth/2);\n sink.add(hole_p3);\n\n let hole_p4 = new Three.Mesh(cylinderGeometry8,whiteMaterial);\n hole_p4.rotation.z=Math.PI/2;\n hole_p4.rotation.y=Math.PI/4;\n hole_p4.position.set(newWidth/2,newHeight/4,newDepth/2);\n hole_p4.scale.set(.25,.5,.5);\n sink.add(hole_p4);\n\n let hole_p5 = new Three.Mesh(cylinderGeometry8,whiteMaterial);\n hole_p5.rotation.z=Math.PI/2;\n hole_p5.rotation.y=-Math.PI/4;\n hole_p5.position.set(newWidth/2,newHeight/4,newDepth/2);\n hole_p5.scale.set(.25,.5,.5);\n sink.add(hole_p5);\n\n return sink\n}\n\nfunction makeObjectMinLOD(newWidth,newDepth) {\n\n let sink = new Three.Mesh();\n\n let rectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=newWidth;\n let height=newDepth;\n let newHeight= HEIGHT;\n let radius=newDepth/10;\n\n rectShape.moveTo( x, y + radius );\n rectShape.lineTo( x, y + height - radius );\n rectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n rectShape.lineTo( x + width - radius, y + height) ;\n rectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n rectShape.lineTo( x + width, y + radius );\n rectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n rectShape.lineTo( x + radius, y );\n rectShape.quadraticCurveTo( x, y, x, y + radius );\n\n\n let extrudeSettings = {\n steps: 2,\n depth: newHeight/40,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n let geometry = new Three.ExtrudeGeometry( rectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, steel ) ;\n mesh.rotation.x+=Math.PI/2;\n mesh.position.y=newHeight/4;\n sink.add(mesh);\n\n let rectShape2 = new Three.Shape();\n let hole = new Three.Path();\n\n rectShape2.moveTo( x, y + radius );\n rectShape2.lineTo( x, y + height - radius );\n rectShape2.quadraticCurveTo( x, y + height, x + radius, y + height );\n rectShape2.lineTo( x + width - radius, y + height) ;\n rectShape2.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n rectShape2.lineTo( x + width, y + radius );\n rectShape2.quadraticCurveTo( x + width, y, x + width - radius, y );\n rectShape2.lineTo( x + radius, y );\n rectShape2.quadraticCurveTo( x, y, x, y + radius );\n\n hole.moveTo(newWidth/20, newDepth/20);\n hole.lineTo(newWidth-newWidth/20, newDepth/20);\n hole.lineTo(newWidth-newWidth/20, newDepth-newDepth/20);\n hole.lineTo(newWidth/20, newDepth-newDepth/20);\n rectShape2.holes.push(hole);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: newHeight/4,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n let geometry2 = new Three.ExtrudeGeometry( rectShape2, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, steel ) ;\n mesh2.rotation.x+=Math.PI/2;\n mesh2.position.y+=newHeight/2;\n sink.add(mesh2);\n\n //tap\n let cylinderGeometry66 = new Three.CylinderGeometry(1.25,1.25,8,12);\n let tap_p1 = new Three.Mesh(cylinderGeometry66,grey);\n tap_p1.position.set(newWidth/2,newHeight/1.45,3);\n tap_p1.rotation.z-=Math.PI/2;\n tap_p1.rotation.y+=Math.PI/2;\n sink.add(tap_p1);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(2.7,3,5,12);\n let tap_p2 = new Three.Mesh(cylinderGeometry5,grey);\n tap_p2.position.set(newWidth/2, newHeight/1.45,10);\n tap_p2.rotation.z-=Math.PI/2;\n tap_p2.rotation.y+=Math.PI/2;\n sink.add(tap_p2);\n\n let cylinderGeometry6 = new Three.CylinderGeometry(2,2,5.5,80);\n let tap_p3 = new Three.Mesh(cylinderGeometry6,blue);\n tap_p3.position.set(newWidth/2, newHeight/1.45,10);\n tap_p3.rotation.z-=Math.PI/2;\n tap_p3.rotation.y+=Math.PI/2;\n sink.add(tap_p3);\n\n let curve = new Three.CatmullRomCurve3( [\n new Three.Vector3( -12, -10, 0 ),\n new Three.Vector3( -12, -5, 0 ),\n new Three.Vector3( 0, 0, 0 ),\n new Three.Vector3( 6, 5, 0 ),\n new Three.Vector3( 6, 10, 0 )\n ] );\n\n let geometry7 = new Three.TubeGeometry(curve, 32, 1, 16, false);\n let mesh3 = new Three.Mesh(geometry7, grey);\n mesh3.position.set(newWidth/2, newHeight/1.7,11);\n mesh3.rotation.y+=Math.PI/2;\n mesh3.rotation.z-=Math.PI/8;\n sink.add(mesh3);\n\n return sink\n}\n\nexport default {\n name: \"sink\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"sink\",\n description: \"sink\",\n image: require('./sink.png')\n },\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 50,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 40,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 80,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let newHeight = HEIGHT;\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** lod max ********************/\n\n let sinkMaxLOD=new Three.Object3D();\n sinkMaxLOD.add(makeObjectMaxLOD(newWidth,newDepth).clone());\n\n let value = new Three.Box3().setFromObject(sinkMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n sinkMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n sinkMaxLOD.position.y+= -newHeight/5 + newAltitude;\n sinkMaxLOD.position.z-= newDepth/4;\n sinkMaxLOD.position.x-= newWidth/2;\n\n /**************** lod min ********************/\n\n let sinkMinLOD=new Three.Object3D();\n sinkMinLOD.add(makeObjectMinLOD(newWidth,newDepth).clone());\n sinkMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n sinkMinLOD.position.y+= -newHeight/5 + newAltitude;\n sinkMinLOD.position.z-= newDepth/4;\n sinkMinLOD.position.x-= newWidth/2;\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(sinkMaxLOD, 200);\n lod.addLevel(sinkMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n\n }\n\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/school-desk/school-desk.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 70;\nconst DEPTH = 50;\nconst HEIGHT = 90;\n\nconst CHAIR_WIDTH = 55;\nconst CHAIR_DEPTH = 55;\nconst CHAIR_HEIGHT = 50;\n\nconst CHAIR_TRANSLATION = 30;\n\nconst TOTAL_DEPTH = DEPTH + CHAIR_DEPTH / 2 - (CHAIR_TRANSLATION - CHAIR_DEPTH / 2);\n\nexport default {\n name: \"school-desk\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"School desk\",\n description: \"School desk\",\n image: require('./school-desk.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let makeChair = (altitude) => {\n\n let WIDTH = CHAIR_WIDTH;\n let DEPTH = CHAIR_DEPTH;\n let HEIGHT = CHAIR_HEIGHT;\n\n let chair = new Three.Object3D();\n\n let geometry = new Three.CylinderGeometry(0.02, 0.02, 0.5, 32);\n let material = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n\n let p1 = new Three.Mesh(geometry, material);\n p1.rotation.x += Math.PI / 2;\n p1.position.z += 0.5 / 2;\n\n let p2 = new Three.Mesh(geometry, material);\n p2.rotation.x += Math.PI / 2;\n p2.position.z += 0.5 / 2;\n p2.position.y += 0.4;\n\n let p3 = new Three.Mesh(geometry, material);\n p3.rotation.x += Math.PI / 2;\n p3.position.z += 0.5 / 2;\n p3.position.x += 0.4;\n\n let p4 = new Three.Mesh(geometry, material);\n p4.rotation.x += Math.PI / 2;\n p4.position.z += 0.5 / 2;\n p4.position.y += 0.4;\n p4.position.x += 0.4;\n\n let p5 = new Three.Mesh(geometry, material);\n p5.rotation.x += Math.PI / 2;\n p5.position.z += 0.5 * 3 / 2;\n\n let p6 = new Three.Mesh(geometry, material);\n p6.rotation.x += Math.PI / 2;\n p6.position.z += 0.5 * 3 / 2;\n p6.position.x += 0.4;\n\n // material = new Three.MeshLambertMaterial({color: 0x9b8c75});\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n\n let roundedRectShape = new Three.Shape();\n\n let x = 0;\n let y = 0;\n let width = .5;\n let height = .48;\n let radius = 0.05;\n\n roundedRectShape.moveTo(x, y + radius);\n roundedRectShape.lineTo(x, y + height - radius);\n roundedRectShape.quadraticCurveTo(x, y + height, x + radius, y + height);\n roundedRectShape.lineTo(x + width - radius, y + height);\n roundedRectShape.quadraticCurveTo(x + width, y + height, x + width, y + height - radius);\n roundedRectShape.lineTo(x + width, y + radius);\n roundedRectShape.quadraticCurveTo(x + width, y, x + width - radius, y);\n roundedRectShape.lineTo(x + radius, y);\n roundedRectShape.quadraticCurveTo(x, y, x, y + radius);\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry50 = new Three.ExtrudeGeometry(roundedRectShape, extrudeSettings);\n let plane = new Three.Mesh(geometry50, materialTexture);\n\n\n plane.position.x += -0.05;\n plane.position.y += -0.04;\n plane.position.z += 0.5;\n\n let roundedRectShape2 = new Three.Shape();\n\n let x1 = 0;\n let y1 = 0;\n let width1 = .45;\n let height1 = .25;\n let radius1 = 0.05;\n\n roundedRectShape2.moveTo(x1, y1 + radius1);\n roundedRectShape2.lineTo(x1, y1 + height1 - radius1);\n roundedRectShape2.quadraticCurveTo(x1, y1 + height1, x1 + radius1, y1 + height1);\n roundedRectShape2.lineTo(x1 + width1 - radius1, y1 + height1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1);\n roundedRectShape2.lineTo(x1 + width1, y1 + radius1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1, x1 + width1 - radius1, y1);\n roundedRectShape2.lineTo(x1 + radius1, y1);\n roundedRectShape2.quadraticCurveTo(x1, y1, x1, y1 + radius1);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry22 = new Three.ExtrudeGeometry(roundedRectShape2, extrudeSettings2);\n let back = new Three.Mesh(geometry22, materialTexture);\n\n\n //geometry = new Three.BoxGeometry( 0.38, 0.02, 0.15);\n //let back = new Three.Mesh( geometry, material );\n back.rotation.x += Math.PI / 2;\n back.position.z += 0.5 * 12 / 8;\n back.position.y += 0.03;\n back.position.x += -0.025;\n\n chair.add(back);\n chair.add(plane);\n chair.add(p1);\n chair.add(p2);\n chair.add(p3);\n chair.add(p4);\n chair.add(p5);\n chair.add(p6);\n\n\n let aa = new Three.Box3().setFromObject(chair);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n // if (element.selected) {\n // let bbox = new Three.BoxHelper(chair, 0x99c3fb);\n // bbox.material.linewidth = 5;\n // bbox.renderOrder = 1000;\n // bbox.material.depthTest = false;\n // chair.add(bbox);\n // }\n\n chair.rotation.x += -Math.PI / 2;\n chair.position.y += altitude;\n chair.position.x += -WIDTH / 3.5;\n chair.position.z += DEPTH / 4;\n chair.scale.set(1.5 * WIDTH / deltaZ, DEPTH / 1.5 / deltaX, HEIGHT / deltaY);\n\n return chair;\n };\n\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let brown = new Three.MeshLambertMaterial({color: 0x9b8c75});\n let grey = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n let black = new Three.MeshLambertMaterial({color: 0x000000});\n\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let raggio = .03;\n\n let banco = new Three.Object3D();\n\n let geometry = new Three.BoxGeometry(newWidth + newWidth / 6, newHeight / 20, newDepth + newDepth / 4);\n\n let boxMaterials = [\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({color: 0x669966}), //top\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture})\n ];\n\n let tMaterial = new Three.MultiMaterial(boxMaterials);\n\n let plane = new Three.Mesh(geometry, tMaterial);\n plane.position.y = newHeight;\n banco.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry(raggio, raggio, newHeight, 32);\n\n let geometry2 = new Three.BoxGeometry(newWidth, newHeight / 20, newDepth);\n let plane2 = new Three.Mesh(geometry2, materialTexture);\n plane2.position.y = newHeight / 2 + newHeight / 4;\n banco.add(plane2);\n\n let geometry3 = new Three.BoxGeometry(newWidth, newHeight / 10, newDepth / 20);\n let plane3 = new Three.Mesh(geometry3, materialTexture);\n plane3.position.y = newHeight / 2 + newHeight / 4 + newHeight / 16;\n plane3.position.z = newDepth / 3 + newDepth / 5;\n banco.add(plane3);\n\n let p1 = new Three.Mesh(geometry_legs, grey);\n p1.position.x = newWidth / 2;\n p1.position.z = newDepth / 2;\n p1.position.y = newHeight / 2;\n banco.add(p1);\n\n let p2 = new Three.Mesh(geometry_legs, grey);\n p2.position.x = newWidth / 2;\n p2.position.z = -newDepth / 2;\n p2.position.y = newHeight / 2;\n banco.add(p2);\n\n let p3 = new Three.Mesh(geometry_legs, grey);\n p3.position.x = -newWidth / 2;\n p3.position.z = newDepth / 2;\n p3.position.y = newHeight / 2;\n banco.add(p3);\n\n let p4 = new Three.Mesh(geometry_legs, grey);\n p4.position.x = -newWidth / 2;\n p4.position.z = -newDepth / 2;\n p4.position.y = newHeight / 2;\n banco.add(p4);\n\n\n let valueObject = new Three.Box3().setFromObject(banco);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n\n // if (element.selected) {\n // let bbox = new Three.BoxHelper(banco, 0x99c3fb);\n // bbox.material.linewidth = 5;\n // bbox.renderOrder = 1000;\n // bbox.material.depthTest = false;\n // banco.add(bbox);\n // }\n\n banco.rotation.y += Math.PI;\n banco.position.y += newAltitude;\n banco.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n let chair = makeChair(newAltitude);\n chair.position.z += CHAIR_TRANSLATION;\n\n let deskAndChair = new Three.Object3D();\n deskAndChair.add(banco);\n deskAndChair.add(chair);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(deskAndChair, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n deskAndChair.add(bbox);\n }\n\n deskAndChair.position.z -= (CHAIR_DEPTH / 2 - (CHAIR_TRANSLATION - CHAIR_DEPTH / 2)) / 2;\n\n let boundingBoxDeskAndChair = new Three.Box3().setFromObject(deskAndChair);\n\n let deltaZDeskAndChair = Math.abs(boundingBoxDeskAndChair.max.z - boundingBoxDeskAndChair.min.z);\n\n deskAndChair.scale.set(1, 1, TOTAL_DEPTH / deltaZDeskAndChair); //Fix Depth problem with the chair\n\n return Promise.resolve(deskAndChair);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/school-desk-double/school-desk-double.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 120;\nconst DEPTH = 50;\nconst HEIGHT = 90;\n\nconst CHAIR_WIDTH = 55;\nconst CHAIR_DEPTH = 55;\nconst CHAIR_HEIGHT = 50;\n\nconst CHAIR_TRANSLATION = 30;\n\nconst TOTAL_DEPTH = DEPTH + CHAIR_DEPTH/2 - (CHAIR_TRANSLATION - CHAIR_DEPTH/2);\n\nexport default {\n name: \"school-desk-double\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"School desk double\",\n description: \"school desk double\",\n image: require('./school-desk-double.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let makeChair = (altitude) => {\n\n let WIDTH = CHAIR_WIDTH;\n let DEPTH = CHAIR_DEPTH;\n let HEIGHT = CHAIR_HEIGHT;\n\n let chair = new Three.Object3D();\n\n let geometry = new Three.CylinderGeometry(0.02, 0.02, 0.5, 32);\n let material = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n\n let p1 = new Three.Mesh(geometry, material);\n p1.rotation.x += Math.PI / 2;\n p1.position.z += 0.5 / 2;\n\n let p2 = new Three.Mesh(geometry, material);\n p2.rotation.x += Math.PI / 2;\n p2.position.z += 0.5 / 2;\n p2.position.y += 0.4;\n\n let p3 = new Three.Mesh(geometry, material);\n p3.rotation.x += Math.PI / 2;\n p3.position.z += 0.5 / 2;\n p3.position.x += 0.4;\n\n let p4 = new Three.Mesh(geometry, material);\n p4.rotation.x += Math.PI / 2;\n p4.position.z += 0.5 / 2;\n p4.position.y += 0.4;\n p4.position.x += 0.4;\n\n let p5 = new Three.Mesh(geometry, material);\n p5.rotation.x += Math.PI / 2;\n p5.position.z += 0.5 * 3 / 2;\n\n let p6 = new Three.Mesh(geometry, material);\n p6.rotation.x += Math.PI / 2;\n p6.position.z += 0.5 * 3 / 2;\n p6.position.x += 0.4;\n\n// material = new Three.MeshLambertMaterial({color: 0x9b8c75});\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n\n let roundedRectShape = new Three.Shape();\n\n let x = 0;\n let y = 0;\n let width = .5;\n let height = .48;\n let radius = 0.05;\n\n roundedRectShape.moveTo(x, y + radius);\n roundedRectShape.lineTo(x, y + height - radius);\n roundedRectShape.quadraticCurveTo(x, y + height, x + radius, y + height);\n roundedRectShape.lineTo(x + width - radius, y + height);\n roundedRectShape.quadraticCurveTo(x + width, y + height, x + width, y + height - radius);\n roundedRectShape.lineTo(x + width, y + radius);\n roundedRectShape.quadraticCurveTo(x + width, y, x + width - radius, y);\n roundedRectShape.lineTo(x + radius, y);\n roundedRectShape.quadraticCurveTo(x, y, x, y + radius);\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry50 = new Three.ExtrudeGeometry(roundedRectShape, extrudeSettings);\n let plane = new Three.Mesh(geometry50, materialTexture);\n\n\n plane.position.x += -0.05;\n plane.position.y += -0.04;\n plane.position.z += 0.5;\n\n let roundedRectShape2 = new Three.Shape();\n\n let x1 = 0;\n let y1 = 0;\n let width1 = .45;\n let height1 = .25;\n let radius1 = 0.05;\n\n roundedRectShape2.moveTo(x1, y1 + radius1);\n roundedRectShape2.lineTo(x1, y1 + height1 - radius1);\n roundedRectShape2.quadraticCurveTo(x1, y1 + height1, x1 + radius1, y1 + height1);\n roundedRectShape2.lineTo(x1 + width1 - radius1, y1 + height1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1);\n roundedRectShape2.lineTo(x1 + width1, y1 + radius1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1, x1 + width1 - radius1, y1);\n roundedRectShape2.lineTo(x1 + radius1, y1);\n roundedRectShape2.quadraticCurveTo(x1, y1, x1, y1 + radius1);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry22 = new Three.ExtrudeGeometry(roundedRectShape2, extrudeSettings2);\n let back = new Three.Mesh(geometry22, materialTexture);\n\n\n //geometry = new Three.BoxGeometry( 0.38, 0.02, 0.15);\n //let back = new Three.Mesh( geometry, material );\n back.rotation.x += Math.PI / 2;\n back.position.z += 0.5 * 12 / 8;\n back.position.y += 0.03;\n back.position.x += -0.025;\n\n chair.add(back);\n chair.add(plane);\n chair.add(p1);\n chair.add(p2);\n chair.add(p3);\n chair.add(p4);\n chair.add(p5);\n chair.add(p6);\n\n\n let aa = new Three.Box3().setFromObject(chair);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n // if (element.selected) {\n // let bbox = new Three.BoxHelper(chair, 0x99c3fb);\n // bbox.material.linewidth = 5;\n // bbox.renderOrder = 1000;\n // bbox.material.depthTest = false;\n // chair.add(bbox);\n // }\n\n chair.rotation.x += -Math.PI / 2;\n chair.position.y += altitude;\n chair.position.x += -WIDTH / 3.5;\n chair.position.z += DEPTH / 4;\n chair.scale.set(1.5 * WIDTH / deltaZ, DEPTH / 1.5 / deltaX, HEIGHT / deltaY);\n\n return chair;\n };\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let brown = new Three.MeshLambertMaterial({color: 0x9b8c75});\n let grey = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let raggio = .03;\n\n let bancoDouble = new Three.Object3D();\n\n let geometry = new Three.BoxGeometry(newWidth + newWidth / 6, newHeight / 20, newDepth + newDepth / 4);\n\n let boxMaterials = [\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({color: 0x669966}), //top\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture})\n ];\n\n let tMaterial = new Three.MeshFaceMaterial(boxMaterials);\n\n let plane = new Three.Mesh(geometry, tMaterial);\n plane.position.y = newHeight;\n bancoDouble.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry(raggio, raggio, newHeight, 32);\n\n let geometry2 = new Three.BoxGeometry(newWidth, newHeight / 20, newDepth);\n let plane2 = new Three.Mesh(geometry2, materialTexture);\n plane2.position.y = newHeight / 2 + newHeight / 4;\n bancoDouble.add(plane2);\n\n let geometry3 = new Three.BoxGeometry(newWidth, newHeight / 10, newDepth / 20);\n let plane3 = new Three.Mesh(geometry3, materialTexture);\n plane3.position.y = newHeight / 2 + newHeight / 4 + newHeight / 16;\n plane3.position.z = newDepth / 3 + newDepth / 5;\n bancoDouble.add(plane3);\n\n let p1 = new Three.Mesh(geometry_legs, grey);\n p1.position.x = newWidth / 2;\n p1.position.z = newDepth / 2;\n p1.position.y = newHeight / 2;\n p1.scale.set(.5, 1, .75);\n bancoDouble.add(p1);\n\n let p2 = new Three.Mesh(geometry_legs, grey);\n p2.position.x = newWidth / 2;\n p2.position.z = -newDepth / 2;\n p2.position.y = newHeight / 2;\n p2.scale.set(.5, 1, .75);\n bancoDouble.add(p2);\n\n let p3 = new Three.Mesh(geometry_legs, grey);\n p3.position.x = -newWidth / 2;\n p3.position.z = newDepth / 2;\n p3.position.y = newHeight / 2;\n p3.scale.set(.5, 1, .75);\n bancoDouble.add(p3);\n\n let p4 = new Three.Mesh(geometry_legs, grey);\n p4.position.x = -newWidth / 2;\n p4.position.z = -newDepth / 2;\n p4.position.y = newHeight / 2;\n p4.scale.set(.5, 1, .75);\n bancoDouble.add(p4);\n\n\n let valueObject = new Three.Box3().setFromObject(bancoDouble);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n\n // if (element.selected) {\n // let bbox = new Three.BoxHelper(bancoDouble, 0x99c3fb);\n // bbox.material.linewidth = 5;\n // bbox.renderOrder = 1000;\n // bbox.material.depthTest = false;\n // bancoDouble.add(bbox);\n // }\n\n bancoDouble.rotation.y += Math.PI;\n bancoDouble.position.y += newAltitude;\n bancoDouble.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n let chair = makeChair(newAltitude);\n chair.position.z += 30;\n chair.position.x += 25;\n\n let chair2 = makeChair(newAltitude);\n chair2.position.z += 30;\n chair2.position.x -= 25;\n\n let deskAndChairDouble = new Three.Object3D();\n deskAndChairDouble.add(bancoDouble);\n deskAndChairDouble.add(chair);\n deskAndChairDouble.add(chair2);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(deskAndChairDouble, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n deskAndChairDouble.add(bbox);\n }\n\n // deskAndChairDouble.position.z-=DEPTH/4;\n\n deskAndChairDouble.position.z -= (CHAIR_DEPTH / 2 - (CHAIR_TRANSLATION - CHAIR_DEPTH / 2)) / 2;\n\n let boundingBoxDeskAndChair = new Three.Box3().setFromObject(deskAndChairDouble);\n\n let deltaZDeskAndChair = Math.abs(boundingBoxDeskAndChair.max.z - boundingBoxDeskAndChair.min.z);\n\n deskAndChairDouble.scale.set(1, 1, TOTAL_DEPTH / deltaZDeskAndChair); //Fix Depth problem with the chair\n\n return Promise.resolve(deskAndChairDouble);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/schneider/schneider.png\";","module.exports = __webpack_public_path__ + \"catalog/items/schneider/monitor.png\";","import * as Three from 'three';\nimport React from 'react';\n\n//color\nlet grey = new Three.MeshLambertMaterial({color: 0xd3d3d3});\nlet white = new Three.MeshLambertMaterial({color: 0xf5f5f5});\nlet darkGrey = new Three.MeshLambertMaterial({color: 0x3d3d3d});\nlet black = new Three.MeshLambertMaterial({color: 0x000000});\nlet boxMaterials = [ grey, darkGrey, grey, grey, grey, grey];\nlet boxMaterials2 = [ grey, grey, grey, grey, grey, darkGrey];\nlet boxMaterials3 = [ grey, grey, grey, grey, darkGrey, grey];\n\n\nlet textureLoader = new Three.TextureLoader();\nlet lcdTexture = textureLoader.load(require('./monitor.png'));\n\n//dimensions\nlet width = 258;\nlet depth = 87;\nlet height = 195;\nlet filterWidth = 48;\nlet filterDepth = 10;\nlet filterHeight = 52;\nlet gridThickness = 3;\n\n\nfunction makeObjectMaxLOD(){\n\n let schneider = new Three.Mesh();\n\n let gridVerticalElemGeometry = new Three.BoxGeometry(gridThickness/2,filterHeight,filterDepth);\n let gridHorizontalElemGeometry = new Three.BoxGeometry(filterWidth,gridThickness,filterDepth);\n\n let filter = new Three.Object3D();\n\n for(let i=0.25; i<48; i+=3.32){\n let gridVerticalElem = new Three.Mesh(gridVerticalElemGeometry, white);\n gridVerticalElem.position.x = i;\n gridVerticalElem.position.y = 26;\n filter.add(gridVerticalElem);\n }\n\n for(let i=0; i<52; i+=7.4){\n let gridHorizontalElem = new Three.Mesh(gridHorizontalElemGeometry, white);\n gridHorizontalElem.position.x = 23.5;\n gridHorizontalElem.position.y = i;\n filter.add(gridHorizontalElem);\n }\n\n for(let k=0;k<=54;k+=46){\n for(let j=10;j<240;j+=48){\n let filterClone = filter.clone();\n filterClone.position.x+=j;\n filterClone.position.y+=k;\n filterClone.rotation.x-=Math.PI/6;\n if(k===0)\n filterClone.position.z+=18;\n else\n filterClone.position.z-=10;\n schneider.add(filterClone);\n }\n }\n\n let panelSideElemGeometry = new Three.BoxGeometry(5,height,depth);\n let panelSideElemLeft = new Three.Mesh(panelSideElemGeometry, boxMaterials);\n panelSideElemLeft.rotation.y+=Math.PI;\n schneider.add(panelSideElemLeft);\n\n let panelSideElemRight = new Three.Mesh(panelSideElemGeometry, boxMaterials);\n panelSideElemRight.position.x+=258;\n schneider.add(panelSideElemRight);\n\n let panelSideBackElemGeometry = new Three.BoxGeometry(width,height,5);\n let panelSideElemBack = new Three.Mesh(panelSideBackElemGeometry, boxMaterials3);\n panelSideElemBack.position.x+=129;\n panelSideElemBack.position.z-=43.5;\n schneider.add(panelSideElemBack);\n\n let boxElemGeometry = new Three.BoxGeometry(width/3,height/3,depth/8);\n let boxElem = new Three.Mesh(boxElemGeometry, grey);\n boxElem.position.x+=212;\n boxElem.position.y+=65;\n boxElem.position.z+=35;\n schneider.add(boxElem);\n\n let panelSideFrontElemGeometry = new Three.BoxGeometry(width/3,height,5);\n let panelSideElemFront_P1 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P1.position.x+=43.5;\n panelSideElemFront_P1.position.z+=43.5;\n schneider.add(panelSideElemFront_P1);\n\n let panelSideElemFront_P2 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P2.position.x+=130;\n panelSideElemFront_P2.position.z+=43.5;\n schneider.add(panelSideElemFront_P2);\n\n let panelSideElemFront_P3 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P3.position.x+=217;\n panelSideElemFront_P3.position.z+=43.5;\n schneider.add(panelSideElemFront_P3);\n\n let planeGeometryFront = new Three.PlaneGeometry(width/16,height/12);\n let planeMaterialFront = new Three.MeshLambertMaterial({map:lcdTexture, transparent:true, overdraw:true});\n\n let planeGeometryFront1 = new Three.PlaneGeometry(width/8,height/3);\n let panelBase = new Three.Mesh(planeGeometryFront1,darkGrey);\n panelBase.position.set(217,65,46.5);\n schneider.add(panelBase);\n\n let lcd = new Three.Mesh(planeGeometryFront,planeMaterialFront);\n lcd.position.set(217,60,46.55);\n schneider.add(lcd);\n\n let panelSideMiddleElemGeometry = new Three.BoxGeometry(width,5,depth);\n let panelSideElemMiddle = new Three.Mesh(panelSideMiddleElemGeometry, grey);\n panelSideElemMiddle.position.x+=129;\n panelSideElemMiddle.position.y-=10;\n schneider.add(panelSideElemMiddle);\n\n let panelSideElemFooter = new Three.Mesh(panelSideMiddleElemGeometry, black);\n panelSideElemFooter.position.x+=129;\n panelSideElemFooter.position.y-=97.5;\n schneider.add(panelSideElemFooter);\n\n return schneider\n}\n\nfunction makeObjectMinLOD(){\n\n let schneider = new Three.Mesh();\n\n let gridVerticalElemGeometry = new Three.BoxGeometry(gridThickness/2,filterHeight,filterDepth);\n let gridHorizontalElemGeometry = new Three.BoxGeometry(filterWidth,gridThickness,filterDepth);\n\n let filter = new Three.Object3D();\n\n for(let i=0.25; i<48; i+=3.32){\n let gridVerticalElem = new Three.Mesh(gridVerticalElemGeometry, white);\n gridVerticalElem.position.x = i;\n gridVerticalElem.position.y = 26;\n filter.add(gridVerticalElem);\n }\n\n for(let i=0; i<52; i+=7.4){\n let gridHorizontalElem = new Three.Mesh(gridHorizontalElemGeometry, white);\n gridHorizontalElem.position.x = 23.5;\n gridHorizontalElem.position.y = i;\n filter.add(gridHorizontalElem);\n }\n\n for(let k=0;k<=54;k+=46){\n for(let j=10;j<240;j+=48){\n let filterClone = filter.clone();\n filterClone.position.x+=j;\n filterClone.position.y+=k;\n filterClone.rotation.x-=Math.PI/6;\n if(k===0)\n filterClone.position.z+=18;\n else\n filterClone.position.z-=10;\n schneider.add(filterClone);\n }\n }\n\n let panelSideElemGeometry = new Three.BoxGeometry(5,height,depth);\n let panelSideElemLeft = new Three.Mesh(panelSideElemGeometry, boxMaterials);\n panelSideElemLeft.rotation.y+=Math.PI;\n schneider.add(panelSideElemLeft);\n\n let panelSideElemRight = new Three.Mesh(panelSideElemGeometry, boxMaterials);\n panelSideElemRight.position.x+=258;\n schneider.add(panelSideElemRight);\n\n let panelSideBackElemGeometry = new Three.BoxGeometry(width,height,5);\n let panelSideElemBack = new Three.Mesh(panelSideBackElemGeometry, boxMaterials3);\n panelSideElemBack.position.x+=129;\n panelSideElemBack.position.z-=43.5;\n schneider.add(panelSideElemBack);\n\n let boxElemGeometry = new Three.BoxGeometry(width/3,height/3,depth/8);\n let boxElem = new Three.Mesh(boxElemGeometry, grey);\n boxElem.position.x+=212;\n boxElem.position.y+=65;\n boxElem.position.z+=35;\n schneider.add(boxElem);\n\n let panelSideFrontElemGeometry = new Three.BoxGeometry(width/3,height,5);\n let panelSideElemFront_P1 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P1.position.x+=43.5;\n panelSideElemFront_P1.position.z+=43.5;\n schneider.add(panelSideElemFront_P1);\n\n let panelSideElemFront_P2 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P2.position.x+=130;\n panelSideElemFront_P2.position.z+=43.5;\n schneider.add(panelSideElemFront_P2);\n\n let panelSideElemFront_P3 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P3.position.x+=217;\n panelSideElemFront_P3.position.z+=43.5;\n schneider.add(panelSideElemFront_P3);\n\n let planeGeometryFront = new Three.PlaneGeometry(width/16,height/12);\n let planeMaterialFront = new Three.MeshLambertMaterial({map:lcdTexture, transparent:true, overdraw:true});\n\n let planeGeometryFront1 = new Three.PlaneGeometry(width/8,height/3);\n let panelBase = new Three.Mesh(planeGeometryFront1,darkGrey);\n panelBase.position.set(217,65,46.5);\n schneider.add(panelBase);\n\n let lcd = new Three.Mesh(planeGeometryFront,planeMaterialFront);\n lcd.position.set(217,60,46.55);\n schneider.add(lcd);\n\n let panelSideMiddleElemGeometry = new Three.BoxGeometry(width,5,depth);\n let panelSideElemMiddle = new Three.Mesh(panelSideMiddleElemGeometry, grey);\n panelSideElemMiddle.position.x+=129;\n panelSideElemMiddle.position.y-=10;\n schneider.add(panelSideElemMiddle);\n\n let panelSideElemFooter = new Three.Mesh(panelSideMiddleElemGeometry, black);\n panelSideElemFooter.position.x+=129;\n panelSideElemFooter.position.y-=97.5;\n schneider.add(panelSideElemFooter);\n\n return schneider\n}\n\nexport default {\n name: \"schneider\",\n prototype: \"items\",\n\n info: {\n tag: ['metal'],\n title: \"schneider\",\n description: \"schneider\",\n image: require('./schneider.png')\n },\n properties: {\n patternColor: {\n label: \"pattern colori\",\n type: \"color\",\n defaultValue: \"#f5f4f4\"\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let fillValue = element.selected ? \"#99c3fb\" : element.properties.get('patternColor');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n return (\n \n \n \n {element.get('name')}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let rackMaxLOD=new Three.Object3D();\n\n let objectMaxLOD = makeObjectMaxLOD(width,height,depth);\n rackMaxLOD.add(objectMaxLOD.clone());\n rackMaxLOD.rotation.y=Math.PI;\n rackMaxLOD.position.x+= width/2;\n rackMaxLOD.position.y+= height/1.8 + newAltitude;\n\n /**************** LOD min ***********************/\n\n let rackMinLOD=new Three.Object3D();\n let objectMinLOD = makeObjectMinLOD(width,height,depth);\n rackMinLOD.add(objectMinLOD.clone());\n rackMinLOD.rotation.y=Math.PI;\n rackMinLOD.position.x+= width/2;\n rackMinLOD.position.y+= height/1.8 + newAltitude;\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(rackMaxLOD, 100);\n lod.addLevel(rackMinLOD, 1800);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n};\n","const tableStyle = {width: '100%', borderSpacing: '2px 0', marginBottom: '2px'};\nconst firstTdStyle = {width: '6em', textTransform:'capitalize'};\n\nconst PropertyStyle = {\n tableStyle,\n firstTdStyle\n};\n\nexport default PropertyStyle;\n","module.exports = __webpack_public_path__ + \"catalog/items/router-wifi/routerWifi.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 20;\nconst DEPTH = 5;\nconst HEIGHT= 20;\nconst RADIUS = 10;\n\n\nconst grey = new Three.MeshLambertMaterial({color:0x6b6b6b});\nconst grey2 = new Three.MeshLambertMaterial({color:0x939393});\nconst greenMaterial = new Three.MeshLambertMaterial({color:0x00FF00});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD(){\n\n let routerWifi = new Three.Mesh();\n\n let x=0;\n let y=0;\n let w=WIDTH;\n let h=HEIGHT;\n let r=RADIUS;\n\n let roundedRectShape = new Three.Shape();\n\n\n roundedRectShape.moveTo( x, y + r );\n roundedRectShape.lineTo( x, y + h - r );\n roundedRectShape.quadraticCurveTo( x, y + h, x + r, y + h );\n roundedRectShape.lineTo( x + w - r, y + h) ;\n roundedRectShape.quadraticCurveTo( x + w, y + h, x + w, y + h - r );\n roundedRectShape.lineTo( x + w, y + r );\n roundedRectShape.quadraticCurveTo( x + w, y, x + w - r, y );\n roundedRectShape.lineTo( x + r, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + r );\n\n\n let extrudeSettings = {\n steps: 2,\n depth: DEPTH/2,\n bevelEnabled: true,\n bevelThickness: DEPTH,\n bevelSize: 2*DEPTH,\n bevelSegments: 2\n };\n\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n\n mesh.position.set(-0.4,1,0.2);\n routerWifi.add(mesh);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: DEPTH/2,\n bevelEnabled: false,\n bevelThickness: DEPTH,\n bevelSize: 2*DEPTH,\n bevelSegments: 2\n };\n\n let geometry2 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, grey2 ) ;\n\n mesh2.position.set(-0.4,1,5.5);\n routerWifi.add(mesh2);\n\n let cylinderGeometry = new Three.CylinderGeometry(RADIUS/20,RADIUS/20,DEPTH,32,32);\n let led = new Three.Mesh(cylinderGeometry,greenMaterial);\n led.rotation.x+=Math.PI/2;\n led.position.set(WIDTH/2,WIDTH/2,1.2*DEPTH);\n routerWifi.add(led);\n\n let led2 = new Three.Mesh(cylinderGeometry,greenMaterial);\n led2.rotation.x+=Math.PI/2;\n led2.position.set(WIDTH/2+5,WIDTH/2,1.2*DEPTH);\n routerWifi.add(led2);\n\n let led3 = new Three.Mesh(cylinderGeometry,greenMaterial);\n led3.rotation.x+=Math.PI/2;\n led3.position.set(WIDTH/2-5,WIDTH/2,1.2*DEPTH);\n routerWifi.add(led3);\n\n return routerWifi;\n}\n\nfunction makeObjectMinLOD(){\n\n let routerWifi = new Three.Mesh();\n\n let x=0;\n let y=0;\n let w=WIDTH;\n let h=HEIGHT;\n let r=RADIUS;\n\n let roundedRectShape = new Three.Shape();\n\n roundedRectShape.moveTo( x, y + r );\n roundedRectShape.lineTo( x, y + h - r );\n roundedRectShape.quadraticCurveTo( x, y + h, x + r, y + h );\n roundedRectShape.lineTo( x + w - r, y + h) ;\n roundedRectShape.quadraticCurveTo( x + w, y + h, x + w, y + h - r );\n roundedRectShape.lineTo( x + w, y + r );\n roundedRectShape.quadraticCurveTo( x + w, y, x + w - r, y );\n roundedRectShape.lineTo( x + r, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + r );\n\n let extrudeSettings = {\n steps: 2,\n depth: DEPTH/2,\n bevelEnabled: true,\n bevelThickness: DEPTH,\n bevelSize: 2*DEPTH,\n bevelSegments: 2\n };\n\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n\n mesh.position.set(-0.4,1,0.2);\n routerWifi.add(mesh);\n\n return routerWifi;\n}\n\nexport default {\n name: \"router_wifi\",\n prototype: \"items\",\n\n info: {\n tag: ['telecomunication'],\n title: \"router Wifi\",\n description: \"router Wifi\",\n image: require('./routerWifi.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let routerWifiMaxLOD = new Three.Object3D();\n routerWifiMaxLOD.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(routerWifiMaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n routerWifiMaxLOD.position.y+= HEIGHT/2 +newAltitude;\n routerWifiMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**************** LOD min ***********************/\n\n let routerWifiMinLOD = new Three.Object3D();\n routerWifiMinLOD.add(objectMinLOD.clone());\n\n routerWifiMinLOD.position.y+= HEIGHT/2 +newAltitude;\n routerWifiMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(routerWifiMaxLOD, 200);\n lod.addLevel(routerWifiMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/recycling-bins/recycle.png\";","module.exports = __webpack_public_path__ + \"catalog/items/recycling-bins/recycling-bins.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 40;\nconst DEPTH = 40;\nconst HEIGHT = 70;\n\nexport default {\n name: \"recycling-bins\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"recycling bins\",\n description: \"Recycling-bins\",\n image: require('./recycling-bins.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n\n \n \n \n \n \n \n \n \n \n \n {this.info.description}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n\n let makeBin = (color) => {\n var cestino_carta = new Three.Object3D();\n\n var newWidth = 1;\n var newDepth = 1;\n var newHeight = 1.5;\n\n var grey = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n\n let coloredMaterial = new Three.MeshLambertMaterial({color: color});\n\n var geometry = new Three.BoxGeometry(newWidth, newHeight, newDepth);\n var plane1 = new Three.Mesh(geometry, coloredMaterial);\n plane1.position.y = newHeight / 2;\n cestino_carta.add(plane1);\n\n var geometry_legs = new Three.CylinderGeometry(newWidth / 2, newWidth / 2, newWidth, 32);\n var p1 = new Three.Mesh(geometry_legs, coloredMaterial);\n p1.rotation.x += Math.PI / 2;\n p1.position.set(0, .75, 0);\n plane1.add(p1);\n\n var points = [];\n\n points.push(new Three.Vector2(0.4, -0.3));\n points.push(new Three.Vector2(0.4, -0.3));\n points.push(new Three.Vector2(0.4, 0.3));\n points.push(new Three.Vector2(0.4, 0.3));\n\n var geometry = new Three.LatheGeometry(points, 200, 0, Math.PI / 2);\n var etichetta = new Three.Mesh(geometry, grey);\n etichetta.rotation.y += Math.PI;\n etichetta.rotation.x += Math.PI / 2;\n etichetta.position.set(-.1, .8, 0);\n plane1.add(etichetta);\n\n var texture = new Three.TextureLoader().load(require('./recycle.png'));\n\n var planeGeometry2 = new Three.PlaneGeometry(.5, .5);\n var planeMaterial2 = new Three.MeshLambertMaterial({map: texture, transparent: true});\n var plane2 = new Three.Mesh(planeGeometry2, planeMaterial2);\n plane2.rotation.y += -Math.PI / 2;\n plane2.position.set(-.51, .3, 0);\n\n plane1.add(plane2);\n\n let value = new Three.Box3().setFromObject(cestino_carta);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n cestino_carta.position.y += newAltitude;\n cestino_carta.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n cestino_carta.rotation.y -= Math.PI/2;\n\n return cestino_carta;\n\n };\n\n let bins = new Three.Object3D();\n\n // I create all trash bins\n\n let metalBin = makeBin(0x0000ff);\n let yellowBin = makeBin(0xffff00);\n let brownBin = makeBin(0xeacb9d);\n let paperBin = makeBin(0xffffff);\n let glassBin = makeBin(0x00ff00);\n\n yellowBin.position.x += 50;\n brownBin.position.x += 100;\n paperBin.position.x += 150;\n glassBin.position.x += 200;\n\n bins.add(metalBin);\n bins.add(yellowBin);\n bins.add(brownBin);\n bins.add(paperBin);\n bins.add(glassBin);\n\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(bins, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n bins.add(bbox);\n }\n\n bins.position.x -= 100;\n\n return Promise.resolve(bins);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/radiator-old-style/OldStyleRadiator.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst DEPTH = 20;\n\n//colors\nconst grey = new Three.MeshLambertMaterial( {color: 0xeae6ca} );\n\nfunction makeObjectMaxLOD(WIDTH,HEIGHT) {\n\n let OldStyleRadiator = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=DEPTH;\n let height=HEIGHT;\n let radius=2.5;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let holePath1 = new Three.Path();\n holePath1.moveTo( DEPTH/6, HEIGHT*.16 );\n holePath1.arc(0, HEIGHT*.07, DEPTH/8 ,0, Math.PI,false);\n holePath1.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath1 );\n\n let holePath4 = new Three.Path();\n holePath4.moveTo( DEPTH/6, HEIGHT*.16);\n holePath4.arc(0, HEIGHT*0.725, DEPTH/8 ,0, Math.PI,false);\n holePath4.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath4 );\n\n let holePath7 = new Three.Path();\n holePath7.moveTo( DEPTH/6, HEIGHT*.16 );\n holePath7.arc(0, HEIGHT*.4, DEPTH/8 ,0, Math.PI,false);\n holePath7.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath7 );\n\n ////////////////////////////////////////////////\n\n let holePath2 = new Three.Path();\n holePath2.moveTo( DEPTH/2, HEIGHT*.2 );\n holePath2.arc(0, HEIGHT*.07, DEPTH/8 ,0, Math.PI,false);\n holePath2.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath2 );\n\n let holePath5 = new Three.Path();\n holePath5.moveTo( DEPTH/2, HEIGHT*.5 );\n holePath5.arc(0, HEIGHT*.0725, DEPTH/8 ,0, Math.PI,false);\n holePath5.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath5 );\n\n let holePath8 = new Three.Path();\n holePath8.moveTo( DEPTH/2, HEIGHT*1.25);\n holePath8.arc(0, -HEIGHT*.4, DEPTH/8 ,0, Math.PI,false);\n holePath8.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath8 );\n\n ////////////////////////////////////////////\n\n let holePath3 = new Three.Path();\n holePath3.moveTo( 0.85*DEPTH, HEIGHT*.16 );\n holePath3.arc(0, HEIGHT*.07, DEPTH/8 ,0, Math.PI,false);\n holePath3.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath3 );\n\n let holePath6 = new Three.Path();\n holePath6.moveTo( 0.85*DEPTH, HEIGHT*.16 );\n holePath6.arc(0, HEIGHT*.4, DEPTH/8 ,0, Math.PI,false);\n holePath6.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath6 );\n\n let holePath9 = new Three.Path();\n holePath9.moveTo( 0.85*DEPTH, HEIGHT*.16 );\n holePath9.arc(0, HEIGHT*.725,DEPTH/8 ,0, Math.PI,false);\n holePath9.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath9 );\n\n\n let extrudeSettings = {\n steps: 1,\n depth: 4.5,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for(let i = 2.5; i<=WIDTH-5; i+=5){\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(i,height/20,DEPTH);\n mesh.rotation.y += Math.PI/2;\n OldStyleRadiator.add(mesh);\n }\n\n for (let i = 10; i <= HEIGHT; i+=HEIGHT - 10) {\n\n let geometry1 = new Three.CylinderGeometry( DEPTH/12,DEPTH/12, WIDTH, 32 );\n let tube = new Three.Mesh(geometry1,grey);\n tube.rotation.x+=Math.PI/2;\n tube.rotation.z+=Math.PI/2;\n tube.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube);\n\n let geometry2 = new Three.CylinderGeometry( DEPTH/8, DEPTH/8, WIDTH-2.5, 6 );\n let tube2 = new Three.Mesh(geometry2,grey);\n tube2.rotation.x+=Math.PI/2;\n tube2.rotation.z+=Math.PI/2;\n tube2.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube2);\n\n let geometry3 = new Three.CylinderGeometry( DEPTH/7, DEPTH/7, WIDTH-5, 32 );\n let tube3 = new Three.Mesh(geometry3,grey);\n tube3.rotation.x+=Math.PI/2;\n tube3.rotation.z+=Math.PI/2;\n tube3.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube3);\n\n }\n\n return OldStyleRadiator\n}\n\nfunction makeObjectMinLOD(WIDTH,HEIGHT) {\n\n let OldStyleRadiator = new Three.Mesh();\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=DEPTH;\n let height=HEIGHT;\n let radius=2.5;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 1,\n depth: 4.5,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for(let i = 2.5; i<=WIDTH-5; i+=5){\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(i,height/20,DEPTH);\n mesh.rotation.y += Math.PI/2;\n OldStyleRadiator.add(mesh);\n }\n\n for (let i = HEIGHT/10; i <= HEIGHT; i+=HEIGHT - 10) {\n\n let geometry1 = new Three.CylinderGeometry( DEPTH/12,DEPTH/12, WIDTH, 32 );\n let tube = new Three.Mesh(geometry1,grey);\n tube.rotation.x+=Math.PI/2;\n tube.rotation.z+=Math.PI/2;\n tube.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube);\n\n let geometry2 = new Three.CylinderGeometry( DEPTH/8, DEPTH/8, WIDTH-2.5, 6 );\n let tube2 = new Three.Mesh(geometry2,grey);\n tube2.rotation.x+=Math.PI/2;\n tube2.rotation.z+=Math.PI/2;\n tube2.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube2);\n\n let geometry3 = new Three.CylinderGeometry( DEPTH/7, DEPTH/7, WIDTH-5, 32 );\n let tube3 = new Three.Mesh(geometry3,grey);\n tube3.rotation.x+=Math.PI/2;\n tube3.rotation.z+=Math.PI/2;\n tube3.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube3);\n\n }\n return OldStyleRadiator\n}\n\n\nexport default {\n name: \"radiator-old-style\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'cast iron'],\n title: \"cast iron radiator\",\n description: \"cast iron radiator\",\n image: require('./OldStyleRadiator.png')\n },\n\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 20,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let WIDTH = element.properties.get('width').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let WIDTH = element.properties.get('width').get('length');\n let HEIGHT = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n /********* lod max *************/\n\n let OldStyleRadiatorMaxLOD = new Three.Object3D();\n OldStyleRadiatorMaxLOD.add(makeObjectMaxLOD(WIDTH,HEIGHT).clone());\n\n let value = new Three.Box3().setFromObject(OldStyleRadiatorMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n OldStyleRadiatorMaxLOD.position.z-= DEPTH/2;\n OldStyleRadiatorMaxLOD.position.x-= WIDTH/2;\n OldStyleRadiatorMaxLOD.position.y+= -HEIGHT/20+newAltitude;\n OldStyleRadiatorMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /********* lod min *************/\n\n let OldStyleRadiatorMinLOD = new Three.Object3D();\n OldStyleRadiatorMinLOD.add(makeObjectMinLOD(WIDTH,HEIGHT).clone());\n OldStyleRadiatorMinLOD.position.z-= DEPTH/2;\n OldStyleRadiatorMinLOD.position.x-= WIDTH/2;\n OldStyleRadiatorMinLOD.position.y+= -HEIGHT/20+newAltitude;\n OldStyleRadiatorMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(OldStyleRadiatorMaxLOD, 400);\n lod.addLevel(OldStyleRadiatorMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/radiator-modern-style/ModernStyleRadiator.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst DEPTH = 10;\n\nconst grey = new Three.MeshLambertMaterial( {color: 0xeae6ca} );\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth){\n\n let ModernRadiator = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=9.5;\n let height=newHeight-25;\n let radius=2.5;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 1,\n depth: 2.5,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for(let i = 5; i<=newWidth-7.5; i+=10){\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(i,0,2.5);\n ModernRadiator.add(mesh);\n\n let mesh2 = new Three.Mesh( geometry, grey ) ;\n mesh2.position.set(i,5,0);\n mesh2.scale.set(1,1,1);\n ModernRadiator.add(mesh2);\n\n let mesh3 = new Three.Mesh( geometry, grey ) ;\n mesh3.position.set(i,5,-2.5);\n mesh3.scale.set(1,1.05,1);\n ModernRadiator.add(mesh3);\n\n let mesh4 = new Three.Mesh( geometry, grey ) ;\n mesh4.position.set(i,6,-4);\n mesh4.scale.set(1,1.2,1);\n ModernRadiator.add(mesh4);\n\n let mesh5 = new Three.Mesh( geometry, grey ) ;\n mesh5.position.set(i+6,newHeight-25,-2.5);\n mesh5.rotation.y-=Math.PI/2;\n mesh5.scale.set(.8,.18,.8);\n ModernRadiator.add(mesh5);\n\n let mesh6 = new Three.Mesh( geometry, grey ) ;\n mesh6.position.set(i,newHeight-5,5.5);\n mesh6.rotation.x-=Math.PI/2;\n mesh6.scale.set(1,.13,.8);\n ModernRadiator.add(mesh6);\n\n let mesh7 = new Three.Mesh( geometry, grey ) ;\n mesh7.position.set(i,newHeight - 17.5,-2);\n mesh7.rotation.x+=Math.PI/4;\n mesh7.scale.set(1,.14,.4);\n ModernRadiator.add(mesh7);\n\n let mesh8 = new Three.Mesh( geometry, grey ) ;\n mesh8.position.set(i,newHeight-11,5);\n mesh8.scale.set(1,.1,.4);\n ModernRadiator.add(mesh8);\n\n }\n\n\n for (let i = 5; i <= newHeight; i+=newHeight - 12.5) {\n\n let geometry1 = new Three.CylinderGeometry( newDepth/6,newDepth/6, newWidth, 32 );\n let tube = new Three.Mesh(geometry1,grey);\n tube.rotation.x+=Math.PI/2;\n tube.rotation.z+=Math.PI/2;\n tube.position.set(newWidth/2,i,newDepth/6);\n ModernRadiator.add(tube);\n\n let geometry2 = new Three.CylinderGeometry( newDepth/4, newDepth/4, newWidth-2.5, 6 );\n let tube2 = new Three.Mesh(geometry2,grey);\n tube2.rotation.x+=Math.PI/2;\n tube2.rotation.z+=Math.PI/2;\n tube2.position.set(newWidth/2,i,newDepth/6);\n ModernRadiator.add(tube2);\n\n let geometry3 = new Three.CylinderGeometry( newDepth/3.5, newDepth/3.5, newWidth-5, 32 );\n let tube3 = new Three.Mesh(geometry3,grey);\n tube3.rotation.x+=Math.PI/2;\n tube3.rotation.z+=Math.PI/2;\n tube3.position.set(newWidth/2,i,newDepth/6);\n ModernRadiator.add(tube3);\n\n }\n\n return ModernRadiator\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth){\n\n let ModernRadiator = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=9.5;\n let height=newHeight-25;\n let radius=0.25;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 1,\n depth: 2.5,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for(let i = 5; i<=newWidth-7.5; i+=10){\n\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(i,0,2.5);\n ModernRadiator.add(mesh);\n\n let mesh3 = new Three.Mesh( geometry, grey ) ;\n mesh3.position.set(i,5,-2.5);\n mesh3.scale.set(1,1.05,1);\n ModernRadiator.add(mesh3);\n\n let mesh4 = new Three.Mesh( geometry, grey ) ;\n mesh4.position.set(i,6,-4);\n mesh4.scale.set(1,1.2,1);\n ModernRadiator.add(mesh4);\n\n let mesh6 = new Three.Mesh( geometry, grey ) ;\n mesh6.position.set(i,newHeight-5,5.5);\n mesh6.rotation.x-=Math.PI/2;\n mesh6.scale.set(1,.13,.8);\n ModernRadiator.add(mesh6);\n\n let mesh7 = new Three.Mesh( geometry, grey ) ;\n mesh7.position.set(i,newHeight - 17.5,-2);\n mesh7.rotation.x+=Math.PI/4;\n mesh7.scale.set(1,.14,.4);\n ModernRadiator.add(mesh7);\n\n let mesh8 = new Three.Mesh( geometry, grey ) ;\n mesh8.position.set(i,newHeight-11,5);\n mesh8.scale.set(1,.1,.4);\n ModernRadiator.add(mesh8);\n\n }\n\n\n for (let i = newDepth/6; i <= newHeight; i+=newHeight - 10) {\n\n let geometry1 = new Three.CylinderGeometry( newDepth/6,newDepth/6, newWidth, 8 );\n let tube = new Three.Mesh(geometry1,grey);\n tube.rotation.x+=Math.PI/2;\n tube.rotation.z+=Math.PI/2;\n tube.position.set(newWidth/2,i,newDepth/6);\n ModernRadiator.add(tube);\n\n }\n\n return ModernRadiator\n}\n\n\nexport default {\n name: \"termosifone_alluminio\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"aluminum radiator\",\n description: \"aluminum radiator\",\n image: require('./ModernStyleRadiator.png')\n },\n\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 20,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let WIDTH = element.properties.get('width').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = DEPTH;\n let newHeight = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************ lod max **************/\n\n let ModernRadiatorMaxLOD = new Three.Object3D();\n ModernRadiatorMaxLOD.add(makeObjectMaxLOD(newWidth,newHeight,newDepth).clone());\n\n let value = new Three.Box3().setFromObject(ModernRadiatorMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n ModernRadiatorMaxLOD.position.x-= newWidth/2;\n ModernRadiatorMaxLOD.position.y+= 5 + newAltitude;\n ModernRadiatorMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n // let bigger = new Three.Object3D();\n //\n // bigger.add(ModernRadiator);\n //\n // let pivot = new Three.Mesh(new Three.SphereGeometry(10), new Three.MeshBasicMaterial({color:0xff0000}));\n // bigger.add(pivot);\n\n /************ lod min **************/\n\n let ModernRadiatorMinLOD = new Three.Object3D();\n ModernRadiatorMinLOD.add(makeObjectMinLOD(newWidth,newHeight,newDepth).clone());\n ModernRadiatorMinLOD.position.x-= newWidth/2;\n ModernRadiatorMinLOD.position.y+= 5 + newAltitude;\n ModernRadiatorMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(ModernRadiatorMaxLOD, 200);\n lod.addLevel(ModernRadiatorMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod); }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/projector/projector.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst white = new Three.MeshLambertMaterial( {color: 0xFFFFFF} );\nconst grey = new Three.MeshLambertMaterial( {color: 0xCCCCCC} );\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth){\n\n let projector = new Three.Mesh();\n let radius=0.5;\n\n let geometry = new Three.CylinderGeometry(radius,radius,newWidth,32,32,false,0,Math.PI);\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(newWidth/2,newHeight/2.75,0);\n mesh.rotation.z+=Math.PI/2;\n mesh.rotation.x+=Math.PI;\n projector.add(mesh);\n\n let g1 = new Three.PlaneGeometry(2*radius,newWidth);\n let m1 = new Three.Mesh(g1,grey);\n m1.rotation.z+=Math.PI/2;\n m1.rotation.x-=Math.PI/2;\n m1.position.set(newWidth/2,newHeight/2.75,0);\n projector.add(m1);\n\n let geometry2 = new Three.BoxGeometry(newWidth-newWidth/20,newHeight-newHeight/8,newDepth/20);\n let mesh2 = new Three.Mesh( geometry2, white ) ;\n mesh2.position.set(newWidth/2,0.8*newHeight,0);\n projector.add(mesh2);\n\n let geometry3 = new Three.BoxGeometry(newWidth,newHeight/50,newDepth/20);\n let mesh3 = new Three.Mesh( geometry3, grey ) ;\n mesh3.position.set(newWidth/2,newHeight+newHeight/4,0);\n projector.add(mesh3);\n\n let geometry4 = new Three.BoxGeometry(newWidth,newDepth/20,newHeight/20);\n let mesh4 = new Three.Mesh( geometry4, grey ) ;\n mesh4.rotation.x+=Math.PI/2;\n mesh4.position.set(newWidth/2,newHeight+newHeight/4.25,newDepth/20);\n projector.add(mesh4);\n\n let mesh5 = new Three.Mesh( geometry4, grey ) ;\n mesh5.rotation.x+=Math.PI/2;\n mesh5.position.set(newWidth/2,newHeight+newHeight/4.25,-newDepth/20);\n projector.add(mesh5);\n\n return projector\n\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth){\n\n let projector = new Three.Mesh();\n\n let radius=0.5;\n\n let geometry = new Three.CylinderGeometry(radius,radius,newWidth,32,32,false,0,Math.PI);\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(newWidth/2,newHeight/2.75,0);\n mesh.rotation.z+=Math.PI/2;\n mesh.rotation.x+=Math.PI;\n projector.add(mesh);\n\n let g1 = new Three.PlaneGeometry(2*radius,newWidth);\n let m1 = new Three.Mesh(g1,grey);\n m1.rotation.z+=Math.PI/2;\n m1.rotation.x-=Math.PI/2;\n m1.position.set(newWidth/2,newHeight/2.75,0);\n projector.add(m1);\n\n let geometry2 = new Three.BoxGeometry(newWidth-newWidth/20,newHeight-newHeight/8,newDepth/20);\n let mesh2 = new Three.Mesh( geometry2, white ) ;\n mesh2.position.set(newWidth/2,0.8*newHeight,0);\n projector.add(mesh2);\n\n let geometry3 = new Three.BoxGeometry(newWidth,newHeight/50,newDepth/20);\n let mesh3 = new Three.Mesh( geometry3, grey ) ;\n mesh3.position.set(newWidth/2,newHeight+newHeight/4,0);\n projector.add(mesh3);\n\n let geometry4 = new Three.BoxGeometry(newWidth,newDepth/20,newHeight/20);\n let mesh4 = new Three.Mesh( geometry4, grey ) ;\n mesh4.rotation.x+=Math.PI/2;\n mesh4.position.set(newWidth/2,newHeight+newHeight/4.25,newDepth/20);\n projector.add(mesh4);\n\n let mesh5 = new Three.Mesh( geometry4, grey ) ;\n mesh5.rotation.x+=Math.PI/2;\n mesh5.position.set(newWidth/2,newHeight+newHeight/4.25,-newDepth/20);\n projector.add(mesh5);\n\n return projector\n\n}\n\n\nexport default {\n name: \"projector\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'wood', 'metal'],\n title: \"projector\",\n description: \"projector\",\n image: require('./projector.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 300,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 150,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 10,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n let newWidth = element.properties.get('width').get('length');\n let newHeight = element.properties.get('height').get('length');\n let newDepth = element.properties.get('depth').get('length');\n\n /*********** lod max ***************/\n\n let projectorMaxLOD = new Three.Object3D();\n projectorMaxLOD.add(makeObjectMaxLOD(newWidth,newHeight,newDepth).clone());\n\n let value = new Three.Box3().setFromObject(projectorMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n projectorMaxLOD.rotation.y+=Math.PI;\n projectorMaxLOD.position.y+=-newHeight/3.2 + newAltitude;\n projectorMaxLOD.position.x+=newWidth/2;\n projectorMaxLOD.position.z+=newDepth/4;\n projectorMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /*********** lod min *****************/\n\n let projectorMinLOD = new Three.Object3D();\n projectorMinLOD.add(makeObjectMinLOD(newWidth,newHeight,newDepth).clone());\n projectorMinLOD.rotation.y+=Math.PI;\n projectorMinLOD.position.y+=-newHeight/3.2 + newAltitude;\n projectorMinLOD.position.x+=newWidth/2;\n projectorMinLOD.position.z+=newDepth/4;\n projectorMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(projectorMaxLOD, 200);\n lod.addLevel(projectorMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/naspo/naspo.png\";","module.exports = __webpack_public_path__ + \"catalog/items/naspo/naspofront.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 50;\nconst DEPTH = 30;\nconst HEIGHT = 80;\n\nconst red = new Three.MeshPhongMaterial({color: 0xAA0000} );\nconst grey = new Three.MeshLambertMaterial({color:0xAAAAAA});\nconst black = new Three.MeshLambertMaterial({color:0x000000});\nconst textureLoader = new Three.TextureLoader();\nconst frontTexture = textureLoader.load(require('./naspofront.png'));\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMiddleLOD = makeObjectMiddleLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD(){\n\n let naspo = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let radius = 0.1;\n let height = 1.2;\n let width = 0.8;\n let depth = 0.6;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: depth/3,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometryBody = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometryBody, red ) ;\n mesh.position.set(0.1,1.1,0.1);\n naspo.add(mesh);\n\n let geometryBox = new Three.BoxGeometry(0.95,1.05,0.2);\n let mesh1 = new Three.Mesh( geometryBox, red );\n mesh1.position.set(0.5,1.7,0.2);\n naspo.add(mesh1);\n\n let geometryPlane = new Three.PlaneGeometry(0.6,0.9);\n let mesh3 = new Three.Mesh( geometryPlane, new Three.MeshPhongMaterial({map:frontTexture, transparent:true} ) );\n mesh3.position.set(0.5,1.7,0.31);\n naspo.add(mesh3);\n\n let cylinderGeometry1 = new Three.CylinderGeometry(0.05,0.05,0.025,80,80);\n let handle_p1 = new Three.Mesh(cylinderGeometry1,grey);\n handle_p1.position.set(0.17,1.7,0.3);\n handle_p1.rotation.x=Math.PI/2;\n naspo.add(handle_p1);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.051,0.051,0.05,80,80,true);\n black.side=Three.DoubleSide;\n let handle_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle_p2.position.set(0.17,1.7,0.31);\n handle_p2.rotation.x=Math.PI/2;\n naspo.add(handle_p2);\n\n let geometry = new Three.BoxGeometry(0.1,0.02,0.02);\n let handle_p3 = new Three.Mesh( geometry,black );\n handle_p3.position.set(0.17,1.7,0.32);\n naspo.add(handle_p3);\n\n let cylinderGeometry4 = new Three.CylinderGeometry(0.015,0.015,0.1,80,80);\n let pivot1 = new Three.Mesh(cylinderGeometry4,black);\n pivot1.position.set(0.99,1.9,0.28);\n naspo.add(pivot1);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(0.015,0.015,0.1,80,80);\n let pivot2 = new Three.Mesh(cylinderGeometry5,black);\n pivot2.position.set(0.99,1.4,0.28);\n naspo.add(pivot2);\n\n let roundedRectShape2 = new Three.Shape();\n\n let width2=1.05;\n let height2=1.3;\n let radius2=0.1;\n\n roundedRectShape2.moveTo( x, y + radius2 );\n roundedRectShape2.lineTo( x, y + height2 - radius2 );\n roundedRectShape2.quadraticCurveTo( x, y + height2, x + radius2, y + height2 );\n roundedRectShape2.lineTo( x + width2 - radius2, y + height2) ;\n roundedRectShape2.quadraticCurveTo( x + width2, y + height2, x + width2, y + height2 - radius2 );\n roundedRectShape2.lineTo( x + width2, y + radius2 );\n roundedRectShape2.quadraticCurveTo( x + width2, y, x + width2 - radius2, y );\n roundedRectShape2.lineTo( x + radius2, y );\n roundedRectShape2.quadraticCurveTo( x, y, x, y + radius2 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: depth,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry2 = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, red ) ;\n mesh2.position.set(0,1.05,-0.33);\n naspo.add(mesh2);\n\n return naspo\n}\n\nfunction makeObjectMiddleLOD(){\n\n let naspo = new Three.Mesh();\n\n let roundedRectShape2 = new Three.Shape();\n\n let x=0;\n let y=0;\n let width2=1.05;\n let height2=1.3;\n let radius2=0.1;\n let depth=0.6;\n\n roundedRectShape2.moveTo( x, y + radius2 );\n roundedRectShape2.lineTo( x, y + height2 - radius2 );\n roundedRectShape2.quadraticCurveTo( x, y + height2, x + radius2, y + height2 );\n roundedRectShape2.lineTo( x + width2 - radius2, y + height2) ;\n roundedRectShape2.quadraticCurveTo( x + width2, y + height2, x + width2, y + height2 - radius2 );\n roundedRectShape2.lineTo( x + width2, y + radius2 );\n roundedRectShape2.quadraticCurveTo( x + width2, y, x + width2 - radius2, y );\n roundedRectShape2.lineTo( x + radius2, y );\n roundedRectShape2.quadraticCurveTo( x, y, x, y + radius2 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: depth,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry2 = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, red ) ;\n mesh2.position.set(0,1.05,-0.33);\n naspo.add(mesh2);\n\n let geometryBox = new Three.BoxGeometry(0.95,1.05,0.2);\n let mesh1 = new Three.Mesh( geometryBox, red );\n mesh1.position.set(0.5,1.7,0.2);\n naspo.add(mesh1);\n\n let geometryPlane = new Three.PlaneGeometry(0.6,0.9);\n let mesh3 = new Three.Mesh( geometryPlane, new Three.MeshPhongMaterial({map:frontTexture, transparent:true} ) );\n mesh3.position.set(0.5,1.7,0.31);\n naspo.add(mesh3);\n\n return naspo;\n}\n\nfunction makeObjectMinLOD(){\n\n let naspo = new Three.Mesh();\n\n let roundedRectShape2 = new Three.Shape();\n\n let x=0;\n let y=0;\n let width2=1.05;\n let height2=1.3;\n let radius2=0.1;\n let depth=0.6;\n\n roundedRectShape2.moveTo( x, y + radius2 );\n roundedRectShape2.lineTo( x, y + height2 - radius2 );\n roundedRectShape2.quadraticCurveTo( x, y + height2, x + radius2, y + height2 );\n roundedRectShape2.lineTo( x + width2 - radius2, y + height2) ;\n roundedRectShape2.quadraticCurveTo( x + width2, y + height2, x + width2, y + height2 - radius2 );\n roundedRectShape2.lineTo( x + width2, y + radius2 );\n roundedRectShape2.quadraticCurveTo( x + width2, y, x + width2 - radius2, y );\n roundedRectShape2.lineTo( x + radius2, y );\n roundedRectShape2.quadraticCurveTo( x, y, x, y + radius2 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: depth,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry2 = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, red ) ;\n mesh2.position.set(0,1.05,-0.33);\n naspo.add(mesh2);\n\n return naspo;\n}\n\n\n\nexport default {\n name: \"naspo\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"naspo\",\n description: \"naspo\",\n image: require('./naspo.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 60,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let naspoMaxLOD = new Three.Object3D();\n naspoMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(naspoMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n naspoMaxLOD.rotation.y+= Math.PI;\n naspoMaxLOD.position.x+= WIDTH/2;\n naspoMaxLOD.position.y+= -HEIGHT/1.3 + newAltitude;\n naspoMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n\n /**************** LOD middle ***********************/\n\n let naspoMiddleLOD = new Three.Object3D();\n naspoMiddleLOD.add(objectMiddleLOD.clone());\n\n naspoMiddleLOD.rotation.y+= Math.PI;\n naspoMiddleLOD.position.x+= WIDTH/2;\n naspoMiddleLOD.position.y+= -HEIGHT/1.3 + newAltitude;\n naspoMiddleLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**************** LOD min ***********************/\n\n let naspoMinLOD = new Three.Object3D();\n naspoMinLOD.add(objectMinLOD.clone());\n\n naspoMinLOD.rotation.y+= Math.PI;\n naspoMinLOD.position.x+= WIDTH/2;\n naspoMinLOD.position.y+= -HEIGHT/1.3 + newAltitude;\n naspoMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(naspoMaxLOD, 200);\n lod.addLevel(naspoMiddleLOD, 900);\n lod.addLevel(naspoMinLOD, 1200);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/monitor-pc/monitorPC.png\";","module.exports = __webpack_public_path__ + \"catalog/items/monitor-pc/keyboard.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/monitor-pc/white.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/monitor-pc/black.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/monitor-pc/power.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 50;\nconst DEPTH = 50;\nconst HEIGHT = 50;\n\nconst textureLoader = new Three.TextureLoader();\nconst power = textureLoader.load(require(\"./power.jpg\" ));\nconst black = textureLoader.load(require(\"./black.jpg\" ));\nconst white = textureLoader.load(require(\"./white.jpg\" ));\nconst keyboard = textureLoader.load(require(\"./keyboard.jpg\" ));\nconst blackMaterial = new Three.MeshLambertMaterial( { map:black} );\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\n\nfunction makeObjectMaxLOD() {\n\n let monitorPC = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(0.04,0.42,0.06);\n let whiteMaterial = new Three.MeshLambertMaterial({map:white});\n let edge_p0 = new Three.Mesh(cubeGeometryBase,whiteMaterial);\n edge_p0.position.set(0,0.79,0);\n edge_p0.rotation.x=Math.PI/2;\n monitorPC.add(edge_p0);\n\n let cubeGeometryBase2 = new Three.BoxGeometry(0.04,0.42,0.06);\n let edge_p1 = new Three.Mesh(cubeGeometryBase2,whiteMaterial);\n edge_p1.position.set(0,0.43,0);\n edge_p1.rotation.x=Math.PI/2;\n monitorPC.add(edge_p1);\n\n let cubeGeometryBase3 = new Three.BoxGeometry(0.04,0.42,0.04);\n let edge_p3 = new Three.Mesh(cubeGeometryBase3,whiteMaterial);\n edge_p3.position.set(0,0.61,0.21);\n monitorPC.add(edge_p3);\n\n let cubeGeometryBase4 = new Three.BoxGeometry(0.04,0.42,0.04);\n let edge_p4 = new Three.Mesh(cubeGeometryBase4,whiteMaterial);\n edge_p4.position.set(0,0.61,-0.21);\n monitorPC.add(edge_p4);\n\n let cubeGeometryBase5 = new Three.BoxGeometry(0.4,0.40,0.05);\n let back = new Three.Mesh(cubeGeometryBase5,blackMaterial);\n back.position.set(-0.02,0.61,0);\n back.rotation.y=Math.PI/2;\n monitorPC.add(back);\n\n let powerGeometry = new Three.BoxGeometry(0.01,0.02,0.02);\n let powerMaterial = new Three.MeshLambertMaterial({map:power});\n let powerButton = new Three.Mesh(powerGeometry,powerMaterial);\n powerButton.position.set(0.0155,0.43,0);\n monitorPC.add(powerButton);\n\n let cylinderGeometry1 = new Three.CylinderGeometry(0.02,0.02,0.06,32,32);\n let base_p1 = new Three.Mesh(cylinderGeometry1,blackMaterial);\n base_p1.position.set(0,0.38,0);\n monitorPC.add(base_p1);\n\n let geometry = new Three.CylinderGeometry(0.1,0.1,0.02,32,32);\n let material = new Three.MeshLambertMaterial( { map:black} );\n let base_p2 = new Three.Mesh( geometry, material );\n base_p2.scale.set(0.8,1,1);\n base_p2.position.set(0,0.36,0);\n monitorPC.add(base_p2);\n\n //keyboard\n let cubeGeometryBase8 = new Three.BoxGeometry(0.4,0.02,0.2);\n\n let boxMaterials = [\n new Three.MeshBasicMaterial({color:0x000000}),\n new Three.MeshBasicMaterial({color:0x000000}),\n new Three.MeshLambertMaterial({map:keyboard}),\n new Three.MeshBasicMaterial({color:0x000000}),\n new Three.MeshBasicMaterial({color:0x000000}),\n new Three.MeshBasicMaterial({color:0x000000})\n ];\n\n\n let keyboardMesh = new Three.Mesh(cubeGeometryBase8,boxMaterials);\n keyboardMesh.position.set(0.3,0.36,0);\n keyboardMesh.rotation.y=Math.PI/2;\n monitorPC.add(keyboardMesh);\n\n return monitorPC;\n}\n\nfunction makeObjectMinLOD() {\n\n let monitorPC = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(0.04,0.42,0.06);\n let whiteMaterial = new Three.MeshLambertMaterial({map:white});\n let edge_p0 = new Three.Mesh(cubeGeometryBase,whiteMaterial);\n edge_p0.position.set(0,0.79,0);\n edge_p0.rotation.x=Math.PI/2;\n monitorPC.add(edge_p0);\n\n let cubeGeometryBase2 = new Three.BoxGeometry(0.04,0.42,0.06);\n let edge_p1 = new Three.Mesh(cubeGeometryBase2,whiteMaterial);\n edge_p1.position.set(0,0.43,0);\n edge_p1.rotation.x=Math.PI/2;\n monitorPC.add(edge_p1);\n\n let cubeGeometryBase3 = new Three.BoxGeometry(0.04,0.42,0.04);\n let edge_p3 = new Three.Mesh(cubeGeometryBase3,whiteMaterial);\n edge_p3.position.set(0,0.61,0.21);\n monitorPC.add(edge_p3);\n\n let cubeGeometryBase4 = new Three.BoxGeometry(0.04,0.42,0.04);\n let edge_p4 = new Three.Mesh(cubeGeometryBase4,whiteMaterial);\n edge_p4.position.set(0,0.61,-0.21);\n monitorPC.add(edge_p4);\n\n let cubeGeometryBase5 = new Three.BoxGeometry(0.4,0.40,0.05);\n let blackMaterial = new Three.MeshLambertMaterial( { map:black} );\n let back = new Three.Mesh(cubeGeometryBase5,blackMaterial);\n back.position.set(-0.02,0.61,0);\n back.rotation.y=Math.PI/2;\n monitorPC.add(back);\n\n let cylinderGeometry1 = new Three.CylinderGeometry(0.02,0.02,0.06,8,8);\n let base_p1 = new Three.Mesh(cylinderGeometry1,blackMaterial);\n base_p1.position.set(0,0.38,0);\n monitorPC.add(base_p1);\n\n let geometry = new Three.CylinderGeometry(0.1,0.1,0.02,8,8);\n let base_p2 = new Three.Mesh( geometry, blackMaterial );\n base_p2.scale.set(0.8,1,1);\n base_p2.position.set(0,0.36,0);\n monitorPC.add(base_p2);\n\n //keyboard\n let cubeGeometryBase8 = new Three.BoxGeometry(0.4,0.02,0.2);\n let keyboardMesh = new Three.Mesh(cubeGeometryBase8,blackMaterial);\n keyboardMesh.position.set(0.3,0.36,0);\n keyboardMesh.rotation.y=Math.PI/2;\n monitorPC.add(keyboardMesh);\n\n return monitorPC;\n}\n\nexport default {\n name: \"monitor_pc\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"pc monitor\",\n description: \"pc monitor\",\n image: require('./monitorPC.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let monitorPC_MaxLOD=new Three.Object3D();\n monitorPC_MaxLOD.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(monitorPC_MaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n monitorPC_MaxLOD.rotation.y+=-Math.PI/2;\n monitorPC_MaxLOD.position.y+= -HEIGHT * .75 + newAltitude;\n monitorPC_MaxLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX);\n\n /**************** LOD min ***********************/\n\n let monitorPC_MinLOD=new Three.Object3D();\n\n monitorPC_MinLOD.add(objectMinLOD.clone());\n\n monitorPC_MinLOD.rotation.y+=-Math.PI/2;\n monitorPC_MinLOD.position.y+= -HEIGHT * .75 + newAltitude;\n monitorPC_MinLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX);\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(monitorPC_MaxLOD, 300);\n lod.addLevel(monitorPC_MinLOD, 700);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/metal-detector/metalDetector.png\";","module.exports = __webpack_public_path__ + \"catalog/items/metal-detector/display2.png\";","module.exports = __webpack_public_path__ + \"catalog/items/metal-detector/display1.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst newWidth = 90;\nconst newDepth = 90;\nconst newHeight = 220;\n\nconst grey = new Three.MeshLambertMaterial({color: 0xa6a9ad});\nconst darkGrey = new Three.MeshLambertMaterial({color: 0x3f454f});\nconst red = new Three.MeshLambertMaterial({color: 0xff0000});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\n\nfunction makeObjectMaxLOD() {\n\n let metalDetector = new Three.Mesh();\n\n let textureLoader = new Three.TextureLoader();\n let display1= textureLoader.load(require('./display1.png'));\n let display2= textureLoader.load(require('./display2.png'));\n\n let cubeGeometryBase = new Three.BoxGeometry(0.72,0.2,0.4);\n let up = new Three.Mesh(cubeGeometryBase,grey);\n up.position.set(0,2,0);\n metalDetector.add(up);\n\n for (let j = -0.2; j <= 0.2; j+=0.4) {\n\n let cubeGeometryBorderUp = new Three.BoxGeometry(0.72,0.03,0.03);\n let up_border_down = new Three.Mesh(cubeGeometryBorderUp,darkGrey);\n up_border_down.position.set(0,1.9,j);\n metalDetector.add(up_border_down);\n\n let up_border_top = new Three.Mesh(cubeGeometryBorderUp,darkGrey);\n up_border_top.position.set(0,2.1,j);\n metalDetector.add(up_border_top);\n\n }\n\n let cubeGeometrySide = new Three.BoxGeometry(0.08,2.3,0.6);\n let left = new Three.Mesh(cubeGeometrySide,grey);\n left.position.set(-0.4,1,0);\n metalDetector.add(left);\n\n let right = new Three.Mesh(cubeGeometrySide,grey);\n right.position.set(0.4,1,0);\n metalDetector.add(right);\n\n for (let k = -0.165; k <= 2.20; k+= 2.32 ) {\n\n let cubeGeometrySide2 = new Three.BoxGeometry(0.09,0.03,0.68);\n let left2 = new Three.Mesh(cubeGeometrySide2,darkGrey);\n left2.position.set(-0.4,k,0);\n metalDetector.add(left2);\n\n let right2 = new Three.Mesh(cubeGeometrySide2,darkGrey);\n right2.position.set(0.4,k,0);\n metalDetector.add(right2);\n\n }\n\n for (let i = -0.3; i <= 0.3 ; i+=0.6) {\n\n let cubeGeometryBorder = new Three.BoxGeometry(0.09,2.3,0.05);\n let left_border = new Three.Mesh(cubeGeometryBorder,darkGrey);\n left_border.position.set(-0.4,1,i);\n metalDetector.add(left_border);\n\n let right_border = new Three.Mesh(cubeGeometryBorder,darkGrey);\n right_border.position.set(0.4,1,i);\n metalDetector.add(right_border);\n\n let cubeGeometryBorderLed = new Three.BoxGeometry(0.02,2.3,0.02);\n let left_borderLed = new Three.Mesh(cubeGeometryBorderLed,red);\n let right_borderLed = new Three.Mesh(cubeGeometryBorderLed,red);\n\n if(i<0){\n\n left_borderLed.position.set(-0.4,1,i-.02);\n right_borderLed.position.set(0.4,1,i-.02);\n\n }\n else{\n\n left_borderLed.position.set(-0.4,1,i+.02);\n right_borderLed.position.set(0.4,1,i+.02);\n\n }\n\n metalDetector.add(left_borderLed);\n metalDetector.add(right_borderLed);\n\n }\n\n let planeDisplay1 = new Three.PlaneGeometry(0.15,0.15);\n let planeMaterial1 = new Three.MeshLambertMaterial({map: display1, transparent:true});\n let plane1 = new Three.Mesh(planeDisplay1,planeMaterial1);\n plane1.position.set(-0.15,2,0.21);\n\n let planeDisplay2 = new Three.PlaneGeometry(0.25,0.15);\n let planeMaterial2 = new Three.MeshLambertMaterial({map: display2, transparent:true});\n let plane2 = new Three.Mesh(planeDisplay2,planeMaterial2);\n plane2.position.set(0.15,2,0.21);\n\n metalDetector.add(plane1);\n metalDetector.add(plane2);\n\n return metalDetector\n}\n\nfunction makeObjectMinLOD() {\n\n let metalDetector = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(0.72,0.2,0.4);\n let up = new Three.Mesh(cubeGeometryBase,grey);\n up.position.set(0,2,0);\n metalDetector.add(up);\n\n for (let j = -0.2; j <= 0.2; j+=0.4) {\n\n let cubeGeometryBorderUp = new Three.BoxGeometry(0.72,0.03,0.03);\n let up_border_down = new Three.Mesh(cubeGeometryBorderUp,darkGrey);\n up_border_down.position.set(0,1.9,j);\n metalDetector.add(up_border_down);\n\n let up_border_top = new Three.Mesh(cubeGeometryBorderUp,darkGrey);\n up_border_top.position.set(0,2.1,j);\n metalDetector.add(up_border_top);\n\n }\n\n let cubeGeometrySide = new Three.BoxGeometry(0.08,2.3,0.6);\n let left = new Three.Mesh(cubeGeometrySide,grey);\n left.position.set(-0.4,1,0);\n metalDetector.add(left);\n\n let right = new Three.Mesh(cubeGeometrySide,grey);\n right.position.set(0.4,1,0);\n metalDetector.add(right);\n\n for (let k = -0.165; k <= 2.20; k+= 2.32 ) {\n\n let cubeGeometrySide2 = new Three.BoxGeometry(0.09,0.03,0.68);\n let left2 = new Three.Mesh(cubeGeometrySide2,darkGrey);\n left2.position.set(-0.4,k,0);\n metalDetector.add(left2);\n\n let right2 = new Three.Mesh(cubeGeometrySide2,darkGrey);\n right2.position.set(0.4,k,0);\n metalDetector.add(right2);\n\n }\n\n for (let i = -0.3; i <= 0.3 ; i+=0.6) {\n\n let cubeGeometryBorder = new Three.BoxGeometry(0.09, 2.3, 0.05);\n let left_border = new Three.Mesh(cubeGeometryBorder, darkGrey);\n left_border.position.set(-0.4, 1, i);\n metalDetector.add(left_border);\n\n let right_border = new Three.Mesh(cubeGeometryBorder, darkGrey);\n right_border.position.set(0.4, 1, i);\n metalDetector.add(right_border);\n\n }\n\n return metalDetector\n}\n\nexport default {\n name: \"metal_detector\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"metal detector\",\n description: \"metal detector\",\n image: require('./metalDetector.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let metalDetectorMaxLOD = new Three.Object3D();\n metalDetectorMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(metalDetectorMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n metalDetectorMaxLOD.position.y+= newHeight/11.5 + newAltitude;\n metalDetectorMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n let metalDetectorMinLOD = new Three.Object3D();\n metalDetectorMinLOD.add(objectMinLOD.clone());\n metalDetectorMinLOD.position.y+= newHeight/11.5 + newAltitude;\n metalDetectorMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(metalDetectorMaxLOD, 700);\n lod.addLevel(metalDetectorMinLOD, 1200);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/lim/example_lim.png\";","module.exports = __webpack_public_path__ + \"catalog/items/lim/lim.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 200;\nconst DEPTH = 60;\nconst HEIGHT = 150;\n\n//colors\nconst white = new Three.MeshLambertMaterial( {color: 0xffffff} );\nconst grey = new Three.MeshLambertMaterial( {color: 0xdddddd} );\nconst grey2 = new Three.MeshLambertMaterial( {color: 0x414449} );\n\nexport default {\n name: 'multimedia chalkboard',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood', 'metal'],\n title: 'multimedia chalkboard',\n description: 'multimedia chalkboard',\n image: require('./lim.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let lim = new Three.Object3D();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=5;\n let height=4;\n let radius=0.25;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 1,\n depth: 0.003125,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(0,1.2,0);\n lim.add(mesh);\n\n let geometry2 = new Three.BoxGeometry(width-width/11,height-height/8,.003125);\n let mesh2 = new Three.Mesh( geometry2, white ) ;\n mesh2.position.set(2.5,3.2,0.00125);\n lim.add(mesh2);\n\n let roundedRectShape2 = new Three.Shape();\n\n let x2=0;\n let y2=0;\n let width2=1;\n let height2=.6;\n let radius2=0.125;\n\n roundedRectShape2.moveTo( x2, y2 + radius2 );\n roundedRectShape2.lineTo( x2, y2 + height2 - radius2 );\n roundedRectShape2.quadraticCurveTo( x2, y2 + height2, x2 + radius2, y2 + height2 );\n roundedRectShape2.lineTo( x2 + width2 - radius2, y2 + height2) ;\n roundedRectShape2.quadraticCurveTo( x2 + width2, y2 + height2, x2 + width2, y2 + height2 - radius2 );\n roundedRectShape2.lineTo( x2 + width2, y2 + radius2 );\n roundedRectShape2.quadraticCurveTo( x2 + width2, y2, x2 + width2 - radius2, y2 );\n roundedRectShape2.lineTo( x2 + radius2, y2 );\n roundedRectShape2.quadraticCurveTo( x2, y2, x2, y2 + radius2 );\n\n let extrudeSettings2 = {\n steps: 1,\n depth: 0.003125,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n let textureLoader = new Three.TextureLoader();\n let etichettaImage = textureLoader.load(require('./example_lim.png'));\n\n let geometryPlane = new Three.PlaneGeometry( 4,3);\n let material = new Three.MeshLambertMaterial( {map:etichettaImage, transparent: true} );\n let plane = new Three.Mesh( geometryPlane, material );\n plane.position.set(2.5,3.1,-.0005);\n plane.rotation.y+=Math.PI;\n lim.add(plane);\n\n let geometry3 = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let mesh3 = new Three.Mesh( geometry3, grey ) ;\n mesh3.position.set(width/2-width/10,5.35,0);\n lim.add(mesh3);\n\n let roundedRectShape3 = new Three.Shape();\n\n let x3=0;\n let y3=0;\n let width3=.45;\n let height3=.25;\n let radius3=0.125;\n\n roundedRectShape3.moveTo( x3, y3 + radius3 );\n roundedRectShape3.lineTo( x3, y3 + height3 - radius3 );\n roundedRectShape3.quadraticCurveTo( x3, y3 + height3, x3 + radius3, y3 + height3 );\n roundedRectShape3.lineTo( x3 + width3 - radius3, y3 + height3) ;\n roundedRectShape3.quadraticCurveTo( x3 + width3, y3 + height3, x3 + width3, y3 + height3 - radius3 );\n roundedRectShape3.lineTo( x3 + width3, y3 + radius3 );\n roundedRectShape3.quadraticCurveTo( x3 + width3, y3, x3 + width3 - radius3, y3 );\n roundedRectShape3.lineTo( x3 + radius3, y3 );\n roundedRectShape3.quadraticCurveTo( x3, y3, x3, y3 + radius3 );\n\n let extrudeSettings3 = {\n steps: 1,\n depth: 0.0125,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n let geometry4 = new Three.ExtrudeGeometry( roundedRectShape3, extrudeSettings3 );\n let mesh4 = new Three.Mesh( geometry4, grey2 ) ;\n mesh4.position.set(width/2-width/24,5.45,-0.0125);\n lim.add(mesh4);\n\n let roundedRectShape4 = new Three.Shape();\n\n let x4=0;\n let y4=0;\n let width4=.4;\n let height4=.2;\n let radius4=0.10;\n\n roundedRectShape4.moveTo( x4, y4 + radius4 );\n roundedRectShape4.lineTo( x4, y4 + height4 - radius4 );\n roundedRectShape4.quadraticCurveTo( x4, y4 + height4, x4 + radius4, y4 + height4 );\n roundedRectShape4.lineTo( x4 + width4 - radius4, y4 + height4) ;\n roundedRectShape4.quadraticCurveTo( x4 + width4, y4 + height4, x4 + width4, y4 + height4 - radius4 );\n roundedRectShape4.lineTo( x4 + width4, y4 + radius4 );\n roundedRectShape4.quadraticCurveTo( x4 + width4, y4, x4 + width4 - radius4, y4 );\n roundedRectShape4.lineTo( x4 + radius4, y4 );\n roundedRectShape4.quadraticCurveTo( x4, y4, x4, y4 + radius4 );\n\n let extrudeSettings4 = {\n steps: 1,\n depth: 0.0125,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n let geometry5 = new Three.ExtrudeGeometry( roundedRectShape4, extrudeSettings4 );\n let mesh5 = new Three.Mesh( geometry5, grey2 ) ;\n mesh5.position.set(width/2-width/27,5.5,-0.02);\n lim.add(mesh5);\n\n\n let supportGeometry = new Three.CylinderGeometry(0.025,0.035,0.1,32,32,false,0,2*Math.PI);\n let support = new Three.Mesh( supportGeometry, grey2);\n support.position.set(width/2-width/1024,5.45,-0.018);\n support.rotation.y+=Math.PI/2;\n support.scale.set(.05,1,4);\n lim.add(support);\n\n let roundedRectShape5 = new Three.Shape();\n\n let x5=0;\n let y5=0;\n let width5=.4;\n let height5=.2;\n let radius5=0.10;\n\n roundedRectShape5.moveTo( x5, y5);\n roundedRectShape5.lineTo( width5,y5 );\n roundedRectShape5.lineTo( width5,height5 );\n roundedRectShape5.lineTo( x5,height5 );\n\n let extrudeSettings5 = {\n steps: 1,\n depth: 0.01,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n let geometry6 = new Three.ExtrudeGeometry( roundedRectShape5, extrudeSettings5 );\n let mesh6 = new Three.Mesh( geometry6, grey2 ) ;\n mesh6.position.set(width/2-width/24.45,5.2,-0.0225);\n lim.add(mesh6);\n\n let supportGeometry2 = new Three.CylinderGeometry(0.029,0.029,0.4,32,32,false,0,2*Math.PI);\n let support2 = new Three.Mesh( supportGeometry2, grey2);\n support2.position.set(width/2-width/1024,5.2,-0.021);\n support2.rotation.y+=Math.PI;\n support2.rotation.x+=Math.PI/2;\n support2.rotation.z+=Math.PI/2;\n support2.scale.set(.05,1,4);\n lim.add(support2);\n\n let value = new Three.Box3().setFromObject(lim);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lim, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lim.add(bbox);\n }\n\n lim.rotation.y+=Math.PI;\n lim.position.y+=-HEIGHT/3.2 + newAltitude;\n lim.position.x+=WIDTH/2;\n lim.position.z+=-DEPTH/3.5;\n\n lim.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n return Promise.resolve(lim);\n }\n\n};\n\n\n","module.exports = __webpack_public_path__ + \"catalog/items/kitchen/kitchen.png\";","module.exports = __webpack_public_path__ + \"catalog/items/kitchen/logo.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/kitchen/darksteel.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/kitchen/steel.jpg\";","import React from 'react';\n\nconst BASE_STYLE = {\n display: \"block\",\n marginBottom: \"5px\"\n};\n\nexport default function FormLabel({children, style, ...rest}) {\n return \n}\n","import React from 'react';\nimport FormTextInput from './form-text-input';\n\n\nconst STYLE = {\n padding: 0,\n border: 0,\n};\nconst EREG_NUMBER = /^.*$/;\n\nexport default function FormColorInput({onChange, ...rest}) {\n let onChangeCustom = event => {\n let value = event.target.value;\n if (EREG_NUMBER.test(value)) {\n onChange(event);\n }\n };\n\n return ;\n}\n","import React from 'react';\n\nconst BASE_STYLE = {\n marginBottom: \"16px\"\n};\n\nexport default function FormBlock({children, style, ...rest}) {\n return
{children}
\n}\n","import React from 'react';\nimport Button from './button';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE = {\n borderColor: \"#c12e2a\",\n backgroundColor: \"#c9302c\",\n color: SharedStyle.COLORS.white\n};\n\nconst STYLE_HOVER = {\n backgroundColor: \"#972726\",\n borderColor: \"#c12e2a\",\n color: SharedStyle.COLORS.white\n};\n\nexport default function FormDeleteButton({children, ...rest}) {\n return \n}\n","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 80;\nconst DEPTH = 100;\nconst HEIGHT = 80;\n\nlet textureLoader = new Three.TextureLoader();\nlet steel = textureLoader.load(require('./steel.jpg'));\nlet darkSteel = textureLoader.load(require('./darksteel.jpg'));\nlet logo = textureLoader.load(require('./logo.jpg'));\nlet steelTexture = new Three.MeshLambertMaterial({map:steel});\nlet darkSteelTexture = new Three.MeshLambertMaterial({map:darkSteel});\nlet logoTexture = new Three.MeshLambertMaterial({map:logo});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let kitchen = new Three.Mesh();\n\n //base\n let body = new Three.Mesh(new Three.BoxGeometry(1,0.05,1.5), steelTexture);\n body.position.set(0,0.15,0);\n kitchen.add(body);\n\n //foot\n for(let gx=-0.45;gx<=0.45;gx+=0.9){\n for(let gz=-0.7125;gz<=0.7125;gz+=1.425){\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.05, 0.05, 0.05, 4), steelTexture)\n foot.position.set(gx,-0.05,gz);\n foot.rotation.y=0.25*Math.PI;\n body.add(foot)\n }\n }\n\n //back\n let back = new Three.Mesh(new Three.BoxGeometry(0.05,1,1.5), steelTexture);\n back.position.set(0.475,0.525,0);\n body.add(back);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1,1,0.05), steelTexture);\n side1.position.set(0,0.525,0.725);\n body.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1,1,0.05), steelTexture);\n side2.position.set(0,0.525,-0.725);\n body.add(side2);\n\n //top\n let top = new Three.Mesh(new Three.BoxGeometry(1,0.20,1.5), steelTexture);\n top.position.set(0,1.1,0);\n body.add(top);\n\n //logo\n let logo = new Three.Mesh(new Three.PlaneGeometry(0.1,0.05),logoTexture);\n logo.position.set(-0.51,1.13,0);\n logo.rotation.y=-0.5*Math.PI;\n body.add(logo);\n\n //front\n let front = new Three.Mesh(new Three.BoxGeometry(0.05,0.99,1.4), steelTexture);\n front.position.set(-0.47,0.525,0);\n body.add(front);\n\n //oven\n let oven = new Three.Mesh(new Three.BoxGeometry(0.05,0.9,1.3), steelTexture);\n oven.position.set(-0.53,0.525,0);\n body.add(oven);\n\n //handle\n let handle1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,1),darkSteelTexture);\n handle1.position.set(-0.6,0.85,0);\n handle1.rotation.x=0.5*Math.PI;\n body.add(handle1);\n\n let handle2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),darkSteelTexture);\n handle2.position.set(-0.56,0.85,-0.4);\n handle2.rotation.z=0.5*Math.PI;\n body.add(handle2);\n\n let handle3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),darkSteelTexture);\n handle3.position.set(-0.56,0.85,0.4);\n handle3.rotation.z=0.5*Math.PI;\n body.add(handle3);\n\n //knob\n for(let gz=-0.6;gz<=0.65;gz+=0.3){\n let knob = new Three.Mesh(new Three.CylinderGeometry(0.03, 0.03, 0.02, 32), darkSteelTexture);\n knob.position.set(-0.51,1.05,gz);\n knob.rotation.z=0.5*Math.PI;\n body.add(knob);\n\n let knob_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.03, 0.01), darkSteelTexture);\n knob_p2.position.set(0,0.02,0);\n knob.add(knob_p2)\n }\n\n //fire\n for(let gx=-0.22;gx<=0.22;gx+=0.44){\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let fire = new Three.Mesh(new Three.CylinderGeometry(0.08, 0.1, 0.02, 32), darkSteelTexture)\n fire.position.set(gx,1.21,gz);\n body.add(fire)\n }\n }\n\n //central fire\n let centralFire = new Three.Mesh(new Three.CylinderGeometry(0.1, 0.12, 0.02, 32), darkSteelTexture);\n centralFire.position.set(0,1.21,0);\n body.add(centralFire);\n\n\n //long side grid\n for(let gx=-0.45;gx<=0.45;gx+=0.45){\n if(gx!==0)\n {\n let longSideGrid = new Three.Mesh(new Three.BoxGeometry(0.03, 0.05, 1.38), darkSteelTexture);\n longSideGrid.position.set(gx,1.21,0);\n body.add(longSideGrid)\n }\n else\n {\n for(let gz=-0.46;gz<=0.68;gz+=0.90){\n let longSideGrid2 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.05, 0.46), darkSteelTexture);\n longSideGrid2.position.set(gx,1.21,gz);\n body.add(longSideGrid2)\n }\n }\n }\n\n //short side grid\n for(let gz=-0.675;gz<=0.675;gz+=0.45){\n\n let shortSideGrid = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.03), darkSteelTexture);\n shortSideGrid.position.set(0,1.21,gz);\n body.add(shortSideGrid)\n\n }\n\n //long side grid central\n for(let gx=-0.22;gx<=0.22;gx+=0.44){\n for(let gz=-0.59;gz<=0.68;gz+=0.90){\n let lsgc1 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.01, 0.2), darkSteelTexture);\n lsgc1.position.set(gx,1.24,gz);\n body.add(lsgc1)\n }\n for(let gz=0.59;gz>=-0.68;gz-=0.90){\n let lsgc2 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.01, 0.2), darkSteelTexture);\n lsgc2.position.set(gx,1.24,gz);\n body.add(lsgc2)\n }\n }\n\n //short side grid central\n for(let gx=-0.365;gx<=0.345;gx+=0.7){\n for(let gz=-0.45;gz<=0.45;gz+=0.45){\n if(gz!==0)\n {\n let ssgc1 = new Three.Mesh(new Three.BoxGeometry(0.2, 0.02, 0.03),darkSteelTexture);\n if(gx<0)\n ssgc1.position.set(gx,1.24,gz);\n else\n ssgc1.position.set(gx+0.03,1.24,gz);\n body.add(ssgc1)\n }\n else\n {\n let ssgc2 = new Three.Mesh(new Three.BoxGeometry(0.4, 0.02, 0.03),darkSteelTexture);\n if(gx<0)\n ssgc2.position.set(gx+0.1,1.24,gz);\n else\n ssgc2.position.set(gx-0.07,1.24,gz);\n body.add(ssgc2)\n }\n }\n }\n\n //long side grid inside\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let lsgi = new Three.Mesh(new Three.BoxGeometry(0.35, 0.02, 0.03),darkSteelTexture);\n lsgi.position.set(0,1.24,gz);\n body.add(lsgi)\n }\n\n //central peace\n for(let gz=-0.14;gz<=0.14;gz+=0.28)\n {\n let cp = new Three.Mesh(new Three.BoxGeometry(0.03, 0.02, 0.2),darkSteelTexture);\n cp.position.set(0,1.25,gz);\n body.add(cp)\n }\n\n return kitchen\n}\n\nfunction makeObjectMinLOD() {\n\n let kitchen = new Three.Mesh();\n\n //base\n let body = new Three.Mesh(new Three.BoxGeometry(1,0.05,1.5), steelTexture);\n body.position.set(0,0.15,0);\n kitchen.add(body);\n\n //foot\n for(let gx=-0.45;gx<=0.45;gx+=0.9){\n for(let gz=-0.7125;gz<=0.7125;gz+=1.425){\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.05, 0.05, 0.05, 4), steelTexture)\n foot.position.set(gx,-0.05,gz);\n foot.rotation.y=0.25*Math.PI;\n body.add(foot)\n }\n }\n\n //back\n let back = new Three.Mesh(new Three.BoxGeometry(0.05,1,1.5), steelTexture);\n back.position.set(0.475,0.525,0);\n body.add(back);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1,1,0.05), steelTexture);\n side1.position.set(0,0.525,0.725);\n body.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1,1,0.05), steelTexture);\n side2.position.set(0,0.525,-0.725);\n body.add(side2);\n\n //top\n let top = new Three.Mesh(new Three.BoxGeometry(1,0.20,1.5), steelTexture);\n top.position.set(0,1.1,0);\n body.add(top);\n\n //logo\n let logo = new Three.Mesh(new Three.PlaneGeometry(0.1,0.05),logoTexture);\n logo.position.set(-0.51,1.13,0);\n logo.rotation.y=-0.5*Math.PI;\n body.add(logo);\n\n //front\n let front = new Three.Mesh(new Three.BoxGeometry(0.05,0.99,1.4), steelTexture);\n front.position.set(-0.47,0.525,0);\n body.add(front);\n\n //oven\n let oven = new Three.Mesh(new Three.BoxGeometry(0.05,0.9,1.3), steelTexture);\n oven.position.set(-0.53,0.525,0);\n body.add(oven);\n\n //handle\n let handle1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,1),darkSteelTexture);\n handle1.position.set(-0.6,0.85,0);\n handle1.rotation.x=0.5*Math.PI;\n body.add(handle1);\n\n let handle2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),darkSteelTexture);\n handle2.position.set(-0.56,0.85,-0.4);\n handle2.rotation.z=0.5*Math.PI;\n body.add(handle2);\n\n let handle3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),darkSteelTexture);\n handle3.position.set(-0.56,0.85,0.4);\n handle3.rotation.z=0.5*Math.PI;\n body.add(handle3);\n\n //knob\n for(let gz=-0.6;gz<=0.65;gz+=0.3){\n let knob = new Three.Mesh(new Three.CylinderGeometry(0.03, 0.03, 0.02, 32), darkSteelTexture);\n knob.position.set(-0.51,1.05,gz);\n knob.rotation.z=0.5*Math.PI;\n body.add(knob);\n\n let knob_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.03, 0.01), darkSteelTexture);\n knob_p2.position.set(0,0.02,0);\n knob.add(knob_p2)\n }\n\n //fire\n for(let gx=-0.22;gx<=0.22;gx+=0.44){\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let fire = new Three.Mesh(new Three.CylinderGeometry(0.08, 0.1, 0.02, 32), darkSteelTexture)\n fire.position.set(gx,1.21,gz);\n body.add(fire)\n }\n }\n\n //central fire\n let centralFire = new Three.Mesh(new Three.CylinderGeometry(0.1, 0.12, 0.02, 32), darkSteelTexture);\n centralFire.position.set(0,1.21,0);\n body.add(centralFire);\n\n\n //long side grid\n for(let gx=-0.45;gx<=0.45;gx+=0.45){\n if(gx!==0)\n {\n let longSideGrid = new Three.Mesh(new Three.BoxGeometry(0.03, 0.05, 1.38), darkSteelTexture);\n longSideGrid.position.set(gx,1.21,0);\n body.add(longSideGrid)\n }\n else\n {\n for(let gz=-0.46;gz<=0.68;gz+=0.90){\n let longSideGrid2 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.05, 0.46), darkSteelTexture);\n longSideGrid2.position.set(gx,1.21,gz);\n body.add(longSideGrid2)\n }\n }\n }\n\n //short side grid\n for(let gz=-0.675;gz<=0.675;gz+=0.45){\n\n let shortSideGrid = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.03), darkSteelTexture);\n shortSideGrid.position.set(0,1.21,gz);\n body.add(shortSideGrid)\n\n }\n\n //long side grid central\n for(let gx=-0.22;gx<=0.22;gx+=0.44){\n for(let gz=-0.59;gz<=0.68;gz+=0.90){\n let lsgc1 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.01, 0.2), darkSteelTexture);\n lsgc1.position.set(gx,1.24,gz);\n body.add(lsgc1)\n }\n for(let gz=0.59;gz>=-0.68;gz-=0.90){\n let lsgc2 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.01, 0.2), darkSteelTexture);\n lsgc2.position.set(gx,1.24,gz);\n body.add(lsgc2)\n }\n }\n\n //short side grid central\n for(let gx=-0.365;gx<=0.345;gx+=0.7){\n for(let gz=-0.45;gz<=0.45;gz+=0.45){\n if(gz!==0)\n {\n let ssgc1 = new Three.Mesh(new Three.BoxGeometry(0.2, 0.02, 0.03),darkSteelTexture);\n if(gx<0)\n ssgc1.position.set(gx,1.24,gz);\n else\n ssgc1.position.set(gx+0.03,1.24,gz);\n body.add(ssgc1)\n }\n else\n {\n let ssgc2 = new Three.Mesh(new Three.BoxGeometry(0.4, 0.02, 0.03),darkSteelTexture);\n if(gx<0)\n ssgc2.position.set(gx+0.1,1.24,gz);\n else\n ssgc2.position.set(gx-0.07,1.24,gz);\n body.add(ssgc2)\n }\n }\n }\n\n //long side grid inside\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let lsgi = new Three.Mesh(new Three.BoxGeometry(0.35, 0.02, 0.03),darkSteelTexture);\n lsgi.position.set(0,1.24,gz);\n body.add(lsgi)\n }\n\n //central peace\n for(let gz=-0.14;gz<=0.14;gz+=0.28)\n {\n let cp = new Three.Mesh(new Three.BoxGeometry(0.03, 0.02, 0.2),darkSteelTexture);\n cp.position.set(0,1.25,gz);\n body.add(cp)\n }\n\n return kitchen\n}\n\nexport default {\n name: \"kitchen\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"kitchen\",\n description: \"kitchen\",\n image: require('./kitchen.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************ lod max ****************/\n\n let kitchenMaxLOD=new Three.Object3D();\n kitchenMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(kitchenMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n kitchenMaxLOD.position.y+=newAltitude;\n kitchenMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n\n /************ lod min ****************/\n\n let kitchenMinLOD=new Three.Object3D();\n kitchenMinLOD.add(objectMinLOD.clone());\n kitchenMinLOD.position.y+=newAltitude;\n kitchenMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(kitchenMaxLOD, 200);\n lod.addLevel(kitchenMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","import React from 'react';\nimport Button from './button';\n\nconst STYLE = {\n borderColor: \"#adadad\",\n backgroundColor: \"#e6e6e6\"\n};\n\nconst STYLE_HOVER = {\n backgroundColor: \"#d4d4d4\",\n borderColor: \"#8c8c8c\"\n};\n\nexport default function CancelButton({children, ...rest}) {\n return \n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel, FormColorInput } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nexport default function PropertyColor({value, onUpdate, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n\n if (configs.hook) {\n return configs.hook(val, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(val);\n };\n\n return (\n \n \n \n \n \n \n \n
\n {configs.label}\n \n update(event.target.value)}/>\n
\n );\n}\n\nPropertyColor.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import {Catalog} from 'react-planner';\n\nlet catalog = new Catalog();\n\nimport * as Areas from './areas/**/planner-element.jsx';\nimport * as Lines from './lines/**/planner-element.jsx';\nimport * as Holes from './holes/**/planner-element.jsx';\nimport * as Items from './items/**/planner-element.jsx';\n\nfor( let x in Areas ) catalog.registerElement( Areas[x] );\nfor( let x in Lines ) catalog.registerElement( Lines[x] );\nfor( let x in Holes ) catalog.registerElement( Holes[x] );\nfor( let x in Items ) catalog.registerElement( Items[x] );\n\ncatalog.registerCategory('windows', 'Windows', [Holes.window, Holes.sashWindow, Holes.venetianBlindWindow, Holes.windowCurtain] );\ncatalog.registerCategory('doors', 'Doors', [Holes.door, Holes.doorDouble, Holes.panicDoor, Holes.panicDoorDouble, Holes.slidingDoor] );\n\nexport default catalog;\n","module.exports = __webpack_public_path__ + \"catalog/items/image/image.png\";","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport {Map} from 'immutable';\n\nconst grabCircleRadius = 10;\nconst hoverCircleRadius = 14;\nconst rulerColor = '#f45c42';\nconst hoverColor = '#ff9900';\n\nconst grabCircleStyle = {\n cursor: 'grab',\n fill: rulerColor,\n transition: 'r 150ms ease-in'\n};\n\nconst hoverCircleStyle = {\n cursor: 'grab',\n fill: hoverColor,\n transition: 'r 150ms ease-in'\n};\n\nconst pointsDistance = (x1, y1, x2, y2) => {\n\n if (\n !isNaN(x1) &&\n !isNaN(y1) &&\n !isNaN(x2) &&\n !isNaN(y2)\n ) {\n if (!(x1 == 0 && y1 == 0 && x2 == 0 && y2 == 0)) {\n return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));\n }\n }\n\n return 0;\n};\n\nexport default class ImageFul extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n handleMouseMove1: false,\n handleMouseMove2: false,\n hover1: false,\n hover2: false,\n imageLoadError: false\n };\n\n this.onMouseDown = this.onMouseDown.bind(this);\n this.onMouseMove = this.onMouseMove.bind(this);\n this.toggleHover1 = this.toggleHover1.bind(this);\n this.toggleHover2 = this.toggleHover2.bind(this);\n }\n\n onMouseDown(event) {\n let target = event.viewerEvent.originalEvent.target;\n\n if (target.nodeName === 'circle') {\n if (target.attributes.name) {\n if (target.attributes.name.nodeValue === 'fst-anchor') {\n this.setState({handleMouseMove1: !this.state.handleMouseMove1});\n }\n else if (target.attributes.name.nodeValue === 'snd-anchor') {\n this.setState({handleMouseMove2: !this.state.handleMouseMove2});\n }\n }\n }\n }\n\n onMouseMove(event) {\n let {x, y} = event.viewerEvent;\n\n y = this.props.scene.height - y;\n\n let dist = pointsDistance(this.props.x1, this.props.y1, this.props.x2, this.props.y2);\n let scale = !isNaN(dist) && dist ? (this.props.distance.length / dist) : 0;\n\n let origin = {\n x: this.props.element.x - (this.props.width * scale / 2),\n y: this.props.element.y + (this.props.height * scale / 2)\n };\n\n let minX = origin.x + (this.props.width * scale);\n let minY = origin.y - (this.props.height * scale);\n\n if (x < origin.x) {\n x = origin.x;\n }\n else if (x > minX) {\n x = minX;\n }\n\n if (y > origin.y) {\n y = origin.y;\n }\n else if (y < minY) {\n y = minY;\n }\n\n let newX = (x - origin.x);\n let newY = (origin.y - y);\n\n if (this.state.handleMouseMove1) {\n let dist = pointsDistance(newX, newY, this.props.x2, this.props.y2);\n this.context.projectActions.setProperties(new Map({x1: newX, y1: newY, distance: new Map({length: dist})}));\n }\n else if (this.state.handleMouseMove2) {\n let dist = pointsDistance(this.props.x1, this.props.y1, newX, newY);\n this.context.projectActions.setProperties(new Map({x2: newX, y2: newY, distance: new Map({length: dist})}));\n }\n }\n\n componentDidMount() {\n document.addEventListener('mousedown-planner-event', this.onMouseDown);\n document.addEventListener('mousemove-planner-event', this.onMouseMove);\n\n if (this.props.imageUri) {\n let img = new Image;\n img.src = this.props.imageUri;\n img.onload = () => {\n this.setState({imageLoadError: false});\n this.context.projectActions.setProperties(new Map({width: img.naturalWidth, height: img.naturalHeight}))\n };\n img.onerror = () => {\n this.setState({imageLoadError: true})\n };\n }\n }\n\n componentWillUnmount() {\n document.removeEventListener('mousedown-planner-event', this.onMouseDown);\n document.removeEventListener('mousemove-planner-event', this.onMouseMove);\n }\n\n componentWillReceiveProps(nextProps) {\n if (this.props.imageUri !== nextProps.imageUri) {\n let img = new Image;\n img.src = nextProps.imageUri;\n img.onload = () => {\n this.setState({imageLoadError: false});\n this.context.projectActions.setProperties(new Map({width: img.naturalWidth, height: img.naturalHeight}))\n };\n img.onerror = () => {\n this.setState({imageLoadError: true})\n };\n }\n }\n\n toggleHover1(e) {\n this.setState({hover1: !this.state.hover1})\n }\n\n toggleHover2(e) {\n this.setState({hover2: !this.state.hover2})\n }\n\n render() {\n let dist = pointsDistance(this.props.x1, this.props.y1, this.props.x2, this.props.y2);\n let scale = !isNaN(dist) && dist ? (this.props.distance.length / dist) : 0;\n let half_w = this.props.width / 2;\n\n let ruler = !this.props.element.selected ? null : (\n \n \n \n \n \n );\n\n return (\n \n {\n this.props.imageUri && !this.state.imageLoadError ?\n :\n \n \n \n Set the image url on the component\n property inside the sidebar,\n click and move each vertex\n of the ruler then set the real distance\n in the component property\n \n \n }\n {ruler}\n \n )\n }\n}\n\nImageFul.propTypes = {\n element: PropTypes.object.isRequired,\n x1: PropTypes.number.isRequired,\n y1: PropTypes.number.isRequired,\n x2: PropTypes.number.isRequired,\n y2: PropTypes.number.isRequired,\n distance: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n imageUri: PropTypes.string.isRequired,\n layer: PropTypes.object.isRequired,\n scene: PropTypes.object.isRequired\n};\n\nImageFul.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport ContainerDimensions from 'react-container-dimensions';\nimport Immutable, {Map} from 'immutable';\nimport immutableDevtools from 'immutable-devtools';\nimport {createStore} from 'redux';\nimport {Provider} from 'react-redux';\n\nimport MyCatalog from './catalog/mycatalog';\n\nimport ToolbarScreenshotButton from './ui/toolbar-screenshot-button';\n\nimport {\n Models as PlannerModels,\n reducer as PlannerReducer,\n ReactPlanner,\n Plugins as PlannerPlugins,\n} from 'react-planner'; //react-planner\n\n//define state\nlet AppState = Map({\n 'react-planner': new PlannerModels.State()\n});\n\n//define reducer\nlet reducer = (state, action) => {\n state = state || AppState;\n state = state.update('react-planner', plannerState => PlannerReducer(plannerState, action));\n return state;\n};\n\nlet blackList = isProduction === true ? [] : [\n 'UPDATE_MOUSE_COORDS',\n 'UPDATE_ZOOM_SCALE',\n 'UPDATE_2D_CAMERA'\n];\n\nif( !isProduction ) {\n console.info('Environment is in development and these actions will be blacklisted', blackList);\n console.info('Enable Chrome custom formatter for Immutable pretty print');\n immutableDevtools( Immutable );\n}\n\n//init store\nlet store = createStore(\n reducer,\n null,\n !isProduction && window.devToolsExtension ?\n window.devToolsExtension({\n features: {\n pause : true, // start/pause recording of dispatched actions\n lock : true, // lock/unlock dispatching actions and side effects\n persist : true, // persist states on page reloading\n export : true, // export history of actions in a file\n import : 'custom', // import history of actions from a file\n jump : true, // jump back and forth (time travelling)\n skip : true, // skip (cancel) actions\n reorder : true, // drag and drop actions in the history list\n dispatch: true, // dispatch custom actions or action creators\n test : true // generate tests for the selected actions\n },\n actionsBlacklist: blackList,\n maxAge: 999999\n }) :\n f => f\n);\n\nlet plugins = [\n PlannerPlugins.Keyboard(),\n PlannerPlugins.Autosave('react-planner_v0'),\n PlannerPlugins.ConsoleDebugger(),\n];\n\nlet toolbarButtons = [\n ToolbarScreenshotButton,\n];\n\n//render\nReactDOM.render(\n (\n \n \n {({width, height}) =>\n state.get('react-planner')}\n />\n }\n \n \n ),\n document.getElementById('app')\n);\n\n","import * as Three from 'three';\nimport React from 'react';\nimport ImageFul from './imageful';\n\nexport default {\n name: \"image\",\n prototype: \"items\",\n\n info: {\n title: \"image\",\n tag: ['image'],\n description: \"Image\",\n image: require('./image.png')\n },\n\n properties: {\n imageUri: {\n label: \"Image URI\",\n type: \"string\",\n defaultValue: '',\n },\n x1: {\n label: \"x1\",\n type: \"number\",\n defaultValue: 0\n },\n y1: {\n label: \"y1\",\n type: \"number\",\n defaultValue: 0\n },\n x2: {\n label: \"x2\",\n type: \"number\",\n defaultValue: 100\n },\n y2: {\n label: \"y2\",\n type: \"number\",\n defaultValue: 0\n },\n distance: {\n label: \"Distance\",\n type: \"length-measure\",\n defaultValue: {\n length: 100\n }\n },\n width: {\n label: \"Width\",\n type: \"number\",\n defaultValue: 600\n },\n height: {\n label: \"Height\",\n type: \"number\",\n defaultValue: 400\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let {x1, y1, x2, y2, distance, width, height, imageUri} = element.properties.toJS();\n\n return (\n \n );\n },\n\n render3D: function (element, layer, scene) {\n return Promise.resolve(new Three.Object3D());\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/hub/hub.png\";","module.exports = __webpack_public_path__ + \"catalog/items/hub/front.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst textureLoader = new Three.TextureLoader();\nconst front = textureLoader.load(require('./front.png'));\nconst blackMaterial = new Three.MeshLambertMaterial({color: 0x3d3d3d});\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth) {\n\n let hub = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(newWidth,newHeight,newDepth);\n let body = new Three.Mesh(cubeGeometryBase,blackMaterial);\n body.position.set(0,1,0);\n hub.add(body);\n\n for (let i = -newHeight/2+newHeight/32; i < newHeight/2; i+=newHeight/16) {\n\n let planeGeometry = new Three.PlaneGeometry(newWidth,newHeight/16);\n let planeMaterial = new Three.MeshLambertMaterial({map:front});\n let plane_texture = new Three.Mesh(planeGeometry,planeMaterial);\n plane_texture.position.set(0,i,newDepth/3+newDepth/5.9);\n body.add(plane_texture);\n\n }\n\n return hub\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth) {\n\n let hub = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(newWidth,newHeight,newDepth);\n let body = new Three.Mesh(cubeGeometryBase,blackMaterial);\n body.position.set(0,1,0);\n hub.add(body);\n\n return hub\n}\nexport default {\n name: \"hub\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"hub\",\n description: \"hub\",\n image: require('./hub.png')\n },\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 60,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 30,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 200,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let newHeight = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n /*************** lod max ******************/\n\n let hubMaxLOD = new Three.Object3D();\n hubMaxLOD.add(makeObjectMaxLOD(newWidth,newHeight,newDepth).clone());\n\n let valuePosition = new Three.Box3().setFromObject(hubMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n hubMaxLOD.position.y+= newHeight/2 +newAltitude;\n hubMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /*************** lod min ******************/\n\n let hubMinLOD = new Three.Object3D();\n hubMinLOD.add(makeObjectMinLOD(newWidth,newHeight,newDepth).clone());\n hubMinLOD.position.y+= newHeight/2 +newAltitude;\n hubMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(hubMaxLOD, 200);\n lod.addLevel(hubMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/hiroos/hiroos.png\";","module.exports = __webpack_public_path__ + \"catalog/items/hiroos/hiroosTexture.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst cubeMaterial = new Three.MeshLambertMaterial({color: 0x65696c});\nlet textureLoader = new Three.TextureLoader();\nlet frontTexture1 = textureLoader.load(require('./hiroosTexture.jpg'));\nlet newWidth = 175;\nlet newDepth = 85;\nlet newHeight = 195;\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth){\n\n let rack = new Three.Mesh();\n\n let frontTexture, backTexture;\n\n // if((Math.floor(Math.random()*10)+1) % 2 === 0) {\n // backTexture = backTexture1;\n frontTexture = frontTexture1;\n // }\n // else {\n // backTexture = backTexture2;\n // frontTexture= frontTexture2;\n // }\n\n //base\n let cubeGeometryBase = new Three.BoxGeometry(newWidth,newHeight,newDepth);\n\n let p1 = new Three.Mesh(cubeGeometryBase,cubeMaterial);\n p1.position.set(0,1,0);\n rack.add(p1);\n\n let planeGeometryFront = new Three.PlaneGeometry(newWidth,newHeight);\n let planeMaterialFront = new Three.MeshLambertMaterial({map:frontTexture});\n\n let front = new Three.Mesh(planeGeometryFront,planeMaterialFront);\n front.position.set(0,1,newDepth/1.95);\n rack.add(front);\n\n // let planeGeometryBack = new Three.PlaneGeometry(newWidth,newHeight);\n // let planeMaterialBack = new Three.MeshLambertMaterial({map:backTexture});\n //\n // let back = new Three.Mesh(planeGeometryBack,planeMaterialBack);\n // back.position.set(0,1,-newDepth/1.95);\n // back.rotation.y+=Math.PI;\n // rack.add(back);\n\n return rack\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth){\n\n let rack = new Three.Mesh();\n\n //base\n let cubeGeometryBase = new Three.BoxGeometry(newWidth,newHeight,newDepth);\n\n let p1 = new Three.Mesh(cubeGeometryBase,cubeMaterial);\n p1.position.set(0,1,0);\n rack.add(p1);\n\n return rack\n}\n\nexport default {\n name: \"hiroos\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"hiroos\",\n description: \"hiroos\",\n image: require('./hiroos.png')\n },\n properties: {\n patternColor: {\n label: \"pattern colori\",\n type: \"color\",\n defaultValue: \"#f5f4f4\"\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let fillValue = element.selected ? \"#99c3fb\" : element.properties.get('patternColor');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n return (\n \n \n \n {element.get('name')}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let rackMaxLOD=new Three.Object3D();\n\n let objectMaxLOD = makeObjectMaxLOD(newWidth,newHeight,newDepth);\n rackMaxLOD.add(objectMaxLOD.clone());\n rackMaxLOD.rotation.y=Math.PI;\n rackMaxLOD.position.y+= newHeight/2 + newAltitude;\n\n /**************** LOD min ***********************/\n\n let rackMinLOD=new Three.Object3D();\n let objectMinLOD = makeObjectMinLOD(newWidth,newHeight,newDepth);\n rackMinLOD.add(objectMinLOD.clone());\n rackMinLOD.rotation.y=Math.PI;\n rackMinLOD.position.y+= newHeight/2 + newAltitude;\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(rackMaxLOD, 100);\n lod.addLevel(rackMinLOD, 1800);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/hanger/hanger.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 50;\nconst DEPTH = 50;\nconst HEIGHT = 180;\n\nconst blackMaterial = new Three.MeshLambertMaterial({color: 0x4B4B4B});\nconst greyMaterial = new Three.MeshLambertMaterial({color: 0xC0C0C0});\nconst blueMaterial = new Three.MeshLambertMaterial({color: 0x3399FF, transparent: true, opacity: 0.8});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let hanger = new Three.Mesh();\n\n //base\n let base_geom = new Three.CylinderGeometry(0.09, 0.25, 0.08, 20, 2, true);\n blackMaterial.side = Three.DoubleSide;\n let base = new Three.Mesh(base_geom, blackMaterial);\n base.position.set(0, 0.04, 0);\n\n let base2_geom = new Three.CylinderGeometry(0.09, 0.01, 0.03, 20, 2, true);\n let base2 = new Three.Mesh(base2_geom, blackMaterial);\n base2.position.set(0, 0.015+0.05, 0);\n\n //central body\n let body_geom = new Three.CylinderGeometry(0.03, 0.03, 2, 32, 32);\n let body = new Three.Mesh(body_geom, greyMaterial);\n body.position.set(0, 1, 0);\n\n //umbrella base\n let g_umbrella_base = new Three.TorusGeometry(0.045, 0.02, 32, 32);\n\n let umbrella_base = new Three.Mesh(g_umbrella_base, blueMaterial);\n umbrella_base.rotation.x = Math.PI/2;\n umbrella_base.position.set(0, 0.7, 0);\n\n let g_umbrella = new Three.TorusGeometry(0.06, 0.015, 32, 32);\n let umbrella = [];\n\n for (let i = 0; i < 4; i++) {\n umbrella[i] = new Three.Mesh(g_umbrella, blueMaterial);\n umbrella[i].rotation.x = Math.PI/2;\n umbrella[i].position.y = 0.7;\n }\n\n umbrella[0].position.x = 0.1;\n umbrella[1].position.z = 0.1;\n umbrella[2].position.x = -0.1;\n umbrella[3].position.z = -0.1;\n\n //hooks\n let g_hook_body = new Three.CylinderGeometry(0.015, 0.015, 0.17, 32, 32);\n\n let g_hook = new Three.CylinderGeometry(0.05, 0.05, 0.02, 32, 32);\n\n let hooks = [];\n\n for (let i = 0; i < 8; i++) {\n hooks[i] = new Three.Object3D();\n hooks[i].rotation.x = Math.PI/2;\n hooks[i].position.set(0, 1.7, 0);\n\n let hook_body = new Three.Mesh(g_hook_body, greyMaterial);\n hooks[i].add(hook_body);\n\n let hook = new Three.Mesh(g_hook, blueMaterial);\n hook_body.add(hook);\n hook.position.y = 0.085;\n\n hooks[i].rotation.z = 45 * i * Math.PI/180;\n hook_body.position.y = 0.115;\n\n if ((i % 2) === 1)\n hooks[i].position.y += 0.2;\n }\n\n hanger.add(base);\n hanger.add(base2);\n hanger.add(body);\n hanger.add(umbrella_base);\n\n for (let i = 0; i < 4; i++) {\n hanger.add(umbrella[i]);\n }\n\n for (let i = 0; i < 8; i++) {\n hanger.add(hooks[i]);\n }\n\n return hanger;\n}\n\nfunction makeObjectMinLOD() {\n\n let hanger = new Three.Mesh();\n\n //base\n let base_geom = new Three.CylinderGeometry(0.09, 0.25, 0.08, 20, 2, true);\n blackMaterial.side = Three.DoubleSide;\n let base = new Three.Mesh(base_geom, blackMaterial);\n base.position.set(0, 0.04, 0);\n\n let base2_geom = new Three.CylinderGeometry(0.09, 0.01, 0.03, 20, 2, true);\n let base2 = new Three.Mesh(base2_geom, blackMaterial);\n base2.position.set(0, 0.015+0.05, 0);\n\n //central body\n let body_geom = new Three.CylinderGeometry(0.03, 0.03, 2, 8, 8);\n let body = new Three.Mesh(body_geom, greyMaterial);\n body.position.set(0, 1, 0);\n\n //umbrella support\n let g_umbrella_base = new Three.TorusGeometry(0.045, 0.02, 8, 8);\n let m_umbrella = new Three.MeshLambertMaterial({\n color: 0x3399FF,\n transparent: true,\n opacity: 0.8\n });\n let umbrella_base = new Three.Mesh(g_umbrella_base, m_umbrella);\n umbrella_base.rotation.x = Math.PI/2;\n umbrella_base.position.set(0, 0.7, 0);\n\n let g_umbrella = new Three.TorusGeometry(0.06, 0.015, 8, 8);\n let umbrella = [];\n\n for (let i = 0; i < 4; i++) {\n umbrella[i] = new Three.Mesh(g_umbrella, m_umbrella);\n umbrella[i].rotation.x = Math.PI/2;\n umbrella[i].position.y = 0.7;\n }\n\n umbrella[0].position.x = 0.1;\n umbrella[1].position.z = 0.1;\n umbrella[2].position.x = -0.1;\n umbrella[3].position.z = -0.1;\n\n //hooks\n let g_hook_body = new Three.CylinderGeometry(0.015, 0.015, 0.17, 8, 8);\n\n let g_hook = new Three.CylinderGeometry(0.05, 0.05, 0.02, 8, 8);\n\n let hooks = [];\n\n for (let i = 0; i < 8; i++) {\n hooks[i] = new Three.Object3D();\n hooks[i].rotation.x = Math.PI/2;\n hooks[i].position.set(0, 1.7, 0);\n\n let hook_body = new Three.Mesh(g_hook_body, greyMaterial);\n hooks[i].add(hook_body);\n\n let hook = new Three.Mesh(g_hook, m_umbrella);\n hook_body.add(hook);\n hook.position.y = 0.085;\n\n hooks[i].rotation.z = 45 * i * Math.PI/180;\n hook_body.position.y = 0.115;\n\n if (i % 2 === 1)\n hooks[i].position.y += 0.2;\n }\n\n hanger.add(base);\n hanger.add(base2);\n hanger.add(body);\n hanger.add(umbrella_base);\n\n for (let i = 0; i < 4; i++) {\n hanger.add(umbrella[i]);\n }\n\n for (let i = 0; i < 8; i++) {\n hanger.add(hooks[i]);\n }\n\n return hanger;\n}\n\nexport default {\n name: \"hanger\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metallo','plastic'],\n title: \"hanger\",\n description: \"hanger\",\n image: require('./hanger.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************* lod max ******************/\n let hangerMaxLOD = new Three.Object3D();\n hangerMaxLOD.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(hangerMaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n hangerMaxLOD.position.y+= newAltitude;\n hangerMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /************* lod min ******************/\n let hangerMinLOD = new Three.Object3D();\n hangerMinLOD.add(objectMinLOD.clone());\n hangerMinLOD.position.y+= newAltitude;\n hangerMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(hangerMaxLOD, 200);\n lod.addLevel(hangerMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/fridge/fridge.png\";","module.exports = __webpack_public_path__ + \"catalog/items/fridge/steel.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/fridge/logo.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 80;\nconst DEPTH = 80;\nconst HEIGHT = 180;\n\nconst textureLoader = new Three.TextureLoader();\nconst logoTexture = textureLoader.load(require('./logo.jpg'));\nconst steelTexture = textureLoader.load(require('./steel.jpg'));\nconst logoMaterial = new Three.MeshLambertMaterial({map:logoTexture});\nconst steel = new Three.MeshLambertMaterial({map:steelTexture});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let fridge = new Three.Mesh();\n\n //base\n let base = new Three.Mesh(new Three.BoxGeometry(1,0.05,1), steel);\n base.position.set(0,0.15,0);\n fridge.add(base);\n\n //foot\n for(let gx=-0.45;gx<=0.45;gx+=0.9){\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.05, 0.05, 0.05, 4), steel);\n foot.position.set(gx,-0.05,gz);\n foot.rotation.y=0.25*Math.PI;\n base.add(foot)\n }\n }\n\n //back\n let back = new Three.Mesh(new Three.BoxGeometry(0.05,1.8,1), steel);\n back.position.set(0.475,0.925,0);\n base.add(back);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1,1.8,0.05), steel);\n side1.position.set(0,0.925,0.475);\n base.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1,1.8,0.05), steel);\n side2.position.set(0,0.925,-0.475);\n base.add(side2);\n\n //top\n let top = new Three.Mesh(new Three.BoxGeometry(1,0.20,1), steel);\n top.position.set(0,1.85,0);\n base.add(top);\n\n //logo\n let logo = new Three.Mesh(new Three.PlaneGeometry(0.2,0.1),logoMaterial);\n logo.position.set(-0.51,1.85,0);\n logo.rotation.y=-0.5*Math.PI;\n base.add(logo);\n\n //up door\n let door1 = new Three.Mesh(new Three.BoxGeometry(0.05,0.9,0.95), steel);\n door1.position.set(-0.5,1.30,0);\n base.add(door1);\n\n //down door\n let door2 = new Three.Mesh(new Three.BoxGeometry(0.05,0.8,0.95), steel);\n door2.position.set(-0.5,0.425,0);\n base.add(door2);\n\n //middle plane\n let middlePlane = new Three.Mesh(new Three.BoxGeometry(1,0.05,1), steel);\n middlePlane.position.set(0,0.845,0);\n base.add(middlePlane);\n\n //handle\n let handle1_p1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.8),steel);\n handle1_p1.position.set(-0.56,1.30,-0.4);\n base.add(handle1_p1);\n\n let handle1_p2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle1_p2.position.set(-0.53,1.60,-0.4);\n handle1_p2.rotation.z=0.5*Math.PI;\n base.add(handle1_p2);\n\n let handle1_p3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle1_p3.position.set(-0.53,1,-0.4);\n handle1_p3.rotation.z=0.5*Math.PI;\n base.add(handle1_p3);\n\n //handle\n let handle2_p1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.7),steel);\n handle2_p1.position.set(-0.56,0.425,-0.4);\n base.add(handle2_p1);\n\n let handle2_p2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle2_p2.position.set(-0.53,0.7,-0.4);\n handle2_p2.rotation.z=0.5*Math.PI;\n base.add(handle2_p2);\n\n let handle2_p3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle2_p3.position.set(-0.53,0.15,-0.4);\n handle2_p3.rotation.z=0.5*Math.PI;\n base.add(handle2_p3);\n\n return fridge\n}\n\nfunction makeObjectMinLOD() {\n\n let fridge = new Three.Mesh();\n //base\n let base = new Three.Mesh(new Three.BoxGeometry(1,0.05,1), steel);\n base.position.set(0,0.15,0);\n fridge.add(base);\n\n //foot\n for(let gx=-0.45;gx<=0.45;gx+=0.9){\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.05, 0.05, 0.05, 4), steel);\n foot.position.set(gx,-0.05,gz);\n foot.rotation.y=0.25*Math.PI;\n base.add(foot)\n }\n }\n\n //back\n let back = new Three.Mesh(new Three.BoxGeometry(0.05,1.8,1), steel);\n back.position.set(0.475,0.925,0);\n base.add(back);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1,1.8,0.05), steel);\n side1.position.set(0,0.925,0.475);\n base.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1,1.8,0.05), steel);\n side2.position.set(0,0.925,-0.475);\n base.add(side2);\n\n //top\n let top = new Three.Mesh(new Three.BoxGeometry(1,0.20,1), steel);\n top.position.set(0,1.85,0);\n base.add(top);\n\n //logo\n let logo = new Three.Mesh(new Three.PlaneGeometry(0.2,0.1),logoMaterial);\n logo.position.set(-0.51,1.85,0);\n logo.rotation.y=-0.5*Math.PI;\n base.add(logo);\n\n //up door\n let door1 = new Three.Mesh(new Three.BoxGeometry(0.05,0.9,0.95), steel);\n door1.position.set(-0.5,1.30,0);\n base.add(door1);\n\n //down door\n let door2 = new Three.Mesh(new Three.BoxGeometry(0.05,0.8,0.95), steel);\n door2.position.set(-0.5,0.425,0);\n base.add(door2);\n\n //middle plane\n let middlePlane = new Three.Mesh(new Three.BoxGeometry(1,0.05,1), steel);\n middlePlane.position.set(0,0.845,0);\n base.add(middlePlane);\n\n //handle\n let handle1_p1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.8),steel);\n handle1_p1.position.set(-0.56,1.30,-0.4);\n base.add(handle1_p1);\n\n let handle1_p2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle1_p2.position.set(-0.53,1.60,-0.4);\n handle1_p2.rotation.z=0.5*Math.PI;\n base.add(handle1_p2);\n\n let handle1_p3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle1_p3.position.set(-0.53,1,-0.4);\n handle1_p3.rotation.z=0.5*Math.PI;\n base.add(handle1_p3);\n\n //handle\n let handle2_p1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.7),steel);\n handle2_p1.position.set(-0.56,0.425,-0.4);\n base.add(handle2_p1);\n\n let handle2_p2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle2_p2.position.set(-0.53,0.7,-0.4);\n handle2_p2.rotation.z=0.5*Math.PI;\n base.add(handle2_p2);\n\n let handle2_p3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle2_p3.position.set(-0.53,0.15,-0.4);\n handle2_p3.rotation.z=0.5*Math.PI;\n base.add(handle2_p3);\n\n return fridge\n}\nexport default {\n name: \"fridge\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"fridge\",\n description: \"fridge\",\n image: require('./fridge.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** lod max *******************/\n\n let fridgeMaxLOD = new Three.Object3D();\n fridgeMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(fridgeMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n fridgeMaxLOD.position.y += newAltitude;\n fridgeMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**************** lod min *******************/\n\n let fridgeMinLOD = new Three.Object3D();\n fridgeMinLOD.add(objectMinLOD.clone());\n fridgeMinLOD.position.y += newAltitude;\n fridgeMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(fridgeMaxLOD, 200);\n lod.addLevel(fridgeMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/fire-extinguisher/fire-extinguisher.png\";","module.exports = __webpack_public_path__ + \"catalog/items/fire-extinguisher/label-image.png\";","module.exports = __webpack_public_path__ + \"catalog/items/fire-extinguisher/gage-image.png\";","import MTLLoader from './mtl-loader';\nimport OBJLoader from './obj-loader';\n\nexport function loadObjWithMaterial(mtlFile, objFile, imgPath) {\n let mtlLoader = new MTLLoader();\n mtlLoader.setTexturePath(imgPath);\n let url = mtlFile;\n return new Promise((resolve, reject) => {\n\n mtlLoader.load(url, materials => {\n materials.preload();\n let objLoader = new OBJLoader();\n objLoader.setMaterials(materials);\n objLoader.load(objFile, object => resolve(object));\n\n });\n });\n}\n\n","import * as Three from 'three';\nimport React from 'react';\n\nconst RADIUS = 15;\nconst HEIGHT = 60;\n\n//colors\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\nconst red = new Three.MeshLambertMaterial({color: 0xff0000});\nconst grey = new Three.MeshLambertMaterial({color: 0xCCCCCC});\nconst yellow = new Three.MeshLambertMaterial({color: 0xffff00});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMiddleLOD = makeObjectMiddleLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\n\nfunction makeObjectMaxLOD() {\n\n const bodyGeometry = new Three.CylinderGeometry(0.1, 0.1, 0.5, 32);\n const body = new Three.Mesh(bodyGeometry, red);\n body.position.set(0, 1, 0);\n\n const bodyGeometry2 = new Three.CylinderGeometry(0.11, 0.11, 0.03, 32);\n const lock = new Three.Mesh(bodyGeometry2, black);\n lock.position.set(0, -0.2, 0);\n body.add(lock);\n\n const geometrySphereUp = new Three.SphereGeometry(0.1, 32, 32);\n const sphereUp = new Three.Mesh(geometrySphereUp, red);\n sphereUp.position.set(0, 0.25, 0);\n body.add(sphereUp);\n\n const cylinderGeometry = new Three.CylinderGeometry(0.015, 0.025, 0.05, 32);\n const vent_p1 = new Three.Mesh(cylinderGeometry, black);\n vent_p1.position.z = -0.13;\n vent_p1.position.y = -0.23;\n body.add(vent_p1);\n\n const cylinderGeometry1 = new Three.CylinderGeometry(0.01, 0.01, 0.02, 32);\n const vent_p2 = new Three.Mesh(cylinderGeometry1, grey);\n vent_p2.position.z = -0.13;\n vent_p2.position.y = -0.2;\n body.add(vent_p2);\n\n const cylinderGeometry2 = new Three.CylinderGeometry(0.015, 0.02, 0.04, 32);\n const cylinder2 = new Three.Mesh(cylinderGeometry2, black);\n cylinder2.position.set(0, 0.35, 0);\n body.add(cylinder2);\n\n const cylinderGeometry3 = new Three.CylinderGeometry(0.01, 0.01, 0.02, 32);\n const cylinder3 = new Three.Mesh(cylinderGeometry3, grey);\n cylinder3.position.set(0, 0.38, 0);\n body.add(cylinder3);\n\n const cylinderGeometry4 = new Three.CylinderGeometry(0.005, 0.005, 0.02, 32);\n const cylinder4 = new Three.Mesh(cylinderGeometry4, grey);\n cylinder4.position.set(-0.01, 0.38, 0);\n cylinder4.rotation.z += Math.PI / 2;\n body.add(cylinder4);\n\n const cylinderGeometry5 = new Three.CylinderGeometry(0.02, 0.02, 0.01, 32);\n const cylinder5 = new Three.Mesh(cylinderGeometry5, grey);\n cylinder5.position.set(-0.02, 0.38, 0);\n cylinder5.rotation.z += Math.PI / 2;\n body.add(cylinder5);\n\n const textureLoader = new Three.TextureLoader();\n const gageImage = textureLoader.load(require('./gage-image.png'));\n\n const geometry2 = new Three.PlaneGeometry(0.04, 0.04);\n const material2 = new Three.MeshLambertMaterial({map: gageImage, transparent: true});\n const gage = new Three.Mesh(geometry2, material2);\n gage.position.set(-0.0255, 0.38, 0);\n gage.rotation.y = -Math.PI / 2;\n body.add(gage);\n\n const cylinderGeometry6 = new Three.CylinderGeometry(0.005, 0.005, 0.03, 32);\n const cylinder6 = new Three.Mesh(cylinderGeometry6, grey);\n cylinder6.position.set(0, 0.38, -0.01);\n cylinder6.rotation.z += Math.PI / 2;\n cylinder6.rotation.y += Math.PI / 2;\n body.add(cylinder6);\n\n const cylinderGeometry7 = new Three.CylinderGeometry(0.01, 0.01, 0.02, 32);\n const cylinder7 = new Three.Mesh(cylinderGeometry7, grey);\n cylinder7.position.set(0, 0.38, -0.03);\n cylinder7.rotation.z += Math.PI / 2;\n cylinder7.rotation.y += Math.PI / 2;\n body.add(cylinder7);\n\n const labelImage = textureLoader.load(require('./label-image.png'));\n labelImage.wrapS = Three.RepeatWrapping;\n labelImage.wrapT = Three.RepeatWrapping;\n labelImage.repeat.set(1, 1);\n labelImage.offset.x = 0; // 0.0 - 1.0\n labelImage.offset.y = 0; // 0.0 - 1.0\n\n const points = [\n new Three.Vector2(.1, .666),\n new Three.Vector2(.1, 1)\n ];\n\n const geometry = new Three.LatheGeometry(points, 200, 0, Math.PI);\n const material = new Three.MeshLambertMaterial({map: labelImage});\n const label = new Three.Mesh(geometry, material);\n\n label.rotation.y = 60;\n label.position.y -= .75;\n body.add(label);\n\n const shape2 = new Three.Shape();\n shape2.moveTo(0.02, 0.06);\n shape2.lineTo(0.06, 0.07);\n shape2.lineTo(0.08, 0.1);\n shape2.lineTo(0.16, 0.1);\n shape2.lineTo(0.18, 0.09);\n shape2.lineTo(0.09, 0.08);\n shape2.lineTo(0.07, 0.05);\n shape2.lineTo(0.02, 0.04);\n\n const extrudeSettings = {\n steps: 2,\n depth: 0.02,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n const geometry4 = new Three.ExtrudeGeometry(shape2, extrudeSettings);\n const material4 = new Three.MeshLambertMaterial({color: 0xff0000});\n const valve_p1 = new Three.Mesh(geometry4, material4);\n valve_p1.rotation.y = -Math.PI / 2;\n valve_p1.position.set(0.01, 0.35, -0.035);\n body.add(valve_p1);\n\n const shape3 = new Three.Shape();\n shape3.moveTo(0.02, 0.06);\n shape3.lineTo(0.04, 0.06);\n shape3.lineTo(0.16, 0.05);\n shape3.lineTo(0.18, 0.03);\n shape3.lineTo(0.16, 0.04);\n shape3.lineTo(0.02, 0.04);\n\n const extrudeSettings2 = {\n steps: 2,\n depth: 0.016,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n const geometry5 = new Three.ExtrudeGeometry(shape3, extrudeSettings2);\n const valve_p2 = new Three.Mesh(geometry5, red);\n valve_p2.rotation.y = -Math.PI / 2;\n valve_p2.position.set(0.01, 0.34, -0.035);\n body.add(valve_p2);\n\n const geometry6 = new Three.TorusGeometry(0.0075, 0.00125, 16, 32, 1200);\n const safetyValve_p1 = new Three.Mesh(geometry6, yellow);\n safetyValve_p1.rotation.x = -Math.PI / 2;\n safetyValve_p1.position.set(-0.023, 0.41, 0.02);\n body.add(safetyValve_p1);\n\n const cylinderGeometry8 = new Three.CylinderGeometry(0.001, 0.001, 0.03, 32);\n const safetyValve_p2 = new Three.Mesh(cylinderGeometry8, yellow);\n safetyValve_p2.position.set(0, 0.41, 0.02);\n safetyValve_p2.rotation.z += Math.PI / 2;\n body.add(safetyValve_p2);\n\n const cylinderGeometry9 = new Three.CylinderGeometry(0.0025, 0.0025, 0.026, 32);\n const cylinder9 = new Three.Mesh(cylinderGeometry9, grey);\n cylinder9.position.set(0, 0.40, 0.0);\n cylinder9.rotation.z += Math.PI / 2;\n body.add(cylinder9);\n\n const curve = new Three.CatmullRomCurve3([\n new Three.Vector3(.5, 0, 0),\n new Three.Vector3(.5, 0, 0),\n new Three.Vector3(0, 0, 0),\n new Three.Vector3(-0.03, .1050, 0),\n new Three.Vector3(-0.03, .1050, 0)\n ]);\n\n const geometry7 = new Three.TubeGeometry(curve, 32, 0.008, 16, false);\n const mesh = new Three.Mesh(geometry7, black);\n mesh.position.set(0, 0.35, -0.13);\n mesh.rotation.y -= Math.PI / 2;\n mesh.rotation.z = (Math.PI / 2) + (4 * Math.PI);\n mesh.rotation.x += Math.PI;\n body.add(mesh);\n\n return body\n\n}\n\nfunction makeObjectMiddleLOD() {\n\n let bodyGeometry21 = new Three.CylinderGeometry(0.1, 0.1, 0.5, 8);\n let body1 = new Three.Mesh(bodyGeometry21, red);\n body1.position.set(0, 1, 0);\n\n let bodyGeometry22 = new Three.CylinderGeometry(0.11, 0.11, 0.03, 8);\n let lock2 = new Three.Mesh(bodyGeometry22, black);\n lock2.position.set(0, -0.2, 0);\n body1.add(lock2);\n\n let geometrySphereUp1 = new Three.SphereGeometry(0.095, 32, 8);\n let sphereUp1 = new Three.Mesh(geometrySphereUp1, red);\n sphereUp1.position.set(0, 0.25, 0);\n body1.add(sphereUp1);\n\n return body1\n\n}\n\nfunction makeObjectMinLOD() {\n let bodyGeometry0 = new Three.CylinderGeometry(0.1, 0.1, 0.475, 6);\n let body0 = new Three.Mesh(bodyGeometry0, red);\n body0.position.set(0, .95, 0);\n\n return body0\n}\n\nexport default {\n name: \"fire-extinguisher\",\n prototype: \"items\",\n\n info: {\n tag: ['security'],\n title: \"Fire extinguisher\",\n description: \"Fire extinguisher\",\n image: require('./fire-extinguisher.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let fireExtinguisher2 = new Three.Object3D();\n\n fireExtinguisher2.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(fireExtinguisher2);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n\n fireExtinguisher2.rotation.y += -Math.PI / 2;\n fireExtinguisher2.position.y += -HEIGHT / 1.25 + newAltitude;\n fireExtinguisher2.scale.set(RADIUS / deltaX, RADIUS / deltaX, HEIGHT / deltaY);\n\n /**************** LOD middle ***********************/\n\n let fireExtinguisher1 = new Three.Object3D();\n\n\n fireExtinguisher1.add(objectMiddleLOD.clone());\n\n fireExtinguisher1.position.y += -HEIGHT / 1.25 + newAltitude;\n fireExtinguisher1.scale.set(RADIUS / deltaX, RADIUS / deltaX, HEIGHT / deltaY);\n\n\n /**************** LOD min ***********************/\n\n let fireExtinguisher0 = new Three.Object3D();\n\n fireExtinguisher0.add(objectMinLOD.clone());\n\n fireExtinguisher0.position.y += -HEIGHT / 1.35 + newAltitude;\n fireExtinguisher0.scale.set(RADIUS / deltaX, RADIUS / deltaX, HEIGHT / deltaY);\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(fireExtinguisher2, 200);\n lod.addLevel(fireExtinguisher1, 900);\n lod.addLevel(fireExtinguisher0, 1200);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/electrical-panel/electricalPanel.png\";","module.exports = __webpack_public_path__ + \"catalog/items/electrical-panel/texturePanel.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst cubeMaterial = new Three.MeshLambertMaterial({color: 0xf5f4f4});\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth) {\n\n let electricalPanel = new Three.Mesh();\n\n let textureLoader = new Three.TextureLoader();\n let mat = textureLoader.load(require('./texturePanel.png'));\n\n let cubeGeometryBase = new Three.BoxGeometry(newWidth, newHeight, newDepth);\n\n let p1 = new Three.Mesh(cubeGeometryBase, cubeMaterial);\n p1.position.set(0, 1, 0);\n electricalPanel.add(p1);\n\n let planeGeometryBase = new Three.PlaneGeometry(newWidth, newHeight);\n let planeMaterial = new Three.MeshLambertMaterial({map: mat});\n\n let p2 = new Three.Mesh(planeGeometryBase, planeMaterial);\n p2.position.set(0, 1, 25.5);\n p1.add(p2);\n\n return electricalPanel\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth) {\n\n let electricalPanel = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(newWidth, newHeight, newDepth);\n let p1 = new Three.Mesh(cubeGeometryBase, cubeMaterial);\n p1.position.set(0, 1, 0);\n electricalPanel.add(p1);\n\n return electricalPanel\n}\n\nexport default {\n name: \"pannello_elettrico\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"electric panel\",\n description: \"electric panel\",\n image: require('./electricalPanel.png')\n },\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 90,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 50,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 210,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.get('name')}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let newHeight = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n\n /**************** LOD max ***********************/\n\n let elettricalPannel2=new Three.Object3D();\n\n let objectMaxLOD = makeObjectMaxLOD(newWidth,newHeight,newDepth);\n elettricalPannel2.add(objectMaxLOD.clone());\n elettricalPannel2.rotation.y=Math.PI;\n elettricalPannel2.position.y+= newHeight/2 + newAltitude;\n\n /**************** LOD max ***********************/\n\n let elettricalPannel1=new Three.Object3D();\n let objectMinLOD = makeObjectMinLOD(newWidth,newHeight,newDepth);\n elettricalPannel1.add(objectMinLOD.clone());\n elettricalPannel1.rotation.y=Math.PI;\n elettricalPannel1.position.y+= newHeight/2 + newAltitude;\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(elettricalPannel2, 200);\n lod.addLevel(elettricalPannel1, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/deskoffice/desk.png\";","module.exports = __webpack_public_path__ + \"catalog/items/deskoffice/wood.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/deskoffice/white.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst textureLoader = new Three.TextureLoader();\nconst white = textureLoader.load(require(\"./white.jpg\"));\nconst whiteMaterial = new Three.MeshLambertMaterial({color:0x000000});\nconst wood = textureLoader.load(require(\"./wood.jpg\"));\nconst glassMaterial = new Three.MeshLambertMaterial({color:0xc6c6c6,transparent: true, opacity:.5});\n\nfunction makeMonitor(newDepth)\n{\n let monitor = new Three.Object3D();\n\n let cubeGeometryBase = new Three.BoxGeometry(0.04,0.42,0.06);\n let whiteTexture = new Three.MeshLambertMaterial({map:white});\n let edge1 = new Three.Mesh(cubeGeometryBase,whiteTexture);\n edge1.position.set(0,0.79,0);\n edge1.rotation.x=Math.PI/2;\n monitor.add(edge1);\n\n let edge2 = new Three.Mesh(cubeGeometryBase,whiteTexture);\n edge2.position.set(0,0.43,0);\n edge2.rotation.x=Math.PI/2;\n monitor.add(edge2);\n\n let cubeGeometryBase2 = new Three.BoxGeometry(0.04,0.42,0.04);\n let edge3 = new Three.Mesh(cubeGeometryBase2,whiteTexture);\n edge3.position.set(0,0.61,0.21);\n monitor.add(edge3);\n\n let edge4 = new Three.Mesh(cubeGeometryBase2,whiteTexture);\n edge4.position.set(0,0.61,-0.21);\n monitor.add(edge4);\n\n let cubeGeometryBase3 = new Three.BoxGeometry(0.4,0.40,0.05);\n let screen = new Three.Mesh(cubeGeometryBase3,whiteMaterial);\n screen.position.set(-0.02,0.61,0);\n screen.rotation.y=Math.PI/2;\n monitor.add(screen);\n\n monitor.rotation.y-=Math.PI/2;\n monitor.rotation.x-=Math.PI/3;\n\n let value = new Three.Box3().setFromObject(monitor);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n monitor.scale.set(newDepth/3 / deltaX, newDepth/4 / deltaY, newDepth/4 / deltaZ);\n\n return monitor\n}\n\nfunction makeObjectMaxLOD(newWidthA,newWidthB,newHeight,newDepth) {\n\n let desk = new Three.Mesh();\n\n let rectShape = new Three.Shape();\n if(newWidthAnewWidthB) {\n rectShape.moveTo(0, 0);\n rectShape.lineTo(newWidthA, 0);\n rectShape.lineTo(newWidthA + (newWidthB/2 - newWidthA/2), newDepth);\n rectShape.lineTo(-(newWidthB/2-newWidthA/2), newDepth);\n }\n else if(newWidthA===newWidthB){\n rectShape.moveTo( 0,0 );\n rectShape.lineTo( 0, newDepth );\n rectShape.lineTo( newWidthA, newDepth );\n rectShape.lineTo( newWidthA, 0 );\n }\n\n let extrudeSettings = {\n steps: 2,\n depth: newHeight/40,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n\n\n let geometry = new Three.ExtrudeGeometry( rectShape, extrudeSettings );\n let woodTexture = new Three.MeshLambertMaterial({map:wood});\n let mesh = new Three.Mesh( geometry, woodTexture ) ;\n\n mesh.rotation.x+=Math.PI/2;\n mesh.position.y=newHeight/1.8;\n\n let rectShape2 = new Three.Shape();\n let hole = new Three.Path();\n if(newWidthAnewWidthB){\n\n rectShape2.moveTo(0, 0);\n rectShape2.lineTo(newWidthA, 0);\n rectShape2.lineTo(newWidthA + (newWidthB/2 - newWidthA/2), newDepth);\n rectShape2.lineTo(-(newWidthB/2-newWidthA/2), newDepth);\n\n hole.moveTo(newWidthA / 2 - newWidthB / 2 - newWidthA / 20, newDepth / 20);\n hole.lineTo(newWidthA - (newWidthA / 2 - newWidthB / 2) + newWidthA / 20, newDepth / 20);\n hole.lineTo(newWidthB + newWidthA / 20, newDepth - newDepth / 20);\n hole.lineTo(newWidthA - newWidthB - newWidthA / 20, newDepth - newDepth / 20);\n rectShape2.holes.push(hole);\n }\n else if(newWidthA===newWidthB){\n\n rectShape2.moveTo(0, 0);\n rectShape2.lineTo(newWidthA, 0);\n rectShape2.lineTo(newWidthA, newDepth);\n rectShape2.lineTo(0, newDepth);\n\n hole.moveTo(newWidthA/20, newDepth/20);\n hole.lineTo(newWidthA-newWidthA/20, newDepth/20);\n hole.lineTo(newWidthA-newWidthA/20, newDepth-newDepth/20);\n hole.lineTo(newWidthA/20, newDepth-newDepth/20);\n rectShape2.holes.push(hole);\n }\n\n let geometry2 = new Three.ExtrudeGeometry( rectShape2, extrudeSettings );\n let mesh2 = new Three.Mesh( geometry2, woodTexture ) ;\n mesh2.position.y+=newHeight;\n mesh2.position.z+=newDepth/40;\n mesh2.rotation.x+=Math.PI/2;\n\n let mesh3 = new Three.Mesh( geometry, woodTexture ) ;\n mesh3.position.y+=newHeight;\n mesh3.rotation.x+=Math.PI/1.5;\n\n if (newWidthA < newWidthB) {\n mesh3.scale.set(.98,1,1);\n mesh3.position.x += 3;\n }\n if (newWidthA > newWidthB || newWidthA === newWidthB) mesh3.scale.set(1,1,1);\n\n let glass = new Three.Shape();\n if(newWidthAnewWidthB){\n glass.moveTo(newWidthA / 2 - newWidthB / 2 - newWidthA / 20, newDepth / 20);\n glass.lineTo(newWidthA - (newWidthA / 2 - newWidthB / 2) + newWidthA / 20, newDepth / 20);\n glass.lineTo(newWidthB + newWidthA / 20, newDepth - newDepth / 20);\n glass.lineTo(newWidthA - newWidthB - newWidthA / 20, newDepth - newDepth / 20);\n }\n else if (newWidthA===newWidthB){\n glass.moveTo(newWidthA/20, newDepth/20);\n glass.lineTo(newWidthA-newWidthA/20, newDepth/20);\n glass.lineTo(newWidthA-newWidthA/20, newDepth-newDepth/20);\n glass.lineTo(newWidthA/20, newDepth-newDepth/20);\n }\n\n let geometry4 = new Three.ExtrudeGeometry( glass, extrudeSettings );\n let mesh4 = new Three.Mesh( geometry4, glassMaterial ) ;\n mesh4.position.y+=newHeight;\n mesh4.rotation.x+=Math.PI/2;\n\n let geometry5 = new Three.BoxGeometry(newWidthA,newDepth/20,1.6*newHeight);\n let mesh5 = new Three.Mesh(geometry5, woodTexture);\n mesh5.rotation.x+=Math.PI/2;\n mesh5.position.set(newWidthA/2,newHeight/5,0);\n\n let c;\n\n if(newWidthAnewWidthB)\n c = (newWidthA/2 - newWidthB/2);\n\n let value = (newDepth)/c;\n let angle = Math.atan(value);\n let edge;\n\n edge = Math.sqrt(Math.pow(c,2)+Math.pow(newDepth,2));\n\n if (newWidthA===newWidthB) edge = newDepth;\n\n let geometry6 = new Three.BoxGeometry(edge,newDepth/20,1.6*newHeight);\n let mesh6 = new Three.Mesh(geometry6, woodTexture);\n mesh6.rotation.x+=Math.PI/2;\n\n if(newWidthAnewWidthB) {\n mesh6.position.set((newWidthA- (newWidthA/2+newWidthB/2))/2, newHeight / 5, newDepth / 2);\n mesh6.rotation.z+=angle;\n }\n else if(newWidthA===newWidthB) {\n mesh6.position.set(0, newHeight / 5, newDepth / 2);\n mesh6.rotation.z+=Math.PI/2;\n }\n\n\n let mesh7 = mesh6.clone();\n if(newWidthAnewWidthB) {\n mesh7.position.set(newWidthA - (newWidthA/2 - newWidthB/2)/2, newHeight / 5, newDepth / 2);\n mesh7.rotation.z=-Math.PI - angle;\n }\n else if(newWidthA===newWidthB) {\n mesh7.position.set(newWidthB,newHeight/5,newDepth/2);\n }\n\n let index;\n let indexMonitor;\n let lastPosition;\n let lastPositionMonitor;\n let incrPosition;\n\n if (newWidthAnewWidthB){\n index = newWidthA/2 - newWidthB/2;\n indexMonitor = 2 * (newWidthA/2 - newWidthB/2);\n lastPosition = newWidthA - (newWidthA/2 - newWidthB/2);\n lastPositionMonitor = newWidthA - 2 * (newWidthA/2 - newWidthB/2);\n incrPosition = newWidthA/2 - newWidthB/2;\n }\n else if (newWidthA===newWidthB){\n index = 0;\n indexMonitor = newWidthA/8;\n lastPosition = newWidthA;\n lastPositionMonitor = newWidthA - newWidthA/8;\n incrPosition = newWidthA/8;\n }\n\n for ( let i = index + incrPosition; i < lastPosition; i+=incrPosition) {\n\n let geometry8 = new Three.BoxGeometry(newDepth,newDepth/20,1.55*newHeight);\n let mesh8 = new Three.Mesh(geometry8, woodTexture);\n mesh8.rotation.x=Math.PI/2;\n mesh8.rotation.z=Math.PI/2;\n mesh8.position.x+=i;\n mesh8.position.y+=newHeight/5;\n mesh8.position.z+=newDepth/2;\n desk.add(mesh8);\n\n }\n\n desk.add(mesh);\n desk.add(mesh2);\n desk.add(mesh3);\n desk.add(mesh4);\n desk.add(mesh5);\n desk.add(mesh6);\n desk.add(mesh7);\n\n\n for (let i = indexMonitor + incrPosition/2; i < lastPositionMonitor ; i += incrPosition) {\n let monitor2 = makeMonitor(newDepth);\n monitor2.position.x = i;\n monitor2.position.z += 1.15*newDepth;\n monitor2.position.y += mesh3.position.y/2.2;\n desk.add(monitor2);\n }\n\n return desk\n}\n\nfunction makeObjectMinLOD(newWidthA,newWidthB,newHeight,newDepth) {\n\n let desk = new Three.Mesh();\n\n let rectShape = new Three.Shape();\n if(newWidthAnewWidthB) {\n rectShape.moveTo(0, 0);\n rectShape.lineTo(newWidthA, 0);\n rectShape.lineTo(newWidthA + (newWidthB/2 - newWidthA/2), newDepth);\n rectShape.lineTo(-(newWidthB/2-newWidthA/2), newDepth);\n }\n else if(newWidthA===newWidthB){\n rectShape.moveTo( 0,0 );\n rectShape.lineTo( 0, newDepth );\n rectShape.lineTo( newWidthA, newDepth );\n rectShape.lineTo( newWidthA, 0 );\n }\n\n let extrudeSettings = {\n steps: 2,\n depth: newHeight/40,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n\n\n let geometry = new Three.ExtrudeGeometry( rectShape, extrudeSettings );\n let woodTexture = new Three.MeshLambertMaterial({map:wood});\n let mesh = new Three.Mesh( geometry, woodTexture ) ;\n\n mesh.rotation.x+=Math.PI/2;\n mesh.position.y=newHeight/1.8;\n\n let rectShape2 = new Three.Shape();\n let hole = new Three.Path();\n if(newWidthAnewWidthB){\n\n rectShape2.moveTo(0, 0);\n rectShape2.lineTo(newWidthA, 0);\n rectShape2.lineTo(newWidthA + (newWidthB/2 - newWidthA/2), newDepth);\n rectShape2.lineTo(-(newWidthB/2-newWidthA/2), newDepth);\n\n hole.moveTo(newWidthA / 2 - newWidthB / 2 - newWidthA / 20, newDepth / 20);\n hole.lineTo(newWidthA - (newWidthA / 2 - newWidthB / 2) + newWidthA / 20, newDepth / 20);\n hole.lineTo(newWidthB + newWidthA / 20, newDepth - newDepth / 20);\n hole.lineTo(newWidthA - newWidthB - newWidthA / 20, newDepth - newDepth / 20);\n rectShape2.holes.push(hole);\n }\n else if(newWidthA===newWidthB){\n\n rectShape2.moveTo(0, 0);\n rectShape2.lineTo(newWidthA, 0);\n rectShape2.lineTo(newWidthA, newDepth);\n rectShape2.lineTo(0, newDepth);\n\n hole.moveTo(newWidthA/20, newDepth/20);\n hole.lineTo(newWidthA-newWidthA/20, newDepth/20);\n hole.lineTo(newWidthA-newWidthA/20, newDepth-newDepth/20);\n hole.lineTo(newWidthA/20, newDepth-newDepth/20);\n rectShape2.holes.push(hole);\n }\n\n let geometry2 = new Three.ExtrudeGeometry( rectShape2, extrudeSettings );\n let mesh2 = new Three.Mesh( geometry2, woodTexture ) ;\n mesh2.position.y+=newHeight;\n mesh2.position.z+=newDepth/40;\n mesh2.rotation.x+=Math.PI/2;\n\n let mesh3 = new Three.Mesh( geometry, woodTexture ) ;\n mesh3.position.y+=newHeight;\n mesh3.rotation.x+=Math.PI/1.5;\n\n if (newWidthA < newWidthB) {\n mesh3.scale.set(.98,1,1);\n mesh3.position.x += 3;\n }\n if (newWidthA > newWidthB || newWidthA === newWidthB) mesh3.scale.set(1,1,1);\n\n let glass = new Three.Shape();\n if(newWidthAnewWidthB){\n glass.moveTo(newWidthA / 2 - newWidthB / 2 - newWidthA / 20, newDepth / 20);\n glass.lineTo(newWidthA - (newWidthA / 2 - newWidthB / 2) + newWidthA / 20, newDepth / 20);\n glass.lineTo(newWidthB + newWidthA / 20, newDepth - newDepth / 20);\n glass.lineTo(newWidthA - newWidthB - newWidthA / 20, newDepth - newDepth / 20);\n }\n else if (newWidthA===newWidthB){\n glass.moveTo(newWidthA/20, newDepth/20);\n glass.lineTo(newWidthA-newWidthA/20, newDepth/20);\n glass.lineTo(newWidthA-newWidthA/20, newDepth-newDepth/20);\n glass.lineTo(newWidthA/20, newDepth-newDepth/20);\n }\n\n let geometry4 = new Three.ExtrudeGeometry( glass, extrudeSettings );\n let glassMaterial = new Three.MeshLambertMaterial({color:0xc6c6c6,transparent: true, opacity:.5});\n let mesh4 = new Three.Mesh( geometry4, glassMaterial ) ;\n mesh4.position.y+=newHeight;\n mesh4.rotation.x+=Math.PI/2;\n\n let geometry5 = new Three.BoxGeometry(newWidthA,newDepth/20,1.6*newHeight);\n let mesh5 = new Three.Mesh(geometry5, woodTexture);\n mesh5.rotation.x+=Math.PI/2;\n mesh5.position.set(newWidthA/2,newHeight/5,0);\n\n let c;\n\n if(newWidthAnewWidthB)\n c = (newWidthA/2 - newWidthB/2);\n\n let value = (newDepth)/c;\n let angle = Math.atan(value);\n let edge;\n\n edge = Math.sqrt(Math.pow(c,2)+Math.pow(newDepth,2));\n\n if (newWidthA===newWidthB) edge = newDepth;\n\n let geometry6 = new Three.BoxGeometry(edge,newDepth/20,1.6*newHeight);\n let mesh6 = new Three.Mesh(geometry6, woodTexture);\n mesh6.rotation.x+=Math.PI/2;\n\n if(newWidthAnewWidthB) {\n mesh6.position.set((newWidthA- (newWidthA/2+newWidthB/2))/2, newHeight / 5, newDepth / 2);\n mesh6.rotation.z+=angle;\n }\n else if(newWidthA===newWidthB) {\n mesh6.position.set(0, newHeight / 5, newDepth / 2);\n mesh6.rotation.z+=Math.PI/2;\n }\n\n\n let mesh7 = mesh6.clone();\n if(newWidthAnewWidthB) {\n mesh7.position.set(newWidthA - (newWidthA/2 - newWidthB/2)/2, newHeight / 5, newDepth / 2);\n mesh7.rotation.z=-Math.PI - angle;\n }\n else if(newWidthA===newWidthB) {\n mesh7.position.set(newWidthB,newHeight/5,newDepth/2);\n }\n\n desk.add(mesh);\n desk.add(mesh2);\n desk.add(mesh3);\n desk.add(mesh4);\n desk.add(mesh5);\n desk.add(mesh6);\n desk.add(mesh7);\n\n return desk\n}\n\nexport default {\n name: \"desk\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'wood'],\n title: \"desk\",\n description: \"desk\",\n image: require('./desk.png')\n },\n\n properties: {\n widthA: {\n label: \"larghezza lato A\",\n type: \"length-measure\",\n defaultValue: {\n length: 400,\n unit: 'cm'\n }\n },\n widthB: {\n label: \"larghezza lato B\",\n type: \"length-measure\",\n defaultValue: {\n length: 400,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 90,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidthA = element.properties.get('widthA').get('length');\n let newWidthB = element.properties.get('widthB').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidthA = element.properties.get('widthA').get('length');\n let newWidthB = element.properties.get('widthB').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let newHeight = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n /********** lod max **********/\n\n let scrivaniaMaxLOD = new Three.Object3D();\n scrivaniaMaxLOD.add(makeObjectMaxLOD(newWidthA,newWidthB,newHeight,newDepth).clone());\n\n let aa = new Three.Box3().setFromObject(scrivaniaMaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n scrivaniaMaxLOD.position.y += newHeight/2 + newAltitude;\n scrivaniaMaxLOD.position.z += newDepth/2;\n if (newWidthAnewWidthB)\n scrivaniaMaxLOD.position.x += newWidthA/2;\n if (newWidthA===newWidthB)\n scrivaniaMaxLOD.position.x += newWidthB/2;\n\n scrivaniaMaxLOD.rotation.y += Math.PI;\n if(newWidthAnewWidthB)\n scrivaniaMaxLOD.scale.set(newWidthA / deltaX, newDepth / deltaY, newHeight / deltaZ);\n if(newWidthA===newWidthB)\n scrivaniaMaxLOD.scale.set(newWidthA / deltaX, newDepth / deltaY, newHeight / deltaZ);\n\n /********** lod min **********/\n\n let scrivaniaMinLOD = new Three.Object3D();\n scrivaniaMinLOD.add(makeObjectMinLOD(newWidthA,newWidthB,newHeight,newDepth).clone());\n\n scrivaniaMinLOD.position.y += newHeight/2 + newAltitude;\n scrivaniaMinLOD.position.z += newDepth/2;\n if (newWidthAnewWidthB)\n scrivaniaMinLOD.position.x += newWidthA/2;\n if (newWidthA===newWidthB)\n scrivaniaMinLOD.position.x += newWidthB/2;\n\n scrivaniaMinLOD.rotation.y += Math.PI;\n if(newWidthAnewWidthB)\n scrivaniaMinLOD.scale.set(newWidthA / deltaX, newDepth / deltaY, newHeight / deltaZ);\n if(newWidthA===newWidthB)\n scrivaniaMinLOD.scale.set(newWidthA / deltaX, newDepth / deltaY, newHeight / deltaZ);\n\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(scrivaniaMaxLOD, 700);\n lod.addLevel(scrivaniaMinLOD, 1000);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/deskdouble/deskdouble.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 120;\nconst DEPTH = 50;\nconst HEIGHT = 90;\n\nconst brown = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\nconst grey = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\nconst green = new Three.MeshBasicMaterial({color:0x669966});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let deskdouble = new Three.Mesh();\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let radius = .03;\n\n let geometry = new Three.BoxGeometry( newWidth+newWidth/6, newHeight/20, newDepth+newDepth/4 );\n\n let boxMaterials = [ brown, brown, green, brown, brown, brown];\n\n let plane = new Three.Mesh( geometry, boxMaterials);\n plane.position.y = newHeight;\n deskdouble.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( radius, radius, newHeight, 32, 32 );\n\n let geometry2 = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane2 = new Three.Mesh( geometry2, brown );\n plane2.position.y = newHeight/2+newHeight/4;\n deskdouble.add(plane2);\n\n let geometry3 = new Three.BoxGeometry( newWidth, newHeight/10, newDepth/20 );\n let plane3 = new Three.Mesh( geometry3, brown );\n plane3.position.y = newHeight/2+newHeight/4+newHeight/16;\n plane3.position.z = newDepth/3+newDepth/5;\n deskdouble.add(plane3);\n\n let leg1 = new Three.Mesh( geometry_legs, grey );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n deskdouble.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, grey );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n deskdouble.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, grey );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n deskdouble.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, grey );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n deskdouble.add(leg4);\n\n return deskdouble\n}\n\nfunction makeObjectMinLOD() {\n\n let deskdouble = new Three.Mesh();\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let radius = .03;\n\n let geometry = new Three.BoxGeometry( newWidth+newWidth/6, newHeight/20, newDepth+newDepth/4 );\n\n let boxMaterials = [ brown, brown, green, brown, brown, brown];\n\n let plane = new Three.Mesh( geometry, boxMaterials);\n plane.position.y = newHeight;\n deskdouble.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( radius, radius, newHeight, 8, 8 );\n\n let geometry2 = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane2 = new Three.Mesh( geometry2, brown );\n plane2.position.y = newHeight/2+newHeight/4;\n deskdouble.add(plane2);\n\n let geometry3 = new Three.BoxGeometry( newWidth, newHeight/10, newDepth/20 );\n let plane3 = new Three.Mesh( geometry3, brown );\n plane3.position.y = newHeight/2+newHeight/4+newHeight/16;\n plane3.position.z = newDepth/3+newDepth/5;\n deskdouble.add(plane3);\n\n let leg1 = new Three.Mesh( geometry_legs, grey );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n deskdouble.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, grey );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n deskdouble.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, grey );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n deskdouble.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, grey );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n deskdouble.add(leg4);\n\n return deskdouble\n}\n\nexport default {\n name: 'double school desk',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood'],\n title: 'double school desk',\n description: 'double school desk',\n image: require('./deskdouble.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /*************** lod max *******************/\n\n let deskdoubleMaxLOD = new Three.Object3D();\n deskdoubleMaxLOD.add(objectMaxLOD.clone());\n\n let valueObject = new Three.Box3().setFromObject(deskdoubleMaxLOD);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n deskdoubleMaxLOD.rotation.y += Math.PI;\n deskdoubleMaxLOD.position.y += newAltitude;\n deskdoubleMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /*************** lod min *******************/\n\n let deskdoubleMinLOD = new Three.Object3D();\n deskdoubleMinLOD.add(objectMinLOD.clone());\n deskdoubleMinLOD.rotation.y += Math.PI;\n deskdoubleMinLOD.position.y += newAltitude;\n deskdoubleMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(deskdoubleMaxLOD, 200);\n lod.addLevel(deskdoubleMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/desk/desk.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 70;\nconst DEPTH = 50;\nconst HEIGHT = 90;\n\nconst brown = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\nconst grey = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\nconst green = new Three.MeshBasicMaterial({color:0x669966});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let desk = new Three.Mesh();\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let radius = .03;\n\n let geometry = new Three.BoxGeometry( newWidth+newWidth/6, newHeight/20, newDepth+newDepth/4 );\n\n let boxMaterials = [ brown, brown, green, brown, brown, brown];\n\n let plane = new Three.Mesh( geometry, boxMaterials);\n plane.position.y = newHeight;\n desk.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( radius, radius, newHeight, 32, 32 );\n\n let geometry2 = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane2 = new Three.Mesh( geometry2, brown );\n plane2.position.y = newHeight/2+newHeight/4;\n desk.add(plane2);\n\n let geometry3 = new Three.BoxGeometry( newWidth, newHeight/10, newDepth/20 );\n let plane3 = new Three.Mesh( geometry3, brown );\n plane3.position.y = newHeight/2+newHeight/4+newHeight/16;\n plane3.position.z = newDepth/3+newDepth/5;\n desk.add(plane3);\n\n let leg1 = new Three.Mesh( geometry_legs, grey );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n desk.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, grey );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n desk.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, grey );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n desk.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, grey );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n desk.add(leg4);\n\n return desk\n}\n\nfunction makeObjectMinLOD() {\n\n let desk = new Three.Mesh();\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let radius = .03;\n\n let geometry = new Three.BoxGeometry( newWidth+newWidth/6, newHeight/20, newDepth+newDepth/4 );\n\n let boxMaterials = [ brown, brown, green, brown, brown, brown];\n\n let plane = new Three.Mesh( geometry, boxMaterials);\n plane.position.y = newHeight;\n desk.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( radius, radius, newHeight, 32, 32 );\n\n let geometry2 = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane2 = new Three.Mesh( geometry2, brown );\n plane2.position.y = newHeight/2+newHeight/4;\n desk.add(plane2);\n\n let geometry3 = new Three.BoxGeometry( newWidth, newHeight/10, newDepth/20 );\n let plane3 = new Three.Mesh( geometry3, brown );\n plane3.position.y = newHeight/2+newHeight/4+newHeight/16;\n plane3.position.z = newDepth/3+newDepth/5;\n desk.add(plane3);\n\n let leg1 = new Three.Mesh( geometry_legs, grey );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n desk.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, grey );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n desk.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, grey );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n desk.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, grey );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n desk.add(leg4);\n\n return desk\n}\n\nexport default {\n name: 'school desk',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood'],\n title: 'school desk',\n description: 'school desk',\n image: require('./desk.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************* lod max ******************/\n\n let deskMaxLOD = new Three.Object3D();\n deskMaxLOD.add(objectMaxLOD.clone());\n\n let valueObject = new Three.Box3().setFromObject(deskMaxLOD);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n deskMaxLOD.rotation.y+=Math.PI;\n deskMaxLOD.position.y+= newAltitude;\n deskMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ );\n\n /************* lod min ******************/\n\n let deskMinLOD = new Three.Object3D();\n deskMinLOD.add(objectMinLOD.clone());\n deskMinLOD.rotation.y+=Math.PI;\n deskMinLOD.position.y+= newAltitude;\n deskMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ );\n\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(deskMaxLOD, 200);\n lod.addLevel(deskMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/cube/cube.png\";","import React from 'react';\nimport { BoxGeometry, MeshBasicMaterial, Mesh, BoxHelper } from 'three';\nimport { ReactPlannerSharedStyle } from 'react-planner';\n\nexport default {\n name: 'cube',\n prototype: 'items',\n\n info: {\n title: 'cube',\n tag: ['demo'],\n description: 'Demo item',\n image: require('./cube.png')\n },\n\n properties: {\n color: {\n label: 'Color',\n type: 'color',\n defaultValue: ReactPlannerSharedStyle.AREA_MESH_COLOR.unselected\n },\n width: {\n label: 'Width',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n height: {\n label: 'Height',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n depth: {\n label: 'Depth',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n },\n\n render2D: (element, layer, scene) => {\n let style = {\n stroke: !element.selected ? ReactPlannerSharedStyle.LINE_MESH_COLOR.unselected : ReactPlannerSharedStyle.MESH_SELECTED,\n strokeWidth: 2,\n fill: element.properties.get('color')\n };\n\n let w = element.properties.getIn(['width', 'length']);\n let d = element.properties.getIn(['depth', 'length']);\n let w2 = w / 2;\n let d2 = d / 2;\n\n return (\n \n \n \n );\n },\n\n render3D: (element, layer, scene) => {\n let w = element.properties.getIn(['width', 'length']);\n let h = element.properties.getIn(['height', 'length']);\n let d = element.properties.getIn(['depth', 'length']);\n let geometry = new BoxGeometry(w, h, d);\n let material = new MeshBasicMaterial({\n color: element.properties.get('color')\n });\n\n let mesh = new Mesh(geometry, material);\n\n let box = new BoxHelper(mesh, !element.selected ? ReactPlannerSharedStyle.LINE_MESH_COLOR.unselected : ReactPlannerSharedStyle.MESH_SELECTED );\n box.material.linewidth = 2;\n box.renderOrder = 1000;\n mesh.add(box);\n\n mesh.position.y = (h / 2);\n\n return Promise.resolve(mesh);\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/column/column.png\";","module.exports = __webpack_public_path__ + \"catalog/items/column/copper.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nlet textureLoader = new Three.TextureLoader();\nlet mat=textureLoader.load(require('./copper.jpg'));\nlet frameMaterial = new Three.MeshLambertMaterial({map:mat});\n\nfunction makeObjectMaxLOD(RADIUS,HEIGHT) {\n\n let RADIUS_10 = RADIUS/10;\n let RADIUS_2_5 = RADIUS/2.5;\n\n let column = new Three.Mesh();\n let object = new Three.Mesh(new Three.CylinderGeometry(RADIUS, RADIUS, HEIGHT, 32), frameMaterial);\n\n let frame1 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 32), frameMaterial);\n let frame2 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 32), frameMaterial);\n let frame3 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 32), frameMaterial);\n let frame4 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 32), frameMaterial);\n\n frame1.position.x+=RADIUS_2_5;\n frame1.position.z+=RADIUS_2_5;\n frame2.position.x-=RADIUS_2_5;\n frame2.position.z-=RADIUS_2_5;\n frame3.position.x-=RADIUS_2_5;\n frame3.position.z+=RADIUS_2_5;\n frame4.position.x+=RADIUS_2_5;\n frame4.position.z-=RADIUS_2_5;\n column.add(frame1);\n column.add(frame2);\n column.add(frame3);\n column.add(frame4);\n column.add(object);\n\n return column\n}\n\nfunction makeObjectMinLOD(RADIUS,HEIGHT) {\n\n let RADIUS_10 = RADIUS/10;\n let RADIUS_2_5 = RADIUS/2.5;\n\n let column = new Three.Mesh();\n let object = new Three.Mesh(new Three.CylinderGeometry(RADIUS, RADIUS, HEIGHT, 6, 6), frameMaterial);\n\n let frame1 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 6), frameMaterial);\n let frame2 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 6), frameMaterial);\n let frame3 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 6), frameMaterial);\n let frame4 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 6), frameMaterial);\n\n frame1.position.x+=RADIUS_2_5;\n frame1.position.z+=RADIUS_2_5;\n frame2.position.x-=RADIUS_2_5;\n frame2.position.z-=RADIUS_2_5;\n frame3.position.x-=RADIUS_2_5;\n frame3.position.z+=RADIUS_2_5;\n frame4.position.x+=RADIUS_2_5;\n frame4.position.z-=RADIUS_2_5;\n column.add(frame1);\n column.add(frame2);\n column.add(frame3);\n column.add(frame4);\n column.add(object);\n\n return column\n}\nexport default {\n name: 'round column',\n prototype: 'items',\n\n info: {\n tag: ['structure'],\n title: 'round column',\n description: 'round column',\n image: require('./column.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n height:{\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 300,\n unit: 'cm'\n }\n },\n radius:{\n label: 'radius',\n type: 'length-measure',\n defaultValue: {\n length: 20,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n\n let RADIUS = element.properties.get('radius').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let circleStyle = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let HEIGHT = element.properties.get('height').get('length');\n let RADIUS = element.properties.get('radius').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n\n /**************** LOD max ***********************/\n\n let columnMaxLOD = new Three.Object3D();\n let objectMaxLOD = makeObjectMaxLOD(RADIUS,HEIGHT);\n columnMaxLOD.add(objectMaxLOD.clone());\n columnMaxLOD.position.y += HEIGHT / 2 + newAltitude;\n\n /**************** LOD min ***********************/\n\n let columnMinLOD = new Three.Object3D();\n let objectMinLOD = makeObjectMinLOD(RADIUS,HEIGHT);\n columnMinLOD.add(objectMinLOD.clone());\n columnMinLOD.position.y += HEIGHT / 2 + newAltitude;\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(columnMaxLOD, 1300);\n lod.addLevel(columnMinLOD, 2000);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/column-square/square_column.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst material = new Three.MeshLambertMaterial({color: 0xf5f4f4});\n\nexport default {\n name: 'square column',\n prototype: 'items',\n\n info: {\n tag: ['structure'],\n title: 'square column',\n description: 'column',\n image: require('./square_column.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n height:{\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 300,\n unit: 'cm'\n }\n },\n width:{\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 50,\n unit: 'cm'\n }\n },\n depth:{\n label: 'depth',\n type: 'length-measure',\n defaultValue: {\n length: 50,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let width = element.properties.get('width').get('length');\n let depth = element.properties.get('depth').get('length');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let circleStyle = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let HEIGHT = element.properties.get('height').get('length');\n let width = element.properties.get('width').get('length');\n let depth = element.properties.get('depth').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n let column = new Three.Object3D();\n\n let object = new Three.Mesh(new Three.BoxGeometry(width,HEIGHT,depth, 32), material);\n\n column.add(object);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(column, 0x99c3fb);\n bbox.material.linewidth = 10;\n bbox.renderOrder = 5000;\n bbox.material.depthTest = false;\n column.add(bbox);\n }\n\n column.position.y += HEIGHT / 2 + newAltitude;\n column.position.x += width / 2;\n\n\n return Promise.resolve(column);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/coat-hook/wood.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/coat-hook/coat-hook.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 200;\nconst DEPTH = 20;\nconst HEIGHT = 40;\n\nexport default {\n name: 'coat-hook',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'optional'],\n title: 'Coat hook',\n description: 'Coat hook',\n image: require('./coat-hook.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 120,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let coatHook = new Three.Object3D();\n\n let newWidth = 2.15;\n let newDepth = .04;\n let newHeight = .1;\n let radius = .0125;\n\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n let geometry = new Three.BoxGeometry(newWidth, 1.5 * newHeight, newDepth);\n //let material = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\n let plane = new Three.Mesh(geometry, materialTexture);\n plane.position.y = newHeight / 2;\n coatHook.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry(radius, radius, newHeight / 1.7, 32);\n let material_legs = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n let p1 = new Three.Mesh(geometry_legs, material_legs);\n p1.rotation.x += Math.PI / 2;\n p1.position.set(1, 0.05, 0.05);\n coatHook.add(p1);\n\n let p2 = new Three.Mesh(geometry_legs, material_legs);\n p2.rotation.x += Math.PI / 2;\n p2.position.set(-.95, 0.05, 0.05);\n coatHook.add(p2);\n\n let geometrySphereUp = new Three.SphereGeometry(0.035, 32, 32);\n let sphere = new Three.Mesh(geometrySphereUp, material_legs);\n sphere.position.set(1, 0.05, 0.08);\n sphere.scale.set(1, 1, .5);\n coatHook.add(sphere);\n\n let sphere2 = new Three.Mesh(geometrySphereUp, material_legs);\n sphere2.position.set(-.95, 0.05, 0.08);\n sphere2.scale.set(1, 1, .5);\n coatHook.add(sphere2);\n\n\n let newHeight2 = .2;\n\n let curve = new Three.CatmullRomCurve3([\n new Three.Vector3(.05, 0.125, 0),\n new Three.Vector3(.125, .025, 0),\n new Three.Vector3(-.05, -.075, 0),\n ]);\n\n\n for (let i = -0.95; i <= 1.05; i += 0.15) {\n\n let geometry_legs2 = new Three.CylinderGeometry(radius, radius, newHeight2, 32);\n let p3 = new Three.Mesh(geometry_legs2, material_legs);\n p3.position.set(i, -0.05, 0);\n coatHook.add(p3);\n\n let geometry3 = new Three.TubeGeometry(curve, 32, .015, 16, false);\n let mesh3 = new Three.Mesh(geometry3, material_legs);\n mesh3.position.set(i, -.05, .045);\n mesh3.rotation.y -= Math.PI / 2;\n mesh3.rotation.x += Math.PI + Math.PI / 7.5;\n mesh3.rotation.z += Math.PI / 2;\n coatHook.add(mesh3);\n\n let geometrySphere = new Three.SphereGeometry(0.035, 32, 32);\n let sphereTop = new Three.Mesh(geometrySphere, material_legs);\n sphereTop.position.set(i, -0.142, 0.15);\n sphereTop.rotation.x += Math.PI / 2 + Math.PI / 3;\n coatHook.add(sphereTop);\n\n }\n\n\n let value = new Three.Box3().setFromObject(coatHook);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(coatHook, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n coatHook.add(bbox);\n }\n\n coatHook.rotation.y += Math.PI;\n coatHook.position.y += HEIGHT / 1.5 + newAltitude;\n coatHook.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n return Promise.resolve(coatHook);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/cleaningcart/cleaning_cart.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 100;\nconst DEPTH = 80;\nconst HEIGHT = 100;\n\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\nconst grey = new Three.MeshLambertMaterial({color: 0xC0C0C0});\nconst red = new Three.MeshLambertMaterial({color: 0xCC0000});\nconst blue = new Three.MeshLambertMaterial({color: 0x000066});\nconst yellow = new Three.MeshLambertMaterial({color: 0xF7DA00});\nconst green = new Three.MeshLambertMaterial({color: 0x006633});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n //base\n let cleaning_cart = new Three.Mesh(new Three.BoxGeometry(1,0.75,0.05),grey);\n\n for(let rx=-0.4;rx<=0.45;rx+=0.85)\n {\n for(let rz=-0.3;rz<=0.3;rz+=0.6)\n {\n\n let tire = new Three.Mesh(new Three.CylinderGeometry(0.08,0.08,0.05,32),black);\n tire.position.set(rx,rz,0.15);\n cleaning_cart.add(tire);\n\n let bearing = new Three.Mesh(new Three.CylinderGeometry(0.06,0.06,0.06,32),grey);\n tire.add(bearing);\n\n let nut = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.08,6),black);\n nut.position.set(0,0,0);\n tire.add(nut);\n\n let coverUp = new Three.Mesh(new Three.CylinderGeometry(0.06,0.06,0.01,32), grey);\n coverUp.rotation.x=0.5*Math.PI;\n coverUp.position.set(-0.03,0,-0.12);\n tire.add(coverUp);\n\n let coverDown = new Three.Mesh(new Three.CylinderGeometry(0.03725,0.03725,0.03,32), black);\n coverDown.rotation.x=0.5*Math.PI;\n coverDown.position.set(-0.03,0,-0.1);\n tire.add(coverDown);\n\n let p1Geometry = new Three.CylinderGeometry(0.055,0.055,0.005,3);\n let p1_left = new Three.Mesh(p1Geometry, grey);\n p1_left.position.set(-0.02,-0.035,-0.06);\n tire.add(p1_left);\n\n let p2Geometry = new Three.BoxGeometry(0.055,0.11,0.005);\n let p2_left = new Three.Mesh(p2Geometry,grey);\n p2_left.rotation.x=0.5*Math.PI;\n p2_left.position.set(0,-0.035,-0.04);\n tire.add(p2_left);\n\n let p1_right = new Three.Mesh(p1Geometry, grey);\n p1_right.position.set(-0.02,0.035,-0.06);\n tire.add(p1_right);\n\n let p2_right = new Three.Mesh(p2Geometry,grey);\n p2_right.rotation.x=0.5*Math.PI;\n p2_right.position.set(0,0.035,-0.04);\n tire.add(p2_right);\n\n let p3 = new Three.Mesh(new Three.BoxGeometry(0.095,0.075,0.01),grey);\n p3.position.set(-0.02,0,-0.09);\n tire.add(p3);\n\n }\n }\n\n //drawer support\n let drawerSupportGeometry = new Three.BoxGeometry(0.85,0.75,0.05);\n let drawer_p1 = new Three.Mesh(drawerSupportGeometry,grey);\n drawer_p1.position.set(0.475,0,-0.45);\n drawer_p1.rotation.y=0.5*Math.PI;\n cleaning_cart.add(drawer_p1);\n\n let drawer_p2 = new Three.Mesh(drawerSupportGeometry,grey);\n drawer_p2.position.set(0,0,-0.45);\n drawer_p2.rotation.y=0.5*Math.PI;\n cleaning_cart.add(drawer_p2);\n\n //base top\n let baseTop = new Three.Mesh(new Three.BoxGeometry(0.5,0.75,0.05),grey);\n baseTop.position.set(0.25,0,-0.8);\n cleaning_cart.add(baseTop);\n\n let gz;\n\n //shelfs guide\n for(gz=-0.74;gz<=-0.1;gz+=0.25)\n {\n let shelfGeometry = new Three.BoxGeometry(0.05,0.75,0.02);\n let shelf_1 = new Three.Mesh(shelfGeometry,grey);\n shelf_1.position.set(0.45,0,gz);\n cleaning_cart.add(shelf_1);\n\n let shelf_2 = new Three.Mesh(shelfGeometry,grey);\n shelf_2.position.set(0.025,0,gz);\n cleaning_cart.add(shelf_2);\n }\n\n let cz;\n\n //lateral drawers\n for(cz=-0.76;cz<=-0.1;cz+=0.25)\n {\n //border\n let drawerBorderGeometry = new Three.BoxGeometry(0.05,0.75,0.015);\n let drawerBorder_1 = new Three.Mesh(drawerBorderGeometry,blue);\n drawerBorder_1.position.set(0.42,0,cz);\n cleaning_cart.add(drawerBorder_1);\n\n let drawerBorder_2 = new Three.Mesh(drawerBorderGeometry,blue);\n drawerBorder_2.position.set(0.055,0,cz);\n cleaning_cart.add(drawerBorder_2);\n\n //long side\n let longSideGeometry = new Three.BoxGeometry(0.02,0.20,0.75);\n let longSide_1 = new Three.Mesh(longSideGeometry,blue);\n longSide_1.position.set(0.405,0,cz+0.1);\n longSide_1.rotation.x=0.5*Math.PI;\n cleaning_cart.add(longSide_1);\n\n let longSide_2 = new Three.Mesh(longSideGeometry,blue);\n longSide_2.position.set(0.07,0,cz+0.1);\n longSide_2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(longSide_2);\n\n //short side\n let shortSideGeometry = new Three.BoxGeometry(0.02,0.34,0.215);\n let shortSide_1 = new Three.Mesh(shortSideGeometry,blue);\n shortSide_1.position.set(0.25,-0.365,cz+0.1);\n shortSide_1.rotation.z=0.5*Math.PI;\n cleaning_cart.add(shortSide_1);\n\n let shortSide_2 = new Three.Mesh(shortSideGeometry,blue);\n shortSide_2.position.set(0.235,0.365,cz+0.1);\n shortSide_2.rotation.z=0.5*Math.PI;\n cleaning_cart.add(shortSide_2);\n\n //bottom side\n let bottomSide = new Three.Mesh(new Three.BoxGeometry(0.355,0.75,0.015),blue);\n bottomSide.position.set(0.2375,0,cz+0.205);\n cleaning_cart.add(bottomSide);\n }\n\n //bucket up support\n let bucket_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n bucket_1.position.set(0.25,-0.35,-0.85);\n cleaning_cart.add(bucket_1);\n\n let bucket_2 = bucket_1.clone();\n bucket_2.position.set(0.25,0.35,-0.85);\n cleaning_cart.add(bucket_2);\n\n //bucket down support\n let bucket_3 = bucket_1.clone();\n bucket_3.position.set(-0.25,-0.35,-0.05);\n cleaning_cart.add(bucket_3);\n\n let bucket_4 = bucket_1.clone();\n bucket_4.position.set(-0.25,0.35,-0.05);\n cleaning_cart.add(bucket_4);\n\n let bucket_5 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05),grey);\n bucket_5.position.set(-0.475,0,-0.05);\n cleaning_cart.add(bucket_5);\n\n //waste basket top support\n let wasteSupport_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n wasteSupport_1.position.set(0.7,-0.35,-0.05);\n cleaning_cart.add(wasteSupport_1);\n\n let wasteSupport_2 = wasteSupport_1.clone();\n wasteSupport_2.position.set(0.7,0.35,-0.05);\n cleaning_cart.add(wasteSupport_2);\n\n let wasteSupport_3 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05),grey);\n wasteSupport_3.position.set(0.925,0,-0.05);\n cleaning_cart.add(wasteSupport_3);\n\n\n //waste basket support down\n let wasteSupportDown_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n wasteSupportDown_1.position.set(0.7,-0.35,-0.85);\n cleaning_cart.add(wasteSupportDown_1);\n\n let wasteSupportDown_2 = wasteSupportDown_1.clone();\n wasteSupportDown_2.position.set(0.7,0.35,-0.85);\n cleaning_cart.add(wasteSupportDown_2);\n\n let wasteSupportDown_3 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05), grey);\n wasteSupportDown_3.position.set(0.925,0,-0.85);\n cleaning_cart.add(wasteSupportDown_3);\n\n //waste cover\n let wasteCover = new Three.Mesh(new Three.BoxGeometry(0.45,0.775,0.05),blue);\n wasteCover.position.set(0.745,0,-0.9);\n cleaning_cart.add(wasteCover);\n\n //sack\n let sack = new Three.Mesh(new Three.BoxGeometry(0.3,0.65,0.7),black);\n sack.position.set(0.75,0,-0.5);\n cleaning_cart.add(sack);\n\n // cover pivot\n let coverPivotGeometry = new Three.CylinderGeometry(0.01,0.01,0.05,32);\n let coverPivot_1 = new Three.Mesh(coverPivotGeometry,black);\n coverPivot_1.position.set(0.51,-0.35,-0.88);\n cleaning_cart.add(coverPivot_1);\n\n let coverPivot_2 = new Three.Mesh(coverPivotGeometry,black);\n coverPivot_2.position.set(0.51,0.35,-0.88);\n cleaning_cart.add(coverPivot_2);\n\n let delta1;\n let color1;\n\n //bucket on the top\n for(let sty=-0.3;sty<=0.3;sty+=0.6)\n {\n sty===-0.3 ? color1=red : color1=blue;\n sty===-0.3 ? delta1=-1 : delta1=1;\n\n let bucketTop_1 = new Three.Mesh(new Three.BoxGeometry(0.2,0.3,0.05),color1);\n bucketTop_1.position.set(0.13,sty-delta1*0.14,-0.85);\n cleaning_cart.add(bucketTop_1);\n\n let bucketTop_2 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color1);\n bucketTop_2.position.set(0.13,sty-delta1*0.29,-0.9);\n bucketTop_2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop_2);\n\n let bucketTop_3 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color1);\n bucketTop_3.position.set(0.13,sty,-0.9);\n bucketTop_3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop_3);\n\n let bucketTop_4 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color1);\n bucketTop_4.position.set(0.04,sty-delta1*0.14,-0.9);\n bucketTop_4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop_4);\n\n let bucketTop_5 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color1);\n bucketTop_5.position.set(0.22,sty-delta1*0.14,-0.9);\n bucketTop_5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop_5);\n }\n\n\n let delta2;\n let color2;\n\n //bucket on the top\n for(let sty=-0.3;sty<=0.3;sty+=0.6)\n {\n sty===-0.3 ? color2=yellow : color2=green;\n sty===-0.3 ? delta2=-1 : delta2=1;\n\n let bucketTop2_p1 = new Three.Mesh(new Three.BoxGeometry(0.2,0.3,0.05),color2);\n bucketTop2_p1.position.set(0.35,sty-delta2*0.14,-0.85);\n cleaning_cart.add(bucketTop2_p1);\n\n let bucketTop2_p2 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color2);\n bucketTop2_p2.position.set(0.35,sty-delta2*0.29,-0.9);\n bucketTop2_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p2);\n\n let bucketTop2_p3 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color2);\n bucketTop2_p3.position.set(0.35,sty,-0.9);\n bucketTop2_p3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p3);\n\n let bucketTop2_p4 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color2);\n bucketTop2_p4.position.set(0.26,sty-delta2*0.14,-0.9);\n bucketTop2_p4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p4);\n\n let bucketTop2_p5 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color2);\n bucketTop2_p5.position.set(0.44,sty-delta2*0.14,-0.9);\n bucketTop2_p5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p5);\n\n }\n\n let color;\n let delta;\n\n //bucket on the top\n for(let sdy=-0.3;sdy<=0.3;sdy+=0.6)\n {\n sdy===-0.3 ? color=red : color=blue;\n sdy===-0.3 ? delta=-1 : delta=1;\n\n let bucketTop3_p1 = new Three.Mesh(new Three.BoxGeometry(0.4,0.3,0.05),color);\n bucketTop3_p1.position.set(-0.22,sdy-delta*0.14,-0.05);\n cleaning_cart.add(bucketTop3_p1);\n\n let bucketTop3_p2 = new Three.Mesh(new Three.BoxGeometry(0.4,0.25,0.02),color);\n bucketTop3_p2.position.set(-0.22,sdy-delta*0.28,-0.2);\n bucketTop3_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p2);\n\n let bucketTop3_p3 = new Three.Mesh(new Three.BoxGeometry(0.4,0.25,0.02),color);\n bucketTop3_p3.position.set(-0.22,sdy,-0.2);\n bucketTop3_p3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p3);\n\n let bucketTop3_p4 = new Three.Mesh(new Three.BoxGeometry(0.25,0.3,0.02),color);\n bucketTop3_p4.position.set(-0.41,sdy-delta*0.14,-0.2);\n bucketTop3_p4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p4);\n\n let bucketTop3_p5 = new Three.Mesh(new Three.BoxGeometry(0.25,0.3,0.02),color);\n bucketTop3_p5.position.set(-0.03,sdy-delta*0.14,-0.2);\n bucketTop3_p5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p5);\n }\n\n\n for(let scy=-0.45;scy<=0.55;scy+=0.90)\n {\n //broom\n let broom = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06,32),blue);\n broom.rotation.x=0.5*Math.PI;\n broom.position.set(0.48,scy,-1.3);\n cleaning_cart.add(broom);\n\n let broom_handle = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,1.3,32),grey);\n broom_handle.position.set(0,0.68,0);\n broom.add(broom_handle);\n\n let broom_p2 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.06,32),blue);\n broom_p2.rotation.y=0.5*Math.PI;\n broom_p2.position.set(0,1.32,0);\n broom.add(broom_p2);\n\n let broom_p3 = new Three.Mesh(new Three.BoxGeometry(0.02,0.15,0.5),blue);\n broom_p3.position.set(0,1.34,0);\n broom_p3.rotation.z=0.5*Math.PI;\n broom_p3.rotation.y=0.5*Math.PI;\n broom.add(broom_p3);\n\n let broom_p4 = new Three.Mesh(new Three.BoxGeometry(0.01,0.2,0.55),grey);\n broom_p4.position.set(0,1.35,0);\n broom_p4.rotation.z=0.5*Math.PI;\n broom_p4.rotation.y=0.5*Math.PI;\n broom.add(broom_p4);\n }\n\n\n //broom hook\n let hook_p1 = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.05,32),blue);\n hook_p1.position.set(0.48,-0.39,-0.85);\n cleaning_cart.add(hook_p1);\n\n let hook_p2 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.03,32),blue);\n hook_p2.position.set(0.48,-0.44,-0.85);\n hook_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(hook_p2);\n\n let hook_p3 = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.05,32),blue);\n hook_p3.position.set(0.48,0.39,-0.85);\n cleaning_cart.add(hook_p3);\n\n let hook_p4 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.03,32),blue);\n hook_p4.position.set(0.48,0.44,-0.85);\n hook_p4.rotation.x=0.5*Math.PI;\n cleaning_cart.add(hook_p4);\n\n return cleaning_cart\n}\n\nfunction makeObjectMinLOD() {\n\n //base\n let cleaning_cart = new Three.Mesh(new Three.BoxGeometry(1,0.75,0.05),grey);\n\n for(let rx=-0.4;rx<=0.45;rx+=0.85)\n {\n for(let rz=-0.3;rz<=0.3;rz+=0.6)\n {\n\n let tire = new Three.Mesh(new Three.CylinderGeometry(0.08,0.08,0.05,32),black);\n tire.position.set(rx,rz,0.15);\n cleaning_cart.add(tire);\n\n let bearing = new Three.Mesh(new Three.CylinderGeometry(0.06,0.06,0.06,32),grey);\n tire.add(bearing);\n\n let nut = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.08,6),black);\n nut.position.set(0,0,0);\n tire.add(nut);\n\n let coverUp = new Three.Mesh(new Three.CylinderGeometry(0.06,0.06,0.01,32), grey);\n coverUp.rotation.x=0.5*Math.PI;\n coverUp.position.set(-0.03,0,-0.12);\n tire.add(coverUp);\n\n let coverDown = new Three.Mesh(new Three.CylinderGeometry(0.03725,0.03725,0.03,32), black);\n coverDown.rotation.x=0.5*Math.PI;\n coverDown.position.set(-0.03,0,-0.1);\n tire.add(coverDown);\n\n let p1Geometry = new Three.CylinderGeometry(0.055,0.055,0.005,3);\n let p1_left = new Three.Mesh(p1Geometry, grey);\n p1_left.position.set(-0.02,-0.035,-0.06);\n tire.add(p1_left);\n\n let p2Geometry = new Three.BoxGeometry(0.055,0.11,0.005);\n let p2_left = new Three.Mesh(p2Geometry,grey);\n p2_left.rotation.x=0.5*Math.PI;\n p2_left.position.set(0,-0.035,-0.04);\n tire.add(p2_left);\n\n let p1_right = new Three.Mesh(p1Geometry, grey);\n p1_right.position.set(-0.02,0.035,-0.06);\n tire.add(p1_right);\n\n let p2_right = new Three.Mesh(p2Geometry,grey);\n p2_right.rotation.x=0.5*Math.PI;\n p2_right.position.set(0,0.035,-0.04);\n tire.add(p2_right);\n\n let p3 = new Three.Mesh(new Three.BoxGeometry(0.095,0.075,0.01),grey);\n p3.position.set(-0.02,0,-0.09);\n tire.add(p3);\n\n }\n }\n\n //drawer support\n let drawerSupportGeometry = new Three.BoxGeometry(0.85,0.75,0.05);\n let drawer_p1 = new Three.Mesh(drawerSupportGeometry,grey);\n drawer_p1.position.set(0.475,0,-0.45);\n drawer_p1.rotation.y=0.5*Math.PI;\n cleaning_cart.add(drawer_p1);\n\n let drawer_p2 = new Three.Mesh(drawerSupportGeometry,grey);\n drawer_p2.position.set(0,0,-0.45);\n drawer_p2.rotation.y=0.5*Math.PI;\n cleaning_cart.add(drawer_p2);\n\n //base top\n let baseTop = new Three.Mesh(new Three.BoxGeometry(0.5,0.75,0.05),grey);\n baseTop.position.set(0.25,0,-0.8);\n cleaning_cart.add(baseTop);\n\n let gz;\n\n //shelfs guide\n for(gz=-0.74;gz<=-0.1;gz+=0.25)\n {\n let shelfGeometry = new Three.BoxGeometry(0.05,0.75,0.02);\n let shelf_1 = new Three.Mesh(shelfGeometry,grey);\n shelf_1.position.set(0.45,0,gz);\n cleaning_cart.add(shelf_1);\n\n let shelf_2 = new Three.Mesh(shelfGeometry,grey);\n shelf_2.position.set(0.025,0,gz);\n cleaning_cart.add(shelf_2);\n }\n\n let cz;\n\n //lateral drawers\n for(cz=-0.76;cz<=-0.1;cz+=0.25)\n {\n //border\n let drawerBorderGeometry = new Three.BoxGeometry(0.05,0.75,0.015);\n let drawerBorder_1 = new Three.Mesh(drawerBorderGeometry,blue);\n drawerBorder_1.position.set(0.42,0,cz);\n cleaning_cart.add(drawerBorder_1);\n\n let drawerBorder_2 = new Three.Mesh(drawerBorderGeometry,blue);\n drawerBorder_2.position.set(0.055,0,cz);\n cleaning_cart.add(drawerBorder_2);\n\n //long side\n let longSideGeometry = new Three.BoxGeometry(0.02,0.20,0.75);\n let longSide_1 = new Three.Mesh(longSideGeometry,blue);\n longSide_1.position.set(0.405,0,cz+0.1);\n longSide_1.rotation.x=0.5*Math.PI;\n cleaning_cart.add(longSide_1);\n\n let longSide_2 = new Three.Mesh(longSideGeometry,blue);\n longSide_2.position.set(0.07,0,cz+0.1);\n longSide_2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(longSide_2);\n\n //short side\n let shortSideGeometry = new Three.BoxGeometry(0.02,0.34,0.215);\n let shortSide_1 = new Three.Mesh(shortSideGeometry,blue);\n shortSide_1.position.set(0.25,-0.365,cz+0.1);\n shortSide_1.rotation.z=0.5*Math.PI;\n cleaning_cart.add(shortSide_1);\n\n let shortSide_2 = new Three.Mesh(shortSideGeometry,blue);\n shortSide_2.position.set(0.235,0.365,cz+0.1);\n shortSide_2.rotation.z=0.5*Math.PI;\n cleaning_cart.add(shortSide_2);\n\n //bottom side\n let bottomSide = new Three.Mesh(new Three.BoxGeometry(0.355,0.75,0.015),blue);\n bottomSide.position.set(0.2375,0,cz+0.205);\n cleaning_cart.add(bottomSide);\n }\n\n //bucket up support\n let bucket_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n bucket_1.position.set(0.25,-0.35,-0.85);\n cleaning_cart.add(bucket_1);\n\n let bucket_2 = bucket_1.clone();\n bucket_2.position.set(0.25,0.35,-0.85);\n cleaning_cart.add(bucket_2);\n\n //bucket down support\n let bucket_3 = bucket_1.clone();\n bucket_3.position.set(-0.25,-0.35,-0.05);\n cleaning_cart.add(bucket_3);\n\n let bucket_4 = bucket_1.clone();\n bucket_4.position.set(-0.25,0.35,-0.05);\n cleaning_cart.add(bucket_4);\n\n let bucket_5 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05),grey);\n bucket_5.position.set(-0.475,0,-0.05);\n cleaning_cart.add(bucket_5);\n\n //waste basket top support\n let wasteSupport_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n wasteSupport_1.position.set(0.7,-0.35,-0.05);\n cleaning_cart.add(wasteSupport_1);\n\n let wasteSupport_2 = wasteSupport_1.clone();\n wasteSupport_2.position.set(0.7,0.35,-0.05);\n cleaning_cart.add(wasteSupport_2);\n\n let wasteSupport_3 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05),grey);\n wasteSupport_3.position.set(0.925,0,-0.05);\n cleaning_cart.add(wasteSupport_3);\n\n\n //waste basket support down\n let wasteSupportDown_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n wasteSupportDown_1.position.set(0.7,-0.35,-0.85);\n cleaning_cart.add(wasteSupportDown_1);\n\n let wasteSupportDown_2 = wasteSupportDown_1.clone();\n wasteSupportDown_2.position.set(0.7,0.35,-0.85);\n cleaning_cart.add(wasteSupportDown_2);\n\n let wasteSupportDown_3 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05), grey);\n wasteSupportDown_3.position.set(0.925,0,-0.85);\n cleaning_cart.add(wasteSupportDown_3);\n\n //waste cover\n let wasteCover = new Three.Mesh(new Three.BoxGeometry(0.45,0.775,0.05),blue);\n wasteCover.position.set(0.745,0,-0.9);\n cleaning_cart.add(wasteCover);\n\n //sack\n let sack = new Three.Mesh(new Three.BoxGeometry(0.3,0.65,0.7),black);\n sack.position.set(0.75,0,-0.5);\n cleaning_cart.add(sack);\n\n // cover pivot\n let coverPivotGeometry = new Three.CylinderGeometry(0.01,0.01,0.05,32);\n let coverPivot_1 = new Three.Mesh(coverPivotGeometry,black);\n coverPivot_1.position.set(0.51,-0.35,-0.88);\n cleaning_cart.add(coverPivot_1);\n\n let coverPivot_2 = new Three.Mesh(coverPivotGeometry,black);\n coverPivot_2.position.set(0.51,0.35,-0.88);\n cleaning_cart.add(coverPivot_2);\n\n let delta1;\n let color1;\n\n //bucket on the top\n for(let sty=-0.3;sty<=0.3;sty+=0.6)\n {\n sty===-0.3 ? color1=red : color1=blue;\n sty===-0.3 ? delta1=-1 : delta1=1;\n\n let bucketTop_1 = new Three.Mesh(new Three.BoxGeometry(0.2,0.3,0.05),color1);\n bucketTop_1.position.set(0.13,sty-delta1*0.14,-0.85);\n cleaning_cart.add(bucketTop_1);\n\n let bucketTop_2 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color1);\n bucketTop_2.position.set(0.13,sty-delta1*0.29,-0.9);\n bucketTop_2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop_2);\n\n let bucketTop_3 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color1);\n bucketTop_3.position.set(0.13,sty,-0.9);\n bucketTop_3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop_3);\n\n let bucketTop_4 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color1);\n bucketTop_4.position.set(0.04,sty-delta1*0.14,-0.9);\n bucketTop_4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop_4);\n\n let bucketTop_5 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color1);\n bucketTop_5.position.set(0.22,sty-delta1*0.14,-0.9);\n bucketTop_5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop_5);\n }\n\n\n let delta2;\n let color2;\n\n //bucket on the top\n for(let sty=-0.3;sty<=0.3;sty+=0.6)\n {\n sty===-0.3 ? color2=yellow : color2=green;\n sty===-0.3 ? delta2=-1 : delta2=1;\n\n let bucketTop2_p1 = new Three.Mesh(new Three.BoxGeometry(0.2,0.3,0.05),color2);\n bucketTop2_p1.position.set(0.35,sty-delta2*0.14,-0.85);\n cleaning_cart.add(bucketTop2_p1);\n\n let bucketTop2_p2 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color2);\n bucketTop2_p2.position.set(0.35,sty-delta2*0.29,-0.9);\n bucketTop2_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p2);\n\n let bucketTop2_p3 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color2);\n bucketTop2_p3.position.set(0.35,sty,-0.9);\n bucketTop2_p3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p3);\n\n let bucketTop2_p4 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color2);\n bucketTop2_p4.position.set(0.26,sty-delta2*0.14,-0.9);\n bucketTop2_p4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p4);\n\n let bucketTop2_p5 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color2);\n bucketTop2_p5.position.set(0.44,sty-delta2*0.14,-0.9);\n bucketTop2_p5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p5);\n\n }\n\n let color;\n let delta;\n\n //bucket on the top\n for(let sdy=-0.3;sdy<=0.3;sdy+=0.6)\n {\n sdy===-0.3 ? color=red : color=blue;\n sdy===-0.3 ? delta=-1 : delta=1;\n\n let bucketTop3_p1 = new Three.Mesh(new Three.BoxGeometry(0.4,0.3,0.05),color);\n bucketTop3_p1.position.set(-0.22,sdy-delta*0.14,-0.05);\n cleaning_cart.add(bucketTop3_p1);\n\n let bucketTop3_p2 = new Three.Mesh(new Three.BoxGeometry(0.4,0.25,0.02),color);\n bucketTop3_p2.position.set(-0.22,sdy-delta*0.28,-0.2);\n bucketTop3_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p2);\n\n let bucketTop3_p3 = new Three.Mesh(new Three.BoxGeometry(0.4,0.25,0.02),color);\n bucketTop3_p3.position.set(-0.22,sdy,-0.2);\n bucketTop3_p3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p3);\n\n let bucketTop3_p4 = new Three.Mesh(new Three.BoxGeometry(0.25,0.3,0.02),color);\n bucketTop3_p4.position.set(-0.41,sdy-delta*0.14,-0.2);\n bucketTop3_p4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p4);\n\n let bucketTop3_p5 = new Three.Mesh(new Three.BoxGeometry(0.25,0.3,0.02),color);\n bucketTop3_p5.position.set(-0.03,sdy-delta*0.14,-0.2);\n bucketTop3_p5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p5);\n }\n\n\n for(let scy=-0.45;scy<=0.55;scy+=0.90)\n {\n //broom\n let broom = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06,32),blue);\n broom.rotation.x=0.5*Math.PI;\n broom.position.set(0.48,scy,-1.3);\n cleaning_cart.add(broom);\n\n let broom_handle = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,1.3,32),grey);\n broom_handle.position.set(0,0.68,0);\n broom.add(broom_handle);\n\n let broom_p2 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.06,32),blue);\n broom_p2.rotation.y=0.5*Math.PI;\n broom_p2.position.set(0,1.32,0);\n broom.add(broom_p2);\n\n let broom_p3 = new Three.Mesh(new Three.BoxGeometry(0.02,0.15,0.5),blue);\n broom_p3.position.set(0,1.34,0);\n broom_p3.rotation.z=0.5*Math.PI;\n broom_p3.rotation.y=0.5*Math.PI;\n broom.add(broom_p3);\n\n let broom_p4 = new Three.Mesh(new Three.BoxGeometry(0.01,0.2,0.55),grey);\n broom_p4.position.set(0,1.35,0);\n broom_p4.rotation.z=0.5*Math.PI;\n broom_p4.rotation.y=0.5*Math.PI;\n broom.add(broom_p4);\n }\n\n\n //broom hook\n let hook_p1 = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.05,32),blue);\n hook_p1.position.set(0.48,-0.39,-0.85);\n cleaning_cart.add(hook_p1);\n\n let hook_p2 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.03,32),blue);\n hook_p2.position.set(0.48,-0.44,-0.85);\n hook_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(hook_p2);\n\n let hook_p3 = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.05,32),blue);\n hook_p3.position.set(0.48,0.39,-0.85);\n cleaning_cart.add(hook_p3);\n\n let hook_p4 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.03,32),blue);\n hook_p4.position.set(0.48,0.44,-0.85);\n hook_p4.rotation.x=0.5*Math.PI;\n cleaning_cart.add(hook_p4);\n\n return cleaning_cart\n}\n\nexport default {\n name: 'cleaning cart',\n prototype: 'items',\n\n info: {\n tag: ['metal','plastic'],\n title: 'cleaning cart',\n description: 'cleaning cart',\n image: require('./cleaning_cart.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************ lod max ****************/\n\n let cleaning_cartMaxLOD = new Three.Object3D();\n cleaning_cartMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(cleaning_cartMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n cleaning_cartMaxLOD.rotation.x=0.5*Math.PI;\n cleaning_cartMaxLOD.position.y+=HEIGHT/5 + newAltitude;\n cleaning_cartMaxLOD.scale.set(WIDTH / deltaX, DEPTH / deltaZ, HEIGHT / deltaY);\n\n /************ lod min ****************/\n\n let cleaning_cartMinLOD = new Three.Object3D();\n cleaning_cartMinLOD.add(objectMinLOD.clone());\n cleaning_cartMinLOD.rotation.x=0.5*Math.PI;\n cleaning_cartMinLOD.position.y+=HEIGHT/5 + newAltitude;\n cleaning_cartMinLOD.scale.set(WIDTH / deltaX, DEPTH / deltaZ, HEIGHT / deltaY);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(cleaning_cartMaxLOD, 200);\n lod.addLevel(cleaning_cartMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/child-chair-desk/chairDesk.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 70;\nconst DEPTH = 100;\nconst HEIGHT = 100;\n\nexport default {\n name: 'child chair desk',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood', 'metal'],\n title: 'child chair desk',\n description: 'child chair desk',\n image: require('./chairDesk.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation;\n\n if (angle>-180 && angle<0)\n angle = 360;\n else\n angle = 0;\n\n let rect_style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let grey = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\n let red = new Three.MeshPhongMaterial({color: 0xff0000} );\n let black = new Three.MeshPhongMaterial({color: 0x000000} );\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let chairDesk = new Three.Object3D();\n\n let roundedRectShapeTable = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=1;\n let height=1.2;\n let radius=0.25;\n\n roundedRectShapeTable.moveTo( x, y + radius );\n roundedRectShapeTable.lineTo( x, y + height - radius );\n roundedRectShapeTable.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShapeTable.lineTo( x + width - radius, y + height) ;\n roundedRectShapeTable.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShapeTable.lineTo( x + width, y + radius );\n roundedRectShapeTable.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShapeTable.lineTo( x + radius, y );\n roundedRectShapeTable.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettingsTable = {\n steps: 2,\n depth: 0.1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let tableGeometry = new Three.ExtrudeGeometry( roundedRectShapeTable, extrudeSettingsTable );\n let table = new Three.Mesh( tableGeometry, red ) ;\n\n table.position.set(0,1.2,0);\n table.rotation.x+=Math.PI/2;\n chairDesk.add(table);\n\n let baseGeometry = new Three.CylinderGeometry( 0.08, 0.08, 1, 32 );\n let baseVerticalGeometry = new Three.CylinderGeometry( 0.08, 0.08, .6, 32 );\n let unionGeometry = new Three.CylinderGeometry( 0.08, 0.08, .2, 32 );\n let footGeometry = new Three.CylinderGeometry( 0.06, 0.06, .025, 32 );\n let closureGeometry = new Three.CylinderGeometry( 0.08, 0.08, .02, 32 );\n\n let basePiece1 = new Three.Mesh( baseGeometry, grey );\n basePiece1.rotation.x += Math.PI/2;\n basePiece1.position.set(0.5,0.6,0.6);\n table.add(basePiece1);\n\n let basePiece2 = new Three.Mesh( baseGeometry, grey );\n basePiece2.position.set(0.5,0.6,1.1);\n table.add(basePiece2);\n\n let basePiece3 = new Three.Mesh( baseGeometry, grey );\n basePiece3.rotation.z += Math.PI/2;\n basePiece3.position.set(0,0.6,1.1);\n table.add(basePiece3);\n\n let baseVerticalPiece = new Three.Mesh( baseVerticalGeometry, grey );\n baseVerticalPiece.rotation.x += Math.PI/2;\n baseVerticalPiece.position.set(-0.5,0.6,0.8);\n table.add(baseVerticalPiece);\n\n let unionPiece = new Three.Mesh( unionGeometry, grey );\n unionPiece.position.set(-0.5,0.6,1.1);\n table.add(unionPiece);\n\n let foot1 = new Three.Mesh( footGeometry, black );\n foot1.position.set(0.5,0.2,1.18);\n foot1.rotation.x+=Math.PI/2;\n table.add(foot1);\n\n let foot2 = new Three.Mesh( footGeometry, black );\n foot2.position.set(0.5,1,1.18);\n foot2.rotation.x+=Math.PI/2;\n table.add(foot2);\n\n let foot3 = new Three.Mesh( footGeometry, black );\n foot3.position.set(-.9,0,1.18);\n foot3.rotation.x+=Math.PI/2;\n table.add(foot3);\n\n let foot4 = new Three.Mesh( footGeometry, black );\n foot4.position.set(-.9,1.2,1.18);\n foot4.rotation.x+=Math.PI/2;\n table.add(foot4);\n\n let closurePiece1 = new Three.Mesh( closureGeometry, grey );\n closurePiece1.position.set(-1,0,1.1);\n closurePiece1.rotation.z+=Math.PI/2;\n table.add(closurePiece1);\n\n let closurePiece2 = new Three.Mesh( closureGeometry, grey );\n closurePiece2.position.set(-1,1.2,1.1);\n closurePiece2.rotation.z+=Math.PI/2;\n table.add(closurePiece2);\n\n const curve = new Three.CatmullRomCurve3([\n new Three.Vector3(.35, 0, 0),\n new Three.Vector3(0, 0, 0),\n new Three.Vector3(-.05, .25, 0),\n ]);\n\n const barGeometry = new Three.TubeGeometry(curve, 32, 0.03, 16, false);\n const leftBar = new Three.Mesh(barGeometry, grey);\n leftBar.rotation.x -= Math.PI/2;\n leftBar.position.set(-1,.35,.48);\n table.add(leftBar);\n\n let rightBar = new Three.Mesh( barGeometry, grey );\n rightBar.position.set(-1,.85,.48);\n rightBar.rotation.x -= Math.PI/2;\n table.add(rightBar);\n\n let baseCurvedGeometry = new Three.TorusGeometry( .5, .08, 32, 32, Math.PI/2 );\n let baseCurvePiece1 = new Three.Mesh( baseCurvedGeometry, grey );\n baseCurvePiece1.position.set(-1,.70,1.1);\n table.add( baseCurvePiece1 );\n\n let baseCurvePiece2 = new Three.Mesh( baseCurvedGeometry, grey );\n baseCurvePiece2.rotation.x+=Math.PI;\n baseCurvePiece2.position.set(-1,.50,1.1);\n table.add( baseCurvePiece2 );\n\n let roundedRectShapeStairPiece1 = new Three.Shape();\n\n let x1=0;\n let y1=0;\n let width1=.8;\n let height1=.8;\n let radius1=0.25;\n\n roundedRectShapeStairPiece1.moveTo( x1, y1 + radius1 );\n roundedRectShapeStairPiece1.lineTo( x1, y1 + height1 - radius1 );\n roundedRectShapeStairPiece1.quadraticCurveTo( x1, y1 + height1, x1 + radius1, y1 + height1 );\n roundedRectShapeStairPiece1.lineTo( x1 + width1 - radius1, y1 + height1) ;\n roundedRectShapeStairPiece1.quadraticCurveTo( x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1 );\n roundedRectShapeStairPiece1.lineTo( x1 + width1, y1 + radius1 );\n roundedRectShapeStairPiece1.quadraticCurveTo( x1 + width1, y1, x1 + width1 - radius1, y1 );\n roundedRectShapeStairPiece1.lineTo( x1 + radius1, y1 );\n roundedRectShapeStairPiece1.quadraticCurveTo( x1, y1, x1, y1 + radius1 );\n\n let extrudeSettingsStairPiece1 = {\n steps: 2,\n depth: 0.1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let stairGeometryPiece1 = new Three.ExtrudeGeometry( roundedRectShapeStairPiece1, extrudeSettingsStairPiece1 );\n let stairPiece1 = new Three.Mesh( stairGeometryPiece1, red ) ;\n\n stairPiece1.position.set(-.9,.2,.45);\n table.add(stairPiece1);\n\n let roundedRectShapeStairPiece2 = new Three.Shape();\n\n let x2=0;\n let y2=0;\n let width2=.8;\n let height2=.8;\n let radius2=0.25;\n\n roundedRectShapeStairPiece2.moveTo( x2, y2 + radius2 );\n roundedRectShapeStairPiece2.lineTo( x2, y2 + height2 - radius2 );\n roundedRectShapeStairPiece2.quadraticCurveTo( x2, y2 + height2, x2 + radius2, y2 + height2 );\n roundedRectShapeStairPiece2.lineTo( x2 + width2 - radius2, y2 + height2) ;\n roundedRectShapeStairPiece2.quadraticCurveTo( x2 + width2, y2 + height2, x2 + width2, y2 + height2 - radius2 );\n roundedRectShapeStairPiece2.lineTo( x2 + width2, y2 + radius2 );\n roundedRectShapeStairPiece2.quadraticCurveTo( x2 + width2, y2, x2 + width2 - radius2, y2 );\n roundedRectShapeStairPiece2.lineTo( x2 + radius2, y2 );\n roundedRectShapeStairPiece2.quadraticCurveTo( x2, y2, x2, y2 + radius2 );\n\n let holePath = new Three.Path();\n holePath.moveTo( 3.5, 3.5 );\n holePath.absellipse( .65, .4, .035, .125, .125, Math.PI*2, false );\n roundedRectShapeStairPiece2.holes.push( holePath );\n\n let stairGeometryPiece2 = new Three.ExtrudeGeometry( roundedRectShapeStairPiece2, extrudeSettingsStairPiece1 );\n let stairPiece2 = new Three.Mesh( stairGeometryPiece2, red ) ;\n stairPiece2.position.set(-1.08,.2,.45);\n stairPiece2.rotation.y+=Math.PI/2;\n table.add(stairPiece2);\n\n let value = new Three.Box3().setFromObject(chairDesk);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n if (element.selected) {\n let boundingBox = new Three.BoxHelper(chairDesk, 0x99c3fb);\n boundingBox.material.linewidth = 5;\n boundingBox.renderOrder = 1000;\n boundingBox.material.depthTest = false;\n chairDesk.add(boundingBox);\n }\n\n chairDesk.rotation.y += Math.PI / 2;\n chairDesk.position.x += -DEPTH / 2.75;\n chairDesk.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, 1.25*DEPTH / deltaX);\n\n return Promise.resolve(chairDesk);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/chairdesk/chairdesk.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 70;\nconst DEPTH = 70;\nconst HEIGHT = 100;\n\nconst grey = new Three.MeshBasicMaterial({color : 0xD3D3D3});\nconst metalGrey = new Three.MeshBasicMaterial({color : 0x808080});\nconst white = new Three.MeshBasicMaterial({color : 0x000000});\nconst black = new Three.MeshBasicMaterial({color : 0x000000});\n\n\nfunction makeBackrest(){\n\n let backrest = new Three.Object3D();\n let backrestGeometry1 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.18 , 32, 32 );\n let backrestGeometry2 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.04 , 32, 32 );\n let NodeGeometry = new Three.SphereGeometry( 0.01 , 32 , 32 );\n let backrest1 = new Three.Mesh( backrestGeometry1 , black );\n let backrest2 = new Three.Mesh( backrestGeometry2 , black );\n let backrest3 = new Three.Mesh( backrestGeometry1 , black );\n let backrest4 = new Three.Mesh( backrestGeometry2 , black );\n let node1 = new Three.Mesh( NodeGeometry , black );\n let node2 = new Three.Mesh( NodeGeometry , black );\n let backrestPillow = makeBackrestPillow();\n backrest1.rotation.z = Math.PI*(90 +6)/180;\n backrest1.position.z = 0.05;\n backrest1.position.x = 0.09;\n backrest2.rotation.z = -Math.PI*96/180;\n backrest2.position.x = 0.02*Math.cos(Math.PI*6/180);\n backrest3.rotation.z = Math.PI*(90 +6)/180;\n backrest3.position.z =-0.05;\n backrest3.position.x = 0.09;\n backrest4.rotation.z =-Math.PI*96/180;\n backrest4.position.x = 0.02*Math.cos(Math.PI*6/180);\n node1.position.y = 0.09;\n node2.position.y = 0.09;\n node1.add(backrest2);\n node2.add(backrest4);\n backrestPillow.rotation.y = Math.PI/2;\n backrestPillow.position.y = 0.25 +0.02;\n backrest1.add(node1);\n backrest.add(backrest1);\n backrest3.add(node2);\n backrest.add(backrest3);\n backrest.add(backrestPillow);\n\n return backrest;\n}\n\nfunction makeBackrestMinLOD(){\n\n let backrest = new Three.Object3D();\n let backrestGeometry1 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.18 , 8, 8 );\n let backrestGeometry2 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.04 , 8, 8 );\n let NodeGeometry = new Three.SphereGeometry( 0.01 , 32 , 32 );\n let backrest1 = new Three.Mesh( backrestGeometry1 , black );\n let backrest2 = new Three.Mesh( backrestGeometry2 , black );\n let backrest3 = new Three.Mesh( backrestGeometry1 , black );\n let backrest4 = new Three.Mesh( backrestGeometry2 , black );\n let node1 = new Three.Mesh( NodeGeometry , black );\n let node2 = new Three.Mesh( NodeGeometry , black );\n let backrestPillow = makeBackrestPillowMinLOD();\n backrest1.rotation.z = Math.PI*(90 +6)/180;\n backrest1.position.z = 0.05;\n backrest1.position.x = 0.09;\n backrest2.rotation.z = -Math.PI*96/180;\n backrest2.position.x = 0.02*Math.cos(Math.PI*6/180);\n backrest3.rotation.z = Math.PI*(90 +6)/180;\n backrest3.position.z =-0.05;\n backrest3.position.x = 0.09;\n backrest4.rotation.z =-Math.PI*96/180;\n backrest4.position.x = 0.02*Math.cos(Math.PI*6/180);\n node1.position.y = 0.09;\n node2.position.y = 0.09;\n node1.add(backrest2);\n node2.add(backrest4);\n backrestPillow.rotation.y = Math.PI/2;\n backrestPillow.position.y = 0.25 +0.02;\n backrest1.add(node1);\n backrest.add(backrest1);\n backrest3.add(node2);\n backrest.add(backrest3);\n backrest.add(backrestPillow);\n\n return backrest;\n}\n\n\nfunction makeWheel(){\n\n let ArmrestGeometry = new Three.CylinderGeometry( 0.027 , 0.02 , 0.3 , 32, 32 );\n let SupportGeometry = new Three.CylinderGeometry( 0.02 , 0.01 , 0.02 , 32, 32 );\n let PivotGeometry = new Three.CylinderGeometry( 0.008 , 0.008 , 0.01 , 32, 32 );\n let SupportGeometryStart = new Three.SphereGeometry( 0.02 , 32 , 32 );\n let WheelGeometry = new Three.CylinderGeometry( 0.025 , 0.025 , 0.05 , 32, 32 );\n let InsideWheelGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.051 , 32, 32 );\n let WheelCoverGeometry = new Three.CylinderGeometry( 0.026 , 0.026 , 0.045 , 32, 32 );\n let armrest = new Three.Mesh( ArmrestGeometry , metalGrey );\n let support = new Three.Mesh( SupportGeometry , metalGrey );\n let pivot = new Three.Mesh( PivotGeometry , grey );\n let SupportStart = new Three.Mesh( SupportGeometryStart , metalGrey );\n let Wheel = new Three.Mesh( WheelGeometry , black );\n let WheelCover = new Three.Mesh( WheelCoverGeometry , metalGrey );\n let InsideWheel = new Three.Mesh( InsideWheelGeometry , metalGrey );\n let Armrest1 = new Three.Object3D();\n let Armrest2 = new Three.Object3D();\n armrest.rotation.z = Math.PI*80/180;\n armrest.position.x = 0.01 + 0.15;\n Armrest1.rotation.z =-Math.PI*80/180;\n Armrest1.position.y =-Math.sin(Math.PI*80/180)*0.15;\n support.position.y =-0.01;\n pivot.position.y =-0.01 - 0.005;\n Wheel.rotation.x = Math.PI/2;\n Wheel.position.y =-0.005 -0.02;\n WheelCover.position.z =-0.003;\n Wheel.add(InsideWheel);\n Wheel.add(WheelCover);\n pivot.add(Wheel);\n support.add(pivot);\n Armrest1.add(support);\n Armrest1.add(SupportStart);\n armrest.add(Armrest1);\n Armrest2.add(armrest);\n return Armrest2;\n}\n\nfunction makeWheelMinLOD(){\n\n let ArmrestGeometry = new Three.CylinderGeometry( 0.027 , 0.02 , 0.3 , 8, 8 );\n let SupportGeometry = new Three.CylinderGeometry( 0.02 , 0.01 , 0.02 , 8, 8 );\n let PivotGeometry = new Three.CylinderGeometry( 0.008 , 0.008 , 0.01 , 8, 8 );\n let SupportGeometryStart = new Three.SphereGeometry( 0.02 , 8 , 8 );\n let WheelGeometry = new Three.CylinderGeometry( 0.025 , 0.025 , 0.05 , 8, 8 );\n let InsideWheelGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.051 , 8, 8 );\n let armrest = new Three.Mesh( ArmrestGeometry , metalGrey );\n let support = new Three.Mesh( SupportGeometry , metalGrey );\n let pivot = new Three.Mesh( PivotGeometry , grey );\n let SupportStart = new Three.Mesh( SupportGeometryStart , metalGrey );\n let Wheel = new Three.Mesh( WheelGeometry , black );\n let InsideWheel = new Three.Mesh( InsideWheelGeometry , metalGrey );\n let Armrest1 = new Three.Object3D();\n let Armrest2 = new Three.Object3D();\n armrest.rotation.z = Math.PI*80/180;\n armrest.position.x = 0.01 + 0.15;\n Armrest1.rotation.z =-Math.PI*80/180;\n Armrest1.position.y =-Math.sin(Math.PI*80/180)*0.15;\n support.position.y =-0.01;\n pivot.position.y =-0.01 - 0.005;\n Wheel.rotation.x = Math.PI/2;\n Wheel.position.y =-0.005 -0.02;\n Wheel.add(InsideWheel);\n pivot.add(Wheel);\n support.add(pivot);\n Armrest1.add(support);\n Armrest1.add(SupportStart);\n armrest.add(Armrest1);\n Armrest2.add(armrest);\n return Armrest2;\n}\n\nfunction makeBackrestPillow(){\n\n let pillow = new Three.Object3D();\n let CenterGeometry = new Three.BoxGeometry( 0.3 , 0.5 , 0.04 );\n let ShortEdgeGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.3 , 32, 32 );\n let LongEdgeGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.5 , 32, 32 );\n let AngleGeometry = new Three.SphereGeometry( 0.02 , 32 , 32 );\n let edgeShort1 = new Three.Mesh( ShortEdgeGeometry , white );\n let edgeShort2 = new Three.Mesh( ShortEdgeGeometry , white );\n let edgeLong1 = new Three.Mesh( LongEdgeGeometry , white );\n let edgeLong2 = new Three.Mesh( LongEdgeGeometry , white );\n let angle1c = new Three.Mesh( AngleGeometry , white);\n let angle2c = new Three.Mesh( AngleGeometry , white);\n let angle1l = new Three.Mesh( AngleGeometry , white);\n let angle2l = new Three.Mesh( AngleGeometry , white);\n let center = new Three.Mesh( CenterGeometry , white );\n edgeShort1.rotation.z = Math.PI/2;\n edgeShort1.position.y = 0.25;\n angle1c.position.y = 0.15;\n edgeShort2.rotation.z = Math.PI/2;\n edgeShort2.position.y =-0.25;\n angle2c.position.y =-0.15;\n edgeLong1.position.x = 0.15;\n angle1l.position.y = 0.25;\n edgeLong2.position.x =-0.15;\n angle2l.position.y =-0.25;\n edgeLong2.add(angle2l);\n pillow.add(edgeLong2);\n edgeLong1.add(angle1l);\n pillow.add(edgeLong1);\n edgeShort2.add(angle2c);\n pillow.add(edgeShort2);\n edgeShort1.add(angle1c);\n pillow.add(edgeShort1);\n pillow.add(center);\n return pillow;\n}\n\nfunction makeBackrestPillowMinLOD(){\n\n let pillow = new Three.Object3D();\n let CenterGeometry = new Three.BoxGeometry( 0.3 , 0.5 , 0.04 );\n let ShortEdgeGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.3 , 8, 8 );\n let LongEdgeGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.5 , 8, 8 );\n let AngleGeometry = new Three.SphereGeometry( 0.02 , 32 , 32 );\n let edgeShort1 = new Three.Mesh( ShortEdgeGeometry , white );\n let edgeShort2 = new Three.Mesh( ShortEdgeGeometry , white );\n let edgeLong1 = new Three.Mesh( LongEdgeGeometry , white );\n let edgeLong2 = new Three.Mesh( LongEdgeGeometry , white );\n let angle1c = new Three.Mesh( AngleGeometry , white);\n let angle2c = new Three.Mesh( AngleGeometry , white);\n let angle1l = new Three.Mesh( AngleGeometry , white);\n let angle2l = new Three.Mesh( AngleGeometry , white);\n let center = new Three.Mesh( CenterGeometry , white );\n edgeShort1.rotation.z = Math.PI/2;\n edgeShort1.position.y = 0.25;\n angle1c.position.y = 0.15;\n edgeShort2.rotation.z = Math.PI/2;\n edgeShort2.position.y =-0.25;\n angle2c.position.y =-0.15;\n edgeLong1.position.x = 0.15;\n angle1l.position.y = 0.25;\n edgeLong2.position.x =-0.15;\n angle2l.position.y =-0.25;\n edgeLong2.add(angle2l);\n pillow.add(edgeLong2);\n edgeLong1.add(angle1l);\n pillow.add(edgeLong1);\n edgeShort2.add(angle2c);\n pillow.add(edgeShort2);\n edgeShort1.add(angle1c);\n pillow.add(edgeShort1);\n pillow.add(center);\n return pillow;\n}\n\nfunction makeBody() {\n\n let body = new Three.Object3D();\n let SupportPillowGeometry1 = new Three.BoxGeometry( 0.28 , 0.06 , 0.07 );\n let SupportPillowGeometry2 = new Three.BoxGeometry( 0.3 , 0.04 , 0.09 );\n let ShortHandleGeometry = new Three.CylinderGeometry( 0.0045 , 0.0045 , 0.07 , 32, 32 );\n let LongHandleGeometry = new Three.CylinderGeometry( 0.0045 , 0.0045 , 0.09 , 32, 32 );\n let HandleGeometry = new Three.CylinderGeometry( 0.007 , 0.005 , 0.06 , 32 );\n let ArmrestSupportGeometry = new Three.CylinderGeometry( 0.01 , 0.01 , 0.2 , 32, 32 );\n let SupportPillow1 = new Three.Mesh( SupportPillowGeometry1 , metalGrey );\n let SupportPillow2 = new Three.Mesh( SupportPillowGeometry2 , metalGrey );\n let LongHandle = new Three.Mesh( LongHandleGeometry , white );\n let ShortHandle = new Three.Mesh( ShortHandleGeometry , white );\n let Handle1 = new Three.Mesh( HandleGeometry , black );\n let Handle2 = new Three.Mesh( HandleGeometry , black );\n let ArmrestBase1 = new Three.Mesh( ArmrestSupportGeometry , metalGrey );\n let ArmrestBase2 = new Three.Mesh( ArmrestSupportGeometry , metalGrey );\n let Pillow = makePillow();\n let armrest1 = makeArmrest();\n let armrest2 = makeArmrest();\n SupportPillow1.position.y = 0.03;\n SupportPillow2.rotation.z = Math.PI*6/180;\n SupportPillow2.position.y = 0.06 ;\n LongHandle.rotation.x = Math.PI*80/180;\n LongHandle.position.z = 0.035 + 0.045;\n LongHandle.position.x = 0.1;\n ShortHandle.rotation.x =-Math.PI*80/180;\n ShortHandle.position.z =-0.035 - 0.035;\n ShortHandle.position.x = 0.08;\n Handle2.position.y = 0.035 + 0.03;\n Handle1.position.y = 0.045 + 0.03;\n Pillow.position.y = 0.02 + 0.02;\n ArmrestBase1.rotation.x = Math.PI/2;\n ArmrestBase1.rotation.y = -Math.PI*6/180;\n ArmrestBase2.rotation.x = Math.PI/2;\n ArmrestBase2.rotation.y = -Math.PI*6/180;\n ArmrestBase1.position.z = 0.045 + 0.1;\n ArmrestBase2.position.z =-0.045 - 0.1;\n armrest1.position.y = 0.1;\n armrest2.position.y = -0.1;\n SupportPillow2.add(Pillow);\n ArmrestBase1.add(armrest1);\n ArmrestBase2.add(armrest2);\n SupportPillow2.add(ArmrestBase1);\n SupportPillow2.add(ArmrestBase2);\n LongHandle.add(Handle1);\n ShortHandle.add(Handle2);\n SupportPillow1.add(LongHandle);\n SupportPillow1.add(ShortHandle);\n body.add(SupportPillow2);\n body.add(SupportPillow1);\n return body;\n}\n\nfunction makeBodyMinLOD() {\n\n let body = new Three.Object3D();\n let SupportPillowGeometry1 = new Three.BoxGeometry( 0.28 , 0.06 , 0.07 );\n let SupportPillowGeometry2 = new Three.BoxGeometry( 0.3 , 0.04 , 0.09 );\n let ArmrestSupportGeometry = new Three.CylinderGeometry( 0.01 , 0.01 , 0.2 , 8, 8 );\n let SupportPillow1 = new Three.Mesh( SupportPillowGeometry1 , metalGrey );\n let SupportPillow2 = new Three.Mesh( SupportPillowGeometry2 , metalGrey );\n let ArmrestBase1 = new Three.Mesh( ArmrestSupportGeometry , metalGrey );\n let ArmrestBase2 = new Three.Mesh( ArmrestSupportGeometry , metalGrey );\n let Pillow = makePillow();\n let armrest1 = makeArmrestMinLOD();\n let armrest2 = makeArmrestMinLOD();\n SupportPillow1.position.y = 0.03;\n SupportPillow2.rotation.z = Math.PI*6/180;\n SupportPillow2.position.y = 0.06 ;\n Pillow.position.y = 0.02 + 0.02;\n ArmrestBase1.rotation.x = Math.PI/2;\n ArmrestBase1.rotation.y = -Math.PI*6/180;\n ArmrestBase2.rotation.x = Math.PI/2;\n ArmrestBase2.rotation.y = -Math.PI*6/180;\n ArmrestBase1.position.z = 0.045 + 0.1;\n ArmrestBase2.position.z =-0.045 - 0.1;\n armrest1.position.y = 0.1;\n armrest2.position.y = -0.1;\n SupportPillow2.add(Pillow);\n ArmrestBase1.add(armrest1);\n ArmrestBase2.add(armrest2);\n SupportPillow2.add(ArmrestBase1);\n SupportPillow2.add(ArmrestBase2);\n body.add(SupportPillow2);\n body.add(SupportPillow1);\n return body;\n}\n\nfunction makeArmrest(){\n\n let armrest = new Three.Object3D();\n let NodeGeometry = new Three.SphereGeometry( 0.01 , 32 , 32 );\n let GeometryP1 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.24 , 32, 32 );\n let GeometryP2 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.04 , 32, 32 );\n let GeometryP3 = new Three.CylinderGeometry( 0.02 , 0.025 , 0.2 , 32, 32 );\n let node1 = new Three.Mesh( NodeGeometry , metalGrey );\n let node2 = new Three.Mesh( NodeGeometry , metalGrey );\n let P1 = new Three.Mesh( GeometryP1 , metalGrey );\n let P2 = new Three.Mesh( GeometryP2 , metalGrey );\n let P3 = new Three.Mesh( GeometryP3 , white );\n P1.rotation.x = Math.PI/2;\n P1.rotation.z = -Math.PI*25/180;\n P1.position.set( 0.12*Math.sin(P1.rotation.z) , 0 , -0.12*Math.cos(P1.rotation.z) );\n P2.rotation.z = Math.PI*100/180;\n P2.position.x = 0.02;\n P2.position.y = 0.0035;\n node2.position.y =-0.12;\n P3.position.y =-0.1 -0.02;\n P2.add(P3);\n node2.add(P2);\n P1.add(node2);\n node1.add(P1);\n armrest.add(node1);\n return armrest;\n}\n\nfunction makeArmrestMinLOD(){\n\n let armrest = new Three.Object3D();\n let NodeGeometry = new Three.SphereGeometry( 0.01 , 8 , 8 );\n let GeometryP1 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.24 , 8, 8 );\n let GeometryP2 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.04 , 8, 8 );\n let GeometryP3 = new Three.CylinderGeometry( 0.02 , 0.025 , 0.2 , 8, 8 );\n let node1 = new Three.Mesh( NodeGeometry , metalGrey );\n let node2 = new Three.Mesh( NodeGeometry , metalGrey );\n let P1 = new Three.Mesh( GeometryP1 , metalGrey );\n let P2 = new Three.Mesh( GeometryP2 , metalGrey );\n let P3 = new Three.Mesh( GeometryP3 , white );\n P1.rotation.x = Math.PI/2;\n P1.rotation.z = -Math.PI*25/180;\n P1.position.set( 0.12*Math.sin(P1.rotation.z) , 0 , -0.12*Math.cos(P1.rotation.z) );\n P2.rotation.z = Math.PI*100/180;\n P2.position.x = 0.02;\n P2.position.y = 0.0035;\n node2.position.y =-0.12;\n P3.position.y =-0.1 -0.02;\n P2.add(P3);\n node2.add(P2);\n P1.add(node2);\n node1.add(P1);\n armrest.add(node1);\n return armrest;\n}\n\nfunction makePillow() {\n\n let pillow = new Three.Object3D();\n let CenterGeometry = new Three.BoxGeometry( 0.4 , 0.04 , 0.4 );\n let CenterPillow = new Three.Mesh( CenterGeometry , white );\n let edge1 = makeEdge();\n let edge2 = makeEdge();\n let edge3 = makeEdge();\n let edge4 = makeEdge();\n edge1.rotation.x = Math.PI/2;\n edge1.position.x = 0.2;\n edge2.rotation.x =-Math.PI/2;\n edge2.position.x =-0.2;\n edge3.rotation.z =-Math.PI/2;\n edge3.position.z =-0.2;\n edge4.rotation.z = Math.PI/2;\n edge4.position.z = 0.2;\n CenterPillow.add(edge1);\n CenterPillow.add(edge2);\n CenterPillow.add(edge3);\n CenterPillow.add(edge4);\n pillow.add(CenterPillow);\n return pillow;\n}\n\nfunction makeEdge(){\n let EdgeGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.4 , 32 , 32, true );\n let AngleGeometry = new Three.SphereGeometry( 0.02 , 32 , 32 );\n let angle = new Three.Mesh( AngleGeometry , white );\n let edge = new Three.Mesh( EdgeGeometry , white );\n edge.openEnded = 1;\n angle.position.y = 0.2;\n edge.add(angle);\n return edge;\n}\n\nfunction makeBase(){\n\n let base = new Three.Object3D();\n let CylinderGeometry1 = new Three.CylinderGeometry( 0.027 , 0.027 , 0.05 , 32, 32 );\n let CylinderGeometry2 = new Three.CylinderGeometry( 0.03 , 0.03 , 0.2 , 32, 32 );\n let CylinderGeometry3 = new Three.CylinderGeometry( 0.04 , 0.04 , 0.06 , 32, 32 );\n let CylinderCoverGeometryCylinder2 = new Three.TorusGeometry( 0.04 , 0.025 , 32 , 100 );\n let CylinderGeometry4 = new Three.CylinderGeometry( 0.02 , 0.02 , 0.14 , 32, 32 );\n let Cylinder1 = new Three.Mesh( CylinderGeometry1 , metalGrey );\n let Cylinder2 = new Three.Mesh( CylinderGeometry2 , metalGrey );\n let CoverCylinder1 = new Three.Mesh( CylinderGeometry3 , metalGrey );\n let CoverCylinder2 = new Three.Mesh( CylinderCoverGeometryCylinder2 , metalGrey );\n let Cylinder3 = new Three.Mesh( CylinderGeometry4 , metalGrey );\n let Wheel = makeWheels();\n Cylinder1.position.y =-0.1 - 0.025;\n Cylinder3.position.y = 0.1 + 0.07;\n Wheel.position.y =-0.07;\n CoverCylinder1.position.y =-0.05;\n CoverCylinder2.rotation.x = Math.PI/2;\n CoverCylinder2.position.y =-0.05;\n Cylinder2.add(CoverCylinder1);\n Cylinder2.add(CoverCylinder2);\n Cylinder2.add(Wheel);\n Cylinder2.add(Cylinder1);\n Cylinder2.add(Cylinder3);\n base.add(Cylinder2);\n return base;\n}\n\nfunction makeBaseMinLOD(){\n\n let base = new Three.Object3D();\n let CylinderGeometry1 = new Three.CylinderGeometry( 0.027 , 0.027 , 0.05 , 8, 8 );\n let CylinderGeometry2 = new Three.CylinderGeometry( 0.03 , 0.03 , 0.2 , 8, 8 );\n let CylinderGeometry3 = new Three.CylinderGeometry( 0.04 , 0.04 , 0.06 , 8, 8 );\n let CylinderCoverGeometryCylinder2 = new Three.TorusGeometry( 0.04 , 0.025 , 8 , 100 );\n let CylinderGeometry4 = new Three.CylinderGeometry( 0.02 , 0.02 , 0.14 , 8, 8 );\n let Cylinder1 = new Three.Mesh( CylinderGeometry1 , metalGrey );\n let Cylinder2 = new Three.Mesh( CylinderGeometry2 , metalGrey );\n let CoverCylinder1 = new Three.Mesh( CylinderGeometry3 , metalGrey );\n let CoverCylinder2 = new Three.Mesh( CylinderCoverGeometryCylinder2 , metalGrey );\n let Cylinder3 = new Three.Mesh( CylinderGeometry4 , metalGrey );\n let Wheel = makeWheelsMinLOD();\n Cylinder1.position.y =-0.1 - 0.025;\n Cylinder3.position.y = 0.1 + 0.07;\n Wheel.position.y =-0.07;\n CoverCylinder1.position.y =-0.05;\n CoverCylinder2.rotation.x = Math.PI/2;\n CoverCylinder2.position.y =-0.05;\n Cylinder2.add(CoverCylinder1);\n Cylinder2.add(CoverCylinder2);\n Cylinder2.add(Wheel);\n Cylinder2.add(Cylinder1);\n Cylinder2.add(Cylinder3);\n base.add(Cylinder2);\n return base;\n}\n\nfunction makeWheels(){\n let wheels = new Three.Object3D();\n for (let i = 0; i < 5; i++) {\n let wheel = makeWheel();\n wheel.rotation.y = 2*Math.PI*i*72/360;\n wheels.add(wheel);\n }\n return wheels;\n}\n\nfunction makeWheelsMinLOD(){\n let wheels = new Three.Object3D();\n for (let i = 0; i < 5; i++) {\n let wheel = makeWheelMinLOD();\n wheel.rotation.y = 2*Math.PI*i*72/360;\n wheels.add(wheel);\n }\n return wheels;\n}\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let chairDesk = new Three.Mesh();\n let baseChair = makeBase();\n let bodyChair = makeBody();\n let backrestChair = makeBackrest();\n baseChair.position.y = 0.1 +0.07;\n bodyChair.position.y = 0.1 +0.14;\n backrestChair.position.y = 0.06;\n backrestChair.position.x =-0.25;\n bodyChair.add(backrestChair);\n baseChair.add(bodyChair);\n chairDesk.add(baseChair);\n chairDesk.rotation.y= -0.5*Math.PI;\n chairDesk.position.z-= 0.02;\n\n return chairDesk\n}\n\nfunction makeObjectMinLOD() {\n\n let chairDesk = new Three.Mesh();\n let baseChair = makeBaseMinLOD();\n let bodyChair = makeBodyMinLOD();\n let backrestChair = makeBackrestMinLOD();\n baseChair.position.y = 0.1 +0.07;\n bodyChair.position.y = 0.1 +0.14;\n backrestChair.position.y = 0.06;\n backrestChair.position.x =-0.25;\n bodyChair.add(backrestChair);\n baseChair.add(bodyChair);\n chairDesk.add(baseChair);\n chairDesk.rotation.y= -0.5*Math.PI;\n chairDesk.position.z-= 0.02;\n\n return chairDesk\n}\n\nexport default {\n name: \"chairdesk\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'wood'],\n title: \"chairdesk\",\n description: \"office chair\",\n image: require('./chairdesk.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n\n );\n\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let chairDeskMaxLOD = new Three.Object3D();\n chairDeskMaxLOD.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(chairDeskMaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n chairDeskMaxLOD.position.y+= newAltitude;\n chairDeskMaxLOD.position.x+= -WIDTH/8;\n chairDeskMaxLOD.position.z+= DEPTH/4;\n chairDeskMaxLOD.scale.set( WIDTH / deltaX,DEPTH / deltaZ, HEIGHT / deltaY);\n\n let chairDeskMinLOD = new Three.Object3D();\n chairDeskMinLOD.add(objectMinLOD.clone());\n chairDeskMinLOD.position.y+= newAltitude;\n chairDeskMinLOD.position.x+= -WIDTH/8;\n chairDeskMinLOD.position.z+= DEPTH/4;\n chairDeskMinLOD.scale.set( WIDTH / deltaX,DEPTH / deltaZ, HEIGHT / deltaY);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(chairDeskMaxLOD, 200);\n lod.addLevel(chairDeskMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/chair/chair.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 55;\nconst DEPTH = 55;\nconst HEIGHT = 50;\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD(){\n\n let chair = new Three.Mesh();\n\n let LegGeometry = new Three.CylinderGeometry( 0.02, 0.02, 0.5, 32, 32 );\n let LegMaterial = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\n\n let leg1 = new Three.Mesh( LegGeometry, LegMaterial );\n leg1.rotation.x += Math.PI/2;\n leg1.position.z += 0.5/2;\n\n let leg2 = new Three.Mesh( LegGeometry, LegMaterial );\n leg2.rotation.x += Math.PI/2;\n leg2.position.z += 0.5/2;\n leg2.position.y += 0.4;\n\n let leg3 = new Three.Mesh( LegGeometry, LegMaterial );\n leg3.rotation.x += Math.PI/2;\n leg3.position.z += 0.5/2;\n leg3.position.x += 0.4;\n\n let leg4 = new Three.Mesh( LegGeometry, LegMaterial );\n leg4.rotation.x += Math.PI/2;\n leg4.position.z += 0.5/2;\n leg4.position.y += 0.4;\n leg4.position.x += 0.4;\n\n let leg5 = new Three.Mesh( LegGeometry, LegMaterial );\n leg5.rotation.x += Math.PI/2;\n leg5.position.z += 0.5*3/2;\n\n let leg6 = new Three.Mesh( LegGeometry, LegMaterial );\n leg6.rotation.x += Math.PI/2;\n leg6.position.z += 0.5*3/2;\n leg6.position.x += 0.4;\n\n let WoodMaterial = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=.5;\n let height=.48;\n let radius=0.05;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let PlaneGeometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let plane = new Three.Mesh( PlaneGeometry, WoodMaterial ) ;\n\n plane.position.x += -0.05;\n plane.position.y += -0.04;\n plane.position.z += 0.5;\n\n let roundedRectShape2 = new Three.Shape();\n\n let x1=0;\n let y1=0;\n let width1=.45;\n let height1=.25;\n let radius1=0.05;\n\n roundedRectShape2.moveTo( x1, y1 + radius1 );\n roundedRectShape2.lineTo( x1, y1 + height1 - radius1 );\n roundedRectShape2.quadraticCurveTo( x1, y1 + height1, x1 + radius1, y1 + height1 );\n roundedRectShape2.lineTo( x1 + width1 - radius1, y1 + height1) ;\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1 );\n roundedRectShape2.lineTo( x1 + width1, y1 + radius1 );\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1, x1 + width1 - radius1, y1 );\n roundedRectShape2.lineTo( x1 + radius1, y1 );\n roundedRectShape2.quadraticCurveTo( x1, y1, x1, y1 + radius1 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let backGeometry = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let back = new Three.Mesh( backGeometry, WoodMaterial ) ;\n back.rotation.x += Math.PI/2;\n back.position.z += 0.5*12/8;\n back.position.y += 0.03;\n back.position.x += -0.025;\n\n chair.add(back);\n chair.add(plane);\n chair.add(leg1);\n chair.add(leg2);\n chair.add(leg3);\n chair.add(leg4);\n chair.add(leg5);\n chair.add(leg6);\n\n return chair\n}\n\nfunction makeObjectMinLOD(){\n let chair = new Three.Mesh();\n\n let LegGeometry = new Three.CylinderGeometry( 0.02, 0.02, 0.5, 8, 8 );\n let LegMaterial = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\n\n let leg1 = new Three.Mesh( LegGeometry, LegMaterial );\n leg1.rotation.x += Math.PI/2;\n leg1.position.z += 0.5/2;\n\n let leg2 = new Three.Mesh( LegGeometry, LegMaterial );\n leg2.rotation.x += Math.PI/2;\n leg2.position.z += 0.5/2;\n leg2.position.y += 0.4;\n\n let leg3 = new Three.Mesh( LegGeometry, LegMaterial );\n leg3.rotation.x += Math.PI/2;\n leg3.position.z += 0.5/2;\n leg3.position.x += 0.4;\n\n let leg4 = new Three.Mesh( LegGeometry, LegMaterial );\n leg4.rotation.x += Math.PI/2;\n leg4.position.z += 0.5/2;\n leg4.position.y += 0.4;\n leg4.position.x += 0.4;\n\n let leg5 = new Three.Mesh( LegGeometry, LegMaterial );\n leg5.rotation.x += Math.PI/2;\n leg5.position.z += 0.5*3/2;\n\n let leg6 = new Three.Mesh( LegGeometry, LegMaterial );\n leg6.rotation.x += Math.PI/2;\n leg6.position.z += 0.5*3/2;\n leg6.position.x += 0.4;\n\n let WoodMaterial = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=.5;\n let height=.48;\n let radius=0.025;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let PlaneGeometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let plane = new Three.Mesh( PlaneGeometry, WoodMaterial ) ;\n\n plane.position.x += -0.05;\n plane.position.y += -0.04;\n plane.position.z += 0.5;\n\n let roundedRectShape2 = new Three.Shape();\n\n let x1=0;\n let y1=0;\n let width1=.45;\n let height1=.25;\n let radius1=0.025;\n\n roundedRectShape2.moveTo( x1, y1 + radius1 );\n roundedRectShape2.lineTo( x1, y1 + height1 - radius1 );\n roundedRectShape2.quadraticCurveTo( x1, y1 + height1, x1 + radius1, y1 + height1 );\n roundedRectShape2.lineTo( x1 + width1 - radius1, y1 + height1) ;\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1 );\n roundedRectShape2.lineTo( x1 + width1, y1 + radius1 );\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1, x1 + width1 - radius1, y1 );\n roundedRectShape2.lineTo( x1 + radius1, y1 );\n roundedRectShape2.quadraticCurveTo( x1, y1, x1, y1 + radius1 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let backGeometry = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let back = new Three.Mesh( backGeometry, WoodMaterial ) ;\n back.rotation.x += Math.PI/2;\n back.position.z += 0.5*12/8;\n back.position.y += 0.03;\n back.position.x += -0.025;\n\n chair.add(back);\n chair.add(plane);\n chair.add(leg1);\n chair.add(leg2);\n chair.add(leg3);\n chair.add(leg4);\n chair.add(leg5);\n chair.add(leg6);\n\n return chair\n}\n\nexport default {\n name: \"sedia\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'wood'],\n title: \"chair\",\n description: \"chair\",\n image: require('./chair.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************** lod max *********************/\n\n let chair1 = new Three.Object3D();\n chair1.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(chair1);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n chair1.rotation.x+= -Math.PI/2;\n chair1.position.y+= newAltitude;\n chair1.position.x+= -WIDTH/3.5;\n chair1.position.z+= DEPTH/4;\n chair1.scale.set( 1.5*WIDTH / deltaZ,DEPTH/1.5 / deltaX, HEIGHT / deltaY);\n\n /************** lod min *********************/\n\n let chair0 = new Three.Object3D();\n chair0.add(objectMinLOD.clone());\n chair0.rotation.x+= -Math.PI/2;\n chair0.position.y+= newAltitude;\n chair0.position.x+= -WIDTH/3.5;\n chair0.position.z+= DEPTH/4;\n chair0.scale.set( 1.5*WIDTH / deltaZ,DEPTH/1.5 / deltaX, HEIGHT / deltaY);\n\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(chair1, 200);\n lod.addLevel(chair0, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/canteencart/canteen_cart.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 30;\nconst DEPTH = 40;\nconst HEIGHT = 180;\nconst RADIUS = 10;\n\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\nconst grey = new Three.MeshLambertMaterial({color: 0xC0C0C0});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let canteen_cart = new Three.Mesh(new Three.CylinderGeometry(0.8, 0.8, 0.5, 32), black);\n\n for (let fx = 0; fx <= 6; fx += 6) {\n for (let fz = 0; fz <= 6; fz += 6) {\n\n // ruota pneumatico\n let wheel = new Three.Mesh(new Three.CylinderGeometry(0.8, 0.8, 0.5, 32), black);\n wheel.position.set(fx, fz, 0);\n canteen_cart.add(wheel);\n\n // ruota cuscinetto\n let r1a = new Three.Mesh(new Three.CylinderGeometry(0.6, 0.6, 0.6, 32), grey);\n wheel.add(r1a);\n\n // dado esagonale\n let cr1 = new Three.Mesh(new Three.CylinderGeometry(0.1, 0.1, 0.8, 6), black);\n cr1.position.set(0, 0, 0);\n wheel.add(cr1);\n\n // copriruota disco superiore\n let wheelCoverUp = new Three.Mesh(new Three.CylinderGeometry(0.6, 0.6, 0.1, 32), grey);\n wheelCoverUp.rotation.x = 0.5 * Math.PI;\n wheelCoverUp.position.set(-0.3, 0, -1.2);\n wheel.add(wheelCoverUp);\n\n // copriruota disco inferiore\n let wheelCoverDown = new Three.Mesh(new Three.CylinderGeometry(0.3725, 0.3725, 0.3, 32), black);\n wheelCoverDown.rotation.x = 0.5 * Math.PI;\n wheelCoverDown.position.set(-0.3, 0, -1);\n wheel.add(wheelCoverDown);\n\n // triangolo lato 1\n let cr2 = new Three.Mesh(new Three.CylinderGeometry(0.55, 0.55, 0.05, 3), grey);\n cr2.position.set(-0.2, -0.35, -0.6);\n wheel.add(cr2);\n\n // rettangolo lato 1\n let b1 = new Three.Mesh(new Three.BoxGeometry(0.55, 1.1, 0.05), grey);\n b1.rotation.x = 0.5 * Math.PI;\n b1.position.set(0, -0.35, -0.4);\n wheel.add(b1);\n\n // triangolo lato 2\n let cr3 = new Three.Mesh(new Three.CylinderGeometry(0.55, 0.55, 0.05, 3), grey);\n cr3.position.set(-0.2, 0.35, -0.6);\n wheel.add(cr3);\n\n // rettangolo lato 2\n let b2 = new Three.Mesh(new Three.BoxGeometry(0.55, 1.1, 0.05), grey);\n b2.rotation.x = 0.5 * Math.PI;\n b2.position.set(0, 0.35, -0.4);\n wheel.add(b2);\n\n // rettangolo lato up\n let b3 = new Three.Mesh(new Three.BoxGeometry(0.95, 0.75, 0.1), grey);\n b3.position.set(-0.2, 0, -0.9);\n wheel.add(b3);\n\n }\n }\n\n // side\n let side1 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side1.rotation.x = 0.5 * Math.PI;\n side1.position.set(-0.3, 0, -9.6);\n canteen_cart.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side2.rotation.x = 0.5 * Math.PI;\n side2.position.set(-0.3, 6, -9.6);\n canteen_cart.add(side2);\n\n let side3 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side3.rotation.x = 0.5 * Math.PI;\n side3.position.set(5.7, 0, -9.6);\n canteen_cart.add(side3);\n\n let side4 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side4.rotation.x = 0.5 * Math.PI;\n side4.position.set(5.7, 6, -9.6);\n canteen_cart.add(side4);\n\n // archi top\n let a1 = new Three.Mesh(new Three.TorusGeometry(3, 0.15, 20, 20, 3.125), grey);\n a1.rotation.x = -0.5 * Math.PI;\n a1.position.set(2.7, 6, -18.1);\n canteen_cart.add(a1);\n\n // archi top\n let a2 = new Three.Mesh(new Three.TorusGeometry(3, 0.15, 20, 20, 3.125), grey);\n a2.rotation.x = -0.5 * Math.PI;\n a2.position.set(2.7, 0, -18.1);\n canteen_cart.add(a2);\n\n // ripiano top\n let plane = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane.position.set(-0.3, 3, -18);\n canteen_cart.add(plane);\n\n // ripiano top\n let plane2 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane2.rotation.x = 0.5 * Math.PI;\n plane2.rotation.z = 0.5 * Math.PI;\n plane2.position.set(2.7, 0, -18);\n canteen_cart.add(plane2);\n\n // ripiano top\n let plane3 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane3.rotation.x = 0.5 * Math.PI;\n plane3.rotation.z = 0.5 * Math.PI;\n plane3.position.set(2.7, 6, -18);\n canteen_cart.add(plane3);\n\n // ripiano top\n let plane4 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane4.position.set(5.7, 3, -18);\n canteen_cart.add(plane4);\n\n //ripiani\n for (let Dz = -16.5; Dz <= -2.8; Dz += 1.5) {\n let plane5 = new Three.Mesh(new Three.BoxGeometry(0.5, 5.7, 0.1), grey);\n plane5.rotation.z = 0.5 * Math.PI;\n plane5.position.set(2.7, 5.9, Dz + 0.2);\n canteen_cart.add(plane5);\n\n let plane6 = new Three.Mesh(new Three.BoxGeometry(0.1, 5.7, 0.5), grey);\n plane6.rotation.z = 0.5 * Math.PI;\n plane6.position.set(2.7, 6.1, Dz);\n canteen_cart.add(plane6);\n\n let plane7 = new Three.Mesh(new Three.BoxGeometry(0.5, 5.7, 0.1), grey);\n plane7.rotation.z = 0.5 * Math.PI;\n plane7.position.set(2.7, 0.1, Dz + 0.2);\n canteen_cart.add(plane7);\n\n let plane8 = new Three.Mesh(new Three.BoxGeometry(0.1, 5.7, 0.5), grey);\n plane8.rotation.z = 0.5 * Math.PI;\n plane8.position.set(2.7, -0.1, Dz);\n canteen_cart.add(plane8)\n }\n\n // ripiano down\n let d1 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n d1.position.set(-0.3, 3, -2);\n canteen_cart.add(d1);\n\n //ripiano down\n let d2 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n d2.position.set(5.7, 3, -2);\n canteen_cart.add(d2);\n\n return canteen_cart\n}\n\nfunction makeObjectMinLOD() {\n\n let canteen_cart = new Three.Mesh();\n\n for (let fx = 0; fx <= 6; fx += 6) {\n for (let fz = 0; fz <= 6; fz += 6) {\n\n // ruota pneumatico\n let wheel = new Three.Mesh(new Three.CylinderGeometry(0.8, 0.8, 0.5, 32), black);\n wheel.position.set(fx, fz, 0);\n canteen_cart.add(wheel);\n\n // ruota cuscinetto\n let r1a = new Three.Mesh(new Three.CylinderGeometry(0.6, 0.6, 0.6, 32), grey);\n wheel.add(r1a);\n\n // dado esagonale\n let cr1 = new Three.Mesh(new Three.CylinderGeometry(0.1, 0.1, 0.8, 6), black);\n cr1.position.set(0, 0, 0);\n wheel.add(cr1);\n\n // copriruota disco superiore\n let wheelCoverUp = new Three.Mesh(new Three.CylinderGeometry(0.6, 0.6, 0.1, 32), grey);\n wheelCoverUp.rotation.x = 0.5 * Math.PI;\n wheelCoverUp.position.set(-0.3, 0, -1.2);\n wheel.add(wheelCoverUp);\n\n // copriruota disco inferiore\n let wheelCoverDown = new Three.Mesh(new Three.CylinderGeometry(0.3725, 0.3725, 0.3, 32), black);\n wheelCoverDown.rotation.x = 0.5 * Math.PI;\n wheelCoverDown.position.set(-0.3, 0, -1);\n wheel.add(wheelCoverDown);\n\n // triangolo lato 1\n let cr2 = new Three.Mesh(new Three.CylinderGeometry(0.55, 0.55, 0.05, 3), grey);\n cr2.position.set(-0.2, -0.35, -0.6);\n wheel.add(cr2);\n\n // rettangolo lato 1\n let b1 = new Three.Mesh(new Three.BoxGeometry(0.55, 1.1, 0.05), grey);\n b1.rotation.x = 0.5 * Math.PI;\n b1.position.set(0, -0.35, -0.4);\n wheel.add(b1);\n\n // triangolo lato 2\n let cr3 = new Three.Mesh(new Three.CylinderGeometry(0.55, 0.55, 0.05, 3), grey);\n cr3.position.set(-0.2, 0.35, -0.6);\n wheel.add(cr3);\n\n // rettangolo lato 2\n let b2 = new Three.Mesh(new Three.BoxGeometry(0.55, 1.1, 0.05), grey);\n b2.rotation.x = 0.5 * Math.PI;\n b2.position.set(0, 0.35, -0.4);\n wheel.add(b2);\n\n // rettangolo lato up\n let b3 = new Three.Mesh(new Three.BoxGeometry(0.95, 0.75, 0.1), grey);\n b3.position.set(-0.2, 0, -0.9);\n wheel.add(b3);\n\n }\n }\n\n // side\n let side1 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side1.rotation.x = 0.5 * Math.PI;\n side1.position.set(-0.3, 0, -9.6);\n canteen_cart.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side2.rotation.x = 0.5 * Math.PI;\n side2.position.set(-0.3, 6, -9.6);\n canteen_cart.add(side2);\n\n let side3 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side3.rotation.x = 0.5 * Math.PI;\n side3.position.set(5.7, 0, -9.6);\n canteen_cart.add(side3);\n\n let side4 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side4.rotation.x = 0.5 * Math.PI;\n side4.position.set(5.7, 6, -9.6);\n canteen_cart.add(side4);\n\n // archi top\n let a1 = new Three.Mesh(new Three.TorusGeometry(3, 0.15, 20, 20, 3.125), grey);\n a1.rotation.x = -0.5 * Math.PI;\n a1.position.set(2.7, 6, -18.1);\n canteen_cart.add(a1);\n\n // archi top\n let a2 = new Three.Mesh(new Three.TorusGeometry(3, 0.15, 20, 20, 3.125), grey);\n a2.rotation.x = -0.5 * Math.PI;\n a2.position.set(2.7, 0, -18.1);\n canteen_cart.add(a2);\n\n // ripiano top\n let plane = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane.position.set(-0.3, 3, -18);\n canteen_cart.add(plane);\n\n // ripiano top\n let plane2 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane2.rotation.x = 0.5 * Math.PI;\n plane2.rotation.z = 0.5 * Math.PI;\n plane2.position.set(2.7, 0, -18);\n canteen_cart.add(plane2);\n\n // ripiano top\n let plane3 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane3.rotation.x = 0.5 * Math.PI;\n plane3.rotation.z = 0.5 * Math.PI;\n plane3.position.set(2.7, 6, -18);\n canteen_cart.add(plane3);\n\n // ripiano top\n let plane4 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane4.position.set(5.7, 3, -18);\n canteen_cart.add(plane4);\n\n //ripiani\n for (let Dz = -16.5; Dz <= -2.8; Dz += 1.5) {\n let plane5 = new Three.Mesh(new Three.BoxGeometry(0.5, 5.7, 0.1), grey);\n plane5.rotation.z = 0.5 * Math.PI;\n plane5.position.set(2.7, 5.9, Dz + 0.2);\n canteen_cart.add(plane5);\n\n let plane6 = new Three.Mesh(new Three.BoxGeometry(0.1, 5.7, 0.5), grey);\n plane6.rotation.z = 0.5 * Math.PI;\n plane6.position.set(2.7, 6.1, Dz);\n canteen_cart.add(plane6);\n\n let plane7 = new Three.Mesh(new Three.BoxGeometry(0.5, 5.7, 0.1), grey);\n plane7.rotation.z = 0.5 * Math.PI;\n plane7.position.set(2.7, 0.1, Dz + 0.2);\n canteen_cart.add(plane7);\n\n let plane8 = new Three.Mesh(new Three.BoxGeometry(0.1, 5.7, 0.5), grey);\n plane8.rotation.z = 0.5 * Math.PI;\n plane8.position.set(2.7, -0.1, Dz);\n canteen_cart.add(plane8)\n }\n\n // ripiano down\n let d1 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n d1.position.set(-0.3, 3, -2);\n canteen_cart.add(d1);\n\n //ripiano down\n let d2 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n d2.position.set(5.7, 3, -2);\n canteen_cart.add(d2);\n\n return canteen_cart\n}\nexport default {\n name: 'canteen cart',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'metal'],\n title: 'canteen cart',\n description: 'canteen cart',\n image: require('./canteen_cart.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n\n \n \n \n {element.type}\n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************** lod max ****************/\n\n let canteen_cartMaxLOD = new Three.Object3D();\n canteen_cartMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(canteen_cartMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n canteen_cartMaxLOD.rotation.x+=Math.PI/2;\n canteen_cartMaxLOD.position.y+=newAltitude;\n canteen_cartMaxLOD.scale.set(WIDTH / deltaY, DEPTH / deltaX, HEIGHT / deltaZ);\n\n /************** lod min ****************/\n\n let canteen_cartMinLOD = new Three.Object3D();\n canteen_cartMinLOD.add(objectMinLOD.clone());\n canteen_cartMinLOD.rotation.x+=Math.PI/2;\n canteen_cartMinLOD.position.y+=newAltitude;\n canteen_cartMinLOD.scale.set(WIDTH / deltaY, DEPTH / deltaX, HEIGHT / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(canteen_cartMaxLOD, 200);\n lod.addLevel(canteen_cartMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/canteen-table/canteen_table.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 100;\nconst DEPTH = 140;\nconst HEIGHT = 100;\n\nconst brown = new Three.MeshLambertMaterial({color: 0xac6c25});\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\nconst grey = new Three.MeshLambertMaterial({color: 0xC0C0C0});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n //central pillar\n let centralPillar = new Three.BoxGeometry(1,3,1);\n let canteen_table = new Three.Mesh(centralPillar,grey);\n\n // plane top\n let planeTop = new Three.Mesh(new Three.BoxGeometry(10,0.5,10),brown);\n planeTop.position.set(0,1.5,0);\n canteen_table.add(planeTop);\n\n //plane nuts\n for(let dx=-0.25;dx<=0.25;dx+=0.5)\n {\n for(let dz=-0.25;dz<=0.25;dz+=0.5)\n {\n let nut = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.8,6),black);\n nut.position.set(dx,1.4,dz);\n canteen_table.add(nut);\n }\n }\n\n // central axis\n let axis1 = new Three.Mesh(new Three.BoxGeometry(1,15,1),grey);\n axis1.rotation.x=0.5*Math.PI;\n axis1.position.set(0,-1,0);\n canteen_table.add(axis1);\n\n //axis\n let axis2 = new Three.Mesh(new Three.BoxGeometry(1,10,1),grey);\n axis2.rotation.z=0.5*Math.PI;\n axis2.position.set(0,-1,-7);\n canteen_table.add(axis2);\n\n //axis\n let axis3 = new Three.Mesh(new Three.BoxGeometry(1,10,1),grey);\n axis3.rotation.z=0.5*Math.PI;\n axis3.position.set(0,-1,7);\n canteen_table.add(axis3);\n\n //legs\n for(let gx=-3;gx<=3;gx+=6)\n {\n for(let gz=7;gz>=-7;gz-=14)\n {\n let leg = new Three.Mesh(new Three.BoxGeometry(1,3,1),grey);\n leg.rotation.y=0.5*Math.PI;\n leg.position.set(gx,-2,gz);\n canteen_table.add(leg);\n }\n }\n\n //legs base\n for(let fx=-3;fx<=3;fx+=6)\n {\n for(let fz=8;fz>=-8;fz-=16)\n {\n let legBase = new Three.Mesh(new Three.BoxGeometry(3,0.25,1),grey);\n legBase.rotation.y=0.5*Math.PI;\n legBase.position.set(fx,-3.5,fz+1);\n canteen_table.add(legBase);\n\n // base nuts\n let baseNut1 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.3,6),black);\n baseNut1.position.set(fx,-3.5,fz-1);\n baseNut1.position.set(fx,-3.5,fz+2);\n canteen_table.add(baseNut1);\n\n if(fz>0)\n {\n legBase.position.set(fx,-3.5,fz-1);\n baseNut1.position.set(fx,-3.5,fz-2);\n }\n\n let baseNut2 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.3,6),black);\n baseNut2.position.set(fx,-3.5,fz);\n canteen_table.add(baseNut2);\n }\n }\n\n // chair back\n for(let fsx=-3;fsx<=3;fsx+=6)\n {\n for(let fsz=-9.24;fsz<=9.24;fsz+=18.48)\n {\n let chairBack = new Three.Mesh(new Three.BoxGeometry(4,0.5,2.5),brown);\n chairBack.rotation.x=0.5*Math.PI;\n chairBack.position.set(fsx,2.5,fsz);\n canteen_table.add(chairBack);\n }\n }\n\n for(let fbx=-4.5;fbx<=4.5;fbx+=9)\n {\n for(let fbz=-9.45;fbz<=9.45;fbz+=18.9)\n {\n // chair support bar\n let support1 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,4),grey);\n support1.rotation.x=0.5*Math.PI;\n support1.position.set(fbx,1.6,fbz);\n canteen_table.add(support1);\n\n let support2 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,4),grey);\n support2.rotation.x=0.5*Math.PI;\n support2.position.set(fbx-3,1.6,fbz);\n canteen_table.add(support2);\n\n //nut back chair\n let nutBack1 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.6,6),black);\n nutBack1.rotation.x=0.5*Math.PI;\n nutBack1.position.set(fbx,2.5,fbz-0.2);\n canteen_table.add(nutBack1);\n\n let nutBack2 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.6,6),black);\n nutBack2.rotation.x=0.5*Math.PI;\n nutBack2.position.set(fbx-3,2.5,fbz-0.2);\n canteen_table.add(nutBack2);\n\n if(fbx<0)\n {\n support2.position.set(fbx+3,1.6,fbz);\n nutBack2.position.set(fbx+3,2.5,fbz-0.2);\n if(fbz<0)\n nutBack2.position.set(fbx+3,2.5,fbz+0.2);\n }\n\n if(fbz<0)\n {\n nutBack1.position.set(fbx,2.5,fbz+0.2);\n\n if(fbx>0)\n nutBack2.position.set(fbx-3,2.5,fbz+0.2);\n\n }\n }\n }\n\n for(let fdx=-3;fdx<=3;fdx+=6)\n {\n for(let fdz=-7;fdz<=7;fdz+=14)\n {\n // seat chair\n let seat = new Three.Mesh(new Three.BoxGeometry(4,0.5,4),brown);\n seat.rotation.y=0.5*Math.PI;\n seat.position.set(fdx,-0.25,fdz);\n canteen_table.add(seat);\n }\n }\n\n for(let fbsx=-4.5;fbsx<=4.5;fbsx+=9)\n {\n for(let fbsz=-9;fbsz<=9;fbsz+=18)\n {\n // seat support\n let seatSupport1 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,1),grey);\n seatSupport1.position.set(fbsx,-0.35,fbsz);\n canteen_table.add(seatSupport1);\n\n let seatSupport2 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,1),grey);\n seatSupport2.position.set(fbsx-3,-0.35,fbsz);\n canteen_table.add(seatSupport2);\n\n // seat nuts\n let seatNut1 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.8,6),black);\n seatNut1.position.set(fbsx,-0.35,fbsz-2);\n canteen_table.add(seatNut1);\n\n let seatNut2 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.8,6),black);\n seatNut2.position.set(fbsx-3,-0.35,fbsz-2);\n canteen_table.add(seatNut2);\n\n if(fbsx<0)\n {\n seatSupport2.position.set(fbsx+3,-0.35,fbsz);\n seatNut2.position.set(fbsx+3,-0.35,fbsz-2);\n if(fbsz<0)\n seatNut2.position.set(fbsx+3,-0.35,fbsz+2);\n }\n\n if(fbsz<0)\n {\n seatNut1.position.set(fbsx,-0.35,fbsz+2);\n\n if(fbsx>0)\n seatNut2.position.set(fbsx-3,-0.35,fbsz+2);\n\n }\n }\n }\n\n return canteen_table\n}\n\nfunction makeObjectMinLOD() {\n\n //central pillar\n let centralPillar = new Three.BoxGeometry(1,3,1);\n let canteen_table = new Three.Mesh(centralPillar,grey);\n\n // plane top\n let planeTop = new Three.Mesh(new Three.BoxGeometry(10,0.5,10),brown);\n planeTop.position.set(0,1.5,0);\n canteen_table.add(planeTop);\n\n // central axis\n let axis1 = new Three.Mesh(new Three.BoxGeometry(1,15,1),grey);\n axis1.rotation.x=0.5*Math.PI;\n axis1.position.set(0,-1,0);\n canteen_table.add(axis1);\n\n //axis\n let axis2 = new Three.Mesh(new Three.BoxGeometry(1,10,1),grey);\n axis2.rotation.z=0.5*Math.PI;\n axis2.position.set(0,-1,-7);\n canteen_table.add(axis2);\n\n //axis\n let axis3 = new Three.Mesh(new Three.BoxGeometry(1,10,1),grey);\n axis3.rotation.z=0.5*Math.PI;\n axis3.position.set(0,-1,7);\n canteen_table.add(axis3);\n\n //legs\n for(let gx=-3;gx<=3;gx+=6)\n {\n for(let gz=7;gz>=-7;gz-=14)\n {\n let leg = new Three.Mesh(new Three.BoxGeometry(1,3,1),grey);\n leg.rotation.y=0.5*Math.PI;\n leg.position.set(gx,-2,gz);\n canteen_table.add(leg);\n }\n }\n\n //legs base\n for(let fx=-3;fx<=3;fx+=6)\n {\n for(let fz=8;fz>=-8;fz-=16)\n {\n let legBase = new Three.Mesh(new Three.BoxGeometry(3,0.25,1),grey);\n legBase.rotation.y=0.5*Math.PI;\n legBase.position.set(fx,-3.5,fz+1);\n canteen_table.add(legBase);\n\n if(fz>0)\n legBase.position.set(fx,-3.5,fz-1);\n }\n }\n\n // chair back\n for(let fsx=-3;fsx<=3;fsx+=6)\n {\n for(let fsz=-9.24;fsz<=9.24;fsz+=18.48)\n {\n let chairBack = new Three.Mesh(new Three.BoxGeometry(4,0.5,2.5),brown);\n chairBack.rotation.x=0.5*Math.PI;\n chairBack.position.set(fsx,2.5,fsz);\n canteen_table.add(chairBack);\n }\n }\n\n for(let fbx=-4.5;fbx<=4.5;fbx+=9)\n {\n for(let fbz=-9.45;fbz<=9.45;fbz+=18.9)\n {\n // chair support bar\n let support1 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,4),grey);\n support1.rotation.x=0.5*Math.PI;\n support1.position.set(fbx,1.6,fbz);\n canteen_table.add(support1);\n\n let support2 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,4),grey);\n support2.rotation.x=0.5*Math.PI;\n support2.position.set(fbx-3,1.6,fbz);\n canteen_table.add(support2);\n\n if(fbx<0)\n support2.position.set(fbx+3,1.6,fbz);\n }\n }\n\n for(let fdx=-3;fdx<=3;fdx+=6)\n {\n for(let fdz=-7;fdz<=7;fdz+=14)\n {\n // seat chair\n let seat = new Three.Mesh(new Three.BoxGeometry(4,0.5,4),brown);\n seat.rotation.y=0.5*Math.PI;\n seat.position.set(fdx,-0.25,fdz);\n canteen_table.add(seat);\n }\n }\n\n for(let fbsx=-4.5;fbsx<=4.5;fbsx+=9)\n {\n for(let fbsz=-9;fbsz<=9;fbsz+=18)\n {\n // seat support\n let seatSupport1 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,1),grey);\n seatSupport1.position.set(fbsx,-0.35,fbsz);\n canteen_table.add(seatSupport1);\n\n let seatSupport2 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,1),grey);\n seatSupport2.position.set(fbsx-3,-0.35,fbsz);\n canteen_table.add(seatSupport2);\n\n if(fbsx<0)\n seatSupport2.position.set(fbsx+3,-0.35,fbsz);\n }\n }\n\n return canteen_table\n}\n\n\nexport default {\n name: 'canteen table',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood'],\n title: 'canteen table',\n description: 'canteen table',\n image: require('./canteen_table.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************** lod max *****************/\n\n let canteen_table_MaxLOD = new Three.Object3D();\n canteen_table_MaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(canteen_table_MaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n canteen_table_MaxLOD.position.y+= HEIGHT/2 +newAltitude;\n canteen_table_MaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /************** lod min *****************/\n\n let canteen_table_MinLOD = new Three.Object3D();\n canteen_table_MinLOD.add(objectMinLOD.clone());\n canteen_table_MinLOD.position.y+= HEIGHT/2 +newAltitude;\n canteen_table_MinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(canteen_table_MaxLOD, 200);\n lod.addLevel(canteen_table_MinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod)\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/camera/camera.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 10;\nconst DEPTH = 20;\nconst HEIGHT = 20;\n\nconst grey = new Three.MeshLambertMaterial({color:0xaaaaaa});\nconst black = new Three.MeshLambertMaterial({color:0x000000});\nconst white = new Three.MeshLambertMaterial({color:0xffffff});\nconst glassMaterial = new Three.MeshLambertMaterial({color:0xffffff, transparent: true, opacity:0.5});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD(){\n\n let video_camera = new Three.Mesh();\n\n let cylinderGeometry = new Three.CylinderGeometry(0.2,0.2,0.5,80);\n let body = new Three.Mesh(cylinderGeometry,grey);\n body.rotation.x+= Math.PI/2;\n body.position.set(0,0.5,0);\n\n let geometrySphereUp = new Three.SphereGeometry( 0.2, 32, 32 );\n let sphereUp = new Three.Mesh( geometrySphereUp, grey );\n sphereUp.position.set(0,-0.25,0);\n body.add(sphereUp);\n\n let cylinderGeometry2b = new Three.CylinderGeometry(0.085,0.085,0.5,80);\n let focus = new Three.Mesh(cylinderGeometry2b,black);\n focus.position.set(0,0.04,0);\n body.add(focus);\n\n let geometrySphereUp2 = new Three.SphereGeometry( 0.025, 32, 32 );\n\n for (let i = 0; i < 16; i++) {\n\n let led_1 = new Three.Mesh( geometrySphereUp2, white );\n let led_2 = new Three.Mesh( geometrySphereUp2, white );\n\n led_1.position.set(Math.cos(2*Math.PI/14*i)*0.115,0.2497,Math.sin(2*Math.PI/14*i)*0.115 );\n led_2.position.set(Math.cos(2*Math.PI/16*i)*0.17,0.25,Math.sin(2*Math.PI/16*i)*0.17);\n led_1.scale.set(1,1,1.3);\n led_2.scale.set(1,1,1.3);\n led_1.rotation.x+=Math.PI/2;\n led_2.rotation.x+=Math.PI/2;\n body.add(led_1);\n body.add(led_2);\n\n\n }\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.195,0.195,0.05,80);\n let glass = new Three.Mesh(cylinderGeometry2, glassMaterial);\n glass.position.set(0,0.27,0);\n body.add(glass);\n\n let cylinderGeometry3 = new Three.CylinderGeometry(0.2,0.2,0.1,80,16,true);\n let cover = new Three.Mesh(cylinderGeometry3,grey);\n cover.position.set(0,0.25,0);\n body.add(cover);\n\n let cubeGeometryBase = new Three.BoxGeometry(0.25,0.05,0.25);\n let base = new Three.Mesh(cubeGeometryBase,grey);\n base.position.set(0,-0.6,0.35);\n body.add(base);\n\n for (let i = 0.265; i <=0.5 ; i+=0.165) {\n\n let cylinderGeometry = new Three.CylinderGeometry(0.02,0.02,0.055,6,6);\n let locknut1 = new Three.Mesh(cylinderGeometry,black);\n let locknut2 = new Three.Mesh(cylinderGeometry,black);\n locknut1.position.set(0.08,-0.6,i);\n locknut2.position.set(-0.08,-0.6,i);\n body.add(locknut1);\n body.add(locknut2);\n\n }\n\n let shape2 = new Three.Shape();\n shape2.moveTo( 0.2,0.45 );\n shape2.lineTo( 0.5,0.5 );\n shape2.lineTo( 0.7,0.5 );\n shape2.lineTo(0.7,0.6);\n shape2.lineTo(0.2,0.6);\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry3 = new Three.ExtrudeGeometry( shape2, extrudeSettings );\n let arm_p1 = new Three.Mesh(geometry3,grey) ;\n arm_p1.rotation.z=Math.PI/2;\n arm_p1.rotation.y=-Math.PI/2;\n arm_p1.position.set(0.05,-0.8,0.875);\n body.add( arm_p1 );\n\n let cylinderGeometry4 = new Three.CylinderGeometry(0.1,0.1,0.1,80,16);\n let arm_p2 = new Three.Mesh(cylinderGeometry4,grey);\n arm_p2.rotation.x+=Math.PI/2;\n arm_p2.position.set(0,-0.02,0.325);\n body.add(arm_p2);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(0.05,0.05,0.14,80,16);\n let arm_p3 = new Three.Mesh(cylinderGeometry5,black);\n arm_p3.rotation.x+=Math.PI/2;\n arm_p3.position.set(0,-0.02,0.325);\n body.add(arm_p3);\n\n let cylinderGeometry6 = new Three.CylinderGeometry(0.025,0.025,0.16,80,16);\n let arm_p3b = new Three.Mesh(cylinderGeometry6,grey);\n arm_p3b.rotation.x+=Math.PI/2;\n arm_p3b.position.set(0,-0.02,0.325);\n body.add(arm_p3b);\n\n let cylinderGeometry7 = new Three.CylinderGeometry(0.026,0.026,0.12,80,16);\n let arm_p4 = new Three.Mesh(cylinderGeometry7,black);\n arm_p4.rotation.z+=Math.PI/2;\n arm_p4.position.set(0,-0.02,0.23);\n body.add(arm_p4);\n\n let cylinderGeometry8 = new Three.CylinderGeometry(0.02,0.02,0.16,80,16);\n let arm_p5 = new Three.Mesh(cylinderGeometry8,grey);\n arm_p5.rotation.z+=Math.PI/2;\n arm_p5.position.set(0,-0.02,0.23);\n body.add(arm_p5);\n\n let joint = new Three.Shape();\n\n // startpoint\n joint.moveTo(0, 0);\n joint.lineTo(0, 0.1);\n joint.lineTo(0.1, 0.1);\n joint.bezierCurveTo(0.05,0.05,0.05,0.05,0.1,0);\n\n let extrudeSettings2 = { depth: 0.1, bevelEnabled: false, bevelSegments: 1, steps: 1, bevelSize: 1, bevelThickness: 1 };\n\n let geometry4 = new Three.ExtrudeGeometry( joint, extrudeSettings2 );\n\n let mesh_1 = new Three.Mesh( geometry4, grey );\n\n mesh_1.position.set(-0.05,0.03,0.15);\n mesh_1.rotation.y+=Math.PI/2;\n mesh_1.rotation.z+=-Math.PI;\n\n let mesh_2 = new Three.Mesh( geometry4, grey );\n mesh_2.position.set(-0.05,-0.07,0.3);\n mesh_2.rotation.y+=Math.PI/2;\n\n body.add(mesh_1);\n body.add(mesh_2);\n\n let points = [];\n\n points.push( new Three.Vector2(0.2, 0));\n points.push( new Three.Vector2(0.2, 0));\n points.push( new Three.Vector2(0.2, 0.2));\n points.push( new Three.Vector2(0.2, 0.2));\n\n let geometry = new Three.LatheGeometry( points, 200, 0, Math.PI );\n grey.side = Three.DoubleSide;\n let cover_2 = new Three.Mesh(geometry,grey);\n cover_2.position.set(0,0.2,0);\n cover_2.rotation.y+=Math.PI/2;\n body.add(cover_2);\n\n let cylinderGeometry9 = new Three.CylinderGeometry(0.025,0.02,0.3,80,16);\n let antenna_p1 = new Three.Mesh(cylinderGeometry9,black);\n antenna_p1.rotation.x+=Math.PI/2;\n antenna_p1.position.set(0,-0.5,-0.18);\n body.add(antenna_p1);\n\n let cylinderGeometry10 = new Three.CylinderGeometry(0.02,0.015,0.3,80,16);\n let antenna_p2 = new Three.Mesh(cylinderGeometry10,black);\n antenna_p2.rotation.x+=Math.PI/2;\n antenna_p2.position.set(0,-0.5,-0.35);\n body.add(antenna_p2);\n\n let sphere_p1 = new Three.SphereGeometry( 0.015, 32, 32 );\n let antenna_p3 = new Three.Mesh( sphere_p1, black );\n antenna_p3.position.set(0,-0.5,-0.5);\n body.add(antenna_p3);\n\n let sphere_p2 = new Three.SphereGeometry( 0.04, 32, 32 );\n let antenna_p4 = new Three.Mesh( sphere_p2, black );\n antenna_p4.position.set(0,-0.5,0);\n body.add(antenna_p4);\n\n let cylinderGeometry11 = new Three.CylinderGeometry(0.025,0.025,0.1,80,16);\n let antenna_p5 = new Three.Mesh(cylinderGeometry11,black);\n antenna_p5.position.set(0,-0.42,0);\n body.add(antenna_p5);\n video_camera.add(body);\n\n return video_camera;\n}\n\nfunction makeObjectMinLOD(){\n\n let video_camera = new Three.Mesh();\n\n let cylinderGeometry = new Three.CylinderGeometry(0.2,0.2,0.5,8.8);\n let body = new Three.Mesh(cylinderGeometry,grey);\n body.rotation.x+= Math.PI/2;\n body.position.set(0,0.5,0);\n\n let geometrySphereUp = new Three.SphereGeometry( 0.2, 8, 8 );\n let sphereUp = new Three.Mesh( geometrySphereUp, grey );\n sphereUp.position.set(0,-0.25,0);\n body.add(sphereUp);\n\n let cylinderGeometry2b = new Three.CylinderGeometry(0.085,0.085,0.5,8,8);\n let focus = new Three.Mesh(cylinderGeometry2b,black);\n focus.position.set(0,0.04,0);\n body.add(focus);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.195,0.195,0.05,8,8);\n let glass = new Three.Mesh(cylinderGeometry2,glassMaterial);\n glass.position.set(0,0.27,0);\n body.add(glass);\n\n let cylinderGeometry3 = new Three.CylinderGeometry(0.2,0.2,0.1,8,8,true);\n let cover = new Three.Mesh(cylinderGeometry3,grey);\n cover.position.set(0,0.25,0);\n body.add(cover);\n\n let cubeGeometryBase = new Three.BoxGeometry(0.25,0.05,0.25);\n let base = new Three.Mesh(cubeGeometryBase,grey);\n base.position.set(0,-0.6,0.35);\n body.add(base);\n\n let shape2 = new Three.Shape();\n shape2.moveTo( 0.2,0.45 );\n shape2.lineTo( 0.5,0.5 );\n shape2.lineTo( 0.7,0.5 );\n shape2.lineTo(0.7,0.6);\n shape2.lineTo(0.2,0.6);\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry3 = new Three.ExtrudeGeometry( shape2, extrudeSettings );\n let arm_p1 = new Three.Mesh(geometry3,grey) ;\n arm_p1.rotation.z=Math.PI/2;\n arm_p1.rotation.y=-Math.PI/2;\n arm_p1.position.set(0.05,-0.8,0.875);\n body.add( arm_p1 );\n\n let cylinderGeometry4 = new Three.CylinderGeometry(0.1,0.1,0.1,80,16);\n let arm_p2 = new Three.Mesh(cylinderGeometry4,grey);\n arm_p2.rotation.x+=Math.PI/2;\n arm_p2.position.set(0,-0.02,0.325);\n body.add(arm_p2);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(0.05,0.05,0.14,80,16);\n let arm_p3 = new Three.Mesh(cylinderGeometry5,black);\n arm_p3.rotation.x+=Math.PI/2;\n arm_p3.position.set(0,-0.02,0.325);\n body.add(arm_p3);\n\n let cylinderGeometry6 = new Three.CylinderGeometry(0.025,0.025,0.16,80,16);\n let arm_p3b = new Three.Mesh(cylinderGeometry6,grey);\n arm_p3b.rotation.x+=Math.PI/2;\n arm_p3b.position.set(0,-0.02,0.325);\n body.add(arm_p3b);\n\n let cylinderGeometry7 = new Three.CylinderGeometry(0.026,0.026,0.12,80,16);\n let arm_p4 = new Three.Mesh(cylinderGeometry7,black);\n arm_p4.rotation.z+=Math.PI/2;\n arm_p4.position.set(0,-0.02,0.23);\n body.add(arm_p4);\n\n let cylinderGeometry8 = new Three.CylinderGeometry(0.02,0.02,0.16,80,16);\n let arm_p5 = new Three.Mesh(cylinderGeometry8,grey);\n arm_p5.rotation.z+=Math.PI/2;\n arm_p5.position.set(0,-0.02,0.23);\n body.add(arm_p5);\n\n let joint = new Three.Shape();\n\n // startpoint\n joint.moveTo(0, 0);\n joint.lineTo(0, 0.1);\n joint.lineTo(0.1, 0.1);\n joint.bezierCurveTo(0.05,0.05,0.05,0.05,0.1,0);\n\n let extrudeSettings2 = { depth: 0.1, bevelEnabled: false, bevelSegments: 1, steps: 1, bevelSize: 1, bevelThickness: 1 };\n\n let geometry4 = new Three.ExtrudeGeometry( joint, extrudeSettings2 );\n\n let mesh_1 = new Three.Mesh( geometry4, grey );\n\n mesh_1.position.set(-0.05,0.03,0.15);\n mesh_1.rotation.y+=Math.PI/2;\n mesh_1.rotation.z+=-Math.PI;\n\n let mesh_2 = new Three.Mesh( geometry4, grey );\n mesh_2.position.set(-0.05,-0.07,0.3);\n mesh_2.rotation.y+=Math.PI/2;\n\n body.add(mesh_1);\n body.add(mesh_2);\n\n\n let cylinderGeometry9 = new Three.CylinderGeometry(0.025,0.02,0.3,8,8);\n let antenna_p1 = new Three.Mesh(cylinderGeometry9,black);\n antenna_p1.rotation.x+=Math.PI/2;\n antenna_p1.position.set(0,-0.5,-0.18);\n body.add(antenna_p1);\n\n let cylinderGeometry10 = new Three.CylinderGeometry(0.02,0.015,0.3,8,8);\n let antenna_p2 = new Three.Mesh(cylinderGeometry10,black);\n antenna_p2.rotation.x+=Math.PI/2;\n antenna_p2.position.set(0,-0.5,-0.35);\n body.add(antenna_p2);\n\n let sphere_p1 = new Three.SphereGeometry( 0.015, 8, 8 );\n let antenna_p3 = new Three.Mesh( sphere_p1, black );\n antenna_p3.position.set(0,-0.5,-0.5);\n body.add(antenna_p3);\n\n let sphere_p2 = new Three.SphereGeometry( 0.04, 8, 8 );\n let antenna_p4 = new Three.Mesh( sphere_p2, black );\n antenna_p4.position.set(0,-0.5,0);\n body.add(antenna_p4);\n\n let cylinderGeometry11 = new Three.CylinderGeometry(0.025,0.025,0.1,8,8);\n let antenna_p5 = new Three.Mesh(cylinderGeometry11,black);\n antenna_p5.position.set(0,-0.42,0);\n body.add(antenna_p5);\n video_camera.add(body);\n\n return video_camera;\n}\n\n\nexport default {\n name: 'camera',\n prototype: 'items',\n\n info: {\n tag: ['security', 'metal'],\n title: 'camera',\n description: 'camera',\n image: require('./camera.png')\n },\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let video_cameraMaxLOD = new Three.Object3D();\n video_cameraMaxLOD.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(video_cameraMaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n video_cameraMaxLOD.position.y+= HEIGHT/8 +newAltitude;\n video_cameraMaxLOD.position.z+= DEPTH/2;\n video_cameraMaxLOD.scale.set( DEPTH / deltaZ, HEIGHT / deltaY,WIDTH / deltaX);\n\n /**************** LOD min ***********************/\n\n let video_cameraMinLOD = new Three.Object3D();\n video_cameraMinLOD.add(objectMinLOD.clone());\n\n\n video_cameraMinLOD.position.y+= HEIGHT/8 +newAltitude;\n video_cameraMinLOD.position.z+= DEPTH/2;\n video_cameraMinLOD.scale.set( DEPTH / deltaZ, HEIGHT / deltaY,WIDTH / deltaX);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(video_cameraMaxLOD, 200);\n lod.addLevel(video_cameraMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/bookcase/bookcase.png\";","module.exports = __webpack_public_path__ + \"catalog/items/bookcase/bookTexture3.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/bookcase/bookTexture2.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/bookcase/bookTexture1.jpg\";","import {Record, List, Map, fromJS} from 'immutable';\nimport {MODE_IDLE} from './constants';\nimport {SNAP_MASK} from './utils/snap';\n\nlet safeLoadMapList = (mapList, Model, defaultMap) => {\n return mapList\n ? new Map(mapList).map(m => new Model(m)).toMap()\n : (defaultMap || new Map());\n};\n\n\nexport class Grid extends Record({\n id: '',\n type: '',\n properties: Map()\n}, 'Grid') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {})\n });\n }\n}\n\nexport const DefaultGrids = new Map({\n 'h1': new Grid({\n id: 'h1',\n type: 'horizontal-streak',\n properties: {\n step: 20,\n colors: ['#808080', '#ddd', '#ddd', '#ddd', '#ddd']\n }\n }),\n 'v1': new Grid({\n id: 'v1',\n type: 'vertical-streak',\n properties: {\n step: 20,\n colors: ['#808080', '#ddd', '#ddd', '#ddd', '#ddd']\n }\n })\n});\n\n\nexport class ElementsSet extends Record({\n vertices: new List(),\n lines: new List(),\n holes: new List(),\n areas: new List(),\n items: new List(),\n}, 'ElementsSet') {\n constructor(json = {}) {\n super({\n vertices: new List(json.vertices || []),\n lines: new List(json.lines || []),\n holes: new List(json.holes || []),\n areas: new List(json.areas || []),\n items: new List(json.items || [])\n });\n }\n}\n\nconst sharedAttributes =\n{\n id: '',\n type: '',\n prototype: '',\n name: '',\n misc: new Map(),\n selected: false,\n properties: new Map(),\n visible: true\n};\n\nexport class Vertex extends Record({\n ...sharedAttributes,\n x: -1,\n y: -1,\n prototype: 'vertices',\n lines: new List(),\n areas: new List()\n}, 'Vertex') {\n constructor(json = {}) {\n super({\n ...json,\n lines: new List(json.lines || []),\n areas: new List(json.areas || [])\n });\n }\n}\n\nexport class Line extends Record({\n ...sharedAttributes,\n prototype: 'lines',\n vertices: new List(),\n holes: new List()\n}, 'Line') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {}),\n vertices: new List(json.vertices || []),\n holes: new List(json.holes || []),\n });\n }\n}\n\nexport class Hole extends Record({\n ...sharedAttributes,\n prototype: 'holes',\n offset: -1,\n line: ''\n}, 'Hole') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {})\n });\n }\n}\n\nexport class Area extends Record({\n ...sharedAttributes,\n prototype: 'areas',\n vertices: new List(),\n holes: new List()\n}, 'Area') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {}),\n vertices: new List(json.vertices || [])\n });\n }\n}\n\nexport class Item extends Record({\n ...sharedAttributes,\n prototype: 'items',\n x: 0,\n y: 0,\n rotation: 0\n}, 'Item') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {})\n });\n }\n}\n\nexport class Layer extends Record({\n id: '',\n altitude: 0,\n order: 0,\n opacity: 1,\n name: '',\n visible: true,\n vertices: new Map(),\n lines: new Map(),\n holes: new Map(),\n areas: new Map(),\n items: new Map(),\n selected: new ElementsSet(),\n}, 'Layer') {\n constructor(json = {}) {\n super({\n ...json,\n vertices: safeLoadMapList(json.vertices, Vertex),\n lines: safeLoadMapList(json.lines, Line),\n holes: safeLoadMapList(json.holes, Hole),\n areas: safeLoadMapList(json.areas, Area),\n items: safeLoadMapList(json.items, Item),\n selected: new ElementsSet(json.selected)\n });\n }\n}\n\nexport class Group extends Record({\n ...sharedAttributes,\n prototype: 'groups',\n x: 0,\n y: 0,\n rotation: 0,\n elements: new Map()\n}, 'Group') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {}),\n elements: fromJS(json.elements || {})\n });\n }\n}\n\n\nexport const DefaultLayers = new Map({\n 'layer-1': new Layer({id: 'layer-1', name: 'default'})\n});\n\n\nexport class Scene extends Record({\n unit: 'cm',\n layers: new Map(),\n grids: new Map(),\n selectedLayer: null,\n groups: new Map(),\n width: 3000,\n height: 2000,\n meta: new Map(), //additional info\n guides: new Map()\n}, 'Scene') {\n constructor(json = {}) {\n let layers = safeLoadMapList(json.layers, Layer, DefaultLayers);\n super({\n ...json,\n grids: safeLoadMapList(json.grids, Grid, DefaultGrids),\n layers,\n selectedLayer: layers.first().id,\n groups: safeLoadMapList(json.groups || {}, Group),\n meta: json.meta ? fromJS(json.meta) : new Map(),\n guides: json.guides ? fromJS(json.guides) : new Map({ horizontal: new Map(), vertical: new Map(), circular: new Map() })\n });\n }\n}\n\nexport class CatalogElement extends Record({\n name: '',\n prototype: '',\n info: new Map(),\n properties: new Map(),\n}, 'CatalogElement') {\n constructor(json = {}) {\n super({\n ...json,\n info: fromJS(json.info),\n properties: fromJS(json.properties)\n });\n }\n}\n\nexport class Catalog extends Record({\n ready: false,\n page: 'root',\n path: new List(),\n elements: new Map(),\n}, 'Catalog') {\n constructor(json = {}) {\n let elements = safeLoadMapList(json.elements, CatalogElement);\n super({\n elements,\n ready: !elements.isEmpty()\n });\n }\n\n factoryElement(type, options, initialProperties) {\n if (!this.elements.has(type)) {\n let catList = this.elements.map(element => element.name).toArray();\n throw new Error(`Element ${type} does not exist in catalog ${catList}`);\n }\n\n let element = this.elements.get(type);\n let properties = element.properties.map((value, key) => initialProperties && initialProperties.has(key) ? initialProperties.get(key) : value.get('defaultValue'));\n\n switch (element.prototype) {\n case 'lines':\n return new Line(options).merge({properties});\n\n case 'holes':\n return new Hole(options).merge({properties});\n\n case 'areas':\n return new Area(options).merge({properties});\n\n case 'items':\n return new Item(options).merge({properties});\n\n default:\n throw new Error('prototype not valid');\n }\n }\n}\n\nexport class HistoryStructure extends Record({\n list: new List(),\n first: null,\n last: null\n}, 'HistoryStructure' ){\n constructor( json = {} ){\n super({\n list: fromJS( json.list || [] ),\n first: new Scene( json.scene ),\n last: new Scene( json.last || json.scene )\n });\n }\n}\n\nexport class State extends Record({\n mode: MODE_IDLE,\n scene: new Scene(),\n sceneHistory: new HistoryStructure(),\n catalog: new Catalog(),\n viewer2D: new Map(),\n mouse: new Map({x: 0, y: 0}),\n zoom: 0,\n snapMask: SNAP_MASK,\n snapElements: new List(),\n activeSnapElement: null,\n drawingSupport: new Map(),\n draggingSupport: new Map(),\n rotatingSupport: new Map(),\n errors: new List(),\n warnings: new List(),\n clipboardProperties: new Map(),\n selectedElementsHistory: new List(),\n misc: new Map(), //additional info\n alterate: false\n}, 'State') {\n constructor(json = {}) {\n super({\n ...json,\n scene: new Scene(json.scene),\n sceneHistory: new HistoryStructure(json),\n catalog: new Catalog(json.catalog || {}),\n viewer2D: new Map(json.viewer2D || {}),\n drawingSupport: new Map(json.drawingSupport || {}),\n draggingSupport: new Map(json.draggingSupport || {}),\n rotatingSupport: new Map(json.rotatingSupport || {}),\n misc: json.misc ? fromJS(json.misc) : new Map()\n });\n }\n}\n\n\n\n","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 80;\nconst DEPTH = 80;\nconst HEIGHT = 200;\n\nconst textureLoader = new Three.TextureLoader();\nconst woodMaterial=textureLoader.load(require('./wood.jpg'));\nconst bookTexture1=textureLoader.load(require('./bookTexture1.jpg' ));\nconst bookTexture2=textureLoader.load(require('./bookTexture2.jpg' ));\nconst bookTexture3=textureLoader.load(require('./bookTexture3.jpg' ));\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let bookcase = new Three.Mesh();\n\n //Bookcase\n let backGeometry = new Three.BoxGeometry(0.03,2,0.8);\n let wood = new Three.MeshPhongMaterial({map:woodMaterial});\n let backside = new Three.Mesh(backGeometry,wood);\n backside.position.set(0,1,0);\n bookcase.add(backside);\n\n let sideGeometry = new Three.BoxGeometry(0.3,2,0.03);\n let side1 = new Three.Mesh(sideGeometry,wood);\n side1.position.set(0.15,1,0.4);\n bookcase.add(side1);\n\n let side2 = new Three.Mesh(sideGeometry,wood);\n side2.position.set(0.15,1,-0.4);\n bookcase.add(side2);\n\n let bottomGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let bottomPanel = new Three.Mesh(bottomGeometry,wood);\n bottomPanel.position.set(0.15,2,0);\n bookcase.add(bottomPanel);\n\n let topGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let topPanel = new Three.Mesh(topGeometry,wood);\n topPanel.position.set(0.15,0.015,0);\n bookcase.add(topPanel);\n\n //shelves\n for(let i=1;i<5;i++){\n let shelveGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let shelve = new Three.Mesh(shelveGeometry,wood);\n shelve.position.set(0.15,0.015+i*0.4,0);\n bookcase.add(shelve);\n }\n\n function choiceTexture() {\n\n return (Math.floor(Math.random() * 3))\n\n }\n\n //book\n let bookGeometry = new Three.BoxGeometry(0.24,0.32,0.76);\n\n let bookMaterial =\n [ new Three.MeshLambertMaterial({map:bookTexture1}),\n new Three.MeshLambertMaterial({map:bookTexture2}),\n new Three.MeshLambertMaterial({map:bookTexture3})];\n\n let book1 = new Three.Mesh(bookGeometry,bookMaterial[choiceTexture()]);\n book1.position.set(0.15,0.59,0);\n bookcase.add(book1);\n\n let book2 = new Three.Mesh(bookGeometry,bookMaterial[choiceTexture()]);\n book2.position.set(0.15,0.99,0);\n bookcase.add(book2);\n\n let book3 = new Three.Mesh(bookGeometry,bookMaterial[choiceTexture()]);\n book3.position.set(0.15,0.19,0);\n bookcase.add(book3);\n\n let book4 = new Three.Mesh(bookGeometry,bookMaterial[choiceTexture()]);\n book4.position.set(0.15,1.39,0);\n bookcase.add(book4);\n\n let book5 = new Three.Mesh(bookGeometry,bookMaterial[choiceTexture()]);\n book5.position.set(0.15,1.79,0);\n bookcase.add(book5);\n\n return bookcase\n}\n\nfunction makeObjectMinLOD() {\n\n let bookcase = new Three.Mesh();\n\n let textureLoader = new Three.TextureLoader();\n\n let woodMaterial=textureLoader.load(require('./wood.jpg'));\n\n //Bookcase\n let backGeometry = new Three.BoxGeometry(0.03,2,0.8);\n let wood = new Three.MeshPhongMaterial({map:woodMaterial});\n let backside = new Three.Mesh(backGeometry,wood);\n backside.position.set(0,1,0);\n bookcase.add(backside);\n\n let sideGeometry = new Three.BoxGeometry(0.3,2,0.03);\n let side1 = new Three.Mesh(sideGeometry,wood);\n side1.position.set(0.15,1,0.4);\n bookcase.add(side1);\n\n let side2 = new Three.Mesh(sideGeometry,wood);\n side2.position.set(0.15,1,-0.4);\n bookcase.add(side2);\n\n let bottomGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let bottomPanel = new Three.Mesh(bottomGeometry,wood);\n bottomPanel.position.set(0.15,2,0);\n bookcase.add(bottomPanel);\n\n let topGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let topPanel = new Three.Mesh(topGeometry,wood);\n topPanel.position.set(0.15,0.015,0);\n bookcase.add(topPanel);\n\n //shelves\n for(let i=1;i<5;i++){\n let shelveGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let shelve = new Three.Mesh(shelveGeometry,wood);\n shelve.position.set(0.15,0.015+i*0.4,0);\n bookcase.add(shelve);\n }\n\n return bookcase\n\n}\n\nexport default {\n name: 'bookcase',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood'],\n title: 'bookcase',\n description: 'bookcase',\n image: require('./bookcase.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n\n\n return (\n \n \n \n {element.type}\n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** lod max ******************/\n\n let bookcaseMaxLOD=new Three.Object3D();\n bookcaseMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(bookcaseMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n bookcaseMaxLOD.rotation.y+=Math.PI/2;\n bookcaseMaxLOD.position.y+= newAltitude;\n bookcaseMaxLOD.position.z+= WIDTH/2;\n bookcaseMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**************** lod min ******************/\n\n let bookcaseMinLOD=new Three.Object3D();\n bookcaseMinLOD.add(objectMinLOD.clone());\n bookcaseMinLOD.rotation.y+=Math.PI/2;\n bookcaseMinLOD.position.y+= newAltitude;\n bookcaseMinLOD.position.z+= WIDTH/2;\n bookcaseMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(bookcaseMaxLOD, 200);\n lod.addLevel(bookcaseMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n\n}\n\n};\n\n\n","module.exports = __webpack_public_path__ + \"catalog/items/blackboard/blackboard.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 300;\nconst DEPTH = 20;\nconst HEIGHT = 150;\n\nexport default {\n name: \"blackboard\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"Blackboard\",\n description: \"Blackboard\",\n image: require('./blackboard.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n //colors\n var grey2 = new Three.MeshLambertMaterial( {color: 0x000000} );\n var grey = new Three.MeshLambertMaterial( {color: 0xCCCCCC} );\n var grey2 = new Three.MeshLambertMaterial( {color: 0x414449} );\n\n\n\n var lavagna = new Three.Object3D();\n\n var roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=8;\n let height=4;\n let radius=0.25;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n var extrudeSettings = {\n steps: 1,\n depth: 0.2,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n var geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n var mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(0,1.2,0);\n lavagna.add(mesh);\n\n var geometry2 = new Three.BoxGeometry(width-width/11,height-height/8,.2);\n var mesh2 = new Three.Mesh( geometry2, grey2 ) ;\n mesh2.position.set(4,3.2,0.07);\n lavagna.add(mesh2);\n\n var geometry3 = new Three.BoxGeometry(width,height/50,.33);\n var mesh3 = new Three.Mesh( geometry3, grey ) ;\n mesh3.position.set(4,1.0,-0.095);\n lavagna.add(mesh3);\n\n var geometry4 = new Three.BoxGeometry(width,height/50,.25);\n var mesh4 = new Three.Mesh( geometry4, grey ) ;\n mesh4.rotation.x+=Math.PI/2;\n mesh4.position.set(4,1.1,0.03);\n lavagna.add(mesh4);\n\n var mesh5 = new Three.Mesh( geometry4, grey ) ;\n mesh5.rotation.x+=Math.PI/2;\n mesh5.position.set(4,1.1,-0.22);\n lavagna.add(mesh5);\n\n let value = new Three.Box3().setFromObject(lavagna);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lavagna, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lavagna.add(bbox);\n }\n\n\n lavagna.position.y+=-HEIGHT/3.2 + newAltitude;\n lavagna.position.x+=-WIDTH/2;\n lavagna.position.z+=DEPTH/4;\n\n lavagna.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n return Promise.resolve(lavagna);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/bench/bench.png\";","module.exports = __webpack_public_path__ + \"catalog/items/bench/wood.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 150;\nconst DEPTH = 50;\nconst HEIGHT = 50;\nconst RADIUS = 10;\n\nconst grey = new Three.MeshLambertMaterial({ color: 0xC0C0C0 });\nconst black = new Three.MeshLambertMaterial({ color: 0x00000 });\nconst textureLoader = new Three.TextureLoader();\nconst woodTexture = textureLoader.load(require('./wood.jpg'));\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let bench = new Three.Mesh();\n\n // axis\n let axis1 = new Three.Mesh(new Three.BoxGeometry(10, 0.5, 0.5), grey);\n axis1.position.set(0, 0, 0);\n bench.add(axis1);\n\n let axi2 = new Three.Mesh(new Three.BoxGeometry(10, 0.5, 0.5), grey);\n axi2.position.set(0, 0, 3);\n bench.add(axi2);\n\n //beams\n for (let lx = -5; lx <= 5; lx += 5) {\n let beam = new Three.Mesh(new Three.BoxGeometry(0.5, 0.5, 3.5), grey);\n beam.position.set(lx, 0, 1.5);\n bench.add(beam);\n }\n\n //legs\n for (let gx = -5; gx <= 5; gx += 5) {\n for (let gz = 0; gz <= 3; gz += 3) {\n let leg = new Three.Mesh(new Three.BoxGeometry(3, 0.5, 0.5), grey);\n leg.rotation.z = 0.5 * Math.PI;\n leg.position.set(gx, -1.5, gz);\n bench.add(leg);\n\n // foot\n let foot = new Three.Mesh(new Three.BoxGeometry(0.5, 0.25, 0.5), black);\n foot.rotation.z = 0.5 * Math.PI;\n foot.position.x = -1.625;\n leg.add(foot);\n }\n }\n\n // wood axis\n for (let z = 0; z <= 3; z += 0.75) {\n let woodAxis = new Three.Mesh(new Three.BoxGeometry(12, 0.25, 0.5), new Three.MeshPhongMaterial({ map: woodTexture }));\n woodAxis.position.set(0, 0.5, z);\n bench.add(woodAxis);\n }\n\n //nuts\n for (let z = 0; z <= 3; z += 0.75) {\n for (let dy = -5; dy <= 5; dy += 5) {\n let nut = new Three.Mesh(new Three.CylinderGeometry(0.1, 0.1, 0.8, 6), black);\n nut.position.set(dy, 0.3, z);\n bench.add(nut);\n }\n }\n\n return bench;\n}\n\nfunction makeObjectMinLOD() {\n\n let bench = new Three.Mesh();\n // axis\n let axis1 = new Three.Mesh(new Three.BoxGeometry(10, 0.5, 0.5), grey);\n axis1.position.set(0, 0, 0);\n bench.add(axis1);\n\n let axi2 = new Three.Mesh(new Three.BoxGeometry(10, 0.5, 0.5), grey);\n axi2.position.set(0, 0, 3);\n bench.add(axi2);\n\n //beams\n for (let lx = -5; lx <= 5; lx += 5) {\n let beam = new Three.Mesh(new Three.BoxGeometry(0.5, 0.5, 3.5), grey);\n beam.position.set(lx, 0, 1.5);\n bench.add(beam);\n }\n\n //legs\n for (let gx = -5; gx <= 5; gx += 5) {\n for (let gz = 0; gz <= 3; gz += 3) {\n let leg = new Three.Mesh(new Three.BoxGeometry(3, 0.5, 0.5), grey);\n leg.rotation.z = 0.5 * Math.PI;\n leg.position.set(gx, -1.5, gz);\n bench.add(leg);\n\n }\n }\n\n // wood axis\n for (let z = 0; z <= 3; z += 0.75) {\n let woodAxis = new Three.Mesh(new Three.BoxGeometry(12, 0.25, 0.5), new Three.MeshPhongMaterial({ map: woodTexture }));\n woodAxis.position.set(0, 0.5, z);\n bench.add(woodAxis);\n }\n\n return bench;\n}\n\nexport default {\n name: 'bench',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood', 'metal'],\n title: 'bench',\n description: 'bench',\n image: require('./bench.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n let textRotation = Math.sin(angle * Math.PI / 180) < 0 ? 180 : 0;\n let rect_style = { stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce' };\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.getIn(['altitude', 'length']);\n\n /************ lod max *****************/\n let benchMaxLOD = new Three.Object3D();\n benchMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(benchMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n benchMaxLOD.position.y += HEIGHT + newAltitude;\n benchMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n\n /************ lod min *****************/\n\n let benchMinLOD = new Three.Object3D();\n benchMinLOD.add(objectMinLOD.clone());\n benchMinLOD.position.y += HEIGHT + newAltitude;\n benchMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(benchMaxLOD, 200);\n lod.addLevel(benchMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/balcony/balcony.png\";","module.exports = __webpack_public_path__ + \"catalog/items/balcony/bricks.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/balcony/painted.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst PI_2 = Math.PI / 2;\nconst paintedtexture = require('./painted.jpg');\nconst brickTexture = require('./bricks.jpg');\nconst scale = 100;\n\nlet textureLoader = new Three.TextureLoader();\ntextureLoader.setPath('./');\nlet mat = textureLoader.load(paintedtexture);\nlet mat2 = textureLoader.load(brickTexture);\n\nfunction makeObject(newWidth, newHeight, newDepth) {\n\n let mat3 = textureLoader.load( brickTexture, ( texture ) => {\n texture.wrapS = texture.wrapT = Three.RepeatWrapping;\n texture.offset.set( 0, 0 );\n texture.repeat.set( ~~( newWidth / scale ), ~~( newHeight / scale ) );\n });\n\n let balcony = new Three.Mesh();\n //base\n let cubeGeometryBase = new Three.BoxGeometry(newWidth, newHeight / 10, newDepth);\n let cubeMaterial = new Three.MeshLambertMaterial({ map: mat });\n let cubeMaterial2 = new Three.MeshLambertMaterial({ map: mat2 });\n let cubeMaterial3 = new Three.MeshLambertMaterial({ map: mat3 });\n\n let p1 = new Three.Mesh(cubeGeometryBase, cubeMaterial);\n\n let cubeGeometryBase2 = new Three.BoxGeometry(newWidth, newHeight / 10, newDepth);\n\n let p2 = new Three.Mesh(cubeGeometryBase2, cubeMaterial3);\n p2.position.set(0, newHeight / 2, newDepth / 2);\n p2.rotation.x += PI_2;\n\n let cubeGeometryBase3 = new Three.BoxGeometry(newDepth, newHeight / 10, newDepth);\n let p3 = new Three.Mesh(cubeGeometryBase3, cubeMaterial2);\n p3.position.set(newWidth / 2, newHeight / 2, 0);\n p3.rotation.z += PI_2;\n p3.rotation.x += PI_2;\n\n let p4 = new Three.Mesh(cubeGeometryBase3, cubeMaterial2);\n p4.position.set(-newWidth / 2, newHeight / 2, 0);\n p4.rotation.z += PI_2;\n p4.rotation.x += PI_2;\n\n let cubeGeometryBase5 = new Three.BoxGeometry(newWidth + newHeight / 5, newHeight / 5, newDepth / 10);\n\n let p5 = new Three.Mesh(cubeGeometryBase5, cubeMaterial);\n p5.position.set(0, newHeight + newHeight / 32, newDepth / 2);\n p5.rotation.x += PI_2;\n\n let cubeGeometryBase6 = new Three.BoxGeometry(newDepth, newHeight / 5, newDepth / 10);\n let p6 = new Three.Mesh(cubeGeometryBase6, cubeMaterial);\n p6.position.set(newWidth / 2, newHeight + newHeight / 32, 0);\n p6.rotation.z += PI_2;\n p6.rotation.x += PI_2;\n\n let p7 = new Three.Mesh(cubeGeometryBase6, cubeMaterial);\n p7.position.set(-newWidth / 2, newHeight + newHeight / 32, 0);\n p7.rotation.z += PI_2;\n p7.rotation.x += PI_2;\n\n return balcony.add(p1,p2,p3,p4,p5,p6,p7);\n}\n\nexport default {\n name: 'balcony',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'metal'],\n title: 'balcony',\n description: 'balcony',\n image: require('./balcony.png')\n },\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 500,\n unit: 'cm'\n }\n },\n depth: {\n label: 'depth',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n patternColor: {\n label: '2D color',\n type: 'color',\n defaultValue: '#f5f4f4'\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.getIn(['width', 'length']);\n let newDepth = element.properties.getIn(['depth', 'length']);\n let fillValue = element.selected ? '#99c3fb' : element.properties.get('patternColor');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.name}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.getIn(['width', 'length']);\n let newDepth = element.properties.getIn(['depth', 'length']);\n let newHeight = element.properties.getIn(['height', 'length']);\n let newAltitude = element.properties.getIn(['altitude', 'length']);\n\n let balcony = new Three.Object3D();\n balcony.add(makeObject(newWidth, newHeight, newDepth));\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(balcony, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n balcony.add(bbox);\n }\n\n balcony.position.y += newHeight / 10 + newAltitude;\n return Promise.resolve(balcony);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/armchairs/armchairs.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 60;\nconst DEPTH = 60;\nconst HEIGHT = 100;\n\nlet greyMaterial = new Three.MeshLambertMaterial({color: 0xC0C0C0});\ngreyMaterial.side = Three.DoubleSide;\nlet greenMaterial = new Three.MeshLambertMaterial({color: 0x008250});\n\n\nfunction makeArmchairMaxLOD()\n{\n let armchair = new Three.Object3D();\n let foot = new Three.Mesh();\n\n //armchair base\n let g_base_foot = new Three.BoxGeometry(0.3, 0.05, 0.4);\n let m_base_foot1 = new Three.Mesh(g_base_foot, greyMaterial);\n m_base_foot1.position.set(0, 0.1, 0.1);\n foot.add(m_base_foot1);\n\n let g_base_foot2 = new Three.CylinderGeometry(0.055, 0.055, 0.35, 20);\n let m_base_foot2 = new Three.Mesh(g_base_foot2, greyMaterial);\n m_base_foot2.position.set(0, 0.25, 0.15);\n foot.add(m_base_foot2);\n\n armchair.add(foot);\n\n //seat\n let seat = new Three.Mesh();\n\n let extrusionSettings = {\n depth: 0.65,\n bevelEnabled: false,\n bevelSegments: 2,\n steps: 10,\n bevelSize: 1,\n bevelThickness: 1\n };\n\n let shape_sed = new Three.Shape();\n shape_sed.moveTo(0, 0);\n shape_sed.lineTo(0, 0.05);\n shape_sed.quadraticCurveTo(0, 0.1, -0.02, 0.1);\n shape_sed.lineTo(-0.6, 0.1);\n shape_sed.quadraticCurveTo(-0.6, 0.1, -0.6, 0.07);\n shape_sed.lineTo(-0.6, 0);\n\n let g_sitting = new Three.ExtrudeGeometry(shape_sed, extrusionSettings);\n let sitting = new Three.Mesh(g_sitting, greenMaterial);\n\n sitting.rotation.y = Math.PI / 2;\n sitting.rotation.z = Math.PI / 3.5;\n sitting.position.set(-0.325, .905, -0.3);\n seat.add(sitting);\n\n //back armchair\n let shape_sc = new Three.Shape();\n shape_sc.moveTo(0, 0);\n shape_sc.lineTo(0, 0.1);\n shape_sc.quadraticCurveTo(-0.5, 0.07, -0.97, 0.1);\n shape_sc.quadraticCurveTo(-1, 0.1, -1, 0.07);\n shape_sc.lineTo(-1, 0);\n shape_sc.quadraticCurveTo(-0.5, -0.03, 0, 0);\n\n let g_back = new Three.ExtrudeGeometry(shape_sc, extrusionSettings);\n let back = new Three.Mesh(g_back, greenMaterial);\n\n back.rotation.z = -105 * Math.PI / 180;\n back.rotation.y = -Math.PI / 2;\n back.position.set(0.325, 0.52, 0.125);\n seat.add(back);\n\n let g_asse_rotaz2 = new Three.CylinderGeometry(0.06, 0.06, 0.8, 32, 32, true);\n let asse_rotaz2 = new Three.Mesh(g_asse_rotaz2, greyMaterial);\n\n asse_rotaz2.rotation.z = -Math.PI / 2;\n asse_rotaz2.position.set(0, 0.45, 0.15);\n seat.add(asse_rotaz2);\n\n let roundedRectShape = new Three.Shape();\n\n let x = 0;\n let y = 0;\n let width = .7;\n let height = .75;\n let radius = 0.25;\n\n roundedRectShape.moveTo(x, y + radius);\n roundedRectShape.lineTo(x, y + height - radius);\n roundedRectShape.quadraticCurveTo(x, y + height, x + radius, y + height);\n roundedRectShape.lineTo(x + width - radius, y + height);\n roundedRectShape.lineTo(x + width, y + radius);\n roundedRectShape.quadraticCurveTo(x + width, y, x + width - radius, y);\n roundedRectShape.lineTo(x + radius, y);\n roundedRectShape.quadraticCurveTo(x, y, x, y + radius);\n\n let extrudeSettings = {\n steps: 2,\n depth: .07,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry2 = new Three.ExtrudeGeometry(roundedRectShape, extrudeSettings);\n let armrest_1 = new Three.Mesh(geometry2, greyMaterial);\n armrest_1.rotation.y = Math.PI / 2;\n armrest_1.rotation.z = .9 * Math.PI;\n armrest_1.position.set(-0.4, 1, -0.4);\n seat.add(armrest_1);\n\n let armrest_2 = armrest_1.clone();\n armrest_2.position.x += .73;\n seat.add(armrest_2);\n armchair.add(seat);\n\n return armchair\n}\n\nfunction makeArmchairMinLOD()\n{\n let armchair = new Three.Object3D();\n let foot = new Three.Mesh();\n\n //armchair base\n let g_base_foot = new Three.BoxGeometry(0.3, 0.05, 0.4);\n let base_foot1 = new Three.Mesh(g_base_foot, greyMaterial);\n base_foot1.position.set(0, 0.1, 0.1);\n foot.add(base_foot1);\n\n let g_base_foot2 = new Three.CylinderGeometry(0.055, 0.055, 0.35, 8, 8);\n let base_foot2 = new Three.Mesh(g_base_foot2, greyMaterial);\n base_foot2.position.set(0, 0.25, 0.15);\n foot.add(base_foot2);\n\n armchair.add(foot);\n\n //seat\n let seat = new Three.Mesh();\n\n let extrusionSettings = {\n depth: 0.65,\n bevelEnabled: false,\n bevelSegments: 2,\n steps: 10,\n bevelSize: 1,\n bevelThickness: 1\n };\n\n let shape_sed = new Three.Shape();\n shape_sed.moveTo(0, 0);\n shape_sed.lineTo(0, 0.05);\n shape_sed.quadraticCurveTo(0, 0.1, -0.02, 0.1);\n shape_sed.lineTo(-0.6, 0.1);\n shape_sed.quadraticCurveTo(-0.6, 0.1, -0.6, 0.07);\n shape_sed.lineTo(-0.6, 0);\n\n let g_sitting = new Three.ExtrudeGeometry(shape_sed, extrusionSettings);\n let sitting = new Three.Mesh(g_sitting, greenMaterial);\n\n sitting.rotation.y = Math.PI / 2;\n sitting.rotation.z = Math.PI / 3.5;\n sitting.position.set(-0.325, .905, -0.3);\n seat.add(sitting);\n\n //back armchair\n let shape_sc = new Three.Shape();\n shape_sc.moveTo(0, 0);\n shape_sc.lineTo(0, 0.1);\n shape_sc.quadraticCurveTo(-0.5, 0.07, -0.97, 0.1);\n shape_sc.quadraticCurveTo(-1, 0.1, -1, 0.07);\n shape_sc.lineTo(-1, 0);\n shape_sc.quadraticCurveTo(-0.5, -0.03, 0, 0);\n\n let g_back = new Three.ExtrudeGeometry(shape_sc, extrusionSettings);\n let back = new Three.Mesh(g_back, greenMaterial);\n\n back.rotation.z = -105 * Math.PI / 180;\n back.rotation.y = -Math.PI / 2;\n back.position.set(0.325, 0.52, 0.125);\n seat.add(back);\n\n let g_asse_rotaz2 = new Three.CylinderGeometry(0.06, 0.06, 0.8, 8, 8, true);\n let asse_rotaz2 = new Three.Mesh(g_asse_rotaz2, greyMaterial);\n\n asse_rotaz2.rotation.z = -Math.PI / 2;\n asse_rotaz2.position.set(0, 0.45, 0.15);\n seat.add(asse_rotaz2);\n\n let roundedRectShape = new Three.Shape();\n\n let x = 0;\n let y = 0;\n let width = .7;\n let height = .75;\n let radius = 0.25;\n\n roundedRectShape.moveTo(x, y + radius);\n roundedRectShape.lineTo(x, y + height - radius);\n roundedRectShape.quadraticCurveTo(x, y + height, x + radius, y + height);\n roundedRectShape.lineTo(x + width - radius, y + height);\n roundedRectShape.lineTo(x + width, y + radius);\n roundedRectShape.quadraticCurveTo(x + width, y, x + width - radius, y);\n roundedRectShape.lineTo(x + radius, y);\n roundedRectShape.quadraticCurveTo(x, y, x, y + radius);\n\n let extrudeSettings = {\n steps: 2,\n depth: .07,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry2 = new Three.ExtrudeGeometry(roundedRectShape, extrudeSettings);\n let armrest_1 = new Three.Mesh(geometry2, greyMaterial);\n armrest_1.rotation.y = Math.PI / 2;\n armrest_1.rotation.z = .9 * Math.PI;\n armrest_1.position.set(-0.4, 1, -0.4);\n seat.add(armrest_1);\n\n let armrest_2 = armrest_1.clone();\n armrest_2.position.x += .73;\n seat.add(armrest_2);\n armchair.add(seat);\n\n return armchair\n}\n\nexport default {\n name: 'armchairs',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood'],\n title: 'armchairs',\n description: 'armchairs',\n image: require('./armchairs.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n seat: {\n label: 'seats',\n type: 'number',\n defaultValue: 1\n },\n flip: {\n label: 'flip',\n type: 'checkbox',\n defaultValue: false,\n values: {\n 'none': false,\n 'yes': true\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let rect_style ={stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n let text_style ={textAnchor: 'middle', fontSize: '11px', fill: '#FF0000'};\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let seats = element.properties.get('seat');\n let flip = element.properties.get('flip');\n\n let seatsArray = new Array(seats);\n\n let eps = -1.7;\n\n for (let ind = 0; ind < seats; ind++)\n seatsArray[ind]=\n\n return (\n \n {seatsArray}\n \n {element.type}\n \n \n );\n\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n let seats = element.properties.get('seat');\n let flip = element.properties.get('flip');\n let newWidth = WIDTH;\n let newDepth = DEPTH;\n\n let armchairsMaxLOD = new Three.Object3D();\n let seatArray = new Array(seats);\n\n function setArmchairsPos(listObject,seats) {\n\n newWidth = WIDTH * seats;\n newDepth = DEPTH + (DEPTH / 8 * seats / 2);\n seatArray = listObject;\n\n for (let ind = 0; ind < seats; ind++) {\n\n seatArray[ind].position.x = (ind - Math.floor(seats / 2)) * -.8;\n\n if(flip)\n seatArray[ind].position.z = (ind - Math.floor(seats / 2)) * -.085;\n else\n seatArray[ind].position.z = (ind - Math.floor(seats / 2)) * +.085;\n\n }\n\n }\n\n function makeSeriesArmchair2(seats) {\n\n let chair = makeArmchairMaxLOD().clone();\n for (let ind = 0; ind < seats; ind++)\n seatArray[ind] = chair.clone();\n\n return seatArray\n\n }\n\n let armchairsObject2 = makeSeriesArmchair2(seats);\n setArmchairsPos(armchairsObject2,seats);\n\n for(let i=0; i -.36; i-=.005) {\n\n let gridHorizontalGeometry = new Three.BoxGeometry(.001, .025, .705);\n let gridHorizontal = new Three.Mesh(gridHorizontalGeometry, darkGrey);\n gridHorizontal.position.set(i,j,.5);\n gridHorizontal.rotation.z+=Math.PI/4;\n air_conditioner.add(gridHorizontal);\n j-=.005\n }\n\n for (let k = .15; k < .87; k+=.05) {\n let gridVerticalGeometry = new Three.BoxGeometry(.079, .025, .005);\n let gridVertical = new Three.Mesh(gridVerticalGeometry, darkGrey);\n gridVertical.position.set(-.324,1.148,k);\n gridVertical.rotation.z+=Math.PI/4;\n air_conditioner.add(gridVertical);\n }\n\n\n let roundedRectShape2 = new Three.Shape();\n\n let x2=0;\n let y2=0;\n let width2=.2;\n let height2=.4;\n let radius2=0.15;\n\n roundedRectShape2.moveTo( x2, y2 );\n roundedRectShape2.lineTo( x2 + width2, y2);\n roundedRectShape2.quadraticCurveTo( x2 + width2 + radius2, y2 + height2, x2 + width2/2, y2 + height2 );\n roundedRectShape2.lineTo( x2 + width2/2, y2+height2 );\n roundedRectShape2.quadraticCurveTo( x2 + width2 + radius2, y2 + height2/4, x2 , y2 );\n\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let frontCoverGeometry = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let frontCover = new Three.Mesh( frontCoverGeometry, grey) ;\n\n frontCover.position.set(-.2,1.1,0);\n frontCover.rotation.z+=Math.PI;\n air_conditioner.add(frontCover);\n\n let roundedRectShape3 = new Three.Shape();\n\n let x3=0;\n let y3=0;\n let width3=.1;\n let height3=.1;\n let radius3=0.15;\n\n roundedRectShape3.moveTo( x3, y3 );\n roundedRectShape3.quadraticCurveTo( x3 - width3/2 + radius3/2, y3 - height3, x3 + width3, y3);\n roundedRectShape3.lineTo( x3 + width3, y3);\n roundedRectShape3.quadraticCurveTo( x3 + width3/2 + radius3/2, y3 + 2 * height3, x3 + width3/2, y3 + height3 );\n roundedRectShape3.lineTo( x3 + width3/2, y3 + height3 );\n roundedRectShape3.quadraticCurveTo( x3 + width3/4, y3 + height3/6, x3 , y3 );\n\n let extrudeSettings3 = {\n steps: 2,\n depth: .1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let flapSupportGeometry = new Three.ExtrudeGeometry( roundedRectShape3, extrudeSettings3 );\n let flapLeft = new Three.Mesh( flapSupportGeometry, darkGrey ) ;\n\n flapLeft.position.set(-.27,.62,0.1);\n flapLeft.rotation.y+=Math.PI;\n flapLeft.rotation.z-=Math.PI/9;\n air_conditioner.add(flapLeft);\n\n let flapRight = new Three.Mesh( flapSupportGeometry, darkGrey ) ;\n\n flapRight.position.set(-.27,.62,1);\n flapRight.rotation.y+=Math.PI;\n flapRight.rotation.z-=Math.PI/9;\n air_conditioner.add(flapRight);\n\n let points2 = [];\n\n points2.push( new Three.Vector3(.5, 0));\n points2.push( new Three.Vector3(.5, 0));\n points2.push( new Three.Vector3(.5, .8));\n points2.push( new Three.Vector3(.5, .8));\n\n let flapGeometry = new Three.LatheGeometry( points2, 200, Math.PI/2, Math.PI/16 );\n let flap1 = new Three.Mesh( flapGeometry, darkGrey );\n\n flap1.position.set(-.4,.18,.9);\n flap1.rotation.z+=Math.PI/2;\n flap1.rotation.y+=-Math.PI/2;\n\n air_conditioner.add(flap1);\n\n let flap2 = new Three.Mesh( flapGeometry, darkGrey );\n\n flap2.position.set(-.4,.15,.9);\n flap2.rotation.z+=Math.PI/2;\n flap2.rotation.y+=-Math.PI/2;\n\n air_conditioner.add(flap2);\n\n return air_conditioner\n}\n\nfunction makeObjectMinLOD() {\n\n let air_conditioner = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=.15;\n let height=.6;\n let radius=0.15;\n\n roundedRectShape.moveTo( x, y );\n roundedRectShape.lineTo( x + width, y);\n roundedRectShape.lineTo( x + width + radius, y + radius);\n roundedRectShape.quadraticCurveTo( x + width + radius, y + height, x + width/2, y + height );\n roundedRectShape.lineTo( x + width/2, y+height );\n roundedRectShape.lineTo( x, y + height) ;\n\n\n let extrudeSettings = {\n steps: 2,\n depth: 1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let bodyGeometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let body = new Three.Mesh( bodyGeometry, grey );\n\n body.position.set(-.11,1.2,0);\n body.rotation.z+=Math.PI;\n air_conditioner.add(body);\n\n let roundedRectShape2 = new Three.Shape();\n\n let x2=0;\n let y2=0;\n let width2=.2;\n let height2=.4;\n let radius2=0.15;\n\n roundedRectShape2.moveTo( x2, y2 );\n roundedRectShape2.lineTo( x2 + width2, y2);\n roundedRectShape2.quadraticCurveTo( x2 + width2 + radius2, y2 + height2, x2 + width2/2, y2 + height2 );\n roundedRectShape2.lineTo( x2 + width2/2, y2+height2 );\n roundedRectShape2.quadraticCurveTo( x2 + width2 + radius2, y2 + height2/4, x2 , y2 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let frontCoverGeometry = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let frontCover = new Three.Mesh( frontCoverGeometry, grey) ;\n\n frontCover.position.set(-.2,1.1,0);\n frontCover.rotation.z+=Math.PI;\n air_conditioner.add(frontCover);\n\n return air_conditioner\n}\n\nexport default {\n name: 'conditioner',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'metal'],\n title: 'air conditioner',\n description: 'air conditioner',\n image: require('./air_conditioner.png')\n },\n properties: {\n altitude: {\n label: 'quota',\n type: 'length-measure',\n defaultValue: {\n length: 220,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /*************** lod max *******************/\n\n let air_conditionerMaxLOD = new Three.Object3D();\n air_conditionerMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(air_conditionerMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n air_conditionerMaxLOD.position.x+= WIDTH/2.2;\n air_conditionerMaxLOD.position.z+= DEPTH/1.2;\n air_conditionerMaxLOD.position.y+= newAltitude;\n air_conditionerMaxLOD.rotation.y+= -Math.PI/2;\n air_conditionerMaxLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX/1.4);\n\n\n /*************** lod min *******************/\n\n let air_conditionerMinLOD = new Three.Object3D();\n air_conditionerMinLOD.add(objectMinLOD.clone());\n air_conditionerMinLOD.position.x+= WIDTH/2.2;\n air_conditionerMinLOD.position.z+= DEPTH/1.2;\n air_conditionerMinLOD.position.y+= newAltitude;\n air_conditionerMinLOD.rotation.y+= -Math.PI/2;\n air_conditionerMinLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX/1.4);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(air_conditionerMaxLOD, 200);\n lod.addLevel(air_conditionerMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/holes/window/texture.png\";","module.exports = __webpack_public_path__ + \"catalog/holes/window/window.obj\";","module.exports = __webpack_public_path__ + \"catalog/holes/window/window.mtl\";","module.exports = __webpack_public_path__ + \"catalog/holes/window/window.png\";","import React from 'react';\nimport * as Three from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\nimport path from 'path';\n\nlet cached3DWindow = null;\n\nexport default {\n name: \"window\",\n prototype: \"holes\",\n\n info: {\n title: \"window\",\n tag: ['window'],\n description: \"Window\",\n image: require('./window.png')\n },\n\n properties: {\n width: {\n label: \"Width\",\n type: \"length-measure\",\n defaultValue: {\n length: 90\n }\n },\n height: {\n label: \"Height\",\n type: \"length-measure\",\n defaultValue: {\n length: 100\n }\n },\n altitude: {\n label: \"Altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 90\n }\n },\n thickness: {\n label: \"Thickness\",\n type: \"length-measure\",\n defaultValue: {\n length: 10\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n const STYLE_HOLE_BASE = {stroke: \"#000\", strokeWidth: \"3px\", fill: \"#000\"};\n const STYLE_HOLE_SELECTED = {stroke: \"#0096fd\", strokeWidth: \"3px\", fill: \"#0096fd\", cursor: \"move\"};\n //let line = layer.lines.get(hole.line);\n //let epsilon = line.properties.get('thickness') / 2;\n\n let epsilon = 3;\n\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let length = element.properties.get('width').get('length');\n return (\n \n \n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n let onLoadItem = (object) => {\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n\n object.scale.set(width / initialWidth, height / initialHeight,\n thickness / initialThickness);\n\n return object;\n };\n\n if(cached3DWindow) {\n return Promise.resolve(onLoadItem(cached3DWindow.clone()));\n }\n\n let mtl = require('./window.mtl');\n let obj = require('./window.obj');\n let img = require('./texture.png');\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cached3DWindow = object;\n return onLoadItem(cached3DWindow.clone())\n })\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/window-curtain/texture.png\";","module.exports = __webpack_public_path__ + \"catalog/holes/window-curtain/window.obj\";","module.exports = __webpack_public_path__ + \"catalog/holes/window-curtain/window.mtl\";","module.exports = __webpack_public_path__ + \"catalog/holes/window-curtain/window-curtain.jpg\";","import React from 'react';\nimport * as Three from 'three';\nimport { loadObjWithMaterial } from '../../utils/load-obj';\nimport path from 'path';\n\nlet cached3DWindow = null;\n\nconst STYLE_HOLE_BASE = { stroke: '#000', strokeWidth: '3px', fill: '#000' };\nconst STYLE_HOLE_SELECTED = { stroke: '#0096fd', strokeWidth: '3px', fill: '#0096fd', cursor: 'move' };\nconst EPSILON = 3;\n\nexport default {\n name: 'window-curtain',\n prototype: 'holes',\n\n info: {\n tag: ['Finestre'],\n title: 'Curtain window',\n description: 'Curtain window',\n image: require('./window-curtain.jpg')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 90\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 100\n }\n },\n altitude: {\n label: 'altitudine',\n type: 'length-measure',\n defaultValue: {\n length: 90\n }\n },\n thickness: {\n label: 'spessore',\n type: 'length-measure',\n defaultValue: {\n length: 10\n }\n },\n flip: {\n label: 'flip',\n type: 'checkbox',\n defaultValue: 'none',\n values: {\n 'none': 'none',\n 'yes': 'yes'\n }\n },\n },\n\n render2D: function (element, layer, scene) {\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${-EPSILON} L${holeWidth} ${-EPSILON} L${holeWidth} ${EPSILON} L${0} ${EPSILON} z`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let length = element.properties.get('width').get('length');\n return (\n \n \n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let flip = element.properties.get('flip');\n\n let onLoadItem = (object) => {\n\n let window = new Three.Object3D();\n\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n\n object.scale.set(width / initialWidth, height / initialHeight,\n thickness / 2 / initialThickness);\n\n window.add(object);\n window.add(createTenda());\n\n if (flip === true)\n window.rotation.y += Math.PI;\n\n return window;\n };\n\n if (cached3DWindow) {\n return Promise.resolve(onLoadItem(cached3DWindow.clone()));\n }\n\n let mtl = require('./window.mtl');\n let obj = require('./window.obj');\n let img = require('./texture.png');\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cached3DWindow = object;\n return onLoadItem(cached3DWindow.clone());\n });\n\n function createTenda() {\n\n let radialWave = function (u, v) {\n let r = 10;\n let x = Math.sin(u) * 3 * r;\n let z = Math.sin(v / 2) * 2 * r;\n let y = (Math.sin(u * 2 * Math.PI) + Math.cos(v * 2 * Math.PI)) * .5;\n\n return new Three.Vector3(x, y, z);\n };\n\n //color\n let white = new Three.MeshLambertMaterial({ color: 0xeae6ca });\n\n let Tenda = new Three.Object3D();\n\n let mesh = createMesh(new Three.ParametricGeometry(radialWave, 20, 20));\n mesh.rotation.x += Math.PI / 2;\n mesh.rotation.y += Math.PI / 2;\n mesh.position.y += 3.1;\n mesh.position.x += .05;\n mesh.scale.set(.125, .125, .125);\n\n let mesh2 = mesh.clone();\n mesh2.rotation.x += Math.PI;\n mesh2.position.set(1.4, 0, 0.06);\n\n Tenda.add(mesh);\n Tenda.add(mesh2);\n\n for (let i = -.7; i > -3.4; i -= .45) {\n let geometry = new Three.TorusGeometry(.08, .016, 32, 32, 2 * Math.PI);\n let torus = new Three.Mesh(geometry, white);\n\n if (i == -1.15)\n torus.position.set(i, 3.14, .045);\n else if (i == -2.5)\n torus.position.set(i, 3.14, -.01);\n else\n torus.position.set(i, 3.14, .04);\n torus.rotation.y += Math.PI / 2;\n Tenda.add(torus);\n }\n\n let geometryAsta = new Three.CylinderGeometry(0.02, 0.02, 1.25, 32);\n let asta = new Three.Mesh(geometryAsta, white);\n asta.position.set(-1.1, 3.18, 0.02);\n asta.rotation.z += Math.PI / 2;\n Tenda.add(asta);\n\n let asta2 = asta.clone();\n asta2.position.set(-2.5, 3.18, 0.02);\n Tenda.add(asta2);\n\n let geometrySphereUp = new Three.SphereGeometry(0.04, 32, 32);\n let sphere = new Three.Mesh(geometrySphereUp, white);\n sphere.position.set(-.5, 3.18, 0.02);\n sphere.rotation.x += Math.PI / 2;\n sphere.scale.set(0.8, 1, 1);\n Tenda.add(sphere);\n\n let sphere2 = sphere.clone();\n sphere2.position.x += -1.2;\n Tenda.add(sphere2);\n\n let sphere3 = sphere.clone();\n sphere3.position.x += -1.4;\n Tenda.add(sphere3);\n\n let sphere4 = sphere.clone();\n sphere4.position.x += -2.6;\n Tenda.add(sphere4);\n\n let valueObject = new Three.Box3().setFromObject(Tenda);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n Tenda.position.x += width / 1.48;\n Tenda.position.y += -height / 2.1;\n Tenda.position.z += thickness / 1024;\n Tenda.scale.set(width / deltaX, height / deltaY, thickness / deltaZ);\n\n return Tenda;\n }\n\n function createMesh(geom) {\n geom.applyMatrix(new Three.Matrix4().makeTranslation(-25, 0, -25));\n let meshMaterial = new Three.MeshLambertMaterial({ color: 0xffffff, opacity: 0.9, transparent: true });\n meshMaterial.side = Three.DoubleSide;\n\n let plane = new Three.Mesh(geom, meshMaterial);\n return plane;\n }\n\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/venetian-blind-window/texture.png\";","module.exports = __webpack_public_path__ + \"catalog/holes/venetian-blind-window/venetian.obj\";","module.exports = __webpack_public_path__ + \"catalog/holes/venetian-blind-window/venetian.mtl\";","module.exports = __webpack_public_path__ + \"catalog/holes/venetian-blind-window/venetian.jpg\";","import React from 'react';\nimport * as Three from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\nimport path from 'path';\n\nlet cached3DWindow = null;\n\nexport default {\n name: 'venetian-blind-window',\n prototype: 'holes',\n\n info: {\n tag: ['Window'],\n title: 'Venetian Blind Window',\n description: 'Venetian Blind Window',\n image: require('./venetian.jpg')\n },\n\n properties: {\n width: {\n label: 'Width',\n type: 'length-measure',\n defaultValue: {\n length: 90\n }\n },\n height: {\n label: 'Height',\n type: 'length-measure',\n defaultValue: {\n length: 100\n }\n },\n altitude: {\n label: 'Altitude',\n type: 'length-measure',\n defaultValue: {\n length: 90\n }\n },\n thickness: {\n label: 'Thickness',\n type: 'length-measure',\n defaultValue: {\n length: 10\n }\n },\n flip: {\n label: 'Flip',\n type: 'checkbox',\n defaultValue: 'false',\n },\n },\n\n render2D: function (element, layer, scene) {\n\n const STYLE_HOLE_BASE = {stroke: '#000', strokeWidth: '3px', fill: '#000'};\n const STYLE_HOLE_SELECTED = {stroke: '#0096fd', strokeWidth: '3px', fill: '#0096fd', cursor: 'move'};\n\n let epsilon = 3;\n\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let length = element.properties.get('width').get('length');\n return (\n \n \n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let flip = element.properties.get('flip');\n\n let onLoadItem = (object) => {\n\n let venetian = new Three.Object3D();\n\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n\n object.scale.set(width / initialWidth, height / initialHeight,\n thickness/2 / initialThickness);\n\n venetian.add(object);\n venetian.add(createTenda());\n\n if(flip === true)\n venetian.rotation.y += Math.PI;\n\n return venetian;\n };\n\n if(cached3DWindow) {\n return Promise.resolve(onLoadItem(cached3DWindow.clone()));;\n }\n\n let mtl = require('./venetian.mtl');\n let obj = require('./venetian.obj');\n let img = require('./texture.png');\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cached3DWindow = object;\n return onLoadItem(cached3DWindow.clone());\n });\n\n function createTenda() {\n\n var venetian = new Three.Object3D();\n\n //colors\n var white = new Three.MeshLambertMaterial( {color: 0xffffff, opacity:0.5, transparent:true} );\n var grey = new Three.MeshLambertMaterial( {color: 0xCCCCCC} );\n\n var roundedRectShape = new Three.Shape();\n\n var x=0;\n var y=0;\n var width=1;\n var height=18;\n var radius=0.25;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n var holePath1 = new Three.Path();\n holePath1.moveTo( 0.5, 0.6 );\n holePath1.arc(0, .7, .15 ,0, Math.PI,false);\n holePath1.arc(0.15, -.09, .15 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath1 );\n\n var holePath2 = new Three.Path();\n holePath2.moveTo( 0.5, 4.6 );\n holePath2.arc(0, .7, .15 ,0, Math.PI,false);\n holePath2.arc(0.15, -.09, .15 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath2 );\n\n var holePath3 = new Three.Path();\n holePath3.moveTo( 0.5, 8.6 );\n holePath3.arc(0, .7, .15 ,0, Math.PI,false);\n holePath3.arc(0.15, -.09, .15 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath3 );\n\n var holePath4 = new Three.Path();\n holePath4.moveTo( 0.5, 12.6 );\n holePath4.arc(0, .7, .15 ,0, Math.PI,false);\n holePath4.arc(0.15, -.09, .15 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath4 );\n\n var holePath5 = new Three.Path();\n holePath5.moveTo( 0.5, 16.6 );\n holePath5.arc(0, .7, .15 ,0, Math.PI,false);\n holePath5.arc(0.15, -.09, .15 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath5 );\n\n var extrudeSettings = {\n steps: 1,\n depth: 0.2,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for (var i = 0; i < 25; i+=.7) {\n var geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n var mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(0,i,0.86);\n mesh.rotation.z+=Math.PI/2;\n mesh.rotation.x+=-Math.PI/2;\n venetian.add(mesh);\n\n }\n\n for (var j = -1.25; j > -19; j+=-4) {\n\n var geometry1 = new Three.CylinderGeometry( 0.105, 0.105, 26, 32 );\n var tubo = new Three.Mesh(geometry1,white);\n tubo.position.set(j,12.5,.35);\n venetian.add(tubo);\n\n }\n\n var roundedRectShape2 = new Three.Shape();\n\n var x1=0;\n var y1=0;\n var width1=1;\n var height1=18;\n var radius1=0.25;\n\n roundedRectShape2.moveTo( x1, y1 + radius1 );\n roundedRectShape2.lineTo( x1, y1 + height1 - radius1 );\n roundedRectShape2.quadraticCurveTo( x1, y1 + height1, x1 + radius1, y1 + height1 );\n roundedRectShape2.lineTo( x1 + width1 - radius1, y1 + height1) ;\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1 );\n roundedRectShape2.lineTo( x1 + width1, y1 + radius1 );\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1, x1 + width1 - radius1, y1 );\n roundedRectShape2.lineTo( x1 + radius1, y1 );\n roundedRectShape2.quadraticCurveTo( x1, y1, x1, y1 + radius1 );\n\n var extrudeSettings2 = {\n steps: 1,\n depth: 0.4,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for (var k = -.5; k < 27; k+=26) {\n var geometry2 = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n var mesh2 = new Three.Mesh( geometry2, grey ) ;\n mesh2.position.set(0,k,1);\n mesh2.rotation.z+=Math.PI/2;\n mesh2.rotation.x+=-Math.PI/2;\n venetian.add(mesh2);\n }\n\n\n let valueObject = new Three.Box3().setFromObject(venetian);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n venetian.position.x+=width1/.025;\n venetian.position.y+=-height1/.4;\n venetian.scale.set(5.2*width1 / deltaZ, 5.45*height1 / deltaY, 2.5*thickness / deltaX);\n\n\n return venetian;\n }\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/sliding-door/slidingDoor.png\";","import Catalog from './catalog/catalog';\nimport Translator from './translator/translator';\nimport * as Models from './models';\nimport reducer from './reducers/reducer';\nimport ReactPlanner from './react-planner';\nimport Plugins from './plugins/export';\nimport * as ReactPlannerConstants from './constants';\nimport * as ReactPlannerSharedStyle from './shared-style';\nimport ReactPlannerComponents from './components/export';\nimport ReactPlannerActions from './actions/export';\nimport ReactPlannerReducers from './reducers/export';\nimport ReactPlannerClasses from './class/export';\nimport ElementsFactories from './catalog/factories/export';\nimport ReactPlannerUtils from './utils/export';\n\nexport {\n Catalog,\n Translator,\n Models,\n reducer,\n ReactPlanner,\n Plugins,\n ReactPlannerConstants,\n ReactPlannerSharedStyle,\n ReactPlannerComponents,\n ReactPlannerActions,\n ReactPlannerReducers,\n ReactPlannerClasses,\n ElementsFactories,\n ReactPlannerUtils\n};\n","import React from 'react';\nimport * as Three from 'three';\n\nconst grey = new Three.MeshLambertMaterial({color: 0x3f3f3f});\nconst white = new Three.MeshLambertMaterial({color: 0xffffff, transparent:true, opacity:0.5});\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\n\nfunction makeDoor(handleSide) {\n\n let slidingDoor = new Three.Mesh();\n\n let doorShape = new Three.Shape();\n doorShape.moveTo( 1, 2 );\n doorShape.lineTo( 0, 2);\n doorShape.lineTo( 0, 0);\n doorShape.lineTo( 1, 0);\n\n let doorHole = new Three.Path();\n doorHole.moveTo(.65, 1.75 );\n doorHole.lineTo(.35, 1.75);\n doorHole.lineTo(.35, 1.25);\n doorHole.lineTo(.65, 1.25);\n doorShape.holes.push( doorHole );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.05,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry = new Three.ExtrudeGeometry( doorShape, extrudeSettings );\n let door = new Three.Mesh( geometry, grey ) ;\n if(handleSide === 'right')\n door.position.set(-1,0,0);\n else\n door.position.set(0,0,0);\n slidingDoor.add(door);\n\n let doorGeometry = new Three.BoxGeometry(1,2,0.05);\n let door2 = new Three.Mesh(doorGeometry,grey);\n if (handleSide === 'right')\n door2.position.set(1.5,1,0.065);\n else\n door2.position.set(-.5,1,0.065);\n door.add(door2);\n\n let barGeometry = new Three.BoxGeometry(2,0.1,0.1);\n let doorBar = new Three.Mesh(barGeometry,grey);\n doorBar.position.set(-0,2.07,0.05);\n slidingDoor.add(doorBar);\n\n let glassGeometry = new Three.BoxGeometry(0.3,0.5,0.05);\n let glass = new Three.Mesh(glassGeometry,white);\n glass.position.set(0.5,1.5,0.025);\n door.add(glass);\n\n let HandleGeometry1 = new Three.CylinderGeometry(0.051,0.051,0.0625,80,80,true);\n black.side=Three.DoubleSide;\n let handle_p1 = new Three.Mesh(HandleGeometry1,black);\n handle_p1.position.set(0.2,1,0.025);\n handle_p1.rotation.x=Math.PI/2;\n door.add(handle_p1);\n\n let HandleGeometry2 = new Three.BoxGeometry(0.1,0.02,0.0625);\n let handle_p2 = new Three.Mesh( HandleGeometry2,black );\n handle_p2.position.set(0.2,1,0.025);\n door.add(handle_p2);\n\n if (handleSide === 'left'){\n handle_p1.position.x=0.8;\n handle_p2.position.x=0.8;\n }\n\n return slidingDoor\n}\n\nexport default {\n name: 'sliding door',\n prototype: 'holes',\n\n info: {\n tag: ['door'],\n title: 'sliding door',\n description: 'iron door',\n image: require('./slidingDoor.png')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 200,\n unit: 'cm'\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 215,\n unit: 'cm'\n }\n },\n thickness: {\n label: 'thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30,\n unit: 'cm'\n }\n },\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n flip_horizontal: {\n label: 'horizontal flip',\n type: 'checkbox',\n defaultValue: 'none',\n values: {\n 'none': 'none',\n 'yes': 'yes'\n }\n },\n flip_vertical: {\n label: 'vertical flip',\n type: 'checkbox',\n defaultValue: 'right',\n values: {\n 'right': 'right',\n 'left': 'left'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n const STYLE_HOLE_BASE = {stroke: '#000', strokeWidth: '14px', fill: '#000'};\n const STYLE_HOLE_BASE2 = {stroke: '#000', strokeWidth: '16px', fill: '#000'};\n const STYLE_HOLE_SELECTED = {stroke: '#0096fd', strokeWidth: '14px', fill: '#0096fd', cursor: 'move'};\n\n let epsilon = 3;\n let flip = element.properties.get('flip_horizontal');\n let handleSide = element.properties.get('flip_vertical');\n let holeWidth = element.properties.get('width').get('length');\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let holeStyle2 = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE2;\n let length = element.properties.get('width').get('length');\n\n let scaleX, scaleY;\n let scaleX2, scaleY2;\n let pX1, pX2;\n\n flip ? flip = 'yes' : flip = 'none';\n handleSide ? handleSide = 'right' : handleSide = 'left';\n\n if(flip === 'yes') {\n scaleX = 1;\n if (handleSide === 'right') {\n pX1 = 0;\n pX2 = holeWidth/2;\n scaleY = -1;\n }\n else {\n pX1 = holeWidth/2;\n pX2 = holeWidth;\n scaleY = -1;\n }\n }\n else {\n scaleX = 1;\n if (handleSide === 'right') {\n pX1 = holeWidth/2;\n pX2 = holeWidth;\n scaleY = 1;\n }\n else {\n pX1 = 0;\n pX2 = holeWidth/2;\n scaleY = 1;\n }\n\n }\n return (\n \n \n \n \n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let flip = element.properties.get('flip_horizontal');\n let handleSide = element.properties.get('flip_vertical');\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n flip ? flip = 'yes' : flip = 'none';\n handleSide ? handleSide = 'right' : handleSide = 'left';\n\n let slidingDoor = new Three.Object3D();\n slidingDoor.add(makeDoor(handleSide).clone());\n\n let valuePosition = new Three.Box3().setFromObject(slidingDoor);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n if (element.selected) {\n let boundingBox = new Three.BoxHelper(slidingDoor, 0x99c3fb);\n boundingBox.material.linewidth = 5;\n boundingBox.renderOrder = 1000;\n boundingBox.material.depthTest = false;\n slidingDoor.add(boundingBox);\n }\n\n if(flip === 'yes')\n slidingDoor.rotation.y += Math.PI;\n\n slidingDoor.position.y+= newAltitude;\n slidingDoor.scale.set(width / deltaX, height / deltaY, thickness / deltaZ);\n\n return Promise.resolve(slidingDoor);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/sash-window/texture.png\";","module.exports = __webpack_public_path__ + \"catalog/holes/sash-window/sash-window.obj\";","module.exports = __webpack_public_path__ + \"catalog/holes/sash-window/sash-window.mtl\";","module.exports = __webpack_public_path__ + \"catalog/holes/sash-window/window.png\";","import React from 'react';\nimport * as Three from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\nimport path from 'path';\n\nlet cached3DWindow = null;\n\nexport default {\n name: \"sash window\",\n prototype: \"holes\",\n\n info: {\n title: \"sash window\",\n tag: ['window'],\n description: \"Sash window\",\n image: require('./window.png')\n },\n\n properties: {\n width: {\n label: \"Width\",\n type: \"length-measure\",\n defaultValue: {\n length: 90\n }\n },\n height: {\n label: \"Height\",\n type: \"length-measure\",\n defaultValue: {\n length: 100\n }\n },\n altitude: {\n label: \"Altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 90\n }\n },\n thickness: {\n label: \"Thickness\",\n type: \"length-measure\",\n defaultValue: {\n length: 10\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n const STYLE_HOLE_BASE = {stroke: \"#000\", strokeWidth: \"3px\", fill: \"#000\"};\n const STYLE_HOLE_SELECTED = {stroke: \"#0096fd\", strokeWidth: \"3px\", fill: \"#0096fd\", cursor: \"move\"};\n //let line = layer.lines.get(hole.line);\n //let epsilon = line.properties.get('thickness') / 2;\n\n let epsilon = 3;\n\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let length = element.properties.get('width').get('length');\n return (\n \n \n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n let onLoadItem = (object) => {\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n\n object.scale.set(width / initialWidth, height / initialHeight,\n thickness / initialThickness);\n\n return object;\n };\n\n if(cached3DWindow) {\n return Promise.resolve(onLoadItem(cached3DWindow.clone()));\n }\n\n let mtl = require('./sash-window.mtl');\n let obj = require('./sash-window.obj');\n let img = require('./texture.png');\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cached3DWindow = object;\n return onLoadItem(cached3DWindow.clone());\n })\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/panic-door/panicDoor.png\";","import React from 'react';\nimport * as Three from 'three';\n\nconst black = new Three.MeshLambertMaterial({color : 0x000000});\nconst green = new Three.MeshLambertMaterial( {color : 0x348781});\nconst red = new Three.MeshLambertMaterial({color : 0xFF0000});\nconst turquoise = new Three.MeshLambertMaterial({color : 0x43C6DB,opacity :0.7,transparent: true});\nconst metalBlue = new Three.MeshLambertMaterial({color : 0xB7CEEC});\nconst darkGrey = new Three.MeshLambertMaterial({color : 0x313131});\nconst darkGrey2 = new Three.MeshLambertMaterial({color : 0x212121});\nconst metalBlueGrey = new Three.MeshLambertMaterial({color : 0x566D7E});\n\nlet flip_value;\nlet handleSide_value;\n\nfunction makePanicDoor(handleSide) {\n\n let panicDoor = new Three.Mesh();\n let leftDoor = makeDoorStructure();\n let handle = makeHandle(handleSide);\n let leftDoorPivot = makePivot();\n let rightDoorPivot = makePivot();\n let safetyHandleLeft = makeSafetyHandle();\n let safetyHandleRight = makeSafetyHandle();\n let hilt = makeLock();\n let doorLock = makeDoorLock();\n hilt.position.set(-0.05,-0.02,0.03);\n handle.position.set(-0.47/2,0.85/2,-0.03);\n\n if(handleSide) {\n leftDoorPivot.position.set(0.595 / 2, 0, -0.06 / 2);\n }\n else {\n leftDoorPivot.position.set(-0.595 / 2, 0, -0.06 / 2);\n }\n rightDoorPivot.position.set(0.6/2 ,0,0.077/2);\n safetyHandleLeft.position.set(0,0.4,0.06/2);\n safetyHandleRight.position.set(0,0.4,-0.062/2);\n handle.add(hilt);\n leftDoor.add(handle);\n leftDoor.add(safetyHandleLeft);\n leftDoor.add(leftDoorPivot);\n panicDoor.add(leftDoor);\n leftDoor.add(doorLock);\n\n return panicDoor\n}\n\nfunction makeDoorLock () {\n\n let DoorLock = new Three.Object3D();\n let doorLockGeometry1 = new Three.CylinderGeometry(0.012,0.012,1.905,Math.round(32));\n let doorLockGeometry2 = new Three.CylinderGeometry(0.007,0.007,1.907,Math.round(32));\n let doorLock1 = new Three.Mesh( doorLockGeometry1, metalBlue);\n let doorLock2 = new Three.Mesh( doorLockGeometry2, metalBlueGrey);\n DoorLock.position.set(-0.275,0.7/2,0);\n DoorLock.scale.x =1/1.3;\n doorLock1.add(doorLock2);\n DoorLock.add(doorLock1);\n return DoorLock;\n}\n\nfunction makeLock () {\n\n let mechanism = new Three.Object3D();\n let BaseGeometry = new Three.BoxGeometry(0.01,0.1,0.02);\n let PieceGeometry1 = new Three.BoxGeometry(0.01,0.02,0.01);\n let PieceGeometry2 = new Three.BoxGeometry(0.006,0.04,0.008);\n let base = new Three.Mesh( BaseGeometry, metalBlue);\n let piece1 = new Three.Mesh( PieceGeometry1, metalBlueGrey);\n let piece2 = new Three.Mesh( PieceGeometry2, metalBlueGrey);\n piece1.position.set(-0.008/2,0.03,0);\n piece2.position.y =-0.05;\n piece1.add(piece2);\n base.add(piece1);\n mechanism.add(base);\n\n return mechanism;\n}\n\nfunction makeSafetyHandle () {\n\n let handle = new Three.Object3D();\n let HandleSupportGeometry = new Three.BoxGeometry(0.5,0.1,0.005);\n let PushGeometry = new Three.CylinderGeometry(0.04,0.04,0.48,Math.round(32));\n let CoverPushGeometry = new Three.CylinderGeometry(0.042,0.042,0.01,Math.round(32));\n let handleSupport = new Three.Mesh( HandleSupportGeometry, black);\n let PushButton = new Three.Mesh( PushGeometry, red);\n let CoverPush1 = new Three.Mesh( CoverPushGeometry, black);\n let CoverPush2 = new Three.Mesh( CoverPushGeometry, black);\n handleSupport.position.z =0.005/2;\n PushButton.rotation.z =Math.PI/2;\n CoverPush1.position.y =0.48/2 +0.01/2;\n CoverPush2.position.y =-0.48/2 -0.01/2;\n PushButton.add(CoverPush1);\n PushButton.add(CoverPush2);\n handleSupport.add(PushButton);\n handle.add(handleSupport);\n\n return handle;\n}\n\nfunction makePivot () {\n\n let DoorPivot = new Three.Object3D();\n let DownPivotGeometry = new Three.CylinderGeometry(0.009,0.009,0.04,Math.round(32));\n let UpPivotGeometry = new Three.CylinderGeometry(0.01,0.01,0.04,Math.round(32));\n let downPivot1 = new Three.Mesh( DownPivotGeometry, green);\n let upPivot1 = new Three.Mesh( UpPivotGeometry, green);\n let downPivot2 = new Three.Mesh( DownPivotGeometry, green);\n let upPivot2 = new Three.Mesh( UpPivotGeometry, green);\n downPivot1.position.y =-0.4;\n upPivot1.position.y =0.04;\n downPivot2.position.y =1;\n upPivot2.position.y =0.04;\n downPivot2.add(upPivot2);\n downPivot1.add(upPivot1);\n DoorPivot.add(downPivot2);\n DoorPivot.add(downPivot1);\n\n return DoorPivot;\n}\n\nfunction makeHandle (handleSide_value) {\n\n let handle = new Three.Object3D();\n let handleBase = makeHandleBase(handleSide_value);\n let hilt = makeHilt();\n hilt.rotation.x = Math.PI / 2;\n\n if(handleSide_value) {\n hilt.position.set(0, 0.04, -0.03 / 2 - 0.01 / 2);\n }\n else {\n hilt.position.set(0.4, 0.04, -0.03 / 2 - 0.01 / 2);\n hilt.rotation.y = Math.PI ;\n }\n handle.add(handleBase);\n handle.add(hilt);\n handle.scale.set(1.1, 1.1, 1.1);\n return handle;\n}\n\nfunction makeHilt () {\n\n let hilt = new Three.Object3D();\n let Geometry_p1 = new Three.CylinderGeometry(0.01,0.01,0.03,Math.round(32));\n let Geometry_p2 = new Three.SphereGeometry(0.01,Math.round(32),Math.round(32));\n let Geometry_p3 = new Three.CylinderGeometry(0.01,0.01,0.07,Math.round(32));\n let piece1 = new Three.Mesh( Geometry_p1, black);\n let piece2 = new Three.Mesh( Geometry_p2, black);\n let piece3 = new Three.Mesh( Geometry_p3, black);\n let piece4 = new Three.Mesh( Geometry_p2, black);\n piece3.rotation.z =Math.PI/2;\n piece3.position.x =0.07/2;\n piece2.position.y =-0.03/2;\n piece4.position.y =-0.07/2;\n piece3.add(piece4);\n piece2.add(piece3);\n piece1.add(piece2);\n hilt.add(piece1);\n\n return hilt;\n}\n\nfunction makeHandleBase (handleSide_value) {\n let base = new Three.Object3D();\n let BaseGeometry1 = new Three.BoxGeometry(0.038,0.14,0.01);\n let BaseGeometry2 = new Three.CylinderGeometry(0.023,0.023,0.01,Math.round(32));\n let lock = makeLockKey();\n let base1 = new Three.Mesh( BaseGeometry1, black);\n let base2 = new Three.Mesh( BaseGeometry2, black);\n lock.rotation.x = Math.PI/2;\n base2.rotation.x =Math.PI/2;\n lock.position.y = -0.03;\n base2.position.y = -0.033;\n if(!handleSide_value)\n base1.position.x = 0.4;\n base2.scale.z =1.5;\n base1.add(lock);\n base1.add(base2);\n base.add(base1);\n return base;\n}\n\nfunction makeLockKey () {\n\n let Lock = new Three.Object3D();\n let geometry1 = new Three.CylinderGeometry(0.005,0.005,0.02,Math.round(32));\n let geometry2 = new Three.BoxGeometry(0.008,0.02,0.02);\n let geometry3 = new Three.BoxGeometry(0.007,0.0203,0.0018);\n let LockPiece1 = new Three.Mesh( geometry1, metalBlue);\n let LockPiece2 = new Three.Mesh( geometry2, metalBlue);\n let LockPiece3 = new Three.Mesh( geometry3, metalBlueGrey );\n LockPiece2.position.z = 0.01;\n LockPiece1.add(LockPiece2);\n LockPiece1.add(LockPiece3);\n Lock.add(LockPiece1);\n\n return Lock;\n}\n\nfunction makeDoorStructure () {\n\n let door = new Three.Object3D();\n let lowBaseDoorGeometry = new Three.BoxGeometry(0.6,1.2,0.01);\n let middleBaseDoorGeometry = new Three.BoxGeometry(0.2,0.7,0.01);\n let highBaseDoorGeometry = new Three.BoxGeometry(0.2,0.2,0.01);\n let BorderCoverDoorGeometry1 = new Three.CylinderGeometry(0.005,0.005,1.9,Math.round(32));\n let BorderCoverDoorGeometry2 = new Three.BoxGeometry(0.03,1.9,0.01);\n let MiddleDoorGeometry2 = new Three.BoxGeometry(0.2,0.7,0.06);\n let MiddleDoorGeometry1 = new Three.BoxGeometry(0.19,0.7,0.06);\n let HighDoorGeometry = new Three.BoxGeometry(0.2,0.2,0.06);\n let glassGeometry = new Three.BoxGeometry(0.2,0.5,0.05);\n let LowDoorGeometry = new Three.BoxGeometry(0.59,1.2,0.06);\n let glassCoverVertical = new Three.BoxGeometry(0.01,0.52,0.064);\n let glassCoverHorizontal = new Three.BoxGeometry(0.224,0.01,0.064);\n let lowCoverDoor = new Three.Mesh( lowBaseDoorGeometry , green );\n let middleDoor1 = new Three.Mesh( MiddleDoorGeometry1, green);\n let middleDoor2 = new Three.Mesh( MiddleDoorGeometry2, green);\n let baseDoor = new Three.Mesh( LowDoorGeometry, green );\n let middleCoverDoor1 = new Three.Mesh( middleBaseDoorGeometry, green);\n let middleCoverDoor2 = new Three.Mesh( middleBaseDoorGeometry, green);\n let highCoverDoor = new Three.Mesh( highBaseDoorGeometry, green);\n let highDoor = new Three.Mesh( HighDoorGeometry, green);\n let borderCoverDoor1 = new Three.Mesh( BorderCoverDoorGeometry1, green);\n let borderCoverDoor2 = new Three.Mesh( BorderCoverDoorGeometry2, green);\n let glass = new Three.Mesh( glassGeometry, turquoise);\n let glassVerticalCover1 = new Three.Mesh( glassCoverVertical, green);\n let glassVerticalCover2 = new Three.Mesh( glassCoverVertical, green);\n let glassHorizontalCover1 = new Three.Mesh( glassCoverHorizontal, green);\n let glassHorizontalCover2 = new Three.Mesh( glassCoverHorizontal, green);\n lowCoverDoor.position.set(-(0.6-0.59)/2,0,-0.05/2);\n middleCoverDoor1.position.set(-0.2,1.2/2 +0.7/2,0);\n middleCoverDoor2.position.set(0.2,1.2/2 +0.7/2,0);\n highCoverDoor.position.set(0,(0.5 +0.2)/2,-0.05/2);\n highDoor.position.set(0,(0.5 +0.2)/2,-0.05/2 +0.05/2);\n glass.position.set(-0.01/2,1.2/2 +0.5/2,0);\n middleDoor2.position.z =0.05/2;\n middleDoor1.position.set(0.005,0,0.05/2);\n borderCoverDoor1.position.set(-0.6/2,0.7/2,0);\n glassVerticalCover1.position.x = 0.2/2 +0.014/2;\n glassVerticalCover2.position.x =-0.2/2 -0.014/2;\n glassHorizontalCover1.position.y = 0.5/2 +0.014/2;\n glassHorizontalCover2.position.y =-0.5/2 -0.014/2;\n borderCoverDoor2.position.set(0.02/2,0,-0.01/2 );\n borderCoverDoor1.add(borderCoverDoor2);\n glass.add(highCoverDoor);\n glass.add(glassVerticalCover1);\n glass.add(glassVerticalCover2);\n glass.add(glassHorizontalCover1);\n glass.add(glassHorizontalCover2);\n glass.add(highCoverDoor);\n glass.add(highDoor);\n baseDoor.add(glass);\n middleCoverDoor1.add(middleDoor1);\n middleCoverDoor2.add(middleDoor2);\n lowCoverDoor.add(borderCoverDoor1);\n lowCoverDoor.add(middleCoverDoor1);\n lowCoverDoor.add(middleCoverDoor2);\n baseDoor.add(lowCoverDoor);\n door.add(baseDoor);\n door.scale.x = 1.3;\n return door;\n}\n\nexport default {\n name: 'panic door',\n prototype: 'holes',\n\n info: {\n tag: ['door'],\n title: 'panic door',\n description: 'iron door',\n image: require('./panicDoor.png')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 215,\n unit: 'cm'\n }\n },\n thickness: {\n label: 'thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30,\n unit: 'cm'\n }\n },\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n flip_horizontal: {\n label: 'horizontal flip',\n type: 'checkbox',\n defaultValue: 'none',\n values: {\n 'none': 'none',\n 'yes': 'yes'\n }\n },\n flip_vertical: {\n label: 'vertical flip',\n type: 'checkbox',\n defaultValue: 'right',\n values: {\n 'right': 'right',\n 'left': 'left'\n }\n },\n },\n\n\n render2D: function (element, layer, scene) {\n\n const STYLE_HOLE_BASE = {stroke: '#ff0000', strokeWidth: '3px', fill: '#ff0000'};\n const STYLE_HOLE_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', fill: '#ff0000', cursor: 'move'};\n const STYLE_ARC_BASE = {stroke: '#ff0000', strokeWidth: '3px', strokeDasharray: '5,5', fill: 'none'};\n const STYLE_ARC_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', strokeDasharray: '5,5', fill: 'none', cursor: 'move'};\n\n let epsilon = 3;\n\n let flip = element.properties.get('flip_horizontal');\n let handleSide = element.properties.get('flip_vertical');\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let arcPath = `M${0},${0} A${holeWidth},${holeWidth} 0 0,1 ${holeWidth},${holeWidth}`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\n let length = element.properties.get('width').get('length');\n\n let scaleX, scaleY;\n let rotateAngle;\n let tX, tY;\n let pX1, pX2, pY1, pY2;\n\n flip ? flip_value = 'yes' : flip_value = 'none';\n handleSide ? handleSide_value = 'right' : handleSide_value = 'left';\n\n if(flip_value === 'yes') {\n scaleX = 1;\n if (handleSide_value === 'right') {\n tX = holeWidth;\n tY = -holeWidth;\n pX1 = -holeWidth;\n pY1 = 0;\n pX2 = -holeWidth;\n pY2 = holeWidth;\n rotateAngle = 180;\n scaleY = -1;\n }\n else {\n tX = 0;\n tY = -holeWidth;\n pX1 = 0;\n pY1 = 0;\n pX2 = 0;\n pY2 = -holeWidth;\n scaleY = 1;\n rotateAngle = 0;\n }\n }\n else if (flip_value === 'none') {\n scaleX = -1;\n if (handleSide_value === 'left') {\n tX = holeWidth;\n tY = 0;\n pX1 = 0;\n pY1 = 0;\n pX2 = 0;\n pY2 = -holeWidth;\n rotateAngle = -90;\n scaleY = -1;\n }\n else{\n tX = 0;\n tY = 0;\n pX1 = holeWidth;\n pY1 = 0;\n pX2 = holeWidth;\n pY2 = holeWidth;\n rotateAngle = 90;\n scaleY = 1;\n }\n }\n\n return (\n \n \n \n \n \n\n );\n },\n\n render3D: function (element, layer, scene) {\n\n let flip = element.properties.get('flip_horizontal');\n let handleSide = element.properties.get('flip_vertical');\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n let panicDoor = new Three.Object3D();\n panicDoor.add(makePanicDoor(handleSide).clone());\n\n if (element.selected) {\n let boundingBox = new Three.BoxHelper(panicDoor, 0x99c3fb);\n boundingBox.material.linewidth = 5;\n boundingBox.renderOrder = 1000;\n boundingBox.material.depthTest = false;\n panicDoor.add(boundingBox);\n }\n\n let valuePosition = new Three.Box3().setFromObject(panicDoor);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n if(flip)\n panicDoor.rotation.y += Math.PI;\n\n panicDoor.position.y+= newAltitude;\n panicDoor.scale.set(width / deltaX, height / deltaY, thickness / deltaZ);\n\n return Promise.resolve(panicDoor);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/panic-door-double/panicDoorDouble.png\";","import React from 'react';\nimport * as Three from 'three';\n\nconst black = new Three.MeshLambertMaterial({color : 0x000000});\nconst green = new Three.MeshLambertMaterial( {color : 0x348781});\nconst red = new Three.MeshLambertMaterial({color : 0xFF0000});\nconst turquoise = new Three.MeshLambertMaterial({color : 0x43C6DB,opacity :0.7,transparent: true});\nconst metalBlue = new Three.MeshLambertMaterial({color : 0xB7CEEC});\nconst darkGrey = new Three.MeshLambertMaterial({color : 0x313131});\nconst darkGrey2 = new Three.MeshLambertMaterial({color : 0x212121});\nconst metalBlueGrey = new Three.MeshLambertMaterial({color : 0x566D7E});\n\n\nfunction makePanicDoor() {\n\n let panicDoorDouble = new Three.Mesh();\n let doorLeft = makeDoorStructure();\n let doorRight = makeDoorStructure();\n let handle = makeHandle();\n let doorLeftPivot = makePivot();\n let doorRightPivot = makePivot();\n let safetyHandleLeft = makeSafetyHandle();\n let safetyHandleRight = makeSafetyHandle();\n let lock = makeLock();\n let doorLockLeft = makeDoorLock();\n let doorLockRight = makeDoorLock();\n lock.position.set(-0.05, -0.02, 0.03);\n handle.position.set(-0.47 / 2, 0.85 / 2, -0.03);\n doorLeftPivot.position.set(0.595 / 2, 0, -0.06 / 2);\n doorRightPivot.position.set(0.6 / 2, 0, 0.077 / 2);\n doorRight.rotation.y = Math.PI;\n doorRight.position.set(-0.35 / 2 - 0.084, 0, 0.0043);\n doorLeft.position.set(0.35 / 2 + 0.084, 0, -0.0043);\n safetyHandleLeft.position.set(0, 0.4, 0.06 / 2);\n safetyHandleRight.position.set(0, 0.4, -0.062 / 2);\n handle.add(lock);\n doorLeft.add(handle);\n doorLeft.add(safetyHandleLeft);\n doorRight.add(safetyHandleRight);\n doorLeft.add(doorLeftPivot);\n panicDoorDouble.add(doorLeft);\n doorRight.add(doorRightPivot);\n doorLeft.add(doorLockLeft);\n doorRight.add(doorLockRight);\n panicDoorDouble.add(doorRight);\n\n return panicDoorDouble\n}\n\nfunction makeDoorLock() {\n\n let block = new Three.Object3D();\n let DoorLockGeometry1 = new Three.CylinderGeometry(0.012, 0.012, 1.905, Math.round(32));\n let DoorLockGeometry2 = new Three.CylinderGeometry(0.007, 0.007, 1.907, Math.round(32));\n let DoorLock1 = new Three.Mesh(DoorLockGeometry1, metalBlue);\n let DoorLock2 = new Three.Mesh(DoorLockGeometry2, metalBlueGrey);\n block.position.set(-0.275, 0.7 / 2, 0);\n block.scale.x = 1 / 1.3;\n DoorLock1.add(DoorLock2);\n block.add(DoorLock1);\n\n return block;\n}\n\nfunction makeLock() {\n\n let mechanism = new Three.Object3D();\n let BaseGeometry = new Three.BoxGeometry(0.01, 0.1, 0.02);\n let FirstBlockGeometry = new Three.BoxGeometry(0.01, 0.02, 0.01);\n let SecondBlockGeometry = new Three.BoxGeometry(0.006, 0.04, 0.008);\n let base = new Three.Mesh(BaseGeometry, metalBlue);\n let FirstBlock = new Three.Mesh(FirstBlockGeometry, metalBlueGrey);\n let SecondBlock = new Three.Mesh(SecondBlockGeometry, metalBlueGrey);\n FirstBlock.position.set(-0.008 / 2, 0.03, 0);\n SecondBlock.position.y = -0.05;\n FirstBlock.add(SecondBlock);\n base.add(FirstBlock);\n mechanism.add(base);\n\n return mechanism;\n}\n\nfunction makeSafetyHandle() {\n\n let handle = new Three.Object3D();\n let handleSupportGeometry = new Three.BoxGeometry(0.5, 0.1, 0.005);\n let PushButtonGeometry = new Three.CylinderGeometry(0.04, 0.04, 0.48, Math.round(32 ));\n let PushButtonCoverGeometry = new Three.CylinderGeometry(0.042, 0.042, 0.01, Math.round(32 ));\n let handleSupport = new Three.Mesh(handleSupportGeometry, black);\n let pushButton = new Three.Mesh(PushButtonGeometry, red);\n let pushButtonCover1 = new Three.Mesh(PushButtonCoverGeometry, black);\n let pushButtonCover2 = new Three.Mesh(PushButtonCoverGeometry, black);\n handleSupport.position.z = 0.005 / 2;\n pushButton.rotation.z = Math.PI / 2;\n pushButtonCover1.position.y = 0.48 / 2 + 0.01 / 2;\n pushButtonCover2.position.y = -0.48 / 2 - 0.01 / 2;\n pushButton.add(pushButtonCover1);\n pushButton.add(pushButtonCover2);\n handleSupport.add(pushButton);\n handle.add(handleSupport);\n\n return handle;\n}\n\nfunction makePivot() {\n\n let DoorPivot = new Three.Object3D();\n let DownPivotGeometry = new Three.CylinderGeometry(0.009, 0.009, 0.04, Math.round(32 ));\n let UpPivotGeometry = new Three.CylinderGeometry(0.01, 0.01, 0.04, Math.round(32 ));\n let downPivot1 = new Three.Mesh(DownPivotGeometry, green);\n let upPivot1 = new Three.Mesh(UpPivotGeometry, green);\n let downPivot2 = new Three.Mesh(DownPivotGeometry, green);\n let upPivot2 = new Three.Mesh(UpPivotGeometry, green);\n downPivot1.position.y = -0.4;\n upPivot1.position.y = 0.04;\n downPivot2.position.y = 1;\n upPivot2.position.y = 0.04;\n downPivot2.add(upPivot2);\n downPivot1.add(upPivot1);\n DoorPivot.add(downPivot2);\n DoorPivot.add(downPivot1);\n\n return DoorPivot;\n}\n\nfunction makeHandle() {\n\n let handle = new Three.Object3D();\n let handleBase = makeHandleBase();\n let hilt = makeHilt();\n hilt.rotation.x = Math.PI / 2;\n hilt.position.set(0, 0.04, -0.03 / 2 - 0.01 / 2);\n handle.add(handleBase);\n handle.add(hilt);\n handle.scale.set(1.1, 1.1, 1.1);\n\n return handle;\n}\n\nfunction makeHilt() {\n\n let hilt = new Three.Object3D();\n let GeometryPiece1 = new Three.CylinderGeometry(0.01, 0.01, 0.03, Math.round(32 ));\n let GeometryPiece2 = new Three.SphereGeometry(0.01, Math.round(32 ), Math.round(32 ));\n let GeometryPiece3 = new Three.CylinderGeometry(0.01, 0.01, 0.07, Math.round(32 ));\n let piece1 = new Three.Mesh(GeometryPiece1, black);\n let piece2 = new Three.Mesh(GeometryPiece2, black);\n let piece3 = new Three.Mesh(GeometryPiece3, black);\n let piece4 = new Three.Mesh(GeometryPiece2, black);\n piece3.rotation.z = Math.PI / 2;\n piece3.position.x = 0.07 / 2;\n piece2.position.y = -0.03 / 2;\n piece4.position.y = -0.07 / 2;\n piece3.add(piece4);\n piece2.add(piece3);\n piece1.add(piece2);\n hilt.add(piece1);\n\n return hilt;\n}\n\nfunction makeHandleBase() {\n\n let base = new Three.Object3D();\n let BaseGeometry1 = new Three.BoxGeometry(0.038, 0.14, 0.01);\n let BaseGeometry2 = new Three.CylinderGeometry(0.023, 0.023, 0.01, Math.round(32 ));\n let lock = makeLockKey();\n let base1 = new Three.Mesh(BaseGeometry1, black);\n let base2 = new Three.Mesh(BaseGeometry2, black);\n lock.rotation.x = Math.PI / 2;\n lock.position.y = -0.03;\n base2.rotation.x = Math.PI / 2;\n base2.position.y = -0.033;\n base2.scale.z = 1.5;\n base1.add(lock);\n base1.add(base2);\n base.add(base1);\n\n return base;\n}\n\nfunction makeLockKey() {\n\n let lock = new Three.Object3D();\n let geometryLock1 = new Three.CylinderGeometry(0.005, 0.005, 0.02, Math.round(32 ));\n let geometryLock2 = new Three.BoxGeometry(0.008, 0.02, 0.02);\n let geometryLock3 = new Three.BoxGeometry(0.007, 0.0203, 0.0018);\n let lockPiece1 = new Three.Mesh(geometryLock1, metalBlue);\n let lockPiece2 = new Three.Mesh(geometryLock2, metalBlue);\n let lockPiece3 = new Three.Mesh(geometryLock3, metalBlueGrey);\n lockPiece2.position.z = 0.01;\n lockPiece1.add(lockPiece2);\n lockPiece1.add(lockPiece3);\n lock.add(lockPiece1);\n\n return lock;\n}\n\nfunction makeDoorStructure() {\n\n let door = new Three.Object3D();\n let lowBaseDoorGeometry = new Three.BoxGeometry(0.6,1.2,0.01);\n let middleBaseDoorGeometry = new Three.BoxGeometry(0.2,0.7,0.01);\n let highBaseDoorGeometry = new Three.BoxGeometry(0.2,0.2,0.01);\n let BorderCoverDoorGeometry1 = new Three.CylinderGeometry(0.005,0.005,1.9,Math.round(32));\n let BorderCoverDoorGeometry2 = new Three.BoxGeometry(0.03,1.9,0.01);\n let MiddleDoorGeometry2 = new Three.BoxGeometry(0.2,0.7,0.06);\n let MiddleDoorGeometry1 = new Three.BoxGeometry(0.19,0.7,0.06);\n let HighDoorGeometry = new Three.BoxGeometry(0.2,0.2,0.06);\n let glassGeometry = new Three.BoxGeometry(0.2,0.5,0.05);\n let LowDoorGeometry = new Three.BoxGeometry(0.59,1.2,0.06);\n let glassCoverVertical = new Three.BoxGeometry(0.01,0.52,0.064);\n let glassCoverHorizontal = new Three.BoxGeometry(0.224,0.01,0.064);\n let lowCoverDoor = new Three.Mesh( lowBaseDoorGeometry , green );\n let middleDoor1 = new Three.Mesh( MiddleDoorGeometry1, green);\n let middleDoor2 = new Three.Mesh( MiddleDoorGeometry2, green);\n let baseDoor = new Three.Mesh( LowDoorGeometry, green );\n let middleCoverDoor1 = new Three.Mesh( middleBaseDoorGeometry, green);\n let middleCoverDoor2 = new Three.Mesh( middleBaseDoorGeometry, green);\n let highCoverDoor = new Three.Mesh( highBaseDoorGeometry, green);\n let highDoor = new Three.Mesh( HighDoorGeometry, green);\n let borderCoverDoor1 = new Three.Mesh( BorderCoverDoorGeometry1, green);\n let borderCoverDoor2 = new Three.Mesh( BorderCoverDoorGeometry2, green);\n let glass = new Three.Mesh( glassGeometry, turquoise);\n let glassVerticalCover1 = new Three.Mesh( glassCoverVertical, green);\n let glassVerticalCover2 = new Three.Mesh( glassCoverVertical, green);\n let glassHorizontalCover1 = new Three.Mesh( glassCoverHorizontal, green);\n let glassHorizontalCover2 = new Three.Mesh( glassCoverHorizontal, green);\n lowCoverDoor.position.set(-(0.6-0.59)/2,0,-0.05/2);\n middleCoverDoor1.position.set(-0.2,1.2/2 +0.7/2,0);\n middleCoverDoor2.position.set(0.2,1.2/2 +0.7/2,0);\n highCoverDoor.position.set(0,(0.5 +0.2)/2,-0.05/2);\n highDoor.position.set(0,(0.5 +0.2)/2,-0.05/2 +0.05/2);\n glass.position.set(-0.01/2,1.2/2 +0.5/2,0);\n middleDoor2.position.z =0.05/2;\n middleDoor1.position.set(0.005,0,0.05/2);\n borderCoverDoor1.position.set(-0.6/2,0.7/2,0);\n glassVerticalCover1.position.x = 0.2/2 +0.014/2;\n glassVerticalCover2.position.x =-0.2/2 -0.014/2;\n glassHorizontalCover1.position.y = 0.5/2 +0.014/2;\n glassHorizontalCover2.position.y =-0.5/2 -0.014/2;\n borderCoverDoor2.position.set(0.02/2,0,-0.01/2 );\n borderCoverDoor1.add(borderCoverDoor2);\n glass.add(highCoverDoor);\n glass.add(glassVerticalCover1);\n glass.add(glassVerticalCover2);\n glass.add(glassHorizontalCover1);\n glass.add(glassHorizontalCover2);\n glass.add(highCoverDoor);\n glass.add(highDoor);\n baseDoor.add(glass);\n middleCoverDoor1.add(middleDoor1);\n middleCoverDoor2.add(middleDoor2);\n lowCoverDoor.add(borderCoverDoor1);\n lowCoverDoor.add(middleCoverDoor1);\n lowCoverDoor.add(middleCoverDoor2);\n baseDoor.add(lowCoverDoor);\n door.add(baseDoor);\n door.scale.x = 0.9;\n\n return door;\n}\n\nexport default {\n name: 'double panic door',\n prototype: 'holes',\n\n info: {\n tag: ['door'],\n title: 'double panic door',\n description: 'iron door',\n image: require('./panicDoorDouble.png')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 200,\n unit: 'cm'\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 215,\n unit: 'cm'\n }\n },\n thickness: {\n label: 'thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30,\n unit: 'cm'\n }\n },\n altitude: {\n label:'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n flip_horizontal: {\n label: 'flip',\n type: 'checkbox',\n defaultValue: false,\n values: {\n 'none': false,\n 'yes': true\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n const STYLE_HOLE_BASE = {stroke: '#ff0000', strokeWidth: '3px', fill: '#ff0000'};\n const STYLE_HOLE_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', fill: '#ff0000', cursor: 'move'};\n const STYLE_ARC_BASE = {stroke: '#ff0000', strokeWidth: '3px', strokeDasharray: '5,5', fill: 'none'};\n const STYLE_ARC_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', strokeDasharray: '5,5', fill: 'none', cursor: 'move'};\n\n let epsilon = 3;\n let flip = element.properties.get('flip_horizontal');\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let arcPath = `M${0},${0} A${holeWidth/2},${holeWidth/2} 0 0,1 ${holeWidth/2},${holeWidth/2}`;\n let arcPath2 =`M${0},${0} A${holeWidth/2},${holeWidth/2} 0 0,0 ${holeWidth/2},${holeWidth/2}`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\n let length = element.properties.get('width').get('length');\n\n\n if(flip){\n return (\n \n \n \n \n \n \n \n )\n }\n else {\n return (\n \n \n \n \n \n \n \n )\n }\n },\n\n render3D: function (element, layer, scene) {\n\n let flip = element.properties.get('flip_horizontal');\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n let panicDoorDouble = new Three.Object3D();\n panicDoorDouble.add(makePanicDoor().clone());\n\n let valuePosition = new Three.Box3().setFromObject(panicDoorDouble);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n if (element.selected) {\n let boundingBox = new Three.BoxHelper(panicDoorDouble, 0x99c3fb);\n boundingBox.material.linewidth = 5;\n boundingBox.renderOrder = 1000;\n boundingBox.material.depthTest = false;\n panicDoorDouble.add(boundingBox);\n }\n\n if(flip)\n panicDoorDouble.rotation.y+=Math.PI;\n\n panicDoorDouble.position.y+= newAltitude;\n panicDoorDouble.scale.set( width / deltaX, height / deltaY,thickness / deltaZ);\n\n return Promise.resolve(panicDoorDouble);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/gate/gate.jpg\";","import React from 'react';\nimport * as Three from 'three';\nimport path from 'path';\n\nexport default {\n name: 'gate',\n prototype: 'holes',\n\n info: {\n tag: ['gate'],\n title: 'gate',\n description: 'hole in the wall',\n image: require('./gate.jpg')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 80\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 215\n }\n },\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0\n }\n },\n thickness: {\n label: 'thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n const STYLE_HOLE_BASE = {stroke: '#000', strokeWidth: '3px', fill: '#000'};\n const STYLE_HOLE_SELECTED = {stroke: '#0096fd', strokeWidth: '4px', fill: '#0096fd', cursor: 'move'};\n const STYLE_ARC_BASE = {stroke: '#000', strokeWidth: '3px', strokeDasharray: '5,5', fill: 'none'};\n const STYLE_ARC_SELECTED = {\n stroke: '#0096fd',\n strokeWidth: '4px',\n strokeDasharray: '5,5',\n fill: 'none',\n cursor: 'move'\n };\n\n let epsilon = 3;\n\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let arcPath = `M${0},${0} A${0},${0} 0 0,1 ${holeWidth},${0}`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\n let length = element.properties.get('width').get('length');\n\n\n return (\n \n \n \n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let object = new Three.Object3D();\n return Promise.resolve(object);\n\n }\n\n}\n\n","module.exports = __webpack_public_path__ + \"catalog/holes/door/texture.jpg\";","module.exports = __webpack_public_path__ + \"catalog/holes/door/door.obj\";","module.exports = __webpack_public_path__ + \"catalog/holes/door/door.mtl\";","module.exports = __webpack_public_path__ + \"catalog/holes/door/door.png\";","/**\n * @author mrdoob / http://mrdoob.com/\n */\nvar THREE = window.THREE || require('three');\nlet OBJLoader;\nOBJLoader = (function () {\n // o object_name | g group_name\n var object_pattern = /^[og]\\s*(.+)?/;\n // mtllib file_reference\n var material_library_pattern = /^mtllib /;\n // usemtl material_name\n var material_use_pattern = /^usemtl /;\n function ParserState() {\n var state = {\n objects: [],\n object: {},\n vertices: [],\n normals: [],\n colors: [],\n uvs: [],\n materialLibraries: [],\n startObject: function (name, fromDeclaration) {\n // If the current object (initial from reset) is not from a g/o declaration in the parsed\n // file. We need to use it for the first parsed g/o to keep things in sync.\n if (this.object && this.object.fromDeclaration === false) {\n this.object.name = name;\n this.object.fromDeclaration = (fromDeclaration !== false);\n return;\n }\n var previousMaterial = (this.object && typeof this.object.currentMaterial === 'function' ? this.object.currentMaterial() : undefined);\n if (this.object && typeof this.object._finalize === 'function') {\n this.object._finalize(true);\n }\n this.object = {\n name: name || '',\n fromDeclaration: (fromDeclaration !== false),\n geometry: {\n vertices: [],\n normals: [],\n colors: [],\n uvs: []\n },\n materials: [],\n smooth: true,\n startMaterial: function (name, libraries) {\n var previous = this._finalize(false);\n // New usemtl declaration overwrites an inherited material, except if faces were declared\n // after the material, then it must be preserved for proper MultiMaterial continuation.\n if (previous && (previous.inherited || previous.groupCount <= 0)) {\n this.materials.splice(previous.index, 1);\n }\n var material = {\n index: this.materials.length,\n name: name || '',\n mtllib: (Array.isArray(libraries) && libraries.length > 0 ? libraries[libraries.length - 1] : ''),\n smooth: (previous !== undefined ? previous.smooth : this.smooth),\n groupStart: (previous !== undefined ? previous.groupEnd : 0),\n groupEnd: - 1,\n groupCount: - 1,\n inherited: false,\n clone: function (index) {\n var cloned = {\n index: (typeof index === 'number' ? index : this.index),\n name: this.name,\n mtllib: this.mtllib,\n smooth: this.smooth,\n groupStart: 0,\n groupEnd: - 1,\n groupCount: - 1,\n inherited: false\n };\n cloned.clone = this.clone.bind(cloned);\n return cloned;\n }\n };\n this.materials.push(material);\n return material;\n },\n currentMaterial: function () {\n if (this.materials.length > 0) {\n return this.materials[this.materials.length - 1];\n }\n return undefined;\n },\n _finalize: function (end) {\n var lastMultiMaterial = this.currentMaterial();\n if (lastMultiMaterial && lastMultiMaterial.groupEnd === - 1) {\n lastMultiMaterial.groupEnd = this.geometry.vertices.length / 3;\n lastMultiMaterial.groupCount = lastMultiMaterial.groupEnd - lastMultiMaterial.groupStart;\n lastMultiMaterial.inherited = false;\n }\n // Ignore objects tail materials if no face declarations followed them before a new o/g started.\n if (end && this.materials.length > 1) {\n for (var mi = this.materials.length - 1; mi >= 0; mi--) {\n if (this.materials[mi].groupCount <= 0) {\n this.materials.splice(mi, 1);\n }\n }\n }\n // Guarantee at least one empty material, this makes the creation later more straight forward.\n if (end && this.materials.length === 0) {\n this.materials.push({\n name: '',\n smooth: this.smooth\n });\n }\n return lastMultiMaterial;\n }\n };\n // Inherit previous objects material.\n // Spec tells us that a declared material must be set to all objects until a new material is declared.\n // If a usemtl declaration is encountered while this new object is being parsed, it will\n // overwrite the inherited material. Exception being that there was already face declarations\n // to the inherited material, then it will be preserved for proper MultiMaterial continuation.\n if (previousMaterial && previousMaterial.name && typeof previousMaterial.clone === 'function') {\n var declared = previousMaterial.clone(0);\n declared.inherited = true;\n this.object.materials.push(declared);\n }\n this.objects.push(this.object);\n },\n finalize: function () {\n if (this.object && typeof this.object._finalize === 'function') {\n this.object._finalize(true);\n }\n },\n parseVertexIndex: function (value, len) {\n var index = parseInt(value, 10);\n return (index >= 0 ? index - 1 : index + len / 3) * 3;\n },\n parseNormalIndex: function (value, len) {\n var index = parseInt(value, 10);\n return (index >= 0 ? index - 1 : index + len / 3) * 3;\n },\n parseUVIndex: function (value, len) {\n var index = parseInt(value, 10);\n return (index >= 0 ? index - 1 : index + len / 2) * 2;\n },\n addVertex: function (a, b, c) {\n var src = this.vertices;\n var dst = this.object.geometry.vertices;\n dst.push(src[a + 0], src[a + 1], src[a + 2]);\n dst.push(src[b + 0], src[b + 1], src[b + 2]);\n dst.push(src[c + 0], src[c + 1], src[c + 2]);\n },\n addVertexPoint: function (a) {\n var src = this.vertices;\n var dst = this.object.geometry.vertices;\n dst.push(src[a + 0], src[a + 1], src[a + 2]);\n },\n addVertexLine: function (a) {\n var src = this.vertices;\n var dst = this.object.geometry.vertices;\n dst.push(src[a + 0], src[a + 1], src[a + 2]);\n },\n addNormal: function (a, b, c) {\n var src = this.normals;\n var dst = this.object.geometry.normals;\n dst.push(src[a + 0], src[a + 1], src[a + 2]);\n dst.push(src[b + 0], src[b + 1], src[b + 2]);\n dst.push(src[c + 0], src[c + 1], src[c + 2]);\n },\n addColor: function (a, b, c) {\n var src = this.colors;\n var dst = this.object.geometry.colors;\n dst.push(src[a + 0], src[a + 1], src[a + 2]);\n dst.push(src[b + 0], src[b + 1], src[b + 2]);\n dst.push(src[c + 0], src[c + 1], src[c + 2]);\n },\n addUV: function (a, b, c) {\n var src = this.uvs;\n var dst = this.object.geometry.uvs;\n dst.push(src[a + 0], src[a + 1]);\n dst.push(src[b + 0], src[b + 1]);\n dst.push(src[c + 0], src[c + 1]);\n },\n addUVLine: function (a) {\n var src = this.uvs;\n var dst = this.object.geometry.uvs;\n dst.push(src[a + 0], src[a + 1]);\n },\n addFace: function (a, b, c, ua, ub, uc, na, nb, nc) {\n var vLen = this.vertices.length;\n var ia = this.parseVertexIndex(a, vLen);\n var ib = this.parseVertexIndex(b, vLen);\n var ic = this.parseVertexIndex(c, vLen);\n this.addVertex(ia, ib, ic);\n if (ua !== undefined && ua !== '') {\n var uvLen = this.uvs.length;\n ia = this.parseUVIndex(ua, uvLen);\n ib = this.parseUVIndex(ub, uvLen);\n ic = this.parseUVIndex(uc, uvLen);\n this.addUV(ia, ib, ic);\n }\n if (na !== undefined && na !== '') {\n // Normals are many times the same. If so, skip function call and parseInt.\n var nLen = this.normals.length;\n ia = this.parseNormalIndex(na, nLen);\n ib = na === nb ? ia : this.parseNormalIndex(nb, nLen);\n ic = na === nc ? ia : this.parseNormalIndex(nc, nLen);\n this.addNormal(ia, ib, ic);\n }\n if (this.colors.length > 0) {\n this.addColor(ia, ib, ic);\n }\n },\n addPointGeometry: function (vertices) {\n this.object.geometry.type = 'Points';\n var vLen = this.vertices.length;\n for (var vi = 0, l = vertices.length; vi < l; vi++) {\n this.addVertexPoint(this.parseVertexIndex(vertices[vi], vLen));\n }\n },\n addLineGeometry: function (vertices, uvs) {\n this.object.geometry.type = 'Line';\n var vLen = this.vertices.length;\n var uvLen = this.uvs.length;\n for (var vi = 0, l = vertices.length; vi < l; vi++) {\n this.addVertexLine(this.parseVertexIndex(vertices[vi], vLen));\n }\n for (var uvi = 0, l = uvs.length; uvi < l; uvi++) {\n this.addUVLine(this.parseUVIndex(uvs[uvi], uvLen));\n }\n }\n };\n state.startObject('', false);\n return state;\n }\n //\n function OBJLoader(manager) {\n this.manager = (manager !== undefined) ? manager : THREE.DefaultLoadingManager;\n this.materials = null;\n }\n OBJLoader.prototype = {\n constructor: OBJLoader,\n load: function (url, onLoad, onProgress, onError) {\n var scope = this;\n var loader = new THREE.FileLoader(scope.manager);\n loader.setPath(this.path);\n loader.load(url, function (text) {\n onLoad(scope.parse(text));\n }, onProgress, onError);\n },\n setPath: function (value) {\n this.path = value;\n },\n setMaterials: function (materials) {\n this.materials = materials;\n return this;\n },\n parse: function (text) {\n console.time('OBJLoader');\n var state = new ParserState();\n if (text.indexOf('\\r\\n') !== - 1) {\n // This is faster than String.split with regex that splits on both\n text = text.replace(/\\r\\n/g, '\\n');\n }\n if (text.indexOf('\\\\\\n') !== - 1) {\n // join lines separated by a line continuation character (\\)\n text = text.replace(/\\\\\\n/g, '');\n }\n var lines = text.split('\\n');\n var line = '', lineFirstChar = '';\n var lineLength = 0;\n var result = [];\n // Faster to just trim left side of the line. Use if available.\n var trimLeft = (typeof ''.trimLeft === 'function');\n for (var i = 0, l = lines.length; i < l; i++) {\n line = lines[i];\n line = trimLeft ? line.trimLeft() : line.trim();\n lineLength = line.length;\n if (lineLength === 0) continue;\n lineFirstChar = line.charAt(0);\n // @todo invoke passed in handler if any\n if (lineFirstChar === '#') continue;\n if (lineFirstChar === 'v') {\n var data = line.split(/\\s+/);\n switch (data[0]) {\n case 'v':\n state.vertices.push(\n parseFloat(data[1]),\n parseFloat(data[2]),\n parseFloat(data[3])\n );\n if (data.length === 8) {\n state.colors.push(\n parseFloat(data[4]),\n parseFloat(data[5]),\n parseFloat(data[6])\n );\n }\n break;\n case 'vn':\n state.normals.push(\n parseFloat(data[1]),\n parseFloat(data[2]),\n parseFloat(data[3])\n );\n break;\n case 'vt':\n state.uvs.push(\n parseFloat(data[1]),\n parseFloat(data[2])\n );\n break;\n }\n } else if (lineFirstChar === 'f') {\n var lineData = line.substr(1).trim();\n var vertexData = lineData.split(/\\s+/);\n var faceVertices = [];\n // Parse the face vertex data into an easy to work with format\n for (var j = 0, jl = vertexData.length; j < jl; j++) {\n var vertex = vertexData[j];\n if (vertex.length > 0) {\n var vertexParts = vertex.split('/');\n faceVertices.push(vertexParts);\n }\n }\n // Draw an edge between the first vertex and all subsequent vertices to form an n-gon\n var v1 = faceVertices[0];\n for (var j = 1, jl = faceVertices.length - 1; j < jl; j++) {\n var v2 = faceVertices[j];\n var v3 = faceVertices[j + 1];\n state.addFace(\n v1[0], v2[0], v3[0],\n v1[1], v2[1], v3[1],\n v1[2], v2[2], v3[2]\n );\n }\n } else if (lineFirstChar === 'l') {\n var lineParts = line.substring(1).trim().split(\" \");\n var lineVertices = [], lineUVs = [];\n if (line.indexOf(\"/\") === - 1) {\n lineVertices = lineParts;\n } else {\n for (var li = 0, llen = lineParts.length; li < llen; li++) {\n var parts = lineParts[li].split(\"/\");\n if (parts[0] !== \"\") lineVertices.push(parts[0]);\n if (parts[1] !== \"\") lineUVs.push(parts[1]);\n }\n }\n state.addLineGeometry(lineVertices, lineUVs);\n } else if (lineFirstChar === 'p') {\n var lineData = line.substr(1).trim();\n var pointData = lineData.split(\" \");\n state.addPointGeometry(pointData);\n } else if ((result = object_pattern.exec(line)) !== null) {\n // o object_name\n // or\n // g group_name\n // WORKAROUND: https://bugs.chromium.org/p/v8/issues/detail?id=2869\n // var name = result[ 0 ].substr( 1 ).trim();\n var name = (\" \" + result[0].substr(1).trim()).substr(1);\n state.startObject(name);\n } else if (material_use_pattern.test(line)) {\n // material\n state.object.startMaterial(line.substring(7).trim(), state.materialLibraries);\n } else if (material_library_pattern.test(line)) {\n // mtl file\n state.materialLibraries.push(line.substring(7).trim());\n } else if (lineFirstChar === 's') {\n result = line.split(' ');\n // smooth shading\n // @todo Handle files that have varying smooth values for a set of faces inside one geometry,\n // but does not define a usemtl for each face set.\n // This should be detected and a dummy material created (later MultiMaterial and geometry groups).\n // This requires some care to not create extra material on each smooth value for \"normal\" obj files.\n // where explicit usemtl defines geometry groups.\n // Example asset: examples/models/obj/cerberus/Cerberus.obj\n\t\t\t\t\t/*\n\t\t\t\t\t * http://paulbourke.net/dataformats/obj/\n\t\t\t\t\t * or\n\t\t\t\t\t * http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf\n\t\t\t\t\t *\n\t\t\t\t\t * From chapter \"Grouping\" Syntax explanation \"s group_number\":\n\t\t\t\t\t * \"group_number is the smoothing group number. To turn off smoothing groups, use a value of 0 or off.\n\t\t\t\t\t * Polygonal elements use group numbers to put elements in different smoothing groups. For free-form\n\t\t\t\t\t * surfaces, smoothing groups are either turned on or off; there is no difference between values greater\n\t\t\t\t\t * than 0.\"\n\t\t\t\t\t */\n if (result.length > 1) {\n var value = result[1].trim().toLowerCase();\n state.object.smooth = (value !== '0' && value !== 'off');\n } else {\n // ZBrush can produce \"s\" lines #11707\n state.object.smooth = true;\n }\n var material = state.object.currentMaterial();\n if (material) material.smooth = state.object.smooth;\n } else {\n // Handle null terminated files without exception\n if (line === '\\0') continue;\n throw new Error('THREE.OBJLoader: Unexpected line: \"' + line + '\"');\n }\n }\n state.finalize();\n var container = new THREE.Group();\n container.materialLibraries = [].concat(state.materialLibraries);\n for (var i = 0, l = state.objects.length; i < l; i++) {\n var object = state.objects[i];\n var geometry = object.geometry;\n var materials = object.materials;\n var isLine = (geometry.type === 'Line');\n var isPoints = (geometry.type === 'Points');\n var hasVertexColors = false;\n // Skip o/g line declarations that did not follow with any faces\n if (geometry.vertices.length === 0) continue;\n var buffergeometry = new THREE.BufferGeometry();\n buffergeometry.addAttribute('position', new THREE.Float32BufferAttribute(geometry.vertices, 3));\n if (geometry.normals.length > 0) {\n buffergeometry.addAttribute('normal', new THREE.Float32BufferAttribute(geometry.normals, 3));\n } else {\n buffergeometry.computeVertexNormals();\n }\n if (geometry.colors.length > 0) {\n hasVertexColors = true;\n buffergeometry.addAttribute('color', new THREE.Float32BufferAttribute(geometry.colors, 3));\n }\n if (geometry.uvs.length > 0) {\n buffergeometry.addAttribute('uv', new THREE.Float32BufferAttribute(geometry.uvs, 2));\n }\n // Create materials\n var createdMaterials = [];\n for (var mi = 0, miLen = materials.length; mi < miLen; mi++) {\n var sourceMaterial = materials[mi];\n var material = undefined;\n if (this.materials !== null) {\n material = this.materials.create(sourceMaterial.name);\n // mtl etc. loaders probably can't create line materials correctly, copy properties to a line material.\n if (isLine && material && !(material instanceof THREE.LineBasicMaterial)) {\n var materialLine = new THREE.LineBasicMaterial();\n materialLine.copy(material);\n materialLine.lights = false; // TOFIX\n material = materialLine;\n } else if (isPoints && material && !(material instanceof THREE.PointsMaterial)) {\n var materialPoints = new THREE.PointsMaterial({ size: 10, sizeAttenuation: false });\n materialLine.copy(material);\n material = materialPoints;\n }\n }\n if (!material) {\n if (isLine) {\n material = new THREE.LineBasicMaterial();\n } else if (isPoints) {\n material = new THREE.PointsMaterial({ size: 1, sizeAttenuation: false });\n } else {\n material = new THREE.MeshPhongMaterial();\n }\n material.name = sourceMaterial.name;\n }\n material.flatShading = sourceMaterial.smooth ? false : true;\n material.vertexColors = hasVertexColors ? THREE.VertexColors : THREE.NoColors;\n createdMaterials.push(material);\n }\n // Create mesh\n var mesh;\n if (createdMaterials.length > 1) {\n for (var mi = 0, miLen = materials.length; mi < miLen; mi++) {\n var sourceMaterial = materials[mi];\n buffergeometry.addGroup(sourceMaterial.groupStart, sourceMaterial.groupCount, mi);\n }\n if (isLine) {\n mesh = new THREE.LineSegments(buffergeometry, createdMaterials);\n } else if (isPoints) {\n mesh = new THREE.Points(buffergeometry, createdMaterials);\n } else {\n mesh = new THREE.Mesh(buffergeometry, createdMaterials);\n }\n } else {\n if (isLine) {\n mesh = new THREE.LineSegments(buffergeometry, createdMaterials[0]);\n } else if (isPoints) {\n mesh = new THREE.Points(buffergeometry, createdMaterials[0]);\n } else {\n mesh = new THREE.Mesh(buffergeometry, createdMaterials[0]);\n }\n }\n mesh.name = object.name;\n container.add(mesh);\n }\n console.timeEnd('OBJLoader');\n return container;\n }\n };\n return OBJLoader;\n})();\nmodule.exports = OBJLoader;\n","/**\n * Loads a Wavefront .mtl file specifying materials\n *\n * @author angelxuanchang\n */\n\nvar THREE = window.THREE || require('three');\nlet MTLLoader;\n\nMTLLoader = function( manager ) {\n\n\tthis.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;\n\n};\n\nObject.assign( MTLLoader.prototype, THREE.EventDispatcher.prototype, {\n\n\t/**\n\t * Loads and parses a MTL asset from a URL.\n\t *\n\t * @param {String} url - URL to the MTL file.\n\t * @param {Function} [onLoad] - Callback invoked with the loaded object.\n\t * @param {Function} [onProgress] - Callback for download progress.\n\t * @param {Function} [onError] - Callback for download errors.\n\t *\n\t * @see setPath setTexturePath\n\t *\n\t * @note In order for relative texture references to resolve correctly\n\t * you must call setPath and/or setTexturePath explicitly prior to load.\n\t */\n\tload: function ( url, onLoad, onProgress, onError ) {\n\n\t\tvar scope = this;\n\n\t\tvar loader = new THREE.FileLoader( this.manager );\n\t\tloader.setPath( this.path );\n\t\tloader.load( url, function ( text ) {\n\n\t\t\tonLoad( scope.parse( text ) );\n\n\t\t}, onProgress, onError );\n\n\t},\n\n\t/**\n\t * Set base path for resolving references.\n\t * If set this path will be prepended to each loaded and found reference.\n\t *\n\t * @see setTexturePath\n\t * @param {String} path\n\t *\n\t * @example\n\t * mtlLoader.setPath( 'assets/obj/' );\n\t * mtlLoader.load( 'my.mtl', ... );\n\t */\n\tsetPath: function ( path ) {\n\n\t\tthis.path = path;\n\n\t},\n\n\t/**\n\t * Set base path for resolving texture references.\n\t * If set this path will be prepended found texture reference.\n\t * If not set and setPath is, it will be used as texture base path.\n\t *\n\t * @see setPath\n\t * @param {String} path\n\t *\n\t * @example\n\t * mtlLoader.setPath( 'assets/obj/' );\n\t * mtlLoader.setTexturePath( 'assets/textures/' );\n\t * mtlLoader.load( 'my.mtl', ... );\n\t */\n\tsetTexturePath: function( path ) {\n\n\t\tthis.texturePath = path;\n\n\t},\n\n\tsetBaseUrl: function( path ) {\n\n\t\tconsole.warn( 'THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead.' );\n\n\t\tthis.setTexturePath( path );\n\n\t},\n\n\tsetCrossOrigin: function ( value ) {\n\n\t\tthis.crossOrigin = value;\n\n\t},\n\n\tsetMaterialOptions: function ( value ) {\n\n\t\tthis.materialOptions = value;\n\n\t},\n\n\t/**\n\t * Parses a MTL file.\n\t *\n\t * @param {String} text - Content of MTL file\n\t * @return {THREE.MTLLoader.MaterialCreator}\n\t *\n\t * @see setPath setTexturePath\n\t *\n\t * @note In order for relative texture references to resolve correctly\n\t * you must call setPath and/or setTexturePath explicitly prior to parse.\n\t */\n\tparse: function ( text ) {\n\n\t\tvar lines = text.split( '\\n' );\n\t\tvar info = {};\n\t\tvar delimiter_pattern = /\\s+/;\n\t\tvar materialsInfo = {};\n\n\t\tfor ( var i = 0; i < lines.length; i ++ ) {\n\n\t\t\tvar line = lines[ i ];\n\t\t\tline = line.trim();\n\n\t\t\tif ( line.length === 0 || line.charAt( 0 ) === '#' ) {\n\n\t\t\t\t// Blank line or comment ignore\n\t\t\t\tcontinue;\n\n\t\t\t}\n\n\t\t\tvar pos = line.indexOf( ' ' );\n\n\t\t\tvar key = ( pos >= 0 ) ? line.substring( 0, pos ) : line;\n\t\t\tkey = key.toLowerCase();\n\n\t\t\tvar value = ( pos >= 0 ) ? line.substring( pos + 1 ) : '';\n\t\t\tvalue = value.trim();\n\n\t\t\tif ( key === 'newmtl' ) {\n\n\t\t\t\t// New material\n\n\t\t\t\tinfo = { name: value };\n\t\t\t\tmaterialsInfo[ value ] = info;\n\n\t\t\t} else if ( info ) {\n\n\t\t\t\tif ( key === 'ka' || key === 'kd' || key === 'ks' ) {\n\n\t\t\t\t\tvar ss = value.split( delimiter_pattern, 3 );\n\t\t\t\t\tinfo[ key ] = [ parseFloat( ss[ 0 ] ), parseFloat( ss[ 1 ] ), parseFloat( ss[ 2 ] ) ];\n\n\t\t\t\t} else {\n\n\t\t\t\t\tinfo[ key ] = value;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tvar materialCreator = new MTLLoader.MaterialCreator( this.texturePath || this.path, this.materialOptions );\n\t\tmaterialCreator.setCrossOrigin( this.crossOrigin );\n\t\tmaterialCreator.setManager( this.manager );\n\t\tmaterialCreator.setMaterials( materialsInfo );\n\t\treturn materialCreator;\n\n\t}\n\n} );\n\n/**\n * Create a new THREE-MTLLoader.MaterialCreator\n * @param baseUrl - Url relative to which textures are loaded\n * @param options - Set of options on how to construct the materials\n * side: Which side to apply the material\n * THREE.FrontSide (default), THREE.BackSide, THREE.DoubleSide\n * wrap: What type of wrapping to apply for textures\n * THREE.RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping\n * normalizeRGB: RGBs need to be normalized to 0-1 from 0-255\n * Default: false, assumed to be already normalized\n * ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's\n * Default: false\n * @constructor\n */\n\nMTLLoader.MaterialCreator = function( baseUrl, options ) {\n\n\tthis.baseUrl = baseUrl || '';\n\tthis.options = options;\n\tthis.materialsInfo = {};\n\tthis.materials = {};\n\tthis.materialsArray = [];\n\tthis.nameLookup = {};\n\n\tthis.side = ( this.options && this.options.side ) ? this.options.side : THREE.FrontSide;\n\tthis.wrap = ( this.options && this.options.wrap ) ? this.options.wrap : THREE.RepeatWrapping;\n\n};\n\nMTLLoader.MaterialCreator.prototype = {\n\n\tconstructor: MTLLoader.MaterialCreator,\n\n\tsetCrossOrigin: function ( value ) {\n\n\t\tthis.crossOrigin = value;\n\n\t},\n\n\tsetManager: function ( value ) {\n\n\t\tthis.manager = value;\n\n\t},\n\n\tsetMaterials: function( materialsInfo ) {\n\n\t\tthis.materialsInfo = this.convert( materialsInfo );\n\t\tthis.materials = {};\n\t\tthis.materialsArray = [];\n\t\tthis.nameLookup = {};\n\n\t},\n\n\tconvert: function( materialsInfo ) {\n\n\t\tif ( ! this.options ) return materialsInfo;\n\n\t\tvar converted = {};\n\n\t\tfor ( var mn in materialsInfo ) {\n\n\t\t\t// Convert materials info into normalized form based on options\n\n\t\t\tvar mat = materialsInfo[ mn ];\n\n\t\t\tvar covmat = {};\n\n\t\t\tconverted[ mn ] = covmat;\n\n\t\t\tfor ( var prop in mat ) {\n\n\t\t\t\tvar save = true;\n\t\t\t\tvar value = mat[ prop ];\n\t\t\t\tvar lprop = prop.toLowerCase();\n\n\t\t\t\tswitch ( lprop ) {\n\n\t\t\t\t\tcase 'kd':\n\t\t\t\t\tcase 'ka':\n\t\t\t\t\tcase 'ks':\n\n\t\t\t\t\t\t// Diffuse color (color under white light) using RGB values\n\n\t\t\t\t\t\tif ( this.options && this.options.normalizeRGB ) {\n\n\t\t\t\t\t\t\tvalue = [ value[ 0 ] / 255, value[ 1 ] / 255, value[ 2 ] / 255 ];\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( this.options && this.options.ignoreZeroRGBs ) {\n\n\t\t\t\t\t\t\tif ( value[ 0 ] === 0 && value[ 1 ] === 0 && value[ 2 ] === 0 ) {\n\n\t\t\t\t\t\t\t\t// ignore\n\n\t\t\t\t\t\t\t\tsave = false;\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ( save ) {\n\n\t\t\t\t\tcovmat[ lprop ] = value;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn converted;\n\n\t},\n\n\tpreload: function () {\n\n\t\tfor ( var mn in this.materialsInfo ) {\n\n\t\t\tthis.create( mn );\n\n\t\t}\n\n\t},\n\n\tgetIndex: function( materialName ) {\n\n\t\treturn this.nameLookup[ materialName ];\n\n\t},\n\n\tgetAsArray: function() {\n\n\t\tvar index = 0;\n\n\t\tfor ( var mn in this.materialsInfo ) {\n\n\t\t\tthis.materialsArray[ index ] = this.create( mn );\n\t\t\tthis.nameLookup[ mn ] = index;\n\t\t\tindex ++;\n\n\t\t}\n\n\t\treturn this.materialsArray;\n\n\t},\n\n\tcreate: function ( materialName ) {\n\n\t\tif ( this.materials[ materialName ] === undefined ) {\n\n\t\t\tthis.createMaterial_( materialName );\n\n\t\t}\n\n\t\treturn this.materials[ materialName ];\n\n\t},\n\n\tcreateMaterial_: function ( materialName ) {\n\n\t\t// Create material\n\n\t\tvar mat = this.materialsInfo[ materialName ];\n\t\tvar params = {\n\n\t\t\tname: materialName,\n\t\t\tside: this.side\n\n\t\t};\n\n\t\tvar resolveURL = function ( baseUrl, url ) {\n\n\t\t\tif ( typeof url !== 'string' || url === '' )\n\t\t\t\treturn '';\n\n\t\t\t// Absolute URL\n\t\t\tif ( /^https?:\\/\\//i.test( url ) ) {\n\t\t\t\treturn url;\n\t\t\t}\n\n\t\t\treturn baseUrl + url;\n\t\t};\n\n\t\tfor ( var prop in mat ) {\n\n\t\t\tvar value = mat[ prop ];\n\n\t\t\tif ( value === '' ) continue;\n\n\t\t\tswitch ( prop.toLowerCase() ) {\n\n\t\t\t\t// Ns is material specular exponent\n\n\t\t\t\tcase 'kd':\n\n\t\t\t\t\t// Diffuse color (color under white light) using RGB values\n\n\t\t\t\t\tparams.color = new THREE.Color().fromArray( value );\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ks':\n\n\t\t\t\t\t// Specular color (color when light is reflected from shiny surface) using RGB values\n\t\t\t\t\tparams.specular = new THREE.Color().fromArray( value );\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'map_kd':\n\n\t\t\t\t\t// Diffuse texture map\n\n\t\t\t\t\tif ( params.map ) break; // Keep the first encountered texture\n\n\t\t\t\t\tvar texParams = this.getTextureParams( value, params );\n\n\t\t\t\t\tparams.map = this.loadTexture( resolveURL( this.baseUrl, texParams.url ) );\n\t\t\t\t\tparams.map.repeat.copy( texParams.scale );\n\t\t\t\t\tparams.map.offset.copy( texParams.offset );\n\n\t\t\t\t\tparams.map.wrapS = this.wrap;\n\t\t\t\t\tparams.map.wrapT = this.wrap;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'map_ks':\n\n\t\t\t\t\t// Specular map\n\n\t\t\t\t\tif ( params.specularMap ) break; // Keep the first encountered texture\n\n\t\t\t\t\tparams.specularMap = this.loadTexture( resolveURL( this.baseUrl, value ) );\n\t\t\t\t\tparams.specularMap.wrapS = this.wrap;\n\t\t\t\t\tparams.specularMap.wrapT = this.wrap;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ns':\n\n\t\t\t\t\t// The specular exponent (defines the focus of the specular highlight)\n\t\t\t\t\t// A high exponent results in a tight, concentrated highlight. Ns values normally range from 0 to 1000.\n\n\t\t\t\t\tparams.shininess = parseFloat( value );\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'd':\n\n\t\t\t\t\tif ( value < 1 ) {\n\n\t\t\t\t\t\tparams.opacity = value;\n\t\t\t\t\t\tparams.transparent = true;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'Tr':\n\n\t\t\t\t\tif ( value > 0 ) {\n\n\t\t\t\t\t\tparams.opacity = 1 - value;\n\t\t\t\t\t\tparams.transparent = true;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'map_bump':\n\t\t\t\tcase 'bump':\n\n\t\t\t\t\t// Bump texture map\n\n\t\t\t\t\tif ( params.bumpMap ) break; // Keep the first encountered texture\n\n\t\t\t\t\tvar texParams = this.getTextureParams( value, params );\n\n\t\t\t\t\tparams.bumpMap = this.loadTexture( resolveURL( this.baseUrl, texParams.url ) );\n\t\t\t\t\tparams.bumpMap.repeat.copy( texParams.scale );\n\t\t\t\t\tparams.bumpMap.offset.copy( texParams.offset );\n\n\t\t\t\t\tparams.bumpMap.wrapS = this.wrap;\n\t\t\t\t\tparams.bumpMap.wrapT = this.wrap;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t}\n\n\t\tthis.materials[ materialName ] = new THREE.MeshPhongMaterial( params );\n\t\treturn this.materials[ materialName ];\n\t},\n\n\tgetTextureParams: function( value, matParams ) {\n\n\t\tvar texParams = {\n\n\t\t\tscale: new THREE.Vector2( 1, 1 ),\n\t\t\toffset: new THREE.Vector2( 0, 0 ),\n\n\t\t };\n\n\t\tvar items = value.split(/\\s+/);\n\t\tvar pos;\n\n\t\tpos = items.indexOf('-bm');\n\t\tif (pos >= 0) {\n\n\t\t\tmatParams.bumpScale = parseFloat( items[pos+1] );\n\t\t\titems.splice( pos, 2 );\n\n\t\t}\n\n\t\tpos = items.indexOf('-s');\n\t\tif (pos >= 0) {\n\n\t\t\ttexParams.scale.set( parseFloat( items[pos+1] ), parseFloat( items[pos+2] ) );\n\t\t\titems.splice( pos, 4 ); // we expect 3 parameters here!\n\n\t\t}\n\n\t\tpos = items.indexOf('-o');\n\t\tif (pos >= 0) {\n\n\t\t\ttexParams.offset.set( parseFloat( items[pos+1] ), parseFloat( items[pos+2] ) );\n\t\t\titems.splice( pos, 4 ); // we expect 3 parameters here!\n\n\t\t}\n\n\t\ttexParams.url = items.join(' ').trim();\n\t\treturn texParams;\n\n\t},\n\n\tloadTexture: function ( url, mapping, onLoad, onProgress, onError ) {\n\n\t\tvar texture;\n\t\tvar loader = THREE.Loader.Handlers.get( url );\n\t\tvar manager = ( this.manager !== undefined ) ? this.manager : THREE.DefaultLoadingManager;\n\n\t\tif ( loader === null ) {\n\n\t\t\tloader = new THREE.TextureLoader( manager );\n\n\t\t}\n\n\t\tif ( loader.setCrossOrigin ) loader.setCrossOrigin( this.crossOrigin );\n\t\ttexture = loader.load( url, onLoad, onProgress, onError );\n\n\t\tif ( mapping !== undefined ) texture.mapping = mapping;\n\n\t\treturn texture;\n\n\t}\n\n};\n\nmodule.exports = MTLLoader;\n","import React from 'react';\nimport * as Three from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\nimport path from 'path';\n\nlet cached3DDoor = null;\n\nconst STYLE_HOLE_BASE = {stroke: '#000', strokeWidth: '3px', fill: '#000'};\nconst STYLE_HOLE_SELECTED = {stroke: '#0096fd', strokeWidth: '4px', fill: '#0096fd', cursor: 'move'};\nconst STYLE_ARC_BASE = {stroke: '#000', strokeWidth: '3px', strokeDasharray: '5,5', fill: 'none'};\nconst STYLE_ARC_SELECTED = {stroke: '#0096fd', strokeWidth: '4px', strokeDasharray: '5,5', fill: 'none', cursor: 'move'};\nconst EPSILON = 3;\n\nexport default {\n name: 'door',\n prototype: 'holes',\n\n info: {\n title: 'door',\n tag: ['door'],\n description: 'Wooden door',\n image: require('./door.png')\n },\n\n properties: {\n width: {\n label: 'Width',\n type: 'length-measure',\n defaultValue: {\n length: 80\n }\n },\n height: {\n label: 'Height',\n type: 'length-measure',\n defaultValue: {\n length: 215\n }\n },\n altitude: {\n label: 'Altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0\n }\n },\n thickness: {\n label: 'Thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30\n }\n },\n flip_orizzontal: {\n label: 'flip orizzontale',\n type: 'checkbox',\n defaultValue: false,\n values: {\n 'none': false,\n 'yes': true\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n let flip = element.properties.get('flip_orizzontal');\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -EPSILON} L${holeWidth} ${-EPSILON} L${holeWidth} ${EPSILON} L${0} ${EPSILON} z`;\n let arcPath = `M${0},${0} A${holeWidth},${holeWidth} 0 0,1 ${holeWidth},${holeWidth}`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\n let length = element.properties.get('width').get('length');\n\n if(flip == false) {\n return (\n \n \n \n \n \n )\n }\n else{\n return (\n \n \n \n \n \n )\n }\n },\n\n render3D: function (element, layer, scene) {\n let onLoadItem = (object) => {\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n\n object.scale.set(width / initialWidth, height / initialHeight,\n thickness / initialThickness);\n\n return object;\n };\n\n if(cached3DDoor) {\n return Promise.resolve(onLoadItem(cached3DDoor.clone()));\n }\n\n let mtl = require('./door.mtl');\n let obj = require('./door.obj');\n let img = require('./texture.jpg');\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cached3DDoor = object;\n return onLoadItem(cached3DDoor.clone())\n })\n\n }\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n * @return {null}\n */\nexport default function If({condition, style, children}) {\n return condition ? ( Array.isArray(children) ?
{children}
: children ) : null;\n}\n\nIf.propTypes = {\n condition: PropTypes.bool.isRequired,\n style: PropTypes.object\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/door-double/door_double.png\";","import React from 'react';\nimport * as Three from 'three';\n\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\nconst metalBlue = new Three.MeshLambertMaterial({color: 0xB7CEEC});\nconst grey = new Three.MeshLambertMaterial({color: 0xD2B06A});\nconst darkGrey = new Three.MeshLambertMaterial({color:0xFFEFCE});\n\nconst boxMaterials = [grey, grey, grey, grey,darkGrey,darkGrey];\n\nfunction makeDoor(width,height,thickness){\n\n let door_double = new Three.Mesh();\n\n let LongDoorGeometry = new Three.BoxGeometry(.75*width,height,thickness);\n let longDoor = new Three.Mesh(LongDoorGeometry,boxMaterials);\n longDoor.position.x -= width*.25 ;\n door_double.add(longDoor);\n\n let ShortDoorGeometry = new Three.BoxGeometry(.25*width,height,thickness);\n let shortDoor = new Three.Mesh(ShortDoorGeometry,boxMaterials);\n shortDoor.position.x += width*0.25;\n shortDoor.position.z += thickness/10;\n door_double.add(shortDoor);\n\n let handle = makeHandle(width);\n handle.position.set(width/20,height/40,thickness/2+thickness/10);\n handle.rotation.z += Math.PI;\n handle.rotation.x += Math.PI/2;\n door_double.add(handle);\n\n let handleBase = makeHandleBase();\n handleBase.position.set(width/20,0,thickness/2);\n handleBase.rotation.x = 0;\n door_double.add(handleBase);\n\n let handle2 = makeHandle(width);\n handle2.position.set(width/20,height/40,-thickness/2-thickness/10);\n handle2.rotation.z += Math.PI;\n handle2.rotation.x -= Math.PI/2;\n door_double.add(handle2);\n\n let handleBase2 = makeHandleBase();\n handleBase2.position.set(width/20,0,-thickness/2);\n handleBase2.rotation.x = 0;\n door_double.add(handleBase2);\n\n return door_double\n}\n\n\nfunction makeHandle(width) {\n\n let handle = new Three.Object3D();\n let geometry_p1 = new Three.CylinderGeometry(width/100, width/100, width/32.5, Math.round(32));\n let geometry_p2 = new Three.SphereGeometry(width/100, Math.round(32), Math.round(32));\n let geometry_p3 = new Three.CylinderGeometry(width/100, width/100, width/14.5, Math.round(32));\n let p1 = new Three.Mesh(geometry_p1, black);\n let p2 = new Three.Mesh(geometry_p2, black);\n let p3 = new Three.Mesh(geometry_p3, black);\n let p4 = new Three.Mesh(geometry_p2, black);\n p3.rotation.z = Math.PI / 2;\n p3.position.x = width/14.5 / 2;\n p2.position.y = -width/32.5 / 2;\n p4.position.y = -width/14.5 / 2;\n p3.add(p4);\n p2.add(p3);\n p1.add(p2);\n handle.add(p1);\n\n return handle;\n}\n\nfunction makeHandleBase() {\n\n let handleBase = new Three.Object3D();\n let geometryBase1 = new Three.BoxGeometry(7.6, 28, 2);\n let geometryBase2 = new Three.CylinderGeometry(3.6, 3.6, 2, Math.round(32));\n let lock = makeLock();\n let handleBase1 = new Three.Mesh(geometryBase1, black);\n let handleBase2 = new Three.Mesh(geometryBase2, black);\n lock.rotation.x = Math.PI / 2;\n lock.position.y = -3;\n handleBase2.rotation.x = Math.PI / 2;\n handleBase2.position.y = -3.3;\n handleBase2.scale.z = 1.5;\n handleBase1.add(lock);\n handleBase1.add(handleBase2);\n handleBase.add(handleBase1);\n\n return handleBase;\n}\n\nfunction makeLock() {\n\n let lock = new Three.Object3D();\n let LockGeometry1 = new Three.CylinderGeometry(1.5, 1.5, 4, Math.round(32));\n let lockGeometry2 = new Three.BoxGeometry(1.6, 4, 4);\n let lockGeometry3 = new Three.BoxGeometry(1.4, 4.06, 0.36);\n let lock_p1 = new Three.Mesh(LockGeometry1, metalBlue);\n let lock_p2 = new Three.Mesh(lockGeometry2, metalBlue);\n let lock_p3 = new Three.Mesh(lockGeometry3, grey);\n lock_p2.position.z = 1;\n lock_p1.add(lock_p2);\n lock_p1.add(lock_p3);\n lock.add(lock_p1);\n\n return lock;\n}\n\nexport default {\n name: 'double door',\n prototype: 'holes',\n\n info: {\n tag: ['door'],\n title: 'double door',\n description: 'iron door',\n image: require('./door_double.png')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 200,\n unit: 'cm'\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 215,\n unit: 'cm'\n }\n },\n thickness: {\n label: 'thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30,\n unit: 'cm'\n }\n },\n altitude: {\n label:'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n flip_horizontal: {\n label: 'flip',\n type: 'checkbox',\n defaultValue: false,\n values: {\n 'none': false,\n 'yes': true\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n const STYLE_HOLE_BASE = {stroke: '#ff0000', strokeWidth: '3px', fill: '#ff0000'};\n const STYLE_HOLE_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', fill: '#ff0000', cursor: 'move'};\n const STYLE_ARC_BASE = {stroke: '#ff0000', strokeWidth: '3px', strokeDasharray: '5,5', fill: 'none'};\n const STYLE_ARC_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', strokeDasharray: '5,5', fill: 'none', cursor: 'move'};\n\n let epsilon = 3;\n let flip = element.properties.get('flip_horizontal');\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let arcPath = `M${0},${0} A${holeWidth/4},${holeWidth/4} 0 0,1 ${holeWidth/4},${holeWidth/4}`;\n let arcPath2 =`M${0},${0} A${holeWidth/2+holeWidth/4},${holeWidth/2+holeWidth/4} 0 0,0 ${holeWidth/2+holeWidth/4},${holeWidth/2+holeWidth/4}`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\n let length = element.properties.get('width').get('length');\n\n\n if(flip){\n return (\n \n \n \n \n \n \n \n )\n }\n else {\n return (\n \n \n \n \n \n \n \n )\n }\n },\n\n render3D: function (element, layer, scene) {\n\n let flip = element.properties.get('flip_horizontal');\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n let door_double = new Three.Object3D();\n door_double.add(makeDoor(width,height,thickness).clone(width,height,thickness));\n\n let valuePosition = new Three.Box3().setFromObject(door_double);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(door_double, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n door_double.add(bbox);\n }\n\n if(flip) {\n door_double.rotation.y += Math.PI;\n door_double.position.x -= width/4;\n }\n\n door_double.position.y += newAltitude;\n door_double.position.x += width/8;\n door_double.scale.set( width / deltaX, height / deltaY,thickness / deltaZ);\n\n return Promise.resolve(door_double);\n\n }\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/lines/wall/textures/painted-normal.jpg\";","module.exports = __webpack_public_path__ + \"catalog/lines/wall/textures/painted.jpg\";","module.exports = __webpack_public_path__ + \"catalog/lines/wall/textures/bricks-normal.jpg\";","module.exports = __webpack_public_path__ + \"catalog/lines/wall/textures/bricks.jpg\";","module.exports = __webpack_public_path__ + \"catalog/lines/wall/wall.png\";","import {ElementsFactories} from 'react-planner';\n\nconst info = {\n title: 'wall',\n tag: ['wall'],\n description: 'Wall with bricks or painted',\n image: require('./wall.png'),\n visibility: {\n catalog: true,\n layerElementsVisible: true\n }\n};\n\nconst textures = {\n bricks: {\n name: 'Bricks',\n uri: require('./textures/bricks.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n normal: {\n uri: require('./textures/bricks-normal.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n normalScaleX: 0.8,\n normalScaleY: 0.8\n }\n },\n painted: {\n name:'Painted',\n uri: require('./textures/painted.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n normal: {\n uri: require('./textures/painted-normal.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n normalScaleX: 0.4,\n normalScaleY: 0.4\n }\n },\n};\n\nexport default ElementsFactories.WallFactory('wall', info, textures);\n\n","module.exports = __webpack_public_path__ + \"catalog/areas/area/textures/grass.jpg\";","module.exports = __webpack_public_path__ + \"catalog/areas/area/textures/strand-porcelain.jpg\";","/** @description Determines the distance between two points\n * @param {number} x0 Vertex 0 x\n * @param {number} y0 Vertex 0 y\n * @param {number} x1 Vertex 1 x\n * @param {number} y1 Vertex 1 y\n * @return {number}\n */\nimport {toFixedFloat, fAbs} from './math.js';\nimport {EPSILON} from '../constants';\n\nexport function compareVertices(v0, v1) {\n return v0.x === v1.x ? v0.y - v1.y : v0.x - v1.x;\n}\n\nexport function minVertex(v0, v1) {\n return compareVertices(v0, v1) > 0 ? v1 : v0;\n}\n\nexport function maxVertex(v0, v1) {\n return compareVertices(v0, v1) > 0 ? v0 : v1;\n}\n\nexport function orderVertices(vertices) {\n return vertices.sort(compareVertices);\n}\n\nexport function pointsDistance(x0, y0, x1, y1) {\n let diff_x = x0 - x1;\n let diff_y = y0 - y1;\n\n return Math.sqrt((diff_x * diff_x) + (diff_y * diff_y));\n}\n\nexport function verticesDistance(v1, v2) {\n\n let {x: x0, y: y0} = v1;\n let {x: x1, y: y1} = v2;\n\n return pointsDistance(x0, y0, x1, y1);\n}\n\nexport function horizontalLine(y) {\n return {a: 0, b: 1, c: -y};\n}\n\nexport function verticalLine(x) {\n return {a: 1, b: 0, c: -x};\n}\n\nexport function linePassingThroughTwoPoints(x1, y1, x2, y2) {\n if (x1 === x2 && y1 == y2) throw new Error('Geometry error');\n if (x1 === x2) return verticalLine(x);\n if (y1 === y2) return horizontalLine(y1);\n\n return {\n a: y1 - y2,\n b: x2 - x1,\n c: y2 * x1 - x2 * y1\n };\n}\n\nexport function distancePointFromLine(a, b, c, x, y) {\n //https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line\n return fAbs(a * x + b * y + c) / Math.sqrt(a * a + b * b);\n}\n\nexport function closestPointFromLine(a, b, c, x, y) {\n //https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line\n let denom = a * a + b * b;\n return {\n x: (b * (b * x - a * y) - a * c) / denom,\n y: ((a * -b * x + a * y) - b * c) / denom,\n }\n}\n\n/** @description Get point of intersection between two lines using ax+by+c line's equation\n * @param {number} a x coefficent of first line\n * @param {number} b y coefficent of first line\n * @param {number} c costant of first line\n * @param {number} j x coefficent of second line\n * @param {number} k y coefficent of second line\n * @param {number} l costant of second line\n * @return {object} {x,y} point's coordinates\n */\nexport function twoLinesIntersection(a, b, c, j, k, l) {\n let angularCoefficientsDiff = (b * j - a * k);\n\n if (angularCoefficientsDiff === 0) return undefined; //no intersection\n\n let y = (a * l - c * j) / angularCoefficientsDiff;\n let x = (c * k - b * l) / angularCoefficientsDiff;\n return {x, y};\n}\n\nexport function twoLineSegmentsIntersection(p1, p2, p3, p4) {\n //https://github.com/psalaets/line-intersect/blob/master/lib/check-intersection.js\n\n let {x: x1, y: y1} = p1;\n let {x: x2, y: y2} = p2;\n let {x: x3, y: y3} = p3;\n let {x: x4, y: y4} = p4;\n\n let denom = ((y4 - y3) * (x2 - x1)) - ((x4 - x3) * (y2 - y1));\n let numA = ((x4 - x3) * (y1 - y3)) - ((y4 - y3) * (x1 - x3));\n let numB = ((x2 - x1) * (y1 - y3)) - ((y2 - y1) * (x1 - x3));\n\n if (fAbs(denom) <= EPSILON) {\n if (fAbs(numA) <= EPSILON && fAbs(numB) <= EPSILON) {\n\n let comparator = (pa, pb) => pa.x === pb.x ? pa.y - pb.y : pa.x - pb.x;\n let line0 = [p1, p2].sort(comparator);\n let line1 = [p3.toJS(), p4.toJS()].sort(comparator);\n\n let [lineSX, lineDX] = [line0, line1].sort((lineA, lineB) => comparator(lineA[0], lineB[0]));\n\n if (lineSX[1].x === lineDX[0].x) {\n return {type: (lineDX[0].y <= lineSX[1].y) ? 'colinear' : 'none'};\n } else {\n return {type: (lineDX[0].x <= lineSX[1].x) ? 'colinear' : 'none'};\n }\n }\n return {type: 'parallel'};\n }\n\n let uA = numA / denom;\n let uB = numB / denom;\n\n if (uA >= (0 - EPSILON) && uA <= (1 + EPSILON) && uB >= (0 - EPSILON) && uB <= (1 + EPSILON)) {\n let point = {\n x: x1 + (uA * (x2 - x1)),\n y: y1 + (uA * (y2 - y1))\n };\n return {type: 'intersecting', point};\n }\n\n return {type: 'none'};\n}\n\nexport function distancePointFromLineSegment(x1, y1, x2, y2, xp, yp) {\n //http://stackoverflow.com/a/6853926/1398836\n\n let A = xp - x1;\n let B = yp - y1;\n let C = x2 - x1;\n let D = y2 - y1;\n\n let dot = A * C + B * D;\n let len_sq = C * C + D * D;\n let param = -1;\n if (len_sq != 0) //in case of 0 length line\n param = dot / len_sq;\n\n let xx, yy;\n\n if (param < 0) {\n xx = x1;\n yy = y1;\n }\n else if (param > 1) {\n xx = x2;\n yy = y2;\n }\n else {\n xx = x1 + param * C;\n yy = y1 + param * D;\n }\n\n let dx = xp - xx;\n let dy = yp - yy;\n return Math.sqrt(dx * dx + dy * dy);\n}\n\n/**\n *\n * @param x1 {number} x for first vertex of the segment\n * @param y1 {number} y for first vertex of the segment\n * @param x2 {number} x for second vertex of the segment\n * @param y2 {number} y for second vertex of the segment\n * @param xp {number} x for point we want to verify\n * @param yp {number} y for point we want to verify\n * @param maxDistance {number} the epsilon value used for comparisons\n * @returns {boolean} true if the point lies on the line segment false otherwise\n */\nexport function isPointOnLineSegment(x1, y1, x2, y2, xp, yp, maxDistance = EPSILON) {\n return distancePointFromLineSegment(x1, y1, x2, y2, xp, yp) <= maxDistance;\n}\n\nexport function closestPointFromLineSegment(x1, y1, x2, y2, xp, yp) {\n if (x1 === x2) return {x: x1, y: yp};\n if (y1 === y2) return {x: xp, y: y1};\n\n let m = (y2 - y1) / (x2 - x1);\n let q = y1 - m * x1;\n\n let mi = -1 / m;\n let qi = yp - mi * xp;\n\n let x = (qi - q) / (m - mi);\n let y = (m * x + q);\n\n return {x, y};\n}\n\nexport function pointPositionOnLineSegment(x1, y1, x2, y2, xp, yp) {\n let length = pointsDistance(x1, y1, x2, y2);\n let distance = pointsDistance(x1, y1, xp, yp);\n\n let offset = distance / length;\n if (x1 > x2) offset = mapRange(offset, 0, 1, 1, 0);\n\n return offset;\n}\n\nexport function mapRange(value, low1, high1, low2, high2) {\n return low2 + (high2 - low2) * (value - low1) / (high1 - low1);\n}\n\nexport function angleBetweenTwoPointsAndOrigin(x1, y1, x2, y2) {\n return -(Math.atan2(y1 - y2, x2 - x1)) * 180 / Math.PI;\n}\n\nexport function angleBetweenTwoPoints(x1, y1, x2, y2) {\n return Math.atan2(y2 - y1, x2 - x1);\n}\n\nexport function absAngleBetweenTwoPoints(x1, y1, x2, y2) {\n return Math.atan2(Math.abs(y2 - y1), Math.abs(x2 - x1));\n}\n\nexport function samePoints({x: x1, y: y1}, {x: x2, y: y2}) {\n return fAbs(x1 - x2) <= EPSILON && fAbs(y1 - y2) <= EPSILON;\n}\n\n/** @description Extend line based on coordinates and new line length\n * @param {number} x1 Vertex 1 x\n * @param {number} y1 Vertex 1 y\n * @param {number} x2 Vertex 2 x\n * @param {number} y2 Vertex 2 y\n * @param {number} newDistance New line length\n * @return {object}\n */\nexport function extendLine(x1, y1, x2, y2, newDistance, precision = 6) {\n let rad = angleBetweenTwoPoints( x1, y1, x2, y2 );\n\n return {\n x: toFixedFloat(x1 + (Math.cos(rad) * newDistance), precision),\n y: toFixedFloat(y1 + (Math.sin(rad) * newDistance), precision),\n };\n}\n\nexport function roundVertex(vertex, precision = 6) {\n vertex.set('x', toFixedFloat(vertex.get('x'), precision));\n vertex.set('y', toFixedFloat(vertex.get('y'), precision));\n\n return vertex;\n}\n\n//https://github.com/MartyWallace/PolyK\nexport function ContainsPoint(polygon, pointX, pointY) {\n let n = polygon.length >> 1;\n\n let ax, lup;\n let ay = polygon[2 * n - 3] - pointY;\n let bx = polygon[2 * n - 2] - pointX;\n let by = polygon[2 * n - 1] - pointY;\n\n if (bx === 0 && by === 0) return false; // point on edge\n\n // let lup = by > ay;\n for (let ii = 0; ii < n; ii++) {\n ax = bx;\n ay = by;\n bx = polygon[2 * ii] - pointX;\n by = polygon[2 * ii + 1] - pointY;\n if (bx === 0 && by === 0) return false; // point on edge\n if (ay === by) continue;\n lup = by > ay;\n }\n\n let depth = 0;\n for (let i = 0; i < n; i++) {\n ax = bx;\n ay = by;\n bx = polygon[2 * i] - pointX;\n by = polygon[2 * i + 1] - pointY;\n if (ay < 0 && by < 0) continue; // both 'up' or both 'down'\n if (ay > 0 && by > 0) continue; // both 'up' or both 'down'\n if (ax < 0 && bx < 0) continue; // both points on the left\n\n if (ay === by && Math.min(ax, bx) < 0) return true;\n if (ay === by) continue;\n\n let lx = ax + (bx - ax) * (-ay) / (by - ay);\n if (lx === 0) return false; // point on edge\n if (lx > 0) depth++;\n if (ay === 0 && lup && by > ay) depth--; // hit vertex, both up\n if (ay === 0 && !lup && by < ay) depth--; // hit vertex, both down\n lup = by > ay;\n }\n return (depth & 1) === 1;\n}\n\nexport function cosWithThreshold(alpha, threshold) {\n let cos = Math.cos(alpha);\n return cos < threshold ? 0 : cos;\n}\n\nexport function sinWithThreshold(alpha, threshold) {\n let sin = Math.sin(alpha);\n return sin < threshold ? 0 : sin;\n}\n\nexport function midPoint( x1, y1, x2, y2 ) {\n return { x: (x1+x2)/2, y: (y1+y2)/2 };\n}\n\nexport function verticesMidPoint( verticesArray ) {\n let res = verticesArray.reduce( ( incr, vertex ) => { return { x: incr.x + vertex.x, y: incr.y + vertex.y } }, { x: 0, y: 0 });\n return { x: res.x / verticesArray.length, y: res.y / verticesArray.length };\n}\n\nexport function rotatePointAroundPoint( px, py, ox, oy, theta ) {\n\n let thetaRad = theta * Math.PI / 180;\n\n let cos = Math.cos( thetaRad );\n let sin = Math.sin( thetaRad );\n\n let deltaX = px - ox;\n let deltaY = py - oy;\n\n return {\n x: cos * deltaX - sin * deltaY + ox,\n y: sin * deltaX + cos * deltaY + oy\n };\n\n}\n","module.exports = __webpack_public_path__ + \"catalog/areas/area/textures/ceramic-tile.jpg\";","module.exports = __webpack_public_path__ + \"catalog/areas/area/textures/tile1.jpg\";","module.exports = __webpack_public_path__ + \"catalog/areas/area/textures/parquet.jpg\";","import {ElementsFactories} from 'react-planner';\n\nlet info = {\n title: 'area',\n tag: ['area'],\n description: 'Generic Room',\n image: ''\n};\n\nlet textures = {\n parquet: {\n name: 'Parquet',\n uri: require('./textures/parquet.jpg'),\n lengthRepeatScale: 0.004,\n heightRepeatScale: 0.004,\n },\n tile1: {\n name: 'Tile1',\n uri: require('./textures/tile1.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n },\n ceramic: {\n name:'Ceramic Tile',\n uri: require('./textures/ceramic-tile.jpg'),\n lengthRepeatScale: 0.02,\n heightRepeatScale: 0.02\n },\n strand_porcelain: {\n name:'Strand Porcelain Tile',\n uri: require('./textures/strand-porcelain.jpg'),\n lengthRepeatScale: 0.02,\n heightRepeatScale: 0.02\n },\n grass: {\n name: 'Grass',\n uri: require('./textures/grass.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n }\n};\n\nexport default ElementsFactories.AreaFactory('area', info, textures);\n","import {\n Shape,\n MeshPhongMaterial,\n ShapeGeometry,\n Box3,\n TextureLoader,\n BackSide,\n FrontSide,\n Object3D,\n Mesh,\n MeshBasicMaterial,\n RepeatWrapping,\n Vector2,\n DoubleSide\n} from 'three';\nimport * as SharedStyle from '../../shared-style';\n\n/**\n * Apply a texture to a wall face\n * @param material: The material of the face\n * @param texture: The texture to load\n * @param length: The lenght of the face\n * @param height: The height of the face\n */\nconst applyTexture = (material, texture, length, height) => {\n let loader = new TextureLoader();\n\n if (texture) {\n material.map = loader.load(texture.uri);\n material.needsUpdate = true;\n material.map.wrapS = RepeatWrapping;\n material.map.wrapT = RepeatWrapping;\n material.map.repeat.set(length * texture.lengthRepeatScale, height * texture.heightRepeatScale);\n\n if (texture.normal) {\n material.normalMap = loader.load(texture.normal.uri);\n material.normalScale = new Vector2(texture.normal.normalScaleX, texture.normal.normalScaleY);\n material.normalMap.wrapS = RepeatWrapping;\n material.normalMap.wrapT = RepeatWrapping;\n material.normalMap.repeat.set(length * texture.normal.lengthRepeatScale, height * texture.normal.heightRepeatScale);\n }\n }\n};\n\n/**\n * Function that assign UV coordinates to a geometry\n * @param geometry\n */\nconst assignUVs = (geometry) => {\n geometry.computeBoundingBox();\n\n let {min, max} = geometry.boundingBox;\n\n let offset = new Vector2(0 - min.x, 0 - min.y);\n let range = new Vector2(max.x - min.x, max.y - min.y);\n\n geometry.faceVertexUvs[0] = geometry.faces.map((face) => {\n\n let v1 = geometry.vertices[face.a];\n let v2 = geometry.vertices[face.b];\n let v3 = geometry.vertices[face.c];\n\n return [\n new Vector2((v1.x + offset.x) / range.x, (v1.y + offset.y) / range.y),\n new Vector2((v2.x + offset.x) / range.x, (v2.y + offset.y) / range.y),\n new Vector2((v3.x + offset.x) / range.x, (v3.y + offset.y) / range.y)\n ];\n\n });\n\n geometry.uvsNeedUpdate = true;\n};\n\nexport function createArea(element, layer, scene, textures) {\n let vertices = [];\n\n element.vertices.forEach(vertexID => {\n vertices.push(layer.vertices.get(vertexID));\n });\n\n let textureName = element.properties.get('texture');\n let color = element.properties.get('patternColor');\n\n if (element.selected) {\n color = SharedStyle.AREA_MESH_COLOR.selected;\n } else if (textureName && textureName !== 'none') {\n color = SharedStyle.AREA_MESH_COLOR.unselected;\n }\n\n let shape = new Shape();\n shape.moveTo(vertices[0].x, vertices[0].y);\n for (let i = 1; i < vertices.length; i++) {\n shape.lineTo(vertices[i].x, vertices[i].y);\n }\n\n let areaMaterial = new MeshPhongMaterial({side: DoubleSide, color});\n\n /* Create holes for the area */\n element.holes.forEach(holeID => {\n let holeCoords = [];\n layer.getIn(['areas', holeID, 'vertices']).forEach(vertexID => {\n let {x, y} = layer.getIn(['vertices', vertexID]);\n holeCoords.push([x, y]);\n });\n holeCoords = holeCoords.reverse();\n let holeShape = createShape(holeCoords);\n shape.holes.push(holeShape);\n });\n\n let shapeGeometry = new ShapeGeometry(shape);\n assignUVs(shapeGeometry);\n\n let boundingBox = new Box3().setFromObject(new Mesh(shapeGeometry, new MeshBasicMaterial()));\n\n let width = boundingBox.max.x - boundingBox.min.x;\n let height = boundingBox.max.y - boundingBox.min.y;\n\n let texture = textures[textureName];\n\n applyTexture(areaMaterial, texture, width, height);\n\n let area = new Mesh(shapeGeometry, areaMaterial);\n\n area.rotation.x -= Math.PI / 2;\n area.name = 'floor';\n\n return Promise.resolve(area);\n}\n\nexport function updatedArea( element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild ) {\n let noPerf = () => { selfDestroy(); return selfBuild(); };\n let floor = mesh.getObjectByName('floor');\n\n if( differences[0] == 'selected' ) {\n let color = element.selected ? SharedStyle.AREA_MESH_COLOR.selected : ( element.properties.get('patternColor') || SharedStyle.AREA_MESH_COLOR.unselected );\n floor.material.color.set( color );\n }\n else if( differences[0] == 'properties' ){\n if( differences[1] === 'texture' ) {\n return noPerf();\n }\n }\n else return noPerf();\n\n return Promise.resolve(mesh);\n}\n\n/**\n * This function will create a shape given a list of coordinates\n * @param shapeCoords\n * @returns {Shape}\n */\nconst createShape = (shapeCoords) => {\n let shape = new Shape();\n shape.moveTo(shapeCoords[0][0], shapeCoords[0][1]);\n for (let i = 1; i < shapeCoords.length; i++) {\n shape.lineTo(shapeCoords[i][0], shapeCoords[i][1]);\n }\n return shape;\n};\n","import React from 'react';\nimport { createArea, updatedArea } from './area-factory-3d';\nimport * as SharedStyle from '../../shared-style';\nimport Translator from '../../translator/translator';\n\nlet translator = new Translator();\n\nexport default function AreaFactory(name, info, textures) {\n\n let areaElement = {\n name,\n prototype: 'areas',\n info: {\n ...info,\n visibility: {\n catalog: false,\n layerElementsVisible: false\n }\n },\n properties: {\n patternColor: {\n label: translator.t('color'),\n type: 'color',\n defaultValue: SharedStyle.AREA_MESH_COLOR.unselected\n },\n thickness: {\n label: translator.t('thickness'),\n type: 'length-measure',\n defaultValue: {\n length: 0,\n }\n }\n },\n render2D: function (element, layer, scene) {\n let path = '';\n\n ///print area path\n element.vertices.forEach((vertexID, ind) => {\n let vertex = layer.vertices.get(vertexID);\n path += (ind ? 'L' : 'M') + vertex.x + ' ' + vertex.y + ' ';\n });\n\n //add holes\n element.holes.forEach(areaID => {\n let area = layer.areas.get(areaID);\n\n area.vertices.reverse().forEach((vertexID, ind) => {\n let vertex = layer.vertices.get(vertexID);\n path += (ind ? 'L' : 'M') + vertex.x + ' ' + vertex.y + ' ';\n });\n\n });\n\n let fill = element.selected ? SharedStyle.AREA_MESH_COLOR.selected : element.properties.get('patternColor');\n\n return ();\n },\n\n render3D: function (element, layer, scene) {\n return createArea(element, layer, scene, textures)\n },\n\n updateRender3D: (element, layer, scene, mesh, oldElement, differences, selfDestroy, selfBuild) => {\n return updatedArea(element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild);\n }\n\n };\n\n if (textures && textures !== {}) {\n\n let textureValues = { 'none': 'None' };\n\n for (let textureName in textures) {\n textureValues[textureName] = textures[textureName].name\n }\n\n areaElement.properties.texture = {\n label: translator.t('texture'),\n type: 'enum',\n defaultValue: 'none',\n values: textureValues\n };\n\n }\n\n return areaElement\n\n}\n","/*jshint esversion: 6 */\nimport * as THREE from 'three';\n\nconst EPSILON = 1e-5,\n COPLANAR = 0,\n FRONT = 1,\n BACK = 2,\n SPANNING = 3;\n\nexport default class ThreeBSP {\n constructor(geometry) {\n // Convert THREE.Geometry to ThreeBSP\n var i, _length_i,\n face, vertex, faceVertexUvs, uvs,\n polygon,\n polygons = [],\n tree;\n\n this.Polygon = Polygon;\n this.Vertex = Vertex;\n this.Node = Node;\n if (geometry instanceof THREE.Geometry) {\n this.matrix = new THREE.Matrix4();\n } else if (geometry instanceof THREE.Mesh) {\n // #todo: add hierarchy support\n geometry.updateMatrix();\n this.matrix = geometry.matrix.clone();\n geometry = geometry.geometry;\n } else if (geometry instanceof Node) {\n this.tree = geometry;\n this.matrix = new THREE.Matrix4();\n return this;\n } else {\n throw 'ThreeBSP: Given geometry is unsupported';\n }\n\n for (i = 0, _length_i = geometry.faces.length; i < _length_i; i++) {\n face = geometry.faces[i];\n faceVertexUvs = geometry.faceVertexUvs[0][i];\n polygon = new Polygon();\n\n if (face instanceof THREE.Face3) {\n vertex = geometry.vertices[face.a];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[0].x, faceVertexUvs[0].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[0], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n\n vertex = geometry.vertices[face.b];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[1].x, faceVertexUvs[1].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[1], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n\n vertex = geometry.vertices[face.c];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[2].x, faceVertexUvs[2].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[2], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n } else if (typeof THREE.Face4) {\n vertex = geometry.vertices[face.a];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[0].x, faceVertexUvs[0].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[0], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n\n vertex = geometry.vertices[face.b];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[1].x, faceVertexUvs[1].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[1], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n\n vertex = geometry.vertices[face.c];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[2].x, faceVertexUvs[2].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[2], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n\n vertex = geometry.vertices[face.d];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[3].x, faceVertexUvs[3].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[3], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n } else {\n throw 'Invalid face type at index ' + i;\n }\n\n polygon.calculateProperties();\n polygons.push(polygon);\n }\n\n this.tree = new Node(polygons);\n }\n\n subtract(other_tree) {\n var a = this.tree.clone(),\n b = other_tree.tree.clone();\n\n a.invert();\n a.clipTo(b);\n b.clipTo(a);\n b.invert();\n b.clipTo(a);\n b.invert();\n a.build(b.allPolygons());\n a.invert();\n a = new ThreeBSP(a);\n a.matrix = this.matrix;\n return a;\n }\n\n union(other_tree) {\n var a = this.tree.clone(),\n b = other_tree.tree.clone();\n\n a.clipTo(b);\n b.clipTo(a);\n b.invert();\n b.clipTo(a);\n b.invert();\n a.build(b.allPolygons());\n a = new ThreeBSP(a);\n a.matrix = this.matrix;\n return a;\n }\n\n intersect(other_tree) {\n var a = this.tree.clone(),\n b = other_tree.tree.clone();\n\n a.invert();\n b.clipTo(a);\n b.invert();\n a.clipTo(b);\n b.clipTo(a);\n a.build(b.allPolygons());\n a.invert();\n a = new ThreeBSP(a);\n a.matrix = this.matrix;\n return a;\n }\n\n toGeometry() {\n var i, j,\n matrix = new THREE.Matrix4().getInverse(this.matrix),\n geometry = new THREE.Geometry(),\n polygons = this.tree.allPolygons(),\n polygon_count = polygons.length,\n polygon, polygon_vertice_count,\n vertice_dict = {},\n vertex_idx_a, vertex_idx_b, vertex_idx_c,\n vertex, face,\n verticeUvs;\n\n for (i = 0; i < polygon_count; i++) {\n polygon = polygons[i];\n polygon_vertice_count = polygon.vertices.length;\n\n for (j = 2; j < polygon_vertice_count; j++) {\n verticeUvs = [];\n\n vertex = polygon.vertices[0];\n verticeUvs.push(new THREE.Vector2(vertex.uv.x, vertex.uv.y));\n vertex = new THREE.Vector3(vertex.x, vertex.y, vertex.z);\n vertex.applyMatrix4(matrix);\n\n if (typeof vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] !== 'undefined') {\n vertex_idx_a = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z];\n } else {\n geometry.vertices.push(vertex);\n vertex_idx_a = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] = geometry.vertices.length - 1;\n }\n\n vertex = polygon.vertices[j - 1];\n verticeUvs.push(new THREE.Vector2(vertex.uv.x, vertex.uv.y));\n vertex = new THREE.Vector3(vertex.x, vertex.y, vertex.z);\n vertex.applyMatrix4(matrix);\n if (typeof vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] !== 'undefined') {\n vertex_idx_b = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z];\n } else {\n geometry.vertices.push(vertex);\n vertex_idx_b = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] = geometry.vertices.length - 1;\n }\n\n vertex = polygon.vertices[j];\n verticeUvs.push(new THREE.Vector2(vertex.uv.x, vertex.uv.y));\n vertex = new THREE.Vector3(vertex.x, vertex.y, vertex.z);\n vertex.applyMatrix4(matrix);\n if (typeof vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] !== 'undefined') {\n vertex_idx_c = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z];\n } else {\n geometry.vertices.push(vertex);\n vertex_idx_c = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] = geometry.vertices.length - 1;\n }\n\n face = new THREE.Face3(\n vertex_idx_a,\n vertex_idx_b,\n vertex_idx_c,\n new THREE.Vector3(polygon.normal.x, polygon.normal.y, polygon.normal.z)\n );\n\n geometry.faces.push(face);\n geometry.faceVertexUvs[0].push(verticeUvs);\n }\n\n }\n return geometry;\n }\n\n toMesh (material) {\n var geometry = this.toGeometry(),\n mesh = new THREE.Mesh(geometry, material);\n\n mesh.position.setFromMatrixPosition(this.matrix);\n mesh.rotation.setFromRotationMatrix(this.matrix);\n\n return mesh;\n }\n}\nclass Polygon {\n constructor(vertices, normal, w) {\n if (!( vertices instanceof Array )) {\n vertices = [];\n }\n\n this.vertices = vertices;\n if (vertices.length > 0) {\n this.calculateProperties();\n } else {\n this.normal = this.w = undefined;\n }\n }\n\n calculateProperties() {\n var a = this.vertices[0],\n b = this.vertices[1],\n c = this.vertices[2];\n\n this.normal = b.clone().subtract(a).cross(\n c.clone().subtract(a)\n ).normalize();\n\n this.w = this.normal.clone().dot(a);\n\n return this;\n }\n\n clone() {\n var i, vertice_count,\n polygon = new Polygon();\n\n for (i = 0, vertice_count = this.vertices.length; i < vertice_count; i++) {\n polygon.vertices.push(this.vertices[i].clone());\n }\n polygon.calculateProperties();\n\n return polygon;\n }\n\n flip() {\n var i, vertices = [];\n\n this.normal.multiplyScalar(-1);\n this.w *= -1;\n\n for (i = this.vertices.length - 1; i >= 0; i--) {\n vertices.push(this.vertices[i]);\n }\n this.vertices = vertices;\n\n return this;\n }\n\n classifyVertex(vertex) {\n var side_value = this.normal.dot(vertex) - this.w;\n\n if (side_value < -EPSILON) {\n return BACK;\n } else if (side_value > EPSILON) {\n return FRONT;\n } else {\n return COPLANAR;\n }\n }\n\n classifySide(polygon) {\n var i, vertex, classification,\n num_positive = 0,\n num_negative = 0,\n vertice_count = polygon.vertices.length;\n\n for (i = 0; i < vertice_count; i++) {\n vertex = polygon.vertices[i];\n classification = this.classifyVertex(vertex);\n if (classification === FRONT) {\n num_positive++;\n } else if (classification === BACK) {\n num_negative++;\n }\n }\n\n if (num_positive > 0 && num_negative === 0) {\n return FRONT;\n } else if (num_positive === 0 && num_negative > 0) {\n return BACK;\n } else if (num_positive === 0 && num_negative === 0) {\n return COPLANAR;\n } else {\n return SPANNING;\n }\n }\n\n splitPolygon(polygon, coplanar_front, coplanar_back, front, back) {\n var classification = this.classifySide(polygon);\n\n if (classification === COPLANAR) {\n\n ( this.normal.dot(polygon.normal) > 0 ? coplanar_front : coplanar_back ).push(polygon);\n\n } else if (classification === FRONT) {\n\n front.push(polygon);\n\n } else if (classification === BACK) {\n\n back.push(polygon);\n\n } else {\n\n var vertice_count,\n i, j, ti, tj, vi, vj,\n t, v,\n f = [],\n b = [];\n\n for (i = 0, vertice_count = polygon.vertices.length; i < vertice_count; i++) {\n\n j = (i + 1) % vertice_count;\n vi = polygon.vertices[i];\n vj = polygon.vertices[j];\n ti = this.classifyVertex(vi);\n tj = this.classifyVertex(vj);\n\n if (ti != BACK) f.push(vi);\n if (ti != FRONT) b.push(vi);\n if ((ti | tj) === SPANNING) {\n t = ( this.w - this.normal.dot(vi) ) / this.normal.dot(vj.clone().subtract(vi));\n v = vi.interpolate(vj, t);\n f.push(v);\n b.push(v);\n }\n }\n\n\n if (f.length >= 3) front.push(new Polygon(f).calculateProperties());\n if (b.length >= 3) back.push(new Polygon(b).calculateProperties());\n }\n }\n}\nclass Vertex {\n constructor(x, y, z, normal, uv) {\n this.x = x;\n this.y = y;\n this.z = z;\n this.normal = normal || new THREE.Vector3();\n this.uv = uv || new THREE.Vector2();\n }\n\n clone() {\n return new Vertex(this.x, this.y, this.z, this.normal.clone(), this.uv.clone());\n }\n\n add(vertex) {\n this.x += vertex.x;\n this.y += vertex.y;\n this.z += vertex.z;\n return this;\n }\n\n subtract(vertex) {\n this.x -= vertex.x;\n this.y -= vertex.y;\n this.z -= vertex.z;\n return this;\n }\n\n multiplyScalar(scalar) {\n this.x *= scalar;\n this.y *= scalar;\n this.z *= scalar;\n return this;\n }\n\n cross(vertex) {\n var x = this.x,\n y = this.y,\n z = this.z;\n\n this.x = y * vertex.z - z * vertex.y;\n this.y = z * vertex.x - x * vertex.z;\n this.z = x * vertex.y - y * vertex.x;\n\n return this;\n }\n\n normalize() {\n var length = Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\n this.x /= length;\n this.y /= length;\n this.z /= length;\n\n return this;\n }\n\n dot(vertex) {\n return this.x * vertex.x + this.y * vertex.y + this.z * vertex.z;\n }\n\n lerp(a, t) {\n this.add(\n a.clone().subtract(this).multiplyScalar(t)\n );\n\n this.normal.add(\n a.normal.clone().sub(this.normal).multiplyScalar(t)\n );\n\n this.uv.add(\n a.uv.clone().sub(this.uv).multiplyScalar(t)\n );\n\n return this;\n }\n\n interpolate(other, t) {\n return this.clone().lerp(other, t);\n }\n\n applyMatrix4(m) {\n\n // input: THREE.Matrix4 affine matrix\n\n var x = this.x, y = this.y, z = this.z;\n\n var e = m.elements;\n\n this.x = e[0] * x + e[4] * y + e[8] * z + e[12];\n this.y = e[1] * x + e[5] * y + e[9] * z + e[13];\n this.z = e[2] * x + e[6] * y + e[10] * z + e[14];\n\n return this;\n\n }\n}\nclass Node {\n constructor(polygons) {\n var i, polygon_count,\n front = [],\n back = [];\n\n this.polygons = [];\n this.front = this.back = undefined;\n\n if (!(polygons instanceof Array) || polygons.length === 0) return;\n\n this.divider = polygons[0].clone();\n\n for (i = 0, polygon_count = polygons.length; i < polygon_count; i++) {\n this.divider.splitPolygon(polygons[i], this.polygons, this.polygons, front, back);\n }\n\n if (front.length > 0) {\n this.front = new Node(front);\n }\n\n if (back.length > 0) {\n this.back = new Node(back);\n }\n }\n\n isConvex(polygons) {\n var i, j;\n for (i = 0; i < polygons.length; i++) {\n for (j = 0; j < polygons.length; j++) {\n if (i !== j && polygons[i].classifySide(polygons[j]) !== BACK) {\n return false;\n }\n }\n }\n return true;\n }\n\n build(polygons) {\n var i, polygon_count,\n front = [],\n back = [];\n\n if (!this.divider) {\n this.divider = polygons[0].clone();\n }\n\n for (i = 0, polygon_count = polygons.length; i < polygon_count; i++) {\n this.divider.splitPolygon(polygons[i], this.polygons, this.polygons, front, back);\n }\n\n if (front.length > 0) {\n if (!this.front) this.front = new Node();\n this.front.build(front);\n }\n\n if (back.length > 0) {\n if (!this.back) this.back = new Node();\n this.back.build(back);\n }\n }\n\n allPolygons() {\n var polygons = this.polygons.slice();\n if (this.front) polygons = polygons.concat(this.front.allPolygons());\n if (this.back) polygons = polygons.concat(this.back.allPolygons());\n return polygons;\n }\n\n clone() {\n var node = new Node();\n\n node.divider = this.divider.clone();\n node.polygons = this.polygons.map(function (polygon) {\n return polygon.clone();\n });\n node.front = this.front && this.front.clone();\n node.back = this.back && this.back.clone();\n\n return node;\n }\n\n invert() {\n var i, polygon_count, temp;\n\n for (i = 0, polygon_count = this.polygons.length; i < polygon_count; i++) {\n this.polygons[i].flip();\n }\n\n this.divider.flip();\n if (this.front) this.front.invert();\n if (this.back) this.back.invert();\n\n temp = this.front;\n this.front = this.back;\n this.back = temp;\n\n return this;\n }\n\n clipPolygons(polygons) {\n var i, polygon_count,\n front, back;\n\n if (!this.divider) return polygons.slice();\n\n front = [];\n back = [];\n\n for (i = 0, polygon_count = polygons.length; i < polygon_count; i++) {\n this.divider.splitPolygon(polygons[i], front, back, front, back);\n }\n\n if (this.front) front = this.front.clipPolygons(front);\n if (this.back) back = this.back.clipPolygons(back);\n else back = [];\n\n return front.concat(back);\n }\n\n clipTo(node) {\n this.polygons = node.clipPolygons(this.polygons);\n if (this.front) this.front.clipTo(node);\n if (this.back) this.back.clipTo(node);\n }\n}\n\nwindow.ThreeBSP = ThreeBSP;\n","import {\n TextureLoader,\n Mesh,\n RepeatWrapping,\n Vector2,\n BoxGeometry,\n MeshBasicMaterial,\n Group\n} from 'three';\n\nimport ThreeBSP from '../../utils/threeCSG.es6';\nimport {verticesDistance} from '../../utils/geometry';\nimport * as SharedStyle from '../../shared-style';\n\nconst halfPI = Math.PI / 2;\n\n/**\n * Apply a texture to a wall face\n * @param material: The material of the face\n * @param texture: The texture to load\n * @param length: The lenght of the face\n * @param height: The height of the face\n */\nconst applyTexture = (material, texture, length, height) => {\n let loader = new TextureLoader();\n\n if (texture) {\n material.map = loader.load(texture.uri);\n material.needsUpdate = true;\n material.map.wrapS = RepeatWrapping;\n material.map.wrapT = RepeatWrapping;\n material.map.repeat.set(length * texture.lengthRepeatScale, height * texture.heightRepeatScale);\n\n if (texture.normal) {\n material.normalMap = loader.load(texture.normal.uri);\n material.normalScale = new Vector2(texture.normal.normalScaleX, texture.normal.normalScaleY);\n material.normalMap.wrapS = RepeatWrapping;\n material.normalMap.wrapT = RepeatWrapping;\n material.normalMap.repeat.set(length * texture.normal.lengthRepeatScale, height * texture.normal.heightRepeatScale);\n }\n }\n};\n\nexport function buildWall(element, layer, scene, textures)\n{\n // Get the two vertices of the wall\n let vertex0 = layer.vertices.get(element.vertices.get(0));\n let vertex1 = layer.vertices.get(element.vertices.get(1));\n let inverted = false;\n\n // The first vertex is the smaller one\n if (vertex0.x > vertex1.x) {\n let app = vertex0;\n vertex0 = vertex1;\n vertex1 = app;\n inverted = true;\n }\n\n // Get height and thickness of the wall converting them into the current scene units\n let height = element.properties.getIn(['height', 'length']);\n let thickness = element.properties.getIn(['thickness', 'length']);\n let halfThickness = thickness / 2;\n let faceThickness = 0.2;\n let faceDistance = 1;\n\n let distance = verticesDistance( vertex0, vertex1 );\n let halfDistance = distance / 2;\n\n let soulMaterial = new MeshBasicMaterial( {color: ( element.selected ? SharedStyle.MESH_SELECTED : 0xD3D3D3 )} );\n let soul = new Mesh( new BoxGeometry(distance, height, thickness), soulMaterial );\n\n let alpha = Math.asin((vertex1.y - vertex0.y) / (distance));\n\n let sinAlpha = Math.sin(alpha);\n let cosAlpha = Math.cos(alpha);\n\n soul.position.y += height / 2;\n soul.position.x += halfDistance * cosAlpha;\n soul.position.z -= halfDistance * sinAlpha;\n\n soul.rotation.y = alpha;\n\n element.holes.forEach( holeID => {\n let holeData = layer.holes.get(holeID);\n\n let holeWidth = holeData.properties.getIn(['width', 'length']);\n let holeHeight = holeData.properties.getIn(['height', 'length']);\n let holeAltitude = holeData.properties.getIn(['altitude', 'length']);\n let offset = inverted ? 1 - holeData.offset : holeData.offset;\n let holeDistance = offset * distance;\n\n let holeGeometry = new BoxGeometry( holeWidth, holeHeight, thickness );\n let holeMesh = new Mesh( holeGeometry );\n\n holeMesh.position.y += holeHeight / 2 + holeAltitude;\n holeMesh.position.x += holeDistance * cosAlpha;\n holeMesh.position.z -= holeDistance * sinAlpha;\n\n holeMesh.rotation.y = alpha;\n\n let wallBSP = new ThreeBSP( soul );\n let holeBSP = new ThreeBSP( holeMesh );\n\n let wallWithHoleBSP = wallBSP.subtract( holeBSP );\n soul = wallWithHoleBSP.toMesh( soulMaterial );\n });\n\n soul.name = 'soul';\n\n let frontMaterial = new MeshBasicMaterial();\n let backMaterial = new MeshBasicMaterial();\n\n applyTexture(frontMaterial, textures[element.properties.get('textureB')], distance, height);\n applyTexture(backMaterial, textures[element.properties.get('textureA')], distance, height);\n\n let scaleFactor = faceThickness / thickness;\n let texturedFaceDistance = halfThickness + faceDistance;\n\n let frontFace = soul.clone();\n frontFace.material = frontMaterial;\n frontFace.scale.set( 1, 1, scaleFactor );\n frontFace.position.x += texturedFaceDistance * Math.cos(alpha - ( halfPI ) );\n frontFace.position.z -= texturedFaceDistance * Math.sin(alpha - ( halfPI ) );\n frontFace.name = 'frontFace';\n\n let backFace = soul.clone();\n backFace.material = backMaterial;\n backFace.scale.set( 1, 1, scaleFactor );\n backFace.position.x += texturedFaceDistance * Math.cos(alpha + ( halfPI ) );\n backFace.position.z -= texturedFaceDistance * Math.sin(alpha + ( halfPI ) );\n backFace.name = 'backFace';\n\n let merged = new Group();\n merged.add( soul, frontFace, backFace );\n\n return Promise.resolve( merged );\n}\n\nexport function updatedWall( element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild ) {\n let noPerf = () => { selfDestroy(); return selfBuild(); };\n\n let soul = mesh.getObjectByName('soul');\n let frontFace = mesh.getObjectByName('frontFace');\n let backFace = mesh.getObjectByName('backFace');\n\n if( differences[0] == 'selected' ) {\n soul.material = new MeshBasicMaterial( {color: ( element.selected ? SharedStyle.MESH_SELECTED : 0xD3D3D3 )} );\n }\n else if( differences[0] == 'properties' ){\n\n if( differences[1] == 'thickness' ){\n let newThickness = element.getIn(['properties', 'thickness', 'length']);\n let oldThickness = oldElement.getIn(['properties', 'thickness', 'length']);\n let halfNewThickness = newThickness / 2;\n let texturedFaceDistance = halfNewThickness + 1;\n let originalThickness = oldThickness / soul.scale.z;\n let alpha = soul.rotation.y;\n\n let xTemp = texturedFaceDistance * Math.cos(alpha - ( halfPI ) );\n let zTemp = texturedFaceDistance * Math.sin(alpha - ( halfPI ) );\n\n soul.scale.set( 1, 1, ( newThickness / originalThickness ) );\n\n frontFace.position.x = soul.position.x + ( xTemp );\n frontFace.position.z = soul.position.z + ( zTemp );\n\n backFace.position.x = soul.position.x - ( xTemp );\n backFace.position.z = soul.position.z - ( zTemp );\n }\n else return noPerf();\n }\n else return noPerf();\n\n return Promise.resolve(mesh);\n}\n","import React from 'react';\nimport { buildWall, updatedWall } from './wall-factory-3d';\nimport * as SharedStyle from '../../shared-style';\nimport * as Geometry from '../../utils/geometry';\nimport Translator from '../../translator/translator';\n\nconst epsilon = 20;\nconst STYLE_TEXT = { textAnchor: 'middle' };\nconst STYLE_LINE = { stroke: SharedStyle.LINE_MESH_COLOR.selected };\nconst STYLE_RECT = { strokeWidth: 1, stroke: SharedStyle.LINE_MESH_COLOR.unselected, fill: 'url(#diagonalFill)' };\nconst STYLE_RECT_SELECTED = { ...STYLE_RECT, stroke: SharedStyle.LINE_MESH_COLOR.selected };\n\nlet translator = new Translator();\n\nexport default function WallFactory(name, info, textures) {\n\n let wallElement = {\n name,\n prototype: 'lines',\n info,\n properties: {\n height: {\n label: translator.t('height'),\n type: 'length-measure',\n defaultValue: {\n length: 300,\n }\n },\n thickness: {\n label: translator.t('thickness'),\n type: 'length-measure',\n defaultValue: {\n length: 20\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n let { x: x1, y: y1 } = layer.vertices.get(element.vertices.get(0));\n let { x: x2, y: y2 } = layer.vertices.get(element.vertices.get(1));\n\n let length = Geometry.pointsDistance(x1, y1, x2, y2);\n let length_5 = length / 5;\n\n let thickness = element.getIn(['properties', 'thickness', 'length']);\n let half_thickness = thickness / 2;\n let half_thickness_eps = half_thickness + epsilon;\n let char_height = 11;\n let extra_epsilon = 5;\n let textDistance = half_thickness + epsilon + extra_epsilon;\n\n return (element.selected) ?\n \n \n \n A\n B\n :\n \n },\n\n render3D: function (element, layer, scene) {\n return buildWall(element, layer, scene, textures);\n },\n\n updateRender3D: (element, layer, scene, mesh, oldElement, differences, selfDestroy, selfBuild) => {\n return updatedWall(element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild);\n }\n\n };\n\n if (textures && textures !== {}) {\n\n let textureValues = { 'none': 'None' };\n\n for (let textureName in textures) {\n textureValues[textureName] = textures[textureName].name;\n }\n\n wallElement.properties.textureA = {\n label: translator.t('texture') + ' A',\n type: 'enum',\n defaultValue: textureValues.bricks ? 'bricks' : 'none',\n values: textureValues\n };\n\n wallElement.properties.textureB = {\n label: translator.t('texture') + ' B',\n type: 'enum',\n defaultValue: textureValues.bricks ? 'bricks' : 'none',\n values: textureValues\n };\n\n }\n\n return wallElement;\n}\n","import WallFactory from './wall-factory';\nimport AreaFactory from './area-factory';\n\nexport {\n WallFactory,\n AreaFactory\n};\n\nexport default {\n WallFactory,\n AreaFactory\n};\n","import {Map, List, Record} from 'immutable';\nimport * as Geometry from './geometry';\n\nexport const SNAP_POINT = 'SNAP_POINT';\nexport const SNAP_LINE = 'SNAP_LINE';\nexport const SNAP_SEGMENT = 'SNAP_SEGMENT';\nexport const SNAP_GRID = 'SNAP_GRID';\nexport const SNAP_GUIDE = 'SNAP_GUIDE';\n\nexport const SNAP_MASK = new Map({\n SNAP_POINT : true,\n SNAP_LINE : true,\n SNAP_SEGMENT : true,\n SNAP_GRID : false,\n SNAP_GUIDE : true\n});\n\nclass PointSnap extends Record({\n type: 'point',\n x: -1, y: -1,\n radius: 1, priority: 1,\n related: new List()\n}) {\n nearestPoint(x, y) {\n return {\n x: this.x,\n y: this.y,\n distance: Geometry.pointsDistance(this.x, this.y, x, y)\n };\n }\n isNear(x,y,distance){ return ~(this.x - x) + 1 < distance && ~(this.y - y) + 1 < distance; }\n}\n\nclass LineSnap extends Record({\n type: 'line',\n a: -1, b: -1, c: -1,\n radius: 1, priority: 1,\n related: new List()\n}) {\n nearestPoint(x, y) {\n return {\n ...Geometry.closestPointFromLine(this.a, this.b, this.c, x, y),\n distance: Geometry.distancePointFromLine(this.a, this.b, this.c, x, y)\n };\n }\n isNear(x,y,distance){ return true; }\n}\n\nclass LineSegmentSnap extends Record({\n type: 'line-segment',\n x1: -1, y1: -1, x2: -1, y2: -1,\n radius: 1, priority: 1,\n related: new List()\n}) {\n nearestPoint(x, y) {\n return {\n ...Geometry.closestPointFromLineSegment(this.x1, this.y1, this.x2, this.y2, x, y),\n distance: Geometry.distancePointFromLineSegment(this.x1, this.y1, this.x2, this.y2, x, y)\n };\n }\n isNear(x,y,distance){ return true; }\n}\n\nclass GridSnap extends Record({\n type: 'grid',\n x: -1, y: -1,\n radius: 1, priority: 1,\n related: new List()\n}) {\n nearestPoint(x, y) {\n return {\n x: this.x,\n y: this.y,\n distance: Geometry.pointsDistance(this.x, this.y, x, y)\n };\n }\n isNear(x,y,distance){ return ~(this.x - x) + 1 < distance && ~(this.y - y) + 1 < distance; }\n}\n\nexport function nearestSnap(snapElements, x, y, snapMask) {\n\n let filter = {\n 'point': snapMask.get(SNAP_POINT),\n 'line': snapMask.get(SNAP_LINE),\n 'line-segment': snapMask.get(SNAP_SEGMENT),\n 'grid': snapMask.get(SNAP_GRID)\n };\n\n return snapElements\n .valueSeq()\n .filter( ( el ) => filter[el.type] && el.isNear(x,y, el.radius) )\n .map(snap => { return {snap, point: snap.nearestPoint(x, y)} })\n .filter(({snap: {radius}, point: {distance}}) => distance < radius)\n .min(\n (\n {snap: { priority : p1 }, point: { distance : d1 }},\n {snap: { priority : p2 }, point: { distance : d2 }}\n ) => p1 === p2 ? ( d1 < d2 ? -1 : 1 ) : ( p1 > p2 ? -1 : 1 )\n );\n}\n\nexport function addPointSnap(snapElements, x, y, radius, priority, related) {\n related = new List([related]);\n return snapElements.push(new PointSnap({x, y, radius, priority, related}));\n}\n\nexport function addLineSnap(snapElements, a, b, c, radius, priority, related) {\n related = new List([related]);\n\n return snapElements.withMutations(snapElements => {\n\n let alreadyPresent = snapElements.some(lineSnap =>\n lineSnap.type === 'line' &&\n a === lineSnap.a &&\n b === lineSnap.b &&\n c === lineSnap.c);\n if (alreadyPresent) return snapElements;\n\n let intersections = snapElements\n .valueSeq()\n .filter(snap => snap.type === 'line')\n .map(snap => Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, a, b, c))\n .filter(intersection => intersection !== undefined)\n .forEach(({x, y}) => addPointSnap(snapElements, x, y, 20, 40));\n\n snapElements.push(new LineSnap({a, b, c, radius, priority, related}));\n })\n}\n\nexport function addLineSegmentSnap(snapElements, x1, y1, x2, y2, radius, priority, related) {\n related = new List([related]);\n return snapElements.push(new LineSegmentSnap({x1, y1, x2, y2, radius, priority, related}));\n}\n\nexport function addGridSnap(snapElements, x, y, radius, priority, related) {\n related = new List([related]);\n return snapElements.push(new GridSnap({x, y, radius, priority, related}));\n}\n","import actions from '../actions/export';\n\nexport default function consoleDebugger() {\n\n return (store, stateExtractor) => {\n window.ReactPlanner = {\n ...actions,\n\n getStore() {\n return store;\n },\n\n getState() {\n return stateExtractor(store.getState())\n },\n\n do(actions, delay = 300) {\n actions = actions.reverse();\n let dispatch = store.dispatch;\n let dispatchAction = () => {\n console.info(`There are other ${actions.length} actions on stack`);\n if (actions.length === 0) return;\n dispatch(actions.pop());\n if (actions.length === 0) return;\n setTimeout(dispatchAction, delay);\n };\n setTimeout(dispatchAction, 0);\n }\n };\n\n console.groupCollapsed(\"ReactPlanner\");\n console.info(\"ReactPlanner is ready\");\n console.info(\"console.log(ReactPlanner)\");\n console.log(window.ReactPlanner);\n console.groupEnd();\n }\n}\n","import {\n MODE_IDLE,\n MODE_3D_FIRST_PERSON,\n MODE_3D_VIEW,\n MODE_SNAPPING,\n KEYBOARD_BUTTON_CODE\n} from '../constants';\n\nimport {\n rollback,\n undo,\n remove,\n toggleSnap,\n copyProperties,\n pasteProperties,\n setAlterateState\n} from '../actions/project-actions';\n\nexport default function keyboard() {\n\n return (store, stateExtractor) => {\n\n window.addEventListener('keydown', event => {\n\n let state = stateExtractor(store.getState());\n let mode = state.get('mode');\n\n switch (event.keyCode) {\n case KEYBOARD_BUTTON_CODE.BACKSPACE:\n case KEYBOARD_BUTTON_CODE.DELETE:\n {\n if ([MODE_IDLE, MODE_3D_FIRST_PERSON, MODE_3D_VIEW].includes(mode))\n store.dispatch(remove());\n break;\n }\n case KEYBOARD_BUTTON_CODE.ESC:\n {\n store.dispatch(rollback());\n break;\n }\n case KEYBOARD_BUTTON_CODE.Z:\n {\n if (event.getModifierState('Control') || event.getModifierState('Meta'))\n store.dispatch(undo());\n break;\n }\n case KEYBOARD_BUTTON_CODE.ALT:\n {\n if (MODE_SNAPPING.includes(mode))\n store.dispatch(toggleSnap(state.snapMask.merge({\n SNAP_POINT: false,\n SNAP_LINE: false,\n SNAP_SEGMENT: false,\n SNAP_GRID : false,\n SNAP_GUIDE : false,\n tempSnapConfiguartion: state.snapMask.toJS()\n })));\n break;\n }\n case KEYBOARD_BUTTON_CODE.C:\n {\n let selectedLayer = state.getIn(['scene', 'selectedLayer']);\n let selected = state.getIn(['scene', 'layers', selectedLayer, 'selected']);\n\n if ( ( mode === MODE_IDLE || mode === MODE_3D_VIEW ) && (selected.holes.size || selected.areas.size || selected.items.size || selected.lines.size)) {\n if (selected.holes.size) {\n let hole = state.getIn(['scene', 'layers', selectedLayer, 'holes', selected.holes.get(0)]);\n store.dispatch(copyProperties(hole.get('properties')));\n }\n else if (selected.areas.size) {\n let area = state.getIn(['scene', 'layers', selectedLayer, 'areas', selected.areas.get(0)]);\n store.dispatch(copyProperties(area.properties));\n }\n else if (selected.items.size) {\n let item = state.getIn(['scene', 'layers', selectedLayer, 'items', selected.items.get(0)]);\n store.dispatch(copyProperties(item.properties));\n }\n else if (selected.lines.size) {\n let line = state.getIn(['scene', 'layers', selectedLayer, 'lines', selected.lines.get(0)]);\n store.dispatch(copyProperties(line.properties));\n }\n }\n break;\n }\n case KEYBOARD_BUTTON_CODE.V:\n {\n store.dispatch(pasteProperties());\n break;\n }\n case KEYBOARD_BUTTON_CODE.CTRL:\n {\n store.dispatch(setAlterateState());\n break;\n }\n }\n\n });\n\n window.addEventListener('keyup', event => {\n\n let state = stateExtractor(store.getState());\n let mode = state.get('mode');\n\n switch (event.keyCode) {\n case KEYBOARD_BUTTON_CODE.ALT:\n {\n if (MODE_SNAPPING.includes(mode))\n store.dispatch(toggleSnap(state.snapMask.merge(state.snapMask.get('tempSnapConfiguartion'))));\n break;\n }\n case KEYBOARD_BUTTON_CODE.CTRL:\n {\n store.dispatch(setAlterateState());\n break;\n }\n }\n\n });\n\n }\n}\n","const localStorage = window.hasOwnProperty('localStorage') ? window.localStorage : false;\nimport { loadProject } from '../actions/project-actions';\n\nconst TIMEOUT_DELAY = 500;\n\nlet timeout = null;\n\nexport default function autosave(autosaveKey, delay) {\n\n return (store, stateExtractor) => {\n\n delay = delay || TIMEOUT_DELAY;\n\n if (!autosaveKey) return;\n if (!localStorage) return;\n\n //revert\n if (localStorage.getItem(autosaveKey) !== null) {\n let data = localStorage.getItem(autosaveKey);\n let json = JSON.parse(data);\n store.dispatch(loadProject(json));\n }\n\n //update\n store.subscribe(() => {\n if (timeout) clearTimeout(timeout);\n timeout = setTimeout(() => {\n let state = stateExtractor(store.getState());\n localStorage.setItem(autosaveKey, JSON.stringify(state.scene.toJS()));\n /*let scene = state.sceneHistory.last;\n if (scene) {\n let json = JSON.stringify(scene.toJS());\n localStorage.setItem(autosaveKey, json);\n }*/\n }, delay);\n });\n };\n}\n","import Autosave from './autosave';\nimport Keyboard from './keyboard';\nimport ConsoleDebugger from './console-debugger';\n\nexport {\n Autosave,\n Keyboard,\n ConsoleDebugger\n};\n\nexport default {\n Autosave,\n Keyboard,\n ConsoleDebugger\n};\n","module.exports = __webpack_public_path__ + \"e500b4871b2c21b97e6d25cac92f917d.css\";","var update = require(\"!../../node_modules/style-loader/lib/addStyleUrl.js\")(\n require(\"!!../../node_modules/file-loader/dist/cjs.js!./tabs.css\")\n, {\"hmr\":true});\nif(module.hot) {\n module.hot.accept(\"!!../../node_modules/file-loader/dist/cjs.js!./tabs.css\", function() {\n update(require(\"!!../../node_modules/file-loader/dist/cjs.js!./tabs.css\"));\n });\n\n module.hot.dispose(function() { update(); });\n}","import * as TabsStyle from './tabs.css';\n\nexport {\n TabsStyle\n};\n\nexport default {\n TabsStyle\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport If from '../../utils/react-if';\nimport FooterToggleButton from './footer-toggle-button';\nimport FooterContentButton from './footer-content-button';\nimport { SNAP_POINT, SNAP_LINE, SNAP_SEGMENT, SNAP_GRID, SNAP_GUIDE } from '../../utils/snap';\nimport { MODE_SNAPPING } from '../../constants';\nimport * as SharedStyle from '../../shared-style';\nimport { MdAddCircle, MdWarning } from 'react-icons/lib/md';\nimport { VERSION } from '../../version';\n\nconst footerBarStyle = {\n position: 'absolute',\n bottom: 0,\n lineHeight: '14px',\n fontSize: '12px',\n color: SharedStyle.COLORS.white,\n backgroundColor: SharedStyle.SECONDARY_COLOR.alt,\n padding: '3px 1em',\n margin: 0,\n boxSizing: 'border-box',\n cursor: 'default',\n userSelect: 'none',\n zIndex: '9001'\n};\n\nexport const leftTextStyle = {\n position: 'relative',\n borderRight: '1px solid #FFF',\n float: 'left',\n padding: '0 1em',\n display: 'inline-block'\n};\n\nexport const rightTextStyle = {\n position: 'relative',\n borderLeft: '1px solid #FFF',\n float: 'right',\n padding: '0 1em',\n display: 'inline-block'\n};\n\nconst coordStyle = {\n display: 'inline-block',\n width: '6em',\n margin: 0,\n padding: 0\n};\n\nconst appMessageStyle = { borderBottom: '1px solid #555', lineHeight: '1.5em' };\n\nexport default class FooterBar extends Component {\n constructor(props, context) {\n super(props, context);\n this.state = {};\n }\n\n render() {\n let { state: globalState, width, height } = this.props;\n let { translator, projectActions } = this.context;\n let { x, y } = globalState.get('mouse').toJS();\n let zoom = globalState.get('zoom');\n let mode = globalState.get('mode');\n\n let errors = globalState.get('errors').toArray();\n let errorsJsx = errors.map((err, ind) =>\n
[ {(new Date(err.date)).toLocaleString()} ] {err.error}
\n );\n let errorLableStyle = errors.length ? { color: SharedStyle.MATERIAL_COLORS[500].red } : {};\n let errorIconStyle = errors.length ? { transform: 'rotate(45deg)', color: SharedStyle.MATERIAL_COLORS[500].red } : { transform: 'rotate(45deg)' };\n\n let warnings = globalState.get('warnings').toArray();\n let warningsJsx = warnings.map((warn, ind) =>\n
[ {(new Date(warn.date)).toLocaleString()} ] {warn.warning}
\n );\n let warningLableStyle = warnings.length ? { color: SharedStyle.MATERIAL_COLORS[500].yellow } : {};\n let warningIconStyle = warningLableStyle;\n\n let updateSnapMask = (val) => projectActions.toggleSnap(globalState.snapMask.merge(val));\n\n return (\n
\n\n \n
\n
X : {x.toFixed(3)}
\n
Y : {y.toFixed(3)}
\n
\n\n
Zoom: {zoom.toFixed(3)}X
\n\n
\n { updateSnapMask({ SNAP_POINT: true }); }}\n toggleOff={() => { updateSnapMask({ SNAP_POINT: false }); }}\n text=\"Snap PT\"\n toggleState={globalState.snapMask.get(SNAP_POINT)}\n title={translator.t('Snap to Point')}\n />\n { updateSnapMask({ SNAP_LINE: true }); }}\n toggleOff={() => { updateSnapMask({ SNAP_LINE: false }); }}\n text=\"Snap LN\"\n toggleState={globalState.snapMask.get(SNAP_LINE)}\n title={translator.t('Snap to Line')}\n />\n { updateSnapMask({ SNAP_SEGMENT: true }); }}\n toggleOff={() => { updateSnapMask({ SNAP_SEGMENT: false }); }}\n text=\"Snap SEG\"\n toggleState={globalState.snapMask.get(SNAP_SEGMENT)}\n title={translator.t('Snap to Segment')}\n />\n { updateSnapMask({ SNAP_GRID: true }); }}\n toggleOff={() => { updateSnapMask({ SNAP_GRID: false }); }}\n text=\"Snap GRD\"\n toggleState={globalState.snapMask.get(SNAP_GRID)}\n title={translator.t('Snap to Grid')}\n />\n { updateSnapMask({ SNAP_GUIDE: true }); }}\n toggleOff={() => { updateSnapMask({ SNAP_GUIDE: false }); }}\n text=\"Snap GDE\"\n toggleState={globalState.snapMask.get(SNAP_GUIDE)}\n title={translator.t('Snap to Guide')}\n />\n
\n
\n\n {this.props.footerbarComponents.map((Component, index) => )}\n\n {\n this.props.softwareSignature ?\n \n {this.props.softwareSignature}\n
\n : null\n }\n\n
\n \n \n
\n\n \n );\n }\n}\n\nFooterBar.propTypes = {\n state: PropTypes.object.isRequired,\n footerbarComponents: PropTypes.array.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n softwareSignature: PropTypes.string\n};\n\nFooterBar.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n viewer2DActions: PropTypes.object.isRequired,\n viewer3DActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import FooterToggleButton from './footer-toggle-button';\nimport FooterContentButton from './footer-content-button';\nimport FooterBar from './footerbar';\n\nexport {\n FooterToggleButton,\n FooterContentButton,\n FooterBar\n};\n\nexport default {\n FooterToggleButton,\n FooterContentButton,\n FooterBar\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from './panel';\nimport * as SharedStyle from '../../shared-style';\nimport {TiPlus, TiDelete} from 'react-icons/lib/ti';\nimport {FaPencil, FaTrash, FaEye, FaChain, FaChainBroken} from 'react-icons/lib/fa';\nimport { Map } from 'immutable';\n\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../constants';\n\nconst VISIBILITY_MODE = {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n};\n\nconst styleEditButton = {\n marginLeft: '5px',\n border: '0px',\n background: 'none',\n color: SharedStyle.COLORS.white,\n fontSize: '14px',\n outline: '0px'\n};\n\nconst tablegroupStyle = {\n width: '100%',\n cursor: 'pointer',\n maxHeight: '20em',\n padding: '0 1em',\n marginLeft: '1px'\n};\n\nconst iconColStyle = {width: '2em', textAlign: 'center'};\nconst styleHoverColor = {color: SharedStyle.SECONDARY_COLOR.main};\nconst styleEditButtonHover = {...styleEditButton, ...styleHoverColor};\nconst styleAddLabel = {fontSize: '10px', marginLeft: '5px'};\nconst styleEyeVisible = {fontSize: '1.25em'};\nconst styleEyeHidden = {...styleEyeVisible, color: '#a5a1a1'};\nconst newLayerLableStyle = {fontSize: '1.3em', cursor: 'pointer', textAlign: 'center'};\nconst newLayerLableHoverStyle = {...newLayerLableStyle, ...styleHoverColor};\n\nexport default class PanelGroups extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n newEmptyHover: false,\n newSelectedHover: false\n };\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n return ( \n this.props.groups.hashCode() !== nextProps.groups.hashCode() ||\n this.props.layers.hashCode() !== nextProps.layers.hashCode() ||\n this.props.mode !== nextProps.mode\n );\n }\n\n render() {\n let { mode, groups, layers } = this.props;\n\n if (!VISIBILITY_MODE[ mode ]) return null;\n\n return (\n 0}>\n { groups.size ? \n \n \n \n \n \n \n \n \n {\n groups.entrySeq().map(([ groupID, group ]) => {\n\n let selectClick = e => this.context.groupsActions.selectGroup(groupID);\n\n let swapVisibility = e => {\n e.stopPropagation();\n this.context.groupsActions.setGroupProperties(groupID, new Map({visible: !group.get('visible')}));\n };\n\n let chainToGroup = e => {\n layers.forEach((layer) => {\n\n let layerID = layer.get('id');\n let layerElements = {\n 'lines': layer.get('lines'),\n 'items': layer.get('items'),\n 'holes': layer.get('holes'),\n 'areas': layer.get('areas')\n };\n\n for( let elementPrototype in layerElements )\n {\n let ElementList = layerElements[elementPrototype];\n ElementList.filter( el => el.get('selected') ).forEach( element => {\n this.context.groupsActions.addToGroup( groupID, layerID, elementPrototype, element.get('id') );\n });\n }\n });\n\n selectClick(e);\n };\n\n let isCurrentgroup = group.get('selected');\n let shouldHighlight = isCurrentgroup;\n let rowStyle = !shouldHighlight ? null : styleHoverColor;\n\n let dimension = group.get('elements').reduce( ( sum, layer ) => {\n return sum + layer.reduce( ( lSum, elProt ) => lSum + elProt.size, 0 );\n }, 0);\n\n return (\n \n \n \n \n \n \n \n \n );\n })\n }\n \n
{this.context.translator.t('Elements')}{this.context.translator.t('Name')}
\n \n \n \n \n this.context.groupsActions.removeGroup(groupID) }\n style={!shouldHighlight ? styleEditButton : styleEditButtonHover}\n />\n \n this.context.groupsActions.removeGroupAndDeleteElements(groupID) }\n style={!shouldHighlight ? styleEditButton : styleEditButtonHover}\n />\n \n { dimension }\n \n {group.get('name')}\n
: null }\n\n \n \n \n this.setState({newEmptyHover: true}) }\n onMouseOut={ () => this.setState({newEmptyHover: false}) }\n onClick={ e => this.context.groupsActions.addGroup() }\n >\n \n {this.context.translator.t('New Empty Group')}\n \n this.setState({newSelectedHover: true}) }\n onMouseOut={ () => this.setState({newSelectedHover: false}) }\n onClick={ e => this.context.groupsActions.addGroupFromSelected() }\n >\n \n {this.context.translator.t('New Group from selected')}\n \n \n \n
\n\n
\n )\n }\n\n}\n\nPanelGroups.propTypes = {\n mode: PropTypes.string.isRequired,\n groups: PropTypes.object.isRequired,\n layers: PropTypes.object.isRequired\n};\n\nPanelGroups.contextTypes = {\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n groupsActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from '../panel';\nimport {Seq} from 'immutable';\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../../constants';\nimport { FormSelect } from '../../../components/style/export';\nimport { Group } from '../../../class/export';\n\nconst tableStyle = { width: '100%' };\nconst firstTdStyle = { width: '6em' };\n\nexport default class PanelMultiElementsEditor extends Component {\n//export default function PanelMultiElementsEditor({state}, {projectActions, translator}) {\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n selectedGroupID: ''\n };\n }\n\n addSelectToGroup( state, groupID, layerID, selecteds ) {\n if( !groupID || groupID === '' || !selecteds || !selecteds.size ) return;\n\n console.log('need to be added to group', groupID, 'elements', selecteds );\n\n /*let selectedJs = selecteds.toJS();\n\n for( let lineID in selectedJs.lines ) Group.addElement( state, groupID, layerID, 'lines', lineID );*/\n\n }\n\n render() {\n\n let { mode } = this.props.state;\n\n if (![MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN,\n MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM,\n MODE_DRAGGING_LINE, MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE,\n MODE_ROTATING_ITEM, MODE_UPLOADING_IMAGE, MODE_FITTING_IMAGE].includes(mode)) return null;\n\n let groups = this.props.state.getIn(['scene', 'groups']);\n\n //TODO change in multi-layer check\n let selectedLayer = this.props.state.getIn(['scene', 'selectedLayer']);\n let selecteds = this.props.state.getIn(['scene', 'layers', selectedLayer, 'selected']);\n\n return (\n \n
\n

Multiselection tab

\n \n \n \n \n \n \n \n \n
Add to Group\n this.setState({'selectedGroupID': e.target.value}) }>\n \n {\n groups.entrySeq().map( ([ groupID, group ]) => )\n }\n \n {\n if( !this.state.selectedGroupID || this.state.selectedGroupID === '' || !selecteds || !selecteds.size ) return;\n\n let selectedJs = selecteds.toJS();\n\n for( let x = 0; x < selectedJs.lines.length; x++ )\n this.context.groupsActions.addToGroup( this.state.selectedGroupID, selectedLayer, 'lines', selectedJs.lines[x] );\n\n }}>+
\n
\n
\n );\n\n }\n}\n\nPanelMultiElementsEditor.propTypes = {\n state: PropTypes.object.isRequired,\n};\n\nPanelMultiElementsEditor.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n groupsActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired\n};\n","// ACTIONS project\nexport const NEW_PROJECT = 'NEW_PROJECT';\nexport const LOAD_PROJECT = 'LOAD_PROJECT';\nexport const SAVE_PROJECT = 'SAVE_PROJECT';\nexport const OPEN_CATALOG = 'OPEN_CATALOG';\nexport const SELECT_TOOL_EDIT = 'SELECT_TOOL_EDIT';\nexport const UNSELECT_ALL = 'UNSELECT_ALL';\nexport const SET_PROPERTIES = 'SET_PROPERTIES';\nexport const SET_ITEMS_ATTRIBUTES = 'SET_ITEMS_ATTRIBUTES';\nexport const SET_LINES_ATTRIBUTES = 'SET_LINES_ATTRIBUTES';\nexport const SET_HOLES_ATTRIBUTES = 'SET_HOLES_ATTRIBUTES';\nexport const REMOVE = 'REMOVE';\nexport const UNDO = 'UNDO';\nexport const ROLLBACK = 'ROLLBACK';\nexport const SET_PROJECT_PROPERTIES = 'SET_PROJECT_PROPERTIES';\nexport const OPEN_PROJECT_CONFIGURATOR = 'OPEN_PROJECT_CONFIGURATOR';\nexport const INIT_CATALOG = 'INIT_CATALOG';\nexport const UPDATE_MOUSE_COORDS = 'UPDATE_MOUSE_COORDS';\nexport const UPDATE_ZOOM_SCALE = 'UPDATE_ZOOM_SCALE';\nexport const TOGGLE_SNAP = 'TOGGLE_SNAP';\nexport const CHANGE_CATALOG_PAGE = 'CHANGE_CATALOG_PAGE';\nexport const GO_BACK_TO_CATALOG_PAGE = 'GO_BACK_TO_CATALOG_PAGE';\nexport const THROW_ERROR = 'THROW_ERROR';\nexport const THROW_WARNING = 'THROW_WARNING';\nexport const COPY_PROPERTIES = 'COPY_PROPERTIES';\nexport const PASTE_PROPERTIES = 'PASTE_PROPERTIES';\nexport const PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY = 'PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY';\nexport const ALTERATE_STATE = 'ALTERATE_STATE';\nexport const SET_MODE = 'SET_MODE';\nexport const ADD_HORIZONTAL_GUIDE = 'ADD_HORIZONTAL_GUIDE';\nexport const ADD_VERTICAL_GUIDE = 'ADD_VERTICAL_GUIDE';\nexport const ADD_CIRCULAR_GUIDE = 'ADD_CIRCULAR_GUIDE';\nexport const REMOVE_HORIZONTAL_GUIDE = 'REMOVE_HORIZONTAL_GUIDE';\nexport const REMOVE_VERTICAL_GUIDE = 'REMOVE_VERTICAL_GUIDE';\nexport const REMOVE_CIRCULAR_GUIDE = 'REMOVE_CIRCULAR_GUIDE';\n\n// ACTIONS viewer2D\nexport const SELECT_TOOL_ZOOM_IN = 'SELECT_TOOL_ZOOM_IN';\nexport const SELECT_TOOL_ZOOM_OUT = 'SELECT_TOOL_ZOOM_OUT';\nexport const SELECT_TOOL_PAN = 'SELECT_TOOL_PAN';\nexport const UPDATE_2D_CAMERA = 'UPDATE_2D_CAMERA';\n\n//ACTIONS viewer3D\nexport const SELECT_TOOL_3D_VIEW = 'SELECT_TOOL_3D_VIEW';\nexport const SELECT_TOOL_3D_FIRST_PERSON = 'SELECT_TOOL_3D_FIRST_PERSON';\n\n//ACTIONS items\nexport const SELECT_TOOL_DRAWING_ITEM = 'SELECT_TOOL_DRAWING_ITEM';\nexport const UPDATE_DRAWING_ITEM = 'UPDATE_DRAWING_ITEM';\nexport const END_DRAWING_ITEM = 'END_DRAWING_ITEM';\nexport const BEGIN_DRAGGING_ITEM = 'BEGIN_DRAGGING_ITEM';\nexport const UPDATE_DRAGGING_ITEM = 'UPDATE_DRAGGING_ITEM';\nexport const END_DRAGGING_ITEM = 'END_DRAGGING_ITEM';\nexport const BEGIN_ROTATING_ITEM = 'BEGIN_ROTATING_ITEM';\nexport const UPDATE_ROTATING_ITEM = 'UPDATE_ROTATING_ITEM';\nexport const END_ROTATING_ITEM = 'END_ROTATING_ITEM';\n\n//ACTIONS groups\nexport const ADD_GROUP = 'ADD_GROUP';\nexport const ADD_GROUP_FROM_SELECTED = 'ADD_GROUP_FROM_SELECTED';\nexport const SELECT_GROUP = 'SELECT_GROUP';\nexport const UNSELECT_GROUP = 'UNSELECT_GROUP';\nexport const ADD_TO_GROUP = 'ADD_TO_GROUP';\nexport const REMOVE_FROM_GROUP = 'REMOVE_FROM_GROUP';\nexport const SET_GROUP_PROPERTIES = 'SET_GROUP_PROPERTIES';\nexport const SET_GROUP_ATTRIBUTES = 'SET_GROUP_ATTRIBUTES';\nexport const SET_GROUP_BARYCENTER = 'SET_GROUP_BARYCENTER';\nexport const REMOVE_GROUP = 'REMOVE_GROUP';\nexport const REMOVE_GROUP_AND_DELETE_ELEMENTS = 'REMOVE_GROUP_AND_DELETE_ELEMENTS';\nexport const GROUP_TRANSLATE = 'GROUP_TRANSLATE';\nexport const GROUP_ROTATE = 'GROUP_ROTATE';\n\n//ACTION drawings\nexport const SELECT_HOLE = 'SELECT_HOLE';\nexport const SELECT_AREA = 'SELECT_AREA';\nexport const SELECT_ITEM = 'SELECT_ITEM';\nexport const SELECT_LINE = 'SELECT_LINE';\nexport const SELECT_TOOL_DRAWING_LINE = 'SELECT_TOOL_DRAWING_LINE';\nexport const BEGIN_DRAWING_LINE = 'BEGIN_DRAWING_LINE';\nexport const UPDATE_DRAWING_LINE = 'UPDATE_DRAWING_LINE';\nexport const END_DRAWING_LINE = 'END_DRAWING_LINE';\nexport const SELECT_TOOL_DRAWING_HOLE = 'SELECT_TOOL_DRAWING_HOLE';\nexport const UPDATE_DRAWING_HOLE = 'UPDATE_DRAWING_HOLE'; //SHOULD BE SLPITTED IN BEGIN_DRAWING_HOLE AND UPDATE_DRAWING_HOLE\nexport const END_DRAWING_HOLE = 'END_DRAWING_HOLE';\nexport const BEGIN_DRAGGING_LINE = 'BEGIN_DRAGGING_LINE';\nexport const UPDATE_DRAGGING_LINE = 'UPDATE_DRAGGING_LINE';\nexport const END_DRAGGING_LINE = 'END_DRAGGING_LINE';\nexport const SELECT_TOOL_UPLOAD_IMAGE = 'SELECT_TOOL_UPLOAD_IMAGE';\nexport const BEGIN_UPLOADING_IMAGE = 'BEGIN_UPLOADING_IMAGE';\nexport const END_UPLOADING_IMAGE = 'END_UPLOADING_IMAGE';\nexport const BEGIN_FITTING_IMAGE = 'BEGIN_FITTING_IMAGE';\nexport const END_FITTING_IMAGE = 'END_FITTING_IMAGE';\nexport const BEGIN_DRAGGING_HOLE = 'BEGIN_DRAGGING_HOLE';\nexport const UPDATE_DRAGGING_HOLE = 'UPDATE_DRAGGING_HOLE';\nexport const END_DRAGGING_HOLE = 'END_DRAGGING_HOLE';\n\n//ACTIONS vertices\nexport const BEGIN_DRAGGING_VERTEX = 'BEGIN_DRAGGING_VERTEX';\nexport const UPDATE_DRAGGING_VERTEX = 'UPDATE_DRAGGING_VERTEX';\nexport const END_DRAGGING_VERTEX = 'END_DRAGGING_VERTEX';\n\n//ACTIONS scene\nexport const SET_LAYER_PROPERTIES = 'SET_LAYER_PROPERTIES';\nexport const ADD_LAYER = 'ADD_LAYER';\nexport const SELECT_LAYER = 'SELECT_LAYER';\nexport const REMOVE_LAYER = 'REMOVE_LAYER';\n\n//GROUPING ACTIONS\nexport const PROJECT_ACTIONS = {\n NEW_PROJECT,\n LOAD_PROJECT,\n SAVE_PROJECT,\n OPEN_CATALOG,\n SELECT_TOOL_EDIT,\n UNSELECT_ALL,\n SET_PROPERTIES,\n SET_ITEMS_ATTRIBUTES,\n SET_LINES_ATTRIBUTES,\n SET_HOLES_ATTRIBUTES,\n REMOVE,\n UNDO,\n ROLLBACK,\n SET_PROJECT_PROPERTIES,\n OPEN_PROJECT_CONFIGURATOR,\n INIT_CATALOG,\n UPDATE_MOUSE_COORDS,\n UPDATE_ZOOM_SCALE,\n TOGGLE_SNAP,\n CHANGE_CATALOG_PAGE,\n GO_BACK_TO_CATALOG_PAGE,\n THROW_ERROR,\n THROW_WARNING,\n COPY_PROPERTIES,\n PASTE_PROPERTIES,\n PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,\n ALTERATE_STATE,\n SET_MODE,\n ADD_HORIZONTAL_GUIDE,\n ADD_VERTICAL_GUIDE,\n ADD_CIRCULAR_GUIDE,\n REMOVE_HORIZONTAL_GUIDE,\n REMOVE_VERTICAL_GUIDE,\n REMOVE_CIRCULAR_GUIDE\n};\n\nexport const VIEWER2D_ACTIONS = {\n SELECT_TOOL_ZOOM_IN,\n SELECT_TOOL_ZOOM_OUT,\n SELECT_TOOL_PAN,\n UPDATE_2D_CAMERA\n};\n\nexport const VIEWER3D_ACTIONS = {\n SELECT_TOOL_3D_VIEW,\n SELECT_TOOL_3D_FIRST_PERSON\n};\n\nexport const ITEMS_ACTIONS = {\n SELECT_ITEM,\n SELECT_TOOL_DRAWING_ITEM,\n UPDATE_DRAWING_ITEM,\n END_DRAWING_ITEM,\n BEGIN_DRAGGING_ITEM,\n UPDATE_DRAGGING_ITEM,\n END_DRAGGING_ITEM,\n BEGIN_ROTATING_ITEM,\n UPDATE_ROTATING_ITEM,\n END_ROTATING_ITEM\n};\n\nexport const HOLE_ACTIONS = {\n SELECT_HOLE,\n SELECT_TOOL_DRAWING_HOLE,\n UPDATE_DRAWING_HOLE,\n END_DRAWING_HOLE,\n BEGIN_DRAGGING_HOLE,\n UPDATE_DRAGGING_HOLE,\n END_DRAGGING_HOLE\n};\n\nexport const LINE_ACTIONS = {\n SELECT_LINE,\n SELECT_TOOL_DRAWING_LINE,\n BEGIN_DRAWING_LINE,\n UPDATE_DRAWING_LINE,\n END_DRAWING_LINE,\n BEGIN_DRAGGING_LINE,\n UPDATE_DRAGGING_LINE,\n END_DRAGGING_LINE\n};\n\nexport const AREA_ACTIONS = {\n SELECT_AREA\n};\n\nexport const GROUP_ACTIONS = {\n ADD_GROUP,\n ADD_GROUP_FROM_SELECTED,\n SELECT_GROUP,\n UNSELECT_GROUP,\n ADD_TO_GROUP,\n REMOVE_FROM_GROUP,\n SET_GROUP_PROPERTIES,\n SET_GROUP_ATTRIBUTES,\n SET_GROUP_BARYCENTER,\n REMOVE_GROUP,\n REMOVE_GROUP_AND_DELETE_ELEMENTS,\n GROUP_TRANSLATE,\n GROUP_ROTATE\n};\n\nexport const SCENE_ACTIONS = {\n ADD_LAYER,\n SET_LAYER_PROPERTIES,\n SELECT_LAYER,\n REMOVE_LAYER\n};\n\nexport const VERTEX_ACTIONS = {\n BEGIN_DRAGGING_VERTEX,\n UPDATE_DRAGGING_VERTEX,\n END_DRAGGING_VERTEX\n};\n\n//MODES\nexport const MODE_IDLE = 'MODE_IDLE';\nexport const MODE_2D_ZOOM_IN = 'MODE_2D_ZOOM_IN';\nexport const MODE_2D_ZOOM_OUT = 'MODE_2D_ZOOM_OUT';\nexport const MODE_2D_PAN = 'MODE_2D_PAN';\nexport const MODE_3D_VIEW = 'MODE_3D_VIEW';\nexport const MODE_3D_FIRST_PERSON = 'MODE_3D_FIRST_PERSON';\nexport const MODE_WAITING_DRAWING_LINE = 'MODE_WAITING_DRAWING_LINE';\nexport const MODE_DRAGGING_LINE = 'MODE_DRAGGING_LINE';\nexport const MODE_DRAGGING_VERTEX = 'MODE_DRAGGING_VERTEX';\nexport const MODE_DRAGGING_ITEM = 'MODE_DRAGGING_ITEM';\nexport const MODE_DRAGGING_HOLE = 'MODE_DRAGGING_HOLE';\nexport const MODE_DRAWING_LINE = 'MODE_DRAWING_LINE';\nexport const MODE_DRAWING_HOLE = 'MODE_DRAWING_HOLE';\nexport const MODE_DRAWING_ITEM = 'MODE_DRAWING_ITEM';\nexport const MODE_ROTATING_ITEM = 'MODE_ROTATING_ITEM';\nexport const MODE_UPLOADING_IMAGE = 'MODE_UPLOADING_IMAGE';\nexport const MODE_FITTING_IMAGE = 'MODE_FITTING_IMAGE';\nexport const MODE_VIEWING_CATALOG = 'MODE_VIEWING_CATALOG';\nexport const MODE_CONFIGURING_PROJECT = 'MODE_CONFIGURING_PROJECT';\n\n//Thinking about it...\n//https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n/*\nlet MODE_DEF = [\n 'IDLE',\n '2D_ZOOM_IN',\n '2D_ZOOM_OUT',\n '2D_PAN',\n '3D_VIEW',\n '3D_FIRST_PERSON',\n 'WAITING_DRAWING_LINE',\n 'DRAGGING_LINE',\n 'DRAGGING_VERTEX',\n 'DRAGGING_ITEM',\n 'DRAGGING_HOLE',\n 'DRAWING_LINE',\n 'DRAWING_HOLE',\n 'DRAWING_ITEM',\n 'ROTATING_ITEM',\n 'UPLOADING_IMAGE',\n 'FITTING_IMAGE',\n 'VIEWING_CATALOG',\n 'CONFIGURING_PROJECT',\n];\n\nexport const MODE = new Proxy( MODE_DEF, { get: (target, name) => { return target.indexOf(name) !== -1 ? name : null } } );\n*/\n\nexport const MODE_SNAPPING = [\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE,\n MODE_DRAWING_ITEM, MODE_DRAGGING_LINE, MODE_DRAGGING_VERTEX,\n MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE,\n MODE_UPLOADING_IMAGE, MODE_ROTATING_ITEM\n];\n\n//UNITS\nexport const UNIT_MILLIMETER = 'mm';\nexport const UNIT_CENTIMETER = 'cm';\nexport const UNIT_METER = 'm';\nexport const UNIT_INCH = 'in';\nexport const UNIT_FOOT = 'ft';\nexport const UNIT_MILE = 'mi';\n\nexport const UNITS_LENGTH = [\n UNIT_MILLIMETER,\n UNIT_CENTIMETER,\n UNIT_METER,\n UNIT_INCH,\n UNIT_FOOT,\n UNIT_MILE\n];\n\nexport const EPSILON = 1e-6;\n\nexport const KEYBOARD_BUTTON_CODE = {\n DELETE: 46,\n BACKSPACE: 8,\n ESC: 27,\n Z: 90,\n ALT: 18,\n C: 67,\n V: 86,\n CTRL: 17,\n ENTER: 13,\n TAB: 9\n};","import Viewer2D from './viewer2d';\nimport Vertex from './vertex';\nimport State from './state';\nimport Snap from './snap';\nimport Scene from './scene';\nimport Ruler from './ruler';\nimport Line from './line';\nimport Layer from './layer';\nimport Item from './item';\nimport Area from './area';\nimport Grids from './grids/grids';\nimport Group from './group';\nimport RulerX from './rulerX';\nimport RulerY from './rulerY';\n\nexport {\n Viewer2D,\n Vertex,\n State,\n Snap,\n Scene,\n Ruler,\n Line,\n Layer,\n Item,\n Area,\n Grids,\n Group,\n RulerX,\n RulerY\n};\n\nexport default {\n Viewer2D,\n Vertex,\n State,\n Snap,\n Scene,\n Ruler,\n Line,\n Layer,\n Item,\n Area,\n Grids,\n Group,\n RulerX,\n RulerY\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\n//http://www.cssportal.com/css-tooltip-generator/\n\nconst STYLE = {\n width: '30px',\n height: '30px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n marginBottom: '5px',\n fontSize: '25px',\n position: 'relative',\n cursor: 'pointer'\n};\n\nconst STYLE_TOOLTIP = {\n position: 'absolute',\n width: '140px',\n color: SharedStyle.COLORS.white,\n background: SharedStyle.COLORS.black,\n height: '30px',\n lineHeight: '30px',\n textAlign: 'center',\n visibility: 'visible',\n borderRadius: '6px',\n opacity: '0.8',\n left: '100%',\n top: '50%',\n marginTop: '-15px',\n marginLeft: '15px',\n zIndex: '999',\n fontSize: '12px'\n};\n\nconst STYLE_TOOLTIP_PIN = {\n position: 'absolute',\n top: '50%',\n right: '100%',\n marginTop: '-8px',\n width: '0',\n height: '0',\n borderRight: '8px solid #000000',\n borderTop: '8px solid transparent',\n borderBottom: '8px solid transparent'\n};\n\nexport default class ToolbarButton extends Component {\n\n constructor(props, context) {\n super(props, context);\n this.state = { active: false };\n }\n\n render() {\n let { state, props } = this;\n let color = props.active || state.active ? SharedStyle.SECONDARY_COLOR.icon : SharedStyle.PRIMARY_COLOR.icon;\n\n return (\n
this.setState({ active: true })}\n onMouseOut={event => this.setState({ active: false })}>\n
\n {props.children}\n
\n\n {\n state.active ?\n
\n \n {props.tooltip}\n
\n : null\n }\n\n
\n )\n }\n}\n\nToolbarButton.propTypes = {\n active: PropTypes.bool.isRequired,\n tooltip: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n};\n","// COLORS\nexport const COLORS = {\n white: '#FFF',\n black: '#000'\n};\n\nexport const MATERIAL_COLORS = {\n 500: {\n amber: '#FFC107',\n blue_grey: '#607D8B',\n blue: '#2196F3',\n brown: '#795548',\n cyan: '#00BCD4',\n deep_orange: '#FF5722',\n deep_purple: '#673AB7',\n green: '#4CAF50',\n grey: '#9E9E9E',\n indigo: '#3F51B5',\n light_blue: '#03A9F4',\n light_green: '#8BC34A',\n lime: '#CDDC39',\n orange: '#FF9800',\n pink: '#E91E63',\n purple: '#9C27B0',\n red: '#F44336',\n teal: '#009688',\n yellow: '#FFEB3B'\n }\n};\n\nexport const PRIMARY_COLOR = {\n main: '#28292D',\n alt: '#2E2F33',\n icon: '#C2C2C2',\n border: '1px solid #555',\n text_main: COLORS.white,\n text_alt: '#EBEBEB',\n input: '#55595C'\n};\n\nexport const SECONDARY_COLOR = {\n main: '#1CA6FC',\n alt: '#005FAF',\n icon: '#1CA6FC',\n border: '1px solid #FFF'\n};\n\nexport const MESH_SELECTED = '#99C3FB';\n\nexport const AREA_MESH_COLOR = {\n selected: MESH_SELECTED,\n unselected: '#F5F4F4'\n};\n\nexport const LINE_MESH_COLOR = {\n selected: MESH_SELECTED,\n unselected: '#8E9BA2'\n}","import EN from './en'\nimport IT from './it'\nimport RU from './ru'\n\nconst DEFAULT_LOCALE = 'en'\n\nexport default class Translator {\n constructor() {\n this.locale = null\n this.translations = {}\n\n this.registerTranslation('en', EN)\n this.registerTranslation('it', IT)\n this.registerTranslation('ru', RU)\n\n let locale = null\n let languages = Translator.getBrowserLanguages()\n for (let i = 0; i < languages.length; i++) {\n let lang = languages[i]\n if (this.translations.hasOwnProperty(lang)) {\n locale = lang\n break\n }\n }\n locale = locale ? locale : DEFAULT_LOCALE\n\n this.setLocale(locale)\n }\n\n t(phrase, ...params) {\n return this.translate(phrase, ...params)\n }\n\n translate(phrase, ...params) {\n let locale = this.locale\n\n let translation = this.translations[locale]\n if (!translation.hasOwnProperty(phrase)) {\n console.warn(`translation '${phrase}' not found in language '${locale}'`)\n return phrase\n }\n\n let translatedPhrase = translation[phrase]\n\n translatedPhrase = translatedPhrase.replace(/{(\\d+)}/g, function(match, number) {\n return typeof params[number] != 'undefined' ? params[number] : match\n })\n\n return translatedPhrase\n }\n\n setLocale(locale) {\n locale = locale.toLowerCase()\n\n if (this.translations.hasOwnProperty(locale)) {\n this.locale = locale\n } else {\n console.warn(`locale '${locale}' not available, switch to ${DEFAULT_LOCALE}`)\n this.locale = DEFAULT_LOCALE.toLowerCase()\n }\n }\n\n registerTranslation(locale, translations) {\n if (!this.translations.hasOwnProperty(locale)) {\n this.translations[locale] = translations\n } else {\n Object.assign(this.translations[locale], translations)\n }\n }\n\n static getBrowserLanguages() {\n return navigator.languages\n ? navigator.languages\n : [navigator.language || navigator.userLanguage]\n }\n}\n","import React, { Component } from 'react';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE_INPUT = {\n display: 'block',\n width: '100%',\n padding: '0 2px',\n fontSize: '13px',\n lineHeight: '1.25',\n color: SharedStyle.PRIMARY_COLOR.input,\n backgroundColor: SharedStyle.COLORS.white,\n backgroundImage: 'none',\n border: '1px solid rgba(0,0,0,.15)',\n outline: 'none',\n height: '30px',\n};\n\n\nexport default class FormTextInput extends Component {\n\n constructor(props) {\n super(props);\n this.state = { focus: false };\n }\n\n render() {\n let { style, ...rest } = this.props;\n\n let textInputStyle = { ...STYLE_INPUT, ...style };\n if (this.state.focus) textInputStyle.border = `1px solid ${SharedStyle.SECONDARY_COLOR.main}`;\n\n return this.setState({ focus: true })}\n onBlur={e => this.setState({ focus: false })}\n style={textInputStyle}\n type=\"text\"\n {...rest}\n />\n }\n}\n\nFormTextInput.defaultProps = {\n style: {}\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nconst BASE_STYLE = {\n display: \"inline-block\",\n fontWeight: \"400\",\n lineHeight: \"1.25\",\n textAlign: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n cursor: \"pointer\",\n WebkitUserSelect: \"none\",\n MozUserSelect: \"none\",\n MsUserSelect: \"none\",\n userSelect: \"none\",\n padding: \"5px 14px\",\n fontSize: \"14px\",\n color: SharedStyle.COLORS.black,\n fonWeight: \"400px\",\n transition: \"background-color 175ms ease, border 175ms ease\",\n outline: \"none\",\n borderRadius: \"2px\",\n borderWidth: \"1px\",\n borderType: \"solid\",\n width: '100%'\n};\n\nconst BASE_STYLE_SIZE = {\n small: {\n fontSize: \"12px\",\n padding: \"3px 8px\",\n },\n normal: {},\n large: {\n padding: \"8px 20px\",\n },\n};\n\nexport default class Button extends Component {\n\n constructor(props) {\n super(props);\n this.state = {hover: false};\n }\n\n render() {\n let {hover} = this.state;\n let {type, style: customStyle, styleHover: customStyleHover, children, size, ...rest} = this.props;\n let styleMerged = Object.assign({}, BASE_STYLE, BASE_STYLE_SIZE[size], hover ? customStyleHover : customStyle);\n\n return this.setState({hover: true})}\n onMouseLeave={e => this.setState({hover: false})}\n style={styleMerged}\n {...rest}>{children}\n }\n}\n\nButton.defaultProps = {\n type: \"button\",\n size: \"normal\",\n style: {\n backgroundColor: \"#e6e6e6\",\n borderColor: \"#adadad\",\n },\n styleHover: {\n backgroundColor: \"#d4d4d4\",\n borderColor: \"#8c8c8c\"\n },\n};\n\nButton.propTypes = {\n type: PropTypes.string,\n style: PropTypes.object,\n styleHover: PropTypes.object,\n size: PropTypes.oneOf(['large', 'normal', 'small']),\n};\n\n","import * as Three from 'three';\n\nfunction disposeGeometry(geometry) {\n geometry.dispose();\n}\n\nfunction disposeTexture(texture) {\n if (!texture) {\n return;\n }\n texture.dispose();\n}\n\nfunction disposeMultimaterial(material) {\n if (!(material instanceof Three.MultiMaterial)) {\n return;\n }\n material.materials.forEach(material => {\n disposeMaterial(material);\n });\n\n}\n\nfunction disposeMaterial(material) {\n if (!(material instanceof Three.Material)) {\n return;\n }\n\n disposeTexture(material.map);\n material.map = null;\n material.dispose();\n}\n\nfunction disposeMesh(mesh) {\n if (!(mesh instanceof Three.Mesh || mesh instanceof Three.BoxHelper || mesh instanceof Three.LineSegments)) {\n return;\n }\n disposeGeometry(mesh.geometry);\n disposeMultimaterial(mesh.material);\n disposeMaterial(mesh.material);\n\n mesh.geometry = null;\n mesh.material = null;\n}\n\nexport function disposeScene(scene3D) {\n scene3D.traverse(child => {\n disposeMesh(child);\n child = null;\n });\n}\n\nexport function disposeObject(object) {\n object.traverse(child => {\n disposeMesh(child);\n child = null;\n });\n}\n","import {\n NEW_PROJECT,\n LOAD_PROJECT,\n SAVE_PROJECT,\n OPEN_CATALOG,\n SELECT_TOOL_EDIT,\n UNSELECT_ALL,\n SET_PROPERTIES,\n SET_ITEMS_ATTRIBUTES,\n SET_LINES_ATTRIBUTES,\n SET_HOLES_ATTRIBUTES,\n REMOVE,\n UNDO,\n ROLLBACK,\n OPEN_PROJECT_CONFIGURATOR,\n SET_PROJECT_PROPERTIES,\n INIT_CATALOG,\n UPDATE_MOUSE_COORDS,\n UPDATE_ZOOM_SCALE,\n TOGGLE_SNAP,\n CHANGE_CATALOG_PAGE,\n GO_BACK_TO_CATALOG_PAGE,\n THROW_ERROR,\n THROW_WARNING,\n COPY_PROPERTIES,\n PASTE_PROPERTIES,\n PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,\n ALTERATE_STATE,\n SET_MODE,\n ADD_HORIZONTAL_GUIDE,\n ADD_VERTICAL_GUIDE,\n ADD_CIRCULAR_GUIDE,\n REMOVE_HORIZONTAL_GUIDE,\n REMOVE_VERTICAL_GUIDE,\n REMOVE_CIRCULAR_GUIDE\n} from '../constants';\n\nexport function loadProject(sceneJSON) {\n return {\n type: LOAD_PROJECT,\n sceneJSON\n };\n}\n\nexport function newProject() {\n return {\n type: NEW_PROJECT\n };\n}\n\nexport function saveProject() {\n return {\n type: SAVE_PROJECT\n };\n}\n\nexport function openCatalog() {\n return {\n type: OPEN_CATALOG\n };\n}\n\nexport function changeCatalogPage(newPage, oldPage) {\n return {\n type: CHANGE_CATALOG_PAGE,\n newPage,\n oldPage\n };\n}\n\nexport function goBackToCatalogPage(newPage) {\n return {\n type: GO_BACK_TO_CATALOG_PAGE,\n newPage\n };\n}\n\nexport function selectToolEdit() {\n return {\n type: SELECT_TOOL_EDIT\n };\n}\n\nexport function unselectAll() {\n return {\n type: UNSELECT_ALL\n };\n}\n\n\nexport function setProperties(properties) {\n return {\n type: SET_PROPERTIES,\n properties\n };\n}\n\nexport function setItemsAttributes(itemsAttributes) {\n\n itemsAttributes = itemsAttributes.set('rotation', parseFloat(itemsAttributes.get('rotation')));\n\n return {\n type: SET_ITEMS_ATTRIBUTES,\n itemsAttributes\n };\n}\n\nexport function setLinesAttributes(linesAttributes) {\n\n linesAttributes = linesAttributes.withMutations(attributes => {\n attributes.setIn(['vertexOne', 'x'], parseFloat(linesAttributes.getIn(['vertexOne', 'x'])));\n attributes.setIn(['vertexOne', 'y'], parseFloat(linesAttributes.getIn(['vertexOne', 'y'])));\n attributes.setIn(['vertexTwo', 'x'], parseFloat(linesAttributes.getIn(['vertexTwo', 'x'])));\n attributes.setIn(['vertexTwo', 'y'], parseFloat(linesAttributes.getIn(['vertexTwo', 'y'])));\n });\n\n return {\n type: SET_LINES_ATTRIBUTES,\n linesAttributes\n };\n}\n\nexport function setHolesAttributes(holesAttributes) {\n\n holesAttributes = holesAttributes.set('offset', parseFloat(holesAttributes.get('offset')));\n\n return {\n type: SET_HOLES_ATTRIBUTES,\n holesAttributes\n };\n}\n\nexport function remove() {\n return {\n type: REMOVE\n };\n}\n\nexport function undo() {\n return {\n type: UNDO\n };\n}\n\nexport function rollback() {\n return {\n type: ROLLBACK\n };\n}\n\nexport function openProjectConfigurator() {\n return {\n type: OPEN_PROJECT_CONFIGURATOR\n };\n}\n\nexport function setProjectProperties(properties) {\n return {\n type: SET_PROJECT_PROPERTIES,\n properties\n };\n}\n\nexport function initCatalog(catalog) {\n return {\n type: INIT_CATALOG,\n catalog\n };\n}\n\nexport function updateMouseCoord(coords = {x, y}) {\n return {\n type: UPDATE_MOUSE_COORDS,\n coords\n };\n}\n\nexport function updateZoomScale(scale) {\n return {\n type: UPDATE_ZOOM_SCALE,\n scale\n };\n}\n\nexport function toggleSnap(mask) {\n return {\n type: TOGGLE_SNAP,\n mask\n };\n}\n\nexport function throwError(error) {\n return {\n type: THROW_ERROR,\n error\n };\n}\n\nexport function throwWarning(warning) {\n return {\n type: THROW_WARNING,\n warning\n };\n}\n\nexport function copyProperties(properties) {\n return {\n type: COPY_PROPERTIES,\n properties\n };\n}\n\nexport function pasteProperties() {\n return {\n type: PASTE_PROPERTIES\n };\n}\n\nexport function pushLastSelectedCatalogElementToHistory( element ) {\n return {\n type: PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,\n element\n };\n}\n\nexport function setAlterateState() {\n return {\n type: ALTERATE_STATE\n };\n}\n\nexport function setMode( mode ) {\n return {\n type: SET_MODE,\n mode\n };\n}\n\nexport function addHorizontalGuide( coordinate ) {\n return {\n type: ADD_HORIZONTAL_GUIDE,\n coordinate\n };\n}\n\nexport function addVerticalGuide( coordinate ) {\n return {\n type: ADD_VERTICAL_GUIDE,\n coordinate\n };\n}\n\nexport function addCircularGuide( x, y, radius ) {\n return {\n type: ADD_CIRCULAR_GUIDE,\n x,\n y,\n radius\n };\n}\nexport function removeHorizontalGuide( guideID ) {\n return {\n type: REMOVE_HORIZONTAL_GUIDE,\n guideID\n };\n}\n\nexport function removeVerticalGuide( guideID ) {\n return {\n type: REMOVE_VERTICAL_GUIDE,\n guideID\n };\n}\n\nexport function removeCircularGuide( guideID ) {\n return {\n type: REMOVE_CIRCULAR_GUIDE,\n guideID\n };\n}","import * as projectActions from './project-actions';\nimport * as viewer2DActions from './viewer2d-actions';\nimport * as viewer3DActions from './viewer3d-actions';\nimport * as linesActions from './lines-actions';\nimport * as holesActions from './holes-actions';\nimport * as sceneActions from './scene-actions';\nimport * as verticesActions from './vertices-actions';\nimport * as itemsActions from './items-actions';\nimport * as areaActions from './area-actions';\nimport * as groupsActions from './groups-actions';\n\nexport {\n projectActions,\n viewer2DActions,\n viewer3DActions,\n linesActions,\n holesActions,\n sceneActions,\n verticesActions,\n itemsActions,\n areaActions,\n groupsActions\n};\n\nexport default {\n projectActions,\n viewer2DActions,\n viewer3DActions,\n linesActions,\n holesActions,\n sceneActions,\n verticesActions,\n itemsActions,\n areaActions,\n groupsActions\n};\n","/** @description Return float fixed to desired precision\n * @param {number} num Float to fix\n * @param {number} precision Desired precision, or 6 if not specified\n * @return {number}\n*/\nexport function toFixedFloat(num, precision = 6) {\n if (num && precision) {\n return parseFloat(parseFloat(num).toFixed(precision));\n }\n return 0;\n}\n\n/** @description Return absolute value of a number\n * @param {number} n Number of wich get value without sign\n * @return {number}\n*/\nexport const fAbs = n => { let x = n; (x < 0) && (x = ~x + 1); return x; };\n\n/** @description Multiply two matrices\n * @param {Array} m1 Matrix 1\n * @param {Array} m2 Matrix 2\n * @return {Array}\n*/\nexport const multiplyMatrices = (m1, m2) => {\n let result = [];\n for (let i = 0; i < m1.length; i++) {\n result[i] = [];\n for (let j = 0; j < m2[0].length; j++) {\n let sum = 0;\n for (let k = 0; k < m1[0].length; k++) {\n sum += m1[i][k] * m2[k][j];\n }\n result[i][j] = sum;\n }\n }\n return result;\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from './panel';\nimport * as SharedStyle from '../../shared-style';\nimport {TiPlus, TiDelete} from 'react-icons/lib/ti';\nimport {FaPencil, FaChainBroken, FaEye} from 'react-icons/lib/fa';\nimport { FormNumberInput, FormTextInput } from '../style/export';\nimport { Map } from 'immutable';\n\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../constants';\n\nconst VISIBILITY_MODE = {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n};\n\nconst tableStyle = { width: '100%' };\nconst firstTdStyle = { width: '6em' };\nconst inputStyle = { textAlign: 'left' };\nconst styleEditButton = {\n marginLeft: '5px',\n border: '0px',\n background: 'none',\n color: SharedStyle.COLORS.white,\n fontSize: '14px',\n outline: '0px'\n};\n\nconst tablegroupStyle = {\n width: '100%',\n cursor: 'pointer',\n maxHeight: '20em',\n marginLeft: '1px',\n marginTop: '1em'\n};\n\nconst iconColStyle = {width: '2em'};\n\nexport default class PanelGroupEditor extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {};\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n return true;\n }\n\n componentWillReceiveProps( nextProps, nextContext ) {\n }\n\n render() {\n if (!this.props.groupID || !VISIBILITY_MODE[this.props.state.mode]) return null;\n\n let group = this.props.state.getIn(['scene', 'groups', this.props.groupID]);\n let elements = group.get('elements');\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{this.context.translator.t('Name')}\n this.context.groupsActions.setGroupAttributes( this.props.groupID, new Map({ 'name': e.target.value }) ) }\n style={inputStyle}\n />\n
X\n this.context.groupsActions.groupTranslate( this.props.groupID, e.target.value, group.get('y') ) }\n style={inputStyle}\n state={this.props.state}\n precision={2}\n />\n
Y\n this.context.groupsActions.groupTranslate( this.props.groupID, group.get('x'), e.target.value ) }\n style={inputStyle}\n state={this.props.state}\n precision={2}\n />\n
{this.context.translator.t('Rotation')}\n this.context.groupsActions.groupRotate( this.props.groupID, e.target.value ) }\n style={inputStyle}\n state={this.props.state}\n precision={2}\n />\n
\n {\n elements.size ?\n
\n

{this.context.translator.t('Group\\'s Elements')}

\n \n \n \n \n \n \n \n \n \n \n {\n elements.entrySeq().map(([ layerID, layerElements ]) => {\n\n return layerElements.entrySeq().map(([elementPrototype, ElementList]) => {\n\n return ElementList.valueSeq().map( elementID => {\n let element = this.props.state.getIn(['scene', 'layers', layerID, elementPrototype, elementID]);\n\n return \n \n \n \n \n ;\n });\n });\n })\n }\n \n
{this.context.translator.t('Layer')}{this.context.translator.t('Prototype')}{this.context.translator.t('Name')}
\n this.context.groupsActions.removeFromGroup( this.props.groupID, layerID, elementPrototype, elementID ) }\n style={styleEditButton}\n />\n \n {layerID}\n \n {elementPrototype}\n \n {element.name}\n
\n
:\n null\n }\n
\n
\n );\n }\n\n}\n\nPanelGroupEditor.propTypes = {\n state: PropTypes.object.isRequired,\n groupID: PropTypes.string\n};\n\nPanelGroupEditor.contextTypes = {\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n groupsActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport PropertyLengthMeasure from '../../../../catalog/properties/property-lenght-measure';\nimport PropertyString from '../../../../catalog/properties/property-string';\n\nexport default function HoleAttributesEditor({element, onUpdate, attributeFormData, state, ...rest}, {translator}) {\n let name = attributeFormData.has('name') ? attributeFormData.get('name') : element.name;\n let offsetA = attributeFormData.has('offsetA') ? attributeFormData.get('offsetA') : element.offsetA;\n let offsetB = attributeFormData.has('offsetB') ? attributeFormData.get('offsetB') : element.offsetA;\n\n return
\n onUpdate('name', mapped)}\n configs={{label: 'Nome'}}\n state={state}\n {...rest}\n />\n onUpdate('offsetA', mapped)}\n configs={{label: 'Offset 1', min: 0, max: Infinity, precision: 2}}\n state={state}\n {...rest}\n />\n onUpdate('offsetB', mapped)}\n configs={{label: 'Offset 2', min: 0, max: Infinity, precision: 2}}\n state={state}\n {...rest}\n />\n
;\n}\n\nHoleAttributesEditor.propTypes = {\n element: PropTypes.object.isRequired,\n onUpdate: PropTypes.func.isRequired,\n attributeFormData: PropTypes.object.isRequired,\n state: PropTypes.object.isRequired\n};\n\nHoleAttributesEditor.contextTypes = {\n translator: PropTypes.object.isRequired,\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport { FormNumberInput, FormTextInput } from '../../../style/export';\nimport { PropertyLengthMeasure } from '../../../../catalog/properties/export';\n\nconst tableStyle = { width: '100%' };\nconst firstTdStyle = { width: '6em' };\nconst inputStyle = { textAlign: 'left' };\n\nexport default function LineAttributesEditor({element, onUpdate, attributeFormData, state, ...rest}, {translator}) {\n\n let name = attributeFormData.has('name') ? attributeFormData.get('name') : element.name;\n let vertexOne = attributeFormData.has('vertexOne') ? attributeFormData.get('vertexOne') : null;\n let vertexTwo = attributeFormData.has('vertexTwo') ? attributeFormData.get('vertexTwo') : null;\n let lineLength = attributeFormData.has('lineLength') ? attributeFormData.get('lineLength') : null;\n\n return (\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{translator.t('Name')}\n onUpdate('name', event.target.value)}\n style={inputStyle}\n />\n
X1\n onUpdate('vertexOne', {'x': event.target.value})}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
Y1\n onUpdate('vertexOne', {'y': event.target.value})}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
X2\n onUpdate('vertexTwo', {'x': event.target.value})}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
Y2\n onUpdate('vertexTwo', {'y': event.target.value})}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
\n onUpdate('lineLength', mapped)}\n configs={{label: translator.t('Length'), min: 0, max: Infinity, precision: 2}}\n state={state}\n />\n
\n );\n}\n\nLineAttributesEditor.propTypes = {\n element: PropTypes.object.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onValid: PropTypes.func,\n attributeFormData: PropTypes.object.isRequired,\n state: PropTypes.object.isRequired\n};\n\nLineAttributesEditor.contextTypes = {\n translator: PropTypes.object.isRequired,\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport FormNumberInput from '../../../style/form-number-input';\nimport FormTextInput from '../../../style/form-text-input';\n\nconst tableStyle = { width: '100%' };\nconst firstTdStyle = { width: '6em' };\nconst inputStyle = { textAlign: 'left' };\n\nexport default function ItemAttributesEditor({element, onUpdate, attributeFormData, state, ...rest}, {translator}) {\n let name = attributeFormData.has('name') ? attributeFormData.get('name') : element.name;\n let renderedX = attributeFormData.has('x') ? attributeFormData.get('x') : element.x;\n let renderedY = attributeFormData.has('y') ? attributeFormData.get('y') : element.y;\n let renderedR = attributeFormData.has('rotation') ? attributeFormData.get('rotation') : element.rotation;\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{translator.t('Name')}\n onUpdate('name', event.target.value)}\n style={inputStyle}\n />\n
X\n onUpdate('x', event.target.value)}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
Y\n onUpdate('y', event.target.value)}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
{translator.t('Rotation')}\n onUpdate('rotation', event.target.value)}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
\n );\n}\n\nItemAttributesEditor.propTypes = {\n element: PropTypes.object.isRequired,\n onUpdate: PropTypes.func.isRequired,\n attributeFormData: PropTypes.object.isRequired,\n state: PropTypes.object.isRequired\n};\n\nItemAttributesEditor.contextTypes = {\n translator: PropTypes.object.isRequired,\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport ItemAttributesEditor from './item-attributes-editor';\nimport LineAttributesEditor from './line-attributes-editor';\nimport HoleAttributesEditor from './hole-attributes-editor';\n\n\nexport default function AttributesEditor({element, onUpdate, onValid, attributeFormData, state, ...rest}) {\n\n switch (element.prototype) {\n case 'items':\n return ;\n case 'lines':\n return ;\n case 'holes':\n return ;\n case 'areas':\n return null;\n\n }\n\n return null;\n}\n\nAttributesEditor.propTypes = {\n element: PropTypes.object.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onValid: PropTypes.func,\n attributeFormData: PropTypes.object.isRequired,\n state: PropTypes.object.isRequired\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport {Map, fromJS} from 'immutable';\nimport AttributesEditor from './attributes-editor/attributes-editor';\nimport { GeometryUtils, MathUtils } from '../../../utils/export';\nimport * as SharedStyle from '../../../shared-style';\nimport convert from 'convert-units';\nimport {MdContentCopy, MdContentPaste} from 'react-icons/lib/md';\n\nconst PRECISION = 2;\n\nconst attrPorpSeparatorStyle = {\n margin: '0.5em 0.25em 0.5em 0',\n border: '2px solid ' + SharedStyle.SECONDARY_COLOR.alt,\n position:'relative',\n height:'2.5em',\n borderRadius:'2px'\n};\n\nconst headActionStyle = {\n position:'absolute',\n right:'0.5em',\n top:'0.5em'\n};\n\nconst iconHeadStyle = {\n float:'right',\n margin:'-3px 4px 0px 0px',\n padding:0,\n cursor:'pointer',\n fontSize:'1.4em'\n};\n\nexport default class ElementEditor extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n attributesFormData: this.initAttrData(this.props.element, this.props.layer, this.props.state),\n propertiesFormData: this.initPropData(this.props.element, this.props.layer, this.props.state)\n };\n\n this.updateAttribute = this.updateAttribute.bind(this);\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n if(\n this.state.attributesFormData.hashCode() !== nextState.attributesFormData.hashCode() ||\n this.state.propertiesFormData.hashCode() !== nextState.propertiesFormData.hashCode() ||\n this.props.state.clipboardProperties.hashCode() !== nextProps.state.clipboardProperties.hashCode()\n ) return true;\n\n return false;\n }\n\n componentWillReceiveProps({ element, layer, state }) {\n let { prototype, id } = element;\n let scene = this.props.state.get('scene');\n let selectedLayer = scene.getIn(['layers', scene.get('selectedLayer')]);\n let selected = selectedLayer.getIn([prototype, id]);\n\n if( selectedLayer.hashCode() !== layer.hashCode() ) this.setState({\n attributesFormData: this.initAttrData(element, layer, state),\n propertiesFormData: this.initPropData(element, layer, state)\n });\n }\n\n initAttrData(element, layer, state) {\n\n element = typeof element.misc === 'object' ? element.set('misc', new Map(element.misc)) : element;\n\n switch (element.prototype) {\n case 'items': {\n return new Map(element);\n }\n case 'lines': {\n let v_a = layer.vertices.get(element.vertices.get(0));\n let v_b = layer.vertices.get(element.vertices.get(1));\n\n let distance = GeometryUtils.pointsDistance(v_a.x, v_a.y, v_b.x, v_b.y);\n let _unit = element.misc.get('_unitLength') || this.context.catalog.unit;\n let _length = convert(distance).from(this.context.catalog.unit).to(_unit);\n\n return new Map({\n vertexOne: v_a,\n vertexTwo: v_b,\n lineLength: new Map({length: distance, _length, _unit}),\n });\n }\n case 'holes': {\n let line = layer.lines.get(element.line);\n let {x: x0, y: y0} = layer.vertices.get(line.vertices.get(0));\n let {x: x1, y: y1} = layer.vertices.get(line.vertices.get(1));\n let lineLength = GeometryUtils.pointsDistance(x0, y0, x1, y1);\n let startAt = lineLength * element.offset - element.properties.get('width').get('length') / 2;\n\n let _unitA = element.misc.get('_unitA') || this.context.catalog.unit;\n let _lengthA = convert(startAt).from(this.context.catalog.unit).to(_unitA);\n\n let endAt = lineLength - lineLength * element.offset - element.properties.get('width').get('length') / 2;\n let _unitB = element.misc.get('_unitB') || this.context.catalog.unit;\n let _lengthB = convert(endAt).from(this.context.catalog.unit).to(_unitB);\n\n return new Map({\n offset: element.offset,\n offsetA: new Map({\n length: MathUtils.toFixedFloat(startAt, PRECISION),\n _length: MathUtils.toFixedFloat(_lengthA, PRECISION),\n _unit: _unitA\n }),\n offsetB: new Map({\n length: MathUtils.toFixedFloat(endAt, PRECISION),\n _length: MathUtils.toFixedFloat(_lengthB, PRECISION),\n _unit: _unitB\n })\n });\n }\n case 'areas': {\n return new Map({});\n }\n default:\n return null;\n }\n\n\n }\n\n initPropData(element, layer, state) {\n let {catalog} = this.context;\n let catalogElement = catalog.getElement(element.type);\n\n let mapped = {};\n for (let name in catalogElement.properties) {\n mapped[name] = new Map({\n currentValue: element.properties.has(name) ? element.properties.get(name) : fromJS(catalogElement.properties[name].defaultValue),\n configs: catalogElement.properties[name]\n });\n }\n\n return new Map(mapped);\n }\n\n updateAttribute(attributeName, value) {\n\n let {attributesFormData} = this.state;\n\n switch (this.props.element.prototype) {\n case 'items': {\n attributesFormData = attributesFormData.set(attributeName, value);\n break;\n }\n case 'lines': {\n switch(attributeName)\n {\n case 'lineLength':\n {\n let v_0 = attributesFormData.get('vertexOne');\n let v_1 = attributesFormData.get('vertexTwo');\n\n let [v_a, v_b] = GeometryUtils.orderVertices([v_0, v_1]);\n\n let v_b_new = GeometryUtils.extendLine(v_a.x, v_a.y, v_b.x, v_b.y, value.get('length'), PRECISION);\n\n attributesFormData = attributesFormData.withMutations(attr => {\n attr.set(v_0 === v_a ? 'vertexTwo' : 'vertexOne', v_b.merge(v_b_new));\n attr.set('lineLength', value);\n });\n break;\n }\n case 'vertexOne':\n case 'vertexTwo':\n {\n attributesFormData = attributesFormData.withMutations(attr => {\n attr.set(attributeName, attr.get(attributeName).merge(value));\n\n let newDistance = GeometryUtils.verticesDistance(attr.get('vertexOne'), attr.get('vertexTwo'));\n\n attr.mergeIn(['lineLength'], attr.get('lineLength').merge({\n 'length': newDistance,\n '_length': convert(newDistance).from(this.context.catalog.unit).to(attr.get('lineLength').get('_unit'))\n }));\n });\n break;\n }\n default:\n {\n attributesFormData = attributesFormData.set(attributeName, value);\n break;\n }\n }\n break;\n }\n case 'holes': {\n switch( attributeName )\n {\n case 'offsetA':\n {\n let line = this.props.layer.lines.get(this.props.element.line);\n\n let orderedVertices = GeometryUtils.orderVertices([\n this.props.layer.vertices.get(line.vertices.get(0)),\n this.props.layer.vertices.get(line.vertices.get(1))\n ]);\n\n let [ {x: x0, y: y0}, {x: x1, y: y1} ] = orderedVertices;\n\n let alpha = GeometryUtils.angleBetweenTwoPoints(x0, y0, x1, y1);\n let lineLength = GeometryUtils.pointsDistance(x0, y0, x1, y1);\n let widthLength = this.props.element.properties.get('width').get('length');\n let halfWidthLength = widthLength / 2;\n\n let lengthValue = value.get('length');\n lengthValue = Math.max(lengthValue, 0);\n lengthValue = Math.min(lengthValue, lineLength - widthLength);\n\n let xp = (lengthValue + halfWidthLength) * Math.cos(alpha) + x0;\n let yp = (lengthValue + halfWidthLength) * Math.sin(alpha) + y0;\n\n let offset = GeometryUtils.pointPositionOnLineSegment(x0, y0, x1, y1, xp, yp);\n\n let endAt = MathUtils.toFixedFloat(lineLength - (lineLength * offset) - halfWidthLength, PRECISION);\n let offsetUnit = attributesFormData.getIn(['offsetB', '_unit']);\n\n let offsetB = new Map({\n length: endAt,\n _length: convert(endAt).from(this.context.catalog.unit).to(offsetUnit),\n _unit: offsetUnit\n });\n\n attributesFormData = attributesFormData.set('offsetB', offsetB).set('offset', offset);\n\n let offsetAttribute = new Map({\n length: MathUtils.toFixedFloat(lengthValue, PRECISION),\n _unit: value.get('_unit'),\n _length: MathUtils.toFixedFloat(convert(lengthValue).from(this.context.catalog.unit).to(value.get('_unit')), PRECISION)\n });\n\n attributesFormData = attributesFormData.set(attributeName, offsetAttribute);\n\n break;\n }\n case 'offsetB':\n {\n let line = this.props.layer.lines.get(this.props.element.line);\n\n let orderedVertices = GeometryUtils.orderVertices([\n this.props.layer.vertices.get(line.vertices.get(0)),\n this.props.layer.vertices.get(line.vertices.get(1))\n ]);\n\n let [ {x: x0, y: y0}, {x: x1, y: y1} ] = orderedVertices;\n\n let alpha = GeometryUtils.angleBetweenTwoPoints(x0, y0, x1, y1);\n let lineLength = GeometryUtils.pointsDistance(x0, y0, x1, y1);\n let widthLength = this.props.element.properties.get('width').get('length');\n let halfWidthLength = widthLength / 2;\n\n let lengthValue = value.get('length');\n lengthValue = Math.max(lengthValue, 0);\n lengthValue = Math.min(lengthValue, lineLength - widthLength);\n\n let xp = x1 - (lengthValue + halfWidthLength) * Math.cos(alpha);\n let yp = y1 - (lengthValue + halfWidthLength) * Math.sin(alpha);\n\n let offset = GeometryUtils.pointPositionOnLineSegment(x0, y0, x1, y1, xp, yp);\n\n let startAt = MathUtils.toFixedFloat((lineLength * offset) - halfWidthLength, PRECISION);\n let offsetUnit = attributesFormData.getIn(['offsetA', '_unit']);\n\n let offsetA = new Map({\n length: startAt,\n _length: convert(startAt).from(this.context.catalog.unit).to(offsetUnit),\n _unit: offsetUnit\n });\n\n attributesFormData = attributesFormData.set('offsetA', offsetA).set('offset', offset);\n\n let offsetAttribute = new Map({\n length: MathUtils.toFixedFloat(lengthValue, PRECISION),\n _unit: value.get('_unit'),\n _length: MathUtils.toFixedFloat(convert(lengthValue).from(this.context.catalog.unit).to(value.get('_unit')), PRECISION)\n });\n\n attributesFormData = attributesFormData.set(attributeName, offsetAttribute);\n\n break;\n }\n default:\n {\n attributesFormData = attributesFormData.set(attributeName, value);\n break;\n }\n };\n break;\n }\n default:\n break;\n }\n\n this.setState({attributesFormData});\n this.save({attributesFormData});\n }\n\n updateProperty(propertyName, value) {\n let {state: {propertiesFormData}} = this;\n propertiesFormData = propertiesFormData.setIn([propertyName, 'currentValue'], value);\n this.setState({propertiesFormData});\n this.save({propertiesFormData});\n }\n\n reset() {\n this.setState({propertiesFormData: this.initPropData(this.props.element, this.props.layer, this.props.state)});\n }\n\n save({propertiesFormData, attributesFormData}) {\n\n if( propertiesFormData ) {\n let properties = propertiesFormData.map(data => {\n return data.get('currentValue');\n });\n\n this.context.projectActions.setProperties(properties);\n }\n\n if( attributesFormData ) {\n switch (this.props.element.prototype) {\n case 'items': {\n this.context.projectActions.setItemsAttributes(attributesFormData);\n break;\n }\n case 'lines': {\n this.context.projectActions.setLinesAttributes(attributesFormData);\n break;\n }\n case 'holes': {\n this.context.projectActions.setHolesAttributes(attributesFormData);\n break;\n }\n }\n }\n }\n\n copyProperties( properties ) {\n this.context.projectActions.copyProperties( properties );\n }\n\n pasteProperties() {\n this.context.projectActions.pasteProperties();\n }\n\n render() {\n let {\n state: {propertiesFormData, attributesFormData},\n context: {projectActions, catalog, translator},\n props: {state: appState, element},\n } = this;\n\n return (\n
\n\n \n\n
\n
\n
this.copyProperties(element.properties) }>
\n {\n appState.get('clipboardProperties') && appState.get('clipboardProperties').size ?\n
this.pasteProperties() }>
: null\n }\n
\n
\n\n {propertiesFormData.entrySeq()\n .map(([propertyName, data]) => {\n\n let currentValue = data.get('currentValue'), configs = data.get('configs');\n\n let {Editor} = catalog.getPropertyType(configs.type);\n\n return this.updateProperty(propertyName, value)}\n state={appState}\n sourceElement={element}\n internalState={this.state}\n />\n })\n }\n\n
\n )\n }\n}\n\nElementEditor.propTypes = {\n state: PropTypes.object.isRequired,\n element: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired\n};\n\nElementEditor.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from '../panel';\nimport {Seq} from 'immutable';\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../../constants';\nimport ElementEditor from './element-editor';\n\nexport default function PanelElementEditor({state}, {projectActions, translator}) {\n\n let {scene, mode} = state;\n\n if (![MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN,\n MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM,\n MODE_DRAGGING_LINE, MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE,\n MODE_ROTATING_ITEM, MODE_UPLOADING_IMAGE, MODE_FITTING_IMAGE].includes(mode)) return null;\n\n let componentRenderer = (element, layer) =>\n \n
\n \n
\n
;\n\n let layerRenderer = layer => Seq()\n .concat(layer.lines, layer.holes, layer.areas, layer.items)\n .filter(element => element.selected)\n .map(element => componentRenderer(element, layer))\n .valueSeq();\n\n return
{scene.layers.valueSeq().map(layerRenderer)}
\n\n}\n\nPanelElementEditor.propTypes = {\n state: PropTypes.object.isRequired,\n};\n\nPanelElementEditor.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport PanelElementEditor from './panel-element-editor/panel-element-editor';\nimport PanelGroupEditor from './panel-group-editor';\nimport PanelMultiElementsEditor from './panel-element-editor/panel-multi-elements-editor';\nimport PanelLayers from './panel-layers';\nimport PanelGuides from './panel-guides';\nimport PanelGroups from './panel-groups';\nimport PanelLayerElements from './panel-layer-elements';\nimport * as SharedStyle from '../../shared-style';\nimport If from '../../utils/react-if';\n\nconst STYLE = {\n backgroundColor: SharedStyle.PRIMARY_COLOR.main,\n display: 'block',\n overflowY: 'auto',\n overflowX: 'hidden',\n paddingBottom: '20px'\n};\n\nconst sortButtonsCb = (a, b) => {\n if (a.index === undefined || a.index === null) {\n a.index = Number.MAX_SAFE_INTEGER;\n }\n\n if (b.index === undefined || b.index === null) {\n b.index = Number.MAX_SAFE_INTEGER;\n }\n\n return a.index - b.index;\n};\n\nconst mapButtonsCb = (el, ind) => {el.dom};\n\nexport default function Sidebar({ state, width, height, sidebarComponents }) {\n\n let selectedLayer = state.getIn(['scene', 'selectedLayer']);\n\n //TODO change in multi-layer check\n let selected = state.getIn(['scene', 'layers', selectedLayer, 'selected']);\n\n let multiselected =\n selected.lines.size > 1 ||\n selected.items.size > 1 ||\n selected.holes.size > 1 ||\n selected.areas.size > 1 ||\n selected.lines.size + selected.items.size + selected.holes.size + selected.areas.size > 1;\n\n let selectedGroup = state.getIn(['scene', 'groups']).findEntry( g => g.get('selected') );\n\n let sorter = [\n { index: 0, condition: true, dom: },\n { index: 1, condition: true, dom: },\n { index: 2, condition: true, dom: },\n { index: 3, condition: true, dom: },\n { index: 4, condition: !multiselected, dom: },\n //{ index: 5, condition: multiselected, dom: },\n { index: 6, condition: !!selectedGroup, dom: }\n ];\n\n sorter = sorter.concat(sidebarComponents.map((Component, key) => {\n return Component.prototype ? //if is a react component\n {\n condition: true,\n dom: React.createElement(Component, { state, key })\n } :\n { //else is a sortable toolbar button\n index: Component.index,\n condition: Component.condition,\n dom: React.createElement(Component.dom, { state, key })\n };\n }));\n\n return (\n event.stopPropagation()}\n onKeyUp={event => event.stopPropagation()}\n className=\"sidebar\"\n >\n {sorter.sort(sortButtonsCb).map(mapButtonsCb)}\n \n );\n}\n\nSidebar.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n};\n","import Sidebar from './sidebar';\nimport Panel from './panel';\nimport PanelLayers from './panel-layers';\nimport PanelLayerElement from './panel-layer-elements';\nimport PanelGuides from './panel-guides';\n\nexport {\n Sidebar,\n Panel,\n PanelLayers,\n PanelLayerElement,\n PanelGuides\n};\n\nexport default {\n Sidebar,\n Panel,\n PanelLayers,\n PanelLayerElement,\n PanelGuides\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport {\n ContentTitle,\n ContentContainer,\n FormLabel,\n FormBlock,\n FormNumberInput,\n FormSubmitButton,\n CancelButton\n} from '../style/export';\n\nexport default class ProjectConfigurator extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n let scene = props.state.scene;\n\n this.state = {\n dataWidth: scene.width,\n dataHeight: scene.height,\n };\n }\n\n onSubmit(event) {\n event.preventDefault();\n\n let {projectActions} = this.context;\n\n let {dataWidth, dataHeight} = this.state;\n dataWidth = parseInt(dataWidth);\n dataHeight = parseInt(dataHeight);\n if (dataWidth <= 100 || dataHeight <= 100) {\n alert('Scene size too small');\n } else {\n projectActions.setProjectProperties({width: dataWidth, height: dataHeight});\n }\n }\n\n\n render() {\n let {width, height} = this.props;\n let {dataWidth, dataHeight} = this.state;\n let {projectActions, translator} = this.context;\n\n return (\n \n {translator.t('Project config')}\n\n
this.onSubmit(e)}>\n \n {translator.t('width')}\n this.setState({dataWidth: e.target.value})}\n />\n \n\n \n {translator.t('height')}\n this.setState({dataHeight: e.target.value})}\n />\n \n\n \n \n \n \n \n \n \n
\n projectActions.rollback()}>{translator.t('Cancel')}\n \n {translator.t('Save')}\n
\n
\n
\n )\n }\n}\n\nProjectConfigurator.propTypes = {\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n state: PropTypes.object.isRequired,\n};\n\nProjectConfigurator.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport IconBefore from 'react-icons/lib/md/navigate-before';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE_BOX = {\n width: '14em',\n height: '14em',\n padding: '0.625em',\n background: '#f7f7f9',\n border: '1px solid #e1e1e8',\n margin: '0.3em',\n cursor: 'pointer',\n position: 'relative',\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\n borderRadius: '2px',\n transition: 'all .2s ease-in-out',\n WebkitTransition: 'all .2s ease-in-out'\n};\n\nconst STYLE_BOX_HOVER = {\n ...STYLE_BOX,\n background: SharedStyle.SECONDARY_COLOR.main\n};\n\nconst STYLE_BACK = {\n position: 'absolute',\n color: SharedStyle.COLORS.black,\n fontSize: '5em',\n width: '100%'\n};\n\nconst STYLE_BACK_HOVER = {\n ...STYLE_BACK,\n color: SharedStyle.SECONDARY_COLOR.main\n};\n\nconst CONTAINER_DIV = {\n background: SharedStyle.COLORS.white,\n marginBottom: '5px',\n border: 'solid 1px #e6e6e6',\n width: '100%',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n};\n\nexport default class CatalogTurnBackPageItem extends Component {\n\n constructor(props) {\n super(props);\n this.state = {hover: false};\n }\n\n changePage(newPage) {\n this.context.projectActions.goBackToCatalogPage(newPage)\n }\n\n render() {\n let page = this.props.page;\n let hover = this.state.hover;\n\n return (\n this.changePage(page.name)}\n onMouseEnter={e => this.setState({hover: true})}\n onMouseLeave={e => this.setState({hover: false})}\n >\n
\n \n
\n\n \n );\n }\n}\n\nCatalogTurnBackPageItem.propTypes = {\n page: PropTypes.object.isRequired\n};\n\nCatalogTurnBackPageItem.contextTypes = {\n projectActions: PropTypes.object.isRequired\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport IconNext from 'react-icons/lib/md/navigate-next';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE_BOX = {\n width: '14em',\n height: '14em',\n padding: '0.625em',\n background: '#f7f7f9',\n border: '1px solid #e1e1e8',\n cursor: 'pointer',\n position: 'relative',\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\n borderRadius: '2px',\n transition: 'all .2s ease-in-out',\n WebkitTransition: 'all .2s ease-in-out',\n alignSelf: 'center',\n justifySelf: 'center',\n};\n\nconst STYLE_BOX_HOVER = {\n ...STYLE_BOX,\n background: SharedStyle.SECONDARY_COLOR.main\n};\n\nconst STYLE_TITLE = {\n width: '100%',\n position: 'absolute',\n textAlign: 'center',\n display: 'block',\n marginBottom: '.5em',\n padding:'1em',\n textTransform: 'capitalize',\n WebkitTransition: 'all .15s ease-in-out'\n};\n\nconst STYLE_TITLE_HOVERED = {\n ...STYLE_TITLE,\n fontSize: '1.4em',\n transform: 'translateY(-60px)',\n color:'rgb(28, 166, 252)',\n marginTop:'0.5em'\n};\n\nconst STYLE_NEXT_HOVER = {\n position: 'absolute',\n color: SharedStyle.SECONDARY_COLOR.main,\n fontSize: '5em',\n width: '100%',\n};\n\nconst CONTAINER_DIV = {\n background: SharedStyle.COLORS.white,\n marginBottom: '5px',\n border: 'solid 1px #EEE',\n width: '100%',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n};\n\nexport default class CatalogPageItem extends Component {\n\n constructor(props) {\n super(props);\n this.state = {hover: false};\n }\n\n changePage(newPage) {\n this.context.projectActions.changeCatalogPage(newPage, this.props.oldPage.name)\n }\n\n render() {\n let page = this.props.page;\n let hover = this.state.hover;\n\n return (\n this.changePage(page.name)}\n onMouseEnter={e => this.setState({hover: true})}\n onMouseLeave={e => this.setState({hover: false})}\n >\n {hover ?\n
\n {page.label}\n \n
\n :\n
\n {page.label}\n
}\n\n \n );\n }\n}\n\nCatalogPageItem.propTypes = {\n page: PropTypes.object.isRequired,\n oldPage: PropTypes.object.isRequired,\n};\n\nCatalogPageItem.contextTypes = {\n projectActions: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Arrow from 'react-icons/lib/md/keyboard-arrow-right';\nimport * as SharedStyle from '../../shared-style';\n\nconst breadcrumbStyle = {\n margin: '1.5em',\n display: 'flex'\n};\n\nconst breadcrumbTextStyle = {\n fontSize: '20px',\n cursor: 'pointer'\n};\n\nconst breadcrumbLastTextStyle = {\n ...breadcrumbTextStyle,\n fontWeight:'bolder',\n color:SharedStyle.SECONDARY_COLOR.main\n};\n\nconst breadcrumbTabStyle = {\n fill: SharedStyle.COLORS.black,\n fontSize: '24px',\n marginLeft: '10px',\n marginRight: '10px'\n};\n\nconst CatalogBreadcrumb = ({ names }) => {\n\n let labelNames = names.map((name, ind) => {\n\n let lastElement = ind === names.length - 1;\n\n return
\n
{name.name}
\n { !lastElement ? : null }\n
\n });\n\n return
{labelNames}
;\n};\n\nCatalogBreadcrumb.propTypes = {\n names: PropTypes.arrayOf(PropTypes.object).isRequired\n};\n\nexport default CatalogBreadcrumb;\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport IconAdd from 'react-icons/lib/fa/plus-circle';\nimport {Seq} from 'immutable';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE_BOX = {\n width: '14em',\n height: '14em',\n padding: '0.625em',\n background: '#f7f7f9',\n border: '1px solid #e1e1e8',\n cursor: 'pointer',\n position: 'relative',\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\n borderRadius: '2px',\n transition: 'all .15s ease-in-out',\n WebkitTransition: 'all .15s ease-in-out',\n alignSelf: 'center',\n justifySelf: 'center',\n};\n\nconst STYLE_BOX_HOVER = {\n ...STYLE_BOX,\n background: SharedStyle.SECONDARY_COLOR.main\n};\n\nconst STYLE_TITLE = {\n width:'100%',\n textAlign:'center',\n display:'block',\n marginBottom:'.5em',\n textTransform: 'capitalize'\n};\n\nconst STYLE_TITLE_HOVER = {\n ...STYLE_TITLE,\n color:SharedStyle.COLORS.white\n};\n\nconst STYLE_IMAGE_CONTAINER = {\n width: '100%',\n height: '8em',\n position:'relative',\n overflow:'hidden',\n border: 'solid 1px #e6e6e6',\n padding:0,\n margin:0,\n marginBottom: '5px'\n};\n\nconst STYLE_IMAGE = {\n position:'absolute',\n background: '#222',\n width: '100%',\n height: '100%',\n backgroundSize: 'contain',\n backgroundPosition:'50% 50%',\n backgroundColor:SharedStyle.COLORS.white,\n backgroundRepeat:'no-repeat',\n transition: 'all .2s ease-in-out'\n};\n\nconst STYLE_IMAGE_HOVER = {\n ...STYLE_IMAGE,\n transform: 'scale(1.2)'\n};\n\nconst STYLE_PLUS_HOVER = {\n marginTop:'1.5em',\n color: SharedStyle.SECONDARY_COLOR.main,\n fontSize: '2em',\n opacity: '0.7',\n width: '100%'\n};\n\nconst STYLE_DESCRIPTION = {\n display: 'block',\n display: '-webkit-box',\n height: '2em',\n margin: '0 auto',\n fontSize: '0.75em',\n fontStyle:'italic',\n lineHeight: '1em',\n WebkitLineClamp: '2',\n WebkitBoxOrient: 'vertical',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n};\n\nconst STYLE_TAGS = {\n listStyle: 'none',\n margin: '0px',\n padding: '0px',\n fontSize: '11px',\n marginBottom: '3px'\n};\n\nconst STYLE_TAG = {\n display: 'inline-block',\n background: '#337ab7',\n color: SharedStyle.COLORS.white,\n padding: '1px 4px',\n marginRight: '3px',\n borderRadius: '3px'\n};\n\nexport default class CatalogItem extends Component {\n\n constructor(props) {\n super(props);\n this.state = {hover: false};\n }\n\n select() {\n let element = this.props.element;\n\n switch (element.prototype) {\n case 'lines':\n this.context.linesActions.selectToolDrawingLine(element.name);\n break;\n case 'items':\n this.context.itemsActions.selectToolDrawingItem(element.name);\n break;\n case 'holes':\n this.context.holesActions.selectToolDrawingHole(element.name);\n break;\n }\n\n this.context.projectActions.pushLastSelectedCatalogElementToHistory(element);\n }\n\n render() {\n let element = this.props.element;\n let hover = this.state.hover;\n\n return (\n this.select()}\n onMouseEnter={e => this.setState({hover: true})}\n onMouseLeave={e => this.setState({hover: false})}\n >\n {element.info.title}\n
\n
\n { hover ? : null }\n
\n
\n
    \n {element.info.tag.map((tag, index) =>
  • {tag}
  • )}\n
\n
{element.info.description}
\n \n );\n }\n}\n\nCatalogItem.propTypes = {\n element: PropTypes.object.isRequired,\n};\n\nCatalogItem.contextTypes = {\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport CatalogItem from './catalog-item';\nimport CatalogBreadcrumb from './catalog-breadcrumb';\nimport CatalogPageItem from './catalog-page-item';\nimport CatalogTurnBackPageItem from './catalog-turn-back-page-item';\nimport ContentContainer from '../style/content-container';\nimport ContentTitle from '../style/content-title';\nimport * as SharedStyle from '../../shared-style';\n\nconst containerStyle = {\n position: 'fixed',\n width:'calc( 100% - 51px)',\n height:'calc( 100% - 20px)',\n backgroundColor:'#FFF',\n padding:'1em',\n left:50,\n overflowY:'auto',\n overflowX:'hidden',\n zIndex:10\n};\n\nconst itemsStyle = {\n display: 'grid',\n gridTemplateColumns: 'repeat(auto-fit, minmax(14em, 1fr))',\n gridGap: '10px',\n marginTop: '1em'\n};\n\nconst searchContainer = {\n width: '100%',\n height: '3em',\n padding: '0.625em',\n background: '#f7f7f9',\n border: '1px solid #e1e1e8',\n cursor: 'pointer',\n position: 'relative',\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\n borderRadius: '2px',\n transition: 'all .2s ease-in-out',\n WebkitTransition: 'all .2s ease-in-out',\n marginBottom: '1em'\n};\n\nconst searchText = {\n width: '8em',\n display: 'inline-block'\n};\n\nconst searchInput = {\n width: 'calc( 100% - 10em )',\n height: '2em',\n margin: '0',\n padding: '0 1em',\n border: '1px solid #EEE'\n};\n\nconst historyContainer = {\n ...searchContainer,\n padding: '0.2em 0.625em'\n};\n\nconst historyElementStyle = {\n width: 'auto',\n height: '2em',\n lineHeight: '2em',\n textAlign:'center',\n borderRadius: '1em',\n display: 'inline-block',\n cursor: 'pointer',\n backgroundColor: SharedStyle.PRIMARY_COLOR.alt,\n color: SharedStyle.PRIMARY_COLOR.text_main,\n textTransform: 'capitalize',\n margin: '0.25em',\n padding: '0 1em'\n};\n\nexport default class CatalogList extends Component {\n\n constructor(props, context) {\n super(props);\n\n let page = props.state.catalog.page;\n let currentCategory = context.catalog.getCategory(page);\n let categoriesToDisplay = currentCategory.categories;\n let elementsToDisplay = currentCategory.elements.filter(element => element.info.visibility ? element.info.visibility.catalog : true );\n\n this.state = {\n categories: currentCategory.categories,\n elements: elementsToDisplay,\n matchString: '',\n matchedElements: []\n };\n }\n\n flattenCategories( categories ) {\n let toRet = [];\n\n for( let x = 0; x < categories.length; x++ )\n {\n let curr = categories[x];\n toRet = toRet.concat( curr.elements );\n if( curr.categories.length ) toRet = toRet.concat( this.flattenCategories ( curr.categories ) );\n }\n\n return toRet;\n }\n\n matcharray( text ) {\n\n let array = this.state.elements.concat( this.flattenCategories( this.state.categories ) );\n\n let filtered = [];\n\n if( text != '' ) {\n let regexp = new RegExp( text, 'i');\n for (let i = 0; i < array.length; i++) {\n if (regexp.test(array[i].info.title)) {\n filtered.push(array[i]);\n }\n }\n }\n\n this.setState({\n matchString: text,\n matchedElements: filtered\n });\n };\n\n select( element ) {\n\n switch (element.prototype) {\n case 'lines':\n this.context.linesActions.selectToolDrawingLine(element.name);\n break;\n case 'items':\n this.context.itemsActions.selectToolDrawingItem(element.name);\n break;\n case 'holes':\n this.context.holesActions.selectToolDrawingHole(element.name);\n break;\n }\n\n this.context.projectActions.pushLastSelectedCatalogElementToHistory(element);\n }\n\n render() {\n\n let page = this.props.state.catalog.page;\n let currentCategory = this.context.catalog.getCategory(page);\n let categoriesToDisplay = currentCategory.categories;\n let elementsToDisplay = currentCategory.elements.filter(element => element.info.visibility ? element.info.visibility.catalog : true );\n\n let breadcrumbComponent = null;\n\n if (page !== 'root') {\n\n let breadcrumbsNames = [];\n\n this.props.state.catalog.path.forEach(pathName => {\n breadcrumbsNames.push({\n name: this.context.catalog.getCategory(pathName).label,\n action: () => projectActions.goBackToCatalogPage(pathName)\n });\n });\n\n breadcrumbsNames.push({name: currentCategory.label, action: ''});\n\n breadcrumbComponent = ();\n }\n\n let pathSize = this.props.state.catalog.path.size;\n\n let turnBackButton = pathSize > 0 ? (\n ) : null;\n\n\n let selectedHistory = this.props.state.get('selectedElementsHistory');\n let selectedHistoryElements = selectedHistory.map( ( el, ind ) =>\n
this.select(el) }>{el.name}
\n );\n\n return (\n \n {this.context.translator.t('Catalog')}\n {breadcrumbComponent}\n
\n {this.context.translator.t('Search Element')}\n { this.matcharray( e.target.value ); } }/>\n
\n { selectedHistory.size ?\n
\n {this.context.translator.t('Last Selected')}\n {selectedHistoryElements}\n
:\n null\n }\n
\n {\n this.state.matchString === '' ? [\n turnBackButton,\n categoriesToDisplay.map(cat => ),\n elementsToDisplay.map(elem => )\n ] :\n this.state.matchedElements.map(elem => )\n }\n
\n
\n )\n }\n}\n\nCatalogList.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n style: PropTypes.object\n};\n\nCatalogList.contextTypes = {\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","export function firstPersonOnKeyDown(event, moveForward, moveLeft, moveBackward, moveRight, canJump, velocity) {\n\n switch (event.keyCode) {\n\n case 38: // up\n case 87: // w\n moveForward = true;\n break;\n\n case 37: // left\n case 65: // a\n moveLeft = true;\n break;\n\n case 40: // down\n case 83: // s\n moveBackward = true;\n break;\n\n case 39: // right\n case 68: // d\n moveRight = true;\n break;\n\n case 32: // space\n if ( canJump === true ) velocity.y += 225;\n canJump = false;\n break;\n }\n\n return {moveForward, moveLeft, moveBackward, moveRight, canJump}\n}\n\nexport function firstPersonOnKeyUp(event, moveForward, moveLeft, moveBackward, moveRight, canJump) {\n\n switch (event.keyCode) {\n case 38: // up\n case 87: // w\n moveForward = false;\n break;\n\n case 37: // left\n case 65: // a\n moveLeft = false;\n break;\n\n case 40: // down\n case 83: // s\n moveBackward = false;\n break;\n\n case 39: // right\n case 68: // d\n moveRight = false;\n break;\n }\n return {moveForward, moveLeft, moveBackward, moveRight, canJump}\n}\n","/**\n * @author mrdoob / http://mrdoob.com/\n */\n\nlet THREE = window.THREE || require('three');\nlet PointerLockControls;\n\nmodule.exports = PointerLockControls = function ( camera ) {\n\n let scope = this;\n\n camera.rotation.set( 0, 0, 0 );\n\n let pitchObject = new THREE.Object3D();\n pitchObject.name = 'pitchObject';\n pitchObject.add( camera );\n\n let yawObject = new THREE.Object3D();\n yawObject.name = 'yawObject';\n yawObject.position.y = 10;\n yawObject.add( pitchObject );\n\n let PI_2 = Math.PI / 2;\n\n let onMouseMove = function ( event ) {\n\n if ( scope.enabled === false ) return;\n\n let movementX = event.movementX || event.mozMovementX || event.webkitMovementX || 0;\n let movementY = event.movementY || event.mozMovementY || event.webkitMovementY || 0;\n\n yawObject.rotation.y -= movementX * 0.002;\n pitchObject.rotation.x -= movementY * 0.002;\n\n pitchObject.rotation.x = Math.max( - PI_2, Math.min( PI_2, pitchObject.rotation.x ) );\n\n };\n\n this.dispose = function() {\n\n document.removeEventListener( 'mousemove', onMouseMove, false );\n\n };\n\n document.addEventListener( 'mousemove', onMouseMove, false );\n\n this.enabled = false;\n\n this.getObject = function () {\n\n return yawObject;\n\n };\n\n this.getDirection = function() {\n\n // assumes the camera itself is not rotated\n\n let direction = new THREE.Vector3( 0, 0, - 1 );\n let rotation = new THREE.Euler( 0, 0, 0, \"YXZ\" );\n\n return function( v ) {\n\n rotation.set( pitchObject.rotation.x, yawObject.rotation.y, 0 );\n\n v.copy( direction ).applyEuler( rotation );\n\n return v;\n\n };\n\n }();\n\n};\n","import PointerLockControls from './libs/pointer-lock-controls';\n\nexport function initPointerLock(camera, rendererElement) {\n\n let havePointerLock = 'pointerLockElement' in document || 'mozPointerLockElement' in document || 'webkitPointerLockElement' in document;\n\n let pointerlockchange = event => {\n controls.enabled = !controls.enabled;\n };\n\n let requestPointerLockEvent = event => {\n document.body.requestPointerLock = document.body.requestPointerLock ||\n document.body.mozRequestPointerLock ||\n document.body.webkitRequestPointerLock;\n document.body.requestPointerLock();\n };\n\n if (havePointerLock) {\n\n document.addEventListener('pointerlockchange', pointerlockchange, false);\n document.addEventListener('mozpointerlockchange', pointerlockchange, false);\n document.addEventListener('webkitpointerlockchange', pointerlockchange, false);\n rendererElement.addEventListener('click', requestPointerLockEvent);\n\n } else {\n console.log('Your browser doesn\\'t seem to support Pointer Lock API');\n }\n\n let controls = new PointerLockControls(camera);\n return {controls, pointerlockChangeEvent: pointerlockchange, requestPointerLockEvent};\n}\n\n\n/* Funzione per il calcolo delle collisioni con gli oggetti contenuti all'interno di un array.\n * L'idea è quella di utilizzare il ray casting. Per tenere conto del fatto che ci possiamo\n * muovere nelle quattro direzioni, applico una matrice di rotazione alla direzione verso la\n * quale l'oggetto del pointer lock è orientato. */\n\nfunction collision(controls, collisionArray) {\n\n let rotationMatrix;\n let cameraDirection = controls.getDirection(new THREE.Vector3(0, 0, 0)).clone();\n\n if (controls.moveForward()) {\n // Nothing to do!\n }\n else if (controls.moveBackward()) {\n rotationMatrix = new THREE.Matrix4();\n rotationMatrix.makeRotationY(180 * Math.PI / 180);\n }\n else if (controls.moveLeft()) {\n rotationMatrix = new THREE.Matrix4();\n rotationMatrix.makeRotationY(90 * Math.PI / 180);\n }\n else if (controls.moveRight()) {\n rotationMatrix = new THREE.Matrix4();\n rotationMatrix.makeRotationY((360 - 90) * Math.PI / 180);\n }\n else return;\n\n if (rotationMatrix !== undefined) {\n cameraDirection.applyMatrix4(rotationMatrix);\n }\n let rayCaster = new THREE.Raycaster(controls.getObject().position, cameraDirection.normalize());\n let intersects = rayCaster.intersectObjects(collisionArray, true);\n\n if ((intersects.length > 0 && intersects[0].distance < 10)) {\n return true;\n }\n\n return false;\n}\n\n\n/* Funzione meno raffinata per il calcolo delle collisioni.\n * In pratica viene definita una bounding geometry (in questo caso la skymap) e poi vengono fatti\n * partire una serie di raggi dall'object del controller fino ai vertici di questa geometria. Se uno di questi interseca\n * uno degli oggetti dei quali vogliamo controllare la collisione, allora la funzione restituirà il valore true */\n/*\n function collision(object, boundingGeometry, collisionArray ) {\n\n for (let vertexIndex = 0; vertexIndex < boundingGeometry.geometry.vertices.length; vertexIndex++)\t{\n let localVertex = boundingGeometry.geometry.vertices[vertexIndex].clone();\n let globalVertex = localVertex.applyMatrix4( object.matrix );\n let directionVector = globalVertex.sub( object.position );\n\n let ray = new THREE.Raycaster(object.position, directionVector.clone().normalize());\n let collisionResults = ray.intersectObjects(collisionArray, true);\n if (collisionResults.length > 0 && collisionResults[0].distance < directionVector.length() - 1293) {\n console.log(\"collisione: \",collisionResults[0].distance,\" \",directionVector.length()-1293);\n return true;\n }\n }\n return false;\n }\n */\n\n/* Questa funzione si occupa di determinare se il controllo si trova su un oggetto, in caso negativo cade verso il basso\n * (vedi esempio pointer lock) */\n\nfunction translateY(controls, ray, objects) {\n\n controls.isOnObject(false);\n ray.ray.origin.copy(controls.getObject().position);\n ray.ray.origin.y -= 10;\n let intersections = ray.intersectObjects(objects, true);\n if (intersections.length > 0) {\n let distance = intersections[0].distance;\n if (distance > 0 && distance < 10) {\n controls.isOnObject(true);\n }\n }\n\n}\n\n/* Queste funzioni bloccano o sbloccano il movimento del controller (utili in caso di collisione) */\n\nfunction lockDirection(controls) {\n if (controls.moveForward()) {\n controls.lockMoveForward(true);\n }\n else if (controls.moveBackward()) {\n controls.lockMoveBackward(true);\n }\n else if (controls.moveLeft()) {\n controls.lockMoveLeft(true);\n }\n else if (controls.moveRight()) {\n controls.lockMoveRight(true);\n }\n}\n\nfunction unlockAllDirection(controls) {\n controls.lockMoveForward(false);\n controls.lockMoveBackward(false);\n controls.lockMoveLeft(false);\n controls.lockMoveRight(false);\n}\n","\"use strict\";\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport * as Three from 'three';\nimport {parseData, updateScene} from './scene-creator';\nimport {disposeScene} from './three-memory-cleaner';\nimport diff from 'immutablediff';\nimport {initPointerLock} from \"./pointer-lock-navigation\";\nimport {firstPersonOnKeyDown, firstPersonOnKeyUp} from \"./libs/first-person-controls\";\nimport * as SharedStyle from '../../shared-style';\n\nexport default class Viewer3DFirstPerson extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.width = props.width;\n this.height = props.height;\n this.stopRendering = false;\n this.renderer = window.__threeRenderer || new Three.WebGLRenderer({preserveDrawingBuffer: true});\n window.__threeRenderer = this.renderer;\n }\n\n componentDidMount() {\n\n /** Variables for movement control **/\n let prevTime = performance.now();\n let velocity = new Three.Vector3();\n let direction = new Three.Vector3();\n let moveForward = false;\n let moveBackward = false;\n let moveLeft = false;\n let moveRight = false;\n let canJump = false;\n\n let {catalog} = this.context;\n\n let actions = {\n areaActions: this.context.areaActions,\n holesActions: this.context.holesActions,\n itemsActions: this.context.itemsActions,\n linesActions: this.context.linesActions,\n projectActions: this.context.projectActions\n };\n\n let {state} = this.props;\n let data = state.scene;\n let canvasWrapper = ReactDOM.findDOMNode(this.refs.canvasWrapper);\n\n let scene3D = new Three.Scene();\n\n // As I need to show the pointer above all scene objects, I use this workaround http://stackoverflow.com/a/13309722\n let sceneOnTop = new Three.Scene();\n\n //RENDERER\n this.renderer.setClearColor(new Three.Color(SharedStyle.COLORS.white));\n this.renderer.setSize(this.width, this.height);\n\n // LOAD DATA\n this.planData = parseData(data, actions, catalog);\n\n scene3D.add(this.planData.plan);\n\n // CAMERA\n let aspectRatio = this.width / this.height;\n let camera = new Three.PerspectiveCamera(45, aspectRatio, 0.1, 300000);\n\n sceneOnTop.add(camera); // The pointer is on the camera so I show it above all\n\n // Set position for the camera\n camera.position.set(0, 0, 0);\n camera.up = new Three.Vector3(0, 1, 0);\n\n // HELPER AXIS\n // let axisHelper = new Three.AxisHelper(100);\n // scene3D.add(axisHelper);\n\n // LIGHT\n let light = new Three.AmbientLight(0xafafaf); // soft white light\n scene3D.add(light);\n\n // Add another light\n let pointLight = new Three.PointLight(SharedStyle.COLORS.white, 0.4, 1000);\n pointLight.position.set(0, 0, 0);\n scene3D.add(pointLight);\n\n // POINTER LOCK\n\n document.body.requestPointerLock = document.body.requestPointerLock ||\n document.body.mozRequestPointerLock ||\n document.body.webkitRequestPointerLock;\n\n document.body.requestPointerLock();\n\n let {controls, pointerlockChangeEvent, requestPointerLockEvent} = initPointerLock(camera, this.renderer.domElement);\n this.controls = controls;\n this.pointerlockChangeListener = pointerlockChangeEvent;\n this.requestPointerLockEvent = requestPointerLockEvent;\n\n /* Set user initial position */\n let humanHeight = 170; // 170 cm\n\n let yInitialPosition = this.planData.boundingBox.min.y +\n (this.planData.boundingBox.min.y - this.planData.boundingBox.max.y) / 2 + humanHeight;\n this.controls.getObject().position.set(-50, yInitialPosition, -100);\n sceneOnTop.add(this.controls.getObject()); // Add the pointer lock controls to the scene that will be rendered on top\n\n // Add move controls on the page\n this.keyDownEvent = (event) => {\n let moveResult = firstPersonOnKeyDown(event, moveForward, moveLeft, moveBackward, moveRight, canJump, velocity);\n moveForward = moveResult.moveForward;\n moveLeft = moveResult.moveLeft;\n moveBackward = moveResult.moveBackward;\n moveRight = moveResult.moveRight;\n canJump = moveResult.canJump;\n };\n\n this.keyUpEvent = (event) => {\n let moveResult = firstPersonOnKeyUp(event, moveForward, moveLeft, moveBackward, moveRight, canJump);\n moveForward = moveResult.moveForward;\n moveLeft = moveResult.moveLeft;\n moveBackward = moveResult.moveBackward;\n moveRight = moveResult.moveRight;\n canJump = moveResult.canJump;\n };\n\n document.addEventListener('keydown', this.keyDownEvent);\n document.addEventListener('keyup', this.keyUpEvent);\n\n // Add a pointer to the scene\n\n let pointer = new Three.Object3D();\n pointer.name = 'pointer';\n\n let pointerMaterial = new Three.MeshBasicMaterial({depthTest: false, depthWrite: false, color: SharedStyle.COLORS.black});\n let pointerGeometry1 = new Three.Geometry();\n pointerGeometry1.vertices.push(new Three.Vector3(-10, 0, 0));\n pointerGeometry1.vertices.push(new Three.Vector3(10, 0, 0));\n\n let linePointer1 = new Three.Line(pointerGeometry1, pointerMaterial);\n linePointer1.position.z -= 100;\n\n let pointerGeometry2 = new Three.Geometry();\n pointerGeometry2.vertices.push(new Three.Vector3(0, 10, 0));\n pointerGeometry2.vertices.push(new Three.Vector3(0, -10, 0));\n\n let linePointer2 = new Three.Line(pointerGeometry2, pointerMaterial);\n linePointer2.renderDepth = 1e20;\n linePointer2.position.z -= 100;\n\n let pointerGeometry3 = new Three.Geometry();\n pointerGeometry3.vertices.push(new Three.Vector3(-1, 1, 0));\n pointerGeometry3.vertices.push(new Three.Vector3(1, 1, 0));\n pointerGeometry3.vertices.push(new Three.Vector3(1, -1, 0));\n pointerGeometry3.vertices.push(new Three.Vector3(-1, -1, 0));\n pointerGeometry3.vertices.push(new Three.Vector3(-1, 1, 0));\n\n let linePointer3 = new Three.Line(pointerGeometry3, pointerMaterial);\n linePointer3.position.z -= 100;\n\n pointer.add(linePointer1);\n pointer.add(linePointer2);\n pointer.add(linePointer3);\n\n camera.add(pointer); // Add the pointer to the camera\n\n\n // OBJECT PICKING\n let toIntersect = [this.planData.plan];\n\n let mouseVector = new Three.Vector2(0, 0);\n let raycaster = new Three.Raycaster();\n\n this.firstPersonMouseDown = (event) => {\n\n // First of all I check if controls are enabled\n\n if (this.controls.enabled) {\n event.preventDefault();\n\n /* Per avere la direzione da assegnare al raycaster, chiamo il metodo getDirection di PointerLockControls,\n * che restituisce una funzione che a sua volta prende un vettore, vi scrive i valori degli oggetti\n * pitch e yaw e lo restituisce */\n\n raycaster.setFromCamera(mouseVector, camera);\n\n let intersects = raycaster.intersectObjects(toIntersect, true);\n if (intersects.length > 0 && !(isNaN(intersects[0].distance))) {\n intersects[0].object.interact && intersects[0].object.interact();\n } else {\n this.context.projectActions.unselectAll();\n }\n }\n\n };\n\n document.addEventListener('mousedown', this.firstPersonMouseDown, false);\n\n this.renderer.domElement.style.display = 'block';\n\n // add the output of the renderer to the html element\n canvasWrapper.appendChild(this.renderer.domElement);\n this.renderer.autoClear = false;\n\n let render = () => {\n\n if (!this.stopRendering) {\n yInitialPosition = this.planData.boundingBox.min.y + humanHeight;\n\n let multiplier = 5;\n\n let time = performance.now();\n let delta = ( time - prevTime ) / 1000 * multiplier;\n\n velocity.x -= velocity.x * 10.0 * delta;\n velocity.z -= velocity.z * 10.0 * delta;\n velocity.y -= 9.8 * 100.0 * delta / multiplier; // 100.0 = mass\n\n direction.z = Number( moveForward ) - Number( moveBackward );\n direction.x = Number( moveLeft ) - Number( moveRight );\n direction.normalize(); // this ensures consistent movements in all directions\n\n if ( moveForward || moveBackward ) velocity.z -= direction.z * 400.0 * delta;\n if ( moveLeft || moveRight ) velocity.x -= direction.x * 400.0 * delta;\n\n this.controls.getObject().translateX(velocity.x * delta);\n this.controls.getObject().translateY(velocity.y * delta);\n this.controls.getObject().translateZ(velocity.z * delta);\n\n if ( this.controls.getObject().position.y < yInitialPosition ) {\n velocity.y = 0;\n this.controls.getObject().position.y = yInitialPosition;\n canJump = true;\n }\n\n prevTime = time;\n\n // Set light position\n let controlObjectPosition = this.controls.getObject().position;\n pointLight.position.set(controlObjectPosition.x, controlObjectPosition.y, controlObjectPosition.z);\n\n for (let elemID in this.planData.sceneGraph.LODs) {\n this.planData.sceneGraph.LODs[elemID].update(camera);\n }\n\n this.renderer.clear(); // clear buffers\n this.renderer.render(scene3D, camera); // render scene 1\n this.renderer.clearDepth(); // clear depth buffer\n this.renderer.render(sceneOnTop, camera); // render scene 2\n\n requestAnimationFrame(render);\n }\n };\n\n render();\n\n this.camera = camera;\n this.scene3D = scene3D;\n this.sceneOnTop = sceneOnTop;\n // this.planData = planData;\n }\n\n componentWillUnmount() {\n this.stopRendering = true;\n this.renderer.autoClear = true;\n document.removeEventListener('mousedown', this.firstPersonMouseDown);\n document.removeEventListener('keydown', this.keyDownEvent);\n document.removeEventListener('keyup', this.keyUpEvent);\n document.removeEventListener('pointerlockchange', this.pointerlockChangeEvent);\n document.removeEventListener('mozpointerlockchange', this.pointerlockChangeEvent);\n document.removeEventListener('webkitpointerlockchange', this.pointerlockChangeEvent);\n this.renderer.domElement.removeEventListener('click', this.requestPointerLockEvent);\n\n disposeScene(this.scene3D);\n\n this.scene3D.remove(this.planData.plan);\n\n this.scene3D = null;\n this.planData = null;\n this.renderer.renderLists.dispose();\n }\n\n componentWillReceiveProps(nextProps) {\n let {width, height} = nextProps;\n let {camera, renderer, scene3D, sceneOnTop, planData} = this;\n\n let actions = {\n areaActions: this.context.areaActions,\n holesActions: this.context.holesActions,\n itemsActions: this.context.itemsActions,\n linesActions: this.context.linesActions,\n projectActions: this.context.projectActions\n };\n\n this.width = width;\n this.height = height;\n\n camera.aspect = width / height;\n\n camera.updateProjectionMatrix();\n\n if (nextProps.scene !== this.props.state.scene) {\n let changedValues = diff(this.props.state.scene, nextProps.state.scene);\n updateScene(planData, nextProps.state.scene, this.props.state.scene, changedValues.toJS(), actions, this.context.catalog);\n }\n\n renderer.setSize(width, height);\n renderer.clear(); // clear buffers\n renderer.render(scene3D, camera); // render scene 1\n renderer.clearDepth(); // clear depth buffer\n renderer.render(sceneOnTop, camera); // render scene 2\n\n }\n\n render() {\n return React.createElement(\"div\", {\n ref: \"canvasWrapper\"\n });\n }\n}\n\nViewer3DFirstPerson.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n};\n\nViewer3DFirstPerson.contextTypes = {\n areaActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired,\n catalog: PropTypes.object\n};\n","/**\n * @author qiao / https://github.com/qiao\n * @author mrdoob / http://mrdoob.com\n * @author alteredq / http://alteredqualia.com/\n * @author WestLangley / http://github.com/WestLangley\n * @author erich666 / http://erichaines.com\n */\n\n// This set of controls performs orbiting, dollying (zooming), and panning.\n// Unlike TrackballControls, it maintains the \"up\" direction object.up (+Y by default).\n//\n// Orbit - left mouse / touch: one finger move\n// Zoom - middle mouse, or mousewheel / touch: two finger spread or squish\n// Pan - right mouse, or arrow keys / touch: three finter swipe\n\nlet THREE = window.THREE || require('three');\nlet OrbitControls;\n\nmodule.exports = OrbitControls = function (object, domElement) {\n\n this.object = object;\n\n this.domElement = ( domElement !== undefined ) ? domElement : document;\n\n // Set to false to disable this control\n this.enabled = true;\n\n // \"target\" sets the location of focus, where the object orbits around\n this.target = new THREE.Vector3();\n\n // How far you can dolly in and out ( PerspectiveCamera only )\n this.minDistance = 0;\n this.maxDistance = Infinity;\n\n // How far you can zoom in and out ( OrthographicCamera only )\n this.minZoom = 0;\n this.maxZoom = Infinity;\n\n // How far you can orbit vertically, upper and lower limits.\n // Range is 0 to Math.PI radians.\n this.minPolarAngle = 0; // radians\n this.maxPolarAngle = Math.PI; // radians\n\n // How far you can orbit horizontally, upper and lower limits.\n // If set, must be a sub-interval of the interval [ - Math.PI, Math.PI ].\n this.minAzimuthAngle = -Infinity; // radians\n this.maxAzimuthAngle = Infinity; // radians\n\n // Set to true to enable damping (inertia)\n // If damping is enabled, you must call controls.update() in your animation loop\n this.enableDamping = false;\n this.dampingFactor = 0.25;\n\n // This option actually enables dollying in and out; left as \"zoom\" for backwards compatibility.\n // Set to false to disable zooming\n this.enableZoom = true;\n this.zoomSpeed = 1.0;\n\n // Set to false to disable rotating\n this.enableRotate = true;\n this.rotateSpeed = 1.0;\n\n // Set to false to disable panning\n this.enablePan = true;\n this.keyPanSpeed = 7.0;\t// pixels moved per arrow key push\n\n // Set to true to automatically rotate around the target\n // If auto-rotate is enabled, you must call controls.update() in your animation loop\n this.autoRotate = false;\n this.autoRotateSpeed = 2.0; // 30 seconds per round when fps is 60\n\n // Set to false to disable use of the keys\n this.enableKeys = true;\n\n // The four arrow keys\n this.keys = {LEFT: 37, UP: 38, RIGHT: 39, BOTTOM: 40};\n\n // Mouse buttons\n this.mouseButtons = {ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: THREE.MOUSE.RIGHT};\n\n // for reset\n this.target0 = this.target.clone();\n this.position0 = this.object.position.clone();\n this.zoom0 = this.object.zoom;\n\n //\n // public methods\n //\n\n this.getPolarAngle = function () {\n\n return spherical.phi;\n\n };\n\n this.getAzimuthalAngle = function () {\n\n return spherical.theta;\n\n };\n\n this.reset = function () {\n\n scope.target.copy(scope.target0);\n scope.object.position.copy(scope.position0);\n scope.object.zoom = scope.zoom0;\n\n scope.object.updateProjectionMatrix();\n scope.dispatchEvent(changeEvent);\n\n scope.update();\n\n state = STATE.NONE;\n\n };\n\n // this method is exposed, but perhaps it would be better if we can make it private...\n this.update = function () {\n\n let offset = new THREE.Vector3();\n\n // so camera.up is the orbit axis\n let quat = new THREE.Quaternion().setFromUnitVectors(object.up, new THREE.Vector3(0, 1, 0));\n let quatInverse = quat.clone().inverse();\n\n let lastPosition = new THREE.Vector3();\n let lastQuaternion = new THREE.Quaternion();\n\n return function update() {\n\n let position = scope.object.position;\n\n offset.copy(position).sub(scope.target);\n\n // rotate offset to \"y-axis-is-up\" space\n offset.applyQuaternion(quat);\n\n // angle from z-axis around y-axis\n spherical.setFromVector3(offset);\n\n if (scope.autoRotate && state === STATE.NONE) {\n\n rotateLeft(getAutoRotationAngle());\n\n }\n\n spherical.theta += sphericalDelta.theta;\n spherical.phi += sphericalDelta.phi;\n\n // restrict theta to be between desired limits\n spherical.theta = Math.max(scope.minAzimuthAngle, Math.min(scope.maxAzimuthAngle, spherical.theta));\n\n // restrict phi to be between desired limits\n spherical.phi = Math.max(scope.minPolarAngle, Math.min(scope.maxPolarAngle, spherical.phi));\n\n spherical.makeSafe();\n\n\n spherical.radius *= scale;\n\n // restrict radius to be between desired limits\n spherical.radius = Math.max(scope.minDistance, Math.min(scope.maxDistance, spherical.radius));\n\n // move target to panned location\n scope.target.add(panOffset);\n\n offset.setFromSpherical(spherical);\n\n // rotate offset back to \"camera-up-vector-is-up\" space\n offset.applyQuaternion(quatInverse);\n\n position.copy(scope.target).add(offset);\n\n scope.object.lookAt(scope.target);\n\n if (scope.enableDamping === true) {\n\n sphericalDelta.theta *= ( 1 - scope.dampingFactor );\n sphericalDelta.phi *= ( 1 - scope.dampingFactor );\n\n } else {\n\n sphericalDelta.set(0, 0, 0);\n\n }\n\n scale = 1;\n panOffset.set(0, 0, 0);\n\n // update condition is:\n // min(camera displacement, camera rotation in radians)^2 > EPS\n // using small-angle approximation cos(x/2) = 1 - x^2 / 8\n\n if (zoomChanged ||\n lastPosition.distanceToSquared(scope.object.position) > EPS ||\n 8 * ( 1 - lastQuaternion.dot(scope.object.quaternion) ) > EPS) {\n\n scope.dispatchEvent(changeEvent);\n\n lastPosition.copy(scope.object.position);\n lastQuaternion.copy(scope.object.quaternion);\n zoomChanged = false;\n\n return true;\n\n }\n\n return false;\n\n };\n\n }();\n\n this.dispose = function () {\n\n scope.domElement.removeEventListener('contextmenu', onContextMenu, false);\n scope.domElement.removeEventListener('mousedown', onMouseDown, false);\n scope.domElement.removeEventListener('wheel', onMouseWheel, false);\n\n scope.domElement.removeEventListener('touchstart', onTouchStart, false);\n scope.domElement.removeEventListener('touchend', onTouchEnd, false);\n scope.domElement.removeEventListener('touchmove', onTouchMove, false);\n\n document.removeEventListener('mousemove', onMouseMove, false);\n document.removeEventListener('mouseup', onMouseUp, false);\n\n window.removeEventListener('keydown', onKeyDown, false);\n\n //scope.dispatchEvent( { type: 'dispose' } ); // should this be added here?\n\n };\n\n //\n // internals\n //\n\n let scope = this;\n\n let changeEvent = {type: 'change'};\n let startEvent = {type: 'start'};\n let endEvent = {type: 'end'};\n\n let STATE = {NONE: -1, ROTATE: 0, DOLLY: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_DOLLY: 4, TOUCH_PAN: 5};\n\n let state = STATE.NONE;\n\n let EPS = 0.000001;\n\n // current position in spherical coordinates\n let spherical = new THREE.Spherical();\n let sphericalDelta = new THREE.Spherical();\n\n let scale = 1;\n let panOffset = new THREE.Vector3();\n let zoomChanged = false;\n\n let rotateStart = new THREE.Vector2();\n let rotateEnd = new THREE.Vector2();\n let rotateDelta = new THREE.Vector2();\n\n let panStart = new THREE.Vector2();\n let panEnd = new THREE.Vector2();\n let panDelta = new THREE.Vector2();\n\n let dollyStart = new THREE.Vector2();\n let dollyEnd = new THREE.Vector2();\n let dollyDelta = new THREE.Vector2();\n\n function getAutoRotationAngle() {\n\n return 2 * Math.PI / 60 / 60 * scope.autoRotateSpeed;\n\n }\n\n function getZoomScale() {\n\n return Math.pow(0.95, scope.zoomSpeed);\n\n }\n\n function rotateLeft(angle) {\n\n sphericalDelta.theta -= angle;\n\n }\n\n function rotateUp(angle) {\n\n sphericalDelta.phi -= angle;\n\n }\n\n let panLeft = function () {\n\n let v = new THREE.Vector3();\n\n return function panLeft(distance, objectMatrix) {\n\n v.setFromMatrixColumn(objectMatrix, 0); // get X column of objectMatrix\n v.multiplyScalar(-distance);\n\n panOffset.add(v);\n\n };\n\n }();\n\n let panUp = function () {\n\n let v = new THREE.Vector3();\n\n return function panUp(distance, objectMatrix) {\n\n v.setFromMatrixColumn(objectMatrix, 1); // get Y column of objectMatrix\n v.multiplyScalar(distance);\n\n panOffset.add(v);\n\n };\n\n }();\n\n // deltaX and deltaY are in pixels; right and down are positive\n let pan = function () {\n\n let offset = new THREE.Vector3();\n\n return function pan(deltaX, deltaY) {\n\n let element = scope.domElement === document ? scope.domElement.body : scope.domElement;\n\n if (scope.object instanceof THREE.PerspectiveCamera) {\n\n // perspective\n let position = scope.object.position;\n offset.copy(position).sub(scope.target);\n let targetDistance = offset.length();\n\n // half of the fov is center to top of screen\n targetDistance *= Math.tan(( scope.object.fov / 2 ) * Math.PI / 180.0);\n\n // we actually don't use screenWidth, since perspective camera is fixed to screen height\n panLeft(2 * deltaX * targetDistance / element.clientHeight, scope.object.matrix);\n panUp(2 * deltaY * targetDistance / element.clientHeight, scope.object.matrix);\n\n } else if (scope.object instanceof THREE.OrthographicCamera) {\n\n // orthographic\n panLeft(deltaX * ( scope.object.right - scope.object.left ) / scope.object.zoom / element.clientWidth, scope.object.matrix);\n panUp(deltaY * ( scope.object.top - scope.object.bottom ) / scope.object.zoom / element.clientHeight, scope.object.matrix);\n\n } else {\n\n // camera neither orthographic nor perspective\n console.warn('WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.');\n scope.enablePan = false;\n\n }\n\n };\n\n }();\n\n function dollyIn(dollyScale) {\n\n if (scope.object instanceof THREE.PerspectiveCamera) {\n\n scale /= dollyScale;\n\n } else if (scope.object instanceof THREE.OrthographicCamera) {\n\n scope.object.zoom = Math.max(scope.minZoom, Math.min(scope.maxZoom, scope.object.zoom * dollyScale));\n scope.object.updateProjectionMatrix();\n zoomChanged = true;\n\n } else {\n\n console.warn('WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.');\n scope.enableZoom = false;\n\n }\n\n }\n\n function dollyOut(dollyScale) {\n\n if (scope.object instanceof THREE.PerspectiveCamera) {\n\n scale *= dollyScale;\n\n } else if (scope.object instanceof THREE.OrthographicCamera) {\n\n scope.object.zoom = Math.max(scope.minZoom, Math.min(scope.maxZoom, scope.object.zoom / dollyScale));\n scope.object.updateProjectionMatrix();\n zoomChanged = true;\n\n } else {\n\n console.warn('WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.');\n scope.enableZoom = false;\n\n }\n\n }\n\n //\n // event callbacks - update the object state\n //\n\n function handleMouseDownRotate(event) {\n\n rotateStart.set(event.clientX, event.clientY);\n\n }\n\n function handleMouseDownDolly(event) {\n\n dollyStart.set(event.clientX, event.clientY);\n\n }\n\n function handleMouseDownPan(event) {\n\n panStart.set(event.clientX, event.clientY);\n\n }\n\n function handleMouseMoveRotate(event) {\n\n rotateEnd.set(event.clientX, event.clientY);\n rotateDelta.subVectors(rotateEnd, rotateStart);\n\n let element = scope.domElement === document ? scope.domElement.body : scope.domElement;\n\n // rotating across whole screen goes 360 degrees around\n rotateLeft(2 * Math.PI * rotateDelta.x / element.clientWidth * scope.rotateSpeed);\n\n // rotating up and down along whole screen attempts to go 360, but limited to 180\n rotateUp(2 * Math.PI * rotateDelta.y / element.clientHeight * scope.rotateSpeed);\n\n rotateStart.copy(rotateEnd);\n\n scope.update();\n\n }\n\n function handleMouseMoveDolly(event) {\n\n dollyEnd.set(event.clientX, event.clientY);\n\n dollyDelta.subVectors(dollyEnd, dollyStart);\n\n if (dollyDelta.y > 0) {\n\n dollyIn(getZoomScale());\n\n } else if (dollyDelta.y < 0) {\n\n dollyOut(getZoomScale());\n\n }\n\n dollyStart.copy(dollyEnd);\n\n scope.update();\n\n }\n\n function handleMouseMovePan(event) {\n\n panEnd.set(event.clientX, event.clientY);\n\n panDelta.subVectors(panEnd, panStart);\n\n pan(panDelta.x, panDelta.y);\n\n panStart.copy(panEnd);\n\n scope.update();\n\n }\n\n function handleMouseUp(event) {}\n\n function handleMouseWheel(event) {\n\n if (event.deltaY < 0) {\n\n dollyOut(getZoomScale());\n\n } else if (event.deltaY > 0) {\n\n dollyIn(getZoomScale());\n\n }\n\n scope.update();\n\n }\n\n function handleKeyDown(event) {\n\n switch (event.keyCode) {\n\n case scope.keys.UP:\n pan(0, scope.keyPanSpeed);\n scope.update();\n break;\n\n case scope.keys.BOTTOM:\n pan(0, -scope.keyPanSpeed);\n scope.update();\n break;\n\n case scope.keys.LEFT:\n pan(scope.keyPanSpeed, 0);\n scope.update();\n break;\n\n case scope.keys.RIGHT:\n pan(-scope.keyPanSpeed, 0);\n scope.update();\n break;\n\n }\n\n }\n\n function handleTouchStartRotate(event) {\n rotateStart.set(event.touches[0].pageX, event.touches[0].pageY);\n }\n\n function handleTouchStartDolly(event) {\n let dx = event.touches[0].pageX - event.touches[1].pageX;\n let dy = event.touches[0].pageY - event.touches[1].pageY;\n\n let distance = Math.sqrt(dx * dx + dy * dy);\n\n dollyStart.set(0, distance);\n }\n\n function handleTouchStartPan(event) {\n panStart.set(event.touches[0].pageX, event.touches[0].pageY);\n }\n\n function handleTouchMoveRotate(event) {\n rotateEnd.set(event.touches[0].pageX, event.touches[0].pageY);\n rotateDelta.subVectors(rotateEnd, rotateStart);\n\n let element = scope.domElement === document ? scope.domElement.body : scope.domElement;\n\n // rotating across whole screen goes 360 degrees around\n rotateLeft(2 * Math.PI * rotateDelta.x / element.clientWidth * scope.rotateSpeed);\n\n // rotating up and down along whole screen attempts to go 360, but limited to 180\n rotateUp(2 * Math.PI * rotateDelta.y / element.clientHeight * scope.rotateSpeed);\n\n rotateStart.copy(rotateEnd);\n\n scope.update();\n }\n\n function handleTouchMoveDolly(event) {\n let dx = event.touches[0].pageX - event.touches[1].pageX;\n let dy = event.touches[0].pageY - event.touches[1].pageY;\n\n let distance = Math.sqrt(dx * dx + dy * dy);\n\n dollyEnd.set(0, distance);\n\n dollyDelta.subVectors(dollyEnd, dollyStart);\n\n if (dollyDelta.y > 0) {\n\n dollyOut(getZoomScale());\n\n } else if (dollyDelta.y < 0) {\n\n dollyIn(getZoomScale());\n\n }\n\n dollyStart.copy(dollyEnd);\n\n scope.update();\n }\n\n function handleTouchMovePan(event) {\n panEnd.set(event.touches[0].pageX, event.touches[0].pageY);\n\n panDelta.subVectors(panEnd, panStart);\n\n pan(panDelta.x, panDelta.y);\n\n panStart.copy(panEnd);\n\n scope.update();\n }\n\n function handleTouchEnd(event) {}\n\n //\n // event handlers - FSM: listen for events and reset state\n //\n\n function onMouseDown(event) {\n if (scope.enabled === false) return;\n\n event.preventDefault();\n\n if (event.button === scope.mouseButtons.ORBIT) {\n\n if (scope.enableRotate === false) return;\n\n handleMouseDownRotate(event);\n\n state = STATE.ROTATE;\n\n } else if (event.button === scope.mouseButtons.ZOOM) {\n\n if (scope.enableZoom === false) return;\n\n handleMouseDownDolly(event);\n\n state = STATE.DOLLY;\n\n } else if (event.button === scope.mouseButtons.PAN) {\n\n if (scope.enablePan === false) return;\n\n handleMouseDownPan(event);\n\n state = STATE.PAN;\n\n }\n\n if (state !== STATE.NONE) {\n\n document.addEventListener('mousemove', onMouseMove, false);\n document.addEventListener('mouseup', onMouseUp, false);\n\n scope.dispatchEvent(startEvent);\n\n }\n }\n\n function onMouseMove(event) {\n\n if (scope.enabled === false) return;\n\n if (state === STATE.ROTATE) {\n\n if (scope.enableRotate === false) return;\n\n handleMouseMoveRotate(event);\n\n } else if (state === STATE.DOLLY) {\n\n if (scope.enableZoom === false) return;\n\n handleMouseMoveDolly(event);\n\n } else if (state === STATE.PAN) {\n\n if (scope.enablePan === false) return;\n\n handleMouseMovePan(event);\n\n }\n\n }\n\n function onMouseUp(event) {\n\n if (scope.enabled === false) return;\n\n handleMouseUp(event);\n\n document.removeEventListener('mousemove', onMouseMove, false);\n document.removeEventListener('mouseup', onMouseUp, false);\n\n scope.dispatchEvent(endEvent);\n\n state = STATE.NONE;\n\n }\n\n function onMouseWheel(event) {\n\n if (scope.enabled === false || scope.enableZoom === false || ( state !== STATE.NONE && state !== STATE.ROTATE )) return;\n\n event.stopPropagation();\n\n handleMouseWheel(event);\n\n scope.dispatchEvent(startEvent); // not sure why these are here...\n scope.dispatchEvent(endEvent);\n\n }\n\n function onKeyDown(event) {\n\n if (scope.enabled === false || scope.enableKeys === false || scope.enablePan === false) return;\n\n handleKeyDown(event);\n\n }\n\n function onTouchStart(event) {\n\n if (scope.enabled === false) return;\n\n switch (event.touches.length) {\n\n case 1:\t// one-fingered touch: rotate\n\n if (scope.enableRotate === false) return;\n\n handleTouchStartRotate(event);\n\n state = STATE.TOUCH_ROTATE;\n\n break;\n\n case 2:\t// two-fingered touch: dolly\n\n if (scope.enableZoom === false) return;\n\n handleTouchStartDolly(event);\n\n state = STATE.TOUCH_DOLLY;\n\n break;\n\n case 3: // three-fingered touch: pan\n\n if (scope.enablePan === false) return;\n\n handleTouchStartPan(event);\n\n state = STATE.TOUCH_PAN;\n\n break;\n\n default:\n\n state = STATE.NONE;\n\n }\n\n if (state !== STATE.NONE) {\n\n scope.dispatchEvent(startEvent);\n\n }\n\n }\n\n function onTouchMove(event) {\n\n if (scope.enabled === false) return;\n\n event.stopPropagation();\n\n switch (event.touches.length) {\n\n case 1: // one-fingered touch: rotate\n\n if (scope.enableRotate === false) return;\n if (state !== STATE.TOUCH_ROTATE) return; // is this needed?...\n\n handleTouchMoveRotate(event);\n\n break;\n\n case 2: // two-fingered touch: dolly\n\n if (scope.enableZoom === false) return;\n if (state !== STATE.TOUCH_DOLLY) return; // is this needed?...\n\n handleTouchMoveDolly(event);\n\n break;\n\n case 3: // three-fingered touch: pan\n\n if (scope.enablePan === false) return;\n if (state !== STATE.TOUCH_PAN) return; // is this needed?...\n\n handleTouchMovePan(event);\n\n break;\n\n default:\n\n state = STATE.NONE;\n\n }\n\n }\n\n function onTouchEnd(event) {\n\n if (scope.enabled === false) return;\n\n handleTouchEnd(event);\n\n scope.dispatchEvent(endEvent);\n\n state = STATE.NONE;\n\n }\n\n function onContextMenu(event) { event.preventDefault(); }\n\n scope.domElement.addEventListener('contextmenu', onContextMenu, false);\n\n scope.domElement.addEventListener('mousedown', onMouseDown, false);\n scope.domElement.addEventListener('wheel', onMouseWheel, { passive: true });\n\n scope.domElement.addEventListener('touchstart', onTouchStart, { passive: true });\n scope.domElement.addEventListener('touchend', onTouchEnd, { passive: true });\n scope.domElement.addEventListener('touchmove', onTouchMove, { passive: true });\n\n window.addEventListener('keydown', onKeyDown, { passive: true });\n\n // force an update at start\n\n this.update();\n\n};\n\nOrbitControls.prototype = Object.create(THREE.EventDispatcher.prototype);\nOrbitControls.prototype.constructor = OrbitControls;\n\nObject.defineProperties(OrbitControls.prototype, {\n\n center: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .center has been renamed to .target');\n return this.target;\n\n }\n\n },\n\n // backward compatibility\n\n noZoom: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.');\n return !this.enableZoom;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.');\n this.enableZoom = !value;\n\n }\n\n },\n\n noRotate: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.');\n return !this.enableRotate;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.');\n this.enableRotate = !value;\n\n }\n\n },\n\n noPan: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.');\n return !this.enablePan;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.');\n this.enablePan = !value;\n\n }\n\n },\n\n noKeys: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.');\n return !this.enableKeys;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.');\n this.enableKeys = !value;\n\n }\n\n },\n\n staticMoving: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.');\n return !this.enableDamping;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.');\n this.enableDamping = !value;\n\n }\n\n },\n\n dynamicDampingFactor: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.');\n return this.dampingFactor;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.');\n this.dampingFactor = value;\n\n }\n\n }\n\n});\n","import * as Three from 'three';\nimport { List } from 'immutable';\nimport { COLORS } from '../../../shared-style';\n\nexport default function (width, height, grid, font) {\n let step = grid.properties.get('step');\n let colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');\n\n let streak = new Three.Object3D();\n streak.name = 'streak';\n\n let counter = 0;\n\n for (let i = 0; i <= width; i += step) {\n\n let geometry = new Three.Geometry();\n geometry.vertices.push(new Three.Vector3(i, 0, 0));\n geometry.vertices.push(new Three.Vector3(i, 0, -height));\n let color = colors.get(counter % colors.size);\n let material = new Three.LineBasicMaterial({ color });\n\n if (counter % 5 == 0) {\n let shape = new Three.TextGeometry(('' + (counter * step)), {\n size: 16,\n height: 1,\n font: font\n });\n\n let wrapper = new Three.MeshBasicMaterial({ color: COLORS.black });\n let words = new Three.Mesh(shape, wrapper);\n\n words.rotation.x -= Math.PI / 2;\n words.position.set(i - 20, 0, 50);\n streak.add(words);\n }\n\n streak.add(new Three.LineSegments(geometry, material));\n counter++;\n }\n return streak;\n}\n","import * as Three from 'three';\nimport { List } from 'immutable';\nimport { COLORS } from '../../../shared-style';\n\nexport default function (width, height, grid, font) {\n let step = grid.properties.get('step');\n let colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');\n\n let streak = new Three.Object3D();\n streak.name = 'streak';\n let counter = 0;\n\n for (let i = 0; i <= height; i += step) {\n\n let geometry = new Three.Geometry();\n geometry.vertices.push(new Three.Vector3(0, 0, -i));\n geometry.vertices.push(new Three.Vector3(width, 0, -i));\n let color = colors.get(counter % colors.size);\n let material = new Three.LineBasicMaterial({ color });\n\n if (counter % 5 == 0) {\n let shape = new Three.TextGeometry(('' + (counter * step)), {\n size: 16,\n height: 1,\n font\n });\n\n let wrapper = new Three.MeshBasicMaterial({ color: COLORS.black });\n let words = new Three.Mesh(shape, wrapper);\n\n words.rotation.x -= Math.PI / 2;\n words.position.set(-90, 0, -i);\n streak.add(words);\n }\n\n streak.add(new Three.LineSegments(geometry, material));\n counter++;\n }\n return streak;\n}\n","export const HELVETIKER = {\"glyphs\":{\"ο\":{\"x_min\":0,\"x_max\":712,\"ha\":815,\"o\":\"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 \"},\"S\":{\"x_min\":0,\"x_max\":788,\"ha\":890,\"o\":\"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 \"},\"¦\":{\"x_min\":343,\"x_max\":449,\"ha\":792,\"o\":\"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 \"},\"/\":{\"x_min\":183.25,\"x_max\":608.328125,\"ha\":792,\"o\":\"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 \"},\"Τ\":{\"x_min\":-0.4375,\"x_max\":777.453125,\"ha\":839,\"o\":\"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 \"},\"y\":{\"x_min\":0,\"x_max\":684.78125,\"ha\":771,\"o\":\"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 \"},\"Π\":{\"x_min\":0,\"x_max\":803,\"ha\":917,\"o\":\"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 \"},\"ΐ\":{\"x_min\":-111,\"x_max\":339,\"ha\":361,\"o\":\"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 \"},\"g\":{\"x_min\":0,\"x_max\":686,\"ha\":838,\"o\":\"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 \"},\"²\":{\"x_min\":0,\"x_max\":442,\"ha\":539,\"o\":\"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 \"},\"–\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 \"},\"Κ\":{\"x_min\":0,\"x_max\":819.5625,\"ha\":893,\"o\":\"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 \"},\"ƒ\":{\"x_min\":-46.265625,\"x_max\":392,\"ha\":513,\"o\":\"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 \"},\"e\":{\"x_min\":0,\"x_max\":714,\"ha\":813,\"o\":\"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 \"},\"ό\":{\"x_min\":0,\"x_max\":712,\"ha\":815,\"o\":\"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 \"},\"J\":{\"x_min\":0,\"x_max\":588,\"ha\":699,\"o\":\"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 \"},\"»\":{\"x_min\":-1,\"x_max\":503,\"ha\":601,\"o\":\"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 \"},\"©\":{\"x_min\":-3,\"x_max\":1008,\"ha\":1106,\"o\":\"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 \"},\"ώ\":{\"x_min\":0,\"x_max\":922,\"ha\":1030,\"o\":\"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 \"},\"^\":{\"x_min\":193.0625,\"x_max\":598.609375,\"ha\":792,\"o\":\"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 \"},\"«\":{\"x_min\":0,\"x_max\":507.203125,\"ha\":604,\"o\":\"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 \"},\"D\":{\"x_min\":0,\"x_max\":828,\"ha\":935,\"o\":\"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 \"},\"∙\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 \"},\"ÿ\":{\"x_min\":0,\"x_max\":47,\"ha\":125,\"o\":\"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 \"},\"w\":{\"x_min\":0,\"x_max\":1009.71875,\"ha\":1100,\"o\":\"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 \"},\"$\":{\"x_min\":0,\"x_max\":700,\"ha\":793,\"o\":\"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 \"},\"\\\\\":{\"x_min\":-0.015625,\"x_max\":425.0625,\"ha\":522,\"o\":\"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 \"},\"µ\":{\"x_min\":0,\"x_max\":697.21875,\"ha\":747,\"o\":\"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 \"},\"Ι\":{\"x_min\":42,\"x_max\":181,\"ha\":297,\"o\":\"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 \"},\"Ύ\":{\"x_min\":0,\"x_max\":1144.5,\"ha\":1214,\"o\":\"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"’\":{\"x_min\":0,\"x_max\":139,\"ha\":236,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 \"},\"Ν\":{\"x_min\":0,\"x_max\":801,\"ha\":915,\"o\":\"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 \"},\"-\":{\"x_min\":8.71875,\"x_max\":350.390625,\"ha\":478,\"o\":\"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 \"},\"Q\":{\"x_min\":0,\"x_max\":968,\"ha\":1072,\"o\":\"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 \"},\"ς\":{\"x_min\":1,\"x_max\":676.28125,\"ha\":740,\"o\":\"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 \"},\"M\":{\"x_min\":0,\"x_max\":954,\"ha\":1067,\"o\":\"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 \"},\"Ψ\":{\"x_min\":0,\"x_max\":1006,\"ha\":1094,\"o\":\"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 \"},\"C\":{\"x_min\":0,\"x_max\":886,\"ha\":944,\"o\":\"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 \"},\"!\":{\"x_min\":0,\"x_max\":138,\"ha\":236,\"o\":\"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 \"},\"{\":{\"x_min\":0,\"x_max\":480.5625,\"ha\":578,\"o\":\"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 \"},\"X\":{\"x_min\":-0.015625,\"x_max\":854.15625,\"ha\":940,\"o\":\"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 \"},\"#\":{\"x_min\":0,\"x_max\":963.890625,\"ha\":1061,\"o\":\"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 \"},\"ι\":{\"x_min\":42,\"x_max\":284,\"ha\":361,\"o\":\"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 \"},\"Ά\":{\"x_min\":0,\"x_max\":906.953125,\"ha\":982,\"o\":\"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 \"},\")\":{\"x_min\":0,\"x_max\":318,\"ha\":415,\"o\":\"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 \"},\"ε\":{\"x_min\":0,\"x_max\":634.71875,\"ha\":714,\"o\":\"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 \"},\"Δ\":{\"x_min\":0,\"x_max\":952.78125,\"ha\":1028,\"o\":\"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 \"},\"}\":{\"x_min\":0,\"x_max\":481,\"ha\":578,\"o\":\"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 \"},\"‰\":{\"x_min\":-3,\"x_max\":1672,\"ha\":1821,\"o\":\"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 \"},\"a\":{\"x_min\":0,\"x_max\":698.609375,\"ha\":794,\"o\":\"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 \"},\"—\":{\"x_min\":0,\"x_max\":941.671875,\"ha\":1039,\"o\":\"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 \"},\"=\":{\"x_min\":8.71875,\"x_max\":780.953125,\"ha\":792,\"o\":\"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 \"},\"N\":{\"x_min\":0,\"x_max\":801,\"ha\":914,\"o\":\"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 \"},\"ρ\":{\"x_min\":0,\"x_max\":712,\"ha\":797,\"o\":\"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 \"},\"2\":{\"x_min\":59,\"x_max\":731,\"ha\":792,\"o\":\"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 \"},\"¯\":{\"x_min\":0,\"x_max\":941.671875,\"ha\":938,\"o\":\"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 \"},\"Z\":{\"x_min\":0,\"x_max\":779,\"ha\":849,\"o\":\"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 \"},\"u\":{\"x_min\":0,\"x_max\":617,\"ha\":729,\"o\":\"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 \"},\"k\":{\"x_min\":0,\"x_max\":612.484375,\"ha\":697,\"o\":\"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 \"},\"Η\":{\"x_min\":0,\"x_max\":803,\"ha\":917,\"o\":\"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 \"},\"Α\":{\"x_min\":0,\"x_max\":906.953125,\"ha\":985,\"o\":\"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 \"},\"s\":{\"x_min\":0,\"x_max\":604,\"ha\":697,\"o\":\"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 \"},\"B\":{\"x_min\":0,\"x_max\":778,\"ha\":876,\"o\":\"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 \"},\"…\":{\"x_min\":0,\"x_max\":614,\"ha\":708,\"o\":\"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 \"},\"?\":{\"x_min\":0,\"x_max\":607,\"ha\":704,\"o\":\"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 \"},\"H\":{\"x_min\":0,\"x_max\":803,\"ha\":915,\"o\":\"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 \"},\"ν\":{\"x_min\":0,\"x_max\":675,\"ha\":761,\"o\":\"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 \"},\"c\":{\"x_min\":1,\"x_max\":701.390625,\"ha\":775,\"o\":\"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 \"},\"¶\":{\"x_min\":0,\"x_max\":566.671875,\"ha\":678,\"o\":\"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 \"},\"β\":{\"x_min\":0,\"x_max\":660,\"ha\":745,\"o\":\"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 \"},\"Μ\":{\"x_min\":0,\"x_max\":954,\"ha\":1068,\"o\":\"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 \"},\"Ό\":{\"x_min\":0.109375,\"x_max\":1120,\"ha\":1217,\"o\":\"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"Ή\":{\"x_min\":0,\"x_max\":1158,\"ha\":1275,\"o\":\"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"•\":{\"x_min\":0,\"x_max\":663.890625,\"ha\":775,\"o\":\"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 \"},\"¥\":{\"x_min\":0.1875,\"x_max\":819.546875,\"ha\":886,\"o\":\"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 \"},\"(\":{\"x_min\":0,\"x_max\":318.0625,\"ha\":415,\"o\":\"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 \"},\"U\":{\"x_min\":0,\"x_max\":796,\"ha\":904,\"o\":\"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 \"},\"γ\":{\"x_min\":0.5,\"x_max\":744.953125,\"ha\":822,\"o\":\"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 \"},\"α\":{\"x_min\":0,\"x_max\":765.5625,\"ha\":809,\"o\":\"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 \"},\"F\":{\"x_min\":0,\"x_max\":683.328125,\"ha\":717,\"o\":\"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 \"},\"­\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 \"},\":\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 \"},\"Χ\":{\"x_min\":0,\"x_max\":854.171875,\"ha\":935,\"o\":\"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 \"},\"*\":{\"x_min\":116,\"x_max\":674,\"ha\":792,\"o\":\"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 \"},\"†\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 \"},\"°\":{\"x_min\":0,\"x_max\":347,\"ha\":444,\"o\":\"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 \"},\"V\":{\"x_min\":0,\"x_max\":862.71875,\"ha\":940,\"o\":\"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 \"},\"Ξ\":{\"x_min\":0,\"x_max\":734.71875,\"ha\":763,\"o\":\"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 \"},\" \":{\"x_min\":0,\"x_max\":0,\"ha\":853},\"Ϋ\":{\"x_min\":0.328125,\"x_max\":819.515625,\"ha\":889,\"o\":\"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 \"},\"0\":{\"x_min\":73,\"x_max\":715,\"ha\":792,\"o\":\"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 \"},\"”\":{\"x_min\":0,\"x_max\":347,\"ha\":454,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 \"},\"@\":{\"x_min\":0,\"x_max\":1260,\"ha\":1357,\"o\":\"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 \"},\"Ί\":{\"x_min\":0,\"x_max\":499,\"ha\":613,\"o\":\"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 \"},\"i\":{\"x_min\":14,\"x_max\":136,\"ha\":275,\"o\":\"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 \"},\"Β\":{\"x_min\":0,\"x_max\":778,\"ha\":877,\"o\":\"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 \"},\"υ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 \"},\"]\":{\"x_min\":0,\"x_max\":275,\"ha\":372,\"o\":\"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 \"},\"m\":{\"x_min\":0,\"x_max\":1019,\"ha\":1128,\"o\":\"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 \"},\"χ\":{\"x_min\":8.328125,\"x_max\":780.5625,\"ha\":815,\"o\":\"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 \"},\"8\":{\"x_min\":55,\"x_max\":736,\"ha\":792,\"o\":\"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 \"},\"ί\":{\"x_min\":42,\"x_max\":326.71875,\"ha\":361,\"o\":\"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 \"},\"Ζ\":{\"x_min\":0,\"x_max\":779.171875,\"ha\":850,\"o\":\"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 \"},\"R\":{\"x_min\":0,\"x_max\":781.953125,\"ha\":907,\"o\":\"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 \"},\"o\":{\"x_min\":0,\"x_max\":713,\"ha\":821,\"o\":\"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 \"},\"5\":{\"x_min\":54.171875,\"x_max\":738,\"ha\":792,\"o\":\"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 \"},\"7\":{\"x_min\":58.71875,\"x_max\":730.953125,\"ha\":792,\"o\":\"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 \"},\"K\":{\"x_min\":0,\"x_max\":819.46875,\"ha\":906,\"o\":\"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 \"},\",\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 \"},\"d\":{\"x_min\":0,\"x_max\":683,\"ha\":796,\"o\":\"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 \"},\"¨\":{\"x_min\":-109,\"x_max\":247,\"ha\":232,\"o\":\"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 \"},\"E\":{\"x_min\":0,\"x_max\":736.109375,\"ha\":789,\"o\":\"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 \"},\"Y\":{\"x_min\":0,\"x_max\":820,\"ha\":886,\"o\":\"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 \"},\"\\\"\":{\"x_min\":0,\"x_max\":299,\"ha\":396,\"o\":\"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 \"},\"‹\":{\"x_min\":17.984375,\"x_max\":773.609375,\"ha\":792,\"o\":\"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 \"},\"„\":{\"x_min\":0,\"x_max\":364,\"ha\":467,\"o\":\"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 \"},\"δ\":{\"x_min\":1,\"x_max\":710,\"ha\":810,\"o\":\"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 \"},\"έ\":{\"x_min\":0,\"x_max\":634.71875,\"ha\":714,\"o\":\"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 \"},\"ω\":{\"x_min\":0,\"x_max\":922,\"ha\":1031,\"o\":\"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 \"},\"´\":{\"x_min\":0,\"x_max\":96,\"ha\":251,\"o\":\"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 \"},\"±\":{\"x_min\":11,\"x_max\":781,\"ha\":792,\"o\":\"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 \"},\"|\":{\"x_min\":343,\"x_max\":449,\"ha\":792,\"o\":\"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 \"},\"ϋ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 \"},\"§\":{\"x_min\":0,\"x_max\":593,\"ha\":690,\"o\":\"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 \"},\"b\":{\"x_min\":0,\"x_max\":685,\"ha\":783,\"o\":\"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 \"},\"q\":{\"x_min\":0,\"x_max\":683,\"ha\":876,\"o\":\"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 \"},\"Ω\":{\"x_min\":-0.171875,\"x_max\":969.5625,\"ha\":1068,\"o\":\"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 \"},\"ύ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 \"},\"z\":{\"x_min\":-0.015625,\"x_max\":613.890625,\"ha\":697,\"o\":\"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 \"},\"™\":{\"x_min\":0,\"x_max\":894,\"ha\":1000,\"o\":\"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 \"},\"ή\":{\"x_min\":0.78125,\"x_max\":697,\"ha\":810,\"o\":\"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 \"},\"Θ\":{\"x_min\":0,\"x_max\":960,\"ha\":1056,\"o\":\"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 \"},\"®\":{\"x_min\":-3,\"x_max\":1008,\"ha\":1106,\"o\":\"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 \"},\"~\":{\"x_min\":0,\"x_max\":833,\"ha\":931,\"o\":\"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 \"},\"Ε\":{\"x_min\":0,\"x_max\":736.21875,\"ha\":778,\"o\":\"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 \"},\"³\":{\"x_min\":0,\"x_max\":450,\"ha\":547,\"o\":\"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 \"},\"[\":{\"x_min\":0,\"x_max\":273.609375,\"ha\":371,\"o\":\"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 \"},\"L\":{\"x_min\":0,\"x_max\":645.828125,\"ha\":696,\"o\":\"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 \"},\"σ\":{\"x_min\":0,\"x_max\":803.390625,\"ha\":894,\"o\":\"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 \"},\"ζ\":{\"x_min\":0,\"x_max\":573,\"ha\":642,\"o\":\"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 \"},\"θ\":{\"x_min\":0,\"x_max\":674,\"ha\":778,\"o\":\"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 \"},\"Ο\":{\"x_min\":0,\"x_max\":958,\"ha\":1054,\"o\":\"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 \"},\"Γ\":{\"x_min\":0,\"x_max\":705.28125,\"ha\":749,\"o\":\"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 \"},\" \":{\"x_min\":0,\"x_max\":0,\"ha\":375},\"%\":{\"x_min\":-3,\"x_max\":1089,\"ha\":1186,\"o\":\"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 \"},\"P\":{\"x_min\":0,\"x_max\":726,\"ha\":806,\"o\":\"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 \"},\"Έ\":{\"x_min\":0,\"x_max\":1078.21875,\"ha\":1118,\"o\":\"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"Ώ\":{\"x_min\":0.125,\"x_max\":1136.546875,\"ha\":1235,\"o\":\"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 \"},\"_\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 \"},\"Ϊ\":{\"x_min\":-110,\"x_max\":246,\"ha\":275,\"o\":\"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 \"},\"+\":{\"x_min\":23,\"x_max\":768,\"ha\":792,\"o\":\"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 \"},\"½\":{\"x_min\":0,\"x_max\":1050,\"ha\":1149,\"o\":\"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 \"},\"Ρ\":{\"x_min\":0,\"x_max\":720,\"ha\":783,\"o\":\"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 \"},\"'\":{\"x_min\":0,\"x_max\":139,\"ha\":236,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 \"},\"ª\":{\"x_min\":0,\"x_max\":350,\"ha\":397,\"o\":\"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 \"},\"΅\":{\"x_min\":0,\"x_max\":450,\"ha\":553,\"o\":\"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 \"},\"T\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 \"},\"Φ\":{\"x_min\":0,\"x_max\":915,\"ha\":997,\"o\":\"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 \"},\"⁋\":{\"x_min\":0,\"x_max\":0,\"ha\":694},\"j\":{\"x_min\":-77.78125,\"x_max\":167,\"ha\":349,\"o\":\"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 \"},\"Σ\":{\"x_min\":0,\"x_max\":756.953125,\"ha\":819,\"o\":\"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 \"},\"1\":{\"x_min\":215.671875,\"x_max\":574,\"ha\":792,\"o\":\"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 \"},\"›\":{\"x_min\":18.0625,\"x_max\":774,\"ha\":792,\"o\":\"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 \"},\"<\":{\"x_min\":17.984375,\"x_max\":773.609375,\"ha\":792,\"o\":\"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 \"},\"£\":{\"x_min\":0,\"x_max\":704.484375,\"ha\":801,\"o\":\"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 \"},\"t\":{\"x_min\":0,\"x_max\":367,\"ha\":458,\"o\":\"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 \"},\"¬\":{\"x_min\":0,\"x_max\":706,\"ha\":803,\"o\":\"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 \"},\"λ\":{\"x_min\":0,\"x_max\":750,\"ha\":803,\"o\":\"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 \"},\"W\":{\"x_min\":0,\"x_max\":1263.890625,\"ha\":1351,\"o\":\"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 \"},\">\":{\"x_min\":18.0625,\"x_max\":774,\"ha\":792,\"o\":\"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 \"},\"v\":{\"x_min\":0,\"x_max\":675.15625,\"ha\":761,\"o\":\"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 \"},\"τ\":{\"x_min\":0.28125,\"x_max\":644.5,\"ha\":703,\"o\":\"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 \"},\"ξ\":{\"x_min\":0,\"x_max\":624.9375,\"ha\":699,\"o\":\"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 \"},\"&\":{\"x_min\":-3,\"x_max\":894.25,\"ha\":992,\"o\":\"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 \"},\"Λ\":{\"x_min\":0,\"x_max\":862.5,\"ha\":942,\"o\":\"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 \"},\"I\":{\"x_min\":41,\"x_max\":180,\"ha\":293,\"o\":\"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 \"},\"G\":{\"x_min\":0,\"x_max\":921,\"ha\":1011,\"o\":\"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 \"},\"ΰ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 \"},\"`\":{\"x_min\":0,\"x_max\":138.890625,\"ha\":236,\"o\":\"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 \"},\"·\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 \"},\"Υ\":{\"x_min\":0.328125,\"x_max\":819.515625,\"ha\":889,\"o\":\"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 \"},\"r\":{\"x_min\":0,\"x_max\":355.5625,\"ha\":432,\"o\":\"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 \"},\"x\":{\"x_min\":0,\"x_max\":675,\"ha\":764,\"o\":\"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 \"},\"μ\":{\"x_min\":0,\"x_max\":696.609375,\"ha\":747,\"o\":\"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 \"},\"h\":{\"x_min\":0,\"x_max\":615,\"ha\":724,\"o\":\"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 \"},\".\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 \"},\"φ\":{\"x_min\":-2,\"x_max\":878,\"ha\":974,\"o\":\"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 \"},\";\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 \"},\"f\":{\"x_min\":0,\"x_max\":378,\"ha\":472,\"o\":\"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 \"},\"“\":{\"x_min\":1,\"x_max\":348.21875,\"ha\":454,\"o\":\"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 \"},\"A\":{\"x_min\":0.03125,\"x_max\":906.953125,\"ha\":1008,\"o\":\"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 \"},\"6\":{\"x_min\":53,\"x_max\":739,\"ha\":792,\"o\":\"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 \"},\"‘\":{\"x_min\":1,\"x_max\":139.890625,\"ha\":236,\"o\":\"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 \"},\"ϊ\":{\"x_min\":-70,\"x_max\":283,\"ha\":361,\"o\":\"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 \"},\"π\":{\"x_min\":-0.21875,\"x_max\":773.21875,\"ha\":857,\"o\":\"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 \"},\"ά\":{\"x_min\":0,\"x_max\":765.5625,\"ha\":809,\"o\":\"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 \"},\"O\":{\"x_min\":0,\"x_max\":958,\"ha\":1057,\"o\":\"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 \"},\"n\":{\"x_min\":0,\"x_max\":615,\"ha\":724,\"o\":\"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 \"},\"3\":{\"x_min\":54,\"x_max\":737,\"ha\":792,\"o\":\"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 \"},\"9\":{\"x_min\":53,\"x_max\":739,\"ha\":792,\"o\":\"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 \"},\"l\":{\"x_min\":41,\"x_max\":166,\"ha\":279,\"o\":\"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 \"},\"¤\":{\"x_min\":40.09375,\"x_max\":728.796875,\"ha\":825,\"o\":\"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 \"},\"κ\":{\"x_min\":0,\"x_max\":632.328125,\"ha\":679,\"o\":\"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 \"},\"4\":{\"x_min\":48,\"x_max\":742.453125,\"ha\":792,\"o\":\"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 \"},\"p\":{\"x_min\":0,\"x_max\":685,\"ha\":786,\"o\":\"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 \"},\"‡\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 \"},\"ψ\":{\"x_min\":0,\"x_max\":808,\"ha\":907,\"o\":\"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 \"},\"η\":{\"x_min\":0.78125,\"x_max\":697,\"ha\":810,\"o\":\"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 \"}},\"cssFontWeight\":\"normal\",\"ascender\":1189,\"underlinePosition\":-100,\"cssFontStyle\":\"normal\",\"boundingBox\":{\"yMin\":-334,\"xMin\":-111,\"yMax\":1189,\"xMax\":1672},\"resolution\":1000,\"original_font_information\":{\"postscript_name\":\"Helvetiker-Regular\",\"version_string\":\"Version 1.00 2004 initial release\",\"vendor_url\":\"http://www.magenta.gr/\",\"full_font_name\":\"Helvetiker\",\"font_family_name\":\"Helvetiker\",\"copyright\":\"Copyright (c) Μagenta ltd, 2004\",\"description\":\"\",\"trademark\":\"\",\"designer\":\"\",\"designer_url\":\"\",\"unique_font_identifier\":\"Μagenta ltd:Helvetiker:22-10-104\",\"license_url\":\"http://www.ellak.gr/fonts/MgOpen/license.html\",\"license_description\":\"Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\\r\\n\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license (\\\"Fonts\\\") and associated documentation files (the \\\"Font Software\\\"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \\r\\n\\r\\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\\r\\n\\r\\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word \\\"MgOpen\\\", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\\r\\n\\r\\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the \\\"MgOpen\\\" name.\\r\\n\\r\\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \\r\\n\\r\\nTHE FONT SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.\",\"manufacturer_name\":\"Μagenta ltd\",\"font_sub_family_name\":\"Regular\"},\"descender\":-334,\"familyName\":\"Helvetiker\",\"lineHeight\":1522,\"underlineThickness\":50}\n","import * as Three from 'three';\nimport { HELVETIKER } from './libs/helvetiker_regular.typeface.js';\nimport gridHorizontalStreak from './grids/grid-horizontal-streak';\nimport gridVerticalStreak from './grids/grid-vertical-streak';\n\nexport default function createGrid(scene) {\n\n let gridMesh = new Three.Object3D();\n gridMesh.name = 'grid';\n let fontLoader = new Three.FontLoader();\n let font = fontLoader.parse(HELVETIKER); // For measures\n let { grids, width, height } = scene;\n\n grids.forEach(grid => {\n switch (grid.type) {\n case 'horizontal-streak':\n gridMesh.add(gridHorizontalStreak(width, height, grid, font));\n break;\n case 'vertical-streak':\n gridMesh.add(gridVerticalStreak(width, height, grid, font));\n break;\n }\n });\n\n gridMesh.position.y = -1;\n return gridMesh;\n}\n","'use strict';\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport * as Three from 'three';\nimport { parseData, updateScene } from './scene-creator';\nimport { disposeScene } from './three-memory-cleaner';\nimport OrbitControls from './libs/orbit-controls';\nimport diff from 'immutablediff';\nimport * as SharedStyle from '../../shared-style';\n\nexport default class Scene3DViewer extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.lastMousePosition = {};\n this.width = props.width;\n this.height = props.height;\n this.renderingID = 0;\n\n this.renderer = window.__threeRenderer || new Three.WebGLRenderer({ preserveDrawingBuffer: true });\n window.__threeRenderer = this.renderer;\n }\n\n componentDidMount() {\n\n let actions = {\n areaActions: this.context.areaActions,\n holesActions: this.context.holesActions,\n itemsActions: this.context.itemsActions,\n linesActions: this.context.linesActions,\n projectActions: this.context.projectActions\n };\n\n let { state } = this.props;\n let data = state.scene;\n let canvasWrapper = ReactDOM.findDOMNode(this.refs.canvasWrapper);\n\n let scene3D = new Three.Scene();\n\n //RENDERER\n this.renderer.setClearColor(new Three.Color(SharedStyle.COLORS.white));\n this.renderer.setSize(this.width, this.height);\n\n // LOAD DATA\n let planData = parseData(data, actions, this.context.catalog);\n\n scene3D.add(planData.plan);\n scene3D.add(planData.grid);\n\n let aspectRatio = this.width / this.height;\n let camera = new Three.PerspectiveCamera(45, aspectRatio, 1, 300000);\n\n scene3D.add(camera);\n\n // Set position for the camera\n let cameraPositionX = -(planData.boundingBox.max.x - planData.boundingBox.min.x) / 2;\n let cameraPositionY = (planData.boundingBox.max.y - planData.boundingBox.min.y) / 2 * 10;\n let cameraPositionZ = (planData.boundingBox.max.z - planData.boundingBox.min.z) / 2;\n\n camera.position.set(cameraPositionX, cameraPositionY, cameraPositionZ);\n camera.up = new Three.Vector3(0, 1, 0);\n\n // HELPER AXIS\n // let axisHelper = new Three.AxisHelper(100);\n // scene3D.add(axisHelper);\n\n // LIGHT\n let light = new Three.AmbientLight(0xafafaf); // soft white light\n scene3D.add(light);\n\n // Add another light\n\n let spotLight1 = new Three.SpotLight(SharedStyle.COLORS.white, 0.30);\n spotLight1.position.set(cameraPositionX, cameraPositionY, cameraPositionZ);\n scene3D.add(spotLight1);\n\n // OBJECT PICKING\n let toIntersect = [planData.plan];\n let mouse = new Three.Vector2();\n let raycaster = new Three.Raycaster();\n\n this.mouseDownEvent = (event) => {\n this.lastMousePosition.x = event.offsetX / this.width * 2 - 1;\n this.lastMousePosition.y = -event.offsetY / this.height * 2 + 1;\n };\n\n this.mouseUpEvent = (event) => {\n event.preventDefault();\n\n mouse.x = (event.offsetX / this.width) * 2 - 1;\n mouse.y = -(event.offsetY / this.height) * 2 + 1;\n\n if (Math.abs(mouse.x - this.lastMousePosition.x) <= 0.02 && Math.abs(mouse.y - this.lastMousePosition.y) <= 0.02) {\n\n raycaster.setFromCamera(mouse, camera);\n let intersects = raycaster.intersectObjects(toIntersect, true);\n\n if (intersects.length > 0 && !(isNaN(intersects[0].distance))) {\n intersects[0].object.interact && intersects[0].object.interact();\n } else {\n this.context.projectActions.unselectAll();\n }\n }\n };\n\n this.renderer.domElement.addEventListener('mousedown', this.mouseDownEvent);\n this.renderer.domElement.addEventListener('mouseup', this.mouseUpEvent);\n this.renderer.domElement.style.display = 'block';\n\n // add the output of the renderer to the html element\n canvasWrapper.appendChild(this.renderer.domElement);\n\n // create orbit controls\n let orbitController = new OrbitControls(camera, this.renderer.domElement);\n let spotLightTarget = new Three.Object3D();\n spotLightTarget.name = 'spotLightTarget';\n spotLightTarget.position.set(orbitController.target.x, orbitController.target.y, orbitController.target.z);\n scene3D.add(spotLightTarget);\n spotLight1.target = spotLightTarget;\n\n let render = () => {\n orbitController.update();\n spotLight1.position.set(camera.position.x, camera.position.y, camera.position.z);\n spotLightTarget.position.set(orbitController.target.x, orbitController.target.y, orbitController.target.z);\n camera.updateMatrix();\n camera.updateMatrixWorld();\n\n for (let elemID in planData.sceneGraph.LODs) {\n planData.sceneGraph.LODs[elemID].update(camera);\n }\n\n this.renderer.render(scene3D, camera);\n this.renderingID = requestAnimationFrame(render);\n };\n\n render();\n\n this.orbitControls = orbitController;\n this.camera = camera;\n this.scene3D = scene3D;\n this.planData = planData;\n }\n\n componentWillUnmount() {\n cancelAnimationFrame(this.renderingID);\n\n this.orbitControls.dispose();\n\n this.renderer.domElement.removeEventListener('mousedown', this.mouseDownEvent);\n this.renderer.domElement.removeEventListener('mouseup', this.mouseUpEvent);\n\n disposeScene(this.scene3D);\n this.scene3D.remove(this.planData.plan);\n this.scene3D.remove(this.planData.grid);\n\n this.scene3D = null;\n this.planData = null;\n this.camera = null;\n this.orbitControls = null;\n this.renderer.renderLists.dispose();\n }\n\n componentWillReceiveProps(nextProps) {\n let { width, height } = nextProps;\n\n let actions = {\n areaActions: this.context.areaActions,\n holesActions: this.context.holesActions,\n itemsActions: this.context.itemsActions,\n linesActions: this.context.linesActions,\n projectActions: this.context.projectActions\n };\n\n this.width = width;\n this.height = height;\n\n this.camera.aspect = width / height;\n\n this.camera.updateProjectionMatrix();\n\n if (nextProps.state.scene !== this.props.state.scene) {\n let changedValues = diff(this.props.state.scene, nextProps.state.scene);\n updateScene(this.planData, nextProps.state.scene, this.props.state.scene, changedValues.toJS(), actions, this.context.catalog);\n }\n\n this.renderer.setSize(width, height);\n }\n\n render() {\n return React.createElement('div', { ref: 'canvasWrapper' });\n }\n}\n\nScene3DViewer.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n};\n\nScene3DViewer.contextTypes = {\n areaActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired,\n catalog: PropTypes.object\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nexport default class RulerY extends Component {\n\n constructor(props, context) {\n super(props, context);\n }\n\n render() {\n\n let elementH = this.props.unitPixelSize * this.props.zoom;\n\n let elementStyle = {\n width: '8px',\n borderBottom: '1px solid ' + this.props.fontColor,\n paddingBottom: '0.2em',\n fontSize: '10px',\n height: elementH,\n textOrientation: 'upright',\n writingMode: 'vertical-lr',\n letterSpacing: '-2px',\n textAlign: 'right'\n };\n\n let insideElementsStyle = {\n height: '20%',\n width: '100%',\n textOrientation: 'upright',\n writingMode: 'vertical-lr',\n display: 'inline-block',\n letterSpacing: '-2px',\n textAlign: 'right'\n };\n\n let rulerStyle = {\n backgroundColor: this.props.backgroundColor,\n height: this.props.height,\n width: '100%',\n color: this.props.fontColor\n }\n\n let markerStyle = {\n position: 'absolute',\n top: this.props.zeroTopPosition - (this.props.mouseY * this.props.zoom) - 6.5,\n left: 8,\n width: 0,\n height: 0,\n borderTop: '5px solid transparent',\n borderBottom: '5px solid transparent',\n borderLeft: '8px solid ' + this.props.markerColor,\n zIndex: 9001\n };\n\n let rulerContainer = {\n position: 'absolute',\n width: '100%',\n display: 'grid',\n gridRowGap: '0',\n gridColumnGap: '0',\n gridTemplateColumns: '100%',\n grdAutoRows: `${elementH}px`,\n paddingLeft: '5px'\n };\n\n let positiveRulerContainer = {\n ...rulerContainer,\n top: this.props.zeroTopPosition - (this.props.positiveUnitsNumber * elementH),\n height: (this.props.positiveUnitsNumber * elementH)\n };\n\n let negativeRulerContainer = {\n ...rulerContainer,\n top: this.props.zeroTopPosition + (this.props.negativeUnitsNumber * elementH),\n height: (this.props.negativeUnitsNumber * elementH)\n };\n\n let positiveDomElements = [];\n\n if (elementH <= 200) {\n for (let x = 1; x <= this.props.positiveUnitsNumber; x++) {\n positiveDomElements.push(\n
\n {elementH > 30 ? ((this.props.positiveUnitsNumber - x) * 100) : ''}\n
\n );\n }\n }\n else if (elementH > 200) {\n for (let x = 1; x <= this.props.positiveUnitsNumber; x++) {\n let val = (this.props.positiveUnitsNumber - x) * 100;\n positiveDomElements.push(\n
\n
{val + (4 * 20)}
\n
{val + (3 * 20)}
\n
{val + (2 * 20)}
\n
{val + (1 * 20)}
\n
{val}
\n
\n );\n }\n }\n\n return
\n
\n
\n
{positiveDomElements}
\n
;\n }\n\n}\n\nRulerY.propTypes = {\n unitPixelSize: PropTypes.number.isRequired,\n zoom: PropTypes.number.isRequired,\n mouseY: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n zeroTopPosition: PropTypes.number.isRequired,\n backgroundColor: PropTypes.string,\n fontColor: PropTypes.string,\n markerColor: PropTypes.string\n};\n\nRulerY.defaultProps = {\n positiveUnitsNumber: 50,\n negativeUnitsNumber: 50,\n backgroundColor: SharedStyle.PRIMARY_COLOR.main,\n fontColor: SharedStyle.COLORS.white,\n markerColor: SharedStyle.SECONDARY_COLOR.main\n}\n\nRulerY.contextTypes = {\n translator: PropTypes.object.isRequired\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nexport default class RulerX extends Component {\n\n constructor(props, context) {\n super(props, context);\n }\n\n render() {\n\n let elementW = this.props.unitPixelSize * this.props.zoom;\n\n let elementStyle = {\n display: 'inline-block',\n width: elementW,\n position: 'relative',\n borderLeft: '1px solid ' + this.props.fontColor,\n paddingLeft: '0.2em',\n fontSize: '10px',\n height: '100%'\n };\n\n let insideElementsStyle = {\n width: '20%',\n display: 'inline-block',\n margin: 0,\n padding: 0\n };\n\n let rulerStyle = {\n backgroundColor: this.props.backgroundColor,\n position: 'relative',\n width: this.props.width,\n height: '100%',\n color: this.props.fontColor\n }\n\n let markerStyle = {\n position: 'absolute',\n left: this.props.zeroLeftPosition + (this.props.mouseX * this.props.zoom) - 6.5,\n top: 8,\n width: 0,\n height: 0,\n borderLeft: '5px solid transparent',\n borderRight: '5px solid transparent',\n borderTop: '8px solid ' + this.props.markerColor,\n zIndex: 9001\n };\n\n let rulerContainer = {\n position: 'absolute',\n height: '10px',\n top: '4px',\n display: 'grid',\n gridRowGap: '0',\n gridColumnGap: '0',\n gridTemplateRows: '100%',\n grdAutoColumns: `${elementW}px`\n };\n\n let positiveRulerContainer = {\n ...rulerContainer,\n width: (this.props.positiveUnitsNumber * elementW),\n left: this.props.zeroLeftPosition\n };\n\n let negativeRulerContainer = {\n ...rulerContainer,\n width: (this.props.negativeUnitsNumber * elementW),\n left: this.props.zeroLeftPosition - (this.props.negativeUnitsNumber * elementW)\n };\n\n let positiveDomElements = [];\n\n if (elementW <= 200) {\n for (let x = 0; x < this.props.positiveUnitsNumber; x++) {\n positiveDomElements.push(\n
\n {elementW > 30 ? (x * 100) : ''}\n
\n );\n }\n }\n else if (elementW > 200) {\n for (let x = 0; x < this.props.positiveUnitsNumber; x++) {\n let val = x * 100;\n positiveDomElements.push(\n
\n
{val}
\n
{val + (1 * 20)}
\n
{val + (2 * 20)}
\n
{val + (3 * 20)}
\n
{val + (4 * 20)}
\n
\n );\n }\n }\n\n return
\n
\n
\n
{positiveDomElements}
\n
;\n }\n\n}\n\nRulerX.propTypes = {\n unitPixelSize: PropTypes.number.isRequired,\n positiveUnitsNumber: PropTypes.number,\n negativeUnitsNumber: PropTypes.number,\n zoom: PropTypes.number.isRequired,\n mouseX: PropTypes.number.isRequired,\n width: PropTypes.number.isRequired,\n zeroLeftPosition: PropTypes.number.isRequired,\n backgroundColor: PropTypes.string,\n fontColor: PropTypes.string,\n markerColor: PropTypes.string\n};\n\nRulerX.defaultProps = {\n positiveUnitsNumber: 50,\n negativeUnitsNumber: 50,\n backgroundColor: SharedStyle.PRIMARY_COLOR.main,\n fontColor: SharedStyle.COLORS.white,\n markerColor: SharedStyle.SECONDARY_COLOR.main\n}\n\nRulerX.contextTypes = {\n translator: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport If from '../../utils/react-if';\nimport * as sharedStyles from '../../shared-style';\n\nconst cx = 0;\nconst cy = 0;\nconst radius = 5;\n\nconst STYLE_CIRCLE = {\n fill: sharedStyles.MATERIAL_COLORS[500].orange,\n stroke: sharedStyles.MATERIAL_COLORS[500].orange,\n cursor: 'default'\n};\n\nexport default function Group({ layer, group, scene, catalog }, {translator}) {\n return (\n \n \n \n \n {translator.t('Group\\'s Barycenter')}\n \n \n \n \n )\n}\n\nGroup.propTypes = {\n group: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired,\n scene: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n\nGroup.contextTypes = {\n translator: PropTypes.object.isRequired\n};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {List} from 'immutable';\n\nexport default function GridVerticalStreak({width, height, grid}) {\n let step = grid.properties.get('step');\n let colors;\n\n if (grid.properties.has('color')) {\n colors = new List([grid.properties.get('color')]);\n } else {\n colors = grid.properties.get('colors');\n }\n\n let rendered = [];\n let i = 0;\n for (let x = 0; x <= width; x += step) {\n let color = colors.get(i % colors.size);\n i++;\n rendered.push();\n }\n\n return ({rendered});\n}\n\nGridVerticalStreak.propTypes = {\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n grid: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {List} from 'immutable';\n\nexport default function GridHorizontalStreak({width, height, grid}) {\n let step = grid.properties.get('step');\n let colors;\n\n if (grid.properties.has('color')) {\n colors = new List([grid.properties.get('color')]);\n } else {\n colors = grid.properties.get('colors');\n }\n\n let rendered = [];\n let i = 0;\n for (let y = 0; y <= height; y += step) {\n let color = colors.get(i % colors.size);\n i++;\n rendered.push();\n }\n\n return ({rendered});\n}\n\nGridHorizontalStreak.propTypes = {\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n grid: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport GridHorizontalStreak from './grid-horizontal-streak';\nimport GridVerticalStreak from './grid-vertical-streak';\n\nexport default function Grids({scene}) {\n\n let {width, height, grids} = scene;\n\n let renderedGrids = grids.entrySeq().map(([gridID, grid]) => {\n switch (grid.type) {\n case 'horizontal-streak':\n return ();\n\n case 'vertical-streak':\n return ();\n\n default:\n console.warn(`grid ${grid.type} not allowed`);\n }\n }).toList();\n\n return ({renderedGrids});\n}\n\nGrids.propTypes = {\n scene: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport polylabel from 'polylabel';\nimport areapolygon from 'area-polygon';\n\nconst STYLE_TEXT = {\n textAnchor: 'middle',\n fontSize: '12px',\n fontFamily: '\"Courier New\", Courier, monospace',\n pointerEvents: 'none',\n fontWeight: 'bold',\n\n //http://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css\n WebkitTouchCallout: 'none', /* iOS Safari */\n WebkitUserSelect: 'none', /* Chrome/Safari/Opera */\n MozUserSelect: 'none', /* Firefox */\n MsUserSelect: 'none', /* Internet Explorer/Edge */\n userSelect: 'none'\n};\n\n\nexport default function Area({layer, area, catalog}) {\n\n let rendered = catalog.getElement(area.type).render2D(area, layer);\n\n let renderedAreaSize = null;\n\n if (area.selected) {\n let polygon = area.vertices.toArray().map(vertexID => {\n let {x, y} = layer.vertices.get(vertexID);\n return [x, y];\n });\n\n let polygonWithHoles = polygon;\n\n area.holes.forEach(holeID => {\n\n let polygonHole = layer.areas.get(holeID).vertices.toArray().map(vertexID => {\n let {x, y} = layer.vertices.get(vertexID);\n return [x, y];\n });\n\n polygonWithHoles = polygonWithHoles.concat(polygonHole.reverse());\n });\n\n let center = polylabel([polygonWithHoles], 1.0);\n let areaSize = areapolygon(polygon, false);\n\n //subtract holes area\n area.holes.forEach(areaID => {\n let hole = layer.areas.get(areaID);\n let holePolygon = hole.vertices.toArray().map(vertexID => {\n let {x, y} = layer.vertices.get(vertexID);\n return [x, y];\n });\n areaSize -= areapolygon(holePolygon, false);\n });\n\n renderedAreaSize = (\n \n {(areaSize / 10000).toFixed(2)} m{String.fromCharCode(0xb2)}\n \n )\n }\n\n return (\n \n {rendered}\n {renderedAreaSize}\n \n )\n\n}\n\nArea.propTypes = {\n area: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n\n\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport If from '../../utils/react-if';\n\nconst STYLE_LINE = {\n fill: \"#0096fd\",\n stroke: \"#0096fd\"\n};\n\nconst STYLE_CIRCLE = {\n fill: \"#0096fd\",\n stroke: \"#0096fd\",\n cursor: \"ew-resize\"\n};\n\nconst STYLE_CIRCLE2 = {\n fill: \"none\",\n stroke: \"#0096fd\",\n cursor: \"ew-resize\"\n};\n\nexport default function Item({layer, item, scene, catalog}) {\n\n let {x, y, rotation} = item;\n\n let renderedItem = catalog.getElement(item.type).render2D(item, layer, scene);\n\n return (\n \n\n {renderedItem}\n \n \n \n \n \n \n \n )\n}\n\nItem.propTypes = {\n item: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired,\n scene: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n Line,\n Area,\n Vertex,\n Item,\n Group\n} from './export';\n\nexport default function Layer({ layer, scene, catalog }) {\n\n let { unit, groups } = scene;\n let { lines, areas, vertices, holes, id: layerID, items, opacity } = layer;\n\n return (\n \n {\n areas.valueSeq().map(area =>\n )\n }\n {\n lines.valueSeq().map(line =>\n )\n }\n {\n items.valueSeq().map(item =>\n )\n }\n {\n vertices\n .valueSeq()\n .filter(v => v.selected)\n .map(vertex => )\n }\n {\n groups\n .valueSeq()\n .filter(g => g.hasIn(['elements', layerID]) && g.get('selected'))\n .map(group => )\n }\n \n );\n\n}\n\nLayer.propTypes = {\n layer: PropTypes.object.isRequired,\n scene: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {GeometryUtils} from '../../utils/export';\nimport Ruler from './ruler';\n\nexport default function Line({line, layer, scene, catalog}) {\n\n let vertex0 = layer.vertices.get(line.vertices.get(0));\n let vertex1 = layer.vertices.get(line.vertices.get(1));\n\n if (vertex0.id === vertex1.id || GeometryUtils.samePoints(vertex0, vertex1)) return null; //avoid 0-length lines\n\n let {x: x1, y: y1} = vertex0;\n let {x: x2, y: y2} = vertex1;\n\n if (x1 > x2) {\n ({x: x1, y: y1} = vertex1);\n ({x: x2, y: y2} = vertex0);\n }\n\n let length = GeometryUtils.pointsDistance(x1, y1, x2, y2);\n let angle = GeometryUtils.angleBetweenTwoPointsAndOrigin(x1, y1, x2, y2);\n\n let renderedHoles = line.holes.map(holeID => {\n let hole = layer.holes.get(holeID);\n let startAt = length * hole.offset;\n let renderedHole = catalog.getElement(hole.type).render2D(hole, layer, scene);\n\n return (\n \n {renderedHole}\n \n );\n });\n\n let thickness = line.getIn(['properties', 'thickness', 'length']);\n let half_thickness = thickness / 2;\n\n let renderedLine = catalog.getElement(line.type).render2D(line, layer);\n let renderedRuler = line.selected ?\n : null;\n\n return (\n \n {renderedRuler}\n {renderedLine}\n {renderedHoles}\n \n );\n\n}\n\nLine.propTypes = {\n line: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired,\n scene: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE = {fill: \"#0096fd\", stroke: SharedStyle.COLORS.white, cursor: \"move\"};\n\nexport default function Vertex({vertex, layer}) {\n\n let {x, y} = vertex;\n\n return (\n \n \n \n );\n}\n\nVertex.propTypes = {\n vertex: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Viewer2D from './viewer2d/viewer2d';\nimport Viewer3D from './viewer3d/viewer3d';\nimport Viewer3DFirstPerson from './viewer3d/viewer3d-first-person';\nimport CatalogList from './catalog-view/catalog-list';\nimport ProjectConfigurator from './configurator/project-configurator';\n\nimport * as constants from '../constants';\n\nexport default function Content({width, height, state, customContents}) {\n let mode = state.get('mode');\n\n switch (mode) {\n case constants.MODE_3D_VIEW:\n return ;\n\n case constants.MODE_3D_FIRST_PERSON:\n return ;\n\n case constants.MODE_VIEWING_CATALOG:\n return ;\n\n case constants.MODE_IDLE:\n case constants.MODE_2D_ZOOM_IN:\n case constants.MODE_2D_ZOOM_OUT:\n case constants.MODE_2D_PAN:\n case constants.MODE_WAITING_DRAWING_LINE:\n case constants.MODE_DRAGGING_LINE:\n case constants.MODE_DRAGGING_VERTEX:\n case constants.MODE_DRAGGING_ITEM:\n case constants.MODE_DRAWING_LINE:\n case constants.MODE_DRAWING_HOLE:\n case constants.MODE_DRAWING_ITEM:\n case constants.MODE_DRAGGING_HOLE:\n case constants.MODE_ROTATING_ITEM:\n return ;\n\n case constants.MODE_CONFIGURING_PROJECT:\n return ;\n\n default:\n if (customContents.hasOwnProperty(mode)) {\n let CustomContent = customContents[mode];\n return \n } else {\n throw new Error(`Mode ${mode} doesn't have a mapped content`);\n }\n }\n}\n\nContent.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/teaching-post/wood.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/school-desk/wood.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/school-desk-double/wood.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/bookcase/wood.jpg\";","// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\nexport const VERSION = '2.0.2';"],"sourceRoot":""} \ No newline at end of file diff --git a/demo/dist/6b94cd3f66e35597e6af.app.js b/demo/dist/6b94cd3f66e35597e6af.app.js deleted file mode 100644 index aca7fc37..00000000 --- a/demo/dist/6b94cd3f66e35597e6af.app.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(e){function t(t){for(var r,i,l=t[0],s=t[1],u=t[2],c=0,p=[];c3)switch(m){case"replace":!function e(t,n,r,a,o,m,y){var g=[];switch(t[3]){case"vertices":if("selected"!==t[5]){var x=n.getIn(["vertices",t[4]]);if("x"!==t[5]&&"y"!==t[5]||(x.lines.forEach(function(t){var i=m.getIn(["layers",n.id,"lines",t,"holes"]);return i&&i.forEach(function(t){e([0,0,0,"holes",t,"selected"],n,r,a,o,m,y)}),e([0,0,0,"lines",t],n,r,a,o,m,y)}),x.areas.forEach(function(t){return e([0,0,0,"areas",t],n,r,a,o,m,y)})),"areas"===t[5]){var w=x.getIn(["areas",~~t[6]]);e([0,0,0,"areas",w],n,r,a,o,m,y)}}break;case"holes":var M=n.getIn(["holes",t[4]]);if(y.getElement(M.type).updateRender3D)g.push(function(e,t,n,r,a,o,i,l,s,u){var d=r.getIn(["holes",a]),c=t.getIn(["layers",r.id,"holes",a]),p=n.sceneGraph.layers[r.id].holes[a];return p?i.getElement(d.type).updateRender3D(d,r,e,p,c,o,s,u):null}(o,m,r,n,t[4],t.slice(5),y,a.holesActions,function(){return l(r,n.id,M.id)},function(){return c(o,r,n,M.id,y,a.holesActions)}));else{var q=M.line;"selected"===t[5]?(l(r,n.id,M.id),g.push(c(o,r,n,M.id,y,a.holesActions))):(n.getIn(["lines",q,"holes"]).forEach(function(e){l(r,n.id,e)}),s(r,n.id,q),g.push(p(o,r,n,q,y,a.linesActions)),n.getIn(["lines",q,"holes"]).forEach(function(e){g.push(c(o,r,n,e,y,a.holesActions))}))}break;case"lines":var _=n.getIn(["lines",t[4]]);y.getElement(_.type).updateRender3D?g.push(function(e,t,n,r,a,o,i,l,s,u){var d=r.getIn(["lines",a]),c=t.getIn(["layers",r.id,"lines",a]),p=n.sceneGraph.layers[r.id].lines[a];return p?i.getElement(d.type).updateRender3D(d,r,e,p,c,o,s,u):null}(o,m,r,n,t[4],t.slice(5),y,a.linesActions,function(){return s(r,n.id,t[4])},function(){return p(o,r,n,t[4],y,a.linesActions)})):(s(r,n.id,t[4]),g.push(p(o,r,n,t[4],y,a.linesActions)));break;case"areas":var b=n.getIn(["areas",t[4]]);y.getElement(b.type).updateRender3D?g.push(function(e,t,n,r,a,o,i,l,s,u){var d=r.getIn(["areas",a]),c=t.getIn(["layers",r.id,"areas",a]),p=n.sceneGraph.layers[r.id].areas[a];return p?i.getElement(d.type).updateRender3D(d,r,e,p,c,o,s,u):null}(o,m,r,n,t[4],t.slice(5),y,a.areaActions,function(){return u(r,n.id,t[4])},function(){return h(o,r,n,t[4],y,a.areaActions)})):(r.sceneGraph.layers[n.id].areas[t[4]]&&u(r,n.id,t[4]),g.push(h(o,r,n,t[4],y,a.areaActions)));break;case"items":var E=n.getIn(["items",t[4]]);y.getElement(E.type).updateRender3D?g.push(function(e,t,n,r,a,o,i,l,s,u){var d=r.getIn(["items",a]),c=t.getIn(["layers",r.id,"items",a]),p=n.sceneGraph.layers[r.id].items[a];return p?i.getElement(d.type).updateRender3D(d,r,e,p,c,o,s,u):null}(o,m,r,n,t[4],t.slice(5),y,a.itemsActions,function(){return d(r,n.id,t[4])},function(){return f(o,r,n,t[4],y,a.itemsActions)})):(d(r,n.id,t[4]),g.push(f(o,r,n,t[4],y,a.itemsActions)));break;case"visible":if(n.visible)g=g.concat(i(n,r,o,a,y));else{var O=r.sceneGraph.layers[n.id];for(var I in O.lines)s(r,n.id,I);for(var P in O.areas)u(r,n.id,P);for(var T in O.items)d(r,n.id,T);for(var G in O.holes)l(r,n.id,G)}break;case"opacity":case"altitude":var S=r.sceneGraph.layers[n.id];for(var D in S.lines)s(r,n.id,D);for(var R in S.areas)u(r,n.id,R);for(var A in S.items)d(r,n.id,A);for(var L in S.holes)l(r,n.id,L);g=g.concat(i(n,r,o,a,y))}Promise.all(g).then(function(e){return v(r)})}(y,x,e,a,t,n,o);break;case"add":!function(e,t,n,r,a,o,i){if(5===e.length){var l=null,s=null;switch(e[3]){case"lines":l=p,s=r.linesActions;break;case"areas":l=h,s=r.areaActions;break;case"items":l=f,s=r.itemsActions;break;case"holes":l=c,s=r.holesActions}l&&l(a,n,t,e[4],i,s).then(function(){return v(n)})}}(y,x,e,a,t,0,o);break;case"remove":!function(e,t,n,r,a,o,i){var h=[];switch(e[3]){case"lines":var f=e[4];o.getIn(["layers",t.id,"lines",f,"holes"]).forEach(function(e){l(n,t.id,e)}),s(n,t.id,f),e.length>5&&(h.push(p(a,n,t,f,i,r.linesActions)),t.getIn(["lines",f,"holes"]).forEach(function(e){h.push(c(a,n,t,e,i,r.holesActions))}));break;case"areas":5===e.length&&u(n,t.id,e[4]);break;case"items":5===e.length&&d(n,t.id,e[4])}Promise.all(h).then(function(e){return v(n)})}(y,x,e,a,t,n,o)}}else if("selectedLayer"===y[1]){var w=g,M=t.getIn(["layers",w]);if(!M.visible){var q=i(M,e,t,a,o);Promise.all(q).then(function(){return v(e)})}var _=e.sceneGraph.layers[n.selectedLayer];if(_&&!_.visible){for(var b in _.lines)s(e,_.id,b);for(var E in _.areas)u(e,_.id,E);for(var O in _.items)d(e,_.id,O);for(var I in _.holes)l(e,_.id,I)}}}),e};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(755)),o=n(68);function i(e,t,n,r,a){var o=[];return t.sceneGraph.layers[e.id]={id:e.id,lines:{},holes:{},areas:{},items:{},visible:e.visible,altitude:e.altitude},t.sceneGraph.busyResources.layers[e.id]={id:e.id,lines:{},holes:{},areas:{},items:{}},e.lines.forEach(function(i){o.push(p(n,t,e,i.id,a,r.linesActions)),i.holes.forEach(function(i){o.push(c(n,t,e,i,a,r.holesActions))})}),e.areas.forEach(function(i){o.push(h(n,t,e,i.id,a,r.areaActions))}),e.items.forEach(function(i){o.push(f(n,t,e,i.id,a,r.itemsActions))}),o}function l(e,t,n){if(e.sceneGraph.busyResources.layers[t].holes[n])setTimeout(function(){return l(e,t,n)},100);else{e.sceneGraph.busyResources.layers[t].holes[n]=!0;var r=e.sceneGraph.layers[t].holes[n];r&&(e.plan.remove(r),(0,o.disposeObject)(r),delete e.sceneGraph.layers[t].holes[n],delete e.sceneGraph.LODs[n],r=null,v(e)),e.sceneGraph.busyResources.layers[t].holes[n]=!1}}function s(e,t,n){if(e.sceneGraph.busyResources.layers[t].lines[n])setTimeout(function(){return s(e,t,n)},100);else{e.sceneGraph.busyResources.layers[t].lines[n]=!0;var r=e.sceneGraph.layers[t].lines[n];r&&(e.plan.remove(r),(0,o.disposeObject)(r),delete e.sceneGraph.layers[t].lines[n],delete e.sceneGraph.LODs[n],r=null,v(e)),e.sceneGraph.busyResources.layers[t].lines[n]=!1}}function u(e,t,n){if(e.sceneGraph.busyResources.layers[t].areas[n])setTimeout(function(){return u(e,t,n)},100);else{e.sceneGraph.busyResources.layers[t].areas[n]=!0;var r=e.sceneGraph.layers[t].areas[n];r&&(e.plan.remove(r),(0,o.disposeObject)(r),delete e.sceneGraph.layers[t].areas[n],delete e.sceneGraph.LODs[n],r=null,v(e)),e.sceneGraph.busyResources.layers[t].areas[n]=!1}}function d(e,t,n){if(e.sceneGraph.busyResources.layers[t].items[n])setTimeout(function(){return d(e,t,n)},100);else{e.sceneGraph.busyResources.layers[t].items[n]=!0;var r=e.sceneGraph.layers[t].items[n];r&&(e.plan.remove(r),(0,o.disposeObject)(r),delete e.sceneGraph.layers[t].items[n],delete e.sceneGraph.LODs[n],r=null,v(e)),e.sceneGraph.busyResources.layers[t].items[n]=!1}}function c(e,t,n,a,o,i){var l=n.getIn(["holes",a]);return o.getElement(l.type).render3D(l,n,e).then(function(e){e instanceof r.LOD&&(t.sceneGraph.LODs[a]=e);var o=new r.Object3D;o.name="pivot",o.add(e);var s=n.getIn(["lines",l.line]),u=n.vertices.get(s.vertices.get(0)),d=n.vertices.get(s.vertices.get(1)),c=l.offset;if(u.x>d.x){var p=u;u=d,d=p,c=1-c}var h=Math.sqrt(Math.pow(u.x-d.x,2)+Math.pow(u.y-d.y,2)),f=Math.asin((d.y-u.y)/h),v=(new r.Box3).setFromObject(o),g=[(v.max.x-v.min.x)/2+v.min.x,(v.max.y-v.min.y)/2+v.min.y,(v.max.z-v.min.z)/2+v.min.z],x=l.properties.getIn(["altitude","length"]),w=l.properties.getIn(["height","length"]);o.rotation.y=f,o.position.x=u.x+h*c*Math.cos(f)-g[2]*Math.sin(f),o.position.y=x+w/2-g[1]+n.altitude,o.position.z=-u.y-h*c*Math.sin(f)-g[2]*Math.cos(f),t.plan.add(o),t.sceneGraph.layers[n.id].holes[l.id]=o,m(o,function(){return i.selectHole(n.id,l.id)});var M=n.opacity;l.selected&&(M=1),y(o,M)})}function p(e,t,n,a,o,i){if(!t.sceneGraph.busyResources.layers[n.id].lines[a]){t.sceneGraph.busyResources.layers[n.id].lines[a]=!0;var l=n.getIn(["lines",a]),s=n.vertices.get(l.vertices.get(0)),u=n.vertices.get(l.vertices.get(1));if(s.x>u.x){var d=s;s=u,u=d}return o.getElement(l.type).render3D(l,n,e).then(function(e){e instanceof r.LOD&&(t.sceneGraph.LODs[l.id]=e);var o=new r.Object3D;o.name="pivot",o.add(e),o.position.x=s.x,o.position.y=n.altitude,o.position.z=-s.y,t.plan.add(o),t.sceneGraph.layers[n.id].lines[a]=o,m(o,function(){return i.selectLine(n.id,l.id)});var u=n.opacity;l.selected&&(u=1),y(o,u),t.sceneGraph.busyResources.layers[n.id].lines[a]=!1})}setTimeout(function(){return p(e,t,n,a,o,i)},100)}function h(e,t,n,a,o,i){if(!t.sceneGraph.busyResources.layers[n.id].areas[a]){t.sceneGraph.busyResources.layers[n.id].areas[a]=!0;var l=n.getIn(["areas",a]),s=function(){return i.selectArea(n.id,a)};return o.getElement(l.type).render3D(l,n,e).then(function(e){e instanceof r.LOD&&(t.sceneGraph.LODs[a]=e);var o=new r.Object3D;o.name="pivot",o.add(e),o.position.y=n.altitude,t.plan.add(o),t.sceneGraph.layers[n.id].areas[a]=o,m(o,s);var i=n.opacity;l.selected&&(i=1),y(o,i),t.sceneGraph.busyResources.layers[n.id].areas[a]=!1})}setTimeout(function(){return h(e,t,n,a,o,i)},100)}function f(e,t,n,a,o,i){var l=n.getIn(["items",a]);return o.getElement(l.type).render3D(l,n,e).then(function(e){e instanceof r.LOD&&(t.sceneGraph.LODs[a]=e);var o=new r.Object3D;o.name="pivot",o.add(e),o.rotation.y=l.rotation*Math.PI/180,o.position.x=l.x,o.position.y=n.altitude,o.position.z=-l.y,m(e,function(){i.selectItem(n.id,l.id)});var s=n.opacity;l.selected&&(s=1),y(o,s),t.plan.add(o),t.sceneGraph.layers[n.id].items[l.id]=o})}function m(e,t){e.traverse(function(e){e instanceof r.Mesh&&(e.interact=t)})}function y(e,t){e.traverse(function(e){e instanceof r.Mesh&&(e.material instanceof r.MultiMaterial?e.material.materials.forEach(function(e){e.transparent=!0,e.maxOpacity?e.opacity=Math.min(e.maxOpacity,t):e.opacity&&e.opacity>t&&(e.maxOpacity=e.opacity,e.opacity=t)}):e.material instanceof Array?e.material.forEach(function(e){e.transparent=!0,e.maxOpacity?e.opacity=Math.min(e.maxOpacity,t):e.opacity&&e.opacity>t&&(e.maxOpacity=e.opacity,e.opacity=t)}):(e.material.transparent=!0,e.material.maxOpacity?e.material.opacity=Math.min(e.material.maxOpacity,t):e.material.opacity&&e.material.opacity>t&&(e.material.maxOpacity=e.material.opacity,e.material.opacity=t)))})}function v(e){var t=(new r.Box3).setFromObject(e.plan);if(isFinite(t.max.x)&&isFinite(t.min.x)&&isFinite(t.max.y)&&isFinite(t.min.y)&&isFinite(t.max.z)&&isFinite(t.min.z)){var n=new r.Vector3((t.max.x-t.min.x)/2+t.min.x,(t.max.y-t.min.y)/2+t.min.y,(t.max.z-t.min.z)/2+t.min.z);e.plan.position.sub(n),e.grid.position.sub(n),t.min.sub(n),t.max.sub(n),e.boundingBox=t}}},106:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}var i={stroke:"#0096fd",strokeWidth:"1px"},l={textAnchor:"middle",fontSize:"12px",fontFamily:"'Courier New', Courier, monospace",pointerEvents:"none",fontWeight:"bold",WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none"};function s(e){var t=e.length,n=e.unit,a=e.transform,o=t.toFixed(2)+" "+n;return r.default.createElement("g",{transform:a},r.default.createElement("text",{x:t/2,y:"-3",transform:"scale(1, -1)",style:l},o),r.default.createElement("line",{x1:"0",y1:"-5",x2:"0",y2:"5",style:i}),r.default.createElement("line",{x1:t,y1:"-5",x2:t,y2:"5",style:i}),r.default.createElement("line",{x1:"0",y1:"0",x2:t,y2:"0",style:i}))}s.propTypes={length:a.default.number.isRequired,unit:a.default.string.isRequired,transform:a.default.string.isRequired}},107:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(n(0)),a=i(n(2)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(37));function i(e){return e&&e.__esModule?e:{default:e}}var l={stroke:"#D32F2F",strokeWidth:"1px"};function s(e){var t=e.snap,n=e.width,a=e.height;switch(t.type){case"point":return r.default.createElement("g",{transform:"translate("+t.x+" "+t.y+")"},r.default.createElement("line",{x1:"0",y1:"-70",x2:"0",y2:"70",style:l}),r.default.createElement("line",{x1:"-70",y1:"0",x2:"70",y2:"0",style:l}));case"line":var i=o.horizontalLine(0),s=o.horizontalLine(a),u=o.twoLinesIntersection(t.a,t.b,t.c,i.a,i.b,i.c),d=o.twoLinesIntersection(t.a,t.b,t.c,s.a,s.b,s.c),c=o.verticalLine(0),p=o.verticalLine(n),h=o.twoLinesIntersection(t.a,t.b,t.c,c.a,c.b,c.c),f=o.twoLinesIntersection(t.a,t.b,t.c,p.a,p.b,p.c);return u&&d?r.default.createElement("line",{x1:u.x,y1:u.y,x2:d.x,y2:d.y,style:l}):h&&f?r.default.createElement("line",{x1:h.x,y1:h.y,x2:f.x,y2:f.y,style:l}):null;case"line-segment":return r.default.createElement("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,style:l});default:return null}}s.propTypes={snap:a.default.object.isRequired,width:a.default.number.isRequired,height:a.default.number.isRequired}},108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(p,["hook","label"]),E=function(e,t){var r=(0,d.toFixedFloat)(e),a=n.merge({length:t!==i.UNIT_CENTIMETER?(0,l.default)(r).from(t).to(i.UNIT_CENTIMETER):r,_length:e,_unit:t});return q?q(a,y,v,g).then(function(e){return o(e)}):o(a)};return a.default.createElement("table",{className:"PropertyLengthMeasure",style:c.default.tableStyle},a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",{style:c.default.firstTdStyle},a.default.createElement(s.FormLabel,null,_)),a.default.createElement("td",{style:f},a.default.createElement("table",{style:h},a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",null,a.default.createElement(s.FormNumberInput,r({value:w,onChange:function(e){return E(e.target.value,M)},onValid:u},b))),a.default.createElement("td",{style:m},a.default.createElement(s.FormSelect,{value:M,onChange:function(e){return E(w,e.target.value)}},i.UNITS_LENGTH.map(function(e){return a.default.createElement("option",{key:e,value:e},e)}))))))))))}y.propTypes={value:o.default.instanceOf(u.Map).isRequired,onUpdate:o.default.func.isRequired,onValid:o.default.func,configs:o.default.object.isRequired,sourceElement:o.default.object,internalState:o.default.object,state:o.default.object.isRequired},y.contextTypes={catalog:o.default.object.isRequired}},128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.value,n=e.onUpdate,a=e.configs,l=e.sourceElement,s=e.internalState,u=e.state;return r.default.createElement("table",{className:"PropertyString",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,a.label)),r.default.createElement("td",null,r.default.createElement(o.FormTextInput,{value:t,onChange:function(e){return function(e){return a.hook?a.hook(e,l,s,u).then(function(e){return n(e)}):n(e)}(e.target.value)}})))))}s.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},13:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormTextInput=t.FormSubmitButton=t.FormSlider=t.FormSelect=t.FormNumberInput=t.FormLabel=t.FormColorInput=t.FormBlock=t.DeleteButton=t.ContentTitle=t.ContentContainer=t.CancelButton=t.Button=void 0;var r=y(n(64)),a=y(n(2510)),o=y(n(169)),i=y(n(168)),l=y(n(2509)),s=y(n(2508)),u=y(n(2507)),d=y(n(2506)),c=y(n(167)),p=y(n(1564)),h=y(n(1563)),f=y(n(1492)),m=y(n(63));function y(e){return e&&e.__esModule?e:{default:e}}t.Button=r.default,t.CancelButton=a.default,t.ContentContainer=o.default,t.ContentTitle=i.default,t.DeleteButton=l.default,t.FormBlock=s.default,t.FormColorInput=u.default,t.FormLabel=d.default,t.FormNumberInput=c.default,t.FormSelect=p.default,t.FormSlider=h.default,t.FormSubmitButton=f.default,t.FormTextInput=m.default,t.default={Button:r.default,CancelButton:a.default,ContentContainer:o.default,ContentTitle:i.default,DeleteButton:l.default,FormBlock:s.default,FormColorInput:u.default,FormLabel:d.default,FormNumberInput:c.default,FormSelect:p.default,FormSlider:h.default,FormSubmitButton:f.default,FormTextInput:m.default}},1397:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["width","height","state","stateExtractor"]),s=t-50-300,u=n-20,d=n-20,c=n-20,p=o(a);return i.default.createElement("div",{style:r({},w,{height:n})},i.default.createElement(v,r({width:50,height:u,state:p},l)),i.default.createElement(f.Content,r({width:s,height:d,state:p},l,{onWheel:function(e){return e.preventDefault()}})),i.default.createElement(g,r({width:300,height:c,state:p},l)),i.default.createElement(x,r({width:t,height:20,state:p},l)))}}]),t}();M.propTypes={translator:l.default.instanceOf(d.default),catalog:l.default.instanceOf(c.default),allowProjectFileSupport:l.default.bool,plugins:l.default.arrayOf(l.default.func),autosaveKey:l.default.string,autosaveDelay:l.default.number,width:l.default.number.isRequired,height:l.default.number.isRequired,stateExtractor:l.default.func.isRequired,toolbarButtons:l.default.array,sidebarComponents:l.default.array,footerbarComponents:l.default.array,customContents:l.default.object,softwareSignature:l.default.string},M.contextTypes={store:l.default.object.isRequired},M.childContextTypes=r({},(0,h.objectsMap)(p.default,function(){return l.default.object}),{translator:l.default.object,catalog:l.default.object}),M.defaultProps={translator:new d.default,catalog:new c.default,plugins:[],allowProjectFileSupport:!0,softwareSignature:"React-Planner "+m.VERSION,toolbarButtons:[],sidebarComponents:[],footerbarComponents:[],customContents:{}},t.default=(0,u.connect)(function(e){return{state:e}},function(e){return(0,h.objectsMap)(p.default,function(t){return(0,s.bindActionCreators)(p.default[t],e)})})(M)},1409:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(e=e.merge({sceneHistory:o.history.historyPush(e.sceneHistory,e.scene)}),t.type){case r.SELECT_TOOL_3D_VIEW:return e=a.Project.rollback(e).updatedState,e=a.Project.setMode(e,r.MODE_3D_VIEW).updatedState;case r.SELECT_TOOL_3D_FIRST_PERSON:return e=a.Project.rollback(e).updatedState,e=a.Project.setMode(e,r.MODE_3D_FIRST_PERSON).updatedState;default:return e}};var r=n(4),a=n(11),o=n(10)},1410:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case r.UPDATE_2D_CAMERA:return e.merge({viewer2D:(0,a.fromJS)(t.value)});case r.SELECT_TOOL_PAN:return e.set("mode",r.MODE_2D_PAN);case r.SELECT_TOOL_ZOOM_IN:return e.set("mode",r.MODE_2D_ZOOM_IN);case r.SELECT_TOOL_ZOOM_OUT:return e.set("mode",r.MODE_2D_ZOOM_OUT)}};var r=n(4),a=n(7)},1411:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case r.BEGIN_DRAGGING_VERTEX:return a.Vertex.beginDraggingVertex(e,t.layerID,t.vertexID,t.x,t.y).updatedState;case r.UPDATE_DRAGGING_VERTEX:return a.Vertex.updateDraggingVertex(e,t.x,t.y).updatedState;case r.END_DRAGGING_VERTEX:return a.Vertex.endDraggingVertex(e,t.x,t.y).updatedState;default:return e}};var r=n(4),a=n(11)},1412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),t.type){case o.ADD_LAYER:return r.Layer.create(e,t.name,t.altitude).updatedState;case o.SELECT_LAYER:return r.Layer.select(e,t.layerID).updatedState;case o.SET_LAYER_PROPERTIES:return r.Layer.setProperties(e,t.layerID,t.properties).updatedState;case o.REMOVE_LAYER:return r.Layer.remove(e,t.layerID).updatedState;default:return e}};var r=n(11),a=n(10),o=n(4)},1413:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case a.NEW_PROJECT:return o.Project.newProject(e).updatedState;case a.LOAD_PROJECT:return o.Project.loadProject(e,t.sceneJSON).updatedState;case a.OPEN_CATALOG:return o.Project.openCatalog(e).updatedState;case a.CHANGE_CATALOG_PAGE:return o.Project.changeCatalogPage(e,t.oldPage,t.newPage).updatedState;case a.GO_BACK_TO_CATALOG_PAGE:return o.Project.goBackToCatalogPage(e,t.newPage).updatedState;case a.SELECT_TOOL_EDIT:return o.Project.setMode(e,a.MODE_IDLE).updatedState;case a.UNSELECT_ALL:return o.Project.unselectAll(e).updatedState;case a.SET_PROPERTIES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.setProperties(e,e.getIn(["scene","selectedLayer"]),t.properties).updatedState;case a.SET_ITEMS_ATTRIBUTES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.setItemsAttributes(e,t.itemsAttributes).updatedState;case a.SET_LINES_ATTRIBUTES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.setLinesAttributes(e,t.linesAttributes).updatedState;case a.SET_HOLES_ATTRIBUTES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.setHolesAttributes(e,t.holesAttributes).updatedState;case a.REMOVE:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.remove(e).updatedState;case a.UNDO:return o.Project.undo(e).updatedState;case a.ROLLBACK:return o.Project.rollback(e).updatedState;case a.SET_PROJECT_PROPERTIES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.setProjectProperties(e,t.properties).updatedState;case a.OPEN_PROJECT_CONFIGURATOR:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.openProjectConfigurator(e).updatedState;case a.INIT_CATALOG:return o.Project.initCatalog(e,t.catalog).updatedState;case a.UPDATE_MOUSE_COORDS:return o.Project.updateMouseCoord(e,t.coords).updatedState;case a.UPDATE_ZOOM_SCALE:return o.Project.updateZoomScale(e,t.scale).updatedState;case a.TOGGLE_SNAP:return o.Project.toggleSnap(e,t.mask).updatedState;case a.THROW_ERROR:return o.Project.throwError(e,t.error).updatedState;case a.THROW_WARNING:return o.Project.throwWarning(e,t.warning).updatedState;case a.COPY_PROPERTIES:return o.Project.copyProperties(e,t.properties).updatedState;case a.PASTE_PROPERTIES:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.pasteProperties(e).updatedState;case a.PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY:return o.Project.pushLastSelectedCatalogElementToHistory(e,t.element).updatedState;case a.ALTERATE_STATE:return o.Project.setAlterate(e).updatedState;case a.SET_MODE:return o.Project.setMode(e,t.mode).updatedState;case a.ADD_HORIZONTAL_GUIDE:return e=e.merge({sceneHistory:r.history.historyPush(e.sceneHistory,e.scene)}),o.Project.addHorizontalGuide(e,t.coordinate).updatedState;case a.ADD_VERTICAL_GUIDE:return o.Project.addVerticalGuide(e,t.coordinate).updatedState;case a.ADD_CIRCULAR_GUIDE:return o.Project.addCircularGuide(e,t.x,t.y,t.radius).updatedState;case a.REMOVE_HORIZONTAL_GUIDE:return o.Project.removeHorizontalGuide(e,t.guideID).updatedState;case a.REMOVE_VERTICAL_GUIDE:return o.Project.removeVerticalGuide(e,t.guideID).updatedState;case a.REMOVE_CIRCULAR_GUIDE:return o.Project.removeCircularGuide(e,t.guideID).updatedState;default:return e}};var r=n(10),a=n(4),o=n(11)},1414:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(e=e.merge({sceneHistory:o.history.historyPush(e.sceneHistory,e.scene)}),t.type){case r.GROUP_ACTIONS.ADD_GROUP:return a.Group.create(e).updatedState;case r.GROUP_ACTIONS.ADD_GROUP_FROM_SELECTED:return a.Group.createFromSelectedElements(e).updatedState;case r.GROUP_ACTIONS.SELECT_GROUP:return a.Group.select(e,t.groupID).updatedState;case r.GROUP_ACTIONS.UNSELECT_GROUP:return a.Group.unselect(e,t.groupID).updatedState;case r.GROUP_ACTIONS.ADD_TO_GROUP:return a.Group.addElement(e,t.groupID,t.layerID,t.elementPrototype,t.elementID).updatedState;case r.GROUP_ACTIONS.REMOVE_FROM_GROUP:return a.Group.removeElement(e,t.groupID,t.layerID,t.elementPrototype,t.elementID).updatedState;case r.GROUP_ACTIONS.SET_GROUP_ATTRIBUTES:return a.Group.setAttributes(e,t.groupID,t.attributes).updatedState;case r.GROUP_ACTIONS.SET_GROUP_PROPERTIES:return a.Group.setProperties(e,t.groupID,t.properties).updatedState;case r.GROUP_ACTIONS.SET_GROUP_BARYCENTER:return a.Group.setBarycenter(e,t.groupID,t.barycenter.get("x"),t.barycenter.get("y")).updatedState;case r.GROUP_ACTIONS.REMOVE_GROUP:return a.Group.remove(e,t.groupID).updatedState;case r.GROUP_ACTIONS.REMOVE_GROUP_AND_DELETE_ELEMENTS:return a.Group.removeAndDeleteElements(e,t.groupID).updatedState;case r.GROUP_ACTIONS.GROUP_TRANSLATE:return a.Group.translate(e,t.groupID,t.x,t.y).updatedState;case r.GROUP_ACTIONS.GROUP_ROTATE:return a.Group.rotate(e,t.groupID,t.rotation).updatedState;default:return e}};var r=n(4),a=n(11),o=n(10)},1415:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case o.SELECT_TOOL_DRAWING_LINE:return r.Line.selectToolDrawingLine(e,t.sceneComponentType).updatedState;case o.BEGIN_DRAWING_LINE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Line.beginDrawingLine(e,t.layerID,t.x,t.y).updatedState;case o.UPDATE_DRAWING_LINE:return r.Line.updateDrawingLine(e,t.x,t.y).updatedState;case o.END_DRAWING_LINE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Line.endDrawingLine(e,t.x,t.y).updatedState;case o.BEGIN_DRAGGING_LINE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Line.beginDraggingLine(e,t.layerID,t.lineID,t.x,t.y).updatedState;case o.UPDATE_DRAGGING_LINE:return r.Line.updateDraggingLine(e,t.x,t.y).updatedState;case o.END_DRAGGING_LINE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Line.endDraggingLine(e,t.x,t.y).updatedState;case o.SELECT_LINE:return r.Line.select(e,t.layerID,t.lineID).updatedState;default:return e}};var r=n(11),a=n(10),o=n(4)},1416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case o.SELECT_ITEM:return r.Item.select(e,t.layerID,t.itemID).updatedState;case o.SELECT_TOOL_DRAWING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.selectToolDrawingItem(e,t.sceneComponentType).updatedState;case o.UPDATE_DRAWING_ITEM:return r.Item.updateDrawingItem(e,t.layerID,t.x,t.y).updatedState;case o.END_DRAWING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.endDrawingItem(e,t.layerID,t.x,t.y).updatedState;case o.BEGIN_DRAGGING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.beginDraggingItem(e,t.layerID,t.itemID,t.x,t.y).updatedState;case o.UPDATE_DRAGGING_ITEM:return r.Item.updateDraggingItem(e,t.x,t.y).updatedState;case o.END_DRAGGING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.endDraggingItem(e,t.x,t.y).updatedState;case o.BEGIN_ROTATING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.beginRotatingItem(e,t.layerID,t.itemID,t.x,t.y).updatedState;case o.UPDATE_ROTATING_ITEM:return r.Item.updateRotatingItem(e,t.x,t.y).updatedState;case o.END_ROTATING_ITEM:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Item.endRotatingItem(e,t.x,t.y).updatedState;default:return e}};var r=n(11),a=n(10),o=n(4)},1417:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case o.SELECT_TOOL_DRAWING_HOLE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Hole.selectToolDrawingHole(e,t.sceneComponentType).updatedState;case o.UPDATE_DRAWING_HOLE:return r.Hole.updateDrawingHole(e,t.layerID,t.x,t.y).updatedState;case o.END_DRAWING_HOLE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Hole.endDrawingHole(e,t.layerID,t.x,t.y).updatedState;case o.BEGIN_DRAGGING_HOLE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Hole.beginDraggingHole(e,t.layerID,t.holeID,t.x,t.y).updatedState;case o.UPDATE_DRAGGING_HOLE:return r.Hole.updateDraggingHole(e,t.x,t.y).updatedState;case o.END_DRAGGING_HOLE:return e=e.merge({sceneHistory:a.history.historyPush(e.sceneHistory,e.scene)}),r.Hole.endDraggingHole(e,t.x,t.y).updatedState;case o.SELECT_HOLE:return r.Hole.select(e,t.layerID,t.holeID).updatedState;default:return e}};var r=n(11),a=n(10),o=n(4)},1418:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularGuide=t.VerticalGuide=t.HorizontalGuide=void 0;var r=function(){function e(e,t){for(var n=0;nI.x?P=i.GeometryUtils.pointPositionOnLineSegment(x.x,x.y,w.x,w.y,I.x,I.y):r===O.x&&r===I.x?aI.y?(P=i.GeometryUtils.pointPositionOnLineSegment(x.x,x.y,w.x,w.y,I.x,I.y),P=x.x===f&&x.y===m?P:1-P):P=i.GeometryUtils.pointPositionOnLineSegment(f,m,v,g,r,a):P=i.GeometryUtils.pointPositionOnLineSegment(f,m,v,g,r,a),d&&s){var T=(t=t.mergeIn(["scene","layers",n,"holes",d],{offset:P,line:c})).getIn(["scene","layers",n,"lines"]).findEntry(function(e){return e.id!==c&&e.get("holes").contains(d)});if(T){var G=T[1].get("holes").filter(function(e){return e!==d});t=t.setIn(["scene","layers",n,"lines",T[0],"holes"],G)}var S=t.getIn(["scene","layers",n,"lines",c,"holes"]);S.contains(d)||(t=t.setIn(["scene","layers",n,"lines",c,"holes"],S.push(d)))}else if(!d&&s){var D=this.create(t,n,t.drawingSupport.get("type"),c,P),R=D.updatedState,A=D.hole;t=e.select(R,n,A.id).updatedState}}else 0;return{updatedState:t}}},{key:"endDrawingHole",value:function(e,t,n,r){return e=this.updateDrawingHole(e,t,n,r).updatedState,{updatedState:e=o.Layer.unselectAll(e,t).updatedState}}},{key:"beginDraggingHole",value:function(e,t,n,r,o){var i=e.getIn(["scene","layers",t]),u=i.getIn(["holes",n]),d=i.getIn(["lines",u.line]),c=i.getIn(["vertices",d.vertices.get(0)]),p=i.getIn(["vertices",d.vertices.get(1)]),h=(0,l.addLineSegmentSnap)((0,a.List)(),c.x,c.y,p.x,p.y,9999999,1,null);return{updatedState:e=e.merge({mode:s.MODE_DRAGGING_HOLE,snapElements:h,draggingSupport:(0,a.Map)({layerID:t,holeID:n,startPointX:r,startPointY:o})})}}},{key:"updateDraggingHole",value:function(e,t,n){var r=(0,l.nearestSnap)(e.snapElements,t,n,e.snapMask.merge({SNAP_SEGMENT:!0}));if(!r)return e;var a=e,o=a.draggingSupport,s=a.scene,u=o.get("layerID"),d=o.get("holeID"),c=(o.get("startPointX"),o.get("startPointY"),e.getIn(["scene","layers",u])),p=c.getIn(["holes",d]),h=c.getIn(["lines",p.line]),f=c.getIn(["vertices",h.vertices.get(0)]),m=c.getIn(["vertices",h.vertices.get(1)]),y=r.point;t=y.x,n=y.y;var v=i.GeometryUtils.minVertex(f,m),g=i.GeometryUtils.maxVertex(f,m),x=p.properties.get("width").get("length"),w=i.GeometryUtils.pointsDistance(f.x,f.y,m.x,m.y),M=Math.atan2(Math.abs(m.y-f.y),Math.abs(m.x-f.x)),q=function(e){var t=Math.cos(e);return t<1e-7?0:t}(M),_=function(e){var t=Math.sin(e);return t<1e-7?0:t}(M),b={x:v.x+x/2*q,y:v.y+x/2*_},E={x:v.x+w*q-x/2*q,y:v.y+w*_-x/2*_},O=void 0;return tE.x?O=i.GeometryUtils.pointPositionOnLineSegment(v.x,v.y,g.x,g.y,E.x,E.y):t===b.x&&t===E.x?nE.y?(O=i.GeometryUtils.pointPositionOnLineSegment(v.x,v.y,g.x,g.y,E.x,E.y),O=v===f?O:1-O):(O=i.GeometryUtils.pointPositionOnLineSegment(v.x,v.y,g.x,g.y,t,n),O=v===f?O:1-O):O=i.GeometryUtils.pointPositionOnLineSegment(v.x,v.y,g.x,g.y,t,n),p=p.set("offset",O),{updatedState:e=e.merge({scene:s.mergeIn(["layers",u,"holes",d],p)})}}},{key:"endDraggingHole",value:function(e,t,n){return{updatedState:e=(e=this.updateDraggingHole(e,t,n).updatedState).merge({mode:s.MODE_IDLE})}}},{key:"setProperties",value:function(e,t,n,r){return{updatedState:e=e.setIn(["scene","layers",t,"holes",n,"properties"],r)}}},{key:"setJsProperties",value:function(e,t,n,r){return this.setProperties(e,t,n,(0,a.fromJS)(r))}},{key:"updateProperties",value:function(e,t,n,r){return r.forEach(function(r,a){e.hasIn(["scene","layers",t,"holes",n,"properties",a])&&(e=e.mergeIn(["scene","layers",t,"holes",n,"properties",a],r))}),{updatedState:e}}},{key:"updateJsProperties",value:function(e,t,n,r){return this.updateProperties(e,t,n,(0,a.fromJS)(r))}},{key:"setAttributes",value:function(e,t,n,r){var o=r.toJS(),i=o.offsetA,l=o.offsetB,s=o.offset;delete o.offsetA,delete o.offsetB,delete o.offset;var u=new a.Map({_unitA:i._unit,_unitB:l._unit});return{updatedState:e=e.mergeIn(["scene","layers",t,"holes",n],(0,a.fromJS)(o)).mergeDeepIn(["scene","layers",t,"holes",n],new a.Map({offset:s,misc:u}))}}}]),e}();t.default=u},1423:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n=0&&s<=1&&(e=i.Hole.create(e,t,n.hole.type,w.id,s,n.hole.properties).updatedState)}}),c.push(w)}),{updatedState:e,lines:new o.List(c)}}},{key:"createAvoidingIntersections",value:function(t,n,a,o,i,s,u,d,c){var p=this,h=[{x:o,y:i},{x:s,y:u}];t=t.getIn(["scene","layers",n,"lines"]).reduce(function(e,t){var a=t.vertices.map(function(t){return e.getIn(["scene","layers",n,"vertices"]).get(t)}).toArray(),o=r(a,2),i=o[0],s=o[1],u=l.GeometryUtils.samePoints(i,h[0])||l.GeometryUtils.samePoints(i,h[1])||l.GeometryUtils.samePoints(s,h[0])||l.GeometryUtils.samePoints(s,h[1]),d=l.GeometryUtils.twoLineSegmentsIntersection(h[0],h[1],i,s);if("colinear"===d.type){c||(c=[]);var f=l.GeometryUtils.orderVertices(h);e.getIn(["scene","layers",n,"lines",t.id,"holes"]).forEach(function(r){var a=e.getIn(["scene","layers",n,"holes",r]),o=l.GeometryUtils.pointsDistance(i.x,i.y,s.x,s.y),u=l.GeometryUtils.samePoints(f[1],t.vertices.get(1))?1-a.offset:a.offset,d=l.GeometryUtils.extendLine(i.x,i.y,s.x,s.y,o*u);c.push({hole:a,offsetPosition:d})}),e=p.remove(e,n,t.id).updatedState,h.push(i,s)}return"intersecting"!==d.type||u||(e=p.split(e,n,t.id,d.point.x,d.point.y).updatedState,h.push(d.point)),e},t);var f=e.addFromPoints(t,n,a,h,d,c);return{updatedState:f.updatedState,lines:f.lines}}},{key:"replaceVertex",value:function(e,t,n,r,a,o){var l=e.getIn(["scene","layers",t,"lines",n,"vertices",r]);e=i.Vertex.remove(e,t,l,"lines",n).updatedState;var s=i.Vertex.add(e,t,a,o,"lines",n),u=s.updatedState,d=s.vertex;return{updatedState:e=(e=(e=u).setIn(["scene","layers",t,"lines",n,"vertices",r],d.id)).setIn(["scene","layers",t,"lines",n],e.getIn(["scene","layers",t,"lines",n])),line:e.getIn(["scene","layers",t,"lines",n]),vertex:d}}},{key:"selectToolDrawingLine",value:function(e,t){return{updatedState:e=e.merge({mode:s.MODE_WAITING_DRAWING_LINE,drawingSupport:new o.Map({type:t})})}}},{key:"beginDrawingLine",value:function(t,n,r,a){var u=l.SnapSceneUtils.sceneSnapElements(t.scene,new o.List,t.snapMask),d=null;if(t.snapMask&&!t.snapMask.isEmpty()){if(d=l.SnapUtils.nearestSnap(u,r,a,t.snapMask)){var c=d.point;r=c.x,a=c.y}u=u.withMutations(function(e){var t=void 0,n=void 0,o=void 0,i=l.GeometryUtils.horizontalLine(a);t=i.a,n=i.b,o=i.c,l.SnapUtils.addLineSnap(e,t,n,o,10,3,null);var s=l.GeometryUtils.verticalLine(r);t=s.a,n=s.b,o=s.c,l.SnapUtils.addLineSnap(e,t,n,o,10,3,null)})}var p=t.get("drawingSupport").set("layerID",n);t=i.Layer.unselectAll(t,n).updatedState;var h=e.create(t,n,p.get("type"),r,a,r,a),f=h.updatedState,m=h.line;return{updatedState:t=(t=e.select(f,n,m.id).updatedState).merge({mode:s.MODE_DRAWING_LINE,snapElements:u,activeSnapElement:d?d.snap:null,drawingSupport:p})}}},{key:"updateDrawingLine",value:function(t,n,r){var a=null;if(t.snapMask&&!t.snapMask.isEmpty()&&(a=l.SnapUtils.nearestSnap(t.snapElements,n,r,t.snapMask))){var o=a.point;n=o.x,r=o.y}var i=t.getIn(["drawingSupport","layerID"]),s=t.getIn(["scene","layers",i,"selected","lines"]).first(),u=e.replaceVertex(t,i,s,1,n,r),d=u.updatedState;u.vertex;return t=d,{updatedState:t=(t=this.select(t,i,s).updatedState).merge({activeSnapElement:a?a.snap:null})}}},{key:"endDrawingLine",value:function(t,n,r){if(t.snapMask&&!t.snapMask.isEmpty()){var a=l.SnapUtils.nearestSnap(t.snapElements,n,r,t.snapMask);if(a){var u=a.point;n=u.x,r=u.y}}var d=t.getIn(["drawingSupport","layerID"]),c=t.getIn(["scene","layers",d]),p=t.getIn(["scene","layers",d,"selected","lines"]).first(),h=t.getIn(["scene","layers",d,"lines",p]),f=c.vertices.get(h.vertices.get(0));return t=e.remove(t,d,p).updatedState,t=e.createAvoidingIntersections(t,d,h.type,f.x,f.y,n,r).updatedState,{updatedState:t=(t=i.Layer.detectAndUpdateAreas(t,d).updatedState).merge({mode:s.MODE_WAITING_DRAWING_LINE,snapElements:new o.List,activeSnapElement:null})}}},{key:"beginDraggingLine",value:function(e,t,n,r,a){var i=l.SnapSceneUtils.sceneSnapElements(e.scene,new o.List,e.snapMask),u=e.scene.layers.get(t),d=u.lines.get(n),c=u.vertices.get(d.vertices.get(0)),p=u.vertices.get(d.vertices.get(1));return{updatedState:e=e.merge({mode:s.MODE_DRAGGING_LINE,snapElements:i,draggingSupport:(0,o.Map)({layerID:t,lineID:n,startPointX:r,startPointY:a,startVertex0X:c.x,startVertex0Y:c.y,startVertex1X:p.x,startVertex1Y:p.y})})}}},{key:"updateDraggingLine",value:function(e,t,n){var r=e.draggingSupport,a=e.snapElements,o=r.get("layerID"),i=r.get("lineID"),s=t-r.get("startPointX"),u=n-r.get("startPointY"),d=r.get("startVertex0X")+s,c=r.get("startVertex0Y")+u,p=r.get("startVertex1X")+s,h=r.get("startVertex1Y")+u,f=null,m=null,y=null;e.snapMask&&!e.snapMask.isEmpty()&&(m=l.SnapUtils.nearestSnap(a,d,c,e.snapMask),y=l.SnapUtils.nearestSnap(a,p,h,e.snapMask));var v=0,g=0;return m&&y?m.point.distance1&&void 0!==arguments[1]?arguments[1]:new i.List,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new i.Map,l=e.width,s=e.height,u=void 0,d=void 0,c=void 0;return t.withMutations(function(t){if(e.layers.forEach(function(e){var i=e.lines,l=e.vertices;l.forEach(function(e){var r=e.id,i=e.x,l=e.y;if(n.get(a.SNAP_POINT)&&(0,a.addPointSnap)(t,i,l,10,10,r),n.get(a.SNAP_LINE)){var s=o.GeometryUtils.horizontalLine(l);u=s.a,d=s.b,c=s.c,(0,a.addLineSnap)(t,u,d,c,10,1,r);var p=o.GeometryUtils.verticalLine(i);u=p.a,d=p.b,c=p.c,(0,a.addLineSnap)(t,u,d,c,10,1,r)}}),n.get(a.SNAP_SEGMENT)&&i.forEach(function(e){var n=e.id,o=r(e.vertices,2),i=o[0],s=o[1],u=l.get(i),d=u.x,c=u.y,p=l.get(s),h=p.x,f=p.y;(0,a.addLineSegmentSnap)(t,d,c,h,f,20,1,n)})}),n.get(a.SNAP_GRID))for(var i=l/20,p=s/20,h=0;h0>0?(o=t[n][0],i=t[n][1]):(o=t[n][1],i=t[n][0]),(e[i][0]-e[o][0])*(e[i][1]+e[o][1])})}).map(function(e){return e.reduce(function(e,t){return e+t})}),p=c.filter(function(e){return e>0}).length,h=p>=c.length-p?1:-1;return{v_cycles:n.v_cycles.filter(function(e,t){return h*c[t]>0}),e_cycles:n.e_cycles.filter(function(e,t){return h*c[t]>0}),ev_mapping:n.ev_mapping}}},1444:function(e,t,n){"use strict";e.exports=function(e,t){var n=[];return e.forEach(function(e){n.push([]);var r=function(e){var t=new Set;return e.forEach(function(e){t.add(e.u),t.add(e.v)}),t}(e);r.forEach(function(e){t.adj[e].forEach(function(t){e<=t&&r.has(t)&&n[n.length-1].push([e,t])})})}),n}},1445:function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;nn[l]&&(n[e]=n[l]),1==t[e]&&o.children>1||t[e]>1&&n[l]>=t[e]){for(var s=[];r[r.length-1].u!=e||r[r.length-1].v!=l;)s.push(r[r.length-1]),r.splice(r.length-1,1);s.push(r[r.length-1]),o.subgraphs.push(s),s=[],r.splice(r.length-1,1),o.count++}}else l!=a[e]&&t[l]t[l]&&(n[e]=t[l]),r.push(new i(e,l)))})}},{key:"BCC",value:function(){for(var e=this.V,t=o(e),n=o(e),r=o(e),a=[],i=0;i0;)s=1,u.push(a[a.length-1]),a.splice(a.length-1,1);1==s&&(this.subgraphs.push(u),u=[],this.count++)}}}]),e}();e.exports=l},1446:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateInnerCycles=function(e,t){var n=new i.List,l=new r.default(e.length);t.forEach(function(e){l.addEdge(e[0],e[1]),l.addEdge(e[1],e[0])}),l.BCC();var s=l.subgraphs.filter(function(e){return e.length>=3}),u=[];return(0,a.default)(s,l).forEach(function(e){e.forEach(function(e){return u.push(e)})}),(0,o.default)(e,u).v_cycles.forEach(function(e){e.shift(),n=n.push(e)}),n},t.isClockWiseOrder=function(e){var t=0,n=0,r=e.size;for(t=0;t0};var r=l(n(1445)),a=l(n(1444)),o=l(n(1443)),i=n(7);function l(e){return e&&e.__esModule?e:{default:e}}},1447:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(e,t){for(var n=0;n1&&(t=l.history.historyPop(t)),{updatedState:e=e.merge({mode:o.MODE_IDLE,scene:t.last,sceneHistory:l.history.historyPop(t)})}}},{key:"rollback",value:function(e){var t=e.sceneHistory;return!t.last&&t.list.isEmpty()?{updatedState:e}:{updatedState:e=(e=this.unselectAll(e).updatedState).merge({mode:o.MODE_IDLE,scene:t.last,sceneHistory:l.history.historyPush(t,t.last),snapElements:new a.List,activeSnapElement:null,drawingSupport:new a.Map,draggingSupport:new a.Map,rotatingSupport:new a.Map})}}},{key:"setProjectProperties",value:function(e,t){var n=e.scene.merge(t);return{updatedState:e=e.merge({mode:o.MODE_IDLE,scene:n})}}},{key:"openProjectConfigurator",value:function(e){return{updatedState:e=e.merge({mode:o.MODE_CONFIGURING_PROJECT})}}},{key:"initCatalog",value:function(e,t){return{updatedState:e=e.set("catalog",new i.Catalog(t))}}},{key:"updateMouseCoord",value:function(e,t){return{updatedState:e=e.set("mouse",new a.Map(t))}}},{key:"updateZoomScale",value:function(e,t){return{updatedState:e=e.set("zoom",t)}}},{key:"toggleSnap",value:function(e,t){return{updatedState:e=e.set("snapMask",t)}}},{key:"throwError",value:function(e,t){return{updatedState:e=e.set("errors",e.get("errors").push({date:Date.now(),error:t}))}}},{key:"throwWarning",value:function(e,t){return{updatedState:e=e.set("warnings",e.get("warnings").push({date:Date.now(),warning:t}))}}},{key:"copyProperties",value:function(e,t){return{updatedState:e=e.set("clipboardProperties",t)}}},{key:"pasteProperties",value:function(e){return{updatedState:e=this.updateProperties(e,e.getIn(["scene","selectedLayer"]),e.get("clipboardProperties")).updatedState}}},{key:"pushLastSelectedCatalogElementToHistory",value:function(e,t){var n=e.selectedElementsHistory,r=n.findIndex(function(e){return e.name===t.name});return-1!==r&&(n=n.splice(r,1)),n=n.splice(0,0,t),{updatedState:e=e.set("selectedElementsHistory",n)}}},{key:"changeCatalogPage",value:function(e,t,n){return{updatedState:e=e.setIn(["catalog","page"],n).updateIn(["catalog","path"],function(e){return e.push(t)})}}},{key:"goBackToCatalogPage",value:function(e,t){var n=e.catalog.path.findIndex(function(e){return e===t});return{updatedState:e=e.setIn(["catalog","page"],t).updateIn(["catalog","path"],function(e){return e.take(n)})}}},{key:"setMode",value:function(e,t){return{updatedState:e=e.set("mode",t)}}},{key:"addHorizontalGuide",value:function(e,t){return{updatedState:e=s.HorizontalGuide.create(e,t).updatedState}}},{key:"addVerticalGuide",value:function(e,t){return{updatedState:e=s.VerticalGuide.create(e,t).updatedState}}},{key:"addCircularGuide",value:function(e,t,n,r){return console.log("adding horizontal guide at",t,n,r),{updatedState:e}}},{key:"removeHorizontalGuide",value:function(e,t){return{updatedState:e=s.HorizontalGuide.remove(e,t).updatedState}}},{key:"removeVerticalGuide",value:function(e,t){return{updatedState:e=s.VerticalGuide.remove(e,t).updatedState}}},{key:"removeCircularGuide",value:function(e,t){return console.log("removeing horizontal guide ",t),{updatedState:e}}}]),e}();t.default=u},1448:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case a.SELECT_AREA:return r.Area.select(e,t.layerID,t.areaID).updatedState;default:return e}};var r=n(11),a=n(4)},1449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initialState=void 0,t.default=function(e,t){return r.PROJECT_ACTIONS[t.type]?a.ReactPlannerProjectReducer.apply(void 0,arguments):r.VIEWER2D_ACTIONS[t.type]?a.ReactPlannerViewer2dReducer.apply(void 0,arguments):r.VIEWER3D_ACTIONS[t.type]?a.ReactPlannerViewer3dReducer.apply(void 0,arguments):r.ITEMS_ACTIONS[t.type]?a.ReactPlannerItemsReducer.apply(void 0,arguments):r.HOLE_ACTIONS[t.type]?a.ReactPlannerHolesReducer.apply(void 0,arguments):r.LINE_ACTIONS[t.type]?a.ReactPlannerLinesReducer.apply(void 0,arguments):r.AREA_ACTIONS[t.type]?a.ReactPlannerAreasReducer.apply(void 0,arguments):r.GROUP_ACTIONS[t.type]?a.ReactPlannerGroupsReducer.apply(void 0,arguments):r.SCENE_ACTIONS[t.type]?a.ReactPlannerSceneReducer.apply(void 0,arguments):r.VERTEX_ACTIONS[t.type]?a.ReactPlannerVerticesReducer.apply(void 0,arguments):e||i};var r=n(4),a=n(121),o=n(31),i=t.initialState=new o.State},1450:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"+ Add Horizontal Giude":"+ Добавить горизонтальное руководство","+ Add Vertical Giude":"+ Добавить вертикальное руководство","2D View":"Плоский вид","3D First Person":"3D от первого лица","3D View":"Объёмный вид",altitude:"высота",Altitude:"Высота",Areas:"Поверхности",Cancel:"Отмена",Catalog:"Каталог","Chain selected Elements to Group":"Цепочка выбранных элементов в группу",Circular:"круговой",color:"цвет","Configure layer":"Настроить слой","Configure project":"Настроить проект",Confirm:"подтвердить",Copy:"Копировать","Delete group and all Elements":"Удалить группу и все элементы","Delete layer":"Удалить слой",Delete:"Удалить","Elements on layer {0}":"Элементов на слое {0}",Elements:"элементы","Get Screenshot":"Сделать снимок экрана","Group [{0}]":"группа [{0}]","Group's Barycenter":"Барицентр группы","Group's Elements":"Элементы группы",Groups:"группы",Guides:"руководства",height:"высота",Holes:"Проёмы",Horizontal:"горизонтальный",Items:"Предметы","Last Selected":"Последний выбраный","Layer config":"Настройка слоя",Layer:"Слой",Layers:"Слои",Length:"Длинна",Lines:"Линии","Load project":"Загрузить проект","Mouse X Coordinate":"X-координата курсора","Mouse Y Coordinate":"Y-координата курсора",Name:"Название","New Empty Group":"Новая пустая группа","New Group from selected":"Новая группа из выбранных","New layer":"Новый слой","New project":"Новый проект",opacity:"непрозрачность","Open catalog":"Открыть каталог",order:"порядок",Pan:"Двигать",Paste:"Вставить","Project config":"Настройка проекта","Properties: [{0}] {1}":"Свойства: [{0}] {1}",Prototype:"Опытный образец",Reset:"Сброс",Rotation:"Вращение","Save project":"Сохранить проект",Save:"Сохранить","Scene Zoom Level":"Уровень приближениия сцены","Search Element":"Поиск","Snap to Grid":"Привязка к сетке","Snap to Guide":"Привязать к руководству","Snap to Line":"Привязка к линии","Snap to Point":"Привязка к точке","Snap to Segment":"Привязка к сегменту",texture:"текстура",thickness:"толщина","Toggle Group Visibility":"Переключить видимость группы","Un-chain all Group's Elements and remove Group":"Удалить цепочку элементов группы и удалить группу","Un-chain Element from Group":"Unchain Element из группы","Undo (CTRL-Z)":"Отменить действие (CTRL-Z)",Unselect:"Снять выделене",Vertical:"вертикальный",width:"ширина","Would you want to start a new Project?":"Начать новый проект?","Zoom in":"Приблизить","Zoom out":"Отдалить"}},1451:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"+ Add Horizontal Giude":"+ Aggiungi Guida Orizzontale","+ Add Vertical Giude":"+ Aggiungi Guida Verticale","2D View":"Vista 2D","3D First Person":"3D Prima persona","3D View":"Vista 3D",Altitude:"Quota",altitude:"Quota",Areas:"Aree",Cancel:"Annulla",Catalog:"Catalogo","Chain selected Elements to Group":"Collega l'Elemento selzionato al Gruppo",Circular:"Circolare",color:"colore","Configure layer":"Configura livello","Configure project":"Configura progetto",Confirm:"Conferma",Copy:"Copia","Delete group and all Elements":"Elimina Gruppo e tutti i suoi Elementi","Delete layer":"Elimina livello",Delete:"Elimina","Elements on layer {0}":"Elementi nel livello {0}",Elements:"Elementi","Get Screenshot":"Cattura uno screenshot","Group [{0}]":"Gruppo [{0}]","Group's Barycenter":"Baricentro del Gruppo","Group's Elements":"Elementi del Gruppo",Groups:"Gruppi",Guides:"Guide",height:"Altezza",Holes:"Buchi",Horizontal:"Orizzontale",Items:"Oggetti","Last Selected":"Ultimi Selezionati","Layer config":"Configurazione livello",Layer:"Livello",Layers:"Livelli",Length:"Lunghezza",Lines:"Linee","Load project":"Carica progetto","Mouse X Coordinate":"Coordinata X del Mouse","Mouse Y Coordinate":"Coordinata Y del Mouse",Name:"Nome","New Empty Group":"Crea Gruppo Vuoto","New Group from selected":"Crea Gruppo dai selezionati","New layer":"Nuovo livello","New project":"Nuovo progetto",opacity:"Opacità","Open catalog":"Apri catalogo",order:"Ordine",Pan:"Muovi",Paste:"Incolla","Project config":"Configurazione progetto","Properties: [{0}] {1}":"Proprietà: [{0}] {1}",Prototype:"Prototipo",Reset:"Annulla",Rotation:"Rotazione","Save project":"Salva progetto",Save:"Salva","Scene Zoom Level":"Livello di Zoom della Scena","Search Element":"Cerca Elemento","Snap to Grid":"Snap alla Griglia","Snap to Guide":"Snap alla Guida","Snap to Line":"Snap alla Linea","Snap to Point":"Snap al Punto","Snap to Segment":"Snap al Segmento",texture:"texture",thickness:"spessore","Toggle Group Visibility":"Varia la visibilità del Gruppo","Un-chain all Group's Elements and remove Group":"Elimina il Gruppo e scollega tutti gli Elementi appartenenti","Un-chain Element from Group":"Scollega l'Elemento dal Gruppo","Undo (CTRL-Z)":"Annulla (CTRL-Z)",Unselect:"Deseleziona",Vertical:"Verticale",width:"Larghezza","Would you want to start a new Project?":"Vuoi iniziare un nuovo progetto?","Zoom in":"Ingrandisci","Zoom out":"Riduci"}},1452:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"+ Add Horizontal Giude":"+ Add Horizontal Giude","+ Add Vertical Giude":"+ Add Vertical Giude","2D View":"2D View","3D First Person":"3D First Person","3D View":"3D View",altitude:"altitude",Altitude:"Altitude",Areas:"Areas",Cancel:"Cancel",Catalog:"Catalog","Chain selected Elements to Group":"Chain selected Elements to Group",Circular:"Circular",color:"color","Configure layer":"Configure layer","Configure project":"Configure project",Confirm:"Confirm",Copy:"Copy","Delete group and all Elements":"Delete group and all Elements","Delete layer":"Delete layer",Delete:"Delete","Elements on layer {0}":"Elements on layer {0}",Elements:"Elements","Get Screenshot":"Get Screenshot","Group [{0}]":"Group [{0}]","Group's Barycenter":"Group's Barycenter","Group's Elements":"Group's Elements",Groups:"Groups",Guides:"Guides",height:"height",Holes:"Holes",Horizontal:"Horizontal",Items:"Items","Last Selected":"Last Selected","Layer config":"Layer config",Layer:"Layer",Layers:"Layers",Length:"Length",Lines:"Lines","Load project":"Load project","Mouse X Coordinate":"Mouse X Coordinate","Mouse Y Coordinate":"Mouse Y Coordinate",Name:"Name","New Empty Group":"New Empty Group","New Group from selected":"New Group from selected","New layer":"New layer","New project":"New project",opacity:"opacity","Open catalog":"Open catalog",order:"order",Pan:"Pan",Paste:"Paste","Project config":"Project config","Properties: [{0}] {1}":"Properties: [{0}] {1}",Prototype:"Prototype",Reset:"Reset",Rotation:"Rotation","Save project":"Save project",Save:"Save","Scene Zoom Level":"Scene Zoom Level","Search Element":"Search Element","Snap to Grid":"Snap to Grid","Snap to Guide":"Snap to Guide","Snap to Line":"Snap to Line","Snap to Point":"Snap to Point","Snap to Segment":"Snap to Segment",texture:"texture",thickness:"thickness","Toggle Group Visibility":"Toggle Group Visibility","Un-chain all Group's Elements and remove Group":"Un-chain all Group's Elements and remove Group","Un-chain Element from Group":"Un-chain Element from Group","Undo (CTRL-Z)":"Undo (CTRL-Z)",Unselect:"Unselect",Vertical:"Vertical",width:"width","Would you want to start a new Project?":"Would you want to start a new Project?","Zoom in":"Zoom in","Zoom out":"Zoom out"}},1453:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.value,n=(e.onUpdate,e.configs);e.sourceElement,e.internalState,e.state;return r.default.createElement("table",{className:"PropertyReadOnly",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,n.label)),r.default.createElement("td",null,r.default.createElement("div",null,t)))))}s.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},1454:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;a(n(0));var r=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){e.value,e.onUpdate,e.configs,e.sourceElement,e.internalState,e.state;return null}o.propTypes={value:r.default.any.isRequired,onUpdate:r.default.func.isRequired,configs:r.default.object.isRequired,sourceElement:r.default.object,internalState:r.default.object,state:r.default.object.isRequired}},1455:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}var s={margin:0};function u(e){var t=e.value,n=e.onUpdate,a=e.configs,l=e.sourceElement,u=e.internalState,d=e.state;return r.default.createElement("table",{className:"PropertyCheckbox",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,a.label)),r.default.createElement("td",null,r.default.createElement("input",{style:s,type:"checkbox",checked:t,onChange:function(e){return function(e){return a.hook?a.hook(e,l,u,d).then(function(e){return n(e)}):n(e)}(!t)}})))))}u.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},1456:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.value,n=e.onUpdate,a=e.configs,l=e.sourceElement,s=e.internalState,u=e.state;return r.default.createElement("table",{className:"PropertyToggle",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,a.label)),r.default.createElement("td",null,r.default.createElement(o.Button,{onClick:function(e){return function(e){return a.hook?a.hook(e,l,s,u).then(function(e){return n(e)}):n(e)}(!t)},size:"small"},a.actionName)))))}s.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},1490:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.value,n=e.onUpdate,a=e.onValid,l=e.configs,s=e.sourceElement,u=e.internalState,d=e.state;return r.default.createElement("table",{className:"PropertyNumber",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,l.label)),r.default.createElement("td",null,r.default.createElement(o.FormNumberInput,{value:t,onChange:function(e){return function(e){var t=parseFloat(e);return isNaN(t)&&(t=0),l.hook?l.hook(t,s,u,d).then(function(e){return n(e)}):n(t)}(e.target.value)},onValid:a,min:l.min,max:l.max})))))}s.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,onValid:a.default.func,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},1491:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=d;var a=u(n(0)),o=u(n(2)),i=n(7),l=n(13),s=u(n(22));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=e.value,n=e.onUpdate,o=e.configs,u=e.sourceElement,d=e.internalState,c=e.state;return a.default.createElement("table",{className:"PropertyEnum",style:s.default.tableStyle},a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",{style:s.default.firstTdStyle},a.default.createElement(l.FormLabel,null,o.label)),a.default.createElement("td",null,a.default.createElement(l.FormSelect,{value:t,onChange:function(e){return function(e){return o.hook?o.hook(e,u,d,c).then(function(e){return n(e)}):n(e)}(e.target.value)}},(0,i.Seq)(o.values).entrySeq().map(function(e){var t=r(e,2),n=t[0],o=t[1];return a.default.createElement("option",{key:n,value:n},o)}))))))}d.propTypes={value:o.default.any.isRequired,onUpdate:o.default.func.isRequired,configs:o.default.object.isRequired,sourceElement:o.default.object,internalState:o.default.object,state:o.default.object.isRequired}},1492:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return a.default.createElement(o.default,r({type:"submit",style:s,styleHover:u},n),t)};var a=l(n(0)),o=l(n(64)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5));function l(e){return e&&e.__esModule?e:{default:e}}var s={borderColor:"#415375",backgroundColor:"#415375",color:i.COLORS.white},u={borderColor:"#1f3149",backgroundColor:"#1f3149",color:i.COLORS.white}},1563:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["value","onChange"]);return a.default.createElement("div",null,a.default.createElement("div",{style:s},a.default.createElement(o.default,r({type:"range",style:u,onChange:n,value:t},l))),a.default.createElement("div",{style:d},a.default.createElement(i.default,{value:t,onChange:n,style:c})))};var a=l(n(0)),o=l(n(1562)),i=l(n(63));function l(e){return e&&e.__esModule?e:{default:e}}var s={display:"inline-block",width:"80%",marginRight:"5%"},u={display:"block",width:"100%",height:"30px"},d={display:"inline-block",width:"15%",float:"right"},c={height:"34px",textAlign:"center"}},1564:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","style"]);return a.default.createElement("select",r({type:"text",style:r({},i,n)},o),t)};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5));var i={display:"block",width:"100%",padding:"0px 4px",fontSize:"13px",color:o.PRIMARY_COLOR.input,backgroundColor:o.COLORS.white,backgroundImage:"none",border:"1px solid rgba(0,0,0,.15)",outline:"none",borderRadius:"0px",height:"30px",WebkitAppearance:"none",WebkitBorderRadius:"0px",background:"url(\"data:image/svg+xml;utf8,\") #fff",backgroundPosition:"100% 50%",backgroundRepeat:"no-repeat"}},167:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;ta&&this.setState({showedValue:a});var x=g.test(this.state.showedValue)?this.state.showedValue:parseFloat(this.state.showedValue).toFixed(o),w=parseFloat(this.props.value).toFixed(o)!==parseFloat(this.state.showedValue).toFixed(o),M=function(t){if(t.stopPropagation(),e.state.valid){var n=""!==e.state.showedValue&&"-"!==e.state.showedValue?parseFloat(e.state.showedValue):0;e.setState({showedValue:n}),l({target:{value:n}})}};return i.default.createElement("div",{style:{position:"relative"}},i.default.createElement("input",{type:"text",value:x,style:v,onChange:function(t){var n=g.test(t.nativeEvent.target.value);n?(e.setState({showedValue:t.nativeEvent.target.value}),c&&c(t.nativeEvent)):f&&f(t.nativeEvent),e.setState({valid:n})},onFocus:function(t){return e.setState({focus:!0})},onBlur:function(t){return e.setState({focus:!1})},onKeyDown:function(e){var t=e.keyCode||e.which;t!=d.KEYBOARD_BUTTON_CODE.ENTER&&t!=d.KEYBOARD_BUTTON_CODE.TAB||!w||M(e)},placeholder:y}),i.default.createElement("div",{onClick:function(e){w&&M(e)},title:this.context.translator.t("Confirm"),style:r({},h,{visibility:w?"visible":"hidden",opacity:w?"1":"0"})},i.default.createElement(u.MdUpdate,{style:{width:"100%",height:"100%",padding:"0.2em",color:"#FFF"}})))}}]),t}();t.default=f,f.propTypes={value:l.default.oneOfType([l.default.number,l.default.string]),style:l.default.object,onChange:l.default.func.isRequired,onValid:l.default.func,onInvalid:l.default.func,min:l.default.number,max:l.default.number,precision:l.default.number,placeholder:l.default.string},f.contextTypes={translator:l.default.object.isRequired},f.defaultProps={value:0,style:{},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,precision:3}},168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","style"]);return a.default.createElement("h1",r({style:r({},l,o)},i),t)}s.propsType={style:o.default.object}},169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:o.UNIT_CENTIMETER;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elements={},this.categories={root:{name:"root",label:"/",elements:[],categories:[]}},this.propertyTypes={},this.unit=t,this.registerMultiplePropertyType([["color",a.PropertyColor,a.PropertyColor],["enum",a.PropertyEnum,a.PropertyEnum],["string",a.PropertyString,a.PropertyString],["number",a.PropertyNumber,a.PropertyNumber],["length-measure",a.PropertyLengthMeasure,a.PropertyLengthMeasure],["toggle",a.PropertyToggle,a.PropertyToggle],["checkbox",a.PropertyCheckbox,a.PropertyCheckbox],["hidden",a.PropertyHidden,a.PropertyHidden],["read-only",a.PropertyReadOnly,a.PropertyReadOnly]])}return r(e,[{key:"getElement",value:function(e){if(this.hasElement(e))return this.elements[e];throw new Error("Element "+e+" does not exist in catalog")}},{key:"getCategory",value:function(e){if(this.hasCategory(e))return this.categories[e];throw new Error("Category "+e+" does not exist in catalog")}},{key:"getPropertyType",value:function(e){if(this.propertyTypes.hasOwnProperty(e))return this.propertyTypes[e];throw new Error("Element "+e+" does not exist in catalog")}},{key:"registerElement",value:function(e){e.properties=e.properties||{},this.validateElement(e)&&(this.elements[e.name]=e,this.categories.root.elements.push(this.elements[e.name]))}},{key:"registerMultipleElements",value:function(e){var t=this;e.forEach(function(e){return t.registerElement(e)})}},{key:"registerPropertyType",value:function(e,t,n){this.propertyTypes[e]={type:e,Viewer:t,Editor:n}}},{key:"registerMultiplePropertyType",value:function(e){var t=this;e.forEach(function(e){return t.registerPropertyType.apply(t,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);tn.width.baseVal.value&&(n=t[r]);var a=new XMLSerializer,o=new Image,l=document.createElement("canvas"),s=l.getContext("2d"),u=document.createAttribute("height");u.value=n.height.baseVal.value,l.setAttributeNode(u);var d=document.createAttribute("width");d.value=n.width.baseVal.value,l.setAttributeNode(d),s.fillStyle="white",s.fillRect(0,0,l.width,l.height),o.crossOrigin="anonymous",o. src="data:image/svg+xml;utf8,"+a.serializeToString(n),o.onload=function(){s.drawImage(o,0,0,n.width.baseVal.value,n.height.baseVal.value),i(l.toDataURL())}}},r.default.createElement(o.default,null)):null}b.propTypes={mode:a.default.string.isRequired},b.contextTypes={translator:a.default.object.isRequired}},183:function(e,t,n){e.exports=n.p+"catalog/items/wardrobe/wardrobe.png"},184:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:204}),i=new r.MeshLambertMaterial({color:12632256}),l=new r.MeshLambertMaterial({color:0}),s=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(1,.05,1),i);e.add(t);var n=new r.Mesh(new r.BoxGeometry(1,2,.05),i);n.position.set(0,1.025,.475),e.add(n);var a=new r.Mesh(new r.BoxGeometry(1,2,.05),i);a.position.set(0,1.025,-.475),e.add(a);var s=new r.Mesh(new r.BoxGeometry(.05,2,1),i);s.position.set(.475,1.025,0),e.add(s);var u=new r.Mesh(new r.BoxGeometry(1,.05,1),i);u.position.set(0,2.05,0),e.add(u);var d=new r.Mesh(new r.BoxGeometry(.9,.4,.05),i);d.position.set(0,1.025,0),e.add(d);var c=new r.Mesh(new r.BoxGeometry(.9,.05,.5),i);c.position.set(0,.8,.225),e.add(c);var p=new r.Mesh(new r.BoxGeometry(.9,.05,.5),i);p.position.set(0,1.25,-.225),e.add(p);var h=new r.Mesh(new r.BoxGeometry(.05,.77,.9),o);h.position.set(-.475,1.64,0),e.add(h);var f=new r.Mesh(new r.BoxGeometry(.05,.44,.435),o);f.position.set(-.475,1.035,.23),e.add(f);var m=new r.Mesh(new r.BoxGeometry(.05,.77,.9),o);m.position.set(-.475,.41,0),e.add(m);var y=new r.Mesh(new r.BoxGeometry(.05,.44,.435),o);y.position.set(-.475,1.015,-.23),e.add(y);for(var v=void 0,g=1.64;g>=.4;g-=1.14){v=1.64===g?-.35:.35;var x=new r.Mesh(new r.CylinderGeometry(.025,.03,.02,32,32),l);x.rotation.x=.5*Math.PI,x.rotation.z=.5*Math.PI,x.position.set(-.5,g,v),e.add(x);var w=new r.Mesh(new r.CylinderGeometry(.02,.022,.015,32,32),i);w.rotation.x=.5*Math.PI,w.rotation.z=.5*Math.PI,w.position.set(-.515,g,v),e.add(w);var M=new r.Mesh(new r.BoxGeometry(.01,.015,.005,32,32),l);M.position.set(-.518,g,v),e.add(M)}for(var q=-.47;q<=.47;q+=.94)for(var _=.47;_>=-.47;_-=.94){var b=new r.Mesh(new r.CylinderGeometry(.02,.04,.1,4),i);b.position.set(q,-.05,_),b.rotation.y=.25*Math.PI,b.rotation.z=Math.PI,e.add(b)}return e}(),u=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(1,.05,1),i);e.add(t);var n=new r.Mesh(new r.BoxGeometry(1,2,.05),i);n.position.set(0,1.025,.475),e.add(n);var a=new r.Mesh(new r.BoxGeometry(1,2,.05),i);a.position.set(0,1.025,-.475),e.add(a);var l=new r.Mesh(new r.BoxGeometry(.05,2,1),i);l.position.set(.475,1.025,0),e.add(l);var s=new r.Mesh(new r.BoxGeometry(1,.05,1),i);s.position.set(0,2.05,0),e.add(s);var u=new r.Mesh(new r.BoxGeometry(.9,.4,.05),i);u.position.set(0,1.025,0),e.add(u);var d=new r.Mesh(new r.BoxGeometry(.9,.05,.5),i);d.position.set(0,.8,.225),e.add(d);var c=new r.Mesh(new r.BoxGeometry(.9,.05,.5),i);c.position.set(0,1.25,-.225),e.add(c);var p=new r.Mesh(new r.BoxGeometry(.05,.77,.9),o);p.position.set(-.475,1.64,0),e.add(p);var h=new r.Mesh(new r.BoxGeometry(.05,.44,.435),o);h.position.set(-.475,1.035,.23),e.add(h);var f=new r.Mesh(new r.BoxGeometry(.05,.77,.9),o);f.position.set(-.475,.41,0),e.add(f);var m=new r.Mesh(new r.BoxGeometry(.05,.44,.435),o);m.position.set(-.475,1.015,-.23),e.add(m);for(var y=-.47;y<=.47;y+=.94)for(var v=.47;v>=-.47;v-=.94){var g=new r.Mesh(new r.CylinderGeometry(.02,.04,.1,4),i);g.position.set(y,-.05,v),g.rotation.y=.25*Math.PI,g.rotation.z=Math.PI,e.add(g)}return e}();t.default={name:"wardrobe",prototype:"items",info:{tag:["furnishings","metal"],title:"wardrobe",description:"wardrobe",image:n(183)},properties:{altitude:{label:"altitudine",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-30,-30)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:60,height:60,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(30, 30) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(s.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.z+=-10,o.position.y+=220/24+a,o.rotation.y+=-Math.PI/2,o.scale.set(60/l,220/d,60/c);var p=new r.Object3D;p.add(u.clone()),p.position.z+=-10,p.position.y+=220/24+a,p.rotation.y+=-Math.PI/2,p.scale.set(60/l,220/d,60/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},185:function(e,t,n){e.exports=n.p+"catalog/items/umbrella-stand/umbrellaStand.png"},186:function(e,t,n){e.exports=n.p+"catalog/items/umbrella-stand/bronze-texture.jpg"},187:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=(new r.TextureLoader).load(n(186)),i=new r.MeshLambertMaterial({map:o}),l=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,0),t.lineTo(.45,0),t.lineTo(.45,.7),t.lineTo(0,.7);var n=new r.Path;n.moveTo(.225,.35),n.absellipse(.225,.15,.1,.025,.025,2*Math.PI,!1),t.holes.push(n);var a=new r.ExtrudeGeometry(t,{steps:2,depth:.05,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),o=new r.Mesh(a,i);o.position.set(.05,1.2,0),o.rotation.z+=Math.PI,e.add(o);var l=new r.Mesh(a,i);l.position.set(.05,1.2,-.4),l.rotation.z+=Math.PI,e.add(l);var s=new r.Mesh(a,i);s.position.set(.05,1.2,-.4),s.rotation.z+=Math.PI,s.rotation.y+=Math.PI/2,e.add(s);var u=new r.Mesh(a,i);u.position.set(-.45,1.2,-.4),u.rotation.z+=Math.PI,u.rotation.y+=Math.PI/2,e.add(u);var d=new r.BoxGeometry(.55,.45,.05),c=new r.Mesh(d,i);return c.rotation.x+=Math.PI/2,c.position.set(-.175,.475,-.175),e.add(c),e}(),s=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,0),t.lineTo(.45,0),t.lineTo(.45,.7),t.lineTo(0,.7);var n=new r.ExtrudeGeometry(t,{steps:2,depth:.05,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),a=new r.Mesh(n,i);a.position.set(.05,1.2,0),a.rotation.z+=Math.PI,e.add(a);var o=new r.Mesh(n,i);o.position.set(.05,1.2,-.4),o.rotation.z+=Math.PI,e.add(o);var l=new r.Mesh(n,i);l.position.set(.05,1.2,-.4),l.rotation.z+=Math.PI,l.rotation.y+=Math.PI/2,e.add(l);var s=new r.Mesh(n,i);s.position.set(-.45,1.2,-.4),s.rotation.z+=Math.PI,s.rotation.y+=Math.PI/2,e.add(s);var u=new r.BoxGeometry(.55,.45,.05),d=new r.Mesh(u,i);return d.rotation.x+=Math.PI/2,d.position.set(-.175,.475,-.175),e.add(d),e}();t.default={name:"umbrella-stand",prototype:"items",info:{tag:["furnishings","metal"],title:"umbrella stand",description:"umbrella stand",image:n(185)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-15,-20)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:30,height:40,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(15, 20) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(l.clone());var i=(new r.Box3).setFromObject(o),u=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.x+=-20,o.position.z+=10,o.position.y+=-43.75+a,o.rotation.y+=-Math.PI/2,o.scale.set(30/c,70/d,40/u);var p=new r.Object3D;p.add(s.clone()),p.position.x+=-20,p.position.z+=10,p.position.y+=-43.75+a,p.rotation.y+=-Math.PI/2,p.scale.set(30/c,70/d,40/u);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},188:function(e,t,n){e.exports=n.p+"catalog/items/tv/tv.obj"},189:function(e,t,n){e.exports=n.p+"catalog/items/tv/tv.mtl"},190:function(e,t,n){e.exports=n.p+"catalog/items/tv/tv.png"},191:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=n(27),o=l(n(0)),i=l(n(52));function l(e){return e&&e.__esModule?e:{default:e}}var s=null;t.default={name:"tv",prototype:"items",info:{title:"tv",tag:["furnishing","electronics"],description:"LCD TV",image:n(190)},properties:{altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:0}}},render2D:function(e,t,n){var r=1.6,a="ft",l=.59,s="ft",u=(0,i.default)(r).from(a).to(n.unit),d=(0,i.default)(l).from(s).to(n.unit),c=e.rotation+90,p=0;Math.sin(c*Math.PI/180)<0&&(p=180);var h={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},f={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return o.default.createElement("g",{transform:"translate("+-u/2+","+-d/2+")"},o.default.createElement("rect",{key:"1",x:"0",y:"0",width:u,height:d,style:h}),o.default.createElement("line",{key:"2",x1:u/2,x2:u/2,y1:d,y2:1.5*d,style:f}),o.default.createElement("line",{key:"3",x1:.35*u,x2:u/2,y1:1.2*d,y2:1.5*d,style:f}),o.default.createElement("line",{key:"4",x1:u/2,x2:.65*u,y1:1.5*d,y2:1.2*d,style:f}),o.default.createElement("text",{key:"5",x:"0",y:"0",transform:"translate("+u/2+", "+d/2+") scale(1,-1) rotate("+p+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,o){var l=1.6,u="ft",d=.59,c="ft",p=1.05,h="ft",f=function(t){var n=(0,i.default)(l).from(u).to(o.unit),a=(0,i.default)(p).from(h).to(o.unit),s=(0,i.default)(d).from(c).to(o.unit),f=e.properties.get("altitude").get("length");if(e.selected){var m=new r.BoxHelper(t,10077179);m.material.linewidth=2,m.material.depthTest=!1,m.renderOrder=1e3,t.add(m)}t.scale.set(n/l,a/p,s/d);var y=(new r.Box3).setFromObject(t),v=[(y.max.x-y.min.x)/2+y.min.x,(y.max.y-y.min.y)/2+y.min.y,(y.max.z-y.min.z)/2+y.min.z];return t.position.x-=v[0],t.position.y-=v[1]-(y.max.y-y.min.y)/2,t.position.z-=v[2],t.position.y+=f,t.rotation.y=Math.PI,t};if(s)return Promise.resolve(f(s.clone()));var m=n(189),y=n(188);return(0,a.loadObjWithMaterial)(m,y,"").then(function(e){return f((s=e).clone())})}}},192:function(e,t,n){e.exports=n.p+"catalog/items/trash/trash.png"},193:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));t.default={name:"trash",prototype:"items",info:{tag:["furnishings"],title:"Trash",description:"Trash",image:n(192)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;Math.sin(r*Math.PI/180)<0&&(o=180);var i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},l={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",null,a.default.createElement("circle",{key:"1",cx:"0",cy:"0",r:20,style:i}),a.default.createElement("line",{key:"2",x1:0,x2:0,y1:20,y2:30,style:l}),a.default.createElement("line",{key:"3",x1:-5,x2:0,y1:24,y2:30,style:l}),a.default.createElement("line",{key:"4",x1:0,x2:5,y1:30,y2:24,style:l}),a.default.createElement("text",{key:"5",cx:"0",cy:"0",transform:"scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.MeshLambertMaterial({color:14540253});o.side=r.DoubleSide;var i=new r.Object3D,l=new r.CylinderGeometry(.25,.25,1e-4,80),s=new r.Mesh(l,o);i.add(s);var u=new r.CylinderGeometry(.3,.25,.002,80,80,!0),d=new r.Mesh(u,o);d.position.set(0,.001,0),s.add(d);var c=(new r.Box3).setFromObject(i),p=Math.abs(c.max.x-c.min.x),h=Math.abs(c.max.y-c.min.y),f=Math.abs(c.max.z-c.min.z);if(e.selected){var m=new r.BoxHelper(i,10077179);m.material.linewidth=5,m.renderOrder=1e3,m.material.depthTest=!1,i.add(m)}return i.position.y+=2.5+a,i.scale.set(30/p,40/h,30/f),Promise.resolve(i)}}},194:function(e,t,n){e.exports=n.p+"catalog/items/three-phase-panel/threePhasePanel.png"},195:function(e,t,n){e.exports=n.p+"catalog/items/three-phase-panel/PanelTexture.png"},196:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:11184810});o.side=r.DoubleSide;var i=new r.MeshPhongMaterial({color:11141120}),l=new r.MeshPhongMaterial({color:170}),s=new r.MeshLambertMaterial({color:0});s.side=r.DoubleSide;var u=(new r.TextureLoader).load(n(195)),d=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,.1),t.lineTo(0,.5),t.quadraticCurveTo(0,.6,.1,.6),t.lineTo(.79-.1,.6),t.quadraticCurveTo(.79,.6,.79,.5),t.lineTo(.79,.1),t.quadraticCurveTo(.79,0,.79-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);var n={steps:2,depth:.2,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},a=new r.BoxGeometry(1,1.4,.1),d=new r.Mesh(a,o);d.position.set(.5,1.5,.05),e.add(d);var c=new r.PlaneGeometry(.5,.5),p=new r.Mesh(c,new r.MeshPhongMaterial({map:u,transparent:!0}));p.position.set(.5,1.85,.31),e.add(p);var h=new r.ExtrudeGeometry(t,n),f=new r.Mesh(h,o);f.position.set(.1,1.55,.1),e.add(f);var m=new r.BoxGeometry(.86,.38,.2),y=new r.Mesh(m,o);y.position.set(.495,1.85,.2),e.add(y);var v=new r.ExtrudeGeometry(t,n),g=new r.Mesh(v,o);g.position.set(.1,.85,.1),g.scale.set(1,1.2,.6),e.add(g);var x=new r.BoxGeometry(.86,.51,.1),w=new r.Mesh(x,o);w.position.set(.495,1.225,.15),e.add(w);var M=new r.BoxGeometry(.3,.5,.1),q=new r.Mesh(M,o);q.position.set(.68,1.2,.25),e.add(q);var _=new r.Mesh(M,o);_.position.set(.32,1.2,.25),e.add(_);var b=new r.BoxGeometry(.35,.6,.1),E=new r.Mesh(b,o);E.position.set(.68,1.2,.2),e.add(E);var O=new r.Mesh(b,o);O.position.set(.32,1.2,.2),e.add(O);var I=new r.BoxGeometry(.15,.15,.01),P=new r.Mesh(I,i);P.position.set(.32,1.1,.3),e.add(P);var T=new r.Mesh(I,l);T.position.set(.68,1.1,.3),e.add(T);var G=new r.CylinderGeometry(.05,.05,.05,16,16),S=new r.Mesh(G,i);S.position.set(.32,1.1,.3),S.rotation.x=Math.PI/2,e.add(S);var D=new r.SphereGeometry(.07,16,16),R=new r.Mesh(D,i);R.position.set(.32,1.1,.35),R.rotation.x=Math.PI/2,R.scale.set(1,.5,1),e.add(R);var A=new r.CylinderGeometry(.01,.01,.065,16,16),L=new r.Mesh(A,i);L.position.set(.32,1.15,.32),L.rotation.x=Math.PI/2,L.rotation.z=Math.PI/2,e.add(L);var C=new r.Mesh(G,l);C.position.set(.68,1.1,.3),C.rotation.x=Math.PI/2,e.add(C);var k=new r.Mesh(D,l);k.position.set(.68,1.1,.35),k.rotation.x=Math.PI/2,k.scale.set(1,.5,1),e.add(k);var j=new r.Mesh(A,l);j.position.set(.68,1.15,.32),j.rotation.x=Math.PI/2,j.rotation.z=Math.PI/2,e.add(j);var N=new r.CylinderGeometry(.05,.05,.025,16,16),z=new r.Mesh(N,o);z.position.set(.32,1.3,.3),z.rotation.x=Math.PI/2,e.add(z);var B=new r.Mesh(N,o);B.position.set(.68,1.3,.3),B.rotation.x=Math.PI/2,e.add(B);var U=new r.CylinderGeometry(.051,.051,.05,16,16,!0),V=new r.Mesh(U,s);V.position.set(.32,1.3,.31),V.rotation.x=Math.PI/2,e.add(V);var F=new r.Mesh(U,s);F.position.set(.68,1.3,.31),F.rotation.x=Math.PI/2,e.add(F);var H=new r.BoxGeometry(.1,.02,.02),W=new r.Mesh(H,s);W.position.set(.32,1.3,.32),e.add(W);var Y=new r.Mesh(H,s);Y.position.set(.68,1.3,.32),e.add(Y);var Z=new r.CylinderGeometry(.015,.015,.1,16,16),X=new r.Mesh(Z,s);X.rotation.x+=Math.PI/2,X.position.set(.91,2.05,.2),e.add(X);var J=new r.Mesh(Z,s);J.rotation.x+=Math.PI/2,J.position.set(.91,1.65,.2),e.add(J);var K=new r.Mesh(Z,s);K.rotation.x+=Math.PI/2,K.position.set(.08,2.05,.2),e.add(K);var Q=new r.Mesh(Z,s);Q.rotation.x+=Math.PI/2,Q.position.set(.08,1.65,.2),e.add(Q);var $=new r.CylinderGeometry(.018,.018,.22,16,16,!0),ee=new r.Mesh($,o);ee.rotation.x+=Math.PI/2,ee.position.set(.91,2.05,.18),e.add(ee);var te=new r.Mesh($,o);te.rotation.x+=Math.PI/2,te.position.set(.91,1.65,.18),e.add(te);var ne=new r.Mesh($,o);ne.rotation.x+=Math.PI/2,ne.position.set(.08,2.05,.18),e.add(ne);var re=new r.Mesh($,o);re.rotation.x+=Math.PI/2,re.position.set(.08,1.65,.18),e.add(re);var ae=new r.Mesh(Z,s);ae.rotation.x+=Math.PI/2,ae.position.set(.91,1.5,.16),e.add(ae);var oe=new r.Mesh(Z,s);oe.rotation.x+=Math.PI/2,oe.position.set(.91,.95,.16),e.add(oe);var ie=new r.Mesh(Z,s);ie.rotation.x+=Math.PI/2,ie.position.set(.08,1.5,.16),e.add(ie);var le=new r.Mesh(Z,s);le.rotation.x+=Math.PI/2,le.position.set(.08,.95,.16),e.add(le);var se=new r.CylinderGeometry(.018,.018,.1,16,16,!0),ue=new r.Mesh(se,o);ue.rotation.x+=Math.PI/2,ue.position.set(.91,1.5,.16),e.add(ue);var de=new r.Mesh(se,o);de.rotation.x+=Math.PI/2,de.position.set(.91,.95,.16),e.add(de);var ce=new r.Mesh(se,o);ce.rotation.x+=Math.PI/2,ce.position.set(.08,1.5,.16),e.add(ce);var pe=new r.Mesh(se,o);return pe.rotation.x+=Math.PI/2,pe.position.set(.08,.95,.16),e.add(pe),e}(),c=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,.1),t.lineTo(0,.5),t.quadraticCurveTo(0,.6,.1,.6),t.lineTo(.79-.1,.6),t.quadraticCurveTo(.79,.6,.79,.5),t.lineTo(.79,.1),t.quadraticCurveTo(.79,0,.79-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);var n={steps:2,depth:.2,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},a=new r.BoxGeometry(1,1.4,.1),d=new r.Mesh(a,o);d.position.set(.5,1.5,.05),e.add(d);var c=new r.PlaneGeometry(.5,.5),p=new r.Mesh(c,new r.MeshPhongMaterial({map:u,transparent:!0}));p.position.set(.5,1.85,.31),e.add(p);var h=new r.ExtrudeGeometry(t,n),f=new r.Mesh(h,o);f.position.set(.1,1.55,.1),e.add(f);var m=new r.BoxGeometry(.86,.38,.2),y=new r.Mesh(m,o);y.position.set(.495,1.85,.2),e.add(y);var v=new r.ExtrudeGeometry(t,n),g=new r.Mesh(v,o);g.position.set(.1,.85,.1),g.scale.set(1,1.2,.6),e.add(g);var x=new r.BoxGeometry(.86,.51,.1),w=new r.Mesh(x,o);w.position.set(.495,1.225,.15),e.add(w);var M=new r.BoxGeometry(.3,.5,.1),q=new r.Mesh(M,o);q.position.set(.68,1.2,.25),e.add(q);var _=new r.Mesh(M,o);_.position.set(.32,1.2,.25),e.add(_);var b=new r.BoxGeometry(.35,.6,.1),E=new r.Mesh(b,o);E.position.set(.68,1.2,.2),e.add(E);var O=new r.Mesh(b,o);O.position.set(.32,1.2,.2),e.add(O);var I=new r.BoxGeometry(.15,.15,.01),P=new r.Mesh(I,i);P.position.set(.32,1.1,.3),e.add(P);var T=new r.Mesh(I,l);T.position.set(.68,1.1,.3),e.add(T);var G=new r.CylinderGeometry(.05,.05,.05,16,16),S=new r.Mesh(G,i);S.position.set(.32,1.1,.3),S.rotation.x=Math.PI/2,e.add(S);var D=new r.SphereGeometry(.07,16,16),R=new r.Mesh(D,i);R.position.set(.32,1.1,.35),R.rotation.x=Math.PI/2,R.scale.set(1,.5,1),e.add(R);var A=new r.CylinderGeometry(.01,.01,.065,16,16),L=new r.Mesh(A,i);L.position.set(.32,1.15,.32),L.rotation.x=Math.PI/2,L.rotation.z=Math.PI/2,e.add(L);var C=new r.Mesh(G,l);C.position.set(.68,1.1,.3),C.rotation.x=Math.PI/2,e.add(C);var k=new r.Mesh(D,l);k.position.set(.68,1.1,.35),k.rotation.x=Math.PI/2,k.scale.set(1,.5,1),e.add(k);var j=new r.Mesh(A,l);j.position.set(.68,1.15,.32),j.rotation.x=Math.PI/2,j.rotation.z=Math.PI/2,e.add(j);var N=new r.CylinderGeometry(.05,.05,.025,16,16),z=new r.Mesh(N,o);z.position.set(.32,1.3,.3),z.rotation.x=Math.PI/2,e.add(z);var B=new r.Mesh(N,o);B.position.set(.68,1.3,.3),B.rotation.x=Math.PI/2,e.add(B);var U=new r.CylinderGeometry(.051,.051,.05,16,16,!0),V=new r.Mesh(U,s);V.position.set(.32,1.3,.31),V.rotation.x=Math.PI/2,e.add(V);var F=new r.Mesh(U,s);F.position.set(.68,1.3,.31),F.rotation.x=Math.PI/2,e.add(F);var H=new r.BoxGeometry(.1,.02,.02),W=new r.Mesh(H,s);W.position.set(.32,1.3,.32),e.add(W);var Y=new r.Mesh(H,s);return Y.position.set(.68,1.3,.32),e.add(Y),e}(),p=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,.1),t.lineTo(0,.5),t.quadraticCurveTo(0,.6,.1,.6),t.lineTo(.79-.1,.6),t.quadraticCurveTo(.79,.6,.79,.5),t.lineTo(.79,.1),t.quadraticCurveTo(.79,0,.79-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);var n={steps:2,depth:.2,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},a=new r.BoxGeometry(1,1.4,.1),u=new r.Mesh(a,o);u.position.set(.5,1.5,.05),e.add(u);var d=new r.ExtrudeGeometry(t,n),c=new r.Mesh(d,o);c.position.set(.1,1.55,.1),e.add(c);var p=new r.BoxGeometry(.86,.38,.2),h=new r.Mesh(p,o);h.position.set(.495,1.85,.2),e.add(h);var f=new r.ExtrudeGeometry(t,n),m=new r.Mesh(f,o);m.position.set(.1,.85,.1),m.scale.set(1,1.2,.6),e.add(m);var y=new r.BoxGeometry(.86,.51,.1),v=new r.Mesh(y,o);v.position.set(.495,1.225,.15),e.add(v);var g=new r.BoxGeometry(.3,.5,.1),x=new r.Mesh(g,o);x.position.set(.68,1.2,.25),e.add(x);var w=new r.Mesh(g,o);w.position.set(.32,1.2,.25),e.add(w);var M=new r.BoxGeometry(.35,.6,.1),q=new r.Mesh(M,o);q.position.set(.68,1.2,.2),e.add(q);var _=new r.Mesh(M,o);_.position.set(.32,1.2,.2),e.add(_);var b=new r.BoxGeometry(.15,.15,.01),E=new r.Mesh(b,i);E.position.set(.32,1.1,.3),e.add(E);var O=new r.Mesh(b,l);O.position.set(.68,1.1,.3),e.add(O);var I=new r.CylinderGeometry(.05,.05,.025,8,8),P=new r.Mesh(I,o);P.position.set(.32,1.3,.3),P.rotation.x=Math.PI/2,e.add(P);var T=new r.Mesh(I,o);T.position.set(.68,1.3,.3),T.rotation.x=Math.PI/2,e.add(T);var G=new r.CylinderGeometry(.051,.051,.05,8,8,!0),S=new r.Mesh(G,s);S.position.set(.32,1.3,.31),S.rotation.x=Math.PI/2,e.add(S);var D=new r.Mesh(G,s);D.position.set(.68,1.3,.31),D.rotation.x=Math.PI/2,e.add(D);var R=new r.BoxGeometry(.1,.02,.02),A=new r.Mesh(R,s);A.position.set(.32,1.3,.32),e.add(A);var L=new r.Mesh(R,s);return L.position.set(.68,1.3,.32),e.add(L),e}();t.default={name:"three- phase panel",prototype:"items",info:{tag:["furnishings","metal"],title:"three-phase panel",description:"electric panel",image:n(194)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-20,-10)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:40,height:20,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#ff0000"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(20, 10) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(d.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),u=Math.abs(i.max.z-i.min.z);o.scale.set(40/l,50/s,20/u),o.position.y+=-25+a,o.position.x+=-20,o.position.z+=-10;var h=new r.Object3D;h.add(c.clone()),h.scale.set(40/l,50/s,20/u),h.position.y+=-25+a,h.position.x+=-20,h.position.z+=-10;var f=new r.Object3D;f.add(p.clone()),f.scale.set(40/l,50/s,20/u),f.position.y+=-25+a,f.position.x+=-20,f.position.z+=-10;var m=new r.LOD;if(m.addLevel(o,100),m.addLevel(h,300),m.addLevel(f,700),m.updateMatrix(),m.matrixAutoUpdate=!1,e.selected){var y=new r.BoxHelper(m,10077179);y.material.linewidth=5,y.renderOrder=1e3,y.material.depthTest=!1,m.add(y)}return Promise.resolve(m)}}},197:function(e,t,n){e.exports=n.p+"catalog/items/text-3d/img.png"},198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.HELVETIKER={glyphs:{"ο":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 "},S:{x_min:0,x_max:788,ha:890,o:"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 "},"¦":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"/":{x_min:183.25,x_max:608.328125,ha:792,o:"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 "},"Τ":{x_min:-.4375,x_max:777.453125,ha:839,o:"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 "},y:{x_min:0,x_max:684.78125,ha:771,o:"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 "},"Π":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 "},"ΐ":{x_min:-111,x_max:339,ha:361,o:"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 "},g:{x_min:0,x_max:686,ha:838,o:"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 "},"²":{x_min:0,x_max:442,ha:539,o:"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 "},"–":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},"Κ":{x_min:0,x_max:819.5625,ha:893,o:"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},"ƒ":{x_min:-46.265625,x_max:392,ha:513,o:"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 "},e:{x_min:0,x_max:714,ha:813,o:"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 "},"ό":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 "},J:{x_min:0,x_max:588,ha:699,o:"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 "},"»":{x_min:-1,x_max:503,ha:601,o:"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 "},"©":{x_min:-3,x_max:1008,ha:1106,o:"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 "},"ώ":{x_min:0,x_max:922,ha:1030,o:"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 "},"^":{x_min:193.0625,x_max:598.609375,ha:792,o:"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 "},"«":{x_min:0,x_max:507.203125,ha:604,o:"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 "},D:{x_min:0,x_max:828,ha:935,o:"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 "},"∙":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"ÿ":{x_min:0,x_max:47,ha:125,o:"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 "},w:{x_min:0,x_max:1009.71875,ha:1100,o:"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 "},$:{x_min:0,x_max:700,ha:793,o:"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 "},"\\":{x_min:-.015625,x_max:425.0625,ha:522,o:"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 "},"µ":{x_min:0,x_max:697.21875,ha:747,o:"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 "},"Ι":{x_min:42,x_max:181,ha:297,o:"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 "},"Ύ":{x_min:0,x_max:1144.5,ha:1214,o:"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"’":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"Ν":{x_min:0,x_max:801,ha:915,o:"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 "},"-":{x_min:8.71875,x_max:350.390625,ha:478,o:"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 "},Q:{x_min:0,x_max:968,ha:1072,o:"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 "},"ς":{x_min:1,x_max:676.28125,ha:740,o:"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 "},M:{x_min:0,x_max:954,ha:1067,o:"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 "},"Ψ":{x_min:0,x_max:1006,ha:1094,o:"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 "},C:{x_min:0,x_max:886,ha:944,o:"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 "},"!":{x_min:0,x_max:138,ha:236,o:"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 "},"{":{x_min:0,x_max:480.5625,ha:578,o:"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 "},X:{x_min:-.015625,x_max:854.15625,ha:940,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 "},"#":{x_min:0,x_max:963.890625,ha:1061,o:"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 "},"ι":{x_min:42,x_max:284,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 "},"Ά":{x_min:0,x_max:906.953125,ha:982,o:"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},")":{x_min:0,x_max:318,ha:415,o:"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 "},"ε":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 "},"Δ":{x_min:0,x_max:952.78125,ha:1028,o:"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 "},"}":{x_min:0,x_max:481,ha:578,o:"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 "},"‰":{x_min:-3,x_max:1672,ha:1821,o:"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 "},a:{x_min:0,x_max:698.609375,ha:794,o:"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 "},"—":{x_min:0,x_max:941.671875,ha:1039,o:"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 "},"=":{x_min:8.71875,x_max:780.953125,ha:792,o:"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 "},N:{x_min:0,x_max:801,ha:914,o:"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 "},"ρ":{x_min:0,x_max:712,ha:797,o:"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 "},2:{x_min:59,x_max:731,ha:792,o:"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 "},"¯":{x_min:0,x_max:941.671875,ha:938,o:"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 "},Z:{x_min:0,x_max:779,ha:849,o:"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 "},u:{x_min:0,x_max:617,ha:729,o:"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 "},k:{x_min:0,x_max:612.484375,ha:697,o:"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 "},"Η":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"Α":{x_min:0,x_max:906.953125,ha:985,o:"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},s:{x_min:0,x_max:604,ha:697,o:"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 "},B:{x_min:0,x_max:778,ha:876,o:"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 "},"…":{x_min:0,x_max:614,ha:708,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 "},"?":{x_min:0,x_max:607,ha:704,o:"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 "},H:{x_min:0,x_max:803,ha:915,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"ν":{x_min:0,x_max:675,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 "},c:{x_min:1,x_max:701.390625,ha:775,o:"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 "},"¶":{x_min:0,x_max:566.671875,ha:678,o:"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 "},"β":{x_min:0,x_max:660,ha:745,o:"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 "},"Μ":{x_min:0,x_max:954,ha:1068,o:"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 "},"Ό":{x_min:.109375,x_max:1120,ha:1217,o:"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ή":{x_min:0,x_max:1158,ha:1275,o:"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"•":{x_min:0,x_max:663.890625,ha:775,o:"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 "},"¥":{x_min:.1875,x_max:819.546875,ha:886,o:"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 "},"(":{x_min:0,x_max:318.0625,ha:415,o:"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 "},U:{x_min:0,x_max:796,ha:904,o:"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 "},"γ":{x_min:.5,x_max:744.953125,ha:822,o:"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 "},"α":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 "},F:{x_min:0,x_max:683.328125,ha:717,o:"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 "},"­":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},":":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"Χ":{x_min:0,x_max:854.171875,ha:935,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 "},"*":{x_min:116,x_max:674,ha:792,o:"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 "},"†":{x_min:0,x_max:777,ha:835,o:"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 "},"°":{x_min:0,x_max:347,ha:444,o:"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 "},V:{x_min:0,x_max:862.71875,ha:940,o:"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 "},"Ξ":{x_min:0,x_max:734.71875,ha:763,o:"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 "}," ":{x_min:0,x_max:0,ha:853},"Ϋ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 "},0:{x_min:73,x_max:715,ha:792,o:"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 "},"”":{x_min:0,x_max:347,ha:454,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 "},"@":{x_min:0,x_max:1260,ha:1357,o:"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 "},"Ί":{x_min:0,x_max:499,ha:613,o:"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 "},i:{x_min:14,x_max:136,ha:275,o:"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 "},"Β":{x_min:0,x_max:778,ha:877,o:"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 "},"υ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 "},"]":{x_min:0,x_max:275,ha:372,o:"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 "},m:{x_min:0,x_max:1019,ha:1128,o:"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 "},"χ":{x_min:8.328125,x_max:780.5625,ha:815,o:"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 "},8:{x_min:55,x_max:736,ha:792,o:"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 "},"ί":{x_min:42,x_max:326.71875,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 "},"Ζ":{x_min:0,x_max:779.171875,ha:850,o:"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 "},R:{x_min:0,x_max:781.953125,ha:907,o:"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 "},o:{x_min:0,x_max:713,ha:821,o:"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 "},5:{x_min:54.171875,x_max:738,ha:792,o:"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 "},7:{x_min:58.71875,x_max:730.953125,ha:792,o:"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 "},K:{x_min:0,x_max:819.46875,ha:906,o:"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},",":{x_min:0,x_max:142,ha:239,o:"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 "},d:{x_min:0,x_max:683,ha:796,o:"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 "},"¨":{x_min:-109,x_max:247,ha:232,o:"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 "},E:{x_min:0,x_max:736.109375,ha:789,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},Y:{x_min:0,x_max:820,ha:886,o:"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 "},'"':{x_min:0,x_max:299,ha:396,o:"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"‹":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"„":{x_min:0,x_max:364,ha:467,o:"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 "},"δ":{x_min:1,x_max:710,ha:810,o:"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 "},"έ":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 "},"ω":{x_min:0,x_max:922,ha:1031,o:"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 "},"´":{x_min:0,x_max:96,ha:251,o:"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"±":{x_min:11,x_max:781,ha:792,o:"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 "},"|":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"ϋ":{x_min:0,x_max:617,ha:725,o:"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 "},"§":{x_min:0,x_max:593,ha:690,o:"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 "},b:{x_min:0,x_max:685,ha:783,o:"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 "},q:{x_min:0,x_max:683,ha:876,o:"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 "},"Ω":{x_min:-.171875,x_max:969.5625,ha:1068,o:"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 "},"ύ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 "},z:{x_min:-.015625,x_max:613.890625,ha:697,o:"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 "},"™":{x_min:0,x_max:894,ha:1e3,o:"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 "},"ή":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 "},"Θ":{x_min:0,x_max:960,ha:1056,o:"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 "},"®":{x_min:-3,x_max:1008,ha:1106,o:"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 "},"~":{x_min:0,x_max:833,ha:931,o:"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 "},"Ε":{x_min:0,x_max:736.21875,ha:778,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},"³":{x_min:0,x_max:450,ha:547,o:"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 "},"[":{x_min:0,x_max:273.609375,ha:371,o:"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 "},L:{x_min:0,x_max:645.828125,ha:696,o:"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 "},"σ":{x_min:0,x_max:803.390625,ha:894,o:"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 "},"ζ":{x_min:0,x_max:573,ha:642,o:"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 "},"θ":{x_min:0,x_max:674,ha:778,o:"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 "},"Ο":{x_min:0,x_max:958,ha:1054,o:"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 "},"Γ":{x_min:0,x_max:705.28125,ha:749,o:"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 "}," ":{x_min:0,x_max:0,ha:375},"%":{x_min:-3,x_max:1089,ha:1186,o:"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 "},P:{x_min:0,x_max:726,ha:806,o:"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 "},"Έ":{x_min:0,x_max:1078.21875,ha:1118,o:"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ώ":{x_min:.125,x_max:1136.546875,ha:1235,o:"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 "},_:{x_min:0,x_max:705.5625,ha:803,o:"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 "},"Ϊ":{x_min:-110,x_max:246,ha:275,o:"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 "},"+":{x_min:23,x_max:768,ha:792,o:"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 "},"½":{x_min:0,x_max:1050,ha:1149,o:"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 "},"Ρ":{x_min:0,x_max:720,ha:783,o:"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 "},"'":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"ª":{x_min:0,x_max:350,ha:397,o:"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 "},"΅":{x_min:0,x_max:450,ha:553,o:"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 "},T:{x_min:0,x_max:777,ha:835,o:"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 "},"Φ":{x_min:0,x_max:915,ha:997,o:"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 "},"⁋":{x_min:0,x_max:0,ha:694},j:{x_min:-77.78125,x_max:167,ha:349,o:"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 "},"Σ":{x_min:0,x_max:756.953125,ha:819,o:"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 "},1:{x_min:215.671875,x_max:574,ha:792,o:"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 "},"›":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},"<":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"£":{x_min:0,x_max:704.484375,ha:801,o:"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 "},t:{x_min:0,x_max:367,ha:458,o:"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 "},"¬":{x_min:0,x_max:706,ha:803,o:"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 "},"λ":{x_min:0,x_max:750,ha:803,o:"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 "},W:{x_min:0,x_max:1263.890625,ha:1351,o:"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 "},">":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},"τ":{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},"ξ":{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},"Λ":{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},"ΰ":{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"·":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"Υ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},"μ":{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"φ":{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"“":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},6:{x_min:53,x_max:739,ha:792,o:"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 "},"‘":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},"ϊ":{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},"π":{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},"ά":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},3:{x_min:54,x_max:737,ha:792,o:"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 "},9:{x_min:53,x_max:739,ha:792,o:"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "},"¤":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},"κ":{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},4:{x_min:48,x_max:742.453125,ha:792,o:"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"‡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},"ψ":{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},"η":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},cssFontWeight:"normal",ascender:1189,underlinePosition:-100,cssFontStyle:"normal",boundingBox:{yMin:-334,xMin:-111,yMax:1189,xMax:1672},resolution:1e3,original_font_information:{postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Μagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Μagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:'Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r\n\r\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r\n\r\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r\n\r\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r\n\r\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r\n\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.',manufacturer_name:"Μagenta ltd",font_sub_family_name:"Regular"},descender:-334,familyName:"Helvetiker",lineHeight:1522,underlineThickness:50}},199:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),o=n(198);var i=(new r.FontLoader).parse(o.HELVETIKER);t.default={name:"text",prototype:"items",info:{tag:["text"],title:"Text 3D",description:"Text",image:n(197)},properties:{text:{label:"text",type:"string",defaultValue:"Custom Text"},fontSize:{label:"font size",type:"number",defaultValue:16},color:{label:"text color",type:"color",defaultValue:"#000000"},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.properties.get("color")||"#000000",o=e.properties.get("text")||"",i=e.properties.get("fontSize")||16,l=(o.length-o.length/2)*i+16,s=2*i;return a.default.createElement("g",null,a.default.createElement("rect",{x:-l/2,y:-s/2,fill:"#FFF",width:l,height:s,stroke:"#000",strokeWidth:"2"}),a.default.createElement("text",{x:"0",y:"0",fontFamily:"Arial",alignmentBaseline:"middle",textAnchor:"middle",fontSize:i,fill:r,transform:"scale(1,-1)"},o))},render3D:function(e,t,n){var a=e.properties.get("text")||"",o=e.properties.get("fontSize")||16,l=(a.length-a.length/2)*o+16,s=e.properties.get("color")||"#000000",u=new r.Mesh(new r.TextGeometry(a,{size:o,height:1,font:i}),new r.MeshBasicMaterial({color:s}));if(e.selected){var d=new r.BoxHelper(u,10077179);d.material.linewidth=2,d.material.depthTest=!1,d.renderOrder=1e3,u.add(d)}return u.position.y+=e.properties.getIn(["altitude","length"]),u.position.x-=l/2,Promise.resolve(u)}}},200:function(e,t,n){e.exports=n.p+"catalog/items/teaching-post/teaching-post.png"},201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));t.default={name:"teaching-post",prototype:"items",info:{tag:["furnishings"],title:"Teaching post",description:"Teaching post",image:n(200)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;Math.sin(r*Math.PI/180)<0&&(o=180);var i={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-70,-47.5)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:140,height:95,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("line",{key:"2",x1:70,x2:70,y1:95,y2:142.5,style:i}),a.default.createElement("line",{key:"3",x1:35,x2:70,y1:114,y2:142.5,style:i}),a.default.createElement("line",{key:"4",x1:70,x2:105,y1:142.5,y2:114,style:i}),a.default.createElement("text",{key:"5",x:"0",y:"0",transform:"translate(70, 47.5) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,a){var o=e.properties.get("altitude").get("length"),i=(new r.TextureLoader).load(n(95)),l=new r.MeshLambertMaterial({map:i}),s=new r.MeshBasicMaterial({color:6723942}),u=new r.Object3D,d=new r.Mesh(new r.BoxGeometry(.06,.06,1.2),l);d.position.z+=.6,d.position.x+=.05,d.position.y+=.05;var c=new r.Mesh(new r.BoxGeometry(.06,.06,1.2),l);c.position.z+=.6,c.position.x+=1.9-.05,c.position.y+=.05;var p=new r.Mesh(new r.BoxGeometry(.06,.06,1.2),l);p.position.z+=.6,p.position.x+=1.9-.05,p.position.y+=1.45;var h=new r.Mesh(new r.BoxGeometry(.06,.06,1.2),l);h.position.z+=.6,h.position.x+=.05,h.position.y+=1.45;var f=[l,l,l,l,s,l],m=new r.Mesh(new r.BoxGeometry(1.9,1.5,.04),f);m.position.x+=.95,m.position.y+=.75,m.position.z+=1.2;var y=new r.Mesh(new r.BoxGeometry(1.9,.65,.04),l);y.rotation.x+=Math.PI/2,y.position.x+=.95,y.position.z+=.825;var v=new r.Mesh(new r.BoxGeometry(1.9,.075,.04),l);v.position.x+=.95,v.position.y+=1.15,v.position.z+=.6;var g=new r.Mesh(new r.BoxGeometry(1.5,.65,.04),l);g.rotation.x+=Math.PI/2,g.rotation.y+=Math.PI/2,g.position.x+=1.9,g.position.y+=.75,g.position.z+=.825;var x=g.clone();x.position.x-=1.9;var w=new r.Mesh(new r.BoxGeometry(.475,1.5,.4),l);w.position.x+=.475,w.position.y+=.75,w.position.z+=1.2/1.55;var M=new r.BoxGeometry(.1,.04,.02),q=new r.Mesh(M,l);q.position.y+=.77;var _=new r.BoxGeometry(.5,.04,.3),b=new r.Mesh(_,s);b.position.y+=.75,w.add(q),w.add(b),w.scale.set(1.5,1,.7);var E=w.clone();E.position.z+=1.2/4.5,u.add(d),u.add(c),u.add(p),u.add(h),u.add(m),u.add(w),u.add(E),u.add(y),u.add(g),u.add(x),u.add(v);var O=(new r.Box3).setFromObject(u),I=Math.abs(O.max.x-O.min.x),P=Math.abs(O.max.y-O.min.y),T=Math.abs(O.max.z-O.min.z);u.rotation.x+=-Math.PI/2,u.position.y+=o,u.position.x+=-70,u.position.z+=70/1.5,u.scale.set(140/I,70/T,100/P);var G=function(e){var t=new r.Object3D,a=new r.CylinderGeometry(.02,.02,.5,32),o=new r.MeshLambertMaterial({color:14276567}),i=new r.Mesh(a,o);i.rotation.x+=Math.PI/2,i.position.z+=.25;var l=new r.Mesh(a,o);l.rotation.x+=Math.PI/2,l.position.z+=.25,l.position.y+=.4;var s=new r.Mesh(a,o);s.rotation.x+=Math.PI/2,s.position.z+=.25,s.position.x+=.4;var u=new r.Mesh(a,o);u.rotation.x+=Math.PI/2,u.position.z+=.25,u.position.y+=.4,u.position.x+=.4;var d=new r.Mesh(a,o);d.rotation.x+=Math.PI/2,d.position.z+=.75;var c=new r.Mesh(a,o);c.rotation.x+=Math.PI/2,c.position.z+=.75,c.position.x+=.4;var p=(new r.TextureLoader).load(n(95)),h=new r.MeshLambertMaterial({map:p}),f=new r.Shape;f.moveTo(0,.05),f.lineTo(0,.43),f.quadraticCurveTo(0,.48,.05,.48),f.lineTo(.45,.48),f.quadraticCurveTo(.5,.48,.5,.43),f.lineTo(.5,.05),f.quadraticCurveTo(.5,0,.45,0),f.lineTo(.05,0),f.quadraticCurveTo(0,0,0,.05);var m=new r.ExtrudeGeometry(f,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new r.Mesh(m,h);y.position.x+=-.05,y.position.y+=-.04,y.position.z+=.5;var v=new r.Shape;v.moveTo(0,.05),v.lineTo(0,.2),v.quadraticCurveTo(0,.25,.05,.25),v.lineTo(.4,.25),v.quadraticCurveTo(.45,.25,.45,.2),v.lineTo(.45,.05),v.quadraticCurveTo(.45,0,.4,0),v.lineTo(.05,0),v.quadraticCurveTo(0,0,0,.05);var g=new r.ExtrudeGeometry(v,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),x=new r.Mesh(g,h);x.rotation.x+=Math.PI/2,x.position.z+=.75,x.position.y+=.03,x.position.x+=-.025,t.add(x),t.add(y),t.add(i),t.add(l),t.add(s),t.add(u),t.add(d),t.add(c);var w=(new r.Box3).setFromObject(t),M=Math.abs(w.max.x-w.min.x),q=Math.abs(w.max.y-w.min.y),_=Math.abs(w.max.z-w.min.z);return t.rotation.x+=-Math.PI/2,t.position.y+=e,t.position.x+=-55/3.5,t.position.z+=55/4,t.scale.set(82.5/_,55/1.5/M,50/q),t}(o);G.rotation.z+=Math.PI,G.position.z-=70,G.position.x+=60;var S=new r.Object3D;if(S.add(u),S.add(G),e.selected){var D=new r.BoxHelper(S,10077179);D.material.linewidth=5,D.renderOrder=1e3,D.material.depthTest=!1,S.add(D)}S.rotation.y+=Math.PI,S.position.z-=12.5;var R=(new r.Box3).setFromObject(S),A=Math.abs(R.max.z-R.min.z);return S.scale.set(1,1,95/A),Promise.resolve(S)}}},202:function(e,t,n){e.exports=n.p+"catalog/items/table/table.png"},203:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=3,i=new r.MeshLambertMaterial({color:10194037}),l=new r.MeshLambertMaterial({color:14276567});t.default={name:"table",prototype:"items",info:{tag:["furnishings","wood"],title:"table",description:"table",image:n(202)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:90,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:50,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:80,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.properties.get("width").get("length"),o=e.properties.get("depth").get("length"),i=e.rotation+90,l=0;return Math.sin(i*Math.PI/180)<0&&(l=180),a.default.createElement("g",{transform:"translate("+-r/2+","+-o/2+")"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:r,height:o,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate("+r/2+", "+o/2+") scale(1,-1) rotate("+l+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("width").get("length"),s=e.properties.get("depth").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("altitude").get("length"),c=new r.Object3D,p=function(e,t,n){var a=new r.Mesh,s=new r.BoxGeometry(e,t/20,n),u=new r.Mesh(s,i);u.position.y=t,a.add(u);var d=new r.CylinderGeometry(o,o,t,32,32),c=new r.Mesh(d,l);c.position.x=e/2,c.position.z=n/2,c.position.y=t/2,a.add(c);var p=new r.Mesh(d,l);p.position.x=e/2,p.position.z=-n/2,p.position.y=t/2,a.add(p);var h=new r.Mesh(d,l);h.position.x=-e/2,h.position.z=n/2,h.position.y=t/2,a.add(h);var f=new r.Mesh(d,l);return f.position.x=-e/2,f.position.z=-n/2,f.position.y=t/2,a.add(f),a}(a,u,s);c.add(p.clone()),c.position.y+=u/20+d;var h=new r.Object3D,f=function(e,t,n){var a=new r.Mesh,s=new r.BoxGeometry(e,t/20,n),u=new r.Mesh(s,i);u.position.y=t,a.add(u);var d=new r.CylinderGeometry(o,o,t,8,8),c=new r.Mesh(d,l);c.position.x=e/2,c.position.z=n/2,c.position.y=t/2,a.add(c);var p=new r.Mesh(d,l);p.position.x=e/2,p.position.z=-n/2,p.position.y=t/2,a.add(p);var h=new r.Mesh(d,l);h.position.x=-e/2,h.position.z=n/2,h.position.y=t/2,a.add(h);var f=new r.Mesh(d,l);return f.position.x=-e/2,f.position.z=-n/2,f.position.y=t/2,a.add(f),a}(a,u,s);h.add(f.clone()),h.position.y+=u/20+d;var m=new r.LOD;if(m.addLevel(c,200),m.addLevel(h,900),m.updateMatrix(),m.matrixAutoUpdate=!1,e.selected){var y=new r.BoxHelper(m,10077179);y.material.linewidth=5,y.renderOrder=1e3,y.material.depthTest=!1,m.add(y)}return Promise.resolve(m)}}},204:function(e,t,n){e.exports=n.p+"catalog/items/sofa/sofa.png"},205:function(e,t,n){e.exports=n.p+"catalog/items/sofa/texture.jpg"},206:function(e,t,n){e.exports=n.p+"catalog/items/sofa/sofa.obj"},207:function(e,t,n){e.exports=n.p+"catalog/items/sofa/sofa.mtl"},208:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=n(27),o=s(n(26)),i=s(n(52)),l=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}var u=n(207),d=n(206),c=n(205),p=180,h="cm",f=60,m="cm",y=70,v="cm",g=null;t.default={name:"sofa",prototype:"items",info:{title:"sofa",tag:["furnishings","leather"],description:"Leather sofa",image:n(204)},properties:{},render2D:function(e,t,n){var r=e.rotation+90,a=Math.sin(r*Math.PI/180)<0?180:0,o={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},i={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return l.default.createElement("g",{transform:"translate("+-p/2+","+-f/2+")"},l.default.createElement("rect",{x:"0",y:"0",width:p,height:f,style:o}),l.default.createElement("line",{x1:p/2,x2:p/2,y1:f,y2:1.5*f,style:i}),l.default.createElement("line",{x1:.35*p,x2:p/2,y1:1.2*f,y2:1.5*f,style:i}),l.default.createElement("line",{x1:p/2,x2:.65*p,y1:1.5*f,y2:1.2*f,style:i}),l.default.createElement("text",{x:"0",y:"0",transform:"translate("+p/2+", "+f/2+") scale(1,-1) rotate("+a+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var l=function(t){var a=(0,i.default)(p).from(h).to(n.unit),o=(0,i.default)(y).from(v).to(n.unit),l=(0,i.default)(f).from(m).to(n.unit);t.scale.set(a/p,o/y,l/f);var s=new r.BoxHelper(t,10077179);s.material.linewidth=2,s.material.depthTest=!1,s.renderOrder=1e3,s.visible=e.selected,t.add(s);var u=(new r.Box3).setFromObject(t),d=[(u.max.x-u.min.x)/2+u.min.x,(u.max.y-u.min.y)/2+u.min.y,(u.max.z-u.min.z)/2+u.min.z];return t.position.x-=d[0],t.position.y-=d[1]-(u.max.y-u.min.y)/2,t.position.z-=d[2],t};if(g){var s=(new r.ObjectLoader).parse(g);return Promise.resolve(l(s))}return(0,a.loadObjWithMaterial)(u,d,o.default.dirname(c)+"/").then(function(e){g=e.toJSON();var t=new r.ObjectLoader;return l(t.parse(g))})},updateRender3D:function(e,t,n,a,o,i,l,s){return-1!==i.indexOf("selected")?(a.traverse(function(t){t instanceof r.BoxHelper&&(t.visible=e.selected)}),Promise.resolve(a)):-1!==i.indexOf("rotation")?(a.rotation.y=e.rotation*Math.PI/180,Promise.resolve(a)):(l(),s())}}},209:function(e,t,n){e.exports=n.p+"catalog/items/smoke-detector/smokeDetector.png"},21:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","style"]);return a.default.createElement("label",r({style:r({},o,{style:n})},i),t)};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o={display:"block",marginBottom:"5px"}},2507:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onChange"]);return a.default.createElement(o.default,r({type:"color",style:l,onChange:function(e){var n=e.target.value;s.test(n)&&t(e)},autoComplete:"off"},n))};var a=i(n(0)),o=i(n(63));function i(e){return e&&e.__esModule?e:{default:e}}var l={padding:0,border:0},s=/^.*$/},2508:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","style"]);return a.default.createElement("div",r({style:r({},o,{style:n})},i),t)};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o={marginBottom:"16px"}},2509:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return a.default.createElement(o.default,r({style:s,styleHover:u},n),t)};var a=l(n(0)),o=l(n(64)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5));function l(e){return e&&e.__esModule?e:{default:e}}var s={borderColor:"#c12e2a",backgroundColor:"#c9302c",color:i.COLORS.white},u={backgroundColor:"#972726",borderColor:"#c12e2a",color:i.COLORS.white}},251:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.TextureLoader,i=o.load(n(250)),l=o.load(n(249)),s=o.load(n(248)),u=new r.MeshLambertMaterial({map:i}),d=new r.MeshLambertMaterial({map:l}),c=new r.MeshLambertMaterial({map:s}),p=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(1,.05,1.5),u);t.position.set(0,.15,0),e.add(t);for(var n=-.45;n<=.45;n+=.9)for(var a=-.7125;a<=.7125;a+=1.425){var o=new r.Mesh(new r.CylinderGeometry(.05,.05,.05,4),u);o.position.set(n,-.05,a),o.rotation.y=.25*Math.PI,t.add(o)}var i=new r.Mesh(new r.BoxGeometry(.05,1,1.5),u);i.position.set(.475,.525,0),t.add(i);var l=new r.Mesh(new r.BoxGeometry(1,1,.05),u);l.position.set(0,.525,.725),t.add(l);var s=new r.Mesh(new r.BoxGeometry(1,1,.05),u);s.position.set(0,.525,-.725),t.add(s);var p=new r.Mesh(new r.BoxGeometry(1,.2,1.5),u);p.position.set(0,1.1,0),t.add(p);var h=new r.Mesh(new r.PlaneGeometry(.1,.05),c);h.position.set(-.51,1.13,0),h.rotation.y=-.5*Math.PI,t.add(h);var f=new r.Mesh(new r.BoxGeometry(.05,.99,1.4),u);f.position.set(-.47,.525,0),t.add(f);var m=new r.Mesh(new r.BoxGeometry(.05,.9,1.3),u);m.position.set(-.53,.525,0),t.add(m);var y=new r.Mesh(new r.CylinderGeometry(.02,.02,1),d);y.position.set(-.6,.85,0),y.rotation.x=.5*Math.PI,t.add(y);var v=new r.Mesh(new r.CylinderGeometry(.02,.02,.06),d);v.position.set(-.56,.85,-.4),v.rotation.z=.5*Math.PI,t.add(v);var g=new r.Mesh(new r.CylinderGeometry(.02,.02,.06),d);g.position.set(-.56,.85,.4),g.rotation.z=.5*Math.PI,t.add(g);for(var x=-.6;x<=.65;x+=.3){var w=new r.Mesh(new r.CylinderGeometry(.03,.03,.02,32),d);w.position.set(-.51,1.05,x),w.rotation.z=.5*Math.PI,t.add(w);var M=new r.Mesh(new r.BoxGeometry(.05,.03,.01),d);M.position.set(0,.02,0),w.add(M)}for(var q=-.22;q<=.22;q+=.44)for(var _=-.45;_<=.45;_+=.9){var b=new r.Mesh(new r.CylinderGeometry(.08,.1,.02,32),d);b.position.set(q,1.21,_),t.add(b)}var E=new r.Mesh(new r.CylinderGeometry(.1,.12,.02,32),d);E.position.set(0,1.21,0),t.add(E);for(var O=-.45;O<=.45;O+=.45)if(0!==O){var I=new r.Mesh(new r.BoxGeometry(.03,.05,1.38),d);I.position.set(O,1.21,0),t.add(I)}else for(var P=-.46;P<=.68;P+=.9){var T=new r.Mesh(new r.BoxGeometry(.03,.05,.46),d);T.position.set(O,1.21,P),t.add(T)}for(var G=-.675;G<=.675;G+=.45){var S=new r.Mesh(new r.BoxGeometry(.9,.05,.03),d);S.position.set(0,1.21,G),t.add(S)}for(var D=-.22;D<=.22;D+=.44){for(var R=-.59;R<=.68;R+=.9){var A=new r.Mesh(new r.BoxGeometry(.03,.01,.2),d);A.position.set(D,1.24,R),t.add(A)}for(var L=.59;L>=-.68;L-=.9){var C=new r.Mesh(new r.BoxGeometry(.03,.01,.2),d);C.position.set(D,1.24,L),t.add(C)}}for(var k=-.365;k<=.345;k+=.7)for(var j=-.45;j<=.45;j+=.45)if(0!==j){var N=new r.Mesh(new r.BoxGeometry(.2,.02,.03),d);k<0?N.position.set(k,1.24,j):N.position.set(k+.03,1.24,j),t.add(N)}else{var z=new r.Mesh(new r.BoxGeometry(.4,.02,.03),d);k<0?z.position.set(k+.1,1.24,j):z.position.set(k-.07,1.24,j),t.add(z)}for(var B=-.45;B<=.45;B+=.9){var U=new r.Mesh(new r.BoxGeometry(.35,.02,.03),d);U.position.set(0,1.24,B),t.add(U)}for(var V=-.14;V<=.14;V+=.28){var F=new r.Mesh(new r.BoxGeometry(.03,.02,.2),d);F.position.set(0,1.25,V),t.add(F)}return e}(),h=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(1,.05,1.5),u);t.position.set(0,.15,0),e.add(t);for(var n=-.45;n<=.45;n+=.9)for(var a=-.7125;a<=.7125;a+=1.425){var o=new r.Mesh(new r.CylinderGeometry(.05,.05,.05,4),u);o.position.set(n,-.05,a),o.rotation.y=.25*Math.PI,t.add(o)}var i=new r.Mesh(new r.BoxGeometry(.05,1,1.5),u);i.position.set(.475,.525,0),t.add(i);var l=new r.Mesh(new r.BoxGeometry(1,1,.05),u);l.position.set(0,.525,.725),t.add(l);var s=new r.Mesh(new r.BoxGeometry(1,1,.05),u);s.position.set(0,.525,-.725),t.add(s);var p=new r.Mesh(new r.BoxGeometry(1,.2,1.5),u);p.position.set(0,1.1,0),t.add(p);var h=new r.Mesh(new r.PlaneGeometry(.1,.05),c);h.position.set(-.51,1.13,0),h.rotation.y=-.5*Math.PI,t.add(h);var f=new r.Mesh(new r.BoxGeometry(.05,.99,1.4),u);f.position.set(-.47,.525,0),t.add(f);var m=new r.Mesh(new r.BoxGeometry(.05,.9,1.3),u);m.position.set(-.53,.525,0),t.add(m);var y=new r.Mesh(new r.CylinderGeometry(.02,.02,1),d);y.position.set(-.6,.85,0),y.rotation.x=.5*Math.PI,t.add(y);var v=new r.Mesh(new r.CylinderGeometry(.02,.02,.06),d);v.position.set(-.56,.85,-.4),v.rotation.z=.5*Math.PI,t.add(v);var g=new r.Mesh(new r.CylinderGeometry(.02,.02,.06),d);g.position.set(-.56,.85,.4),g.rotation.z=.5*Math.PI,t.add(g);for(var x=-.6;x<=.65;x+=.3){var w=new r.Mesh(new r.CylinderGeometry(.03,.03,.02,32),d);w.position.set(-.51,1.05,x),w.rotation.z=.5*Math.PI,t.add(w);var M=new r.Mesh(new r.BoxGeometry(.05,.03,.01),d);M.position.set(0,.02,0),w.add(M)}for(var q=-.22;q<=.22;q+=.44)for(var _=-.45;_<=.45;_+=.9){var b=new r.Mesh(new r.CylinderGeometry(.08,.1,.02,32),d);b.position.set(q,1.21,_),t.add(b)}var E=new r.Mesh(new r.CylinderGeometry(.1,.12,.02,32),d);E.position.set(0,1.21,0),t.add(E);for(var O=-.45;O<=.45;O+=.45)if(0!==O){var I=new r.Mesh(new r.BoxGeometry(.03,.05,1.38),d);I.position.set(O,1.21,0),t.add(I)}else for(var P=-.46;P<=.68;P+=.9){var T=new r.Mesh(new r.BoxGeometry(.03,.05,.46),d);T.position.set(O,1.21,P),t.add(T)}for(var G=-.675;G<=.675;G+=.45){var S=new r.Mesh(new r.BoxGeometry(.9,.05,.03),d);S.position.set(0,1.21,G),t.add(S)}for(var D=-.22;D<=.22;D+=.44){for(var R=-.59;R<=.68;R+=.9){var A=new r.Mesh(new r.BoxGeometry(.03,.01,.2),d);A.position.set(D,1.24,R),t.add(A)}for(var L=.59;L>=-.68;L-=.9){var C=new r.Mesh(new r.BoxGeometry(.03,.01,.2),d);C.position.set(D,1.24,L),t.add(C)}}for(var k=-.365;k<=.345;k+=.7)for(var j=-.45;j<=.45;j+=.45)if(0!==j){var N=new r.Mesh(new r.BoxGeometry(.2,.02,.03),d);k<0?N.position.set(k,1.24,j):N.position.set(k+.03,1.24,j),t.add(N)}else{var z=new r.Mesh(new r.BoxGeometry(.4,.02,.03),d);k<0?z.position.set(k+.1,1.24,j):z.position.set(k-.07,1.24,j),t.add(z)}for(var B=-.45;B<=.45;B+=.9){var U=new r.Mesh(new r.BoxGeometry(.35,.02,.03),d);U.position.set(0,1.24,B),t.add(U)}for(var V=-.14;V<=.14;V+=.28){var F=new r.Mesh(new r.BoxGeometry(.03,.02,.2),d);F.position.set(0,1.25,V),t.add(F)}return e}();t.default={name:"kitchen",prototype:"items",info:{tag:["furnishings","metal"],title:"kitchen",description:"kitchen",image:n(247)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-40,-50)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:80,height:100,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(40, 50) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(p.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),u=Math.abs(i.max.z-i.min.z);o.position.y+=a,o.scale.set(80/l,80/s,100/u);var d=new r.Object3D;d.add(h.clone()),d.position.y+=a,d.scale.set(80/l,80/s,100/u);var c=new r.LOD;if(c.addLevel(o,200),c.addLevel(d,900),c.updateMatrix(),c.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(c,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,c.add(f)}return Promise.resolve(c)}}},2510:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);return a.default.createElement(o.default,r({style:l,styleHover:s},n),t)};var a=i(n(0)),o=i(n(64));function i(e){return e&&e.__esModule?e:{default:e}}var l={borderColor:"#adadad",backgroundColor:"#e6e6e6"},s={backgroundColor:"#d4d4d4",borderColor:"#8c8c8c"}},2511:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=l(n(0)),a=l(n(2)),o=n(13),i=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.value,n=e.onUpdate,a=e.configs,l=e.sourceElement,s=e.internalState,u=e.state;return r.default.createElement("table",{className:"PropertyColor",style:i.default.tableStyle},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:i.default.firstTdStyle},r.default.createElement(o.FormLabel,null,a.label)),r.default.createElement("td",null,r.default.createElement(o.FormColorInput,{value:t,onChange:function(e){return function(e){return a.hook?a.hook(e,l,s,u).then(function(e){return n(e)}):n(e)}(e.target.value)}})))))}s.propTypes={value:a.default.any.isRequired,onUpdate:a.default.func.isRequired,configs:a.default.object.isRequired,sourceElement:a.default.object,internalState:a.default.object,state:a.default.object.isRequired}},2512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34),a=he(n(373)),o=he(n(367)),i=he(n(361)),l=he(n(359)),s=he(n(351)),u=he(n(349)),d=he(n(347)),c=he(n(345)),p=he(n(340)),h=he(n(338)),f=he(n(333)),m=he(n(328)),y=he(n(323)),v=he(n(321)),g=he(n(319)),x=he(n(315)),w=he(n(312)),M=he(n(310)),q=he(n(305)),_=he(n(303)),b=he(n(301)),E=he(n(299)),O=he(n(297)),I=he(n(295)),P=he(n(293)),T=he(n(291)),G=he(n(288)),S=he(n(286)),D=he(n(283)),R=he(n(281)),A=he(n(279)),L=he(n(277)),C=he(n(273)),k=he(n(270)),j=he(n(266)),N=he(n(262)),z=he(n(260)),B=he(n(257)),U=he(n(254)),V=he(n(251)),F=he(n(246)),H=he(n(243)),W=he(n(239)),Y=he(n(233)),Z=he(n(230)),X=he(n(228)),J=he(n(226)),K=he(n(224)),Q=he(n(221)),$=he(n(219)),ee=he(n(216)),te=he(n(214)),ne=he(n(212)),re=he(n(210)),ae=he(n(208)),oe=he(n(203)),ie=he(n(201)),le=he(n(199)),se=he(n(196)),ue=he(n(193)),de=he(n(191)),ce=he(n(187)),pe=he(n(184));function he(e){return e&&e.__esModule?e:{default:e}}var fe=new r.Catalog,me={area:a.default};Object.freeze(me);var ye={wall:o.default};Object.freeze(ye);var ve={doorDouble:i.default,door:l.default,gate:s.default,panicDoorDouble:u.default,panicDoor:d.default,sashWindow:c.default,slidingDoor:p.default,venetianBlindWindow:h.default,windowCurtain:f.default,window:m.default};Object.freeze(ve);var ge={airConditioner:y.default,armchairs:v.default,balcony:g.default,bench:x.default,blackboard:w.default,bookcase:M.default,camera:q.default,canteenTable:_.default,canteencart:b.default,chair:E.default,chairdesk:O.default,childChairDesk:I.default,cleaningcart:P.default,coatHook:T.default,columnSquare:G.default,column:S.default,cube:D.default,desk:R.default,deskdouble:A.default,deskoffice:L.default,electricalPanel:C.default,fireExtinguisher:k.default,fridge:j.default,hanger:N.default,hiroos:z.default,hub:B.default,image:U.default,kitchen:V.default,lim:F.default,metalDetector:H.default,monitorPc:W.default,naspo:Y.default,projector:Z.default,radiatorModernStyle:X.default,radiatorOldStyle:J.default,recyclingBins:K.default,routerWifi:Q.default,schneider:$.default,schoolDeskDouble:ee.default,schoolDesk:te.default,sink:ne.default,smokeDetector:re.default,sofa:ae.default,table:oe.default,teachingPost:ie.default,text3d:le.default,threePhasePanel:se.default,trash:ue.default,tv:de.default,umbrellaStand:ce.default,wardrobe:pe.default};for(var xe in Object.freeze(ge),me)fe.registerElement(me[xe]);for(var we in ye)fe.registerElement(ye[we]);for(var Me in ve)fe.registerElement(ve[Me]);for(var qe in ge)fe.registerElement(ge[qe]);fe.registerCategory("windows","Windows",[ve.window,ve.sashWindow,ve.venetianBlindWindow,ve.windowCurtain]),fe.registerCategory("doors","Doors",[ve.door,ve.doorDouble,ve.panicDoor,ve.panicDoorDouble,ve.slidingDoor]),t.default=fe},252:function(e,t,n){e.exports=n.p+"catalog/items/image/image.png"},253:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;ns&&(n=s),r>i.y?r=i.y:rt?(i.moveTo(0,0),i.lineTo(e,0),i.lineTo(e+(t/2-e/2),a),i.lineTo(-(t/2-e/2),a)):e===t&&(i.moveTo(0,0),i.lineTo(0,a),i.lineTo(e,a),i.lineTo(e,0));var l={steps:2,depth:n/40,bevelEnabled:!1,bevelThickness:n,bevelSize:n,bevelSegments:2},c=new r.ExtrudeGeometry(i,l),p=new r.MeshLambertMaterial({map:s}),h=new r.Mesh(c,p);h.rotation.x+=Math.PI/2,h.position.y=n/1.8;var f=new r.Shape,m=new r.Path;et?(f.moveTo(0,0),f.lineTo(e,0),f.lineTo(e+(t/2-e/2),a),f.lineTo(-(t/2-e/2),a),m.moveTo(e/2-t/2-e/20,a/20),m.lineTo(e-(e/2-t/2)+e/20,a/20),m.lineTo(t+e/20,a-a/20),m.lineTo(e-t-e/20,a-a/20),f.holes.push(m)):e===t&&(f.moveTo(0,0),f.lineTo(e,0),f.lineTo(e,a),f.lineTo(0,a),m.moveTo(e/20,a/20),m.lineTo(e-e/20,a/20),m.lineTo(e-e/20,a-a/20),m.lineTo(e/20,a-a/20),f.holes.push(m));var y=new r.ExtrudeGeometry(f,l),v=new r.Mesh(y,p);v.position.y+=n,v.position.z+=a/40,v.rotation.x+=Math.PI/2;var g=new r.Mesh(c,p);g.position.y+=n,g.rotation.x+=Math.PI/1.5,et||e===t)&&g.scale.set(1,1,1);var x=new r.Shape;et?(x.moveTo(e/2-t/2-e/20,a/20),x.lineTo(e-(e/2-t/2)+e/20,a/20),x.lineTo(t+e/20,a-a/20),x.lineTo(e-t-e/20,a-a/20)):e===t&&(x.moveTo(e/20,a/20),x.lineTo(e-e/20,a/20),x.lineTo(e-e/20,a-a/20),x.lineTo(e/20,a-a/20));var w=new r.ExtrudeGeometry(x,l),M=new r.Mesh(w,u);M.position.y+=n,M.rotation.x+=Math.PI/2;var q=new r.BoxGeometry(e,a/20,1.6*n),_=new r.Mesh(q,p);_.rotation.x+=Math.PI/2,_.position.set(e/2,n/5,0);var b=void 0;et&&(b=e/2-t/2);var E=a/b,O=Math.atan(E),I=void 0;I=Math.sqrt(Math.pow(b,2)+Math.pow(a,2)),e===t&&(I=a);var P=new r.BoxGeometry(I,a/20,1.6*n),T=new r.Mesh(P,p);T.rotation.x+=Math.PI/2,et?(T.position.set((e-(e/2+t/2))/2,n/5,a/2),T.rotation.z+=O):e===t&&(T.position.set(0,n/5,a/2),T.rotation.z+=Math.PI/2);var G=T.clone();et?(G.position.set(e-(e/2-t/2)/2,n/5,a/2),G.rotation.z=-Math.PI-O):e===t&&G.position.set(t,n/5,a/2);var S=void 0,D=void 0,R=void 0,A=void 0,L=void 0;et?(S=e/2-t/2,D=2*(e/2-t/2),R=e-(e/2-t/2),A=e-2*(e/2-t/2),L=e/2-t/2):e===t&&(S=0,D=e/8,R=e,A=e-e/8,L=e/8);for(var C=S+L;Co&&(p.position.x+=a/2),a===o&&(p.position.x+=o/2),p.rotation.y+=Math.PI,ao&&p.scale.set(a/f,i/m,l/y),a===o&&p.scale.set(a/f,i/m,l/y);var v=new r.Object3D;v.add(function(e,t,n,a){var o=new r.Mesh,i=new r.Shape;et?(i.moveTo(0,0),i.lineTo(e,0),i.lineTo(e+(t/2-e/2),a),i.lineTo(-(t/2-e/2),a)):e===t&&(i.moveTo(0,0),i.lineTo(0,a),i.lineTo(e,a),i.lineTo(e,0));var l={steps:2,depth:n/40,bevelEnabled:!1,bevelThickness:n,bevelSize:n,bevelSegments:2},u=new r.ExtrudeGeometry(i,l),d=new r.MeshLambertMaterial({map:s}),c=new r.Mesh(u,d);c.rotation.x+=Math.PI/2,c.position.y=n/1.8;var p=new r.Shape,h=new r.Path;et?(p.moveTo(0,0),p.lineTo(e,0),p.lineTo(e+(t/2-e/2),a),p.lineTo(-(t/2-e/2),a),h.moveTo(e/2-t/2-e/20,a/20),h.lineTo(e-(e/2-t/2)+e/20,a/20),h.lineTo(t+e/20,a-a/20),h.lineTo(e-t-e/20,a-a/20),p.holes.push(h)):e===t&&(p.moveTo(0,0),p.lineTo(e,0),p.lineTo(e,a),p.lineTo(0,a),h.moveTo(e/20,a/20),h.lineTo(e-e/20,a/20),h.lineTo(e-e/20,a-a/20),h.lineTo(e/20,a-a/20),p.holes.push(h));var f=new r.ExtrudeGeometry(p,l),m=new r.Mesh(f,d);m.position.y+=n,m.position.z+=a/40,m.rotation.x+=Math.PI/2;var y=new r.Mesh(u,d);y.position.y+=n,y.rotation.x+=Math.PI/1.5,et||e===t)&&y.scale.set(1,1,1);var v=new r.Shape;et?(v.moveTo(e/2-t/2-e/20,a/20),v.lineTo(e-(e/2-t/2)+e/20,a/20),v.lineTo(t+e/20,a-a/20),v.lineTo(e-t-e/20,a-a/20)):e===t&&(v.moveTo(e/20,a/20),v.lineTo(e-e/20,a/20),v.lineTo(e-e/20,a-a/20),v.lineTo(e/20,a-a/20));var g=new r.ExtrudeGeometry(v,l),x=new r.MeshLambertMaterial({color:13027014,transparent:!0,opacity:.5}),w=new r.Mesh(g,x);w.position.y+=n,w.rotation.x+=Math.PI/2;var M=new r.BoxGeometry(e,a/20,1.6*n),q=new r.Mesh(M,d);q.rotation.x+=Math.PI/2,q.position.set(e/2,n/5,0);var _=void 0;et&&(_=e/2-t/2);var b=a/_,E=Math.atan(b),O=void 0;O=Math.sqrt(Math.pow(_,2)+Math.pow(a,2)),e===t&&(O=a);var I=new r.BoxGeometry(O,a/20,1.6*n),P=new r.Mesh(I,d);P.rotation.x+=Math.PI/2,et?(P.position.set((e-(e/2+t/2))/2,n/5,a/2),P.rotation.z+=E):e===t&&(P.position.set(0,n/5,a/2),P.rotation.z+=Math.PI/2);var T=P.clone();return et?(T.position.set(e-(e/2-t/2)/2,n/5,a/2),T.rotation.z=-Math.PI-E):e===t&&T.position.set(t,n/5,a/2),o.add(c),o.add(m),o.add(y),o.add(w),o.add(q),o.add(P),o.add(T),o}(a,o,l,i).clone()),v.position.y+=l/2+c,v.position.z+=i/2,ao&&(v.position.x+=a/2),a===o&&(v.position.x+=o/2),v.rotation.y+=Math.PI,ao&&v.scale.set(a/f,i/m,l/y),a===o&&v.scale.set(a/f,i/m,l/y);var g=new r.LOD;if(g.addLevel(p,700),g.addLevel(v,1e3),g.updateMatrix(),g.matrixAutoUpdate=!1,e.selected){var x=new r.BoxHelper(g,10077179);x.material.linewidth=5,x.renderOrder=1e3,x.material.depthTest=!1,g.add(x)}return Promise.resolve(g)}}},278:function(e,t,n){e.exports=n.p+"catalog/items/deskdouble/deskdouble.png"},279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:10194037}),i=new r.MeshLambertMaterial({color:14276567}),l=new r.MeshBasicMaterial({color:6723942}),s=function(){var e=new r.Mesh,t=new r.BoxGeometry(1.05,.05,.625),n=[o,o,l,o,o,o],a=new r.Mesh(t,n);a.position.y=1,e.add(a);var s=new r.CylinderGeometry(.03,.03,1,32,32),u=new r.BoxGeometry(.9,.05,.5),d=new r.Mesh(u,o);d.position.y=.75,e.add(d);var c=new r.BoxGeometry(.9,.1,.025),p=new r.Mesh(c,o);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);var h=new r.Mesh(s,i);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);var f=new r.Mesh(s,i);f.position.x=.45,f.position.z=-.25,f.position.y=.5,e.add(f);var m=new r.Mesh(s,i);m.position.x=-.45,m.position.z=.25,m.position.y=.5,e.add(m);var y=new r.Mesh(s,i);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}(),u=function(){var e=new r.Mesh,t=new r.BoxGeometry(1.05,.05,.625),n=[o,o,l,o,o,o],a=new r.Mesh(t,n);a.position.y=1,e.add(a);var s=new r.CylinderGeometry(.03,.03,1,8,8),u=new r.BoxGeometry(.9,.05,.5),d=new r.Mesh(u,o);d.position.y=.75,e.add(d);var c=new r.BoxGeometry(.9,.1,.025),p=new r.Mesh(c,o);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);var h=new r.Mesh(s,i);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);var f=new r.Mesh(s,i);f.position.x=.45,f.position.z=-.25,f.position.y=.5,e.add(f);var m=new r.Mesh(s,i);m.position.x=-.45,m.position.z=.25,m.position.y=.5,e.add(m);var y=new r.Mesh(s,i);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}();t.default={name:"double school desk",prototype:"items",info:{tag:["furnishings","wood"],title:"double school desk",description:"double school desk",image:n(278)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-60,-25)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:120,height:50,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(60, 25) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(s.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.rotation.y+=Math.PI,o.position.y+=a,o.scale.set(120/l,90/d,50/c);var p=new r.Object3D;p.add(u.clone()),p.rotation.y+=Math.PI,p.position.y+=a,p.scale.set(120/l,90/d,50/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},280:function(e,t,n){e.exports=n.p+"catalog/items/desk/desk.png"},281:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:10194037}),i=new r.MeshLambertMaterial({color:14276567}),l=new r.MeshBasicMaterial({color:6723942}),s=function(){var e=new r.Mesh,t=new r.BoxGeometry(1.05,.05,.625),n=[o,o,l,o,o,o],a=new r.Mesh(t,n);a.position.y=1,e.add(a);var s=new r.CylinderGeometry(.03,.03,1,32,32),u=new r.BoxGeometry(.9,.05,.5),d=new r.Mesh(u,o);d.position.y=.75,e.add(d);var c=new r.BoxGeometry(.9,.1,.025),p=new r.Mesh(c,o);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);var h=new r.Mesh(s,i);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);var f=new r.Mesh(s,i);f.position.x=.45,f.position.z=-.25,f.position.y=.5,e.add(f);var m=new r.Mesh(s,i);m.position.x=-.45,m.position.z=.25,m.position.y=.5,e.add(m);var y=new r.Mesh(s,i);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}(),u=function(){var e=new r.Mesh,t=new r.BoxGeometry(1.05,.05,.625),n=[o,o,l,o,o,o],a=new r.Mesh(t,n);a.position.y=1,e.add(a);var s=new r.CylinderGeometry(.03,.03,1,32,32),u=new r.BoxGeometry(.9,.05,.5),d=new r.Mesh(u,o);d.position.y=.75,e.add(d);var c=new r.BoxGeometry(.9,.1,.025),p=new r.Mesh(c,o);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);var h=new r.Mesh(s,i);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);var f=new r.Mesh(s,i);f.position.x=.45,f.position.z=-.25,f.position.y=.5,e.add(f);var m=new r.Mesh(s,i);m.position.x=-.45,m.position.z=.25,m.position.y=.5,e.add(m);var y=new r.Mesh(s,i);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}();t.default={name:"school desk",prototype:"items",info:{tag:["furnishings","wood"],title:"school desk",description:"school desk",image:n(280)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-35,-25)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:70,height:50,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(35, 25) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(s.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.rotation.y+=Math.PI,o.position.y+=a,o.scale.set(70/l,90/d,50/c);var p=new r.Object3D;p.add(u.clone()),p.rotation.y+=Math.PI,p.position.y+=a,p.scale.set(70/l,90/d,50/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},282:function(e,t,n){e.exports=n.p+"catalog/items/cube/cube.png"},283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),a=n(3),o=n(34);t.default={name:"cube",prototype:"items",info:{title:"cube",tag:["demo"],description:"Demo item",image:n(282)},properties:{color:{label:"Color",type:"color",defaultValue:o.ReactPlannerSharedStyle.AREA_MESH_COLOR.unselected},width:{label:"Width",type:"length-measure",defaultValue:{length:100,unit:"cm"}},height:{label:"Height",type:"length-measure",defaultValue:{length:100,unit:"cm"}},depth:{label:"Depth",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){var a={stroke:e.selected?o.ReactPlannerSharedStyle.MESH_SELECTED:o.ReactPlannerSharedStyle.LINE_MESH_COLOR.unselected,strokeWidth:2,fill:e.properties.get("color")},i=e.properties.getIn(["width","length"]),l=e.properties.getIn(["depth","length"]),s=i/2,u=l/2;return r.default.createElement("g",{transform:"translate(-"+s+", -"+u+")"},r.default.createElement("rect",{x:"0",y:"0",width:i,height:l,style:a}))},render3D:function(e,t,n){var r=e.properties.getIn(["width","length"]),i=e.properties.getIn(["height","length"]),l=e.properties.getIn(["depth","length"]),s=new a.BoxGeometry(r,i,l),u=new a.MeshBasicMaterial({color:e.properties.get("color")}),d=new a.Mesh(s,u),c=new a.BoxHelper(d,e.selected?o.ReactPlannerSharedStyle.MESH_SELECTED:o.ReactPlannerSharedStyle.LINE_MESH_COLOR.unselected);return c.material.linewidth=2,c.renderOrder=1e3,d.add(c),d.position.y=i/2,Promise.resolve(d)}}},284:function(e,t,n){e.exports=n.p+"catalog/items/column/column.png"},285:function(e,t,n){e.exports=n.p+"catalog/items/column/copper.jpg"},286:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=(new r.TextureLoader).load(n(285)),i=new r.MeshLambertMaterial({map:o});t.default={name:"round column",prototype:"items",info:{tag:["structure"],title:"round column",description:"round column",image:n(284)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:300,unit:"cm"}},radius:{label:"radius",type:"length-measure",defaultValue:{length:20,unit:"cm"}}},render2D:function(e,t,n){var r=e.properties.get("radius").get("length"),o=e.rotation+90,i=0;Math.sin(o*Math.PI/180)<0&&(i=180);var l={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",null,a.default.createElement("circle",{key:"1",cx:"0",cy:"0",r:r,style:l}),a.default.createElement("text",{key:"2",cx:"0",cy:"0",transform:"scale(1,-1) rotate("+i+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("height").get("length"),o=e.properties.get("radius").get("length"),l=e.properties.get("altitude").get("length"),s=new r.Object3D,u=function(e,t){var n=e/10,a=e/2.5,o=new r.Mesh,l=new r.Mesh(new r.CylinderGeometry(e,e,t,32),i),s=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,32),i),u=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,32),i),d=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,32),i),c=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,32),i);return s.position.x+=a,s.position.z+=a,u.position.x-=a,u.position.z-=a,d.position.x-=a,d.position.z+=a,c.position.x+=a,c.position.z-=a,o.add(s),o.add(u),o.add(d),o.add(c),o.add(l),o}(o,a);s.add(u.clone()),s.position.y+=a/2+l;var d=new r.Object3D,c=function(e,t){var n=e/10,a=e/2.5,o=new r.Mesh,l=new r.Mesh(new r.CylinderGeometry(e,e,t,6,6),i),s=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,6),i),u=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,6),i),d=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,6),i),c=new r.Mesh(new r.CylinderGeometry(n,n,t+t/10,6),i);return s.position.x+=a,s.position.z+=a,u.position.x-=a,u.position.z-=a,d.position.x-=a,d.position.z+=a,c.position.x+=a,c.position.z-=a,o.add(s),o.add(u),o.add(d),o.add(c),o.add(l),o}(o,a);d.add(c.clone()),d.position.y+=a/2+l;var p=new r.LOD;if(p.addLevel(s,1300),p.addLevel(d,2e3),p.updateMatrix(),p.matrixAutoUpdate=!1,e.selected){var h=new r.BoxHelper(p,10077179);h.material.linewidth=5,h.renderOrder=1e3,h.material.depthTest=!1,p.add(h)}return Promise.resolve(p)}}},287:function(e,t,n){e.exports=n.p+"catalog/items/column-square/square_column.png"},288:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:16119028});t.default={name:"square column",prototype:"items",info:{tag:["structure"],title:"square column",description:"column",image:n(287)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:300,unit:"cm"}},width:{label:"width",type:"length-measure",defaultValue:{length:50,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:50,unit:"cm"}}},render2D:function(e,t,n){var r=e.properties.get("width").get("length"),o=e.properties.get("depth").get("length"),i=e.rotation+90,l=0;Math.sin(i*Math.PI/180)<0&&(l=180);var s={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate("+-r/2+","+-o/2+")"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:r,height:o,style:s}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate("+r/2+", "+o/2+") scale(1,-1) rotate("+l+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("height").get("length"),i=e.properties.get("width").get("length"),l=e.properties.get("depth").get("length"),s=e.properties.get("altitude").get("length"),u=new r.Object3D,d=new r.Mesh(new r.BoxGeometry(i,a,l,32),o);if(u.add(d),e.selected){var c=new r.BoxHelper(u,10077179);c.material.linewidth=10,c.renderOrder=5e3,c.material.depthTest=!1,u.add(c)}return u.position.y+=a/2+s,u.position.x+=i/2,Promise.resolve(u)}}},289:function(e,t,n){e.exports=n.p+"catalog/items/coat-hook/wood.jpg"},290:function(e,t,n){e.exports=n.p+"catalog/items/coat-hook/coat-hook.png"},291:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));t.default={name:"coat-hook",prototype:"items",info:{tag:["furnishings","optional"],title:"Coat hook",description:"Coat hook",image:n(290)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:120,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;Math.sin(r*Math.PI/180)<0&&(o=180);var i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},l={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-100,-10)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:200,height:20,style:i}),a.default.createElement("line",{key:"2",x1:100,x2:100,y1:20,y2:30,style:l}),a.default.createElement("line",{key:"3",x1:90,x2:100,y1:24,y2:30,style:l}),a.default.createElement("line",{key:"4",x1:100,x2:.55*200,y1:30,y2:24,style:l}),a.default.createElement("text",{key:"5",x:"0",y:"0",transform:"translate(100, 10) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,a){var o=e.properties.get("altitude").get("length"),i=new r.Object3D,l=(new r.TextureLoader).load(n(289)),s=new r.MeshLambertMaterial({map:l}),u=new r.BoxGeometry(2.15,1.5*.1,.04),d=new r.Mesh(u,s);d.position.y=.05,i.add(d);var c=new r.CylinderGeometry(.0125,.0125,.1/1.7,32),p=new r.MeshLambertMaterial({color:14276567}),h=new r.Mesh(c,p);h.rotation.x+=Math.PI/2,h.position.set(1,.05,.05),i.add(h);var f=new r.Mesh(c,p);f.rotation.x+=Math.PI/2,f.position.set(-.95,.05,.05),i.add(f);var m=new r.SphereGeometry(.035,32,32),y=new r.Mesh(m,p);y.position.set(1,.05,.08),y.scale.set(1,1,.5),i.add(y);var v=new r.Mesh(m,p);v.position.set(-.95,.05,.08),v.scale.set(1,1,.5),i.add(v);for(var g=new r.CatmullRomCurve3([new r.Vector3(.05,.125,0),new r.Vector3(.125,.025,0),new r.Vector3(-.05,-.075,0)]),x=-.95;x<=1.05;x+=.15){var w=new r.CylinderGeometry(.0125,.0125,.2,32),M=new r.Mesh(w,p);M.position.set(x,-.05,0),i.add(M);var q=new r.TubeGeometry(g,32,.015,16,!1),_=new r.Mesh(q,p);_.position.set(x,-.05,.045),_.rotation.y-=Math.PI/2,_.rotation.x+=Math.PI+Math.PI/7.5,_.rotation.z+=Math.PI/2,i.add(_);var b=new r.SphereGeometry(.035,32,32),E=new r.Mesh(b,p);E.position.set(x,-.142,.15),E.rotation.x+=Math.PI/2+Math.PI/3,i.add(E)}var O=(new r.Box3).setFromObject(i),I=Math.abs(O.max.x-O.min.x),P=Math.abs(O.max.y-O.min.y),T=Math.abs(O.max.z-O.min.z);if(e.selected){var G=new r.BoxHelper(i,10077179);G.material.linewidth=5,G.renderOrder=1e3,G.material.depthTest=!1,i.add(G)}return i.rotation.y+=Math.PI,i.position.y+=40/1.5+o,i.scale.set(200/I,40/P,20/T),Promise.resolve(i)}}},292:function(e,t,n){e.exports=n.p+"catalog/items/cleaningcart/cleaning_cart.png"},293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:0}),i=new r.MeshLambertMaterial({color:12632256}),l=new r.MeshLambertMaterial({color:13369344}),s=new r.MeshLambertMaterial({color:102}),u=new r.MeshLambertMaterial({color:16243200}),d=new r.MeshLambertMaterial({color:26163}),c=function(){for(var e=new r.Mesh(new r.BoxGeometry(1,.75,.05),i),t=-.4;t<=.45;t+=.85)for(var n=-.3;n<=.3;n+=.6){var a=new r.Mesh(new r.CylinderGeometry(.08,.08,.05,32),o);a.position.set(t,n,.15),e.add(a);var c=new r.Mesh(new r.CylinderGeometry(.06,.06,.06,32),i);a.add(c);var p=new r.Mesh(new r.CylinderGeometry(.01,.01,.08,6),o);p.position.set(0,0,0),a.add(p);var h=new r.Mesh(new r.CylinderGeometry(.06,.06,.01,32),i);h.rotation.x=.5*Math.PI,h.position.set(-.03,0,-.12),a.add(h);var f=new r.Mesh(new r.CylinderGeometry(.03725,.03725,.03,32),o);f.rotation.x=.5*Math.PI,f.position.set(-.03,0,-.1),a.add(f);var m=new r.CylinderGeometry(.055,.055,.005,3),y=new r.Mesh(m,i);y.position.set(-.02,-.035,-.06),a.add(y);var v=new r.BoxGeometry(.055,.11,.005),g=new r.Mesh(v,i);g.rotation.x=.5*Math.PI,g.position.set(0,-.035,-.04),a.add(g);var x=new r.Mesh(m,i);x.position.set(-.02,.035,-.06),a.add(x);var w=new r.Mesh(v,i);w.rotation.x=.5*Math.PI,w.position.set(0,.035,-.04),a.add(w);var M=new r.Mesh(new r.BoxGeometry(.095,.075,.01),i);M.position.set(-.02,0,-.09),a.add(M)}var q=new r.BoxGeometry(.85,.75,.05),_=new r.Mesh(q,i);_.position.set(.475,0,-.45),_.rotation.y=.5*Math.PI,e.add(_);var b=new r.Mesh(q,i);b.position.set(0,0,-.45),b.rotation.y=.5*Math.PI,e.add(b);var E=new r.Mesh(new r.BoxGeometry(.5,.75,.05),i);E.position.set(.25,0,-.8),e.add(E);var O=void 0;for(O=-.74;O<=-.1;O+=.25){var I=new r.BoxGeometry(.05,.75,.02),P=new r.Mesh(I,i);P.position.set(.45,0,O),e.add(P);var T=new r.Mesh(I,i);T.position.set(.025,0,O),e.add(T)}var G=void 0;for(G=-.76;G<=-.1;G+=.25){var S=new r.BoxGeometry(.05,.75,.015),D=new r.Mesh(S,s);D.position.set(.42,0,G),e.add(D);var R=new r.Mesh(S,s);R.position.set(.055,0,G),e.add(R);var A=new r.BoxGeometry(.02,.2,.75),L=new r.Mesh(A,s);L.position.set(.405,0,G+.1),L.rotation.x=.5*Math.PI,e.add(L);var C=new r.Mesh(A,s);C.position.set(.07,0,G+.1),C.rotation.x=.5*Math.PI,e.add(C);var k=new r.BoxGeometry(.02,.34,.215),j=new r.Mesh(k,s);j.position.set(.25,-.365,G+.1),j.rotation.z=.5*Math.PI,e.add(j);var N=new r.Mesh(k,s);N.position.set(.235,.365,G+.1),N.rotation.z=.5*Math.PI,e.add(N);var z=new r.Mesh(new r.BoxGeometry(.355,.75,.015),s);z.position.set(.2375,0,G+.205),e.add(z)}var B=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);B.position.set(.25,-.35,-.85),e.add(B);var U=B.clone();U.position.set(.25,.35,-.85),e.add(U);var V=B.clone();V.position.set(-.25,-.35,-.05),e.add(V);var F=B.clone();F.position.set(-.25,.35,-.05),e.add(F);var H=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);H.position.set(-.475,0,-.05),e.add(H);var W=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);W.position.set(.7,-.35,-.05),e.add(W);var Y=W.clone();Y.position.set(.7,.35,-.05),e.add(Y);var Z=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);Z.position.set(.925,0,-.05),e.add(Z);var X=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);X.position.set(.7,-.35,-.85),e.add(X);var J=X.clone();J.position.set(.7,.35,-.85),e.add(J);var K=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);K.position.set(.925,0,-.85),e.add(K);var Q=new r.Mesh(new r.BoxGeometry(.45,.775,.05),s);Q.position.set(.745,0,-.9),e.add(Q);var $=new r.Mesh(new r.BoxGeometry(.3,.65,.7),o);$.position.set(.75,0,-.5),e.add($);var ee=new r.CylinderGeometry(.01,.01,.05,32),te=new r.Mesh(ee,o);te.position.set(.51,-.35,-.88),e.add(te);var ne=new r.Mesh(ee,o);ne.position.set(.51,.35,-.88),e.add(ne);for(var re=void 0,ae=void 0,oe=-.3;oe<=.3;oe+=.6){ae=-.3===oe?l:s,re=-.3===oe?-1:1;var ie=new r.Mesh(new r.BoxGeometry(.2,.3,.05),ae);ie.position.set(.13,oe-.14*re,-.85),e.add(ie);var le=new r.Mesh(new r.BoxGeometry(.2,.15,.02),ae);le.position.set(.13,oe-.29*re,-.9),le.rotation.x=.5*Math.PI,e.add(le);var se=new r.Mesh(new r.BoxGeometry(.2,.15,.02),ae);se.position.set(.13,oe,-.9),se.rotation.x=.5*Math.PI,e.add(se);var ue=new r.Mesh(new r.BoxGeometry(.15,.3,.02),ae);ue.position.set(.04,oe-.14*re,-.9),ue.rotation.y=.5*Math.PI,e.add(ue);var de=new r.Mesh(new r.BoxGeometry(.15,.3,.02),ae);de.position.set(.22,oe-.14*re,-.9),de.rotation.y=.5*Math.PI,e.add(de)}for(var ce=void 0,pe=void 0,he=-.3;he<=.3;he+=.6){pe=-.3===he?u:d,ce=-.3===he?-1:1;var fe=new r.Mesh(new r.BoxGeometry(.2,.3,.05),pe);fe.position.set(.35,he-.14*ce,-.85),e.add(fe);var me=new r.Mesh(new r.BoxGeometry(.2,.15,.02),pe);me.position.set(.35,he-.29*ce,-.9),me.rotation.x=.5*Math.PI,e.add(me);var ye=new r.Mesh(new r.BoxGeometry(.2,.15,.02),pe);ye.position.set(.35,he,-.9),ye.rotation.x=.5*Math.PI,e.add(ye);var ve=new r.Mesh(new r.BoxGeometry(.15,.3,.02),pe);ve.position.set(.26,he-.14*ce,-.9),ve.rotation.y=.5*Math.PI,e.add(ve);var ge=new r.Mesh(new r.BoxGeometry(.15,.3,.02),pe);ge.position.set(.44,he-.14*ce,-.9),ge.rotation.y=.5*Math.PI,e.add(ge)}for(var xe=void 0,we=void 0,Me=-.3;Me<=.3;Me+=.6){xe=-.3===Me?l:s,we=-.3===Me?-1:1;var qe=new r.Mesh(new r.BoxGeometry(.4,.3,.05),xe);qe.position.set(-.22,Me-.14*we,-.05),e.add(qe);var _e=new r.Mesh(new r.BoxGeometry(.4,.25,.02),xe);_e.position.set(-.22,Me-.28*we,-.2),_e.rotation.x=.5*Math.PI,e.add(_e);var be=new r.Mesh(new r.BoxGeometry(.4,.25,.02),xe);be.position.set(-.22,Me,-.2),be.rotation.x=.5*Math.PI,e.add(be);var Ee=new r.Mesh(new r.BoxGeometry(.25,.3,.02),xe);Ee.position.set(-.41,Me-.14*we,-.2),Ee.rotation.y=.5*Math.PI,e.add(Ee);var Oe=new r.Mesh(new r.BoxGeometry(.25,.3,.02),xe);Oe.position.set(-.03,Me-.14*we,-.2),Oe.rotation.y=.5*Math.PI,e.add(Oe)}for(var Ie=-.45;Ie<=.55;Ie+=.9){var Pe=new r.Mesh(new r.CylinderGeometry(.02,.02,.06,32),s);Pe.rotation.x=.5*Math.PI,Pe.position.set(.48,Ie,-1.3),e.add(Pe);var Te=new r.Mesh(new r.CylinderGeometry(.02,.02,1.3,32),i);Te.position.set(0,.68,0),Pe.add(Te);var Ge=new r.Mesh(new r.CylinderGeometry(.025,.025,.06,32),s);Ge.rotation.y=.5*Math.PI,Ge.position.set(0,1.32,0),Pe.add(Ge);var Se=new r.Mesh(new r.BoxGeometry(.02,.15,.5),s);Se.position.set(0,1.34,0),Se.rotation.z=.5*Math.PI,Se.rotation.y=.5*Math.PI,Pe.add(Se);var De=new r.Mesh(new r.BoxGeometry(.01,.2,.55),i);De.position.set(0,1.35,0),De.rotation.z=.5*Math.PI,De.rotation.y=.5*Math.PI,Pe.add(De)}var Re=new r.Mesh(new r.CylinderGeometry(.01,.01,.05,32),s);Re.position.set(.48,-.39,-.85),e.add(Re);var Ae=new r.Mesh(new r.CylinderGeometry(.025,.025,.03,32),s);Ae.position.set(.48,-.44,-.85),Ae.rotation.x=.5*Math.PI,e.add(Ae);var Le=new r.Mesh(new r.CylinderGeometry(.01,.01,.05,32),s);Le.position.set(.48,.39,-.85),e.add(Le);var Ce=new r.Mesh(new r.CylinderGeometry(.025,.025,.03,32),s);return Ce.position.set(.48,.44,-.85),Ce.rotation.x=.5*Math.PI,e.add(Ce),e}(),p=function(){for(var e=new r.Mesh(new r.BoxGeometry(1,.75,.05),i),t=-.4;t<=.45;t+=.85)for(var n=-.3;n<=.3;n+=.6){var a=new r.Mesh(new r.CylinderGeometry(.08,.08,.05,32),o);a.position.set(t,n,.15),e.add(a);var c=new r.Mesh(new r.CylinderGeometry(.06,.06,.06,32),i);a.add(c);var p=new r.Mesh(new r.CylinderGeometry(.01,.01,.08,6),o);p.position.set(0,0,0),a.add(p);var h=new r.Mesh(new r.CylinderGeometry(.06,.06,.01,32),i);h.rotation.x=.5*Math.PI,h.position.set(-.03,0,-.12),a.add(h);var f=new r.Mesh(new r.CylinderGeometry(.03725,.03725,.03,32),o);f.rotation.x=.5*Math.PI,f.position.set(-.03,0,-.1),a.add(f);var m=new r.CylinderGeometry(.055,.055,.005,3),y=new r.Mesh(m,i);y.position.set(-.02,-.035,-.06),a.add(y);var v=new r.BoxGeometry(.055,.11,.005),g=new r.Mesh(v,i);g.rotation.x=.5*Math.PI,g.position.set(0,-.035,-.04),a.add(g);var x=new r.Mesh(m,i);x.position.set(-.02,.035,-.06),a.add(x);var w=new r.Mesh(v,i);w.rotation.x=.5*Math.PI,w.position.set(0,.035,-.04),a.add(w);var M=new r.Mesh(new r.BoxGeometry(.095,.075,.01),i);M.position.set(-.02,0,-.09),a.add(M)}var q=new r.BoxGeometry(.85,.75,.05),_=new r.Mesh(q,i);_.position.set(.475,0,-.45),_.rotation.y=.5*Math.PI,e.add(_);var b=new r.Mesh(q,i);b.position.set(0,0,-.45),b.rotation.y=.5*Math.PI,e.add(b);var E=new r.Mesh(new r.BoxGeometry(.5,.75,.05),i);E.position.set(.25,0,-.8),e.add(E);var O=void 0;for(O=-.74;O<=-.1;O+=.25){var I=new r.BoxGeometry(.05,.75,.02),P=new r.Mesh(I,i);P.position.set(.45,0,O),e.add(P);var T=new r.Mesh(I,i);T.position.set(.025,0,O),e.add(T)}var G=void 0;for(G=-.76;G<=-.1;G+=.25){var S=new r.BoxGeometry(.05,.75,.015),D=new r.Mesh(S,s);D.position.set(.42,0,G),e.add(D);var R=new r.Mesh(S,s);R.position.set(.055,0,G),e.add(R);var A=new r.BoxGeometry(.02,.2,.75),L=new r.Mesh(A,s);L.position.set(.405,0,G+.1),L.rotation.x=.5*Math.PI,e.add(L);var C=new r.Mesh(A,s);C.position.set(.07,0,G+.1),C.rotation.x=.5*Math.PI,e.add(C);var k=new r.BoxGeometry(.02,.34,.215),j=new r.Mesh(k,s);j.position.set(.25,-.365,G+.1),j.rotation.z=.5*Math.PI,e.add(j);var N=new r.Mesh(k,s);N.position.set(.235,.365,G+.1),N.rotation.z=.5*Math.PI,e.add(N);var z=new r.Mesh(new r.BoxGeometry(.355,.75,.015),s);z.position.set(.2375,0,G+.205),e.add(z)}var B=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);B.position.set(.25,-.35,-.85),e.add(B);var U=B.clone();U.position.set(.25,.35,-.85),e.add(U);var V=B.clone();V.position.set(-.25,-.35,-.05),e.add(V);var F=B.clone();F.position.set(-.25,.35,-.05),e.add(F);var H=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);H.position.set(-.475,0,-.05),e.add(H);var W=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);W.position.set(.7,-.35,-.05),e.add(W);var Y=W.clone();Y.position.set(.7,.35,-.05),e.add(Y);var Z=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);Z.position.set(.925,0,-.05),e.add(Z);var X=new r.Mesh(new r.BoxGeometry(.5,.05,.05),i);X.position.set(.7,-.35,-.85),e.add(X);var J=X.clone();J.position.set(.7,.35,-.85),e.add(J);var K=new r.Mesh(new r.BoxGeometry(.05,.65,.05),i);K.position.set(.925,0,-.85),e.add(K);var Q=new r.Mesh(new r.BoxGeometry(.45,.775,.05),s);Q.position.set(.745,0,-.9),e.add(Q);var $=new r.Mesh(new r.BoxGeometry(.3,.65,.7),o);$.position.set(.75,0,-.5),e.add($);var ee=new r.CylinderGeometry(.01,.01,.05,32),te=new r.Mesh(ee,o);te.position.set(.51,-.35,-.88),e.add(te);var ne=new r.Mesh(ee,o);ne.position.set(.51,.35,-.88),e.add(ne);for(var re=void 0,ae=void 0,oe=-.3;oe<=.3;oe+=.6){ae=-.3===oe?l:s,re=-.3===oe?-1:1;var ie=new r.Mesh(new r.BoxGeometry(.2,.3,.05),ae);ie.position.set(.13,oe-.14*re,-.85),e.add(ie);var le=new r.Mesh(new r.BoxGeometry(.2,.15,.02),ae);le.position.set(.13,oe-.29*re,-.9),le.rotation.x=.5*Math.PI,e.add(le);var se=new r.Mesh(new r.BoxGeometry(.2,.15,.02),ae);se.position.set(.13,oe,-.9),se.rotation.x=.5*Math.PI,e.add(se);var ue=new r.Mesh(new r.BoxGeometry(.15,.3,.02),ae);ue.position.set(.04,oe-.14*re,-.9),ue.rotation.y=.5*Math.PI,e.add(ue);var de=new r.Mesh(new r.BoxGeometry(.15,.3,.02),ae);de.position.set(.22,oe-.14*re,-.9),de.rotation.y=.5*Math.PI,e.add(de)}for(var ce=void 0,pe=void 0,he=-.3;he<=.3;he+=.6){pe=-.3===he?u:d,ce=-.3===he?-1:1;var fe=new r.Mesh(new r.BoxGeometry(.2,.3,.05),pe);fe.position.set(.35,he-.14*ce,-.85),e.add(fe);var me=new r.Mesh(new r.BoxGeometry(.2,.15,.02),pe);me.position.set(.35,he-.29*ce,-.9),me.rotation.x=.5*Math.PI,e.add(me);var ye=new r.Mesh(new r.BoxGeometry(.2,.15,.02),pe);ye.position.set(.35,he,-.9),ye.rotation.x=.5*Math.PI,e.add(ye);var ve=new r.Mesh(new r.BoxGeometry(.15,.3,.02),pe);ve.position.set(.26,he-.14*ce,-.9),ve.rotation.y=.5*Math.PI,e.add(ve);var ge=new r.Mesh(new r.BoxGeometry(.15,.3,.02),pe);ge.position.set(.44,he-.14*ce,-.9),ge.rotation.y=.5*Math.PI,e.add(ge)}for(var xe=void 0,we=void 0,Me=-.3;Me<=.3;Me+=.6){xe=-.3===Me?l:s,we=-.3===Me?-1:1;var qe=new r.Mesh(new r.BoxGeometry(.4,.3,.05),xe);qe.position.set(-.22,Me-.14*we,-.05),e.add(qe);var _e=new r.Mesh(new r.BoxGeometry(.4,.25,.02),xe);_e.position.set(-.22,Me-.28*we,-.2),_e.rotation.x=.5*Math.PI,e.add(_e);var be=new r.Mesh(new r.BoxGeometry(.4,.25,.02),xe);be.position.set(-.22,Me,-.2),be.rotation.x=.5*Math.PI,e.add(be);var Ee=new r.Mesh(new r.BoxGeometry(.25,.3,.02),xe);Ee.position.set(-.41,Me-.14*we,-.2),Ee.rotation.y=.5*Math.PI,e.add(Ee);var Oe=new r.Mesh(new r.BoxGeometry(.25,.3,.02),xe);Oe.position.set(-.03,Me-.14*we,-.2),Oe.rotation.y=.5*Math.PI,e.add(Oe)}for(var Ie=-.45;Ie<=.55;Ie+=.9){var Pe=new r.Mesh(new r.CylinderGeometry(.02,.02,.06,32),s);Pe.rotation.x=.5*Math.PI,Pe.position.set(.48,Ie,-1.3),e.add(Pe);var Te=new r.Mesh(new r.CylinderGeometry(.02,.02,1.3,32),i);Te.position.set(0,.68,0),Pe.add(Te);var Ge=new r.Mesh(new r.CylinderGeometry(.025,.025,.06,32),s);Ge.rotation.y=.5*Math.PI,Ge.position.set(0,1.32,0),Pe.add(Ge);var Se=new r.Mesh(new r.BoxGeometry(.02,.15,.5),s);Se.position.set(0,1.34,0),Se.rotation.z=.5*Math.PI,Se.rotation.y=.5*Math.PI,Pe.add(Se);var De=new r.Mesh(new r.BoxGeometry(.01,.2,.55),i);De.position.set(0,1.35,0),De.rotation.z=.5*Math.PI,De.rotation.y=.5*Math.PI,Pe.add(De)}var Re=new r.Mesh(new r.CylinderGeometry(.01,.01,.05,32),s);Re.position.set(.48,-.39,-.85),e.add(Re);var Ae=new r.Mesh(new r.CylinderGeometry(.025,.025,.03,32),s);Ae.position.set(.48,-.44,-.85),Ae.rotation.x=.5*Math.PI,e.add(Ae);var Le=new r.Mesh(new r.CylinderGeometry(.01,.01,.05,32),s);Le.position.set(.48,.39,-.85),e.add(Le);var Ce=new r.Mesh(new r.CylinderGeometry(.025,.025,.03,32),s);return Ce.position.set(.48,.44,-.85),Ce.rotation.x=.5*Math.PI,e.add(Ce),e}();t.default={name:"cleaning cart",prototype:"items",info:{tag:["metal","plastic"],title:"cleaning cart",description:"cleaning cart",image:n(292)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-50,-40)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:100,height:80,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(50, 40) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(c.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),u=Math.abs(i.max.z-i.min.z);o.rotation.x=.5*Math.PI,o.position.y+=20+a,o.scale.set(100/l,80/u,100/s);var d=new r.Object3D;d.add(p.clone()),d.rotation.x=.5*Math.PI,d.position.y+=20+a,d.scale.set(100/l,80/u,100/s);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(d,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},294:function(e,t,n){e.exports=n.p+"catalog/items/child-chair-desk/chairDesk.png"},295:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));t.default={name:"child chair desk",prototype:"items",info:{tag:["furnishings","wood","metal"],title:"child chair desk",description:"child chair desk",image:n(294)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation;r=r>-180&&r<0?360:0;var o={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-35,-50)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:70,height:100,style:o}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(35, 50) scale(1,-1) rotate("+r/2+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=new r.MeshLambertMaterial({color:14276567}),o=new r.MeshPhongMaterial({color:16711680}),i=new r.MeshPhongMaterial({color:0}),l=(e.properties.get("altitude").get("length"),new r.Object3D),s=new r.Shape;s.moveTo(0,.25),s.lineTo(0,.95),s.quadraticCurveTo(0,1.2,.25,1.2),s.lineTo(.75,1.2),s.quadraticCurveTo(1,1.2,1,.95),s.lineTo(1,.25),s.quadraticCurveTo(1,0,.75,0),s.lineTo(.25,0),s.quadraticCurveTo(0,0,0,.25);var u=new r.ExtrudeGeometry(s,{steps:2,depth:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),d=new r.Mesh(u,o);d.position.set(0,1.2,0),d.rotation.x+=Math.PI/2,l.add(d);var c=new r.CylinderGeometry(.08,.08,1,32),p=new r.CylinderGeometry(.08,.08,.6,32),h=new r.CylinderGeometry(.08,.08,.2,32),f=new r.CylinderGeometry(.06,.06,.025,32),m=new r.CylinderGeometry(.08,.08,.02,32),y=new r.Mesh(c,a);y.rotation.x+=Math.PI/2,y.position.set(.5,.6,.6),d.add(y);var v=new r.Mesh(c,a);v.position.set(.5,.6,1.1),d.add(v);var g=new r.Mesh(c,a);g.rotation.z+=Math.PI/2,g.position.set(0,.6,1.1),d.add(g);var x=new r.Mesh(p,a);x.rotation.x+=Math.PI/2,x.position.set(-.5,.6,.8),d.add(x);var w=new r.Mesh(h,a);w.position.set(-.5,.6,1.1),d.add(w);var M=new r.Mesh(f,i);M.position.set(.5,.2,1.18),M.rotation.x+=Math.PI/2,d.add(M);var q=new r.Mesh(f,i);q.position.set(.5,1,1.18),q.rotation.x+=Math.PI/2,d.add(q);var _=new r.Mesh(f,i);_.position.set(-.9,0,1.18),_.rotation.x+=Math.PI/2,d.add(_);var b=new r.Mesh(f,i);b.position.set(-.9,1.2,1.18),b.rotation.x+=Math.PI/2,d.add(b);var E=new r.Mesh(m,a);E.position.set(-1,0,1.1),E.rotation.z+=Math.PI/2,d.add(E);var O=new r.Mesh(m,a);O.position.set(-1,1.2,1.1),O.rotation.z+=Math.PI/2,d.add(O);var I=new r.CatmullRomCurve3([new r.Vector3(.35,0,0),new r.Vector3(0,0,0),new r.Vector3(-.05,.25,0)]),P=new r.TubeGeometry(I,32,.03,16,!1),T=new r.Mesh(P,a);T.rotation.x-=Math.PI/2,T.position.set(-1,.35,.48),d.add(T);var G=new r.Mesh(P,a);G.position.set(-1,.85,.48),G.rotation.x-=Math.PI/2,d.add(G);var S=new r.TorusGeometry(.5,.08,32,32,Math.PI/2),D=new r.Mesh(S,a);D.position.set(-1,.7,1.1),d.add(D);var R=new r.Mesh(S,a);R.rotation.x+=Math.PI,R.position.set(-1,.5,1.1),d.add(R);var A=new r.Shape;A.moveTo(0,.25),A.lineTo(0,.55),A.quadraticCurveTo(0,.8,.25,.8),A.lineTo(.55,.8),A.quadraticCurveTo(.8,.8,.8,.55),A.lineTo(.8,.25),A.quadraticCurveTo(.8,0,.55,0),A.lineTo(.25,0),A.quadraticCurveTo(0,0,0,.25);var L={steps:2,depth:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},C=new r.ExtrudeGeometry(A,L),k=new r.Mesh(C,o);k.position.set(-.9,.2,.45),d.add(k);var j=new r.Shape;j.moveTo(0,.25),j.lineTo(0,.55),j.quadraticCurveTo(0,.8,.25,.8),j.lineTo(.55,.8),j.quadraticCurveTo(.8,.8,.8,.55),j.lineTo(.8,.25),j.quadraticCurveTo(.8,0,.55,0),j.lineTo(.25,0),j.quadraticCurveTo(0,0,0,.25);var N=new r.Path;N.moveTo(3.5,3.5),N.absellipse(.65,.4,.035,.125,.125,2*Math.PI,!1),j.holes.push(N);var z=new r.ExtrudeGeometry(j,L),B=new r.Mesh(z,o);B.position.set(-1.08,.2,.45),B.rotation.y+=Math.PI/2,d.add(B);var U=(new r.Box3).setFromObject(l),V=Math.abs(U.max.x-U.min.x),F=Math.abs(U.max.y-U.min.y),H=Math.abs(U.max.z-U.min.z);if(e.selected){var W=new r.BoxHelper(l,10077179);W.material.linewidth=5,W.renderOrder=1e3,W.material.depthTest=!1,l.add(W)}return l.rotation.y+=Math.PI/2,l.position.x+=-100/2.75,l.scale.set(70/H,100/F,125/V),Promise.resolve(l)}}},296:function(e,t,n){e.exports=n.p+"catalog/items/chairdesk/chairdesk.png"},297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshBasicMaterial({color:13882323}),i=new r.MeshBasicMaterial({color:8421504}),l=new r.MeshBasicMaterial({color:0}),s=new r.MeshBasicMaterial({color:0});function u(){var e=new r.Object3D,t=new r.CylinderGeometry(.01,.01,.18,32,32),n=new r.CylinderGeometry(.01,.01,.04,32,32),a=new r.SphereGeometry(.01,32,32),o=new r.Mesh(t,s),i=new r.Mesh(n,s),u=new r.Mesh(t,s),d=new r.Mesh(n,s),c=new r.Mesh(a,s),p=new r.Mesh(a,s),h=function(){var e=new r.Object3D,t=new r.BoxGeometry(.3,.5,.04),n=new r.CylinderGeometry(.02,.02,.3,32,32),a=new r.CylinderGeometry(.02,.02,.5,32,32),o=new r.SphereGeometry(.02,32,32),i=new r.Mesh(n,l),s=new r.Mesh(n,l),u=new r.Mesh(a,l),d=new r.Mesh(a,l),c=new r.Mesh(o,l),p=new r.Mesh(o,l),h=new r.Mesh(o,l),f=new r.Mesh(o,l),m=new r.Mesh(t,l);return i.rotation.z=Math.PI/2,i.position.y=.25,c.position.y=.15,s.rotation.z=Math.PI/2,s.position.y=-.25,p.position.y=-.15,u.position.x=.15,h.position.y=.25,d.position.x=-.15,f.position.y=-.25,d.add(f),e.add(d),u.add(h),e.add(u),s.add(p),e.add(s),i.add(c),e.add(i),e.add(m),e}();return o.rotation.z=96*Math.PI/180,o.position.z=.05,o.position.x=.09,i.rotation.z=96*-Math.PI/180,i.position.x=.02*Math.cos(6*Math.PI/180),u.rotation.z=96*Math.PI/180,u.position.z=-.05,u.position.x=.09,d.rotation.z=96*-Math.PI/180,d.position.x=.02*Math.cos(6*Math.PI/180),c.position.y=.09,p.position.y=.09,c.add(i),p.add(d),h.rotation.y=Math.PI/2,h.position.y=.27,o.add(c),e.add(o),u.add(p),e.add(u),e.add(h),e}function d(){var e=new r.Object3D,t=new r.CylinderGeometry(.01,.01,.18,8,8),n=new r.CylinderGeometry(.01,.01,.04,8,8),a=new r.SphereGeometry(.01,32,32),o=new r.Mesh(t,s),i=new r.Mesh(n,s),u=new r.Mesh(t,s),d=new r.Mesh(n,s),c=new r.Mesh(a,s),p=new r.Mesh(a,s),h=function(){var e=new r.Object3D,t=new r.BoxGeometry(.3,.5,.04),n=new r.CylinderGeometry(.02,.02,.3,8,8),a=new r.CylinderGeometry(.02,.02,.5,8,8),o=new r.SphereGeometry(.02,32,32),i=new r.Mesh(n,l),s=new r.Mesh(n,l),u=new r.Mesh(a,l),d=new r.Mesh(a,l),c=new r.Mesh(o,l),p=new r.Mesh(o,l),h=new r.Mesh(o,l),f=new r.Mesh(o,l),m=new r.Mesh(t,l);return i.rotation.z=Math.PI/2,i.position.y=.25,c.position.y=.15,s.rotation.z=Math.PI/2,s.position.y=-.25,p.position.y=-.15,u.position.x=.15,h.position.y=.25,d.position.x=-.15,f.position.y=-.25,d.add(f),e.add(d),u.add(h),e.add(u),s.add(p),e.add(s),i.add(c),e.add(i),e.add(m),e}();return o.rotation.z=96*Math.PI/180,o.position.z=.05,o.position.x=.09,i.rotation.z=96*-Math.PI/180,i.position.x=.02*Math.cos(6*Math.PI/180),u.rotation.z=96*Math.PI/180,u.position.z=-.05,u.position.x=.09,d.rotation.z=96*-Math.PI/180,d.position.x=.02*Math.cos(6*Math.PI/180),c.position.y=.09,p.position.y=.09,c.add(i),p.add(d),h.rotation.y=Math.PI/2,h.position.y=.27,o.add(c),e.add(o),u.add(p),e.add(u),e.add(h),e}function c(){var e=new r.CylinderGeometry(.027,.02,.3,32,32),t=new r.CylinderGeometry(.02,.01,.02,32,32),n=new r.CylinderGeometry(.008,.008,.01,32,32),a=new r.SphereGeometry(.02,32,32),l=new r.CylinderGeometry(.025,.025,.05,32,32),u=new r.CylinderGeometry(.02,.02,.051,32,32),d=new r.CylinderGeometry(.026,.026,.045,32,32),c=new r.Mesh(e,i),p=new r.Mesh(t,i),h=new r.Mesh(n,o),f=new r.Mesh(a,i),m=new r.Mesh(l,s),y=new r.Mesh(d,i),v=new r.Mesh(u,i),g=new r.Object3D,x=new r.Object3D;return c.rotation.z=80*Math.PI/180,c.position.x=.16,g.rotation.z=80*-Math.PI/180,g.position.y=.15*-Math.sin(80*Math.PI/180),p.position.y=-.01,h.position.y=-.015,m.rotation.x=Math.PI/2,m.position.y=-.025,y.position.z=-.003,m.add(v),m.add(y),h.add(m),p.add(h),g.add(p),g.add(f),c.add(g),x.add(c),x}function p(){var e=new r.CylinderGeometry(.027,.02,.3,8,8),t=new r.CylinderGeometry(.02,.01,.02,8,8),n=new r.CylinderGeometry(.008,.008,.01,8,8),a=new r.SphereGeometry(.02,8,8),l=new r.CylinderGeometry(.025,.025,.05,8,8),u=new r.CylinderGeometry(.02,.02,.051,8,8),d=new r.Mesh(e,i),c=new r.Mesh(t,i),p=new r.Mesh(n,o),h=new r.Mesh(a,i),f=new r.Mesh(l,s),m=new r.Mesh(u,i),y=new r.Object3D,v=new r.Object3D;return d.rotation.z=80*Math.PI/180,d.position.x=.16,y.rotation.z=80*-Math.PI/180,y.position.y=.15*-Math.sin(80*Math.PI/180),c.position.y=-.01,p.position.y=-.015,f.rotation.x=Math.PI/2,f.position.y=-.025,f.add(m),p.add(f),c.add(p),y.add(c),y.add(h),d.add(y),v.add(d),v}function h(){var e=new r.Object3D,t=new r.SphereGeometry(.01,32,32),n=new r.CylinderGeometry(.01,.01,.24,32,32),a=new r.CylinderGeometry(.01,.01,.04,32,32),o=new r.CylinderGeometry(.02,.025,.2,32,32),s=new r.Mesh(t,i),u=new r.Mesh(t,i),d=new r.Mesh(n,i),c=new r.Mesh(a,i),p=new r.Mesh(o,l);return d.rotation.x=Math.PI/2,d.rotation.z=25*-Math.PI/180,d.position.set(.12*Math.sin(d.rotation.z),0,-.12*Math.cos(d.rotation.z)),c.rotation.z=100*Math.PI/180,c.position.x=.02,c.position.y=.0035,u.position.y=-.12,p.position.y=-.1-.02,c.add(p),u.add(c),d.add(u),s.add(d),e.add(s),e}function f(){var e=new r.Object3D,t=new r.SphereGeometry(.01,8,8),n=new r.CylinderGeometry(.01,.01,.24,8,8),a=new r.CylinderGeometry(.01,.01,.04,8,8),o=new r.CylinderGeometry(.02,.025,.2,8,8),s=new r.Mesh(t,i),u=new r.Mesh(t,i),d=new r.Mesh(n,i),c=new r.Mesh(a,i),p=new r.Mesh(o,l);return d.rotation.x=Math.PI/2,d.rotation.z=25*-Math.PI/180,d.position.set(.12*Math.sin(d.rotation.z),0,-.12*Math.cos(d.rotation.z)),c.rotation.z=100*Math.PI/180,c.position.x=.02,c.position.y=.0035,u.position.y=-.12,p.position.y=-.1-.02,c.add(p),u.add(c),d.add(u),s.add(d),e.add(s),e}function m(){var e=new r.Object3D,t=new r.BoxGeometry(.4,.04,.4),n=new r.Mesh(t,l),a=y(),o=y(),i=y(),s=y();return a.rotation.x=Math.PI/2,a.position.x=.2,o.rotation.x=-Math.PI/2,o.position.x=-.2,i.rotation.z=-Math.PI/2,i.position.z=-.2,s.rotation.z=Math.PI/2,s.position.z=.2,n.add(a),n.add(o),n.add(i),n.add(s),e.add(n),e}function y(){var e=new r.CylinderGeometry(.02,.02,.4,32,32,!0),t=new r.SphereGeometry(.02,32,32),n=new r.Mesh(t,l),a=new r.Mesh(e,l);return a.openEnded=1,n.position.y=.2,a.add(n),a}function v(){var e=new r.Object3D,t=new r.CylinderGeometry(.027,.027,.05,32,32),n=new r.CylinderGeometry(.03,.03,.2,32,32),a=new r.CylinderGeometry(.04,.04,.06,32,32),o=new r.TorusGeometry(.04,.025,32,100),l=new r.CylinderGeometry(.02,.02,.14,32,32),s=new r.Mesh(t,i),u=new r.Mesh(n,i),d=new r.Mesh(a,i),p=new r.Mesh(o,i),h=new r.Mesh(l,i),f=function(){for(var e=new r.Object3D,t=0;t<5;t++){var n=c();n.rotation.y=2*Math.PI*t*72/360,e.add(n)}return e}();return s.position.y=-.125,h.position.y=.17,f.position.y=-.07,d.position.y=-.05,p.rotation.x=Math.PI/2,p.position.y=-.05,u.add(d),u.add(p),u.add(f),u.add(s),u.add(h),e.add(u),e}function g(){var e=new r.Object3D,t=new r.CylinderGeometry(.027,.027,.05,8,8),n=new r.CylinderGeometry(.03,.03,.2,8,8),a=new r.CylinderGeometry(.04,.04,.06,8,8),o=new r.TorusGeometry(.04,.025,8,100),l=new r.CylinderGeometry(.02,.02,.14,8,8),s=new r.Mesh(t,i),u=new r.Mesh(n,i),d=new r.Mesh(a,i),c=new r.Mesh(o,i),h=new r.Mesh(l,i),f=function(){for(var e=new r.Object3D,t=0;t<5;t++){var n=p();n.rotation.y=2*Math.PI*t*72/360,e.add(n)}return e}();return s.position.y=-.125,h.position.y=.17,f.position.y=-.07,d.position.y=-.05,c.rotation.x=Math.PI/2,c.position.y=-.05,u.add(d),u.add(c),u.add(f),u.add(s),u.add(h),e.add(u),e}var x=function(){var e=new r.Mesh,t=v(),n=function(){var e=new r.Object3D,t=new r.BoxGeometry(.28,.06,.07),n=new r.BoxGeometry(.3,.04,.09),a=new r.CylinderGeometry(.0045,.0045,.07,32,32),o=new r.CylinderGeometry(.0045,.0045,.09,32,32),u=new r.CylinderGeometry(.007,.005,.06,32),d=new r.CylinderGeometry(.01,.01,.2,32,32),c=new r.Mesh(t,i),p=new r.Mesh(n,i),f=new r.Mesh(o,l),y=new r.Mesh(a,l),v=new r.Mesh(u,s),g=new r.Mesh(u,s),x=new r.Mesh(d,i),w=new r.Mesh(d,i),M=m(),q=h(),_=h();return c.position.y=.03,p.rotation.z=6*Math.PI/180,p.position.y=.06,f.rotation.x=80*Math.PI/180,f.position.z=.08,f.position.x=.1,y.rotation.x=80*-Math.PI/180,y.position.z=-.07,y.position.x=.08,g.position.y=.065,v.position.y=.075,M.position.y=.04,x.rotation.x=Math.PI/2,x.rotation.y=6*-Math.PI/180,w.rotation.x=Math.PI/2,w.rotation.y=6*-Math.PI/180,x.position.z=.045+.1,w.position.z=-.045-.1,q.position.y=.1,_.position.y=-.1,p.add(M),x.add(q),w.add(_),p.add(x),p.add(w),f.add(v),y.add(g),c.add(f),c.add(y),e.add(p),e.add(c),e}(),a=u();return t.position.y=.17,n.position.y=.1+.14,a.position.y=.06,a.position.x=-.25,n.add(a),t.add(n),e.add(t),e.rotation.y=-.5*Math.PI,e.position.z-=.02,e}(),w=function(){var e=new r.Mesh,t=g(),n=function(){var e=new r.Object3D,t=new r.BoxGeometry(.28,.06,.07),n=new r.BoxGeometry(.3,.04,.09),a=new r.CylinderGeometry(.01,.01,.2,8,8),o=new r.Mesh(t,i),l=new r.Mesh(n,i),s=new r.Mesh(a,i),u=new r.Mesh(a,i),d=m(),c=f(),p=f();return o.position.y=.03,l.rotation.z=6*Math.PI/180,l.position.y=.06,d.position.y=.04,s.rotation.x=Math.PI/2,s.rotation.y=6*-Math.PI/180,u.rotation.x=Math.PI/2,u.rotation.y=6*-Math.PI/180,s.position.z=.045+.1,u.position.z=-.045-.1,c.position.y=.1,p.position.y=-.1,l.add(d),s.add(c),u.add(p),l.add(s),l.add(u),e.add(l),e.add(o),e}(),a=d();return t.position.y=.17,n.position.y=.1+.14,a.position.y=.06,a.position.x=-.25,n.add(a),t.add(n),e.add(t),e.rotation.y=-.5*Math.PI,e.position.z-=.02,e}();t.default={name:"chairdesk",prototype:"items",info:{tag:["furnishings","wood"],title:"chairdesk",description:"office chair",image:n(296)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-35,-35)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:70,height:70,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(35, 35) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(x.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),u=Math.abs(i.max.z-i.min.z);o.position.y+=a,o.position.x+=-8.75,o.position.z+=17.5,o.scale.set(70/l,70/u,100/s);var d=new r.Object3D;d.add(w.clone()),d.position.y+=a,d.position.x+=-8.75,d.position.z+=17.5,d.scale.set(70/l,70/u,100/s);var c=new r.LOD;if(c.addLevel(o,200),c.addLevel(d,900),c.updateMatrix(),c.matrixAutoUpdate=!1,e.selected){var p=new r.BoxHelper(c,10077179);p.material.linewidth=5,p.renderOrder=1e3,p.material.depthTest=!1,c.add(p)}return Promise.resolve(c)}}},298:function(e,t,n){e.exports=n.p+"catalog/items/chair/chair.png"},299:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=function(){var e=new r.Mesh,t=new r.CylinderGeometry(.02,.02,.5,32,32),n=new r.MeshLambertMaterial({color:14276567}),a=new r.Mesh(t,n);a.rotation.x+=Math.PI/2,a.position.z+=.25;var o=new r.Mesh(t,n);o.rotation.x+=Math.PI/2,o.position.z+=.25,o.position.y+=.4;var i=new r.Mesh(t,n);i.rotation.x+=Math.PI/2,i.position.z+=.25,i.position.x+=.4;var l=new r.Mesh(t,n);l.rotation.x+=Math.PI/2,l.position.z+=.25,l.position.y+=.4,l.position.x+=.4;var s=new r.Mesh(t,n);s.rotation.x+=Math.PI/2,s.position.z+=.75;var u=new r.Mesh(t,n);u.rotation.x+=Math.PI/2,u.position.z+=.75,u.position.x+=.4;var d=new r.MeshLambertMaterial({color:10194037}),c=new r.Shape;c.moveTo(0,.05),c.lineTo(0,.43),c.quadraticCurveTo(0,.48,.05,.48),c.lineTo(.45,.48),c.quadraticCurveTo(.5,.48,.5,.43),c.lineTo(.5,.05),c.quadraticCurveTo(.5,0,.45,0),c.lineTo(.05,0),c.quadraticCurveTo(0,0,0,.05);var p=new r.ExtrudeGeometry(c,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),h=new r.Mesh(p,d);h.position.x+=-.05,h.position.y+=-.04,h.position.z+=.5;var f=new r.Shape;f.moveTo(0,.05),f.lineTo(0,.2),f.quadraticCurveTo(0,.25,.05,.25),f.lineTo(.4,.25),f.quadraticCurveTo(.45,.25,.45,.2),f.lineTo(.45,.05),f.quadraticCurveTo(.45,0,.4,0),f.lineTo(.05,0),f.quadraticCurveTo(0,0,0,.05);var m=new r.ExtrudeGeometry(f,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new r.Mesh(m,d);return y.rotation.x+=Math.PI/2,y.position.z+=.75,y.position.y+=.03,y.position.x+=-.025,e.add(y),e.add(h),e.add(a),e.add(o),e.add(i),e.add(l),e.add(s),e.add(u),e}(),i=function(){var e=new r.Mesh,t=new r.CylinderGeometry(.02,.02,.5,8,8),n=new r.MeshLambertMaterial({color:14276567}),a=new r.Mesh(t,n);a.rotation.x+=Math.PI/2,a.position.z+=.25;var o=new r.Mesh(t,n);o.rotation.x+=Math.PI/2,o.position.z+=.25,o.position.y+=.4;var i=new r.Mesh(t,n);i.rotation.x+=Math.PI/2,i.position.z+=.25,i.position.x+=.4;var l=new r.Mesh(t,n);l.rotation.x+=Math.PI/2,l.position.z+=.25,l.position.y+=.4,l.position.x+=.4;var s=new r.Mesh(t,n);s.rotation.x+=Math.PI/2,s.position.z+=.75;var u=new r.Mesh(t,n);u.rotation.x+=Math.PI/2,u.position.z+=.75,u.position.x+=.4;var d=new r.MeshLambertMaterial({color:10194037}),c=new r.Shape;c.moveTo(0,.025),c.lineTo(0,.48-.025),c.quadraticCurveTo(0,.48,.025,.48),c.lineTo(.475,.48),c.quadraticCurveTo(.5,.48,.5,.48-.025),c.lineTo(.5,.025),c.quadraticCurveTo(.5,0,.475,0),c.lineTo(.025,0),c.quadraticCurveTo(0,0,0,.025);var p=new r.ExtrudeGeometry(c,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),h=new r.Mesh(p,d);h.position.x+=-.05,h.position.y+=-.04,h.position.z+=.5;var f=new r.Shape;f.moveTo(0,.025),f.lineTo(0,.225),f.quadraticCurveTo(0,.25,.025,.25),f.lineTo(.425,.25),f.quadraticCurveTo(.45,.25,.45,.225),f.lineTo(.45,.025),f.quadraticCurveTo(.45,0,.425,0),f.lineTo(.025,0),f.quadraticCurveTo(0,0,0,.025);var m=new r.ExtrudeGeometry(f,{steps:2,depth:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new r.Mesh(m,d);return y.rotation.x+=Math.PI/2,y.position.z+=.75,y.position.y+=.03,y.position.x+=-.025,e.add(y),e.add(h),e.add(a),e.add(o),e.add(i),e.add(l),e.add(s),e.add(u),e}();t.default={name:"sedia",prototype:"items",info:{tag:["furnishings","wood"],title:"chair",description:"chair",image:n(298)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-27.5,-27.5)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:55,height:55,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(27.5, 27.5) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),l=new r.Object3D;l.add(o.clone());var s=(new r.Box3).setFromObject(l),u=Math.abs(s.max.x-s.min.x),d=Math.abs(s.max.y-s.min.y),c=Math.abs(s.max.z-s.min.z);l.rotation.x+=-Math.PI/2,l.position.y+=a,l.position.x+=-55/3.5,l.position.z+=55/4,l.scale.set(82.5/c,55/1.5/u,50/d);var p=new r.Object3D;p.add(i.clone()),p.rotation.x+=-Math.PI/2,p.position.y+=a,p.position.x+=-55/3.5,p.position.z+=55/4,p.scale.set(82.5/c,55/1.5/u,50/d);var h=new r.LOD;if(h.addLevel(l,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},300:function(e,t,n){e.exports=n.p+"catalog/items/canteencart/canteen_cart.png"},301:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:0}),i=new r.MeshLambertMaterial({color:12632256}),l=function(){for(var e=new r.Mesh(new r.CylinderGeometry(.8,.8,.5,32),o),t=0;t<=6;t+=6)for(var n=0;n<=6;n+=6){var a=new r.Mesh(new r.CylinderGeometry(.8,.8,.5,32),o);a.position.set(t,n,0),e.add(a);var l=new r.Mesh(new r.CylinderGeometry(.6,.6,.6,32),i);a.add(l);var s=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),o);s.position.set(0,0,0),a.add(s);var u=new r.Mesh(new r.CylinderGeometry(.6,.6,.1,32),i);u.rotation.x=.5*Math.PI,u.position.set(-.3,0,-1.2),a.add(u);var d=new r.Mesh(new r.CylinderGeometry(.3725,.3725,.3,32),o);d.rotation.x=.5*Math.PI,d.position.set(-.3,0,-1),a.add(d);var c=new r.Mesh(new r.CylinderGeometry(.55,.55,.05,3),i);c.position.set(-.2,-.35,-.6),a.add(c);var p=new r.Mesh(new r.BoxGeometry(.55,1.1,.05),i);p.rotation.x=.5*Math.PI,p.position.set(0,-.35,-.4),a.add(p);var h=new r.Mesh(new r.CylinderGeometry(.55,.55,.05,3),i);h.position.set(-.2,.35,-.6),a.add(h);var f=new r.Mesh(new r.BoxGeometry(.55,1.1,.05),i);f.rotation.x=.5*Math.PI,f.position.set(0,.35,-.4),a.add(f);var m=new r.Mesh(new r.BoxGeometry(.95,.75,.1),i);m.position.set(-.2,0,-.9),a.add(m)}var y=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);y.rotation.x=.5*Math.PI,y.position.set(-.3,0,-9.6),e.add(y);var v=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);v.rotation.x=.5*Math.PI,v.position.set(-.3,6,-9.6),e.add(v);var g=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);g.rotation.x=.5*Math.PI,g.position.set(5.7,0,-9.6),e.add(g);var x=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);x.rotation.x=.5*Math.PI,x.position.set(5.7,6,-9.6),e.add(x);var w=new r.Mesh(new r.TorusGeometry(3,.15,20,20,3.125),i);w.rotation.x=-.5*Math.PI,w.position.set(2.7,6,-18.1),e.add(w);var M=new r.Mesh(new r.TorusGeometry(3,.15,20,20,3.125),i);M.rotation.x=-.5*Math.PI,M.position.set(2.7,0,-18.1),e.add(M);var q=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);q.position.set(-.3,3,-18),e.add(q);var _=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);_.rotation.x=.5*Math.PI,_.rotation.z=.5*Math.PI,_.position.set(2.7,0,-18),e.add(_);var b=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);b.rotation.x=.5*Math.PI,b.rotation.z=.5*Math.PI,b.position.set(2.7,6,-18),e.add(b);var E=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);E.position.set(5.7,3,-18),e.add(E);for(var O=-16.5;O<=-2.8;O+=1.5){var I=new r.Mesh(new r.BoxGeometry(.5,5.7,.1),i);I.rotation.z=.5*Math.PI,I.position.set(2.7,5.9,O+.2),e.add(I);var P=new r.Mesh(new r.BoxGeometry(.1,5.7,.5),i);P.rotation.z=.5*Math.PI,P.position.set(2.7,6.1,O),e.add(P);var T=new r.Mesh(new r.BoxGeometry(.5,5.7,.1),i);T.rotation.z=.5*Math.PI,T.position.set(2.7,.1,O+.2),e.add(T);var G=new r.Mesh(new r.BoxGeometry(.1,5.7,.5),i);G.rotation.z=.5*Math.PI,G.position.set(2.7,-.1,O),e.add(G)}var S=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);S.position.set(-.3,3,-2),e.add(S);var D=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);return D.position.set(5.7,3,-2),e.add(D),e}(),s=function(){for(var e=new r.Mesh,t=0;t<=6;t+=6)for(var n=0;n<=6;n+=6){var a=new r.Mesh(new r.CylinderGeometry(.8,.8,.5,32),o);a.position.set(t,n,0),e.add(a);var l=new r.Mesh(new r.CylinderGeometry(.6,.6,.6,32),i);a.add(l);var s=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),o);s.position.set(0,0,0),a.add(s);var u=new r.Mesh(new r.CylinderGeometry(.6,.6,.1,32),i);u.rotation.x=.5*Math.PI,u.position.set(-.3,0,-1.2),a.add(u);var d=new r.Mesh(new r.CylinderGeometry(.3725,.3725,.3,32),o);d.rotation.x=.5*Math.PI,d.position.set(-.3,0,-1),a.add(d);var c=new r.Mesh(new r.CylinderGeometry(.55,.55,.05,3),i);c.position.set(-.2,-.35,-.6),a.add(c);var p=new r.Mesh(new r.BoxGeometry(.55,1.1,.05),i);p.rotation.x=.5*Math.PI,p.position.set(0,-.35,-.4),a.add(p);var h=new r.Mesh(new r.CylinderGeometry(.55,.55,.05,3),i);h.position.set(-.2,.35,-.6),a.add(h);var f=new r.Mesh(new r.BoxGeometry(.55,1.1,.05),i);f.rotation.x=.5*Math.PI,f.position.set(0,.35,-.4),a.add(f);var m=new r.Mesh(new r.BoxGeometry(.95,.75,.1),i);m.position.set(-.2,0,-.9),a.add(m)}var y=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);y.rotation.x=.5*Math.PI,y.position.set(-.3,0,-9.6),e.add(y);var v=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);v.rotation.x=.5*Math.PI,v.position.set(-.3,6,-9.6),e.add(v);var g=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);g.rotation.x=.5*Math.PI,g.position.set(5.7,0,-9.6),e.add(g);var x=new r.Mesh(new r.BoxGeometry(.3,17.1,.3),i);x.rotation.x=.5*Math.PI,x.position.set(5.7,6,-9.6),e.add(x);var w=new r.Mesh(new r.TorusGeometry(3,.15,20,20,3.125),i);w.rotation.x=-.5*Math.PI,w.position.set(2.7,6,-18.1),e.add(w);var M=new r.Mesh(new r.TorusGeometry(3,.15,20,20,3.125),i);M.rotation.x=-.5*Math.PI,M.position.set(2.7,0,-18.1),e.add(M);var q=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);q.position.set(-.3,3,-18),e.add(q);var _=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);_.rotation.x=.5*Math.PI,_.rotation.z=.5*Math.PI,_.position.set(2.7,0,-18),e.add(_);var b=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);b.rotation.x=.5*Math.PI,b.rotation.z=.5*Math.PI,b.position.set(2.7,6,-18),e.add(b);var E=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);E.position.set(5.7,3,-18),e.add(E);for(var O=-16.5;O<=-2.8;O+=1.5){var I=new r.Mesh(new r.BoxGeometry(.5,5.7,.1),i);I.rotation.z=.5*Math.PI,I.position.set(2.7,5.9,O+.2),e.add(I);var P=new r.Mesh(new r.BoxGeometry(.1,5.7,.5),i);P.rotation.z=.5*Math.PI,P.position.set(2.7,6.1,O),e.add(P);var T=new r.Mesh(new r.BoxGeometry(.5,5.7,.1),i);T.rotation.z=.5*Math.PI,T.position.set(2.7,.1,O+.2),e.add(T);var G=new r.Mesh(new r.BoxGeometry(.1,5.7,.5),i);G.rotation.z=.5*Math.PI,G.position.set(2.7,-.1,O),e.add(G)}var S=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);S.position.set(-.3,3,-2),e.add(S);var D=new r.Mesh(new r.BoxGeometry(.3,5.7,.3),i);return D.position.set(5.7,3,-2),e.add(D),e}();t.default={name:"canteen cart",prototype:"items",info:{tag:["furnishings","metal"],title:"canteen cart",description:"canteen cart",image:n(300)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-15,-20)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:30,height:40,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(15, 20) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(l.clone());var i=(new r.Box3).setFromObject(o),u=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.rotation.x+=Math.PI/2,o.position.y+=a,o.scale.set(30/d,40/u,180/c);var p=new r.Object3D;p.add(s.clone()),p.rotation.x+=Math.PI/2,p.position.y+=a,p.scale.set(30/d,40/u,180/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},302:function(e,t,n){e.exports=n.p+"catalog/items/canteen-table/canteen_table.png"},303:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:11299877}),i=new r.MeshLambertMaterial({color:0}),l=new r.MeshLambertMaterial({color:12632256}),s=function(){var e=new r.BoxGeometry(1,3,1),t=new r.Mesh(e,l),n=new r.Mesh(new r.BoxGeometry(10,.5,10),o);n.position.set(0,1.5,0),t.add(n);for(var a=-.25;a<=.25;a+=.5)for(var s=-.25;s<=.25;s+=.5){var u=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),i);u.position.set(a,1.4,s),t.add(u)}var d=new r.Mesh(new r.BoxGeometry(1,15,1),l);d.rotation.x=.5*Math.PI,d.position.set(0,-1,0),t.add(d);var c=new r.Mesh(new r.BoxGeometry(1,10,1),l);c.rotation.z=.5*Math.PI,c.position.set(0,-1,-7),t.add(c);var p=new r.Mesh(new r.BoxGeometry(1,10,1),l);p.rotation.z=.5*Math.PI,p.position.set(0,-1,7),t.add(p);for(var h=-3;h<=3;h+=6)for(var f=7;f>=-7;f-=14){var m=new r.Mesh(new r.BoxGeometry(1,3,1),l);m.rotation.y=.5*Math.PI,m.position.set(h,-2,f),t.add(m)}for(var y=-3;y<=3;y+=6)for(var v=8;v>=-8;v-=16){var g=new r.Mesh(new r.BoxGeometry(3,.25,1),l);g.rotation.y=.5*Math.PI,g.position.set(y,-3.5,v+1),t.add(g);var x=new r.Mesh(new r.CylinderGeometry(.1,.1,.3,6),i);x.position.set(y,-3.5,v-1),x.position.set(y,-3.5,v+2),t.add(x),v>0&&(g.position.set(y,-3.5,v-1),x.position.set(y,-3.5,v-2));var w=new r.Mesh(new r.CylinderGeometry(.1,.1,.3,6),i);w.position.set(y,-3.5,v),t.add(w)}for(var M=-3;M<=3;M+=6)for(var q=-9.24;q<=9.24;q+=18.48){var _=new r.Mesh(new r.BoxGeometry(4,.5,2.5),o);_.rotation.x=.5*Math.PI,_.position.set(M,2.5,q),t.add(_)}for(var b=-4.5;b<=4.5;b+=9)for(var E=-9.45;E<=9.45;E+=18.9){var O=new r.Mesh(new r.BoxGeometry(.25,.125,4),l);O.rotation.x=.5*Math.PI,O.position.set(b,1.6,E),t.add(O);var I=new r.Mesh(new r.BoxGeometry(.25,.125,4),l);I.rotation.x=.5*Math.PI,I.position.set(b-3,1.6,E),t.add(I);var P=new r.Mesh(new r.CylinderGeometry(.1,.1,.6,6),i);P.rotation.x=.5*Math.PI,P.position.set(b,2.5,E-.2),t.add(P);var T=new r.Mesh(new r.CylinderGeometry(.1,.1,.6,6),i);T.rotation.x=.5*Math.PI,T.position.set(b-3,2.5,E-.2),t.add(T),b<0&&(I.position.set(b+3,1.6,E),T.position.set(b+3,2.5,E-.2),E<0&&T.position.set(b+3,2.5,E+.2)),E<0&&(P.position.set(b,2.5,E+.2),b>0&&T.position.set(b-3,2.5,E+.2))}for(var G=-3;G<=3;G+=6)for(var S=-7;S<=7;S+=14){var D=new r.Mesh(new r.BoxGeometry(4,.5,4),o);D.rotation.y=.5*Math.PI,D.position.set(G,-.25,S),t.add(D)}for(var R=-4.5;R<=4.5;R+=9)for(var A=-9;A<=9;A+=18){var L=new r.Mesh(new r.BoxGeometry(.25,.125,1),l);L.position.set(R,-.35,A),t.add(L);var C=new r.Mesh(new r.BoxGeometry(.25,.125,1),l);C.position.set(R-3,-.35,A),t.add(C);var k=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),i);k.position.set(R,-.35,A-2),t.add(k);var j=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),i);j.position.set(R-3,-.35,A-2),t.add(j),R<0&&(C.position.set(R+3,-.35,A),j.position.set(R+3,-.35,A-2),A<0&&j.position.set(R+3,-.35,A+2)),A<0&&(k.position.set(R,-.35,A+2),R>0&&j.position.set(R-3,-.35,A+2))}return t}(),u=function(){var e=new r.BoxGeometry(1,3,1),t=new r.Mesh(e,l),n=new r.Mesh(new r.BoxGeometry(10,.5,10),o);n.position.set(0,1.5,0),t.add(n);var a=new r.Mesh(new r.BoxGeometry(1,15,1),l);a.rotation.x=.5*Math.PI,a.position.set(0,-1,0),t.add(a);var i=new r.Mesh(new r.BoxGeometry(1,10,1),l);i.rotation.z=.5*Math.PI,i.position.set(0,-1,-7),t.add(i);var s=new r.Mesh(new r.BoxGeometry(1,10,1),l);s.rotation.z=.5*Math.PI,s.position.set(0,-1,7),t.add(s);for(var u=-3;u<=3;u+=6)for(var d=7;d>=-7;d-=14){var c=new r.Mesh(new r.BoxGeometry(1,3,1),l);c.rotation.y=.5*Math.PI,c.position.set(u,-2,d),t.add(c)}for(var p=-3;p<=3;p+=6)for(var h=8;h>=-8;h-=16){var f=new r.Mesh(new r.BoxGeometry(3,.25,1),l);f.rotation.y=.5*Math.PI,f.position.set(p,-3.5,h+1),t.add(f),h>0&&f.position.set(p,-3.5,h-1)}for(var m=-3;m<=3;m+=6)for(var y=-9.24;y<=9.24;y+=18.48){var v=new r.Mesh(new r.BoxGeometry(4,.5,2.5),o);v.rotation.x=.5*Math.PI,v.position.set(m,2.5,y),t.add(v)}for(var g=-4.5;g<=4.5;g+=9)for(var x=-9.45;x<=9.45;x+=18.9){var w=new r.Mesh(new r.BoxGeometry(.25,.125,4),l);w.rotation.x=.5*Math.PI,w.position.set(g,1.6,x),t.add(w);var M=new r.Mesh(new r.BoxGeometry(.25,.125,4),l);M.rotation.x=.5*Math.PI,M.position.set(g-3,1.6,x),t.add(M),g<0&&M.position.set(g+3,1.6,x)}for(var q=-3;q<=3;q+=6)for(var _=-7;_<=7;_+=14){var b=new r.Mesh(new r.BoxGeometry(4,.5,4),o);b.rotation.y=.5*Math.PI,b.position.set(q,-.25,_),t.add(b)}for(var E=-4.5;E<=4.5;E+=9)for(var O=-9;O<=9;O+=18){var I=new r.Mesh(new r.BoxGeometry(.25,.125,1),l);I.position.set(E,-.35,O),t.add(I);var P=new r.Mesh(new r.BoxGeometry(.25,.125,1),l);P.position.set(E-3,-.35,O),t.add(P),E<0&&P.position.set(E+3,-.35,O)}return t}();t.default={name:"canteen table",prototype:"items",info:{tag:["furnishings","wood"],title:"canteen table",description:"canteen table",image:n(302)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-50,-70)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:100,height:140,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(50, 70) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(s.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.y+=50+a,o.scale.set(100/l,100/d,140/c);var p=new r.Object3D;p.add(u.clone()),p.position.y+=50+a,p.scale.set(100/l,100/d,140/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},304:function(e,t,n){e.exports=n.p+"catalog/items/camera/camera.png"},305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:11184810}),i=new r.MeshLambertMaterial({color:0}),l=new r.MeshLambertMaterial({color:16777215}),s=new r.MeshLambertMaterial({color:16777215,transparent:!0,opacity:.5}),u=function(){var e=new r.Mesh,t=new r.CylinderGeometry(.2,.2,.5,80),n=new r.Mesh(t,o);n.rotation.x+=Math.PI/2,n.position.set(0,.5,0);var a=new r.SphereGeometry(.2,32,32),u=new r.Mesh(a,o);u.position.set(0,-.25,0),n.add(u);var d=new r.CylinderGeometry(.085,.085,.5,80),c=new r.Mesh(d,i);c.position.set(0,.04,0),n.add(c);for(var p=new r.SphereGeometry(.025,32,32),h=0;h<16;h++){var f=new r.Mesh(p,l),m=new r.Mesh(p,l);f.position.set(.115*Math.cos(2*Math.PI/14*h),.2497,.115*Math.sin(2*Math.PI/14*h)),m.position.set(.17*Math.cos(2*Math.PI/16*h),.25,.17*Math.sin(2*Math.PI/16*h)),f.scale.set(1,1,1.3),m.scale.set(1,1,1.3),f.rotation.x+=Math.PI/2,m.rotation.x+=Math.PI/2,n.add(f),n.add(m)}var y=new r.CylinderGeometry(.195,.195,.05,80),v=new r.Mesh(y,s);v.position.set(0,.27,0),n.add(v);var g=new r.CylinderGeometry(.2,.2,.1,80,16,!0),x=new r.Mesh(g,o);x.position.set(0,.25,0),n.add(x);var w=new r.BoxGeometry(.25,.05,.25),M=new r.Mesh(w,o);M.position.set(0,-.6,.35),n.add(M);for(var q=.265;q<=.5;q+=.165){var _=new r.CylinderGeometry(.02,.02,.055,6,6),b=new r.Mesh(_,i),E=new r.Mesh(_,i);b.position.set(.08,-.6,q),E.position.set(-.08,-.6,q),n.add(b),n.add(E)}var O=new r.Shape;O.moveTo(.2,.45),O.lineTo(.5,.5),O.lineTo(.7,.5),O.lineTo(.7,.6),O.lineTo(.2,.6);var I=new r.ExtrudeGeometry(O,{steps:2,depth:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),P=new r.Mesh(I,o);P.rotation.z=Math.PI/2,P.rotation.y=-Math.PI/2,P.position.set(.05,-.8,.875),n.add(P);var T=new r.CylinderGeometry(.1,.1,.1,80,16),G=new r.Mesh(T,o);G.rotation.x+=Math.PI/2,G.position.set(0,-.02,.325),n.add(G);var S=new r.CylinderGeometry(.05,.05,.14,80,16),D=new r.Mesh(S,i);D.rotation.x+=Math.PI/2,D.position.set(0,-.02,.325),n.add(D);var R=new r.CylinderGeometry(.025,.025,.16,80,16),A=new r.Mesh(R,o);A.rotation.x+=Math.PI/2,A.position.set(0,-.02,.325),n.add(A);var L=new r.CylinderGeometry(.026,.026,.12,80,16),C=new r.Mesh(L,i);C.rotation.z+=Math.PI/2,C.position.set(0,-.02,.23),n.add(C);var k=new r.CylinderGeometry(.02,.02,.16,80,16),j=new r.Mesh(k,o);j.rotation.z+=Math.PI/2,j.position.set(0,-.02,.23),n.add(j);var N=new r.Shape;N.moveTo(0,0),N.lineTo(0,.1),N.lineTo(.1,.1),N.bezierCurveTo(.05,.05,.05,.05,.1,0);var z=new r.ExtrudeGeometry(N,{depth:.1,bevelEnabled:!1,bevelSegments:1,steps:1,bevelSize:1,bevelThickness:1}),B=new r.Mesh(z,o);B.position.set(-.05,.03,.15),B.rotation.y+=Math.PI/2,B.rotation.z+=-Math.PI;var U=new r.Mesh(z,o);U.position.set(-.05,-.07,.3),U.rotation.y+=Math.PI/2,n.add(B),n.add(U);var V=[];V.push(new r.Vector2(.2,0)),V.push(new r.Vector2(.2,0)),V.push(new r.Vector2(.2,.2)),V.push(new r.Vector2(.2,.2));var F=new r.LatheGeometry(V,200,0,Math.PI);o.side=r.DoubleSide;var H=new r.Mesh(F,o);H.position.set(0,.2,0),H.rotation.y+=Math.PI/2,n.add(H);var W=new r.CylinderGeometry(.025,.02,.3,80,16),Y=new r.Mesh(W,i);Y.rotation.x+=Math.PI/2,Y.position.set(0,-.5,-.18),n.add(Y);var Z=new r.CylinderGeometry(.02,.015,.3,80,16),X=new r.Mesh(Z,i);X.rotation.x+=Math.PI/2,X.position.set(0,-.5,-.35),n.add(X);var J=new r.SphereGeometry(.015,32,32),K=new r.Mesh(J,i);K.position.set(0,-.5,-.5),n.add(K);var Q=new r.SphereGeometry(.04,32,32),$=new r.Mesh(Q,i);$.position.set(0,-.5,0),n.add($);var ee=new r.CylinderGeometry(.025,.025,.1,80,16),te=new r.Mesh(ee,i);return te.position.set(0,-.42,0),n.add(te),e.add(n),e}(),d=function(){var e=new r.Mesh,t=new r.CylinderGeometry(.2,.2,.5,8.8),n=new r.Mesh(t,o);n.rotation.x+=Math.PI/2,n.position.set(0,.5,0);var a=new r.SphereGeometry(.2,8,8),l=new r.Mesh(a,o);l.position.set(0,-.25,0),n.add(l);var u=new r.CylinderGeometry(.085,.085,.5,8,8),d=new r.Mesh(u,i);d.position.set(0,.04,0),n.add(d);var c=new r.CylinderGeometry(.195,.195,.05,8,8),p=new r.Mesh(c,s);p.position.set(0,.27,0),n.add(p);var h=new r.CylinderGeometry(.2,.2,.1,8,8,!0),f=new r.Mesh(h,o);f.position.set(0,.25,0),n.add(f);var m=new r.BoxGeometry(.25,.05,.25),y=new r.Mesh(m,o);y.position.set(0,-.6,.35),n.add(y);var v=new r.Shape;v.moveTo(.2,.45),v.lineTo(.5,.5),v.lineTo(.7,.5),v.lineTo(.7,.6),v.lineTo(.2,.6);var g=new r.ExtrudeGeometry(v,{steps:2,depth:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),x=new r.Mesh(g,o);x.rotation.z=Math.PI/2,x.rotation.y=-Math.PI/2,x.position.set(.05,-.8,.875),n.add(x);var w=new r.CylinderGeometry(.1,.1,.1,80,16),M=new r.Mesh(w,o);M.rotation.x+=Math.PI/2,M.position.set(0,-.02,.325),n.add(M);var q=new r.CylinderGeometry(.05,.05,.14,80,16),_=new r.Mesh(q,i);_.rotation.x+=Math.PI/2,_.position.set(0,-.02,.325),n.add(_);var b=new r.CylinderGeometry(.025,.025,.16,80,16),E=new r.Mesh(b,o);E.rotation.x+=Math.PI/2,E.position.set(0,-.02,.325),n.add(E);var O=new r.CylinderGeometry(.026,.026,.12,80,16),I=new r.Mesh(O,i);I.rotation.z+=Math.PI/2,I.position.set(0,-.02,.23),n.add(I);var P=new r.CylinderGeometry(.02,.02,.16,80,16),T=new r.Mesh(P,o);T.rotation.z+=Math.PI/2,T.position.set(0,-.02,.23),n.add(T);var G=new r.Shape;G.moveTo(0,0),G.lineTo(0,.1),G.lineTo(.1,.1),G.bezierCurveTo(.05,.05,.05,.05,.1,0);var S=new r.ExtrudeGeometry(G,{depth:.1,bevelEnabled:!1,bevelSegments:1,steps:1,bevelSize:1,bevelThickness:1}),D=new r.Mesh(S,o);D.position.set(-.05,.03,.15),D.rotation.y+=Math.PI/2,D.rotation.z+=-Math.PI;var R=new r.Mesh(S,o);R.position.set(-.05,-.07,.3),R.rotation.y+=Math.PI/2,n.add(D),n.add(R);var A=new r.CylinderGeometry(.025,.02,.3,8,8),L=new r.Mesh(A,i);L.rotation.x+=Math.PI/2,L.position.set(0,-.5,-.18),n.add(L);var C=new r.CylinderGeometry(.02,.015,.3,8,8),k=new r.Mesh(C,i);k.rotation.x+=Math.PI/2,k.position.set(0,-.5,-.35),n.add(k);var j=new r.SphereGeometry(.015,8,8),N=new r.Mesh(j,i);N.position.set(0,-.5,-.5),n.add(N);var z=new r.SphereGeometry(.04,8,8),B=new r.Mesh(z,i);B.position.set(0,-.5,0),n.add(B);var U=new r.CylinderGeometry(.025,.025,.1,8,8),V=new r.Mesh(U,i);return V.position.set(0,-.42,0),n.add(V),e.add(n),e}();t.default={name:"camera",prototype:"items",info:{tag:["security","metal"],title:"camera",description:"camera",image:n(304)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-5,-10)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:10,height:20,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(5, 10) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(u.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.y+=2.5+a,o.position.z+=10,o.scale.set(20/c,20/s,10/l);var p=new r.Object3D;p.add(d.clone()),p.position.y+=2.5+a,p.position.z+=10,p.scale.set(20/c,20/s,10/l);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},306:function(e,t,n){e.exports=n.p+"catalog/items/bookcase/bookcase.png"},307:function(e,t,n){e.exports=n.p+"catalog/items/bookcase/bookTexture3.jpg"},308:function(e,t,n){e.exports=n.p+"catalog/items/bookcase/bookTexture2.jpg"},309:function(e,t,n){e.exports=n.p+"catalog/items/bookcase/bookTexture1.jpg"},31:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.State=t.HistoryStructure=t.Catalog=t.CatalogElement=t.Scene=t.DefaultLayers=t.Group=t.Layer=t.Item=t.Area=t.Hole=t.Line=t.Vertex=t.ElementsSet=t.DefaultGrids=t.Grid=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{})})))}return d(t,(0,o.Record)({id:"",type:"",properties:(0,o.Map)()},"Grid")),t}(),h=t.DefaultGrids=new o.Map({h1:new p({id:"h1",type:"horizontal-streak",properties:{step:20,colors:["#808080","#ddd","#ddd","#ddd","#ddd"]}}),v1:new p({id:"v1",type:"vertical-streak",properties:{step:20,colors:["#808080","#ddd","#ddd","#ddd","#ddd"]}})}),f=t.ElementsSet=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{vertices:new o.List(e.vertices||[]),lines:new o.List(e.lines||[]),holes:new o.List(e.holes||[]),areas:new o.List(e.areas||[]),items:new o.List(e.items||[])}))}return d(t,(0,o.Record)({vertices:new o.List,lines:new o.List,holes:new o.List,areas:new o.List,items:new o.List},"ElementsSet")),t}(),m={id:"",type:"",prototype:"",name:"",misc:new o.Map,selected:!1,properties:new o.Map,visible:!0},y=t.Vertex=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{lines:new o.List(e.lines||[]),areas:new o.List(e.areas||[])})))}return d(t,(0,o.Record)(a({},m,{x:-1,y:-1,prototype:"vertices",lines:new o.List,areas:new o.List}),"Vertex")),t}(),v=t.Line=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{}),vertices:new o.List(e.vertices||[]),holes:new o.List(e.holes||[])})))}return d(t,(0,o.Record)(a({},m,{prototype:"lines",vertices:new o.List,holes:new o.List}),"Line")),t}(),g=t.Hole=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{})})))}return d(t,(0,o.Record)(a({},m,{prototype:"holes",offset:-1,line:""}),"Hole")),t}(),x=t.Area=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{}),vertices:new o.List(e.vertices||[])})))}return d(t,(0,o.Record)(a({},m,{prototype:"areas",vertices:new o.List,holes:new o.List}),"Area")),t}(),w=t.Item=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{})})))}return d(t,(0,o.Record)(a({},m,{prototype:"items",x:0,y:0,rotation:0}),"Item")),t}(),M=t.Layer=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{vertices:c(e.vertices,y),lines:c(e.lines,v),holes:c(e.holes,g),areas:c(e.areas,x),items:c(e.items,w),selected:new f(e.selected)})))}return d(t,(0,o.Record)({id:"",altitude:0,order:0,opacity:1,name:"",visible:true,vertices:new o.Map,lines:new o.Map,holes:new o.Map,areas:new o.Map,items:new o.Map,selected:new f},"Layer")),t}(),q=t.Group=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{properties:(0,o.fromJS)(e.properties||{}),elements:(0,o.fromJS)(e.elements||{})})))}return d(t,(0,o.Record)(a({},m,{prototype:"groups",x:0,y:0,rotation:0,elements:new o.Map}),"Group")),t}(),_=t.DefaultLayers=new o.Map({"layer-1":new M({id:"layer-1",name:"default"})}),b=t.Scene=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t);var n=c(e.layers,M,_);return u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{grids:c(e.grids,p,h),layers:n,selectedLayer:n.first().id,groups:c(e.groups||{},q),meta:e.meta?(0,o.fromJS)(e.meta):new o.Map,guides:e.guides?(0,o.fromJS)(e.guides):new o.Map({horizontal:new o.Map,vertical:new o.Map,circular:new o.Map})})))}return d(t,(0,o.Record)({unit:"cm",layers:new o.Map,grids:new o.Map,selectedLayer:null,groups:new o.Map,width:3e3,height:2e3,meta:new o.Map,guides:new o.Map},"Scene")),t}(),E=t.CatalogElement=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{info:(0,o.fromJS)(e.info),properties:(0,o.fromJS)(e.properties)})))}return d(t,(0,o.Record)({name:"",prototype:"",info:new o.Map,properties:new o.Map},"CatalogElement")),t}(),O=t.Catalog=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t);var n=c(e.elements,E);return u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{elements:n,ready:!n.isEmpty()}))}return d(t,(0,o.Record)({ready:false,page:"root",path:new o.List,elements:new o.Map},"Catalog")),r(t,[{key:"factoryElement",value:function(e,t,n){if(!this.elements.has(e)){var r=this.elements.map(function(e){return e.name}).toArray();throw new Error("Element "+e+" does not exist in catalog "+r)}var a=this.elements.get(e),o=a.properties.map(function(e,t){return n&&n.has(t)?n.get(t):e.get("defaultValue")});switch(a.prototype){case"lines":return new v(t).merge({properties:o});case"holes":return new g(t).merge({properties:o});case"areas":return new x(t).merge({properties:o});case"items":return new w(t).merge({properties:o});default:throw new Error("prototype not valid")}}}]),t}(),I=t.HistoryStructure=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{list:(0,o.fromJS)(e.list||[]),first:new b(e.scene),last:new b(e.last||e.scene)}))}return d(t,(0,o.Record)({list:new o.List,first:null,last:null},"HistoryStructure")),t}();t.State=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a({},e,{scene:new b(e.scene),sceneHistory:new I(e),catalog:new O(e.catalog||{}),viewer2D:new o.Map(e.viewer2D||{}),drawingSupport:new o.Map(e.drawingSupport||{}),draggingSupport:new o.Map(e.draggingSupport||{}),rotatingSupport:new o.Map(e.rotatingSupport||{}),misc:e.misc?(0,o.fromJS)(e.misc):new o.Map})))}return d(t,(0,o.Record)({mode:i.MODE_IDLE,scene:new b,sceneHistory:new I,catalog:new O,viewer2D:new o.Map,mouse:new o.Map({x:0,y:0}),zoom:0,snapMask:l.SNAP_MASK,snapElements:new o.List,activeSnapElement:null,drawingSupport:new o.Map,draggingSupport:new o.Map,rotatingSupport:new o.Map,errors:new o.List,warnings:new o.List,clipboardProperties:new o.Map,selectedElementsHistory:new o.List,misc:new o.Map,alterate:false},"State")),t}()},310:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.TextureLoader,i=o.load(n(98)),l=o.load(n(309)),s=o.load(n(308)),u=o.load(n(307)),d=function(){var e=new r.Mesh,t=new r.BoxGeometry(.03,2,.8),n=new r.MeshPhongMaterial({map:i}),a=new r.Mesh(t,n);a.position.set(0,1,0),e.add(a);var o=new r.BoxGeometry(.3,2,.03),d=new r.Mesh(o,n);d.position.set(.15,1,.4),e.add(d);var c=new r.Mesh(o,n);c.position.set(.15,1,-.4),e.add(c);var p=new r.BoxGeometry(.3,.03,.8),h=new r.Mesh(p,n);h.position.set(.15,2,0),e.add(h);var f=new r.BoxGeometry(.3,.03,.8),m=new r.Mesh(f,n);m.position.set(.15,.015,0),e.add(m);for(var y=1;y<5;y++){var v=new r.BoxGeometry(.3,.03,.8),g=new r.Mesh(v,n);g.position.set(.15,.015+.4*y,0),e.add(g)}function x(){return Math.floor(3*Math.random())}var w=new r.BoxGeometry(.24,.32,.76),M=[new r.MeshLambertMaterial({map:l}),new r.MeshLambertMaterial({map:s}),new r.MeshLambertMaterial({map:u})],q=new r.Mesh(w,M[x()]);q.position.set(.15,.59,0),e.add(q);var _=new r.Mesh(w,M[x()]);_.position.set(.15,.99,0),e.add(_);var b=new r.Mesh(w,M[x()]);b.position.set(.15,.19,0),e.add(b);var E=new r.Mesh(w,M[x()]);E.position.set(.15,1.39,0),e.add(E);var O=new r.Mesh(w,M[x()]);return O.position.set(.15,1.79,0),e.add(O),e}(),c=function(){var e=new r.Mesh,t=(new r.TextureLoader).load(n(98)),a=new r.BoxGeometry(.03,2,.8),o=new r.MeshPhongMaterial({map:t}),i=new r.Mesh(a,o);i.position.set(0,1,0),e.add(i);var l=new r.BoxGeometry(.3,2,.03),s=new r.Mesh(l,o);s.position.set(.15,1,.4),e.add(s);var u=new r.Mesh(l,o);u.position.set(.15,1,-.4),e.add(u);var d=new r.BoxGeometry(.3,.03,.8),c=new r.Mesh(d,o);c.position.set(.15,2,0),e.add(c);var p=new r.BoxGeometry(.3,.03,.8),h=new r.Mesh(p,o);h.position.set(.15,.015,0),e.add(h);for(var f=1;f<5;f++){var m=new r.BoxGeometry(.3,.03,.8),y=new r.Mesh(m,o);y.position.set(.15,.015+.4*f,0),e.add(y)}return e}();t.default={name:"bookcase",prototype:"items",info:{tag:["furnishings","wood"],title:"bookcase",description:"bookcase",image:n(306)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;Math.sin(r*Math.PI/180)<0&&(o=180);var i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-40,-40)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:80,height:80,style:i}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(40, 40) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(d.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),s=Math.abs(i.max.y-i.min.y),u=Math.abs(i.max.z-i.min.z);o.rotation.y+=Math.PI/2,o.position.y+=a,o.position.z+=40,o.scale.set(80/l,200/s,80/u);var p=new r.Object3D;p.add(c.clone()),p.rotation.y+=Math.PI/2,p.position.y+=a,p.position.z+=40,p.scale.set(80/l,200/s,80/u);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},311:function(e,t,n){e.exports=n.p+"catalog/items/blackboard/blackboard.png"},312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));t.default={name:"blackboard",prototype:"items",info:{tag:["furnishings"],title:"Blackboard",description:"Blackboard",image:n(311)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;Math.sin(r*Math.PI/180)<0&&(o=180);var i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},l={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-150,-10)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:300,height:20,style:i}),a.default.createElement("line",{key:"2",x1:150,x2:150,y1:20,y2:36,style:l}),a.default.createElement("line",{key:"3",x1:135,x2:150,y1:24,y2:36,style:l}),a.default.createElement("line",{key:"4",x1:150,x2:165,y1:36,y2:24,style:l}),a.default.createElement("text",{key:"5",x:"0",y:"0",transform:"translate(150, 10) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.MeshLambertMaterial({color:0}),i=new r.MeshLambertMaterial({color:13421772}),l=(o=new r.MeshLambertMaterial({color:4277321}),new r.Object3D),s=new r.Shape;s.moveTo(0,.25),s.lineTo(0,3.75),s.quadraticCurveTo(0,4,.25,4),s.lineTo(7.75,4),s.quadraticCurveTo(8,4,8,3.75),s.lineTo(8,.25),s.quadraticCurveTo(8,0,7.75,0),s.lineTo(.25,0),s.quadraticCurveTo(0,0,0,.25);var u=new r.ExtrudeGeometry(s,{steps:1,depth:.2,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1}),d=new r.Mesh(u,i);d.position.set(0,1.2,0),l.add(d);var c=new r.BoxGeometry(8-8/11,3.5,.2),p=new r.Mesh(c,o);p.position.set(4,3.2,.07),l.add(p);var h=new r.BoxGeometry(8,.08,.33),f=new r.Mesh(h,i);f.position.set(4,1,-.095),l.add(f);var m=new r.BoxGeometry(8,.08,.25),y=new r.Mesh(m,i);y.rotation.x+=Math.PI/2,y.position.set(4,1.1,.03),l.add(y);var v=new r.Mesh(m,i);v.rotation.x+=Math.PI/2,v.position.set(4,1.1,-.22),l.add(v);var g=(new r.Box3).setFromObject(l),x=Math.abs(g.max.x-g.min.x),w=Math.abs(g.max.y-g.min.y),M=Math.abs(g.max.z-g.min.z);if(e.selected){var q=new r.BoxHelper(l,10077179);q.material.linewidth=5,q.renderOrder=1e3,q.material.depthTest=!1,l.add(q)}return l.position.y+=-46.875+a,l.position.x+=-150,l.position.z+=5,l.scale.set(300/x,150/w,20/M),Promise.resolve(l)}}},313:function(e,t,n){e.exports=n.p+"catalog/items/bench/bench.png"},314:function(e,t,n){e.exports=n.p+"catalog/items/bench/wood.jpg"},315:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=new r.MeshLambertMaterial({color:12632256}),i=new r.MeshLambertMaterial({color:0}),l=(new r.TextureLoader).load(n(314)),s=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(10,.5,.5),o);t.position.set(0,0,0),e.add(t);var n=new r.Mesh(new r.BoxGeometry(10,.5,.5),o);n.position.set(0,0,3),e.add(n);for(var a=-5;a<=5;a+=5){var s=new r.Mesh(new r.BoxGeometry(.5,.5,3.5),o);s.position.set(a,0,1.5),e.add(s)}for(var u=-5;u<=5;u+=5)for(var d=0;d<=3;d+=3){var c=new r.Mesh(new r.BoxGeometry(3,.5,.5),o);c.rotation.z=.5*Math.PI,c.position.set(u,-1.5,d),e.add(c);var p=new r.Mesh(new r.BoxGeometry(.5,.25,.5),i);p.rotation.z=.5*Math.PI,p.position.x=-1.625,c.add(p)}for(var h=0;h<=3;h+=.75){var f=new r.Mesh(new r.BoxGeometry(12,.25,.5),new r.MeshPhongMaterial({map:l}));f.position.set(0,.5,h),e.add(f)}for(var m=0;m<=3;m+=.75)for(var y=-5;y<=5;y+=5){var v=new r.Mesh(new r.CylinderGeometry(.1,.1,.8,6),i);v.position.set(y,.3,m),e.add(v)}return e}(),u=function(){var e=new r.Mesh,t=new r.Mesh(new r.BoxGeometry(10,.5,.5),o);t.position.set(0,0,0),e.add(t);var n=new r.Mesh(new r.BoxGeometry(10,.5,.5),o);n.position.set(0,0,3),e.add(n);for(var a=-5;a<=5;a+=5){var i=new r.Mesh(new r.BoxGeometry(.5,.5,3.5),o);i.position.set(a,0,1.5),e.add(i)}for(var s=-5;s<=5;s+=5)for(var u=0;u<=3;u+=3){var d=new r.Mesh(new r.BoxGeometry(3,.5,.5),o);d.rotation.z=.5*Math.PI,d.position.set(s,-1.5,u),e.add(d)}for(var c=0;c<=3;c+=.75){var p=new r.Mesh(new r.BoxGeometry(12,.25,.5),new r.MeshPhongMaterial({map:l}));p.position.set(0,.5,c),e.add(p)}return e}();t.default={name:"bench",prototype:"items",info:{tag:["furnishings","wood","metal"],title:"bench",description:"bench",image:n(313)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=Math.sin(r*Math.PI/180)<0?180:0,i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.default.createElement("g",{transform:"translate(-75,-25)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:150,height:50,style:i}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(75, 25) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.getIn(["altitude","length"]),o=new r.Object3D;o.add(s.clone());var i=(new r.Box3).setFromObject(o),l=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.y+=50+a,o.scale.set(150/l,50/d,50/c);var p=new r.Object3D;p.add(u.clone()),p.position.y+=50+a,p.scale.set(150/l,50/d,50/c);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},316:function(e,t,n){e.exports=n.p+"catalog/items/balcony/balcony.png"},317:function(e,t,n){e.exports=n.p+"catalog/items/balcony/bricks.jpg"},318:function(e,t,n){e.exports=n.p+"catalog/items/balcony/painted.jpg"},319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=Math.PI/2,i=n(318),l=n(317),s=100,u=new r.TextureLoader;u.setPath("./");var d=u.load(i),c=u.load(l);t.default={name:"balcony",prototype:"items",info:{tag:["furnishings","metal"],title:"balcony",description:"balcony",image:n(316)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:500,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:100,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:100,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},patternColor:{label:"2D color",type:"color",defaultValue:"#f5f4f4"}},render2D:function(e,t,n){var r=e.properties.getIn(["width","length"]),o=e.properties.getIn(["depth","length"]),i=e.selected?"#99c3fb":e.properties.get("patternColor"),l=e.rotation+90,s=0;return Math.sin(l*Math.PI/180)<0&&(s=180),a.default.createElement("g",{transform:"translate("+-r/2+","+-o/2+")"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:r,height:o,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:i}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate("+r/2+", "+o/2+") scale(1,-1) rotate("+s+")",style:{textAnchor:"middle",fontSize:"11px"}},e.name))},render3D:function(e,t,n){var a=e.properties.getIn(["width","length"]),i=e.properties.getIn(["depth","length"]),p=e.properties.getIn(["height","length"]),h=e.properties.getIn(["altitude","length"]),f=new r.Object3D;if(f.add(function(e,t,n){var a=u.load(l,function(n){n.wrapS=n.wrapT=r.RepeatWrapping,n.offset.set(0,0),n.repeat.set(~~(e/s),~~(t/s))}),i=new r.Mesh,p=new r.BoxGeometry(e,t/10,n),h=new r.MeshLambertMaterial({map:d}),f=new r.MeshLambertMaterial({map:c}),m=new r.MeshLambertMaterial({map:a}),y=new r.Mesh(p,h),v=new r.BoxGeometry(e,t/10,n),g=new r.Mesh(v,m);g.position.set(0,t/2,n/2),g.rotation.x+=o;var x=new r.BoxGeometry(n,t/10,n),w=new r.Mesh(x,f);w.position.set(e/2,t/2,0),w.rotation.z+=o,w.rotation.x+=o;var M=new r.Mesh(x,f);M.position.set(-e/2,t/2,0),M.rotation.z+=o,M.rotation.x+=o;var q=new r.BoxGeometry(e+t/5,t/5,n/10),_=new r.Mesh(q,h);_.position.set(0,t+t/32,n/2),_.rotation.x+=o;var b=new r.BoxGeometry(n,t/5,n/10),E=new r.Mesh(b,h);E.position.set(e/2,t+t/32,0),E.rotation.z+=o,E.rotation.x+=o;var O=new r.Mesh(b,h);return O.position.set(-e/2,t+t/32,0),O.rotation.z+=o,O.rotation.x+=o,i.add(y,g,w,M,_,E,O)}(a,p,i)),e.selected){var m=new r.BoxHelper(f,10077179);m.material.linewidth=5,m.renderOrder=1e3,m.material.depthTest=!1,f.add(m)}return f.position.y+=p/10+h,Promise.resolve(f)}}},320:function(e,t,n){e.exports=n.p+"catalog/items/armchairs/armchairs.png"},321:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var o=60,i=60,l=new r.MeshLambertMaterial({color:12632256});l.side=r.DoubleSide;var s=new r.MeshLambertMaterial({color:33360});t.default={name:"armchairs",prototype:"items",info:{tag:["furnishings","wood"],title:"armchairs",description:"armchairs",image:n(320)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},seat:{label:"seats",type:"number",defaultValue:1},flip:{label:"flip",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){var r={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},l=e.rotation+90,s=0;Math.sin(l*Math.PI/180)<0&&(s=180);for(var u=e.properties.get("seat"),d=e.properties.get("flip"),c=new Array(u),p=0;p-.36;s-=.005){var u=new r.BoxGeometry(.001,.025,.705),d=new r.Mesh(u,i);d.position.set(s,l,.5),d.rotation.z+=Math.PI/4,e.add(d),l-=.005}for(var c=.15;c<.87;c+=.05){var p=new r.BoxGeometry(.079,.025,.005),h=new r.Mesh(p,i);h.position.set(-.324,1.148,c),h.rotation.z+=Math.PI/4,e.add(h)}var f=new r.Shape;f.moveTo(0,0),f.lineTo(.2,0),f.quadraticCurveTo(.35,.4,.1,.4),f.lineTo(.1,.4),f.quadraticCurveTo(.35,.1,0,0);var m=new r.ExtrudeGeometry(f,{steps:2,depth:1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new r.Mesh(m,o);y.position.set(-.2,1.1,0),y.rotation.z+=Math.PI,e.add(y);var v=new r.Shape;v.moveTo(0,0),v.quadraticCurveTo(.075-.05,-.1,.1,0),v.lineTo(.1,0),v.quadraticCurveTo(.125,.2,.05,.1),v.lineTo(.05,.1),v.quadraticCurveTo(.025,0+.1/6,0,0);var g=new r.ExtrudeGeometry(v,{steps:2,depth:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),x=new r.Mesh(g,i);x.position.set(-.27,.62,.1),x.rotation.y+=Math.PI,x.rotation.z-=Math.PI/9,e.add(x);var w=new r.Mesh(g,i);w.position.set(-.27,.62,1),w.rotation.y+=Math.PI,w.rotation.z-=Math.PI/9,e.add(w);var M=[];M.push(new r.Vector3(.5,0)),M.push(new r.Vector3(.5,0)),M.push(new r.Vector3(.5,.8)),M.push(new r.Vector3(.5,.8));var q=new r.LatheGeometry(M,200,Math.PI/2,Math.PI/16),_=new r.Mesh(q,i);_.position.set(-.4,.18,.9),_.rotation.z+=Math.PI/2,_.rotation.y+=-Math.PI/2,e.add(_);var b=new r.Mesh(q,i);return b.position.set(-.4,.15,.9),b.rotation.z+=Math.PI/2,b.rotation.y+=-Math.PI/2,e.add(b),e}(),s=function(){var e=new r.Mesh,t=new r.Shape;t.moveTo(0,0),t.lineTo(.15,0),t.lineTo(.3,.15),t.quadraticCurveTo(.3,.6,.075,.6),t.lineTo(.075,.6),t.lineTo(0,.6);var n=new r.ExtrudeGeometry(t,{steps:2,depth:1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),a=new r.Mesh(n,o);a.position.set(-.11,1.2,0),a.rotation.z+=Math.PI,e.add(a);var i=new r.Shape;i.moveTo(0,0),i.lineTo(.2,0),i.quadraticCurveTo(.35,.4,.1,.4),i.lineTo(.1,.4),i.quadraticCurveTo(.35,.1,0,0);var l=new r.ExtrudeGeometry(i,{steps:2,depth:1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),s=new r.Mesh(l,o);return s.position.set(-.2,1.1,0),s.rotation.z+=Math.PI,e.add(s),e}();t.default={name:"conditioner",prototype:"items",info:{tag:["furnishings","metal"],title:"air conditioner",description:"air conditioner",image:n(322)},properties:{altitude:{label:"quota",type:"length-measure",defaultValue:{length:220,unit:"cm"}}},render2D:function(e,t,n){var r=e.rotation+90,o=0;return Math.sin(r*Math.PI/180)<0&&(o=180),a.default.createElement("g",{transform:"translate(-45,-20)"},a.default.createElement("rect",{key:"1",x:"0",y:"0",width:90,height:40,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.default.createElement("text",{key:"2",x:"0",y:"0",transform:"translate(45, 20) scale(1,-1) rotate("+o+")",style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){var a=e.properties.get("altitude").get("length"),o=new r.Object3D;o.add(l.clone());var i=(new r.Box3).setFromObject(o),u=Math.abs(i.max.x-i.min.x),d=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);o.position.x+=90/2.2,o.position.z+=40/1.2,o.position.y+=a,o.rotation.y+=-Math.PI/2,o.scale.set(90/c,30/d,40/u/1.4);var p=new r.Object3D;p.add(s.clone()),p.position.x+=90/2.2,p.position.z+=40/1.2,p.position.y+=a,p.rotation.y+=-Math.PI/2,p.scale.set(90/c,30/d,40/u/1.4);var h=new r.LOD;if(h.addLevel(o,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){var f=new r.BoxHelper(h,10077179);f.material.linewidth=5,f.renderOrder=1e3,f.material.depthTest=!1,h.add(f)}return Promise.resolve(h)}}},324:function(e,t,n){e.exports=n.p+"catalog/holes/window/texture.png"},325:function(e,t,n){e.exports=n.p+"catalog/holes/window/window.obj"},326:function(e,t,n){e.exports=n.p+"catalog/holes/window/window.mtl"},327:function(e,t,n){e.exports=n.p+"catalog/holes/window/window.png"},328:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),o=n(27),i=l(n(26));function l(e){return e&&e.__esModule?e:{default:e}}var s=null;t.default={name:"window",prototype:"holes",info:{title:"window",tag:["window"],description:"Window",image:n(327)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:90}},height:{label:"Height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:90}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:10}}},render2D:function(e,t,n){var a=e.properties.get("width").get("length"),o="M0 -3 L"+a+" "+-3+" L"+a+" 3 L0 3 z",i=e.selected?{stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},l=e.properties.get("width").get("length");return r.default.createElement("g",{transform:"translate("+-l/2+", 0)"},r.default.createElement("path",{key:"1",d:o,style:i}),r.default.createElement("line",{key:"2",x1:a/2,y1:-13,x2:a/2,y2:13,style:i}))},render3D:function(e,t,r){var l=function(t){var n=(new a.Box3).setFromObject(t),r=n.max.x-n.min.x,o=n.max.y-n.min.y,i=n.max.z-n.min.z;if(e.selected){var l=new a.BoxHelper(t,10077179);l.material.linewidth=2,l.material.depthTest=!1,l.renderOrder=1e3,t.add(l)}var s=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length");return t.scale.set(s/r,u/o,d/i),t};if(s)return Promise.resolve(l(s.clone()));var u=n(326),d=n(325),c=n(324);return(0,o.loadObjWithMaterial)(u,d,i.default.dirname(c)+"/").then(function(e){return l((s=e).clone())})}}},329:function(e,t,n){e.exports=n.p+"catalog/holes/window-curtain/texture.png"},330:function(e,t,n){e.exports=n.p+"catalog/holes/window-curtain/window.obj"},331:function(e,t,n){e.exports=n.p+"catalog/holes/window-curtain/window.mtl"},332:function(e,t,n){e.exports=n.p+"catalog/holes/window-curtain/window-curtain.jpg"},333:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),o=n(27),i=l(n(26));function l(e){return e&&e.__esModule?e:{default:e}}var s=null,u={stroke:"#000",strokeWidth:"3px",fill:"#000"},d={stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"};t.default={name:"window-curtain",prototype:"holes",info:{tag:["Finestre"],title:"Curtain window",description:"Curtain window",image:n(332)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:90}},height:{label:"height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"altitudine",type:"length-measure",defaultValue:{length:90}},thickness:{label:"spessore",type:"length-measure",defaultValue:{length:10}},flip:{label:"flip",type:"checkbox",defaultValue:"none",values:{none:"none",yes:"yes"}}},render2D:function(e,t,n){var a=e.properties.get("width").get("length"),o="M0 -3 L"+a+" "+-3+" L"+a+" 3 L0 3 z",i=e.selected?d:u,l=e.properties.get("width").get("length");return r.default.createElement("g",{transform:"translate("+-l/2+", 0)"},r.default.createElement("path",{key:"1",d:o,style:i}),r.default.createElement("line",{key:"2",x1:a/2,y1:-13,x2:a/2,y2:13,style:i}))},render3D:function(e,t,r){var l=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length"),c=e.properties.get("flip"),p=function(t){var n=new a.Object3D,r=(new a.Box3).setFromObject(t),o=r.max.x-r.min.x,i=r.max.y-r.min.y,l=r.max.z-r.min.z;if(e.selected){var s=new a.BoxHelper(t,10077179);s.material.linewidth=2,s.material.depthTest=!1,s.renderOrder=1e3,t.add(s)}var u=e.properties.get("width").get("length"),d=e.properties.get("height").get("length"),p=e.properties.get("thickness").get("length");return t.scale.set(u/o,d/i,p/2/l),n.add(t),n.add(y()),!0===c&&(n.rotation.y+=Math.PI),n};if(s)return Promise.resolve(p(s.clone()));var h=n(331),f=n(330),m=n(329);return(0,o.loadObjWithMaterial)(h,f,i.default.dirname(m)+"/").then(function(e){return p((s=e).clone())});function y(){var e=new a.MeshLambertMaterial({color:15394506}),t=new a.Object3D,n=function(e){e.applyMatrix((new a.Matrix4).makeTranslation(-25,0,-25));var t=new a.MeshLambertMaterial({color:16777215,opacity:.9,transparent:!0});return t.side=a.DoubleSide,new a.Mesh(e,t)}(new a.ParametricGeometry(function(e,t){var n=3*Math.sin(e)*10,r=2*Math.sin(t/2)*10,o=.5*(Math.sin(2*e*Math.PI)+Math.cos(2*t*Math.PI));return new a.Vector3(n,o,r)},20,20));n.rotation.x+=Math.PI/2,n.rotation.y+=Math.PI/2,n.position.y+=3.1,n.position.x+=.05,n.scale.set(.125,.125,.125);var r=n.clone();r.rotation.x+=Math.PI,r.position.set(1.4,0,.06),t.add(n),t.add(r);for(var o=-.7;o>-3.4;o-=.45){var i=new a.TorusGeometry(.08,.016,32,32,2*Math.PI),s=new a.Mesh(i,e);-1.15==o?s.position.set(o,3.14,.045):-2.5==o?s.position.set(o,3.14,-.01):s.position.set(o,3.14,.04),s.rotation.y+=Math.PI/2,t.add(s)}var c=new a.CylinderGeometry(.02,.02,1.25,32),p=new a.Mesh(c,e);p.position.set(-1.1,3.18,.02),p.rotation.z+=Math.PI/2,t.add(p);var h=p.clone();h.position.set(-2.5,3.18,.02),t.add(h);var f=new a.SphereGeometry(.04,32,32),m=new a.Mesh(f,e);m.position.set(-.5,3.18,.02),m.rotation.x+=Math.PI/2,m.scale.set(.8,1,1),t.add(m);var y=m.clone();y.position.x+=-1.2,t.add(y);var v=m.clone();v.position.x+=-1.4,t.add(v);var g=m.clone();g.position.x+=-2.6,t.add(g);var x=(new a.Box3).setFromObject(t),w=Math.abs(x.max.x-x.min.x),M=Math.abs(x.max.y-x.min.y),q=Math.abs(x.max.z-x.min.z);return t.position.x+=l/1.48,t.position.y+=-u/2.1,t.position.z+=d/1024,t.scale.set(l/w,u/M,d/q),t}}}},334:function(e,t,n){e.exports=n.p+"catalog/holes/venetian-blind-window/texture.png"},335:function(e,t,n){e.exports=n.p+"catalog/holes/venetian-blind-window/venetian.obj"},336:function(e,t,n){e.exports=n.p+"catalog/holes/venetian-blind-window/venetian.mtl"},337:function(e,t,n){e.exports=n.p+"catalog/holes/venetian-blind-window/venetian.jpg"},338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),o=n(27),i=l(n(26));function l(e){return e&&e.__esModule?e:{default:e}}var s=null;t.default={name:"venetian-blind-window",prototype:"holes",info:{tag:["Window"],title:"Venetian Blind Window",description:"Venetian Blind Window",image:n(337)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:90}},height:{label:"Height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:90}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:10}},flip:{label:"Flip",type:"checkbox",defaultValue:"false"}},render2D:function(e,t,n){var a=e.properties.get("width").get("length"),o="M0 -3 L"+a+" "+-3+" L"+a+" 3 L0 3 z",i=e.selected?{stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},l=e.properties.get("width").get("length");return r.default.createElement("g",{transform:"translate("+-l/2+", 0)"},r.default.createElement("path",{key:"1",d:o,style:i}),r.default.createElement("line",{key:"2",x1:a/2,y1:-13,x2:a/2,y2:13,style:i}))},render3D:function(e,t,r){e.properties.get("width").get("length"),e.properties.get("height").get("length");var l=e.properties.get("thickness").get("length"),u=e.properties.get("flip"),d=function(t){var n=new a.Object3D,r=(new a.Box3).setFromObject(t),o=r.max.x-r.min.x,i=r.max.y-r.min.y,l=r.max.z-r.min.z;if(e.selected){var s=new a.BoxHelper(t,10077179);s.material.linewidth=2,s.material.depthTest=!1,s.renderOrder=1e3,t.add(s)}var d=e.properties.get("width").get("length"),c=e.properties.get("height").get("length"),p=e.properties.get("thickness").get("length");return t.scale.set(d/o,c/i,p/2/l),n.add(t),n.add(f()),!0===u&&(n.rotation.y+=Math.PI),n};if(s)return Promise.resolve(d(s.clone()));var c=n(336),p=n(335),h=n(334);return(0,o.loadObjWithMaterial)(c,p,i.default.dirname(h)+"/").then(function(e){return d((s=e).clone())});function f(){var e=new a.Object3D,t=new a.MeshLambertMaterial({color:16777215,opacity:.5,transparent:!0}),n=new a.MeshLambertMaterial({color:13421772}),r=new a.Shape;r.moveTo(0,.25),r.lineTo(0,17.75),r.quadraticCurveTo(0,18,.25,18),r.lineTo(.75,18),r.quadraticCurveTo(1,18,1,17.75),r.lineTo(1,.25),r.quadraticCurveTo(1,0,.75,0),r.lineTo(.25,0),r.quadraticCurveTo(0,0,0,.25);var o=new a.Path;o.moveTo(.5,.6),o.arc(0,.7,.15,0,Math.PI,!1),o.arc(.15,-.09,.15,Math.PI,0,!1),r.holes.push(o);var i=new a.Path;i.moveTo(.5,4.6),i.arc(0,.7,.15,0,Math.PI,!1),i.arc(.15,-.09,.15,Math.PI,0,!1),r.holes.push(i);var s=new a.Path;s.moveTo(.5,8.6),s.arc(0,.7,.15,0,Math.PI,!1),s.arc(.15,-.09,.15,Math.PI,0,!1),r.holes.push(s);var u=new a.Path;u.moveTo(.5,12.6),u.arc(0,.7,.15,0,Math.PI,!1),u.arc(.15,-.09,.15,Math.PI,0,!1),r.holes.push(u);var d=new a.Path;d.moveTo(.5,16.6),d.arc(0,.7,.15,0,Math.PI,!1),d.arc(.15,-.09,.15,Math.PI,0,!1),r.holes.push(d);for(var c={steps:1,depth:.2,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1},p=0;p<25;p+=.7){var h=new a.ExtrudeGeometry(r,c),f=new a.Mesh(h,n);f.position.set(0,p,.86),f.rotation.z+=Math.PI/2,f.rotation.x+=-Math.PI/2,e.add(f)}for(var m=-1.25;m>-19;m+=-4){var y=new a.CylinderGeometry(.105,.105,26,32),v=new a.Mesh(y,t);v.position.set(m,12.5,.35),e.add(v)}var g=new a.Shape;g.moveTo(0,.25),g.lineTo(0,17.75),g.quadraticCurveTo(0,18,.25,18),g.lineTo(.75,18),g.quadraticCurveTo(1,18,1,17.75),g.lineTo(1,.25),g.quadraticCurveTo(1,0,.75,0),g.lineTo(.25,0),g.quadraticCurveTo(0,0,0,.25);for(var x={steps:1,depth:.4,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1},w=-.5;w<27;w+=26){var M=new a.ExtrudeGeometry(g,x),q=new a.Mesh(M,n);q.position.set(0,w,1),q.rotation.z+=Math.PI/2,q.rotation.x+=-Math.PI/2,e.add(q)}var _=(new a.Box3).setFromObject(e),b=Math.abs(_.max.x-_.min.x),E=Math.abs(_.max.y-_.min.y),O=Math.abs(_.max.z-_.min.z);return e.position.x+=40,e.position.y+=-45,e.scale.set(5.2/O,5.45*18/E,2.5*l/b),e}}}},339:function(e,t,n){e.exports=n.p+"catalog/holes/sliding-door/slidingDoor.png"},34:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactPlannerUtils=t.ElementsFactories=t.ReactPlannerClasses=t.ReactPlannerReducers=t.ReactPlannerActions=t.ReactPlannerComponents=t.ReactPlannerSharedStyle=t.ReactPlannerConstants=t.Plugins=t.ReactPlanner=t.reducer=t.Models=t.Translator=t.Catalog=void 0;var r=g(n(171)),a=g(n(50)),o=v(n(31)),i=g(n(1449)),l=g(n(1408)),s=g(n(383)),u=v(n(4)),d=v(n(5)),c=g(n(118)),p=g(n(70)),h=g(n(121)),f=g(n(11)),m=g(n(379)),y=g(n(10));function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}t.Catalog=r.default,t.Translator=a.default,t.Models=o,t.reducer=i.default,t.ReactPlanner=l.default,t.Plugins=s.default,t.ReactPlannerConstants=u,t.ReactPlannerSharedStyle=d,t.ReactPlannerComponents=c.default,t.ReactPlannerActions=p.default,t.ReactPlannerReducers=h.default,t.ReactPlannerClasses=f.default,t.ElementsFactories=m.default,t.ReactPlannerUtils=y.default},340:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));var o=new a.MeshLambertMaterial({color:4144959}),i=new a.MeshLambertMaterial({color:16777215,transparent:!0,opacity:.5}),l=new a.MeshLambertMaterial({color:0});t.default={name:"sliding door",prototype:"holes",info:{tag:["door"],title:"sliding door",description:"iron door",image:n(339)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:200,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"horizontal flip",type:"checkbox",defaultValue:"none",values:{none:"none",yes:"yes"}},flip_vertical:{label:"vertical flip",type:"checkbox",defaultValue:"right",values:{right:"right",left:"left"}}},render2D:function(e,t,n){var a={stroke:"#0096fd",strokeWidth:"14px",fill:"#0096fd",cursor:"move"},o=e.properties.get("flip_horizontal"),i=e.properties.get("flip_vertical"),l=e.properties.get("width").get("length"),s=e.selected?a:{stroke:"#000",strokeWidth:"14px",fill:"#000"},u=e.selected?a:{stroke:"#000",strokeWidth:"16px",fill:"#000"},d=(e.properties.get("width").get("length"),void 0),c=void 0,p=void 0,h=void 0;return o=o?"yes":"none",i=i?"right":"left","yes"===o?(d=1,"right"===i?(p=0,h=l/2,c=-1):(p=l/2,h=l,c=-1)):(d=1,"right"===i?(p=l/2,h=l,c=1):(p=0,h=l/2,c=1)),r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("line",{key:"1",x1:"0",y1:-3,x2:l,y2:-3,style:s,transform:"scale("+d+","+c+")"}),r.default.createElement("line",{key:"2",x1:p,y1:2,x2:h,y2:2,style:u,transform:"scale("+d+","+c+")"}),r.default.createElement("line",{key:"3",x1:l,y1:-3,x2:l,y2:18,style:u,transform:"scale("+d+","+c+")"}),r.default.createElement("line",{key:"4",x1:"0",y1:-3,x2:"0",y2:18,style:u,transform:"scale("+d+","+c+")"}))},render3D:function(e,t,n){var r=e.properties.get("flip_horizontal"),s=e.properties.get("flip_vertical"),u=e.properties.get("width").get("length"),d=e.properties.get("height").get("length"),c=e.properties.get("thickness").get("length"),p=e.properties.get("altitude").get("length");r=r?"yes":"none",s=s?"right":"left";var h=new a.Object3D;h.add(function(e){var t=new a.Mesh,n=new a.Shape;n.moveTo(1,2),n.lineTo(0,2),n.lineTo(0,0),n.lineTo(1,0);var r=new a.Path;r.moveTo(.65,1.75),r.lineTo(.35,1.75),r.lineTo(.35,1.25),r.lineTo(.65,1.25),n.holes.push(r);var s=new a.ExtrudeGeometry(n,{steps:2,depth:.05,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),u=new a.Mesh(s,o);"right"===e?u.position.set(-1,0,0):u.position.set(0,0,0),t.add(u);var d=new a.BoxGeometry(1,2,.05),c=new a.Mesh(d,o);"right"===e?c.position.set(1.5,1,.065):c.position.set(-.5,1,.065),u.add(c);var p=new a.BoxGeometry(2,.1,.1),h=new a.Mesh(p,o);h.position.set(-0,2.07,.05),t.add(h);var f=new a.BoxGeometry(.3,.5,.05),m=new a.Mesh(f,i);m.position.set(.5,1.5,.025),u.add(m);var y=new a.CylinderGeometry(.051,.051,.0625,80,80,!0);l.side=a.DoubleSide;var v=new a.Mesh(y,l);v.position.set(.2,1,.025),v.rotation.x=Math.PI/2,u.add(v);var g=new a.BoxGeometry(.1,.02,.0625),x=new a.Mesh(g,l);return x.position.set(.2,1,.025),u.add(x),"left"===e&&(v.position.x=.8,x.position.x=.8),t}(s).clone());var f=(new a.Box3).setFromObject(h),m=Math.abs(f.max.x-f.min.x),y=Math.abs(f.max.y-f.min.y),v=Math.abs(f.max.z-f.min.z);if(e.selected){var g=new a.BoxHelper(h,10077179);g.material.linewidth=5,g.renderOrder=1e3,g.material.depthTest=!1,h.add(g)}return"yes"===r&&(h.rotation.y+=Math.PI),h.position.y+=p,h.scale.set(u/m,d/y,c/v),Promise.resolve(h)}}},341:function(e,t,n){e.exports=n.p+"catalog/holes/sash-window/texture.png"},342:function(e,t,n){e.exports=n.p+"catalog/holes/sash-window/sash-window.obj"},343:function(e,t,n){e.exports=n.p+"catalog/holes/sash-window/sash-window.mtl"},344:function(e,t,n){e.exports=n.p+"catalog/holes/sash-window/window.png"},345:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),o=n(27),i=l(n(26));function l(e){return e&&e.__esModule?e:{default:e}}var s=null;t.default={name:"sash window",prototype:"holes",info:{title:"sash window",tag:["window"],description:"Sash window",image:n(344)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:90}},height:{label:"Height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:90}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:10}}},render2D:function(e,t,n){var a=e.properties.get("width").get("length"),o="M0 -3 L"+a+" "+-3+" L"+a+" 3 L0 3 z",i=e.selected?{stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},l=e.properties.get("width").get("length");return r.default.createElement("g",{transform:"translate("+-l/2+", 0)"},r.default.createElement("path",{key:"1",d:o,style:i}),r.default.createElement("line",{key:"2",x1:a/2,y1:-13,x2:a/2,y2:13,style:i}))},render3D:function(e,t,r){var l=function(t){var n=(new a.Box3).setFromObject(t),r=n.max.x-n.min.x,o=n.max.y-n.min.y,i=n.max.z-n.min.z;if(e.selected){var l=new a.BoxHelper(t,10077179);l.material.linewidth=2,l.material.depthTest=!1,l.renderOrder=1e3,t.add(l)}var s=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length");return t.scale.set(s/r,u/o,d/i),t};if(s)return Promise.resolve(l(s.clone()));var u=n(343),d=n(342),c=n(341);return(0,o.loadObjWithMaterial)(u,d,i.default.dirname(c)+"/").then(function(e){return l((s=e).clone())})}}},346:function(e,t,n){e.exports=n.p+"catalog/holes/panic-door/panicDoor.png"},347:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));var o=new a.MeshLambertMaterial({color:0}),i=new a.MeshLambertMaterial({color:3442561}),l=new a.MeshLambertMaterial({color:16711680}),s=new a.MeshLambertMaterial({color:4441819,opacity:.7,transparent:!0}),u=new a.MeshLambertMaterial({color:12046060}),d=(new a.MeshLambertMaterial({color:3223857}),new a.MeshLambertMaterial({color:2171169}),new a.MeshLambertMaterial({color:5664126})),c=void 0,p=void 0;function h(e){var t=new a.Mesh,n=function(){var e=new a.Object3D,t=new a.BoxGeometry(.6,1.2,.01),n=new a.BoxGeometry(.2,.7,.01),r=new a.BoxGeometry(.2,.2,.01),o=new a.CylinderGeometry(.005,.005,1.9,Math.round(32)),l=new a.BoxGeometry(.03,1.9,.01),u=new a.BoxGeometry(.2,.7,.06),d=new a.BoxGeometry(.19,.7,.06),c=new a.BoxGeometry(.2,.2,.06),p=new a.BoxGeometry(.2,.5,.05),h=new a.BoxGeometry(.59,1.2,.06),f=new a.BoxGeometry(.01,.52,.064),m=new a.BoxGeometry(.224,.01,.064),y=new a.Mesh(t,i),v=new a.Mesh(d,i),g=new a.Mesh(u,i),x=new a.Mesh(h,i),w=new a.Mesh(n,i),M=new a.Mesh(n,i),q=new a.Mesh(r,i),_=new a.Mesh(c,i),b=new a.Mesh(o,i),E=new a.Mesh(l,i),O=new a.Mesh(p,s),I=new a.Mesh(f,i),P=new a.Mesh(f,i),T=new a.Mesh(m,i),G=new a.Mesh(m,i);return y.position.set(-(.6-.59)/2,0,-.025),w.position.set(-.2,.95,0),M.position.set(.2,.95,0),q.position.set(0,.35,-.025),_.position.set(0,.35,0),O.position.set(-.005,.85,0),g.position.z=.025,v.position.set(.005,0,.025),b.position.set(-.3,.35,0),I.position.x=.1+.007,P.position.x=-.1-.007,T.position.y=.257,G.position.y=-.257,E.position.set(.01,0,-.005),b.add(E),O.add(q),O.add(I),O.add(P),O.add(T),O.add(G),O.add(q),O.add(_),x.add(O),w.add(v),M.add(g),y.add(b),y.add(w),y.add(M),x.add(y),e.add(x),e.scale.x=1.3,e}(),r=function(e){var t=new a.Object3D,n=function(e){var t=new a.Object3D,n=new a.BoxGeometry(.038,.14,.01),r=new a.CylinderGeometry(.023,.023,.01,Math.round(32)),i=function(){var e=new a.Object3D,t=new a.CylinderGeometry(.005,.005,.02,Math.round(32)),n=new a.BoxGeometry(.008,.02,.02),r=new a.BoxGeometry(.007,.0203,.0018),o=new a.Mesh(t,u),i=new a.Mesh(n,u),l=new a.Mesh(r,d);return i.position.z=.01,o.add(i),o.add(l),e.add(o),e}(),l=new a.Mesh(n,o),s=new a.Mesh(r,o);i.rotation.x=Math.PI/2,s.rotation.x=Math.PI/2,i.position.y=-.03,s.position.y=-.033,e||(l.position.x=.4);return s.scale.z=1.5,l.add(i),l.add(s),t.add(l),t}(e),r=function(){var e=new a.Object3D,t=new a.CylinderGeometry(.01,.01,.03,Math.round(32)),n=new a.SphereGeometry(.01,Math.round(32),Math.round(32)),r=new a.CylinderGeometry(.01,.01,.07,Math.round(32)),i=new a.Mesh(t,o),l=new a.Mesh(n,o),s=new a.Mesh(r,o),u=new a.Mesh(n,o);return s.rotation.z=Math.PI/2,s.position.x=.035,l.position.y=-.015,u.position.y=-.035,s.add(u),l.add(s),i.add(l),e.add(i),e}();r.rotation.x=Math.PI/2,e?r.position.set(0,.04,-.02):(r.position.set(.4,.04,-.02),r.rotation.y=Math.PI);return t.add(n),t.add(r),t.scale.set(1.1,1.1,1.1),t}(e),l=m(),c=m(),p=f(),h=f(),y=function(){var e=new a.Object3D,t=new a.BoxGeometry(.01,.1,.02),n=new a.BoxGeometry(.01,.02,.01),r=new a.BoxGeometry(.006,.04,.008),o=new a.Mesh(t,u),i=new a.Mesh(n,d),l=new a.Mesh(r,d);return i.position.set(-.004,.03,0),l.position.y=-.05,i.add(l),o.add(i),e.add(o),e}(),v=function(){var e=new a.Object3D,t=new a.CylinderGeometry(.012,.012,1.905,Math.round(32)),n=new a.CylinderGeometry(.007,.007,1.907,Math.round(32)),r=new a.Mesh(t,u),o=new a.Mesh(n,d);return e.position.set(-.275,.35,0),e.scale.x=1/1.3,r.add(o),e.add(r),e}();return y.position.set(-.05,-.02,.03),r.position.set(-.235,.425,-.03),e?l.position.set(.2975,0,-.03):l.position.set(-.2975,0,-.03),c.position.set(.3,0,.0385),p.position.set(0,.4,.03),h.position.set(0,.4,-.031),r.add(y),n.add(r),n.add(p),n.add(l),t.add(n),n.add(v),t}function f(){var e=new a.Object3D,t=new a.BoxGeometry(.5,.1,.005),n=new a.CylinderGeometry(.04,.04,.48,Math.round(32)),r=new a.CylinderGeometry(.042,.042,.01,Math.round(32)),i=new a.Mesh(t,o),s=new a.Mesh(n,l),u=new a.Mesh(r,o),d=new a.Mesh(r,o);return i.position.z=.0025,s.rotation.z=Math.PI/2,u.position.y=.245,d.position.y=-.245,s.add(u),s.add(d),i.add(s),e.add(i),e}function m(){var e=new a.Object3D,t=new a.CylinderGeometry(.009,.009,.04,Math.round(32)),n=new a.CylinderGeometry(.01,.01,.04,Math.round(32)),r=new a.Mesh(t,i),o=new a.Mesh(n,i),l=new a.Mesh(t,i),s=new a.Mesh(n,i);return r.position.y=-.4,o.position.y=.04,l.position.y=1,s.position.y=.04,l.add(s),r.add(o),e.add(l),e.add(r),e}t.default={name:"panic door",prototype:"holes",info:{tag:["door"],title:"panic door",description:"iron door",image:n(346)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:100,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"horizontal flip",type:"checkbox",defaultValue:"none",values:{none:"none",yes:"yes"}},flip_vertical:{label:"vertical flip",type:"checkbox",defaultValue:"right",values:{right:"right",left:"left"}}},render2D:function(e,t,n){var a=e.properties.get("flip_horizontal"),o=e.properties.get("flip_vertical"),i=e.properties.get("width").get("length"),l="M0 -3 L"+i+" "+-3+" L"+i+" 3 L0 3 z",s="M0,0 A"+i+","+i+" 0 0,1 "+i+","+i,u=e.selected?{stroke:"#ff0000",strokeWidth:"4px",fill:"#ff0000",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",fill:"#ff0000"},d=e.selected?{stroke:"#ff0000",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"},h=(e.properties.get("width").get("length"),void 0),f=void 0,m=void 0,y=void 0,v=void 0,g=void 0,x=void 0,w=void 0,M=void 0;return c=a?"yes":"none",p=o?"right":"left","yes"===c?(h=1,"right"===p?(y=i,v=-i,g=-i,w=0,x=-i,M=i,m=180,f=-1):(y=0,v=-i,g=0,w=0,x=0,M=-i,f=1,m=0)):"none"===c&&(h=-1,"left"===p?(y=i,v=0,g=0,w=0,x=0,M=-i,m=-90,f=-1):(y=0,v=0,g=i,w=0,x=i,M=i,m=90,f=1)),r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("path",{key:"1",d:s,style:d,transform:"translate("+y+","+v+") scale("+h+","+f+") rotate("+m+")"}),r.default.createElement("line",{key:"2",x1:g,y1:w-3,x2:x,y2:M-3,style:u,transform:"scale("+-h+","+f+")"}),r.default.createElement("path",{key:"5",d:l,style:u}))},render3D:function(e,t,n){var r=e.properties.get("flip_horizontal"),o=e.properties.get("flip_vertical"),i=e.properties.get("width").get("length"),l=e.properties.get("height").get("length"),s=e.properties.get("thickness").get("length"),u=e.properties.get("altitude").get("length"),d=new a.Object3D;if(d.add(h(o).clone()),e.selected){var c=new a.BoxHelper(d,10077179);c.material.linewidth=5,c.renderOrder=1e3,c.material.depthTest=!1,d.add(c)}var p=(new a.Box3).setFromObject(d),f=Math.abs(p.max.x-p.min.x),m=Math.abs(p.max.y-p.min.y),y=Math.abs(p.max.z-p.min.z);return r&&(d.rotation.y+=Math.PI),d.position.y+=u,d.scale.set(i/f,l/m,s/y),Promise.resolve(d)}}},348:function(e,t,n){e.exports=n.p+"catalog/holes/panic-door-double/panicDoorDouble.png"},349:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));var o=new a.MeshLambertMaterial({color:0}),i=new a.MeshLambertMaterial({color:3442561}),l=new a.MeshLambertMaterial({color:16711680}),s=new a.MeshLambertMaterial({color:4441819,opacity:.7,transparent:!0}),u=new a.MeshLambertMaterial({color:12046060}),d=(new a.MeshLambertMaterial({color:3223857}),new a.MeshLambertMaterial({color:2171169}),new a.MeshLambertMaterial({color:5664126}));function c(){var e=new a.Mesh,t=m(),n=m(),r=function(){var e=new a.Object3D,t=function(){var e=new a.Object3D,t=new a.BoxGeometry(.038,.14,.01),n=new a.CylinderGeometry(.023,.023,.01,Math.round(32)),r=function(){var e=new a.Object3D,t=new a.CylinderGeometry(.005,.005,.02,Math.round(32)),n=new a.BoxGeometry(.008,.02,.02),r=new a.BoxGeometry(.007,.0203,.0018),o=new a.Mesh(t,u),i=new a.Mesh(n,u),l=new a.Mesh(r,d);return i.position.z=.01,o.add(i),o.add(l),e.add(o),e}(),i=new a.Mesh(t,o),l=new a.Mesh(n,o);return r.rotation.x=Math.PI/2,r.position.y=-.03,l.rotation.x=Math.PI/2,l.position.y=-.033,l.scale.z=1.5,i.add(r),i.add(l),e.add(i),e}(),n=function(){var e=new a.Object3D,t=new a.CylinderGeometry(.01,.01,.03,Math.round(32)),n=new a.SphereGeometry(.01,Math.round(32),Math.round(32)),r=new a.CylinderGeometry(.01,.01,.07,Math.round(32)),i=new a.Mesh(t,o),l=new a.Mesh(n,o),s=new a.Mesh(r,o),u=new a.Mesh(n,o);return s.rotation.z=Math.PI/2,s.position.x=.035,l.position.y=-.015,u.position.y=-.035,s.add(u),l.add(s),i.add(l),e.add(i),e}();return n.rotation.x=Math.PI/2,n.position.set(0,.04,-.02),e.add(t),e.add(n),e.scale.set(1.1,1.1,1.1),e}(),i=f(),l=f(),s=h(),c=h(),y=function(){var e=new a.Object3D,t=new a.BoxGeometry(.01,.1,.02),n=new a.BoxGeometry(.01,.02,.01),r=new a.BoxGeometry(.006,.04,.008),o=new a.Mesh(t,u),i=new a.Mesh(n,d),l=new a.Mesh(r,d);return i.position.set(-.004,.03,0),l.position.y=-.05,i.add(l),o.add(i),e.add(o),e}(),v=p(),g=p();return y.position.set(-.05,-.02,.03),r.position.set(-.235,.425,-.03),i.position.set(.2975,0,-.03),l.position.set(.3,0,.0385),n.rotation.y=Math.PI,n.position.set(-.259,0,.0043),t.position.set(.259,0,-.0043),s.position.set(0,.4,.03),c.position.set(0,.4,-.031),r.add(y),t.add(r),t.add(s),n.add(c),t.add(i),e.add(t),n.add(l),t.add(v),n.add(g),e.add(n),e}function p(){var e=new a.Object3D,t=new a.CylinderGeometry(.012,.012,1.905,Math.round(32)),n=new a.CylinderGeometry(.007,.007,1.907,Math.round(32)),r=new a.Mesh(t,u),o=new a.Mesh(n,d);return e.position.set(-.275,.35,0),e.scale.x=1/1.3,r.add(o),e.add(r),e}function h(){var e=new a.Object3D,t=new a.BoxGeometry(.5,.1,.005),n=new a.CylinderGeometry(.04,.04,.48,Math.round(32)),r=new a.CylinderGeometry(.042,.042,.01,Math.round(32)),i=new a.Mesh(t,o),s=new a.Mesh(n,l),u=new a.Mesh(r,o),d=new a.Mesh(r,o);return i.position.z=.0025,s.rotation.z=Math.PI/2,u.position.y=.245,d.position.y=-.245,s.add(u),s.add(d),i.add(s),e.add(i),e}function f(){var e=new a.Object3D,t=new a.CylinderGeometry(.009,.009,.04,Math.round(32)),n=new a.CylinderGeometry(.01,.01,.04,Math.round(32)),r=new a.Mesh(t,i),o=new a.Mesh(n,i),l=new a.Mesh(t,i),s=new a.Mesh(n,i);return r.position.y=-.4,o.position.y=.04,l.position.y=1,s.position.y=.04,l.add(s),r.add(o),e.add(l),e.add(r),e}function m(){var e=new a.Object3D,t=new a.BoxGeometry(.6,1.2,.01),n=new a.BoxGeometry(.2,.7,.01),r=new a.BoxGeometry(.2,.2,.01),o=new a.CylinderGeometry(.005,.005,1.9,Math.round(32)),l=new a.BoxGeometry(.03,1.9,.01),u=new a.BoxGeometry(.2,.7,.06),d=new a.BoxGeometry(.19,.7,.06),c=new a.BoxGeometry(.2,.2,.06),p=new a.BoxGeometry(.2,.5,.05),h=new a.BoxGeometry(.59,1.2,.06),f=new a.BoxGeometry(.01,.52,.064),m=new a.BoxGeometry(.224,.01,.064),y=new a.Mesh(t,i),v=new a.Mesh(d,i),g=new a.Mesh(u,i),x=new a.Mesh(h,i),w=new a.Mesh(n,i),M=new a.Mesh(n,i),q=new a.Mesh(r,i),_=new a.Mesh(c,i),b=new a.Mesh(o,i),E=new a.Mesh(l,i),O=new a.Mesh(p,s),I=new a.Mesh(f,i),P=new a.Mesh(f,i),T=new a.Mesh(m,i),G=new a.Mesh(m,i);return y.position.set(-(.6-.59)/2,0,-.025),w.position.set(-.2,.95,0),M.position.set(.2,.95,0),q.position.set(0,.35,-.025),_.position.set(0,.35,0),O.position.set(-.005,.85,0),g.position.z=.025,v.position.set(.005,0,.025),b.position.set(-.3,.35,0),I.position.x=.1+.007,P.position.x=-.1-.007,T.position.y=.257,G.position.y=-.257,E.position.set(.01,0,-.005),b.add(E),O.add(q),O.add(I),O.add(P),O.add(T),O.add(G),O.add(q),O.add(_),x.add(O),w.add(v),M.add(g),y.add(b),y.add(w),y.add(M),x.add(y),e.add(x),e.scale.x=.9,e}t.default={name:"double panic door",prototype:"holes",info:{tag:["door"],title:"double panic door",description:"iron door",image:n(348)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:200,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"flip",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){var a=e.properties.get("flip_horizontal"),o=e.properties.get("width").get("length"),i="M0 -3 L"+o+" "+-3+" L"+o+" 3 L0 3 z",l="M0,0 A"+o/2+","+o/2+" 0 0,1 "+o/2+","+o/2,s="M0,0 A"+o/2+","+o/2+" 0 0,0 "+o/2+","+o/2,u=e.selected?{stroke:"#ff0000",strokeWidth:"4px",fill:"#ff0000",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",fill:"#ff0000"},d=e.selected?{stroke:"#ff0000",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"};e.properties.get("width").get("length");return a?r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("path",{key:"1",d:l,style:d,transform:"translate(0,"+-o/2+")"}),r.default.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:-o/2-3,style:u}),r.default.createElement("path",{key:"3",d:s,style:d,transform:"translate("+o+","+-o/2+") rotate(90)"}),r.default.createElement("line",{key:"4",x1:o,y1:-3,x2:o,y2:-o/2-3,style:u}),r.default.createElement("path",{key:"5",d:i,style:u})):r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("path",{key:"1",d:l,style:d,transform:"translate("+o+","+o/2+") rotate(180)"}),r.default.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:o/2-3,style:u}),r.default.createElement("path",{key:"3",d:s,style:d,transform:"translate(0,"+o/2+") rotate(270)"}),r.default.createElement("line",{key:"4",x1:o,y1:-3,x2:o,y2:o/2-3,style:u}),r.default.createElement("path",{key:"5",d:i,style:u}))},render3D:function(e,t,n){var r=e.properties.get("flip_horizontal"),o=e.properties.get("width").get("length"),i=e.properties.get("height").get("length"),l=e.properties.get("thickness").get("length"),s=e.properties.get("altitude").get("length"),u=new a.Object3D;u.add(c().clone());var d=(new a.Box3).setFromObject(u),p=Math.abs(d.max.x-d.min.x),h=Math.abs(d.max.y-d.min.y),f=Math.abs(d.max.z-d.min.z);if(e.selected){var m=new a.BoxHelper(u,10077179);m.material.linewidth=5,m.renderOrder=1e3,m.material.depthTest=!1,u.add(m)}return r&&(u.rotation.y+=Math.PI),u.position.y+=s,u.scale.set(o/p,i/h,l/f),Promise.resolve(u)}}},350:function(e,t,n){e.exports=n.p+"catalog/holes/gate/gate.jpg"},351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));o(n(26));function o(e){return e&&e.__esModule?e:{default:e}}t.default={name:"gate",prototype:"holes",info:{tag:["gate"],title:"gate",description:"hole in the wall",image:n(350)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:80}},height:{label:"height",type:"length-measure",defaultValue:{length:215}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30}}},render2D:function(e,t,n){var a=e.properties.get("width").get("length"),o="M0,0 A0,0 0 0,1 "+a+",0",i=e.selected?{stroke:"#0096fd",strokeWidth:"4px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},l=e.selected?{stroke:"#0096fd",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"},s=e.properties.get("width").get("length");return r.default.createElement("g",{transform:"translate("+-s/2+", 0)"},r.default.createElement("line",{key:"1",x1:0,y1:a/6-3,x2:0,y2:-a/6+3,style:i,transform:"scale(-1,1)"}),r.default.createElement("line",{key:"2",x1:-a,y1:a/6-3,x2:-a,y2:-a/6+3,style:i,transform:"scale(-1,1)"}),r.default.createElement("path",{key:"3",d:o,style:l}))},render3D:function(e,t,n){var r=new a.Object3D;return Promise.resolve(r)}}},352:function(e,t,n){e.exports=n.p+"catalog/holes/door/texture.jpg"},353:function(e,t,n){e.exports=n.p+"catalog/holes/door/door.obj"},354:function(e,t,n){e.exports=n.p+"catalog/holes/door/door.mtl"},355:function(e,t,n){e.exports=n.p+"catalog/holes/door/door.png"},357:function(e,t,n){"use strict";var r,a=window.THREE||n(3);r=function(){var e=/^[og]\s*(.+)?/,t=/^mtllib /,n=/^usemtl /;function r(e){this.manager=void 0!==e?e:a.DefaultLoadingManager,this.materials=null}return r.prototype={constructor:r,load:function(e,t,n,r){var o=this,i=new a.FileLoader(o.manager);i.setPath(this.path),i.load(e,function(e){t(o.parse(e))},n,r)},setPath:function(e){this.path=e},setMaterials:function(e){return this.materials=e,this},parse:function(r){console.time("OBJLoader");var o=new function(){var e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);var n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(e,t){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var r={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){var t={index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(r),r},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"==typeof n.clone){var r=n.clone(0);r.inherited=!0,this.object.materials.push(r)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){var n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){var r=this.vertices,a=this.object.geometry.vertices;a.push(r[e+0],r[e+1],r[e+2]),a.push(r[t+0],r[t+1],r[t+2]),a.push(r[n+0],r[n+1],r[n+2])},addVertexPoint:function(e){var t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){var t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){var r=this.normals,a=this.object.geometry.normals;a.push(r[e+0],r[e+1],r[e+2]),a.push(r[t+0],r[t+1],r[t+2]),a.push(r[n+0],r[n+1],r[n+2])},addColor:function(e,t,n){var r=this.colors,a=this.object.geometry.colors;a.push(r[e+0],r[e+1],r[e+2]),a.push(r[t+0],r[t+1],r[t+2]),a.push(r[n+0],r[n+1],r[n+2])},addUV:function(e,t,n){var r=this.uvs,a=this.object.geometry.uvs;a.push(r[e+0],r[e+1]),a.push(r[t+0],r[t+1]),a.push(r[n+0],r[n+1])},addUVLine:function(e){var t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,n,r,a,o,i,l,s){var u=this.vertices.length,d=this.parseVertexIndex(e,u),c=this.parseVertexIndex(t,u),p=this.parseVertexIndex(n,u);if(this.addVertex(d,c,p),void 0!==r&&""!==r){var h=this.uvs.length;d=this.parseUVIndex(r,h),c=this.parseUVIndex(a,h),p=this.parseUVIndex(o,h),this.addUV(d,c,p)}if(void 0!==i&&""!==i){var f=this.normals.length;d=this.parseNormalIndex(i,f),c=i===l?d:this.parseNormalIndex(l,f),p=i===s?d:this.parseNormalIndex(s,f),this.addNormal(d,c,p)}this.colors.length>0&&this.addColor(d,c,p)},addPointGeometry:function(e){this.object.geometry.type="Points";for(var t=this.vertices.length,n=0,r=e.length;n0){var x=g.split("/");m.push(x)}}var w=m[0];for(y=1,v=m.length-1;y1){var S=u[1].trim().toLowerCase();o.object.smooth="0"!==S&&"off"!==S}else o.object.smooth=!0;(H=o.object.currentMaterial())&&(H.smooth=o.object.smooth)}o.finalize();var D=new a.Group;D.materialLibraries=[].concat(o.materialLibraries);for(c=0,p=o.objects.length;c0?N.addAttribute("normal",new a.Float32BufferAttribute(A.normals,3)):N.computeVertexNormals(),A.colors.length>0&&(j=!0,N.addAttribute("color",new a.Float32BufferAttribute(A.colors,3))),A.uvs.length>0&&N.addAttribute("uv",new a.Float32BufferAttribute(A.uvs,2));for(var z,B=[],U=0,V=L.length;U1){for(U=0,V=L.length;U=0?l.substring(0,s):l;u=u.toLowerCase();var d=s>=0?l.substring(s+1):"";if(d=d.trim(),"newmtl"===u)n={name:d},o[d]=n;else if(n)if("ka"===u||"kd"===u||"ks"===u){var c=d.split(a,3);n[u]=[parseFloat(c[0]),parseFloat(c[1]),parseFloat(c[2])]}else n[u]=d}}var p=new r.MaterialCreator(this.texturePath||this.path,this.materialOptions);return p.setCrossOrigin(this.crossOrigin),p.setManager(this.manager),p.setMaterials(o),p}}),(r.MaterialCreator=function(e,t){this.baseUrl=e||"",this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:a.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:a.RepeatWrapping}).prototype={constructor:r.MaterialCreator,setCrossOrigin:function(e){this.crossOrigin=e},setManager:function(e){this.manager=e},setMaterials:function(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(e){if(!this.options)return e;var t={};for(var n in e){var r=e[n],a={};for(var o in t[n]=a,r){var i=!0,l=r[o],s=o.toLowerCase();switch(s){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(l=[l[0]/255,l[1]/255,l[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===l[0]&&0===l[1]&&0===l[2]&&(i=!1)}i&&(a[s]=l)}}return t},preload:function(){for(var e in this.materialsInfo)this.create(e)},getIndex:function(e){return this.nameLookup[e]},getAsArray:function(){var e=0;for(var t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray},create:function(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]},createMaterial_:function(e){var t=this.materialsInfo[e],n={name:e,side:this.side},r=function(e,t){return"string"!=typeof t||""===t?"":/^https?:\/\//i.test(t)?t:e+t};for(var o in t){var i=t[o];if(""!==i)switch(o.toLowerCase()){case"kd":n.color=(new a.Color).fromArray(i);break;case"ks":n.specular=(new a.Color).fromArray(i);break;case"map_kd":if(n.map)break;var l=this.getTextureParams(i,n);n.map=this.loadTexture(r(this.baseUrl,l.url)),n.map.repeat.copy(l.scale),n.map.offset.copy(l.offset),n.map.wrapS=this.wrap,n.map.wrapT=this.wrap;break;case"map_ks":if(n.specularMap)break;n.specularMap=this.loadTexture(r(this.baseUrl,i)),n.specularMap.wrapS=this.wrap,n.specularMap.wrapT=this.wrap;break;case"ns":n.shininess=parseFloat(i);break;case"d":i<1&&(n.opacity=i,n.transparent=!0);break;case"Tr":i>0&&(n.opacity=1-i,n.transparent=!0);break;case"map_bump":case"bump":if(n.bumpMap)break;l=this.getTextureParams(i,n);n.bumpMap=this.loadTexture(r(this.baseUrl,l.url)),n.bumpMap.repeat.copy(l.scale),n.bumpMap.offset.copy(l.offset),n.bumpMap.wrapS=this.wrap,n.bumpMap.wrapT=this.wrap}}return this.materials[e]=new a.MeshPhongMaterial(n),this.materials[e]},getTextureParams:function(e,t){var n,r={scale:new a.Vector2(1,1),offset:new a.Vector2(0,0)},o=e.split(/\s+/);return(n=o.indexOf("-bm"))>=0&&(t.bumpScale=parseFloat(o[n+1]),o.splice(n,2)),(n=o.indexOf("-s"))>=0&&(r.scale.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),(n=o.indexOf("-o"))>=0&&(r.offset.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),r.url=o.join(" ").trim(),r},loadTexture:function(e,t,n,r,o){var i,l=a.Loader.Handlers.get(e),s=void 0!==this.manager?this.manager:a.DefaultLoadingManager;return null===l&&(l=new a.TextureLoader(s)),l.setCrossOrigin&&l.setCrossOrigin(this.crossOrigin),i=l.load(e,n,r,o),void 0!==t&&(i.mapping=t),i}},e.exports=r},359:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),o=n(27),i=l(n(26));function l(e){return e&&e.__esModule?e:{default:e}}var s=null,u={stroke:"#000",strokeWidth:"3px",fill:"#000"},d={stroke:"#0096fd",strokeWidth:"4px",fill:"#0096fd",cursor:"move"},c={stroke:"#000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"},p={stroke:"#0096fd",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"};t.default={name:"door",prototype:"holes",info:{title:"door",tag:["door"],description:"Wooden door",image:n(355)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:80}},height:{label:"Height",type:"length-measure",defaultValue:{length:215}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:0}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:30}},flip_orizzontal:{label:"flip orizzontale",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){var a=e.properties.get("flip_orizzontal"),o=e.properties.get("width").get("length"),i="M0 -3 L"+o+" "+-3+" L"+o+" 3 L0 3 z",l="M0,0 A"+o+","+o+" 0 0,1 "+o+","+o,s=e.selected?d:u,h=e.selected?p:c,f=e.properties.get("width").get("length");return 0==a?r.default.createElement("g",{transform:"translate("+-f/2+", 0)"},r.default.createElement("path",{d:l,style:h,transform:"translate(0,"+o+") scale(1,"+-1+") rotate(0)"}),r.default.createElement("line",{x1:0,y1:o-3,x2:0,y2:-3,style:s,transform:"scale(-1,1)"}),r.default.createElement("path",{d:i,style:s})):r.default.createElement("g",{transform:"translate("+-f/2+", 0)"},r.default.createElement("path",{d:l,style:h,transform:"translate(0,"+-o+") scale(1,1) rotate(0)"}),r.default.createElement("line",{x1:0,y1:-o-3,x2:0,y2:-3,style:s,transform:"scale(-1,1)"}),r.default.createElement("path",{d:i,style:s}))},render3D:function(e,t,r){var l=function(t){var n=(new a.Box3).setFromObject(t),r=n.max.x-n.min.x,o=n.max.y-n.min.y,i=n.max.z-n.min.z;if(e.selected){var l=new a.BoxHelper(t,10077179);l.material.linewidth=2,l.material.depthTest=!1,l.renderOrder=1e3,t.add(l)}var s=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length");return t.scale.set(s/r,u/o,d/i),t};if(s)return Promise.resolve(l(s.clone()));var u=n(354),d=n(353),c=n(352);return(0,o.loadObjWithMaterial)(u,d,i.default.dirname(c)+"/").then(function(e){return l((s=e).clone())})}}},36:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.condition,n=e.style,a=e.children;return t?Array.isArray(a)?r.default.createElement("div",{style:n},a):a:null}i.propTypes={condition:a.default.bool.isRequired,style:a.default.object}},360:function(e,t,n){e.exports=n.p+"catalog/holes/door-double/door_double.png"},361:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));var o=new a.MeshLambertMaterial({color:0}),i=new a.MeshLambertMaterial({color:12046060}),l=new a.MeshLambertMaterial({color:13807722}),s=new a.MeshLambertMaterial({color:16773070}),u=[l,l,l,l,s,s];function d(e){var t=new a.Object3D,n=new a.CylinderGeometry(e/100,e/100,e/32.5,Math.round(32)),r=new a.SphereGeometry(e/100,Math.round(32),Math.round(32)),i=new a.CylinderGeometry(e/100,e/100,e/14.5,Math.round(32)),l=new a.Mesh(n,o),s=new a.Mesh(r,o),u=new a.Mesh(i,o),d=new a.Mesh(r,o);return u.rotation.z=Math.PI/2,u.position.x=e/14.5/2,s.position.y=-e/32.5/2,d.position.y=-e/14.5/2,u.add(d),s.add(u),l.add(s),t.add(l),t}function c(){var e=new a.Object3D,t=new a.BoxGeometry(7.6,28,2),n=new a.CylinderGeometry(3.6,3.6,2,Math.round(32)),r=function(){var e=new a.Object3D,t=new a.CylinderGeometry(1.5,1.5,4,Math.round(32)),n=new a.BoxGeometry(1.6,4,4),r=new a.BoxGeometry(1.4,4.06,.36),o=new a.Mesh(t,i),s=new a.Mesh(n,i),u=new a.Mesh(r,l);return s.position.z=1,o.add(s),o.add(u),e.add(o),e}(),s=new a.Mesh(t,o),u=new a.Mesh(n,o);return r.rotation.x=Math.PI/2,r.position.y=-3,u.rotation.x=Math.PI/2,u.position.y=-3.3,u.scale.z=1.5,s.add(r),s.add(u),e.add(s),e}t.default={name:"double door",prototype:"holes",info:{tag:["door"],title:"double door",description:"iron door",image:n(360)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:200,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"flip",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){var a=e.properties.get("flip_horizontal"),o=e.properties.get("width").get("length"),i="M0 -3 L"+o+" "+-3+" L"+o+" 3 L0 3 z",l="M0,0 A"+o/4+","+o/4+" 0 0,1 "+o/4+","+o/4,s="M0,0 A"+(o/2+o/4)+","+(o/2+o/4)+" 0 0,0 "+(o/2+o/4)+","+(o/2+o/4),u=e.selected?{stroke:"#ff0000",strokeWidth:"4px",fill:"#ff0000",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",fill:"#ff0000"},d=e.selected?{stroke:"#ff0000",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"};e.properties.get("width").get("length");return a?r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("path",{key:"1",d:l,style:d,transform:"translate(0,"+-o/4+")"}),r.default.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:-o/4-3,style:u}),r.default.createElement("path",{key:"3",d:s,style:d,transform:"translate("+o+","+(-o/2-o/4)+") rotate(90)"}),r.default.createElement("line",{key:"4",x1:o,y1:-3,x2:o,y2:-o/2-o/4-3,style:u}),r.default.createElement("path",{key:"5",d:i,style:u})):r.default.createElement("g",{transform:"translate("+-e.properties.get("width").get("length")/2+", 0)"},r.default.createElement("path",{key:"1",d:l,style:d,transform:"translate("+o+","+o/4+") rotate(180)"}),r.default.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:o/2+o/4-3,style:u}),r.default.createElement("path",{key:"3",d:s,style:d,transform:"translate(0,"+(o/2+o/4)+") rotate(270)"}),r.default.createElement("line",{key:"4",x1:o,y1:-3,x2:o,y2:o/4-3,style:u}),r.default.createElement("path",{key:"5",d:i,style:u}))},render3D:function(e,t,n){var r=e.properties.get("flip_horizontal"),o=e.properties.get("width").get("length"),i=e.properties.get("height").get("length"),l=e.properties.get("thickness").get("length"),s=e.properties.get("altitude").get("length"),p=new a.Object3D;p.add(function(e,t,n){var r=new a.Mesh,o=new a.BoxGeometry(.75*e,t,n),i=new a.Mesh(o,u);i.position.x-=.25*e,r.add(i);var l=new a.BoxGeometry(.25*e,t,n),s=new a.Mesh(l,u);s.position.x+=.25*e,s.position.z+=n/10,r.add(s);var p=d(e);p.position.set(e/20,t/40,n/2+n/10),p.rotation.z+=Math.PI,p.rotation.x+=Math.PI/2,r.add(p);var h=c();h.position.set(e/20,0,n/2),h.rotation.x=0,r.add(h);var f=d(e);f.position.set(e/20,t/40,-n/2-n/10),f.rotation.z+=Math.PI,f.rotation.x-=Math.PI/2,r.add(f);var m=c();return m.position.set(e/20,0,-n/2),m.rotation.x=0,r.add(m),r}(o,i,l).clone(o,i,l));var h=(new a.Box3).setFromObject(p),f=Math.abs(h.max.x-h.min.x),m=Math.abs(h.max.y-h.min.y),y=Math.abs(h.max.z-h.min.z);if(e.selected){var v=new a.BoxHelper(p,10077179);v.material.linewidth=5,v.renderOrder=1e3,v.material.depthTest=!1,p.add(v)}return r&&(p.rotation.y+=Math.PI,p.position.x-=o/4),p.position.y+=s,p.position.x+=o/8,p.scale.set(o/f,i/m,l/y),Promise.resolve(p)}}},362:function(e,t,n){e.exports=n.p+"catalog/lines/wall/textures/painted-normal.jpg"},363:function(e,t,n){e.exports=n.p+"catalog/lines/wall/textures/painted.jpg"},364:function(e,t,n){e.exports=n.p+"catalog/lines/wall/textures/bricks-normal.jpg"},365:function(e,t,n){e.exports=n.p+"catalog/lines/wall/textures/bricks.jpg"},366:function(e,t,n){e.exports=n.p+"catalog/lines/wall/wall.png"},367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34),a={title:"wall",tag:["wall"],description:"Wall with bricks or painted",image:n(366),visibility:{catalog:!0,layerElementsVisible:!0}},o={bricks:{name:"Bricks",uri:n(365),lengthRepeatScale:.01,heightRepeatScale:.01,normal:{uri:n(364),lengthRepeatScale:.01,heightRepeatScale:.01,normalScaleX:.8,normalScaleY:.8}},painted:{name:"Painted",uri:n(363),lengthRepeatScale:.01,heightRepeatScale:.01,normal:{uri:n(362),lengthRepeatScale:.01,heightRepeatScale:.01,normalScaleX:.4,normalScaleY:.4}}};t.default=r.ElementsFactories.WallFactory("wall",a,o)},368:function(e,t,n){e.exports=n.p+"catalog/areas/area/textures/grass.jpg"},369:function(e,t,n){e.exports=n.p+"catalog/areas/area/textures/strand-porcelain.jpg"},37:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.compareVertices=i,t.minVertex=function(e,t){return i(e,t)>0?t:e},t.maxVertex=function(e,t){return i(e,t)>0?e:t},t.orderVertices=function(e){return e.sort(i)},t.pointsDistance=l,t.verticesDistance=function(e,t){var n=e.x,r=e.y,a=t.x,o=t.y;return l(n,r,a,o)},t.horizontalLine=s,t.verticalLine=u,t.linePassingThroughTwoPoints=function(e,t,n,r){if(e===n&&t==r)throw new Error("Geometry error");return e===n?u(x):t===r?s(t):{a:t-r,b:n-e,c:r*e-n*t}},t.distancePointFromLine=function(e,t,n,r,o){return(0,a.fAbs)(e*r+t*o+n)/Math.sqrt(e*e+t*t)},t.closestPointFromLine=function(e,t,n,r,a){var o=e*e+t*t;return{x:(t*(t*r-e*a)-e*n)/o,y:(e*-t*r+e*a-t*n)/o}},t.twoLinesIntersection=function(e,t,n,r,a,o){var i=t*r-e*a;return 0===i?void 0:{x:(n*a-t*o)/i,y:(e*o-n*r)/i}},t.twoLineSegmentsIntersection=function(e,t,n,i){var l=e.x,s=e.y,u=t.x,d=t.y,c=n.x,p=n.y,h=i.x,f=i.y,m=(f-p)*(u-l)-(h-c)*(d-s),y=(h-c)*(s-p)-(f-p)*(l-c),v=(u-l)*(s-p)-(d-s)*(l-c);if((0,a.fAbs)(m)<=o.EPSILON){if((0,a.fAbs)(y)<=o.EPSILON&&(0,a.fAbs)(v)<=o.EPSILON){var g=function(e,t){return e.x===t.x?e.y-t.y:e.x-t.x},x=[e,t].sort(g),w=[n.toJS(),i.toJS()].sort(g),M=[x,w].sort(function(e,t){return g(e[0],t[0])}),q=r(M,2),_=q[0],b=q[1];return _[1].x===b[0].x?{type:b[0].y<=_[1].y?"colinear":"none"}:{type:b[0].x<=_[1].x?"colinear":"none"}}return{type:"parallel"}}var E=y/m,O=v/m;if(E>=0-o.EPSILON&&E<=1+o.EPSILON&&O>=0-o.EPSILON&&O<=1+o.EPSILON){var I={x:l+E*(u-l),y:s+E*(d-s)};return{type:"intersecting",point:I}}return{type:"none"}},t.distancePointFromLineSegment=d,t.isPointOnLineSegment=function(e,t,n,r,a,i){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:o.EPSILON;return d(e,t,n,r,a,i)<=l},t.closestPointFromLineSegment=function(e,t,n,r,a,o){if(e===n)return{x:e,y:o};if(t===r)return{x:a,y:t};var i=(r-t)/(n-e),l=t-i*e,s=-1/i,u=(o-s*a-l)/(i-s);return{x:u,y:i*u+l}},t.pointPositionOnLineSegment=function(e,t,n,r,a,o){var i=l(e,t,n,r),s=l(e,t,a,o)/i;e>n&&(s=c(s,0,1,1,0));return s},t.mapRange=c,t.angleBetweenTwoPointsAndOrigin=function(e,t,n,r){return 180*-Math.atan2(t-r,n-e)/Math.PI},t.angleBetweenTwoPoints=p,t.absAngleBetweenTwoPoints=function(e,t,n,r){return Math.atan2(Math.abs(r-t),Math.abs(n-e))},t.samePoints=function(e,t){var n=e.x,r=e.y,i=t.x,l=t.y;return(0,a.fAbs)(n-i)<=o.EPSILON&&(0,a.fAbs)(r-l)<=o.EPSILON},t.extendLine=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:6,l=p(e,t,n,r);return{x:(0,a.toFixedFloat)(e+Math.cos(l)*o,i),y:(0,a.toFixedFloat)(t+Math.sin(l)*o,i)}},t.roundVertex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e.set("x",(0,a.toFixedFloat)(e.get("x"),t)),e.set("y",(0,a.toFixedFloat)(e.get("y"),t)),e},t.ContainsPoint=function(e,t,n){var r=e.length>>1,a=void 0,o=void 0,i=e[2*r-3]-n,l=e[2*r-2]-t,s=e[2*r-1]-n;if(0===l&&0===s)return!1;for(var u=0;ui)}for(var d=0,c=0;c0&&s>0||a<0&&l<0)){if(i===s&&Math.min(a,l)<0)return!0;if(i!==s){var p=a+(l-a)*-i/(s-i);if(0===p)return!1;p>0&&d++,0===i&&o&&s>i&&d--,0===i&&!o&&si}}return 1==(1&d)},t.cosWithThreshold=function(e,t){var n=Math.cos(e);return n1?(d=n,c=r):(d=e+u*i,c=t+u*l);var p=a-d,h=o-c;return Math.sqrt(p*p+h*h)}function c(e,t,n,r,a){return r+(a-r)*(e-t)/(n-t)}function p(e,t,n,r){return Math.atan2(r-t,n-e)}},370:function(e,t,n){e.exports=n.p+"catalog/areas/area/textures/ceramic-tile.jpg"},371:function(e,t,n){e.exports=n.p+"catalog/areas/area/textures/tile1.jpg"},372:function(e,t,n){e.exports=n.p+"catalog/areas/area/textures/parquet.jpg"},373:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34),a={parquet:{name:"Parquet",uri:n(372),lengthRepeatScale:.004,heightRepeatScale:.004},tile1:{name:"Tile1",uri:n(371),lengthRepeatScale:.01,heightRepeatScale:.01},ceramic:{name:"Ceramic Tile",uri:n(370),lengthRepeatScale:.02,heightRepeatScale:.02},strand_porcelain:{name:"Strand Porcelain Tile",uri:n(369),lengthRepeatScale:.02,heightRepeatScale:.02},grass:{name:"Grass",uri:n(368),lengthRepeatScale:.01,heightRepeatScale:.01}};t.default=r.ElementsFactories.AreaFactory("area",{title:"area",tag:["area"],description:"Generic Room",image:""},a)},374:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createArea=function(e,t,n,s){var u=[];e.vertices.forEach(function(e){u.push(t.vertices.get(e))});var d=e.properties.get("texture"),c=e.properties.get("patternColor");e.selected?c=a.AREA_MESH_COLOR.selected:d&&"none"!==d&&(c=a.AREA_MESH_COLOR.unselected);var p=new r.Shape;p.moveTo(u[0].x,u[0].y);for(var h=1;h0?this.calculateProperties():this.normal=this.w=void 0}return a(e,[{key:"calculateProperties",value:function(){var e=this.vertices[0],t=this.vertices[1],n=this.vertices[2];return this.normal=t.clone().subtract(e).cross(n.clone().subtract(e)).normalize(),this.w=this.normal.clone().dot(e),this}},{key:"clone",value:function(){var t,n,r=new e;for(t=0,n=this.vertices.length;t=0;e--)t.push(this.vertices[e]);return this.vertices=t,this}},{key:"classifyVertex",value:function(e){var t=this.normal.dot(e)-this.w;return t<-1e-5?2:t>1e-5?1:0}},{key:"classifySide",value:function(e){var t,n,r,a=0,o=0,i=e.vertices.length;for(t=0;t0&&0===o?1:0===a&&o>0?2:0===a&&0===o?0:3}},{key:"splitPolygon",value:function(t,n,r,a,o){var i=this.classifySide(t);if(0===i)(this.normal.dot(t.normal)>0?n:r).push(t);else if(1===i)a.push(t);else if(2===i)o.push(t);else{var l,s,u,d,c,p,h,f,m,y=[],v=[];for(s=0,l=t.vertices.length;s=3&&a.push(new e(y).calculateProperties()),v.length>=3&&o.push(new e(v).calculateProperties())}}}]),e}(),u=function(){function e(t,n,r,a,l){i(this,e),this.x=t,this.y=n,this.z=r,this.normal=a||new o.Vector3,this.uv=l||new o.Vector2}return a(e,[{key:"clone",value:function(){return new e(this.x,this.y,this.z,this.normal.clone(),this.uv.clone())}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}},{key:"subtract",value:function(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this}},{key:"cross",value:function(e){var t=this.x,n=this.y,r=this.z;return this.x=n*e.z-r*e.y,this.y=r*e.x-t*e.z,this.z=t*e.y-n*e.x,this}},{key:"normalize",value:function(){var e=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);return this.x/=e,this.y/=e,this.z/=e,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y+this.z*e.z}},{key:"lerp",value:function(e,t){return this.add(e.clone().subtract(this).multiplyScalar(t)),this.normal.add(e.normal.clone().sub(this.normal).multiplyScalar(t)),this.uv.add(e.uv.clone().sub(this.uv).multiplyScalar(t)),this}},{key:"interpolate",value:function(e,t){return this.clone().lerp(e,t)}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,r=this.z,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12],this.y=a[1]*t+a[5]*n+a[9]*r+a[13],this.z=a[2]*t+a[6]*n+a[10]*r+a[14],this}}]),e}(),d=function(){function e(t){i(this,e);var n,r,a=[],o=[];if(this.polygons=[],this.front=this.back=void 0,t instanceof Array&&0!==t.length){for(this.divider=t[0].clone(),n=0,r=t.length;n0&&(this.front=new e(a)),o.length>0&&(this.back=new e(o))}}return a(e,[{key:"isConvex",value:function(e){var t,n;for(t=0;t0&&(this.front||(this.front=new e),this.front.build(a)),o.length>0&&(this.back||(this.back=new e),this.back.build(o))}},{key:"allPolygons",value:function(){var e=this.polygons.slice();return this.front&&(e=e.concat(this.front.allPolygons())),this.back&&(e=e.concat(this.back.allPolygons())),e}},{key:"clone",value:function(){var t=new e;return t.divider=this.divider.clone(),t.polygons=this.polygons.map(function(e){return e.clone()}),t.front=this.front&&this.front.clone(),t.back=this.back&&this.back.clone(),t}},{key:"invert",value:function(){var e,t,n;for(e=0,t=this.polygons.length;ec.x){var h=d;d=c,c=h,p=!0}var f=e.properties.getIn(["height","length"]),m=e.properties.getIn(["thickness","length"]),y=m/2,v=(0,o.verticesDistance)(d,c),g=v/2,x=new r.MeshBasicMaterial({color:e.selected?i.MESH_SELECTED:13882323}),w=new r.Mesh(new r.BoxGeometry(v,f,m),x),M=Math.asin((c.y-d.y)/v),q=Math.sin(M),_=Math.cos(M);w.position.y+=f/2,w.position.x+=g*_,w.position.z-=g*q,w.rotation.y=M,e.holes.forEach(function(e){var n=t.holes.get(e),o=n.properties.getIn(["width","length"]),i=n.properties.getIn(["height","length"]),l=n.properties.getIn(["altitude","length"]),s=p?1-n.offset:n.offset,u=s*v,d=new r.BoxGeometry(o,i,m),c=new r.Mesh(d);c.position.y+=i/2+l,c.position.x+=u*_,c.position.z-=u*q,c.rotation.y=M;var h=new a.default(w),f=new a.default(c),y=h.subtract(f);w=y.toMesh(x)}),w.name="soul";var b=new r.MeshBasicMaterial,E=new r.MeshBasicMaterial;s(b,u[e.properties.get("textureB")],v,f),s(E,u[e.properties.get("textureA")],v,f);var O=.2/m,I=y+1,P=w.clone();P.material=b,P.scale.set(1,1,O),P.position.x+=I*Math.cos(M-l),P.position.z-=I*Math.sin(M-l),P.name="frontFace";var T=w.clone();T.material=E,T.scale.set(1,1,O),T.position.x+=I*Math.cos(M+l),T.position.z-=I*Math.sin(M+l),T.name="backFace";var G=new r.Group;return G.add(w,P,T),Promise.resolve(G)},t.updatedWall=function(e,t,n,a,o,s,u,d,c){var p=function(){return d(),c()},h=o.getObjectByName("soul"),f=o.getObjectByName("frontFace"),m=o.getObjectByName("backFace");if("selected"==u[0])h.material=new r.MeshBasicMaterial({color:e.selected?i.MESH_SELECTED:13882323});else{if("properties"!=u[0])return p();if("thickness"!=u[1])return p();var y=e.getIn(["properties","thickness","length"]),v=s.getIn(["properties","thickness","length"]),g=y/2,x=g+1,w=v/h.scale.z,M=h.rotation.y,q=x*Math.cos(M-l),_=x*Math.sin(M-l);h.scale.set(1,1,y/w),f.position.x=h.position.x+q,f.position.z=h.position.z+_,m.position.x=h.position.x-q,m.position.z=h.position.z-_}return Promise.resolve(o)};var r=n(3),a=function(e){return e&&e.__esModule?e:{default:e}}(n(376)),o=n(37),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5));var l=Math.PI/2,s=function(e,t,n,a){var o=new r.TextureLoader;t&&(e.map=o.load(t.uri),e.needsUpdate=!0,e.map.wrapS=r.RepeatWrapping,e.map.wrapT=r.RepeatWrapping,e.map.repeat.set(n*t.lengthRepeatScale,a*t.heightRepeatScale),t.normal&&(e.normalMap=o.load(t.normal.uri),e.normalScale=new r.Vector2(t.normal.normalScaleX,t.normal.normalScaleY),e.normalMap.wrapS=r.RepeatWrapping,e.normalMap.wrapT=r.RepeatWrapping,e.normalMap.repeat.set(n*t.normal.lengthRepeatScale,a*t.normal.heightRepeatScale)))}},378:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;ta?-1:1})},t.addPointSnap=g,t.addLineSnap=function(e,t,n,r,a,l,s){return s=new o.List([s]),e.withMutations(function(e){if(e.some(function(e){return"line"===e.type&&t===e.a&&n===e.b&&r===e.c}))return e;e.valueSeq().filter(function(e){return"line"===e.type}).map(function(e){return i.twoLinesIntersection(e.a,e.b,e.c,t,n,r)}).filter(function(e){return void 0!==e}).forEach(function(t){var n=t.x,r=t.y;return g(e,n,r,20,40)}),e.push(new m({a:t,b:n,c:r,radius:a,priority:l,related:s}))})},t.addLineSegmentSnap=function(e,t,n,r,a,i,l,s){return s=new o.List([s]),e.push(new y({x1:t,y1:n,x2:r,y2:a,radius:i,priority:l,related:s}))},t.addGridSnap=function(e,t,n,r,a,i){return i=new o.List([i]),e.push(new v({x:t,y:n,radius:r,priority:a,related:i}))};var o=n(7),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(37));function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=t.SNAP_POINT="SNAP_POINT",c=t.SNAP_LINE="SNAP_LINE",p=t.SNAP_SEGMENT="SNAP_SEGMENT",h=t.SNAP_GRID="SNAP_GRID",f=(t.SNAP_GUIDE="SNAP_GUIDE",t.SNAP_MASK=new o.Map({SNAP_POINT:!0,SNAP_LINE:!0,SNAP_SEGMENT:!0,SNAP_GRID:!1,SNAP_GUIDE:!0}),function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,(0,o.Record)({type:"point",x:-1,y:-1,radius:1,priority:1,related:new o.List})),a(t,[{key:"nearestPoint",value:function(e,t){return{x:this.x,y:this.y,distance:i.pointsDistance(this.x,this.y,e,t)}}},{key:"isNear",value:function(e,t,n){return 1+~(this.x-e)1&&void 0!==arguments[1]?arguments[1]:300;t=t.reverse();var r=e.dispatch;setTimeout(function e(){if(console.info("There are other "+t.length+" actions on stack"),0===t.length)return;if(r(t.pop()),0===t.length)return;setTimeout(e,n)},0)}}),console.groupCollapsed("ReactPlanner"),console.info("ReactPlanner is ready"),console.info("console.log(ReactPlanner)"),console.log(window.ReactPlanner),console.groupEnd()}};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(70))},381:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e,t){window.addEventListener("keydown",function(n){var o=t(e.getState()),i=o.get("mode");switch(n.keyCode){case r.KEYBOARD_BUTTON_CODE.BACKSPACE:case r.KEYBOARD_BUTTON_CODE.DELETE:[r.MODE_IDLE,r.MODE_3D_FIRST_PERSON,r.MODE_3D_VIEW].includes(i)&&e.dispatch((0,a.remove)());break;case r.KEYBOARD_BUTTON_CODE.ESC:e.dispatch((0,a.rollback)());break;case r.KEYBOARD_BUTTON_CODE.Z:(n.getModifierState("Control")||n.getModifierState("Meta"))&&e.dispatch((0,a.undo)());break;case r.KEYBOARD_BUTTON_CODE.ALT:r.MODE_SNAPPING.includes(i)&&e.dispatch((0,a.toggleSnap)(o.snapMask.merge({SNAP_POINT:!1,SNAP_LINE:!1,SNAP_SEGMENT:!1,SNAP_GRID:!1,SNAP_GUIDE:!1,tempSnapConfiguartion:o.snapMask.toJS()})));break;case r.KEYBOARD_BUTTON_CODE.C:var l=o.getIn(["scene","selectedLayer"]),s=o.getIn(["scene","layers",l,"selected"]);if((i===r.MODE_IDLE||i===r.MODE_3D_VIEW)&&(s.holes.size||s.areas.size||s.items.size||s.lines.size))if(s.holes.size){var u=o.getIn(["scene","layers",l,"holes",s.holes.get(0)]);e.dispatch((0,a.copyProperties)(u.get("properties")))}else if(s.areas.size){var d=o.getIn(["scene","layers",l,"areas",s.areas.get(0)]);e.dispatch((0,a.copyProperties)(d.properties))}else if(s.items.size){var c=o.getIn(["scene","layers",l,"items",s.items.get(0)]);e.dispatch((0,a.copyProperties)(c.properties))}else if(s.lines.size){var p=o.getIn(["scene","layers",l,"lines",s.lines.get(0)]);e.dispatch((0,a.copyProperties)(p.properties))}break;case r.KEYBOARD_BUTTON_CODE.V:e.dispatch((0,a.pasteProperties)());break;case r.KEYBOARD_BUTTON_CODE.CTRL:e.dispatch((0,a.setAlterateState)())}}),window.addEventListener("keyup",function(n){var o=t(e.getState()),i=o.get("mode");switch(n.keyCode){case r.KEYBOARD_BUTTON_CODE.ALT:r.MODE_SNAPPING.includes(i)&&e.dispatch((0,a.toggleSnap)(o.snapMask.merge(o.snapMask.get("tempSnapConfiguartion"))));break;case r.KEYBOARD_BUTTON_CODE.CTRL:e.dispatch((0,a.setAlterateState)())}})}};var r=n(4),a=n(69)},382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n,l){if(t=t||o,e&&a){if(null!==a.getItem(e)){var s=a.getItem(e),u=JSON.parse(s);n.dispatch((0,r.loadProject)(u))}n.subscribe(function(){i&&clearTimeout(i),i=setTimeout(function(){var t=l(n.getState());a.setItem(e,JSON.stringify(t.scene.toJS()))},t)})}}};var r=n(69),a=!!window.hasOwnProperty("localStorage")&&window.localStorage,o=500,i=null},383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleDebugger=t.Keyboard=t.Autosave=void 0;var r=i(n(382)),a=i(n(381)),o=i(n(380));function i(e){return e&&e.__esModule?e:{default:e}}t.Autosave=r.default,t.Keyboard=a.default,t.ConsoleDebugger=o.default,t.default={Autosave:r.default,Keyboard:a.default,ConsoleDebugger:o.default}},384:function(e,t,n){e.exports=n.p+"e500b4871b2c21b97e6d25cac92f917d.css"},387:function(e,t,n){n(386)(n(384),{hmr:!0})},388:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabsStyle=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(387));t.TabsStyle=r,t.default={TabsStyle:r}},389:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rightTextStyle=t.leftTextStyle=void 0;var r=Object.assign||function(e){for(var t=1;t0},a.size?l.default.createElement("table",{style:g},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",{colSpan:"4"}),l.default.createElement("th",null,this.context.translator.t("Elements")),l.default.createElement("th",null,this.context.translator.t("Name")))),l.default.createElement("tbody",null,a.entrySeq().map(function(t){var n=r(t,2),a=n[0],i=n[1],s=function(t){return e.context.groupsActions.selectGroup(a)},u=i.get("selected"),d=u?w:null,c=i.get("elements").reduce(function(e,t){return e+t.reduce(function(e,t){return e+t.size},0)},0);return l.default.createElement("tr",{key:a,style:d},l.default.createElement("td",{style:x,title:e.context.translator.t("Toggle Group Visibility")},l.default.createElement(p.FaEye,{onClick:function(t){t.stopPropagation(),e.context.groupsActions.setGroupProperties(a,new h.Map({visible:!i.get("visible")}))},style:i.get("visible")?_:b})),l.default.createElement("td",{style:x,title:e.context.translator.t("Chain selected Elements to Group")},l.default.createElement(p.FaChain,{onClick:function(t){o.forEach(function(t){var n=t.get("id"),r={lines:t.get("lines"),items:t.get("items"),holes:t.get("holes"),areas:t.get("areas")},o=function(t){r[t].filter(function(e){return e.get("selected")}).forEach(function(r){e.context.groupsActions.addToGroup(a,n,t,r.get("id"))})};for(var i in r)o(i)}),s()},style:u?M:v})),l.default.createElement("td",{style:x,title:e.context.translator.t("Un-chain all Group's Elements and remove Group")},l.default.createElement(p.FaChainBroken,{onClick:function(t){return e.context.groupsActions.removeGroup(a)},style:u?M:v})),l.default.createElement("td",{style:x,title:e.context.translator.t("Delete group and all Elements")},l.default.createElement(p.FaTrash,{onClick:function(t){return e.context.groupsActions.removeGroupAndDeleteElements(a)},style:u?M:v})),l.default.createElement("td",{onClick:s,style:{width:"0em",textAlign:"center"}},c),l.default.createElement("td",{onClick:s},i.get("name")))}))):null,l.default.createElement("table",{style:{width:"100%",marginTop:"0.1em"}},l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",{style:this.state.newEmptyHover?O:E,onMouseOver:function(){return e.setState({newEmptyHover:!0})},onMouseOut:function(){return e.setState({newEmptyHover:!1})},onClick:function(t){return e.context.groupsActions.addGroup()}},l.default.createElement(c.TiPlus,null),l.default.createElement("b",{style:q},this.context.translator.t("New Empty Group"))),l.default.createElement("td",{style:this.state.newSelectedHover?O:E,onMouseOver:function(){return e.setState({newSelectedHover:!0})},onMouseOut:function(){return e.setState({newSelectedHover:!1})},onClick:function(t){return e.context.groupsActions.addGroupFromSelected()}},l.default.createElement(c.TiPlus,null),l.default.createElement("b",{style:q},this.context.translator.t("New Group from selected"))))))):null}}]),t}();t.default=I,I.propTypes={mode:s.default.string.isRequired,groups:s.default.object.isRequired,layers:s.default.object.isRequired},I.contextTypes={catalog:s.default.object.isRequired,translator:s.default.object.isRequired,itemsActions:s.default.object.isRequired,linesActions:s.default.object.isRequired,holesActions:s.default.object.isRequired,groupsActions:s.default.object.isRequired,projectActions:s.default.object.isRequired}},392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n1?t-1:0),r=1;r1?t-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style"]),o=r({},s,n);return this.state.focus&&(o.border="1px solid "+l.SECONDARY_COLOR.main),i.default.createElement("input",r({onFocus:function(t){return e.setState({focus:!0})},onBlur:function(t){return e.setState({focus:!1})},style:o,type:"text"},a))}}]),t}();t.default=u,u.defaultProps={style:{}}},64:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["type","style","styleHover","children","size"]),h=Object.assign({},u,d[c],t?l:o);return i.default.createElement("button",r({type:a,onMouseEnter:function(t){return e.setState({hover:!0})},onMouseLeave:function(t){return e.setState({hover:!1})},style:h},p),s)}}]),t}();t.default=c,c.defaultProps={type:"button",size:"normal",style:{backgroundColor:"#e6e6e6",borderColor:"#adadad"},styleHover:{backgroundColor:"#d4d4d4",borderColor:"#8c8c8c"}},c.propTypes={type:l.default.string,style:l.default.object,styleHover:l.default.object,size:l.default.oneOf(["large","normal","small"])}},68:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disposeScene=function(e){e.traverse(function(e){o(e),e=null})},t.disposeObject=function(e){e.traverse(function(e){o(e),e=null})};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3));function a(e){e instanceof r.Material&&(!function(e){e&&e.dispose()}(e.map),e.map=null,e.dispose())}function o(e){(e instanceof r.Mesh||e instanceof r.BoxHelper||e instanceof r.LineSegments)&&(!function(e){e.dispose()}(e.geometry),function(e){e instanceof r.MultiMaterial&&e.materials.forEach(function(e){a(e)})}(e.material),a(e.material),e.geometry=null,e.material=null)}},69:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadProject=function(e){return{type:r.LOAD_PROJECT,sceneJSON:e}},t.newProject=function(){return{type:r.NEW_PROJECT}},t.saveProject=function(){return{type:r.SAVE_PROJECT}},t.openCatalog=function(){return{type:r.OPEN_CATALOG}},t.changeCatalogPage=function(e,t){return{type:r.CHANGE_CATALOG_PAGE,newPage:e,oldPage:t}},t.goBackToCatalogPage=function(e){return{type:r.GO_BACK_TO_CATALOG_PAGE,newPage:e}},t.selectToolEdit=function(){return{type:r.SELECT_TOOL_EDIT}},t.unselectAll=function(){return{type:r.UNSELECT_ALL}},t.setProperties=function(e){return{type:r.SET_PROPERTIES,properties:e}},t.setItemsAttributes=function(e){return e=e.set("rotation",parseFloat(e.get("rotation"))),{type:r.SET_ITEMS_ATTRIBUTES,itemsAttributes:e}},t.setLinesAttributes=function(e){return e=e.withMutations(function(t){t.setIn(["vertexOne","x"],parseFloat(e.getIn(["vertexOne","x"]))),t.setIn(["vertexOne","y"],parseFloat(e.getIn(["vertexOne","y"]))),t.setIn(["vertexTwo","x"],parseFloat(e.getIn(["vertexTwo","x"]))),t.setIn(["vertexTwo","y"],parseFloat(e.getIn(["vertexTwo","y"])))}),{type:r.SET_LINES_ATTRIBUTES,linesAttributes:e}},t.setHolesAttributes=function(e){return e=e.set("offset",parseFloat(e.get("offset"))),{type:r.SET_HOLES_ATTRIBUTES,holesAttributes:e}},t.remove=function(){return{type:r.REMOVE}},t.undo=function(){return{type:r.UNDO}},t.rollback=function(){return{type:r.ROLLBACK}},t.openProjectConfigurator=function(){return{type:r.OPEN_PROJECT_CONFIGURATOR}},t.setProjectProperties=function(e){return{type:r.SET_PROJECT_PROPERTIES,properties:e}},t.initCatalog=function(e){return{type:r.INIT_CATALOG,catalog:e}},t.updateMouseCoord=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:x,y:y};return{type:r.UPDATE_MOUSE_COORDS,coords:e}},t.updateZoomScale=function(e){return{type:r.UPDATE_ZOOM_SCALE,scale:e}},t.toggleSnap=function(e){return{type:r.TOGGLE_SNAP,mask:e}},t.throwError=function(e){return{type:r.THROW_ERROR,error:e}},t.throwWarning=function(e){return{type:r.THROW_WARNING,warning:e}},t.copyProperties=function(e){return{type:r.COPY_PROPERTIES,properties:e}},t.pasteProperties=function(){return{type:r.PASTE_PROPERTIES}},t.pushLastSelectedCatalogElementToHistory=function(e){return{type:r.PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,element:e}},t.setAlterateState=function(){return{type:r.ALTERATE_STATE}},t.setMode=function(e){return{type:r.SET_MODE,mode:e}},t.addHorizontalGuide=function(e){return{type:r.ADD_HORIZONTAL_GUIDE,coordinate:e}},t.addVerticalGuide=function(e){return{type:r.ADD_VERTICAL_GUIDE,coordinate:e}},t.addCircularGuide=function(e,t,n){return{type:r.ADD_CIRCULAR_GUIDE,x:e,y:t,radius:n}},t.removeHorizontalGuide=function(e){return{type:r.REMOVE_HORIZONTAL_GUIDE,guideID:e}},t.removeVerticalGuide=function(e){return{type:r.REMOVE_VERTICAL_GUIDE,guideID:e}},t.removeCircularGuide=function(e){return{type:r.REMOVE_CIRCULAR_GUIDE,guideID:e}};var r=n(4)},70:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupsActions=t.areaActions=t.itemsActions=t.verticesActions=t.sceneActions=t.holesActions=t.linesActions=t.viewer3DActions=t.viewer2DActions=t.projectActions=void 0;var r=h(n(69)),a=h(n(1407)),o=h(n(1406)),i=h(n(1405)),l=h(n(1404)),s=h(n(1403)),u=h(n(1402)),d=h(n(1401)),c=h(n(1400)),p=h(n(1399));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.projectActions=r,t.viewer2DActions=a,t.viewer3DActions=o,t.linesActions=i,t.holesActions=l,t.sceneActions=s,t.verticesActions=u,t.itemsActions=d,t.areaActions=c,t.groupsActions=p,t.default={projectActions:r,viewer2DActions:a,viewer3DActions:o,linesActions:i,holesActions:l,sceneActions:s,verticesActions:u,itemsActions:d,areaActions:c,groupsActions:p}},72:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toFixedFloat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;if(e&&t)return parseFloat(parseFloat(e).toFixed(t));return 0};t.fAbs=function(e){var t=e;return t<0&&(t=1+~t),t},t.multiplyMatrices=function(e,t){for(var n=[],r=0;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["element","onUpdate","attributeFormData","state"]),c=s.has("name")?s.get("name"):n.name,p=s.has("offsetA")?s.get("offsetA"):n.offsetA,h=s.has("offsetB")?s.get("offsetB"):n.offsetA;return a.default.createElement("div",null,a.default.createElement(l.default,r({value:c,onUpdate:function(e){return o("name",e)},configs:{label:"Nome"},state:u},d)),a.default.createElement(i.default,r({value:p,onUpdate:function(e){return o("offsetA",e)},configs:{label:"Offset 1",min:0,max:1/0,precision:2},state:u},d)),a.default.createElement(i.default,r({value:h,onUpdate:function(e){return o("offsetB",e)},configs:{label:"Offset 2",min:0,max:1/0,precision:2},state:u},d)))}t.default=u,u.propTypes={element:o.default.object.isRequired,onUpdate:o.default.func.isRequired,attributeFormData:o.default.object.isRequired,state:o.default.object.isRequired},u.contextTypes={translator:o.default.object.isRequired}},734:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["element","onUpdate","attributeFormData","state"]),m=p.has("name")?p.get("name"):o.name,y=p.has("vertexOne")?p.get("vertexOne"):null,v=p.has("vertexTwo")?p.get("vertexTwo"):null,g=p.has("lineLength")?p.get("lineLength"):null;return a.default.createElement("div",null,a.default.createElement("table",{style:u},a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",{style:d},n.t("Name")),a.default.createElement("td",null,a.default.createElement(i.FormTextInput,{value:m,onChange:function(e){return s("name",e.target.value)},style:c}))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"X1"),a.default.createElement("td",null,a.default.createElement(i.FormNumberInput,r({value:y.get("x"),onChange:function(e){return s("vertexOne",{x:e.target.value})},style:c,state:h,precision:2},f)))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"Y1"),a.default.createElement("td",null,a.default.createElement(i.FormNumberInput,r({value:y.get("y"),onChange:function(e){return s("vertexOne",{y:e.target.value})},style:c,state:h,precision:2},f)))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"X2"),a.default.createElement("td",null,a.default.createElement(i.FormNumberInput,r({value:v.get("x"),onChange:function(e){return s("vertexTwo",{x:e.target.value})},style:c,state:h,precision:2},f)))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"Y2"),a.default.createElement("td",null,a.default.createElement(i.FormNumberInput,r({value:v.get("y"),onChange:function(e){return s("vertexTwo",{y:e.target.value})},style:c,state:h,precision:2},f)))))),a.default.createElement(l.PropertyLengthMeasure,{value:g,onUpdate:function(e){return s("lineLength",e)},configs:{label:n.t("Length"),min:0,max:1/0,precision:2},state:h}))}t.default=p,p.propTypes={element:o.default.object.isRequired,onUpdate:o.default.func.isRequired,onValid:o.default.func,attributeFormData:o.default.object.isRequired,state:o.default.object.isRequired},p.contextTypes={translator:o.default.object.isRequired}},735:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["element","onUpdate","attributeFormData","state"]),m=p.has("name")?p.get("name"):o.name,y=p.has("x")?p.get("x"):o.x,v=p.has("y")?p.get("y"):o.y,g=p.has("rotation")?p.get("rotation"):o.rotation;return a.default.createElement("table",{style:u},a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",{style:d},n.t("Name")),a.default.createElement("td",null,a.default.createElement(l.default,{value:m,onChange:function(e){return s("name",e.target.value)},style:c}))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"X"),a.default.createElement("td",null,a.default.createElement(i.default,r({value:y,onChange:function(e){return s("x",e.target.value)},style:c,state:h,precision:2},f)))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},"Y"),a.default.createElement("td",null,a.default.createElement(i.default,r({value:v,onChange:function(e){return s("y",e.target.value)},style:c,state:h,precision:2},f)))),a.default.createElement("tr",null,a.default.createElement("td",{style:d},n.t("Rotation")),a.default.createElement("td",null,a.default.createElement(i.default,r({value:g,onChange:function(e){return s("rotation",e.target.value)},style:c,state:h,precision:2},f))))))}p.propTypes={element:o.default.object.isRequired,onUpdate:o.default.func.isRequired,attributeFormData:o.default.object.isRequired,state:o.default.object.isRequired},p.contextTypes={translator:o.default.object.isRequired}},736:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["element","onUpdate","onValid","attributeFormData","state"]);switch(t.prototype){case"items":return a.default.createElement(i.default,r({element:t,onUpdate:n,onValid:o,attributeFormData:u,state:d},c));case"lines":return a.default.createElement(l.default,r({element:t,onUpdate:n,onValid:o,attributeFormData:u,state:d},c));case"holes":return a.default.createElement(s.default,r({element:t,onUpdate:n,onValid:o,attributeFormData:u,state:d},c));case"areas":return null}return null}d.propTypes={element:o.default.object.isRequired,onUpdate:o.default.func.isRequired,onValid:o.default.func,attributeFormData:o.default.object.isRequired,state:o.default.object.isRequired}},737:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n1||f.items.size>1||f.holes.size>1||f.areas.size>1||f.lines.size+f.items.size+f.holes.size+f.areas.size>1,x=t.getIn(["scene","groups"]).findEntry(function(e){return e.get("selected")}),w=[{index:0,condition:!0,dom:a.default.createElement(u.default,{state:t})},{index:1,condition:!0,dom:a.default.createElement(s.default,{state:t})},{index:2,condition:!0,dom:a.default.createElement(c.default,{mode:t.mode,layers:t.scene.layers,selectedLayer:t.scene.selectedLayer})},{index:3,condition:!0,dom:a.default.createElement(d.default,{mode:t.mode,groups:t.scene.groups,layers:t.scene.layers})},{index:4,condition:!g,dom:a.default.createElement(i.default,{state:t})},{index:6,condition:!!x,dom:a.default.createElement(l.default,{state:t,groupID:x?x[0]:null})}];return w=w.concat(p.map(function(e,n){return e.prototype?{condition:!0,dom:a.default.createElement(e,{state:t,key:n})}:{index:e.index,condition:e.condition,dom:a.default.createElement(e.dom,{state:t,key:n})}})),a.default.createElement("aside",{style:r({width:n,height:o},m),onKeyDown:function(e){return e.stopPropagation()},onKeyUp:function(e){return e.stopPropagation()},className:"sidebar"},w.sort(y).map(v))}g.propTypes={state:o.default.object.isRequired,width:o.default.number.isRequired,height:o.default.number.isRequired}},740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PanelGuides=t.PanelLayerElement=t.PanelLayers=t.Panel=t.Sidebar=void 0;var r=s(n(739)),a=s(n(21)),o=s(n(104)),i=s(n(102)),l=s(n(103));function s(e){return e&&e.__esModule?e:{default:e}}t.Sidebar=r.default,t.Panel=a.default,t.PanelLayers=o.default,t.PanelLayerElement=i.default,t.PanelGuides=l.default,t.default={Sidebar:r.default,Panel:a.default,PanelLayers:o.default,PanelLayerElement:i.default,PanelGuides:l.default}},741:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0?i.default.createElement(c.default,{key:m,page:this.context.catalog.categories[this.props.state.catalog.path.get(m-1)]}):null,b=this.props.state.get("selectedElementsHistory"),E=b.map(function(t,n){return i.default.createElement("div",{key:n,style:q,title:t.name,onClick:function(){return e.select(t)}},t.name)});return i.default.createElement(p.default,{width:this.props.width,height:this.props.height,style:a({},y,this.props.style)},i.default.createElement(h.default,null,this.context.translator.t("Catalog")),l,i.default.createElement("div",{style:g},i.default.createElement("span",{style:x},this.context.translator.t("Search Element")),i.default.createElement("input",{type:"text",style:w,onChange:function(t){e.matcharray(t.target.value)}})),b.size?i.default.createElement("div",{style:M},i.default.createElement("span",null,this.context.translator.t("Last Selected")),E):null,i.default.createElement("div",{style:v},""===this.state.matchString?[_,r.map(function(e){return i.default.createElement(d.default,{key:e.name,page:e,oldPage:n})}),o.map(function(e){return i.default.createElement(s.default,{key:e.name,element:e})})]:this.state.matchedElements.map(function(e){return i.default.createElement(s.default,{key:e.name,element:e})})))}}]),t}();t.default=_,_.propTypes={state:l.default.object.isRequired,width:l.default.number.isRequired,height:l.default.number.isRequired,style:l.default.object},_.contextTypes={catalog:l.default.object.isRequired,translator:l.default.object.isRequired,itemsActions:l.default.object.isRequired,linesActions:l.default.object.isRequired,holesActions:l.default.object.isRequired,projectActions:l.default.object.isRequired}},747:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstPersonOnKeyDown=function(e,t,n,r,a,o,i){switch(e.keyCode){case 38:case 87:t=!0;break;case 37:case 65:n=!0;break;case 40:case 83:r=!0;break;case 39:case 68:a=!0;break;case 32:!0===o&&(i.y+=225),o=!1}return{moveForward:t,moveLeft:n,moveBackward:r,moveRight:a,canJump:o}},t.firstPersonOnKeyUp=function(e,t,n,r,a,o){switch(e.keyCode){case 38:case 87:t=!1;break;case 37:case 65:n=!1;break;case 40:case 83:r=!1;break;case 39:case 68:a=!1}return{moveForward:t,moveLeft:n,moveBackward:r,moveRight:a,canJump:o}}},748:function(e,t,n){"use strict";var r=window.THREE||n(3);e.exports=function(e){var t=this;e.rotation.set(0,0,0);var n=new r.Object3D;n.name="pitchObject",n.add(e);var a=new r.Object3D;a.name="yawObject",a.position.y=10,a.add(n);var o=Math.PI/2,i=function(e){if(!1!==t.enabled){var r=e.movementX||e.mozMovementX||e.webkitMovementX||0,i=e.movementY||e.mozMovementY||e.webkitMovementY||0;a.rotation.y-=.002*r,n.rotation.x-=.002*i,n.rotation.x=Math.max(-o,Math.min(o,n.rotation.x))}};this.dispose=function(){document.removeEventListener("mousemove",i,!1)},document.addEventListener("mousemove",i,!1),this.enabled=!1,this.getObject=function(){return a},this.getDirection=function(){var e=new r.Vector3(0,0,-1),t=new r.Euler(0,0,0,"YXZ");return function(r){return t.set(n.rotation.x,a.rotation.y,0),r.copy(e).applyEuler(t),r}}()}},749:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initPointerLock=function(e,t){var n=function(e){o.enabled=!o.enabled},a=function(e){document.body.requestPointerLock=document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock,document.body.requestPointerLock()};"pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document?(document.addEventListener("pointerlockchange",n,!1),document.addEventListener("mozpointerlockchange",n,!1),document.addEventListener("webkitpointerlockchange",n,!1),t.addEventListener("click",a)):console.log("Your browser doesn't seem to support Pointer Lock API");var o=new r.default(e);return{controls:o,pointerlockChangeEvent:n,requestPointerLockEvent:a}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(748))},750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&!isNaN(n[0].distance)?n[0].object.interact&&n[0].object.interact():e.context.projectActions.unselectAll()}},document.addEventListener("mousedown",this.firstPersonMouseDown,!1),this.renderer.domElement.style.display="block",g.appendChild(this.renderer.domElement),this.renderer.autoClear=!1;!function i(){if(!e.stopRendering){T=e.planData.boundingBox.min.y+170;var l=performance.now(),s=(l-t)/1e3*5;n.x-=10*n.x*s,n.z-=10*n.z*s,n.y-=9.8*100*s/5,r.z=Number(a)-Number(o),r.x=Number(u)-Number(d),r.normalize(),(a||o)&&(n.z-=400*r.z*s),(u||d)&&(n.x-=400*r.x*s),e.controls.getObject().translateX(n.x*s),e.controls.getObject().translateY(n.y*s),e.controls.getObject().translateZ(n.z*s),e.controls.getObject().position.yu||8*(1-y.dot(n.object.quaternion))>u)&&(n.dispatchEvent(r),m.copy(n.object.position),y.copy(n.object.quaternion),f=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",z,!1),n.domElement.removeEventListener("mousedown",D,!1),n.domElement.removeEventListener("wheel",L,!1),n.domElement.removeEventListener("touchstart",k,!1),n.domElement.removeEventListener("touchend",N,!1),n.domElement.removeEventListener("touchmove",j,!1),document.removeEventListener("mousemove",R,!1),document.removeEventListener("mouseup",A,!1),window.removeEventListener("keydown",C,!1)};var n=this,r={type:"change"},o={type:"start"},i={type:"end"},l={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},s=l.NONE,u=1e-6,d=new a.Spherical,c=new a.Spherical,p=1,h=new a.Vector3,f=!1,m=new a.Vector2,y=new a.Vector2,v=new a.Vector2,g=new a.Vector2,x=new a.Vector2,w=new a.Vector2,M=new a.Vector2,q=new a.Vector2,_=new a.Vector2;function b(){return Math.pow(.95,n.zoomSpeed)}function E(e){c.theta-=e}function O(e){c.phi-=e}var I=function(){var e=new a.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),h.add(e)}}(),P=function(){var e=new a.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),h.add(e)}}(),T=function(){var e=new a.Vector3;return function(t,r){var o=n.domElement===document?n.domElement.body:n.domElement;if(n.object instanceof a.PerspectiveCamera){var i=n.object.position;e.copy(i).sub(n.target);var l=e.length();l*=Math.tan(n.object.fov/2*Math.PI/180),I(2*t*l/o.clientHeight,n.object.matrix),P(2*r*l/o.clientHeight,n.object.matrix)}else n.object instanceof a.OrthographicCamera?(I(t*(n.object.right-n.object.left)/n.object.zoom/o.clientWidth,n.object.matrix),P(r*(n.object.top-n.object.bottom)/n.object.zoom/o.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function G(e){n.object instanceof a.PerspectiveCamera?p/=e:n.object instanceof a.OrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*e)),n.object.updateProjectionMatrix(),f=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function S(e){n.object instanceof a.PerspectiveCamera?p*=e:n.object instanceof a.OrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/e)),n.object.updateProjectionMatrix(),f=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function D(e){if(!1!==n.enabled){if(e.preventDefault(),e.button===n.mouseButtons.ORBIT){if(!1===n.enableRotate)return;!function(e){m.set(e.clientX,e.clientY)}(e),s=l.ROTATE}else if(e.button===n.mouseButtons.ZOOM){if(!1===n.enableZoom)return;!function(e){M.set(e.clientX,e.clientY)}(e),s=l.DOLLY}else if(e.button===n.mouseButtons.PAN){if(!1===n.enablePan)return;!function(e){g.set(e.clientX,e.clientY)}(e),s=l.PAN}s!==l.NONE&&(document.addEventListener("mousemove",R,!1),document.addEventListener("mouseup",A,!1),n.dispatchEvent(o))}}function R(e){if(!1!==n.enabled)if(s===l.ROTATE){if(!1===n.enableRotate)return;!function(e){y.set(e.clientX,e.clientY),v.subVectors(y,m);var t=n.domElement===document?n.domElement.body:n.domElement;E(2*Math.PI*v.x/t.clientWidth*n.rotateSpeed),O(2*Math.PI*v.y/t.clientHeight*n.rotateSpeed),m.copy(y),n.update()}(e)}else if(s===l.DOLLY){if(!1===n.enableZoom)return;!function(e){q.set(e.clientX,e.clientY),_.subVectors(q,M),_.y>0?G(b()):_.y<0&&S(b()),M.copy(q),n.update()}(e)}else if(s===l.PAN){if(!1===n.enablePan)return;!function(e){x.set(e.clientX,e.clientY),w.subVectors(x,g),T(w.x,w.y),g.copy(x),n.update()}(e)}}function A(e){!1!==n.enabled&&(document.removeEventListener("mousemove",R,!1),document.removeEventListener("mouseup",A,!1),n.dispatchEvent(i),s=l.NONE)}function L(e){!1===n.enabled||!1===n.enableZoom||s!==l.NONE&&s!==l.ROTATE||(e.stopPropagation(),function(e){e.deltaY<0?S(b()):e.deltaY>0&&G(b()),n.update()}(e),n.dispatchEvent(o),n.dispatchEvent(i))}function C(e){!1!==n.enabled&&!1!==n.enableKeys&&!1!==n.enablePan&&function(e){switch(e.keyCode){case n.keys.UP:T(0,n.keyPanSpeed),n.update();break;case n.keys.BOTTOM:T(0,-n.keyPanSpeed),n.update();break;case n.keys.LEFT:T(n.keyPanSpeed,0),n.update();break;case n.keys.RIGHT:T(-n.keyPanSpeed,0),n.update()}}(e)}function k(e){if(!1!==n.enabled){switch(e.touches.length){case 1:if(!1===n.enableRotate)return;!function(e){m.set(e.touches[0].pageX,e.touches[0].pageY)}(e),s=l.TOUCH_ROTATE;break;case 2:if(!1===n.enableZoom)return;!function(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,r=Math.sqrt(t*t+n*n);M.set(0,r)}(e),s=l.TOUCH_DOLLY;break;case 3:if(!1===n.enablePan)return;!function(e){g.set(e.touches[0].pageX,e.touches[0].pageY)}(e),s=l.TOUCH_PAN;break;default:s=l.NONE}s!==l.NONE&&n.dispatchEvent(o)}}function j(e){if(!1!==n.enabled)switch(e.stopPropagation(),e.touches.length){case 1:if(!1===n.enableRotate)return;if(s!==l.TOUCH_ROTATE)return;!function(e){y.set(e.touches[0].pageX,e.touches[0].pageY),v.subVectors(y,m);var t=n.domElement===document?n.domElement.body:n.domElement;E(2*Math.PI*v.x/t.clientWidth*n.rotateSpeed),O(2*Math.PI*v.y/t.clientHeight*n.rotateSpeed),m.copy(y),n.update()}(e);break;case 2:if(!1===n.enableZoom)return;if(s!==l.TOUCH_DOLLY)return;!function(e){var t=e.touches[0].pageX-e.touches[1].pageX,r=e.touches[0].pageY-e.touches[1].pageY,a=Math.sqrt(t*t+r*r);q.set(0,a),_.subVectors(q,M),_.y>0?S(b()):_.y<0&&G(b()),M.copy(q),n.update()}(e);break;case 3:if(!1===n.enablePan)return;if(s!==l.TOUCH_PAN)return;!function(e){x.set(e.touches[0].pageX,e.touches[0].pageY),w.subVectors(x,g),T(w.x,w.y),g.copy(x),n.update()}(e);break;default:s=l.NONE}}function N(e){!1!==n.enabled&&(n.dispatchEvent(i),s=l.NONE)}function z(e){e.preventDefault()}n.domElement.addEventListener("contextmenu",z,!1),n.domElement.addEventListener("mousedown",D,!1),n.domElement.addEventListener("wheel",L,{passive:!0}),n.domElement.addEventListener("touchstart",k,{passive:!0}),n.domElement.addEventListener("touchend",N,{passive:!0}),n.domElement.addEventListener("touchmove",j,{passive:!0}),window.addEventListener("keydown",C,{passive:!0}),this.update()},(r.prototype=Object.create(a.EventDispatcher.prototype)).constructor=r,Object.defineProperties(r.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(e){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!e}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(e){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!e}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(e){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!e}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(e){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(e){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(e){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=e}}})},752:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var l=n.properties.get("step"),s=n.properties.has("color")?new a.List([n.properties.get("color")]):n.properties.get("colors"),u=new r.Object3D;u.name="streak";for(var d=0,c=0;c<=e;c+=l){var p=new r.Geometry;p.vertices.push(new r.Vector3(c,0,0)),p.vertices.push(new r.Vector3(c,0,-t));var h=s.get(d%s.size),f=new r.LineBasicMaterial({color:h});if(d%5==0){var m=new r.TextGeometry(""+d*l,{size:16,height:1,font:i}),y=new r.MeshBasicMaterial({color:o.COLORS.black}),v=new r.Mesh(m,y);v.rotation.x-=Math.PI/2,v.position.set(c-20,0,50),u.add(v)}u.add(new r.LineSegments(p,f)),d++}return u};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=n(7),o=n(5)},753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var l=n.properties.get("step"),s=n.properties.has("color")?new a.List([n.properties.get("color")]):n.properties.get("colors"),u=new r.Object3D;u.name="streak";for(var d=0,c=0;c<=t;c+=l){var p=new r.Geometry;p.vertices.push(new r.Vector3(0,0,-c)),p.vertices.push(new r.Vector3(e,0,-c));var h=s.get(d%s.size),f=new r.LineBasicMaterial({color:h});if(d%5==0){var m=new r.TextGeometry(""+d*l,{size:16,height:1,font:i}),y=new r.MeshBasicMaterial({color:o.COLORS.black}),v=new r.Mesh(m,y);v.rotation.x-=Math.PI/2,v.position.set(-90,0,-c),u.add(v)}u.add(new r.LineSegments(p,f)),d++}return u};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=n(7),o=n(5)},754:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.HELVETIKER={glyphs:{"ο":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 "},S:{x_min:0,x_max:788,ha:890,o:"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 "},"¦":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"/":{x_min:183.25,x_max:608.328125,ha:792,o:"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 "},"Τ":{x_min:-.4375,x_max:777.453125,ha:839,o:"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 "},y:{x_min:0,x_max:684.78125,ha:771,o:"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 "},"Π":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 "},"ΐ":{x_min:-111,x_max:339,ha:361,o:"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 "},g:{x_min:0,x_max:686,ha:838,o:"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 "},"²":{x_min:0,x_max:442,ha:539,o:"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 "},"–":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},"Κ":{x_min:0,x_max:819.5625,ha:893,o:"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},"ƒ":{x_min:-46.265625,x_max:392,ha:513,o:"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 "},e:{x_min:0,x_max:714,ha:813,o:"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 "},"ό":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 "},J:{x_min:0,x_max:588,ha:699,o:"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 "},"»":{x_min:-1,x_max:503,ha:601,o:"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 "},"©":{x_min:-3,x_max:1008,ha:1106,o:"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 "},"ώ":{x_min:0,x_max:922,ha:1030,o:"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 "},"^":{x_min:193.0625,x_max:598.609375,ha:792,o:"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 "},"«":{x_min:0,x_max:507.203125,ha:604,o:"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 "},D:{x_min:0,x_max:828,ha:935,o:"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 "},"∙":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"ÿ":{x_min:0,x_max:47,ha:125,o:"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 "},w:{x_min:0,x_max:1009.71875,ha:1100,o:"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 "},$:{x_min:0,x_max:700,ha:793,o:"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 "},"\\":{x_min:-.015625,x_max:425.0625,ha:522,o:"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 "},"µ":{x_min:0,x_max:697.21875,ha:747,o:"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 "},"Ι":{x_min:42,x_max:181,ha:297,o:"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 "},"Ύ":{x_min:0,x_max:1144.5,ha:1214,o:"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"’":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"Ν":{x_min:0,x_max:801,ha:915,o:"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 "},"-":{x_min:8.71875,x_max:350.390625,ha:478,o:"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 "},Q:{x_min:0,x_max:968,ha:1072,o:"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 "},"ς":{x_min:1,x_max:676.28125,ha:740,o:"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 "},M:{x_min:0,x_max:954,ha:1067,o:"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 "},"Ψ":{x_min:0,x_max:1006,ha:1094,o:"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 "},C:{x_min:0,x_max:886,ha:944,o:"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 "},"!":{x_min:0,x_max:138,ha:236,o:"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 "},"{":{x_min:0,x_max:480.5625,ha:578,o:"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 "},X:{x_min:-.015625,x_max:854.15625,ha:940,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 "},"#":{x_min:0,x_max:963.890625,ha:1061,o:"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 "},"ι":{x_min:42,x_max:284,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 "},"Ά":{x_min:0,x_max:906.953125,ha:982,o:"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},")":{x_min:0,x_max:318,ha:415,o:"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 "},"ε":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 "},"Δ":{x_min:0,x_max:952.78125,ha:1028,o:"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 "},"}":{x_min:0,x_max:481,ha:578,o:"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 "},"‰":{x_min:-3,x_max:1672,ha:1821,o:"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 "},a:{x_min:0,x_max:698.609375,ha:794,o:"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 "},"—":{x_min:0,x_max:941.671875,ha:1039,o:"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 "},"=":{x_min:8.71875,x_max:780.953125,ha:792,o:"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 "},N:{x_min:0,x_max:801,ha:914,o:"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 "},"ρ":{x_min:0,x_max:712,ha:797,o:"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 "},2:{x_min:59,x_max:731,ha:792,o:"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 "},"¯":{x_min:0,x_max:941.671875,ha:938,o:"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 "},Z:{x_min:0,x_max:779,ha:849,o:"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 "},u:{x_min:0,x_max:617,ha:729,o:"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 "},k:{x_min:0,x_max:612.484375,ha:697,o:"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 "},"Η":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"Α":{x_min:0,x_max:906.953125,ha:985,o:"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},s:{x_min:0,x_max:604,ha:697,o:"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 "},B:{x_min:0,x_max:778,ha:876,o:"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 "},"…":{x_min:0,x_max:614,ha:708,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 "},"?":{x_min:0,x_max:607,ha:704,o:"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 "},H:{x_min:0,x_max:803,ha:915,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"ν":{x_min:0,x_max:675,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 "},c:{x_min:1,x_max:701.390625,ha:775,o:"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 "},"¶":{x_min:0,x_max:566.671875,ha:678,o:"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 "},"β":{x_min:0,x_max:660,ha:745,o:"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 "},"Μ":{x_min:0,x_max:954,ha:1068,o:"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 "},"Ό":{x_min:.109375,x_max:1120,ha:1217,o:"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ή":{x_min:0,x_max:1158,ha:1275,o:"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"•":{x_min:0,x_max:663.890625,ha:775,o:"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 "},"¥":{x_min:.1875,x_max:819.546875,ha:886,o:"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 "},"(":{x_min:0,x_max:318.0625,ha:415,o:"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 "},U:{x_min:0,x_max:796,ha:904,o:"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 "},"γ":{x_min:.5,x_max:744.953125,ha:822,o:"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 "},"α":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 "},F:{x_min:0,x_max:683.328125,ha:717,o:"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 "},"­":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},":":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"Χ":{x_min:0,x_max:854.171875,ha:935,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 "},"*":{x_min:116,x_max:674,ha:792,o:"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 "},"†":{x_min:0,x_max:777,ha:835,o:"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 "},"°":{x_min:0,x_max:347,ha:444,o:"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 "},V:{x_min:0,x_max:862.71875,ha:940,o:"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 "},"Ξ":{x_min:0,x_max:734.71875,ha:763,o:"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 "}," ":{x_min:0,x_max:0,ha:853},"Ϋ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 "},0:{x_min:73,x_max:715,ha:792,o:"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 "},"”":{x_min:0,x_max:347,ha:454,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 "},"@":{x_min:0,x_max:1260,ha:1357,o:"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 "},"Ί":{x_min:0,x_max:499,ha:613,o:"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 "},i:{x_min:14,x_max:136,ha:275,o:"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 "},"Β":{x_min:0,x_max:778,ha:877,o:"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 "},"υ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 "},"]":{x_min:0,x_max:275,ha:372,o:"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 "},m:{x_min:0,x_max:1019,ha:1128,o:"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 "},"χ":{x_min:8.328125,x_max:780.5625,ha:815,o:"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 "},8:{x_min:55,x_max:736,ha:792,o:"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 "},"ί":{x_min:42,x_max:326.71875,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 "},"Ζ":{x_min:0,x_max:779.171875,ha:850,o:"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 "},R:{x_min:0,x_max:781.953125,ha:907,o:"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 "},o:{x_min:0,x_max:713,ha:821,o:"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 "},5:{x_min:54.171875,x_max:738,ha:792,o:"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 "},7:{x_min:58.71875,x_max:730.953125,ha:792,o:"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 "},K:{x_min:0,x_max:819.46875,ha:906,o:"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},",":{x_min:0,x_max:142,ha:239,o:"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 "},d:{x_min:0,x_max:683,ha:796,o:"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 "},"¨":{x_min:-109,x_max:247,ha:232,o:"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 "},E:{x_min:0,x_max:736.109375,ha:789,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},Y:{x_min:0,x_max:820,ha:886,o:"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 "},'"':{x_min:0,x_max:299,ha:396,o:"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"‹":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"„":{x_min:0,x_max:364,ha:467,o:"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 "},"δ":{x_min:1,x_max:710,ha:810,o:"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 "},"έ":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 "},"ω":{x_min:0,x_max:922,ha:1031,o:"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 "},"´":{x_min:0,x_max:96,ha:251,o:"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"±":{x_min:11,x_max:781,ha:792,o:"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 "},"|":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"ϋ":{x_min:0,x_max:617,ha:725,o:"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 "},"§":{x_min:0,x_max:593,ha:690,o:"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 "},b:{x_min:0,x_max:685,ha:783,o:"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 "},q:{x_min:0,x_max:683,ha:876,o:"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 "},"Ω":{x_min:-.171875,x_max:969.5625,ha:1068,o:"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 "},"ύ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 "},z:{x_min:-.015625,x_max:613.890625,ha:697,o:"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 "},"™":{x_min:0,x_max:894,ha:1e3,o:"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 "},"ή":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 "},"Θ":{x_min:0,x_max:960,ha:1056,o:"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 "},"®":{x_min:-3,x_max:1008,ha:1106,o:"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 "},"~":{x_min:0,x_max:833,ha:931,o:"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 "},"Ε":{x_min:0,x_max:736.21875,ha:778,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},"³":{x_min:0,x_max:450,ha:547,o:"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 "},"[":{x_min:0,x_max:273.609375,ha:371,o:"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 "},L:{x_min:0,x_max:645.828125,ha:696,o:"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 "},"σ":{x_min:0,x_max:803.390625,ha:894,o:"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 "},"ζ":{x_min:0,x_max:573,ha:642,o:"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 "},"θ":{x_min:0,x_max:674,ha:778,o:"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 "},"Ο":{x_min:0,x_max:958,ha:1054,o:"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 "},"Γ":{x_min:0,x_max:705.28125,ha:749,o:"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 "}," ":{x_min:0,x_max:0,ha:375},"%":{x_min:-3,x_max:1089,ha:1186,o:"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 "},P:{x_min:0,x_max:726,ha:806,o:"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 "},"Έ":{x_min:0,x_max:1078.21875,ha:1118,o:"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ώ":{x_min:.125,x_max:1136.546875,ha:1235,o:"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 "},_:{x_min:0,x_max:705.5625,ha:803,o:"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 "},"Ϊ":{x_min:-110,x_max:246,ha:275,o:"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 "},"+":{x_min:23,x_max:768,ha:792,o:"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 "},"½":{x_min:0,x_max:1050,ha:1149,o:"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 "},"Ρ":{x_min:0,x_max:720,ha:783,o:"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 "},"'":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"ª":{x_min:0,x_max:350,ha:397,o:"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 "},"΅":{x_min:0,x_max:450,ha:553,o:"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 "},T:{x_min:0,x_max:777,ha:835,o:"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 "},"Φ":{x_min:0,x_max:915,ha:997,o:"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 "},"⁋":{x_min:0,x_max:0,ha:694},j:{x_min:-77.78125,x_max:167,ha:349,o:"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 "},"Σ":{x_min:0,x_max:756.953125,ha:819,o:"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 "},1:{x_min:215.671875,x_max:574,ha:792,o:"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 "},"›":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},"<":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"£":{x_min:0,x_max:704.484375,ha:801,o:"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 "},t:{x_min:0,x_max:367,ha:458,o:"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 "},"¬":{x_min:0,x_max:706,ha:803,o:"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 "},"λ":{x_min:0,x_max:750,ha:803,o:"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 "},W:{x_min:0,x_max:1263.890625,ha:1351,o:"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 "},">":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},"τ":{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},"ξ":{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},"Λ":{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},"ΰ":{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"·":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"Υ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},"μ":{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"φ":{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"“":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},6:{x_min:53,x_max:739,ha:792,o:"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 "},"‘":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},"ϊ":{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},"π":{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},"ά":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},3:{x_min:54,x_max:737,ha:792,o:"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 "},9:{x_min:53,x_max:739,ha:792,o:"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "},"¤":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},"κ":{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},4:{x_min:48,x_max:742.453125,ha:792,o:"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"‡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},"ψ":{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},"η":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},cssFontWeight:"normal",ascender:1189,underlinePosition:-100,cssFontStyle:"normal",boundingBox:{yMin:-334,xMin:-111,yMax:1189,xMax:1672},resolution:1e3,original_font_information:{postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Μagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Μagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:'Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r\n\r\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r\n\r\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r\n\r\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r\n\r\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r\n\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.',manufacturer_name:"Μagenta ltd",font_sub_family_name:"Regular"},descender:-334,familyName:"Helvetiker",lineHeight:1522,underlineThickness:50}},755:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new r.Object3D;t.name="grid";var n=(new r.FontLoader).parse(a.HELVETIKER),l=e.grids,s=e.width,u=e.height;return l.forEach(function(e){switch(e.type){case"horizontal-streak":t.add((0,o.default)(s,u,e,n));break;case"vertical-streak":t.add((0,i.default)(s,u,e,n))}}),t.position.y=-1,t};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),a=n(754),o=l(n(753)),i=l(n(752));function l(e){return e&&e.__esModule?e:{default:e}}},756:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&!isNaN(n[0].distance)?n[0].object.interact&&n[0].object.interact():e.context.projectActions.unselectAll()}},this.renderer.domElement.addEventListener("mousedown",this.mouseDownEvent),this.renderer.domElement.addEventListener("mouseup",this.mouseUpEvent),this.renderer.domElement.style.display="block",r.appendChild(this.renderer.domElement);var M=new d.default(c,this.renderer.domElement),q=new l.Object3D;q.name="spotLightTarget",q.position.set(M.target.x,M.target.y,M.target.z),a.add(q),v.target=q;!function t(){for(var n in M.update(),v.position.set(c.position.x,c.position.y,c.position.z),q.position.set(M.target.x,M.target.y,M.target.z),c.updateMatrix(),c.updateMatrixWorld(),o.sceneGraph.LODs)o.sceneGraph.LODs[n].update(c);e.renderer.render(a,c),e.renderingID=requestAnimationFrame(t)}(),this.orbitControls=M,this.camera=c,this.scene3D=a,this.planData=o}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.renderingID),this.orbitControls.dispose(),this.renderer.domElement.removeEventListener("mousedown",this.mouseDownEvent),this.renderer.domElement.removeEventListener("mouseup",this.mouseUpEvent),(0,u.disposeScene)(this.scene3D),this.scene3D.remove(this.planData.plan),this.scene3D.remove(this.planData.grid),this.scene3D=null,this.planData=null,this.camera=null,this.orbitControls=null,this.renderer.renderLists.dispose()}},{key:"componentWillReceiveProps",value:function(e){var t=e.width,n=e.height,r={areaActions:this.context.areaActions,holesActions:this.context.holesActions,itemsActions:this.context.itemsActions,linesActions:this.context.linesActions,projectActions:this.context.projectActions};if(this.width=t,this.height=n,this.camera.aspect=t/n,this.camera.updateProjectionMatrix(),e.state.scene!==this.props.state.scene){var a=(0,c.default)(this.props.state.scene,e.state.scene);(0,s.updateScene)(this.planData,e.state.scene,this.props.state.scene,a.toJS(),r,this.context.catalog)}this.renderer.setSize(t,n)}},{key:"render",value:function(){return a.default.createElement("div",{ref:"canvasWrapper"})}}]),t}();t.default=m,m.propTypes={state:o.default.object.isRequired,width:o.default.number.isRequired,height:o.default.number.isRequired},m.contextTypes={areaActions:o.default.object.isRequired,holesActions:o.default.object.isRequired,itemsActions:o.default.object.isRequired,linesActions:o.default.object.isRequired,projectActions:o.default.object.isRequired,catalog:o.default.object}},757:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t30?100*(this.props.positiveUnitsNumber-c):""));else if(e>200)for(var p=1;p<=this.props.positiveUnitsNumber;p++){var h=100*(this.props.positiveUnitsNumber-p);d.push(i.default.createElement("div",{key:p,style:r({},t,{gridColumn:1,gridRow:p})},i.default.createElement("div",{style:n},h+80),i.default.createElement("div",{style:n},h+60),i.default.createElement("div",{style:n},h+40),i.default.createElement("div",{style:n},h+20),i.default.createElement("div",{style:n},h)))}return i.default.createElement("div",{style:a},i.default.createElement("div",{id:"verticalMarker",style:o}),i.default.createElement("div",{id:"negativeRuler",style:u}),i.default.createElement("div",{id:"positiveRuler",style:s},d))}}]),t}();t.default=d,d.propTypes={unitPixelSize:l.default.number.isRequired,zoom:l.default.number.isRequired,mouseY:l.default.number.isRequired,height:l.default.number.isRequired,zeroTopPosition:l.default.number.isRequired,backgroundColor:l.default.string,fontColor:l.default.string,markerColor:l.default.string},d.defaultProps={positiveUnitsNumber:50,negativeUnitsNumber:50,backgroundColor:s.PRIMARY_COLOR.main,fontColor:s.COLORS.white,markerColor:s.SECONDARY_COLOR.main},d.contextTypes={translator:l.default.object.isRequired}},758:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t30?100*c:""));else if(e>200)for(var p=0;pp&&(d=u.x,c=u.y,p=s.x,h=s.y);var f=o.GeometryUtils.pointsDistance(d,c,p,h),m=o.GeometryUtils.angleBetweenTwoPointsAndOrigin(d,c,p,h),y=t.holes.map(function(e){var t=n.holes.get(e),o=f*t.offset,i=l.getElement(t.type).render2D(t,n,a);return r.default.createElement("g",{key:e,transform:"translate("+o+", 0)","data-element-root":!0,"data-prototype":t.prototype,"data-id":t.id,"data-selected":t.selected,"data-layer":n.id},i)}),v=t.getIn(["properties","thickness","length"])/2,g=l.getElement(t.type).render2D(t,n),x=t.selected?r.default.createElement(i.default,{unit:a.unit,length:f,transform:"translate(0, "+(v+10)+" )"}):null;return r.default.createElement("g",{transform:"translate("+d+", "+c+") rotate("+m+", 0, 0)","data-element-root":!0,"data-prototype":t.prototype,"data-id":t.id,"data-selected":t.selected,"data-layer":n.id,style:t.selected?{cursor:"move"}:{}},x,g,y)}s.propTypes={line:a.default.object.isRequired,layer:a.default.object.isRequired,scene:a.default.object.isRequired,catalog:a.default.object.isRequired}},770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}var i={fill:"#0096fd",stroke:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5)).COLORS.white,cursor:"move"};function l(e){var t=e.vertex,n=e.layer,a=t.x,o=t.y;return r.default.createElement("g",{transform:"translate("+a+", "+o+")","data-element-root":!0,"data-prototype":t.prototype,"data-id":t.id,"data-selected":t.selected,"data-layer":n.id},r.default.createElement("circle",{cx:"0",cy:"0",r:"7",style:i}))}l.propTypes={vertex:a.default.object.isRequired,layer:a.default.object.isRequired}},772:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=c(n(0)),a=c(n(2)),o=c(n(110)),i=c(n(756)),l=c(n(750)),s=c(n(746)),u=c(n(741)),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));function c(e){return e&&e.__esModule?e:{default:e}}function p(e){var t=e.width,n=e.height,a=e.state,c=e.customContents,p=a.get("mode");switch(p){case d.MODE_3D_VIEW:return r.default.createElement(i.default,{state:a,width:t,height:n});case d.MODE_3D_FIRST_PERSON:return r.default.createElement(l.default,{state:a,width:t,height:n});case d.MODE_VIEWING_CATALOG:return r.default.createElement(s.default,{state:a,width:t,height:n});case d.MODE_IDLE:case d.MODE_2D_ZOOM_IN:case d.MODE_2D_ZOOM_OUT:case d.MODE_2D_PAN:case d.MODE_WAITING_DRAWING_LINE:case d.MODE_DRAGGING_LINE:case d.MODE_DRAGGING_VERTEX:case d.MODE_DRAGGING_ITEM:case d.MODE_DRAWING_LINE:case d.MODE_DRAWING_HOLE:case d.MODE_DRAWING_ITEM:case d.MODE_DRAGGING_HOLE:case d.MODE_ROTATING_ITEM:return r.default.createElement(o.default,{state:a,width:t,height:n});case d.MODE_CONFIGURING_PROJECT:return r.default.createElement(u.default,{width:t,height:n,state:a});default:if(c.hasOwnProperty(p)){var h=c[p];return r.default.createElement(h,{width:t,height:n,state:a})}throw new Error("Mode "+p+" doesn't have a mapped content")}}p.propTypes={state:a.default.object.isRequired,width:a.default.number.isRequired,height:a.default.number.isRequired}},95:function(e,t,n){e.exports=n.p+"catalog/items/teaching-post/wood.jpg"},96:function(e,t,n){e.exports=n.p+"catalog/items/school-desk/wood.jpg"},97:function(e,t,n){e.exports=n.p+"catalog/items/school-desk-double/wood.jpg"},98:function(e,t,n){e.exports=n.p+"catalog/items/bookcase/wood.jpg"},99:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.VERSION="2.0.2"}}); -//# sourceMappingURL=6b94cd3f66e35597e6af.app.js.map \ No newline at end of file diff --git a/demo/dist/6b94cd3f66e35597e6af.app.js.map b/demo/dist/6b94cd3f66e35597e6af.app.js.map deleted file mode 100644 index e9671934..00000000 --- a/demo/dist/6b94cd3f66e35597e6af.app.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../src/utils/export.js","webpack:///../src/components/footerbar/footer-content-button.jsx","webpack:///../src/components/footerbar/footer-toggle-button.jsx","webpack:///../src/components/sidebar/panel-layer-elements.jsx","webpack:///../src/components/sidebar/panel-guides.jsx","webpack:///../src/components/sidebar/panel-layers.jsx","webpack:///../src/components/viewer3d/scene-creator.js","webpack:///../src/components/viewer2d/ruler.jsx","webpack:///../src/components/viewer2d/snap.jsx","webpack:///../src/components/viewer2d/scene.jsx","webpack:///../src/components/viewer2d/state.jsx","webpack:///../src/class/export.js","webpack:///../src/components/viewer2d/viewer2d.jsx","webpack:///../src/components/toolbar/toolbar-load-button.jsx","webpack:///../src/utils/browser.js","webpack:///../src/components/toolbar/toolbar-save-button.jsx","webpack:///../src/components/export.js","webpack:///../src/utils/objects-utils.js","webpack:///../src/reducers/export.js","webpack:///../src/catalog/properties/property-lenght-measure.jsx","webpack:///../src/catalog/properties/property-string.jsx","webpack:///../src/components/style/export.jsx","webpack:///../src/components/toolbar/toolbar.jsx","webpack:///../src/components/toolbar/export.js","webpack:///../src/actions/groups-actions.js","webpack:///../src/actions/area-actions.js","webpack:///../src/actions/items-actions.js","webpack:///../src/actions/vertices-actions.js","webpack:///../src/actions/scene-actions.js","webpack:///../src/actions/holes-actions.js","webpack:///../src/actions/lines-actions.js","webpack:///../src/actions/viewer3d-actions.js","webpack:///../src/actions/viewer2d-actions.js","webpack:///../src/react-planner.jsx","webpack:///../src/reducers/viewer3d-reducer.js","webpack:///../src/reducers/viewer2d-reducer.js","webpack:///../src/reducers/vertices-reducer.js","webpack:///../src/reducers/scene-reducer.js","webpack:///../src/reducers/project-reducer.js","webpack:///../src/reducers/groups-reducer.js","webpack:///../src/reducers/lines-reducer.js","webpack:///../src/reducers/items-reducer.js","webpack:///../src/reducers/holes-reducer.js","webpack:///../src/class/guide.js","webpack:///../src/class/item.js","webpack:///../src/class/area.js","webpack:///../src/class/vertex.js","webpack:///../src/class/hole.js","webpack:///../src/class/line.js","webpack:///../src/class/layer.js","webpack:///../src/class/group.js","webpack:///../src/utils/name-generator.js","webpack:///../src/utils/id-broker.js","webpack:///../src/utils/history.js","webpack:///../src/utils/snap-scene.js","webpack:///../src/utils/graph-cycles.js","webpack:///../src/utils/get-edges-of-subgraphs.js","webpack:///../src/utils/graph.js","webpack:///../src/utils/graph-inner-cycles.js","webpack:///../src/class/project.js","webpack:///../src/reducers/areas-reducer.js","webpack:///../src/reducers/reducer.js","webpack:///../src/translator/ru.js","webpack:///../src/translator/it.js","webpack:///../src/translator/en.js","webpack:///../src/catalog/properties/property-read-only.jsx","webpack:///../src/catalog/properties/property-hidden.jsx","webpack:///../src/catalog/properties/property-checkbox.jsx","webpack:///../src/catalog/properties/property-toggle.jsx","webpack:///../src/catalog/properties/property-number.jsx","webpack:///../src/catalog/properties/property-enum.jsx","webpack:///../src/components/style/form-submit-button.jsx","webpack:///../src/components/style/form-slider.jsx","webpack:///../src/components/style/form-select.jsx","webpack:///../src/components/style/form-number-input.jsx","webpack:///../src/components/style/content-title.jsx","webpack:///../src/components/style/content-container.jsx","webpack:///../src/catalog/properties/export.js","webpack:///../src/catalog/catalog.js","webpack:///./src/ui/toolbar-screenshot-button.jsx","webpack:///./src/catalog/items/wardrobe/wardrobe.png","webpack:///./src/catalog/items/wardrobe/planner-element.jsx","webpack:///./src/catalog/items/umbrella-stand/umbrellaStand.png","webpack:///./src/catalog/items/umbrella-stand/bronze-texture.jpg","webpack:///./src/catalog/items/umbrella-stand/planner-element.jsx","webpack:///./src/catalog/items/tv/tv.obj","webpack:///./src/catalog/items/tv/tv.mtl","webpack:///./src/catalog/items/tv/tv.png","webpack:///./src/catalog/items/tv/planner-element.jsx","webpack:///./src/catalog/items/trash/trash.png","webpack:///./src/catalog/items/trash/planner-element.jsx","webpack:///./src/catalog/items/three-phase-panel/threePhasePanel.png","webpack:///./src/catalog/items/three-phase-panel/PanelTexture.png","webpack:///./src/catalog/items/three-phase-panel/planner-element.jsx","webpack:///./src/catalog/items/text-3d/img.png","webpack:///./src/catalog/items/text-3d/helvetiker_regular.typeface.js","webpack:///./src/catalog/items/text-3d/planner-element.jsx","webpack:///./src/catalog/items/teaching-post/teaching-post.png","webpack:///./src/catalog/items/teaching-post/planner-element.jsx","webpack:///./src/catalog/items/table/table.png","webpack:///./src/catalog/items/table/planner-element.jsx","webpack:///./src/catalog/items/sofa/sofa.png","webpack:///./src/catalog/items/sofa/texture.jpg","webpack:///./src/catalog/items/sofa/sofa.obj","webpack:///./src/catalog/items/sofa/sofa.mtl","webpack:///./src/catalog/items/sofa/planner-element.jsx","webpack:///./src/catalog/items/smoke-detector/smokeDetector.png","webpack:///../src/components/sidebar/panel.jsx","webpack:///./src/catalog/items/smoke-detector/planner-element.jsx","webpack:///./src/catalog/items/sink/sink.png","webpack:///./src/catalog/items/sink/planner-element.jsx","webpack:///./src/catalog/items/school-desk/school-desk.png","webpack:///./src/catalog/items/school-desk/planner-element.jsx","webpack:///./src/catalog/items/school-desk-double/school-desk-double.png","webpack:///./src/catalog/items/school-desk-double/planner-element.jsx","webpack:///./src/catalog/items/schneider/schneider.png","webpack:///./src/catalog/items/schneider/monitor.png","webpack:///./src/catalog/items/schneider/planner-element.jsx","webpack:///../src/catalog/properties/shared-property-style.js","webpack:///./src/catalog/items/router-wifi/routerWifi.png","webpack:///./src/catalog/items/router-wifi/planner-element.jsx","webpack:///./src/catalog/items/recycling-bins/recycle.png","webpack:///./src/catalog/items/recycling-bins/recycling-bins.png","webpack:///./src/catalog/items/recycling-bins/planner-element.jsx","webpack:///./src/catalog/items/radiator-old-style/OldStyleRadiator.png","webpack:///./src/catalog/items/radiator-old-style/planner-element.jsx","webpack:///./src/catalog/items/radiator-modern-style/ModernStyleRadiator.png","webpack:///./src/catalog/items/radiator-modern-style/planner-element.jsx","webpack:///./src/catalog/items/projector/projector.png","webpack:///./src/catalog/items/projector/planner-element.jsx","webpack:///./src/catalog/items/naspo/naspo.png","webpack:///./src/catalog/items/naspo/naspofront.png","webpack:///./src/catalog/items/naspo/planner-element.jsx","webpack:///./src/catalog/items/monitor-pc/monitorPC.png","webpack:///./src/catalog/items/monitor-pc/keyboard.jpg","webpack:///./src/catalog/items/monitor-pc/white.jpg","webpack:///./src/catalog/items/monitor-pc/black.jpg","webpack:///./src/catalog/items/monitor-pc/power.jpg","webpack:///./src/catalog/items/monitor-pc/planner-element.jsx","webpack:///./src/catalog/items/metal-detector/metalDetector.png","webpack:///./src/catalog/items/metal-detector/display2.png","webpack:///./src/catalog/items/metal-detector/display1.png","webpack:///./src/catalog/items/metal-detector/planner-element.jsx","webpack:///./src/catalog/items/lim/example_lim.png","webpack:///./src/catalog/items/lim/lim.png","webpack:///./src/catalog/items/lim/planner-element.jsx","webpack:///./src/catalog/items/kitchen/kitchen.png","webpack:///./src/catalog/items/kitchen/logo.jpg","webpack:///./src/catalog/items/kitchen/darksteel.jpg","webpack:///./src/catalog/items/kitchen/steel.jpg","webpack:///../src/components/style/form-label.jsx","webpack:///../src/components/style/form-color-input.jsx","webpack:///../src/components/style/form-block.jsx","webpack:///../src/components/style/delete-button.jsx","webpack:///./src/catalog/items/kitchen/planner-element.jsx","webpack:///../src/components/style/cancel-button.jsx","webpack:///../src/catalog/properties/property-color.jsx","webpack:///./src/catalog/mycatalog.js","webpack:///./src/catalog/items/image/image.png","webpack:///./src/catalog/items/image/imageful.jsx","webpack:///./src/renderer.jsx","webpack:///./src/catalog/items/image/planner-element.jsx","webpack:///./src/catalog/items/hub/hub.png","webpack:///./src/catalog/items/hub/front.png","webpack:///./src/catalog/items/hub/planner-element.jsx","webpack:///./src/catalog/items/hiroos/hiroos.png","webpack:///./src/catalog/items/hiroos/hiroosTexture.jpg","webpack:///./src/catalog/items/hiroos/planner-element.jsx","webpack:///./src/catalog/items/hanger/hanger.png","webpack:///./src/catalog/items/hanger/planner-element.jsx","webpack:///./src/catalog/items/fridge/fridge.png","webpack:///./src/catalog/items/fridge/steel.jpg","webpack:///./src/catalog/items/fridge/logo.jpg","webpack:///./src/catalog/items/fridge/planner-element.jsx","webpack:///./src/catalog/items/fire-extinguisher/fire-extinguisher.png","webpack:///./src/catalog/items/fire-extinguisher/label-image.png","webpack:///./src/catalog/items/fire-extinguisher/gage-image.png","webpack:///./src/catalog/utils/load-obj.js","webpack:///./src/catalog/items/fire-extinguisher/planner-element.jsx","webpack:///./src/catalog/items/electrical-panel/electricalPanel.png","webpack:///./src/catalog/items/electrical-panel/texturePanel.png","webpack:///./src/catalog/items/electrical-panel/planner-element.jsx","webpack:///./src/catalog/items/deskoffice/desk.png","webpack:///./src/catalog/items/deskoffice/wood.jpg","webpack:///./src/catalog/items/deskoffice/white.jpg","webpack:///./src/catalog/items/deskoffice/planner-element.jsx","webpack:///./src/catalog/items/deskdouble/deskdouble.png","webpack:///./src/catalog/items/deskdouble/planner-element.jsx","webpack:///./src/catalog/items/desk/desk.png","webpack:///./src/catalog/items/desk/planner-element.jsx","webpack:///./src/catalog/items/cube/cube.png","webpack:///./src/catalog/items/cube/planner-element.jsx","webpack:///./src/catalog/items/column/column.png","webpack:///./src/catalog/items/column/copper.jpg","webpack:///./src/catalog/items/column/planner-element.jsx","webpack:///./src/catalog/items/column-square/square_column.png","webpack:///./src/catalog/items/column-square/planner-element.jsx","webpack:///./src/catalog/items/coat-hook/wood.jpg","webpack:///./src/catalog/items/coat-hook/coat-hook.png","webpack:///./src/catalog/items/coat-hook/planner-element.jsx","webpack:///./src/catalog/items/cleaningcart/cleaning_cart.png","webpack:///./src/catalog/items/cleaningcart/planner-element.jsx","webpack:///./src/catalog/items/child-chair-desk/chairDesk.png","webpack:///./src/catalog/items/child-chair-desk/planner-element.jsx","webpack:///./src/catalog/items/chairdesk/chairdesk.png","webpack:///./src/catalog/items/chairdesk/planner-element.jsx","webpack:///./src/catalog/items/chair/chair.png","webpack:///./src/catalog/items/chair/planner-element.jsx","webpack:///./src/catalog/items/canteencart/canteen_cart.png","webpack:///./src/catalog/items/canteencart/planner-element.jsx","webpack:///./src/catalog/items/canteen-table/canteen_table.png","webpack:///./src/catalog/items/canteen-table/planner-element.jsx","webpack:///./src/catalog/items/camera/camera.png","webpack:///./src/catalog/items/camera/planner-element.jsx","webpack:///./src/catalog/items/bookcase/bookcase.png","webpack:///./src/catalog/items/bookcase/bookTexture3.jpg","webpack:///./src/catalog/items/bookcase/bookTexture2.jpg","webpack:///./src/catalog/items/bookcase/bookTexture1.jpg","webpack:///../src/models.js","webpack:///./src/catalog/items/bookcase/planner-element.jsx","webpack:///./src/catalog/items/blackboard/blackboard.png","webpack:///./src/catalog/items/blackboard/planner-element.jsx","webpack:///./src/catalog/items/bench/bench.png","webpack:///./src/catalog/items/bench/wood.jpg","webpack:///./src/catalog/items/bench/planner-element.jsx","webpack:///./src/catalog/items/balcony/balcony.png","webpack:///./src/catalog/items/balcony/bricks.jpg","webpack:///./src/catalog/items/balcony/painted.jpg","webpack:///./src/catalog/items/balcony/planner-element.jsx","webpack:///./src/catalog/items/armchairs/armchairs.png","webpack:///./src/catalog/items/armchairs/planner-element.jsx","webpack:///./src/catalog/items/air-conditioner/air_conditioner.png","webpack:///./src/catalog/items/air-conditioner/planner-element.jsx","webpack:///./src/catalog/holes/window/texture.png","webpack:///./src/catalog/holes/window/window.obj","webpack:///./src/catalog/holes/window/window.mtl","webpack:///./src/catalog/holes/window/window.png","webpack:///./src/catalog/holes/window/planner-element.jsx","webpack:///./src/catalog/holes/window-curtain/texture.png","webpack:///./src/catalog/holes/window-curtain/window.obj","webpack:///./src/catalog/holes/window-curtain/window.mtl","webpack:///./src/catalog/holes/window-curtain/window-curtain.jpg","webpack:///./src/catalog/holes/window-curtain/planner-element.jsx","webpack:///./src/catalog/holes/venetian-blind-window/texture.png","webpack:///./src/catalog/holes/venetian-blind-window/venetian.obj","webpack:///./src/catalog/holes/venetian-blind-window/venetian.mtl","webpack:///./src/catalog/holes/venetian-blind-window/venetian.jpg","webpack:///./src/catalog/holes/venetian-blind-window/planner-element.jsx","webpack:///./src/catalog/holes/sliding-door/slidingDoor.png","webpack:///../src/index.js","webpack:///./src/catalog/holes/sliding-door/planner-element.jsx","webpack:///./src/catalog/holes/sash-window/texture.png","webpack:///./src/catalog/holes/sash-window/sash-window.obj","webpack:///./src/catalog/holes/sash-window/sash-window.mtl","webpack:///./src/catalog/holes/sash-window/window.png","webpack:///./src/catalog/holes/sash-window/planner-element.jsx","webpack:///./src/catalog/holes/panic-door/panicDoor.png","webpack:///./src/catalog/holes/panic-door/planner-element.jsx","webpack:///./src/catalog/holes/panic-door-double/panicDoorDouble.png","webpack:///./src/catalog/holes/panic-door-double/planner-element.jsx","webpack:///./src/catalog/holes/gate/gate.jpg","webpack:///./src/catalog/holes/gate/planner-element.jsx","webpack:///./src/catalog/holes/door/texture.jpg","webpack:///./src/catalog/holes/door/door.obj","webpack:///./src/catalog/holes/door/door.mtl","webpack:///./src/catalog/holes/door/door.png","webpack:///./src/catalog/utils/obj-loader.js","webpack:///./src/catalog/utils/mtl-loader.js","webpack:///./src/catalog/holes/door/planner-element.jsx","webpack:///../src/utils/react-if.jsx","webpack:///./src/catalog/holes/door-double/door_double.png","webpack:///./src/catalog/holes/door-double/planner-element.jsx","webpack:///./src/catalog/lines/wall/textures/painted-normal.jpg","webpack:///./src/catalog/lines/wall/textures/painted.jpg","webpack:///./src/catalog/lines/wall/textures/bricks-normal.jpg","webpack:///./src/catalog/lines/wall/textures/bricks.jpg","webpack:///./src/catalog/lines/wall/wall.png","webpack:///./src/catalog/lines/wall/planner-element.jsx","webpack:///./src/catalog/areas/area/textures/grass.jpg","webpack:///./src/catalog/areas/area/textures/strand-porcelain.jpg","webpack:///../src/utils/geometry.js","webpack:///./src/catalog/areas/area/textures/ceramic-tile.jpg","webpack:///./src/catalog/areas/area/textures/tile1.jpg","webpack:///./src/catalog/areas/area/textures/parquet.jpg","webpack:///./src/catalog/areas/area/planner-element.jsx","webpack:///../src/catalog/factories/area-factory-3d.js","webpack:///../src/catalog/factories/area-factory.jsx","webpack:///../src/utils/threeCSG.es6.js","webpack:///../src/catalog/factories/wall-factory-3d.js","webpack:///../src/catalog/factories/wall-factory.jsx","webpack:///../src/catalog/factories/export.js","webpack:///../src/utils/snap.js","webpack:///../src/plugins/console-debugger.js","webpack:///../src/plugins/keyboard.js","webpack:///../src/plugins/autosave.js","webpack:///../src/plugins/export.js","webpack:///../src/styles/tabs.css","webpack:///../src/styles/tabs.css?5165","webpack:///../src/styles/export.js","webpack:///../src/components/footerbar/footerbar.jsx","webpack:///../src/components/footerbar/export.js","webpack:///../src/components/sidebar/panel-groups.jsx","webpack:///../src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx","webpack:///../src/constants.js","webpack:///../src/components/viewer2d/export.js","webpack:///../src/components/toolbar/toolbar-button.jsx","webpack:///../src/shared-style.js","webpack:///../src/translator/translator.js","webpack:///../src/components/style/form-text-input.jsx","webpack:///../src/components/style/button.jsx","webpack:///../src/components/viewer3d/three-memory-cleaner.js","webpack:///../src/actions/project-actions.js","webpack:///../src/actions/export.js","webpack:///../src/utils/math.js","webpack:///../src/components/sidebar/panel-group-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/element-editor.jsx","webpack:///../src/components/sidebar/panel-element-editor/panel-element-editor.jsx","webpack:///../src/components/sidebar/sidebar.jsx","webpack:///../src/components/sidebar/export.js","webpack:///../src/components/configurator/project-configurator.jsx","webpack:///../src/components/catalog-view/catalog-turn-back-page-item.jsx","webpack:///../src/components/catalog-view/catalog-page-item.jsx","webpack:///../src/components/catalog-view/catalog-breadcrumb.jsx","webpack:///../src/components/catalog-view/catalog-item.jsx","webpack:///../src/components/catalog-view/catalog-list.jsx","webpack:///../src/components/viewer3d/libs/first-person-controls.js","webpack:///../src/components/viewer3d/libs/pointer-lock-controls.js","webpack:///../src/components/viewer3d/pointer-lock-navigation.js","webpack:///../src/components/viewer3d/viewer3d-first-person.js","webpack:///../src/components/viewer3d/libs/orbit-controls.js","webpack:///../src/components/viewer3d/grids/grid-vertical-streak.js","webpack:///../src/components/viewer3d/grids/grid-horizontal-streak.js","webpack:///../src/components/viewer3d/libs/helvetiker_regular.typeface.js","webpack:///../src/components/viewer3d/grid-creator.js","webpack:///../src/components/viewer3d/viewer3d.js","webpack:///../src/components/viewer2d/rulerY.jsx","webpack:///../src/components/viewer2d/rulerX.jsx","webpack:///../src/components/viewer2d/group.jsx","webpack:///../src/components/viewer2d/grids/grid-vertical-streak.jsx","webpack:///../src/components/viewer2d/grids/grid-horizontal-streak.jsx","webpack:///../src/components/viewer2d/grids/grids.jsx","webpack:///../src/components/viewer2d/area.jsx","webpack:///../src/components/viewer2d/item.jsx","webpack:///../src/components/viewer2d/layer.jsx","webpack:///../src/components/viewer2d/line.jsx","webpack:///../src/components/viewer2d/vertex.jsx","webpack:///../src/components/content.jsx","webpack:///./src/catalog/items/teaching-post/wood.jpg","webpack:///./src/catalog/items/school-desk/wood.jpg","webpack:///./src/catalog/items/school-desk-double/wood.jpg","webpack:///./src/catalog/items/bookcase/wood.jpg","webpack:///../src/version.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","GeometryUtils","GraphInnerCycles","MathUtils","SnapUtils","SnapSceneUtils","history","ObjectUtils","IDBroker","NameGenerator","_react","SharedStyle","labelContainerStyle","width","display","margin","padding","toggleButtonStyle","color","textAlign","cursor","userSelect","toggleButtonStyleOver","COLORS","white","contentContainerStyleActive","position","height","left","bottom","backgroundColor","PRIMARY_COLOR","alt","borderTop","border","zIndex","transition","contentContainerStyleInactive","visibility","contentHeaderStyle","top","borderBottom","titleStyle","lineHeight","marginLeft","contentAreaStyle","overflowY","iconCloseStyleOut","right","borderLeft","iconCloseStyleOver","SECONDARY_COLOR","iconStyle","marginTop","marginRight","textStyle","FooterContentButton","props","_classCallCheck","this","_this","_possibleConstructorReturn","__proto__","getPrototypeOf","state","over","closeOver","active","toggleState","Component","e","setState","isActive","nextProps","nextState","content","_this2","LabelIcon","icon","labelIconStyle","labelTextStyle","inputTitleStyle","_react2","default","createElement","style","onClick","toggle","title","_extends","text","_close2","onMouseOver","onMouseOut","propTypes","PropTypes","isRequired","string","func","array","bool","contextTypes","projectActions","viewer2DActions","viewer3DActions","linesActions","holesActions","itemsActions","translator","borderRadius","FooterToggleButton","toggleOn","toggleOff","toggleOver","toggleOut","_constants","VISIBILITY_MODE","MODE_IDLE","MODE_2D_ZOOM_IN","MODE_2D_ZOOM_OUT","MODE_2D_PAN","MODE_3D_VIEW","MODE_3D_FIRST_PERSON","MODE_WAITING_DRAWING_LINE","MODE_DRAWING_LINE","MODE_DRAWING_HOLE","MODE_DRAWING_ITEM","MODE_DRAGGING_LINE","MODE_DRAGGING_VERTEX","MODE_DRAGGING_ITEM","MODE_DRAGGING_HOLE","MODE_FITTING_IMAGE","MODE_UPLOADING_IMAGE","MODE_ROTATING_ITEM","contentArea","maxHeight","marginBottom","elementStyle","elementSelectedStyle","main","borderColor","categoryDividerStyle","paddingBottom","tableSearchStyle","searchIconStyle","fontSize","searchInputStyle","PanelLayerElement","context","layer","layers","selectedLayer","elements","lines","holes","items","matchString","matchedElements","oldElements","newElements","hashCode","regexp","RegExp","filterCb","el","test","filter","_panel2","onWheel","stopPropagation","_search2","type","onChange","matcharray","target","count","entrySeq","map","_ref","_ref2","_slicedToArray","lineID","line","selectLine","id","selected","_ref3","_ref4","holeID","hole","selectHole","_ref5","_ref6","itemID","item","selectItem","catalog","_reactTabs","_fa","_export","tabStyle","addGuideStyle","tableTabStyle","PanelGuides","addHGVisible","addVGVisible","addCGVisible","getIn","_context","guides","scene","Tabs","TabList","Tab","TabPanel","ind","hgKey","hgVal","FaTrash","removeHorizontalGuide","colSpan","FormNumberInput","addHorizontalGuide","min","max","FaClose","removeVerticalGuide","addVerticalGuide","_immutable","_ti","styleEditButton","background","outline","tableLayerStyle","iconColStyle","styleHoverColor","styleEditButtonHover","styleAddLabel","styleEyeVisible","styleEyeHidden","firstTdStyle","newLayerLableStyle","newLayerLableHoverStyle","layerInputTableStyle","borderSpacing","inputTableButtonStyle","float","PanelLayers","headHovered","layerAddUIVisible","editingLayer","Map","size","sceneHistory","sceneActions","addLayer","layerData","_layerData$toJS","toJS","opacity","altitude","order","parseInt","setLayerProperties","layerID","removeLayer","isLastLayer","configureClick","isCurrentLayer","selectLayer","onDoubleClick","FaEye","visible","FaPencil","delLayer","TiDelete","TiPlus","FormTextInput","merge","FormSlider","Math","round","CancelButton","resetLayerMod","FormSubmitButton","updateLayer","parseData","sceneData","actions","planData","sceneGraph","unit","busyResources","LODs","plan","Three","Object3D","grid","_gridCreator2","boundingBox","Box3","setFromObject","promises","forEach","concat","createLayerObjects","Promise","all","then","updateBoundingBox","updateScene","oldSceneData","diffArray","filteredDiffs","foundDiff","path","op","indexOf","minimizeRemoveDiffsWhenSwitchingLayers","idsFound","minimizeChangePropertiesAfterSelectionsDiffs","_ref7","minimizeChangePropertiesDiffs","filterDiffs","split","layerId","layerGraph","removeLine","areaID","areas","removeArea","removeItem","removeHole","replaceObject","modifiedPath","vertex","lineHoles","newHoleData","getElement","updateRender3D","differences","selfDestroy","selfBuild","oldHole","mesh","updateHole","addHole","addLine","oldLine","updateLine","area","areaActions","oldArea","updateArea","addArea","oldItem","updateItem","addItem","values","addPromise","addAction","addObject","removeObject","layerSelectedID","layerSelected","_threeMemoryCleaner","setTimeout","hole3D","remove","disposeObject","line3D","area3D","item3D","holeData","render3D","LOD","pivot","add","vertex0","vertices","vertex1","offset","x","tmp","distance","sqrt","pow","y","alpha","asin","center","z","holeAltitude","properties","holeHeight","rotation","cos","sin","applyInteract","applyOpacity","interactFunction","selectArea","PI","traverse","child","Mesh","interact","material","MultiMaterial","materials","materialChild","transparent","maxOpacity","Array","newBoundingBox","isFinite","newCenter","Vector3","sub","Ruler","STYLE","stroke","strokeWidth","STYLE_TEXT","textAnchor","fontFamily","pointerEvents","fontWeight","WebkitTouchCallout","WebkitUserSelect","MozUserSelect","MsUserSelect","transform","distanceText","toFixed","x1","y1","x2","y2","number","ActiveDrawingHelper","Geometry","snap","h0","horizontalLine","h1","pointH0","twoLinesIntersection","a","b","pointH1","v0","verticalLine","v1","pointV0","pointV1","Scene","_props","Grids","Layer","State","guideStyle","strokewidth","activeSnapElement","snapElements","_snap2","fill","_scene2","vgKey","vgVal","_guide","Project","Group","Line","Hole","Vertex","Area","Item","HorizontalGuide","VerticalGuide","Viewer2D","_reactSvgPanZoom","constants","extractElementData","node","attributes","getNamedItem","tagName","parentNode","part","undefined","verticesActions","viewer2D","mapCursorPosition","_state$get$toJS","f","SVGWidth","SVGHeight","rulerBgColor","rulerFnColor","rulerMkColor","rulerXElements","ceil","rulerYElements","gridRowGap","gridColumnGap","gridTemplateColumns","rulerSize","gridTemplateRows","gridColumn","gridRow","overflow","RulerX","unitPixelSize","zoom","mouseX","mouse","zeroLeftPosition","fontColor","markerColor","positiveUnitsNumber","negativeUnitsNumber","RulerY","mouseY","zeroTopPosition","ReactSVGPanZoom","isEmpty","onChangeValue","updateZoomScale","updateCameraView","tool","TOOL_PAN","TOOL_ZOOM_IN","TOOL_ZOOM_OUT","TOOL_AUTO","TOOL_NONE","mode2Tool","onChangeTool","selectToolEdit","selectToolPan","selectToolZoomIn","selectToolZoomOut","detectAutoPan","mode2DetectAutopan","onMouseDown","viewerEvent","event","originalEvent","evt","Event","document","dispatchEvent","_mapCursorPosition2","elementData","beginDraggingLine","snapMask","beginDraggingVertex","beginRotatingItem","beginDraggingItem","beginDraggingHole","onMouseMove","_mapCursorPosition","updateMouseCoord","updateDrawingLine","updateDrawingHole","updateDrawingItem","updateDraggingHole","updateDraggingLine","updateDraggingVertex","updateDraggingItem","updateRotatingItem","onMouseUp","_mapCursorPosition3","unselectAll","beginDrawingLine","endDrawingLine","endDrawingHole","endDrawingItem","endDraggingLine","endDraggingVertex","endDraggingItem","endDraggingHole","endRotatingItem","miniaturePosition","toolbarPosition","patternUnits","assign","mode2Cursor","mode2PointerEvents","_state2","ToolbarLoadButton","_browser","_toolbarButton2","tooltip","preventDefault","browserUpload","loadProject","JSON","parse","_folderOpenO2","browserDownload","json","fileOutputLink","filename","Date","now","prompt","output","stringify","Blob","url","URL","createObjectURL","setAttribute","href","body","appendChild","click","removeChild","resolve","reject","fileInput","addEventListener","file","files","reader","FileReader","fileEvent","loadedData","readAsText","ToolbarSaveButton","updatedState","_floppyO2","ToolbarComponents","Content","SidebarComponents","FooterBarComponents","Viewer2DComponents","StyleComponents","objectsMap","mappedObject","objectsCompare","constructor","_typeof","ReactPlannerAreasReducer","ReactPlannerHolesReducer","ReactPlannerItemsReducer","ReactPlannerLinesReducer","ReactPlannerGroupsReducer","ReactPlannerProjectReducer","ReactPlannerSceneReducer","ReactPlannerVerticesReducer","ReactPlannerViewer2dReducer","ReactPlannerViewer3dReducer","PropertyLengthMeasure","_math","internalTableStyle","borderCollapse","secondTdStyle","unitContainerStyle","onUpdate","onValid","configs","sourceElement","internalState","_length","_unit","UNIT_CENTIMETER","hook","label","configRest","_objectWithoutProperties","update","lengthInput","unitInput","newLength","toFixedFloat","merged","_convertUnits2","from","to","val","className","PropertyStyle","tableStyle","FormLabel","FormSelect","UNITS_LENGTH","instanceOf","PropertyString","_val","any","Button","ContentContainer","ContentTitle","DeleteButton","FormBlock","FormColorInput","_md","iconTextStyle","textDecoration","Icon2D","Icon3D","ASIDE_STYLE","sortButtonsCb","index","Number","MAX_SAFE_INTEGER","mapButtonsCb","_reactIf2","condition","dom","Toolbar","alterate","toolbarButtons","allowProjectFileSupport","alterateColor","MATERIAL_COLORS","orange","sorter","confirm","newProject","FaFileO","_toolbarSaveButton2","_toolbarLoadButton2","MODE_VIEWING_CATALOG","includes","openCatalog","FaPlus","selectTool3DView","setMode","FaMousePointer","selectTool3DFirstPerson","MdDirectionsRun","undo","MdUndo","MODE_CONFIGURING_PROJECT","openProjectConfigurator","MdSettings","React","maxWidth","sort","ToolbarButton","addGroup","GROUP_ACTIONS","ADD_GROUP","addGroupFromSelected","ADD_GROUP_FROM_SELECTED","selectGroup","groupID","SELECT_GROUP","unselectGroup","UNSELECT_GROUP","addToGroup","elementPrototype","elementID","ADD_TO_GROUP","removeFromGroup","REMOVE_FROM_GROUP","setGroupAttributes","SET_GROUP_ATTRIBUTES","setGroupProperties","SET_GROUP_PROPERTIES","setGroupBarycenter","barycenter","SET_GROUP_BARYCENTER","removeGroup","REMOVE_GROUP","removeGroupAndDeleteElements","REMOVE_GROUP_AND_DELETE_ELEMENTS","groupTranslate","GROUP_TRANSLATE","groupRotate","GROUP_ROTATE","SELECT_AREA","SELECT_ITEM","selectToolDrawingItem","sceneComponentType","SELECT_TOOL_DRAWING_ITEM","UPDATE_DRAWING_ITEM","END_DRAWING_ITEM","BEGIN_DRAGGING_ITEM","UPDATE_DRAGGING_ITEM","END_DRAGGING_ITEM","BEGIN_ROTATING_ITEM","UPDATE_ROTATING_ITEM","END_ROTATING_ITEM","vertexID","BEGIN_DRAGGING_VERTEX","UPDATE_DRAGGING_VERTEX","END_DRAGGING_VERTEX","SELECT_LAYER","ADD_LAYER","SET_LAYER_PROPERTIES","REMOVE_LAYER","SELECT_HOLE","selectToolDrawingHole","SELECT_TOOL_DRAWING_HOLE","UPDATE_DRAWING_HOLE","END_DRAWING_HOLE","BEGIN_DRAGGING_HOLE","UPDATE_DRAGGING_HOLE","END_DRAGGING_HOLE","SELECT_LINE","selectToolDrawingLine","SELECT_TOOL_DRAWING_LINE","BEGIN_DRAWING_LINE","UPDATE_DRAWING_LINE","END_DRAWING_LINE","BEGIN_DRAGGING_LINE","UPDATE_DRAGGING_LINE","END_DRAGGING_LINE","SELECT_TOOL_3D_VIEW","SELECT_TOOL_3D_FIRST_PERSON","UPDATE_2D_CAMERA","SELECT_TOOL_PAN","SELECT_TOOL_ZOOM_OUT","SELECT_TOOL_ZOOM_IN","_redux","_reactRedux","_objectsUtils","_export3","_version","Sidebar","FooterBar","wrapperStyle","flexFlow","ReactPlanner","actionNamespace","store","stateExtractor","plugins","plugin","initCatalog","_props2","contentW","toolbarH","contentH","sidebarH","extractedState","Translator","Catalog","arrayOf","autosaveKey","autosaveDelay","sidebarComponents","footerbarComponents","customContents","softwareSignature","childContextTypes","defaultProps","VERSION","connect","reduxState","dispatch","bindActionCreators","action","historyPush","rollback","_export2","fromJS","set","select","setProperties","NEW_PROJECT","LOAD_PROJECT","sceneJSON","OPEN_CATALOG","CHANGE_CATALOG_PAGE","changeCatalogPage","oldPage","newPage","GO_BACK_TO_CATALOG_PAGE","goBackToCatalogPage","SELECT_TOOL_EDIT","UNSELECT_ALL","SET_PROPERTIES","SET_ITEMS_ATTRIBUTES","setItemsAttributes","itemsAttributes","SET_LINES_ATTRIBUTES","setLinesAttributes","linesAttributes","SET_HOLES_ATTRIBUTES","setHolesAttributes","holesAttributes","REMOVE","UNDO","ROLLBACK","SET_PROJECT_PROPERTIES","setProjectProperties","OPEN_PROJECT_CONFIGURATOR","INIT_CATALOG","UPDATE_MOUSE_COORDS","coords","UPDATE_ZOOM_SCALE","scale","TOGGLE_SNAP","toggleSnap","mask","THROW_ERROR","throwError","error","THROW_WARNING","throwWarning","warning","COPY_PROPERTIES","copyProperties","PASTE_PROPERTIES","pasteProperties","PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY","pushLastSelectedCatalogElementToHistory","element","ALTERATE_STATE","setAlterate","SET_MODE","ADD_HORIZONTAL_GUIDE","coordinate","ADD_VERTICAL_GUIDE","ADD_CIRCULAR_GUIDE","addCircularGuide","radius","REMOVE_HORIZONTAL_GUIDE","guideID","REMOVE_VERTICAL_GUIDE","REMOVE_CIRCULAR_GUIDE","removeCircularGuide","createFromSelectedElements","unselect","addElement","removeElement","setAttributes","setBarycenter","removeAndDeleteElements","translate","rotate","hGuideID","acquireID","setIn","deleteIn","vGuideID","CircularGuide","factoryElement","generateName","selectElement","group","drawingSupport","hasIn","updateIn","_create","stateI","draggingSupport","startPointX","startPointY","originalX","originalY","_state","diffX","diffY","mergeIn","rotatingSupport","deltaX","deltaY","atan2","v","k","updateProperties","itemAttributes","verticesCoords","withMutations","_models","relatedPrototype","relatedID","find","samePoints","related","VertexModel","_defineProperty","List","vertexAttributes","list","elementIndex","findIndex","elems","forceRemove","ID","delete","sceneSnapElements","previousMode","nearestSnap","_snap$point","point","reduce","reducedState","v_id0","v_id1","oldVertexID","oldVertex","oldHoles","orderedVertices","orderVertices","lineType","oldLineLength","pointsDistance","offsetPosition","extendLine","lineProps","lineGroups","contains","removeZeroLengthLines","mergeEqualsVertices","ret","createAvoidingIntersections","addedLine","oldLineGroup","detectAndUpdateAreas","_snap","_state$getIn","_vertices$get","_vertices$get2","addLineSegmentSnap","SNAP_SEGMENT","selectedHole","first","_state$getIn2","_state$getIn3","minVertex","maxVertex","lineLength","absAngleBetweenTwoPoints","cosAlpha","cosWithThreshold","sinAlpha","sinWithThreshold","minLeftVertexHole","maxRightVertexHole","pointPositionOnLineSegment","findEntry","removed","hl","line_holes","stateH","_snap$point2","abs","hAttr","offsetA","offsetB","misc","_unitA","_unitB","mergeDeepIn","x0","y0","_Vertex$add","stateV0","_Vertex$add2","stateV1","_Line$create","stateL1","line0","_Line$create2","stateL2","line1","splitPointOffset","holeOffset","points","zip","skip","filterNot","_ref4$","_ref4$2","_ref6$","_ref6$2","stateL","holeWithOffsetPoint","_holeWithOffsetPoint$","xp","yp","isPointOnLineSegment","newOffset","oldProperties","_line$vertices$map$to","toArray","_line$vertices$map$to2","hasCommonEndpoint","intersection","twoLineSegmentsIntersection","_Line$addFromPoints","addFromPoints","vertexIndex","_Vertex$add3","stateV","_GeometryUtils$horizo","addLineSnap","_GeometryUtils$vertic","_Line$create3","_Line$replaceVertex","replaceVertex","stateLV","_snap$point3","startVertex0X","startVertex0Y","startVertex1X","startVertex1Y","newVertex0X","newVertex0Y","newVertex1X","newVertex1Y","curSnap0","curSnap1","lineVertices","maxV","minV","verticesDistance","holesWithOffsetPosition","pointOnLine","lineAttributes","lAttr","vertexOne","vertexTwo","_unitLength","sameSet","set1","set2","isSuperset","isSubset","LayerModel","removeIn","linesArray","verticesArray","vertexID_to_verticesArrayIndex","verticesArrayIndex_to_vertexID","latestVertexIndex","innerCyclesByVerticesArrayIndex","calculateInnerCycles","innerCyclesByVerticesID","cycle","isClockWiseOrder","reverse","areaIDs","some","areaInUse","areaVerticesCoords","resultAdd","verticesCoordsForArea","holesList","areaVerticesList","flatten","ContainsPoint","doubleHoles","Set","areaHoles","areaHoleID","doubleHoleID","newState","doubleVertices","doubleVertex","reduced","biReduced","layerList","groupLayerID","groupLayerElements","groups","g","GroupModel","layerElements","_loop","actualList","reloadBaricenter","xBar","yBar","elementCount","vID","_GeometryUtils$midPoi","midPoint","xM","yM","_lineVertices$get","_lineVertices$get2","_GeometryUtils$extend","areaVertices","verticesMidPoint","_ref8","_vertices$vertexID","xV","yV","xI","yI","newAlpha","barX","barY","_ref9","_ref10","_vertices$vertexID2","_GeometryUtils$rotate","rotatePointAroundPoint","newX","newY","rI","_GeometryUtils$rotate2","substr","toUpperCase","shortid","generate","historyStructure","last","toPush","time","diff","_immutablediff2","historyPop","_immutablepatch2","pop","arguments","SNAP_POINT","addPointSnap","SNAP_LINE","_ref2$vertices","SNAP_GRID","xCycle","yCycle","xMul","yMul","onXCross","onYCross","addGridSnap","SNAP_GUIDE","horizontal","vertical","hValues","valueSeq","vValues","hVal","vVal","mod","compute_incidences","V","EV","incidence","edge","endpoint","angle","P","v2","compute_angle","i1","i2","get_starting_edge","incidences","ev_mapping","direction","get_next_edge","n_items","out","cycles","ev","compute_ev_mapping","V_cycles","E_cycles","dir_E_cycles","V_cycle","E_cycle","dir_E_cycle","next","start","v_cycles","e_cycles","dir_e_cycles","find_cycles","indexes","e_cycle","v_cycle","find_short_cycles_indexes","indx","rooms_sums","room","positive_count","sum","rm_neg","subgraphs","graph","edges","component","u","getVerticesFromBiconnectedComponent","adj","has","create_array","Edge","Graph","E","w","disc","low","st","parent","children","_BCCUtil","subgraph","edgesArray","innerCycles","addEdge","BCC","_getEdgesOfSubgraphs2","es","_graphCycles2","innerCycleWithCoords","twiceEnclosedArea","_innerCycleWithCoords","_innerCycleWithCoords2","setPropertiesOnSelected","updatePropertiesOnSelected","setAttributesOnSelected","selectedLines","selectedHoles","selectedItems","date","currHistory","selectedElementsHistory","previousPosition","pageIndex","page","take","console","log","PROJECT_ACTIONS","VIEWER2D_ACTIONS","VIEWER3D_ACTIONS","ITEMS_ACTIONS","HOLE_ACTIONS","LINE_ACTIONS","AREA_ACTIONS","SCENE_ACTIONS","VERTEX_ACTIONS","initialState","+ Add Horizontal Giude","+ Add Vertical Giude","2D View","3D First Person","3D View","Altitude","Areas","Cancel","Chain selected Elements to Group","Circular","Configure layer","Configure project","Confirm","Copy","Delete group and all Elements","Delete layer","Delete","Elements on layer {0}","Elements","Get Screenshot","Group [{0}]","Group's Barycenter","Group's Elements","Groups","Guides","Holes","Horizontal","Items","Last Selected","Layer config","Layers","Length","Lines","Load project","Mouse X Coordinate","Mouse Y Coordinate","Name","New Empty Group","New Group from selected","New layer","New project","Open catalog","Pan","Paste","Project config","Properties: [{0}] {1}","Prototype","Reset","Rotation","Save project","Save","Scene Zoom Level","Search Element","Snap to Grid","Snap to Guide","Snap to Line","Snap to Point","Snap to Segment","texture","thickness","Toggle Group Visibility","Un-chain all Group's Elements and remove Group","Un-chain Element from Group","Undo (CTRL-Z)","Unselect","Vertical","Would you want to start a new Project?","Zoom in","Zoom out","PropertyReadOnly","PropertyHidden","PropertyCheckbox","checkboxStyle","checked","PropertyToggle","actionName","PropertyNumber","parseFloat","isNaN","PropertyEnum","Seq","rest","_button2","styleHover","STYLE_HOVER","sliderContainerStyle","_reactRange2","sliderStyle","textContainerStyle","_formTextInput2","BASE_STYLE","input","backgroundImage","WebkitAppearance","WebkitBorderRadius","backgroundPosition","backgroundRepeat","STYLE_INPUT","confirmStyle","focus","valid","showedValue","precision","onInvalid","placeholder","numericInputStyle","currValue","different","saveFn","savedValue","nativeEvent","onFocus","onBlur","onKeyDown","keyCode","which","KEYBOARD_BUTTON_CODE","ENTER","TAB","MdUpdate","oneOfType","MIN_SAFE_INTEGER","_ref$style","propsType","PropertyColor","categories","root","propertyTypes","registerMultiplePropertyType","hasElement","Error","categoryName","hasCategory","validateElement","elementArray","registerElement","Viewer","Editor","propertyTypeArray","registerPropertyType","_toConsumableArray","info","propertyName","propertyConfigs","childs","_this3","validateCategory","addToCategory","elementName","ToolbarScreenshotButton","_reactPlanner","ReactPlannerConstants","ReactPlannerComponents","imageBrowserDownload","imageUri","canvas","getElementsByTagName","toDataURL","_cameraAlt2","svgElements","maxWidthSVGElement","baseVal","serializer","XMLSerializer","img","Image","ctx","getContext","heightAtt","createAttribute","setAttributeNode","widthAtt","fillStyle","fillRect","crossOrigin","src","serializeToString","onload","drawImage","blue","MeshLambertMaterial","grey","black","objectMaxLOD","wardrobe","bottomSide","BoxGeometry","side1","side2","backside","topside","centralAxis","lowShelve","upShelve","upDoor_p1","upDoor_p2","lowDoor_p1","lowDoor_p2","fz","fy","lock_p1","CylinderGeometry","lock_p2","lock_p3","fx","foot","makeObjectMaxLOD","objectMinLOD","makeObjectMinLOD","tag","description","image","defaultValue","render2D","textRotation","newAltitude","wardrobeMaxLOD","clone","deltaZ","wardrobeMinLOD","lod","addLevel","updateMatrix","matrixAutoUpdate","bbox","BoxHelper","linewidth","renderOrder","depthTest","TextureLoader","load","umbrellaStand","roundedRectShape","Shape","moveTo","lineTo","holePath","Path","absellipse","SideGeometry","ExtrudeGeometry","steps","depth","bevelEnabled","bevelThickness","bevelSize","bevelSegments","Side1","Side2","Side3","Side4","geometryBox","downPlane","umbrellaStandMaxLOD","DEPTH","umbrellaStandMinLOD","_loadObj","cached3DTV","newWidth","newDepth","arrow_style","onLoadItem","newHeight","box","mtl","obj","loadObjWithMaterial","circleStyle","cx","cy","side","DoubleSide","cestino","cylinderGeometry1","p1","cylinderGeometry2","p2","HEIGHT","red","MeshPhongMaterial","quadro","threePhasePanel","quadraticCurveTo","extrudeSettings","BackSideGeometry","BackSide","PanelGeometry","PlaneGeometry","meshPanel","geometry0","mesh0","geometry1","mesh1","geometry00","mesh00","geometry11","mesh11","geometry1b","mesh1b","mesh1c","geometry1d","mesh1d","mesh1e","geometry1f","mesh1f","mesh1g","stopperGeometry1","stopper_p1","stopperGeometry2","SphereGeometry","stopper_p2","stopperGeometry3","stopper_p3","stopper2_p1","stopper2_p2","stopper2_p3","handleGeometry","handle_p1","handle2_p1","handle_p2","handle2_p2","geometry2","handle_p3","handle2_p3","cylinderGeometry3","pivot1","pivot2","pivot3","pivot4","cylinderGeometry4","pivot11","pivot22","pivot33","pivot44","pivot1b","pivot2b","pivot3b","pivot4b","cylinderGeometry5","pivot11b","pivot22b","pivot33b","pivot44b","objectMiddleLOD","backSideGeometry","backSide","Panel","makeObjectMiddleLOD","threePhasePanelMaxLOD","threePhasePanelMiddleLOD","threePhasePanelMinLOD","HELVETIKER","glyphs","ο","x_min","x_max","ha","S","¦","/","Τ","Π","ΐ","²","–","Κ","ƒ","ό","J","»","©","ώ","^","«","D","∙","ÿ","$","\\","µ","Ι","Ύ","’","Ν","-","Q","ς","M","Ψ","C","!","{","X","#","ι","Ά",")","ε","Δ","}","‰","—","=","N","ρ","2","¯","Z","Η","Α","B","…","?","H","ν","¶","β","Μ","Ό","Ή","•","¥","(","U","γ","α","F","­",":","Χ","*","†","°","Ξ"," ","Ϋ","0","”","@","Ί","Β","υ","]","χ","8","ί","Ζ","R","5","7","K",",","¨","Y","\"","‹","„","δ","έ","ω","´","±","|","ϋ","§","q","Ω","ύ","™","ή","Θ","®","~","Ε","³","[","L","σ","ζ","θ","Ο","Γ"," ","%","Έ","Ώ","_","Ϊ","+","½","Ρ","'","ª","΅","T","Φ","⁋","Σ","›","<","£","¬","λ","W",">","τ","ξ","&","Λ","I","G","ΰ","`","·","Υ","μ","h",".","φ",";","“","A","6","‘","ϊ","π","ά","O","3","9","¤","κ","4","‡","ψ","η","cssFontWeight","ascender","underlinePosition","cssFontStyle","yMin","xMin","yMax","xMax","resolution","original_font_information","postscript_name","version_string","vendor_url","full_font_name","font_family_name","copyright","trademark","designer","designer_url","unique_font_identifier","license_url","license_description","manufacturer_name","font_sub_family_name","descender","familyName","underlineThickness","_three","_helvetiker_regularTypeface","font","FontLoader","alignmentBaseline","TextGeometry","MeshBasicMaterial","WIDTH","materialTexture","green","cattedra","cattedraZ","p3","cattedraY","p4","boxMaterials","plane","cattedraX","backPlane","leftPlane","rightPlane","drawer","geometry","handle","drawer2","valueObject","chair","p5","p6","geometry50","roundedRectShape2","geometry22","back","aa","makeChair","deskAndChair","boundingBoxDeskAndChair","deltaZDeskAndChair","RADIUS","PlaneMaterial","material_legs","tableMaxLOD","objectMaxLod","table","geometry_legs","leg1","leg2","leg3","leg4","tableMinLOD","objectMinLod","cachedJSONSofa","ObjectLoader","dirname","toJSON","loader","oldElement","STYLE_TITLE","text_alt","textShadow","boxShadow","STYLE_CONTENT","STYLE_ARROW","opened","hover","headComponents","onMouseEnter","toggleHover","onMouseLeave","toggleOpen","FaAngleUp","FaAngleDown","detector","BaseGeometry1","base_p1","BaseGeometry2","base_p2","BaseGeometry3","base_p3","BaseGeometry4","base_p4","geometrySphereUp","led","TorusGeometry","torus","torus2","geometry3","torus3","detectorMaxLOD","valuePosition","detectorMinLOD","steel","yellow","rect_style","sinkMaxLOD","sink","rectShape","rectShape2","extrudeSettings2","mesh2","pipe_p1","pipe_p2","pipe_p3","cylinderGeometry66","tap_p1","tap_p2","cylinderGeometry6","tap_p3","curve","CatmullRomCurve3","geometry7","TubeGeometry","mesh3","cylinderGeometry7","blackMaterial","hole_p1","cylinderGeometry8","whiteMaterial","hole_p2","hole_p3","hole_p4","hole_p5","sinkMinLOD","banco","tMaterial","plane2","plane3","bancoDouble","MeshFaceMaterial","chair2","deskAndChairDouble","darkGrey","boxMaterials2","boxMaterials3","lcdTexture","filterWidth","filterDepth","filterHeight","gridThickness","patternColor","fillValue","rackMaxLOD","schneider","gridVerticalElemGeometry","gridHorizontalElemGeometry","gridVerticalElem","gridHorizontalElem","filterClone","panelSideElemGeometry","panelSideElemLeft","panelSideElemRight","panelSideBackElemGeometry","panelSideElemBack","boxElemGeometry","boxElem","panelSideFrontElemGeometry","panelSideElemFront_P1","panelSideElemFront_P2","panelSideElemFront_P3","planeGeometryFront","planeMaterialFront","overdraw","planeGeometryFront1","panelBase","lcd","panelSideMiddleElemGeometry","panelSideElemMiddle","panelSideElemFooter","rackMinLOD","textTransform","grey2","greenMaterial","routerWifi","cylinderGeometry","led2","led3","routerWifiMaxLOD","routerWifiMinLOD","makeBin","cestino_carta","coloredMaterial","plane1","Vector2","LatheGeometry","etichetta","planeGeometry2","planeMaterial2","bins","metalBin","yellowBin","brownBin","paperBin","glassBin","OldStyleRadiatorMaxLOD","OldStyleRadiator","holePath1","arc","holePath4","holePath7","holePath2","holePath5","holePath8","holePath3","holePath6","holePath9","tube","tube2","tube3","OldStyleRadiatorMinLOD","ModernRadiatorMaxLOD","ModernRadiator","mesh4","mesh5","mesh6","mesh7","mesh8","ModernRadiatorMinLOD","projectorMaxLOD","projector","g1","m1","geometry4","projectorMinLOD","frontTexture","naspo","geometryBody","geometryPlane","naspoMaxLOD","naspoMiddleLOD","naspoMinLOD","textureLoader","power","keyboard","monitorPC","cubeGeometryBase","edge_p0","cubeGeometryBase2","edge_p1","cubeGeometryBase3","edge_p3","cubeGeometryBase4","edge_p4","cubeGeometryBase5","powerGeometry","powerMaterial","powerButton","cubeGeometryBase8","keyboardMesh","monitorPC_MaxLOD","monitorPC_MinLOD","metalDetector","display1","display2","up","cubeGeometryBorderUp","up_border_down","up_border_top","cubeGeometrySide","cubeGeometrySide2","left2","right2","cubeGeometryBorder","left_border","right_border","cubeGeometryBorderLed","left_borderLed","right_borderLed","planeDisplay1","planeMaterial1","planeDisplay2","metalDetectorMaxLOD","metalDetectorMinLOD","lim","etichettaImage","roundedRectShape3","y3","x3","roundedRectShape4","y4","x4","geometry5","supportGeometry","support","roundedRectShape5","geometry6","supportGeometry2","support2","EREG_NUMBER","autoComplete","darkSteel","logo","steelTexture","darkSteelTexture","logoTexture","kitchen","gx","gz","front","oven","handle1","handle2","handle3","knob","knob_p2","fire","centralFire","longSideGrid","longSideGrid2","shortSideGrid","lsgc1","lsgc2","ssgc1","ssgc2","lsgi","cp","kitchenMaxLOD","kitchenMinLOD","registerCategory","sashWindow","venetianBlindWindow","windowCurtain","door","doorDouble","panicDoor","panicDoorDouble","slidingDoor","grabCircleStyle","hoverCircleStyle","ImageFul","handleMouseMove1","handleMouseMove2","hover1","hover2","imageLoadError","toggleHover1","toggleHover2","nodeName","nodeValue","_event$viewerEvent","dist","origin","minX","minY","naturalWidth","naturalHeight","onerror","removeEventListener","half_w","ruler","xlinkHref","dy","AppState","react-planner","PlannerModels","createStore","plannerState","reducer","PlannerPlugins","Keyboard","Autosave","ConsoleDebugger","ReactDOM","render","Provider","_reactContainerDimensions2","MyCatalog","getElementById","_element$properties$t","_imageful2","hubMaxLOD","hub","planeGeometry","planeMaterial","plane_texture","hubMinLOD","cubeMaterial","frontTexture1","rack","greyMaterial","blueMaterial","hanger","base_geom","base","base2_geom","base2","body_geom","g_umbrella_base","umbrella_base","g_umbrella","umbrella","g_hook_body","g_hook","hooks","hook_body","m_umbrella","hangerMaxLOD","hangerMinLOD","logoMaterial","fridge","door1","door2","middlePlane","handle1_p1","handle1_p2","handle1_p3","fridgeMaxLOD","fridgeMinLOD","mtlFile","objFile","imgPath","mtlLoader","MTLLoader","setTexturePath","preload","objLoader","OBJLoader","setMaterials","bodyGeometry","bodyGeometry2","lock","sphereUp","vent_p1","vent_p2","cylinder2","cylinder3","cylinder4","cylinder5","gageImage","material2","gage","cylinder6","cylinder7","labelImage","wrapS","RepeatWrapping","wrapT","repeat","shape2","material4","valve_p1","shape3","valve_p2","safetyValve_p1","safetyValve_p2","cylinderGeometry9","cylinder9","bodyGeometry21","body1","bodyGeometry22","lock2","geometrySphereUp1","sphereUp1","bodyGeometry0","body0","rx","ry","fireExtinguisher2","fireExtinguisher1","fireExtinguisher0","elettricalPannel2","electricalPanel","mat","planeGeometryBase","elettricalPannel1","wood","glassMaterial","makeMonitor","monitor","whiteTexture","edge1","edge2","edge3","edge4","screen","widthA","widthB","newWidthA","newWidthB","scrivaniaMaxLOD","desk","woodTexture","glass","atan","indexMonitor","lastPosition","lastPositionMonitor","incrPosition","geometry8","monitor2","scrivaniaMinLOD","brown","deskdouble","deskdoubleMaxLOD","deskdoubleMinLOD","deskMaxLOD","deskMinLOD","ReactPlannerSharedStyle","AREA_MESH_COLOR","unselected","MESH_SELECTED","LINE_MESH_COLOR","w2","d2","frameMaterial","columnMaxLOD","RADIUS_10","RADIUS_2_5","column","frame1","frame2","frame3","frame4","columnMinLOD","coatHook","sphere","sphere2","geometry_legs2","geometrySphere","sphereTop","cleaning_cart","rz","tire","bearing","nut","coverUp","coverDown","p1Geometry","p1_left","p2Geometry","p2_left","p1_right","p2_right","drawerSupportGeometry","drawer_p1","drawer_p2","baseTop","shelfGeometry","shelf_1","shelf_2","cz","drawerBorderGeometry","drawerBorder_1","drawerBorder_2","longSideGeometry","longSide_1","longSide_2","shortSideGeometry","shortSide_1","shortSide_2","bucket_1","bucket_2","bucket_3","bucket_4","bucket_5","wasteSupport_1","wasteSupport_2","wasteSupport_3","wasteSupportDown_1","wasteSupportDown_2","wasteSupportDown_3","wasteCover","sack","coverPivotGeometry","coverPivot_1","coverPivot_2","delta1","color1","sty","bucketTop_1","bucketTop_2","bucketTop_3","bucketTop_4","bucketTop_5","delta2","color2","bucketTop2_p1","bucketTop2_p2","bucketTop2_p3","bucketTop2_p4","bucketTop2_p5","delta","sdy","bucketTop3_p1","bucketTop3_p2","bucketTop3_p3","bucketTop3_p4","bucketTop3_p5","scy","broom","broom_handle","broom_p2","broom_p3","broom_p4","hook_p1","hook_p2","hook_p3","hook_p4","cleaning_cartMaxLOD","cleaning_cartMinLOD","chairDesk","roundedRectShapeTable","tableGeometry","baseGeometry","baseVerticalGeometry","unionGeometry","footGeometry","closureGeometry","basePiece1","basePiece2","basePiece3","baseVerticalPiece","unionPiece","foot1","foot2","foot3","foot4","closurePiece1","closurePiece2","barGeometry","leftBar","rightBar","baseCurvedGeometry","baseCurvePiece1","baseCurvePiece2","roundedRectShapeStairPiece1","extrudeSettingsStairPiece1","stairGeometryPiece1","stairPiece1","roundedRectShapeStairPiece2","stairGeometryPiece2","stairPiece2","metalGrey","makeBackrest","backrest","backrestGeometry1","backrestGeometry2","NodeGeometry","backrest1","backrest2","backrest3","backrest4","node1","node2","backrestPillow","pillow","CenterGeometry","ShortEdgeGeometry","LongEdgeGeometry","AngleGeometry","edgeShort1","edgeShort2","edgeLong1","edgeLong2","angle1c","angle2c","angle1l","angle2l","makeBackrestPillow","makeBackrestMinLOD","makeBackrestPillowMinLOD","makeWheel","ArmrestGeometry","SupportGeometry","PivotGeometry","SupportGeometryStart","WheelGeometry","InsideWheelGeometry","WheelCoverGeometry","armrest","SupportStart","Wheel","WheelCover","InsideWheel","Armrest1","Armrest2","makeWheelMinLOD","makeArmrest","GeometryP1","GeometryP2","GeometryP3","P1","P2","P3","makeArmrestMinLOD","makePillow","CenterPillow","makeEdge","EdgeGeometry","openEnded","makeBase","CylinderGeometry1","CylinderGeometry2","CylinderGeometry3","CylinderCoverGeometryCylinder2","CylinderGeometry4","Cylinder1","Cylinder2","CoverCylinder1","CoverCylinder2","Cylinder3","wheels","wheel","makeWheels","makeBaseMinLOD","makeWheelsMinLOD","baseChair","bodyChair","SupportPillowGeometry1","SupportPillowGeometry2","ShortHandleGeometry","LongHandleGeometry","HandleGeometry","ArmrestSupportGeometry","SupportPillow1","SupportPillow2","LongHandle","ShortHandle","Handle1","Handle2","ArmrestBase1","ArmrestBase2","Pillow","armrest1","armrest2","makeBody","backrestChair","makeBodyMinLOD","chairDeskMaxLOD","chairDeskMinLOD","LegGeometry","LegMaterial","leg5","leg6","WoodMaterial","backGeometry","chair1","chair0","canteen_cart","r1a","cr1","wheelCoverUp","wheelCoverDown","cr2","b1","cr3","b2","b3","side3","side4","a1","a2","plane4","Dz","plane5","plane6","plane7","plane8","d1","canteen_cartMaxLOD","canteen_cartMinLOD","centralPillar","canteen_table","planeTop","dx","dz","axis1","axis2","axis3","leg","legBase","baseNut1","baseNut2","fsx","fsz","chairBack","fbx","fbz","support1","nutBack1","nutBack2","fdx","fdz","seat","fbsx","fbsz","seatSupport1","seatSupport2","seatNut1","seatNut2","canteen_table_MaxLOD","canteen_table_MinLOD","video_camera","cylinderGeometry2b","geometrySphereUp2","led_1","led_2","cover","locknut1","locknut2","arm_p1","arm_p2","arm_p3","arm_p3b","arm_p4","arm_p5","joint","bezierCurveTo","mesh_1","mesh_2","cover_2","antenna_p1","cylinderGeometry10","antenna_p2","sphere_p1","antenna_p3","sphere_p2","antenna_p4","cylinderGeometry11","antenna_p5","video_cameraMaxLOD","video_cameraMinLOD","safeLoadMapList","mapList","Model","defaultMap","toMap","Grid","Record","DefaultGrids","step","colors","ElementsSet","sharedAttributes","DefaultLayers","layer-1","grids","meta","circular","CatalogElement","ready","options","initialProperties","catList","HistoryStructure","SNAP_MASK","errors","warnings","clipboardProperties","woodMaterial","bookTexture1","bookTexture2","bookTexture3","bookcase","sideGeometry","bottomGeometry","bottomPanel","topGeometry","topPanel","shelveGeometry","shelve","choiceTexture","floor","random","bookGeometry","bookMaterial","book1","book2","book3","book4","book5","bookcaseMaxLOD","bookcaseMinLOD","lavagna","bench","axi2","lx","beam","woodAxis","benchMaxLOD","benchMinLOD","PI_2","paintedtexture","brickTexture","setPath","mat2","balcony","mat3","cubeMaterial2","cubeMaterial3","cubeGeometryBase6","p7","makeObject","flip","none","yes","seats","seatsArray","armchairsMaxLOD","seatArray","setArmchairsPos","listObject","armchairsObject2","armchair","g_base_foot","m_base_foot1","g_base_foot2","m_base_foot2","extrusionSettings","shape_sed","g_sitting","sitting","shape_sc","g_back","g_asse_rotaz2","asse_rotaz2","armrest_1","armrest_2","makeArmchairMaxLOD","makeSeriesArmchair2","armchairsMinLOD","armchairsObject1","base_foot1","base_foot2","makeArmchairMinLOD","makeSeriesArmchair1","air_conditioner","gridHorizontalGeometry","gridHorizontal","gridVerticalGeometry","gridVertical","frontCoverGeometry","frontCover","radius3","flapSupportGeometry","flapLeft","flapRight","points2","flapGeometry","flap1","flap2","air_conditionerMaxLOD","air_conditionerMinLOD","cached3DWindow","holeWidth","holeStyle","initialWidth","initialHeight","initialThickness","STYLE_HOLE_BASE","STYLE_HOLE_SELECTED","createTenda","Tenda","geom","applyMatrix","Matrix4","makeTranslation","meshMaterial","createMesh","ParametricGeometry","geometryAsta","asta","asta2","sphere3","sphere4","venetian","tubo","width1","Models","Plugins","ReactPlannerActions","ReactPlannerReducers","ReactPlannerClasses","ElementsFactories","ReactPlannerUtils","flip_horizontal","flip_vertical","handleSide","holeStyle2","scaleX","scaleY","pX1","pX2","doorShape","doorHole","doorGeometry","doorBar","glassGeometry","HandleGeometry1","HandleGeometry2","makeDoor","turquoise","metalBlue","metalBlueGrey","flip_value","handleSide_value","makePanicDoor","leftDoor","lowBaseDoorGeometry","middleBaseDoorGeometry","highBaseDoorGeometry","BorderCoverDoorGeometry1","BorderCoverDoorGeometry2","MiddleDoorGeometry2","MiddleDoorGeometry1","HighDoorGeometry","LowDoorGeometry","glassCoverVertical","glassCoverHorizontal","lowCoverDoor","middleDoor1","middleDoor2","baseDoor","middleCoverDoor1","middleCoverDoor2","highCoverDoor","highDoor","borderCoverDoor1","borderCoverDoor2","glassVerticalCover1","glassVerticalCover2","glassHorizontalCover1","glassHorizontalCover2","makeDoorStructure","handleBase","Lock","LockPiece1","LockPiece2","LockPiece3","makeLockKey","base1","makeHandleBase","hilt","Geometry_p1","Geometry_p2","Geometry_p3","piece1","piece2","piece3","piece4","makeHilt","makeHandle","leftDoorPivot","makePivot","rightDoorPivot","safetyHandleLeft","makeSafetyHandle","safetyHandleRight","mechanism","BaseGeometry","PieceGeometry1","PieceGeometry2","makeLock","doorLock","DoorLock","doorLockGeometry1","doorLockGeometry2","doorLock1","doorLock2","makeDoorLock","HandleSupportGeometry","PushGeometry","CoverPushGeometry","handleSupport","PushButton","CoverPush1","CoverPush2","DoorPivot","DownPivotGeometry","UpPivotGeometry","downPivot1","upPivot1","downPivot2","upPivot2","arcPath","arcStyle","strokeDasharray","rotateAngle","tX","tY","pY1","pY2","doorLeft","doorRight","geometryLock1","geometryLock2","geometryLock3","lockPiece1","lockPiece2","lockPiece3","GeometryPiece1","GeometryPiece2","GeometryPiece3","doorLeftPivot","doorRightPivot","FirstBlockGeometry","SecondBlockGeometry","FirstBlock","SecondBlock","doorLockLeft","doorLockRight","block","DoorLockGeometry1","DoorLockGeometry2","DoorLock1","DoorLock2","handleSupportGeometry","PushButtonGeometry","PushButtonCoverGeometry","pushButton","pushButtonCover1","pushButtonCover2","arcPath2","THREE","object_pattern","material_library_pattern","material_use_pattern","manager","DefaultLoadingManager","onLoad","onProgress","onError","scope","FileLoader","objects","normals","uvs","materialLibraries","startObject","fromDeclaration","previousMaterial","currentMaterial","_finalize","smooth","startMaterial","libraries","previous","inherited","groupCount","mtllib","isArray","groupStart","groupEnd","cloned","end","lastMultiMaterial","mi","declared","finalize","parseVertexIndex","len","parseNormalIndex","parseUVIndex","addVertex","dst","addVertexPoint","addVertexLine","addNormal","addColor","addUV","addUVLine","addFace","ua","ub","uc","na","nb","nc","vLen","ia","ib","ic","uvLen","nLen","addPointGeometry","vi","addLineGeometry","uvi","replace","lineFirstChar","trimLeft","trim","charAt","vertexData","faceVertices","jl","vertexParts","v3","lineParts","substring","lineUVs","li","llen","parts","pointData","exec","toLowerCase","container","isLine","isPoints","hasVertexColors","buffergeometry","BufferGeometry","addAttribute","Float32BufferAttribute","computeVertexNormals","createdMaterials","miLen","sourceMaterial","LineBasicMaterial","PointsMaterial","materialPoints","sizeAttenuation","materialLine","copy","lights","flatShading","vertexColors","VertexColors","NoColors","LineSegments","Points","timeEnd","EventDispatcher","texturePath","setBaseUrl","warn","setCrossOrigin","setMaterialOptions","materialOptions","delimiter_pattern","materialsInfo","pos","ss","materialCreator","MaterialCreator","setManager","baseUrl","materialsArray","nameLookup","FrontSide","wrap","convert","converted","mn","covmat","prop","save","lprop","normalizeRGB","ignoreZeroRGBs","getIndex","materialName","getAsArray","createMaterial_","params","resolveURL","Color","fromArray","specular","texParams","getTextureParams","loadTexture","specularMap","shininess","bumpMap","matParams","bumpScale","join","mapping","Loader","Handlers","cached3DDoor","STYLE_ARC_BASE","STYLE_ARC_SELECTED","flip_orizzontal","If","geometry_p1","geometry_p2","geometry_p3","geometryBase1","geometryBase2","LockGeometry1","lockGeometry2","lockGeometry3","handleBase1","handleBase2","door_double","LongDoorGeometry","longDoor","ShortDoorGeometry","shortDoor","layerElementsVisible","textures","bricks","uri","lengthRepeatScale","heightRepeatScale","normal","normalScaleX","normalScaleY","painted","WallFactory","compareVertices","linePassingThroughTwoPoints","distancePointFromLine","fAbs","closestPointFromLine","denom","angularCoefficientsDiff","numA","numB","EPSILON","comparator","pa","pb","_sort","lineA","lineB","_sort2","lineSX","lineDX","uA","uB","distancePointFromLineSegment","maxDistance","closestPointFromLineSegment","mapRange","angleBetweenTwoPointsAndOrigin","angleBetweenTwoPoints","newDistance","rad","roundVertex","polygon","pointX","pointY","ax","lup","ay","bx","by","ii","threshold","res","incr","px","py","ox","oy","theta","thetaRad","diff_x","diff_y","len_sq","param","xx","yy","low1","high1","low2","high2","parquet","tile1","ceramic","strand_porcelain","grass","AreaFactory","createArea","textureName","shape","areaMaterial","holeCoords","_layer$getIn","holeShape","createShape","shapeGeometry","ShapeGeometry","assignUVs","applyTexture","updatedArea","noPerf","getObjectByName","needsUpdate","normalMap","normalScale","computeBoundingBox","_geometry$boundingBox","range","faceVertexUvs","faces","face","uvsNeedUpdate","shapeCoords","areaElement","_areaFactory3d","textureValues","ThreeBSP","_length_i","polygons","Polygon","Node","matrix","tree","Face3","vertexNormals","applyMatrix4","Face4","calculateProperties","other_tree","invert","clipTo","build","allPolygons","polygon_vertice_count","vertex_idx_a","vertex_idx_b","vertex_idx_c","verticeUvs","getInverse","polygon_count","vertice_dict","uv","toGeometry","setFromMatrixPosition","setFromRotationMatrix","subtract","cross","normalize","dot","vertice_count","multiplyScalar","side_value","classification","num_positive","num_negative","classifyVertex","coplanar_front","coplanar_back","classifySide","ti","tj","vj","interpolate","scalar","other","lerp","divider","splitPolygon","temp","clipPolygons","buildWall","inverted","app","halfThickness","_geometry","halfDistance","soulMaterial","soul","holeDistance","holeGeometry","holeMesh","wallBSP","holeBSP","wallWithHoleBSP","toMesh","frontMaterial","backMaterial","scaleFactor","texturedFaceDistance","frontFace","halfPI","backFace","updatedWall","newThickness","oldThickness","halfNewThickness","originalThickness","xTemp","zTemp","wallElement","_layer$vertices$get","_layer$vertices$get2","length_5","half_thickness","half_thickness_eps","epsilon","textDistance","STYLE_RECT_SELECTED","STYLE_LINE","STYLE_RECT","_wallFactory3d","textureA","textureB","line-segment","isNear","nearestPoint","priority","lineSnap","LineSnap","LineSegmentSnap","GridSnap","PointSnap","getStore","getState","do","delay","dispatchAction","groupCollapsed","BACKSPACE","DELETE","_projectActions","ESC","getModifierState","ALT","MODE_SNAPPING","tempSnapConfiguartion","CTRL","setAlterateState","TIMEOUT_DELAY","localStorage","getItem","subscribe","timeout","clearTimeout","setItem","hmr","TabsStyle","footerBarStyle","boxSizing","leftTextStyle","borderRight","rightTextStyle","coordStyle","appMessageStyle","globalState","_globalState$get$toJS","errorsJsx","err","toLocaleString","errorLableStyle","errorIconStyle","warningsJsx","warningLableStyle","warningIconStyle","updateSnapMask","_footerToggleButton2","_footerContentButton2","MdAddCircle","toString","MdWarning","tablegroupStyle","PanelGroups","newEmptyHover","newSelectedHover","selectClick","groupsActions","shouldHighlight","rowStyle","dimension","lSum","elProt","FaChain","FaChainBroken","PanelMultiElementsEditor","selectedGroupID","selecteds","selectedJs","SAVE_PROJECT","SELECT_TOOL_UPLOAD_IMAGE","BEGIN_UPLOADING_IMAGE","END_UPLOADING_IMAGE","BEGIN_FITTING_IMAGE","END_FITTING_IMAGE","UNIT_MILLIMETER","UNIT_METER","UNIT_INCH","UNIT_FOOT","UNIT_MILE","Snap","alignItems","justifyContent","STYLE_TOOLTIP","STYLE_TOOLTIP_PIN","500","amber","blue_grey","cyan","deep_orange","deep_purple","indigo","light_blue","light_green","lime","pink","purple","teal","text_main","DEFAULT_LOCALE","locale","translations","registerTranslation","EN","IT","RU","languages","getBrowserLanguages","lang","setLocale","phrase","_len","_key","_len2","_key2","translation","translatedPhrase","match","navigator","language","userLanguage","textInputStyle","whiteSpace","verticalAlign","fonWeight","borderWidth","borderType","BASE_STYLE_SIZE","small","large","customStyle","customStyleHover","styleMerged","oneOf","disposeScene","scene3D","disposeMesh","disposeMaterial","Material","dispose","disposeTexture","disposeGeometry","disposeMultimaterial","saveProject","num","multiplyMatrices","m2","inputStyle","PanelGroupEditor","nextContext","HoleAttributesEditor","attributeFormData","_propertyString2","mapped","_propertyLenghtMeasure2","Infinity","LineAttributesEditor","ItemAttributesEditor","renderedX","renderedY","renderedR","_formNumberInput2","AttributesEditor","_itemAttributesEditor2","_lineAttributesEditor2","_holeAttributesEditor2","attrPorpSeparatorStyle","headActionStyle","iconHeadStyle","ElementEditor","attributesFormData","initAttrData","propertiesFormData","initPropData","updateAttribute","v_a","v_b","startAt","_lengthA","endAt","_lengthB","catalogElement","currentValue","attributeName","v_0","v_1","_GeometryUtils$orderV","_GeometryUtils$orderV2","v_b_new","attr","_orderedVertices","_orderedVertices$","_orderedVertices$2","widthLength","halfWidthLength","lengthValue","offsetUnit","offsetAttribute","_orderedVertices3","_orderedVertices3$","_orderedVertices3$2","appState","_attributesEditor2","MdContentCopy","MdContentPaste","getPropertyType","updateProperty","PanelElementEditor","_elementEditor2","componentRenderer","overflowX","multiselected","selectedGroup","_panelGuides2","_panelLayers2","_panelLayerElements2","_panelGroups2","_panelElementEditor2","_panelGroupEditor2","onKeyUp","ProjectConfigurator","dataWidth","dataHeight","alert","onSubmit","htmlFor","STYLE_BOX","WebkitTransition","STYLE_BOX_HOVER","STYLE_BACK","STYLE_BACK_HOVER","CONTAINER_DIV","CatalogTurnBackPageItem","changePage","_navigateBefore2","alignSelf","justifySelf","STYLE_TITLE_HOVERED","STYLE_NEXT_HOVER","CatalogPageItem","_navigateNext2","breadcrumbStyle","breadcrumbTextStyle","breadcrumbLastTextStyle","breadcrumbTabStyle","CatalogBreadcrumb","names","labelNames","lastElement","_keyboardArrowRight2","STYLE_TITLE_HOVER","STYLE_IMAGE_CONTAINER","STYLE_IMAGE","backgroundSize","STYLE_IMAGE_HOVER","STYLE_PLUS_HOVER","STYLE_DESCRIPTION","_STYLE_DESCRIPTION","STYLE_TAGS","listStyle","STYLE_TAG","CatalogItem","_plusCircle2","containerStyle","itemsStyle","gridGap","searchContainer","searchText","searchInput","historyContainer","historyElementStyle","CatalogList","currentCategory","getCategory","elementsToDisplay","toRet","curr","flattenCategories","filtered","categoriesToDisplay","breadcrumbComponent","breadcrumbsNames","pathName","_catalogBreadcrumb2","pathSize","turnBackButton","_catalogTurnBackPageItem2","selectedHistory","selectedHistoryElements","_contentContainer2","_contentTitle2","cat","_catalogPageItem2","elem","_catalogItem2","firstPersonOnKeyDown","moveForward","moveLeft","moveBackward","moveRight","canJump","velocity","firstPersonOnKeyUp","camera","pitchObject","yawObject","enabled","movementX","mozMovementX","webkitMovementX","movementY","mozMovementY","webkitMovementY","getObject","getDirection","Euler","applyEuler","initPointerLock","rendererElement","pointerlockchange","controls","requestPointerLockEvent","requestPointerLock","mozRequestPointerLock","webkitRequestPointerLock","PointerLockControls","pointerlockChangeEvent","_sceneCreator","_pointerLockNavigation","_firstPersonControls","Viewer3DFirstPerson","stopRendering","renderer","__threeRenderer","WebGLRenderer","preserveDrawingBuffer","prevTime","performance","canvasWrapper","findDOMNode","refs","sceneOnTop","setClearColor","setSize","aspectRatio","PerspectiveCamera","light","AmbientLight","pointLight","PointLight","_initPointerLock","domElement","pointerlockChangeListener","yInitialPosition","keyDownEvent","moveResult","keyUpEvent","pointer","pointerMaterial","depthWrite","pointerGeometry1","linePointer1","pointerGeometry2","linePointer2","renderDepth","pointerGeometry3","linePointer3","toIntersect","mouseVector","raycaster","Raycaster","firstPersonMouseDown","setFromCamera","intersects","intersectObjects","autoClear","translateX","translateY","translateZ","controlObjectPosition","elemID","clear","clearDepth","requestAnimationFrame","renderLists","aspect","updateProjectionMatrix","changedValues","ref","OrbitControls","minDistance","minZoom","maxZoom","minPolarAngle","maxPolarAngle","minAzimuthAngle","maxAzimuthAngle","enableDamping","dampingFactor","enableZoom","zoomSpeed","enableRotate","rotateSpeed","enablePan","keyPanSpeed","autoRotate","autoRotateSpeed","enableKeys","keys","LEFT","UP","RIGHT","BOTTOM","mouseButtons","ORBIT","MOUSE","ZOOM","MIDDLE","PAN","target0","position0","zoom0","getPolarAngle","spherical","phi","getAzimuthalAngle","reset","changeEvent","STATE","NONE","quat","Quaternion","setFromUnitVectors","quatInverse","inverse","lastQuaternion","applyQuaternion","setFromVector3","rotateLeft","sphericalDelta","makeSafe","panOffset","setFromSpherical","lookAt","zoomChanged","distanceToSquared","EPS","quaternion","onContextMenu","onMouseWheel","onTouchStart","onTouchEnd","onTouchMove","startEvent","endEvent","ROTATE","DOLLY","TOUCH_ROTATE","TOUCH_DOLLY","TOUCH_PAN","Spherical","rotateStart","rotateEnd","rotateDelta","panStart","panEnd","panDelta","dollyStart","dollyEnd","dollyDelta","getZoomScale","rotateUp","panLeft","objectMatrix","setFromMatrixColumn","panUp","pan","targetDistance","tan","fov","clientHeight","OrthographicCamera","clientWidth","dollyIn","dollyScale","dollyOut","button","clientX","clientY","handleMouseDownRotate","handleMouseDownDolly","handleMouseDownPan","subVectors","handleMouseMoveRotate","handleMouseMoveDolly","handleMouseMovePan","handleMouseWheel","handleKeyDown","touches","pageX","pageY","handleTouchStartRotate","handleTouchStartDolly","handleTouchStartPan","handleTouchMoveRotate","handleTouchMoveDolly","handleTouchMovePan","passive","defineProperties","noZoom","noRotate","noPan","noKeys","staticMoving","dynamicDampingFactor","streak","counter","wrapper","words","_sharedStyle","gridMesh","_gridHorizontalStreak2","_gridVerticalStreak2","Scene3DViewer","lastMousePosition","renderingID","cameraPositionX","cameraPositionY","cameraPositionZ","spotLight1","SpotLight","mouseDownEvent","offsetX","offsetY","mouseUpEvent","orbitController","spotLightTarget","updateMatrixWorld","orbitControls","cancelAnimationFrame","elementH","textOrientation","writingMode","letterSpacing","insideElementsStyle","rulerStyle","markerStyle","rulerContainer","grdAutoRows","paddingLeft","positiveRulerContainer","negativeRulerContainer","positiveDomElements","elementW","grdAutoColumns","sharedStyles","STYLE_CIRCLE","data-element-root","data-prototype","data-id","data-selected","data-layer","data-part","GridVerticalStreak","rendered","GridHorizontalStreak","renderedGrids","gridID","toList","renderedAreaSize","polygonWithHoles","polygonHole","_polylabel2","areaSize","_areaPolygon2","holePolygon","_layer$vertices$get3","String","fromCharCode","STYLE_CIRCLE2","renderedItem","renderedHoles","renderedHole","renderedLine","renderedRuler","_ruler2","_viewer3d2","_viewer3dFirstPerson2","_catalogList2","_viewer2d2","_projectConfigurator2","CustomContent"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,OAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,KAKApB,GACAqB,EAAA,GAGAZ,KAGA,SAAAS,EAAA1B,GAGA,GAAA4B,EAAA5B,GACA,OAAA4B,EAAA5B,GAAA8B,QAGA,IAAAC,EAAAH,EAAA5B,IACAK,EAAAL,EACAgC,GAAA,EACAF,YA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vBK,0BAAuB,uBACvBE,kBAAe,eACfE,sCAAmC,mCACnCE,qBAAkB,kBAClBE,kBAAe,eAGfsB,iBAAc,cACdrB,iBAAc,cACdC,iBAAc,cACd4B,iBAAc,cACdE,8BAA2B,2BAC3BC,wBAAqB,qBACrBC,yBAAsB,sBACtBC,sBAAmB,mBACnBX,8BAA2B,2BAC3BC,yBAAsB,sBACtBC,sBAAmB,mBACnBU,yBAAsB,sBACtBC,0BAAuB,uBACvBC,uBAAoB,oBAMpBX,IALAymF,2BAA2B,2BAC3BC,wBAAwB,wBACxBC,sBAAsB,sBACtBC,sBAAsB,sBACtBC,oBAAoB,oBACpB7mF,sBAAsB,uBACtBC,0BAAuB,uBACvBC,uBAAoB,oBAGpBd,2BAAwB,wBACxBC,4BAAyB,yBACzBC,yBAAsB,sBAGtBG,0BAAuB,uBACvBD,eAAY,YACZD,kBAAe,eACfG,kBAAe,eAwHfrqB,IArHAwrC,mBACX7c,cACAC,eACAuiF,eACAriF,eACAO,mBACAC,eACAC,iBACAC,uBACAG,uBACAG,uBACAG,SACAC,OACAC,WACAC,yBACAE,4BACAC,eACAC,sBACAE,oBACAE,cACA7B,sBACAI,0BACA4B,cACAG,gBACAG,kBACAE,mBACAE,gDACAG,iBACAE,WACAC,uBACAE,qBACAC,qBACAG,0BACAE,wBACAC,yBAGWiZ,oBACX7f,sBACAD,uBACAD,kBACAD,oBAGWigB,oBACXngB,sBACAC,+BAGWmgB,iBACXziB,eACAG,2BACAC,sBACAC,mBACAC,sBACAC,uBACAC,oBACAC,sBACAC,uBACAC,qBAGW+hB,gBACXthB,eACAE,4BACAC,uBACAC,oBACAC,uBACAC,wBACAC,sBAGWghB,gBACX/gB,eACAE,4BACAC,sBACAC,uBACAC,oBACAC,uBACAC,wBACAC,sBAGWwgB,gBACX7iB,gBAGW9B,iBACXC,YACAE,0BACAG,gBACAE,kBACAI,gBACAE,qBACAI,wBACAF,wBACAK,wBACAE,gBACAE,oCACAE,mBACAE,iBAGW+iB,i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,cAAC6zH,EAAA9zH,SAAoBtE,MAAOA,EAAOc,OAAQA,EAAQqC,MAAOA,IAEnE,QACE,GAAI+wB,EAAe/3B,eAAemC,GAAO,CACvC,IAAI+5H,EAAgBnkG,EAAe51B,GACnC,OAAO+F,EAAAC,QAAAC,cAAC8zH,GAAcr4H,MAAOA,EAAOc,OAAQA,EAAQqC,MAAOA,IAE3D,MAAM,IAAIy3C,MAAJ,QAAkBt8C,EAAlB,mCAKduoB,EAAQ5hB,WACN9B,MAAO+B,UAAUrG,OAAOsG,WACxBnF,MAAOkF,UAAUwV,OAAOvV,WACxBrE,OAAQoE,UAAUwV,OAAOvV,gCCtD3B7H,EAAAD,QAAAJ,EAAA8B,EAAA,2DCAAzB,EAAAD,QAAAJ,EAAA8B,EAAA,yDCAAzB,EAAAD,QAAAJ,EAAA8B,EAAA,gECAAzB,EAAAD,QAAAJ,EAAA8B,EAAA,oHCCau1B,UAAU","file":"6b94cd3f66e35597e6af.app.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([2537,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import * as GeometryUtils from './geometry';\nimport * as GraphInnerCycles from './graph-inner-cycles';\nimport * as MathUtils from './math';\nimport * as SnapUtils from './snap';\nimport * as SnapSceneUtils from './snap-scene';\nimport * as history from './history';\nimport * as ObjectUtils from './objects-utils';\nimport IDBroker from './id-broker';\nimport NameGenerator from './name-generator';\n\nexport {\n GeometryUtils,\n GraphInnerCycles,\n MathUtils,\n SnapUtils,\n SnapSceneUtils,\n history,\n IDBroker,\n NameGenerator,\n ObjectUtils\n};\n\nexport default {\n GeometryUtils,\n GraphInnerCycles,\n MathUtils,\n SnapUtils,\n SnapSceneUtils,\n history,\n IDBroker,\n NameGenerator,\n ObjectUtils\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\nimport IconClose from 'react-icons/lib/fa/close';\n\nconst labelContainerStyle = {\n width: 'auto',\n display: 'inline-block',\n margin:0,\n padding:'0px 5px 0px 0px'\n};\n\nconst toggleButtonStyle = {\n color: '#CCC',\n textAlign: 'center',\n cursor: 'pointer',\n userSelect: 'none'\n};\n\nconst toggleButtonStyleOver = {\n ...toggleButtonStyle,\n color: SharedStyle.COLORS.white\n};\n\nconst contentContainerStyleActive = {\n position:'fixed',\n width:'calc( 100% - 2px )',\n height:'40%',\n left:0,\n bottom:20,\n backgroundColor:SharedStyle.PRIMARY_COLOR.alt,\n borderTop: SharedStyle.PRIMARY_COLOR.border,\n zIndex:0,\n padding:0,\n margin:0,\n transition:'all 300ms ease'\n};\n\nconst contentContainerStyleInactive = {\n ...contentContainerStyleActive,\n visibility:'hidden',\n height:0\n};\n\nconst contentHeaderStyle = {\n position:'relative',\n width:'100%',\n height:'2em',\n top:0,\n left:0,\n borderBottom:SharedStyle.PRIMARY_COLOR.border\n};\n\nconst titleStyle = {\n position:'relative',\n height:'2em',\n lineHeight:'2em',\n marginLeft:'1em'\n};\n\nconst contentAreaStyle = {\n position:'relative',\n width:'100%',\n height:'calc( 100% - 2em )',\n padding:'1em',\n overflowY:'auto'\n};\n\nconst iconCloseStyleOut = {\n position:'absolute',\n width:'2em',\n height:'2em',\n right:0,\n top:0,\n padding:'0.5em',\n borderLeft:SharedStyle.PRIMARY_COLOR.border,\n cursor:'pointer'\n};\n\nconst iconCloseStyleOver = {\n ...iconCloseStyleOut,\n color:SharedStyle.COLORS.white,\n backgroundColor:SharedStyle.SECONDARY_COLOR.alt\n};\n\nconst iconStyle = {\n width:'15px',\n height:'15px',\n marginTop:'-2px',\n marginRight:'2px'\n};\n\nconst textStyle = {\n position: 'relative'\n}\n\nexport default class FooterContentButton extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n over: false,\n closeOver: false,\n active: this.props.toggleState || false\n };\n }\n\n toggleOver(e) { this.setState({ over: true }); }\n toggleOut(e) { this.setState({ over: false }); }\n\n toggle(e) {\n let isActive = !this.state.active;\n this.setState({ active: isActive });\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n if( this.state.over != nextState.over ) return true;\n if( this.state.closeOver != nextState.closeOver ) return true;\n if( this.state.active != nextState.active ) return true;\n\n if( this.props.content.length != nextProps.content.length ) return true;\n if( this.props.toggleState != nextProps.toggleState ) return true;\n\n return false;\n }\n\n componentWillReceiveProps(nextProps) {\n if( nextProps.toggleState != this.props.toggleState )\n this.state.active = nextProps.toggleState;\n }\n\n render() {\n\n let s = this.state;\n let p = this.props;\n\n let LabelIcon = p.icon || null;\n let labelIconStyle = p.iconStyle || {};\n let labelTextStyle = p.textStyle || {};\n let inputTitleStyle = p.titleStyle || {};\n\n return (\n
\n this.toggle(e)}\n title={p.title}\n >\n \n {p.text}\n
\n
\n
\n {p.title}\n this.setState({closeOver:true})}\n onMouseOut={e => this.setState({closeOver:false})}\n onClick={e => this.toggle(e)}\n />\n
\n
\n {p.content}\n
\n
\n \n );\n }\n}\n\nFooterContentButton.propTypes = {\n state: PropTypes.object.isRequired,\n text: PropTypes.string.isRequired,\n textStyle: PropTypes.object,\n icon: PropTypes.func,\n iconStyle: PropTypes.object,\n content: PropTypes.array.isRequired,\n toggleState: PropTypes.bool,\n title: PropTypes.string,\n titleStyle: PropTypes.object\n};\n\nFooterContentButton.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n viewer2DActions: PropTypes.object.isRequired,\n viewer3DActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nconst toggleButtonStyle = {\n width: '5.5em',\n color: '#CCC',\n textAlign: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n border: '1px solid transparent',\n margin: '-1px 5px 0 5px',\n borderRadius: '2px',\n display: 'inline-block'\n};\n\nconst toggleButtonStyleOver = {\n ...toggleButtonStyle,\n backgroundColor: '#1c82c6',\n border: '1px solid #FFF',\n color: SharedStyle.COLORS.white\n};\n\nexport default class FooterToggleButton extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n over: false,\n active: this.props.toggleState || false\n };\n }\n\n toggleOver(e) { this.setState({ over: true }); }\n toggleOut(e) { this.setState({ over: false }); }\n\n toggle(e) {\n let isActive = !this.state.active;\n this.setState({ active: isActive });\n\n if (isActive)\n {\n this.props.toggleOn();\n }\n else\n {\n this.props.toggleOff();\n }\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n if( this.state.over != nextState.over ) return true;\n if( this.state.active != nextState.active ) return true;\n if( this.props.toggleState != nextProps.toggleState ) return true;\n\n return false;\n }\n\n componentWillReceiveProps(nextProps) {\n if( nextProps.toggleState != this.props.toggleState )\n this.state.active = nextProps.toggleState;\n }\n\n render() {\n\n return (\n this.toggleOver(e)}\n onMouseOut={e => this.toggleOut(e)}\n onClick={e => this.toggle(e)}\n title={this.props.title}\n >\n {this.props.text}\n \n );\n }\n}\n\nFooterToggleButton.propTypes = {\n state: PropTypes.object.isRequired,\n toggleOn: PropTypes.func.isRequired,\n toggleOff: PropTypes.func.isRequired,\n text: PropTypes.string.isRequired,\n toggleState: PropTypes.bool,\n title: PropTypes.string\n};\n\nFooterToggleButton.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n viewer2DActions: PropTypes.object.isRequired,\n viewer3DActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from './panel';\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../constants';\nimport * as SharedStyle from '../../shared-style';\nimport MdSearch from 'react-icons/lib/md/search';\n\nconst VISIBILITY_MODE = {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n};\n\nconst contentArea = {\n height: 'auto',\n maxHeight: '15em',\n overflowY: 'auto',\n padding: '0.25em 1.15em',\n cursor: 'pointer',\n marginBottom: '1em',\n userSelect: 'none'\n};\n\nconst elementStyle = {\n width: 'auto',\n height: '2.5em',\n margin: '0.25em 0.25em 0 0',\n padding: '0.5em',\n textAlign: 'center',\n display: 'inline-block',\n border: '1px solid #CCC',\n borderRadius: '0.2em'\n};\n\nconst elementSelectedStyle = {\n ...elementStyle,\n color: SharedStyle.SECONDARY_COLOR.main,\n borderColor: SharedStyle.SECONDARY_COLOR.main,\n};\n\nconst categoryDividerStyle = {\n paddingBottom: '0.5em',\n borderBottom: '1px solid #888',\n};\n\nconst tableSearchStyle = {width: '100%', marginTop: '0.8em'};\nconst searchIconStyle = {fontSize: '1.5em'};\nconst searchInputStyle = {fontSize: '1em', width: '100%', height: '1em', padding: '1em 0.5em'};\n\nexport default class PanelLayerElement extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n let layer = props.layers.get(props.selectedLayer);\n let elements = {\n lines: layer.lines,\n holes: layer.holes,\n items: layer.items,\n };\n\n this.state = {\n elements,\n matchString: '',\n matchedElements: elements\n };\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n if (this.state.matchString !== nextState.matchString) return true;\n\n let oldElements = this.state.elements;\n let newElements = nextState.elements;\n\n if(\n oldElements.lines.hashCode() !== newElements.lines.hashCode() ||\n oldElements.holes.hashCode() !== newElements.holes.hashCode() ||\n oldElements.items.hashCode() !== newElements.items.hashCode()\n ) return true;\n\n return false;\n }\n\n componentWillReceiveProps(nextProps) {\n let layer = nextProps.layers.get(nextProps.selectedLayer);\n\n if ( this.props.layers.hashCode() === nextProps.layers.hashCode() ) return;\n\n let elements = {\n lines: layer.lines,\n holes: layer.holes,\n items: layer.items,\n };\n\n if (this.state.matchString !== '') {\n let regexp = new RegExp(this.state.matchString, 'i');\n let filterCb = el => regexp.test(el.get('name'));\n\n this.setState({\n matchedElements: {\n elements,\n lines: elements.lines.filter(filterCb),\n holes: elements.holes.filter(filterCb),\n items: elements.items.filter(filterCb)\n }\n });\n } else {\n this.setState({elements, matchedElements: elements});\n }\n }\n\n matcharray(text) {\n if (text === '') {\n this.setState({\n matchString: '',\n matchedElements: this.state.elements\n });\n return;\n }\n\n let regexp = new RegExp(text, 'i');\n let filterCb = el => regexp.test(el.get('name'));\n\n this.setState({\n matchString: text,\n matchedElements: {\n lines: this.state.elements.lines.filter(filterCb),\n holes: this.state.elements.holes.filter(filterCb),\n items: this.state.elements.items.filter(filterCb)\n }\n });\n }\n\n render() {\n if (!VISIBILITY_MODE[this.props.mode]) return null;\n\n let layer = this.props.layers.get(this.props.selectedLayer);\n\n return (\n \n
e.stopPropagation()}>\n\n \n \n \n \n \n \n \n
{\n this.matcharray(e.target.value);\n }}/>
\n\n {\n this.state.matchedElements.lines.count() ?\n
\n

{this.context.translator.t('Lines')}

\n {\n this.state.matchedElements.lines.entrySeq().map(([lineID, line]) => {\n return (\n this.context.linesActions.selectLine(layer.id, line.id)}\n style={line.selected ? elementSelectedStyle : elementStyle}\n >\n {line.name}\n
\n )\n })\n }\n
\n : null\n }\n\n {\n this.state.matchedElements.holes.count() ?\n
\n

{this.context.translator.t('Holes')}

\n {\n this.state.matchedElements.holes.entrySeq().map(([holeID, hole]) => {\n return (\n this.context.holesActions.selectHole(layer.id, hole.id)}\n style={hole.selected ? elementSelectedStyle : elementStyle}\n >\n {hole.name}\n
\n )\n })\n }\n \n : null\n }\n\n {\n this.state.matchedElements.items.count() ?\n
\n

{this.context.translator.t('Items')}

\n {\n this.state.matchedElements.items.entrySeq().map(([itemID, item]) => {\n return (\n this.context.itemsActions.selectItem(layer.id, item.id)}\n style={item.selected ? elementSelectedStyle : elementStyle}\n >\n {item.name}\n
\n )\n })\n }\n \n : null\n }\n\n \n
\n );\n }\n\n}\n\nPanelLayerElement.propTypes = {\n mode: PropTypes.string.isRequired,\n layers: PropTypes.object.isRequired,\n};\n\nPanelLayerElement.contextTypes = {\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from './panel';\nimport * as SharedStyle from '../../shared-style';\nimport { Tab, Tabs, TabList, TabPanel } from 'react-tabs';\nimport { FaPencil, FaTrash, FaClose } from 'react-icons/lib/fa';\nimport { FormNumberInput } from '../../components/style/export';\n\nconst tabStyle = { margin: '1em' };\n\nconst iconStyle = {\n fontSize: '14px',\n margin: '2px',\n cursor: 'pointer'\n};\n\nconst addGuideStyle = {\n cursor: 'pointer',\n height: '2em'\n};\n\nconst tableTabStyle = {\n width: '100%',\n textAlign: 'center'\n};\n\nexport default class PanelGuides extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n addHGVisible: true,\n addVGVisible: true,\n addCGVisible: true,\n };\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n return (\n this.state.addHGVisible !== nextState.addHGVisible ||\n this.state.addVGVisible !== nextState.addVGVisible ||\n this.state.addCGVisible !== nextState.addCGVisible ||\n this.props.state.getIn(['scene', 'guides']).hashCode() !== nextProps.state.getIn(['scene', 'guides']).hashCode()\n );\n }\n\n render() {\n let { state } = this.props;\n let { projectActions, translator } = this.context;\n let { guides } = state.scene;\n\n return (\n \n \n \n {translator.t('Horizontal')}\n {translator.t('Vertical')}\n {/*{translator.t('Circular')}*/}\n \n\n \n \n \n {\n guides.get('horizontal').entrySeq().map(([hgKey, hgVal], ind) => {\n return (\n \n \n \n \n \n );\n })\n }\n {\n this.state.addHGVisible ?\n \n \n :\n \n \n \n \n }\n \n
{ind + 1}{hgVal}\n {/**/}\n projectActions.removeHorizontalGuide(hgKey)} />\n
this.setState({ 'addHGVisible': false })}>{translator.t('+ Add Horizontal Giude')}
\n {\n projectActions.addHorizontalGuide(e.target.value);\n return this.setState({ 'addHGVisible': true });\n }}\n min={0}\n max={this.props.state.getIn(['scene', 'height'])} />\n this.setState({ 'addHGVisible': true })} />
\n
\n \n \n \n {\n guides.get('vertical').entrySeq().map(([hgKey, hgVal], ind) => {\n return (\n \n \n \n \n \n );\n })\n }\n {\n this.state.addVGVisible ?\n \n \n :\n \n \n \n \n }\n \n
{ind + 1}{hgVal}\n {/**/}\n projectActions.removeVerticalGuide(hgKey)} />\n
this.setState({ 'addVGVisible': false })}>{translator.t('+ Add Vertical Giude')}
\n {\n projectActions.addVerticalGuide(e.target.value);\n return this.setState({ 'addVGVisible': true });\n }}\n min={0}\n max={this.props.state.getIn(['scene', 'height'])} />\n this.setState({ 'addVGVisible': true })} />
\n
\n {/*\n TODO Circular Giudes\n */}\n
\n
\n );\n }\n\n\n}\n\nPanelGuides.propTypes = {\n state: PropTypes.object.isRequired\n};\n\nPanelGuides.contextTypes = {\n translator: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport { Map } from 'immutable';\nimport Panel from './panel';\nimport {TiPlus, TiDelete} from 'react-icons/lib/ti';\nimport {FaPencil, FaTrash, FaEye} from 'react-icons/lib/fa';\nimport {\n FormTextInput,\n FormNumberInput,\n FormSubmitButton,\n FormSlider,\n CancelButton\n} from '../style/export';\n\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../constants';\nimport * as SharedStyle from '../../shared-style';\n\nconst VISIBILITY_MODE = {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN,\n MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM,\n MODE_DRAGGING_LINE, MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE,\n MODE_ROTATING_ITEM, MODE_UPLOADING_IMAGE, MODE_FITTING_IMAGE\n};\n\nconst styleEditButton = {\n cursor: 'pointer',\n marginLeft: '5px',\n border: '0px',\n background: 'none',\n color: SharedStyle.COLORS.white,\n fontSize: '14px',\n outline: '0px'\n};\n\nconst tableLayerStyle = {\n width: '100%',\n cursor: 'pointer',\n overflowY: 'auto',\n maxHeight: '20em',\n display: 'block',\n padding: '0 1em',\n marginLeft: '1px'\n};\n\nconst iconColStyle = {width: '2em'};\nconst styleHoverColor = {color: SharedStyle.SECONDARY_COLOR.main};\nconst styleEditButtonHover = {...styleEditButton, ...styleHoverColor};\nconst styleAddLabel = {fontSize: '10px', marginLeft: '5px'};\nconst styleEyeVisible = {fontSize: '1.25em'};\nconst styleEyeHidden = {...styleEyeVisible, color: '#a5a1a1'};\nconst firstTdStyle = {width: '6em'};\nconst newLayerLableStyle = {margin: '0.5em 0', fontSize: '1.3em', cursor: 'pointer', textAlign: 'center'};\nconst newLayerLableHoverStyle = {...newLayerLableStyle, ...styleHoverColor};\nconst layerInputTableStyle = {width: '100%', borderSpacing: '2px 0', padding: '5px 15px'};\nconst inputTableButtonStyle = {float: 'right', marginTop: '0.5em', borderSpacing: '0'};\n\nexport default class PanelLayers extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n headHovered: false,\n layerAddUIVisible: false,\n editingLayer: new Map()\n };\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n if(\n this.props.state.scene.layers.size !== nextProps.state.scene.layers.size ||\n nextState.layerAddUIVisible != this.state.layerAddUIVisible ||\n this.state.editingLayer.hashCode() !== nextState.editingLayer.hashCode() ||\n this.props.state.sceneHistory.hashCode() !== nextProps.state.sceneHistory.hashCode()\n ) return true;\n\n return false;\n }\n\n addLayer(e) {\n e.stopPropagation();\n if (!this.state.layerAddUIVisible) {\n this.context.sceneActions.addLayer('', 0);\n this.setState({layerAddUIVisible: false});\n }\n else this.setState({layerAddUIVisible: !this.state.layerAddUIVisible});\n }\n\n resetLayerMod(e) {\n e.stopPropagation();\n this.setState({layerAddUIVisible: false, editingLayer: new Map()});\n }\n\n updateLayer(e, layerData) {\n e.stopPropagation();\n let {id, name, opacity, altitude, order} = layerData.toJS();\n\n altitude = parseInt(altitude);\n\n this.context.sceneActions.setLayerProperties(id, {name, opacity, altitude, order});\n this.setState({layerAddUIVisible: false, editingLayer: new Map()});\n }\n\n delLayer(e, layerID) {\n e.stopPropagation();\n this.context.sceneActions.removeLayer(layerID);\n this.setState({layerAddUIVisible: false, editingLayer: new Map()});\n }\n\n render() {\n if (!VISIBILITY_MODE[this.props.state.mode]) return null;\n\n let scene = this.props.state.scene;\n let isLastLayer = scene.layers.size === 1;\n\n return (\n \n \n \n \n \n \n \n \n \n \n {\n scene.layers.entrySeq().map(([layerID, layer]) => {\n\n let selectClick = e => this.context.sceneActions.selectLayer(layerID);\n let configureClick = e => this.setState({editingLayer: layer, layerAddUIVisible: true});\n\n let swapVisibility = e => {\n e.stopPropagation();\n this.context.sceneActions.setLayerProperties(layerID, {visible: !layer.visible});\n };\n\n let isCurrentLayer = layerID === scene.selectedLayer;\n\n return (\n \n \n \n \n \n \n \n );\n\n })\n }\n \n
{this.context.translator.t('Altitude')}{this.context.translator.t('Name')}
\n {\n !isCurrentLayer ?\n \n : null\n }\n \n \n \n {\n !isLastLayer ?\n this.delLayer(e, layerID) }\n style={!isCurrentLayer ? styleEditButton : styleEditButtonHover}\n title={this.context.translator.t('Delete layer')}\n />\n : null\n }\n \n [ h : {layer.altitude} ]\n \n {layer.name}\n
\n this.setState({headHovered: true}) }\n onMouseOut={ () => this.setState({headHovered: false}) }\n onClick={ (e) => this.addLayer(e) }\n >\n { !this.state.layerAddUIVisible ? : }\n {this.context.translator.t('New layer')}\n

\n\n {\n this.state.layerAddUIVisible && this.state.editingLayer ?\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{this.context.translator.t('Name')}:\n this.setState({editingLayer: this.state.editingLayer.merge({name: e.target.value})})}\n />\n
{this.context.translator.t('opacity')}:\n this.setState({editingLayer: this.state.editingLayer.merge({opacity: (e.target.value / 100)})})}\n />\n
{this.context.translator.t('altitude')}:\n this.setState({editingLayer: this.state.editingLayer.merge({altitude: e.target.value})})}\n />\n
{this.context.translator.t('order')}:\n this.setState({editingLayer: this.state.editingLayer.merge({order: e.target.value})})}\n />\n
\n \n \n \n \n \n \n \n
{\n this.resetLayerMod(e);\n } }>{this.context.translator.t('Reset')} {\n this.updateLayer(e, this.state.editingLayer);\n } }>{this.context.translator.t('Save')}
\n
\n : null\n }\n\n
\n )\n }\n\n}\n\nPanelLayers.propTypes = {\n state: PropTypes.object.isRequired,\n};\n\nPanelLayers.contextTypes = {\n sceneActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import * as Three from 'three';\nimport createGrid from './grid-creator';\nimport { disposeObject } from './three-memory-cleaner';\n\nexport function parseData(sceneData, actions, catalog) {\n\n let planData = {};\n\n planData.sceneGraph = {\n unit: sceneData.unit,\n layers: {},\n busyResources: { layers: {} },\n width: sceneData.width,\n height: sceneData.height,\n LODs: {}\n };\n\n planData.plan = new Three.Object3D();\n planData.plan.name = 'plan';\n\n // Add a grid to the plan\n planData.grid = createGrid(sceneData);\n planData.grid.name = 'grid';\n\n planData.boundingBox = new Three.Box3().setFromObject(planData.grid);\n planData.boundingBox.name = 'boundingBox';\n\n let promises = [];\n\n sceneData.layers.forEach(layer => {\n\n if (layer.id === sceneData.selectedLayer || layer.visible) {\n promises = promises.concat(createLayerObjects(layer, planData, sceneData, actions, catalog));\n }\n });\n\n Promise.all(promises).then(value => updateBoundingBox(planData));\n\n return planData;\n}\n\nfunction createLayerObjects(layer, planData, sceneData, actions, catalog) {\n\n let promises = [];\n\n planData.sceneGraph.layers[layer.id] = {\n id: layer.id,\n lines: {},\n holes: {},\n areas: {},\n items: {},\n visible: layer.visible,\n altitude: layer.altitude\n };\n\n planData.sceneGraph.busyResources.layers[layer.id] = {\n id: layer.id,\n lines: {},\n holes: {},\n areas: {},\n items: {}\n };\n\n // Import lines\n layer.lines.forEach(line => {\n promises.push(addLine(sceneData, planData, layer, line.id, catalog, actions.linesActions));\n line.holes.forEach(holeID => {\n promises.push(addHole(sceneData, planData, layer, holeID, catalog, actions.holesActions));\n });\n });\n\n // Import areas\n layer.areas.forEach(area => {\n promises.push(addArea(sceneData, planData, layer, area.id, catalog, actions.areaActions));\n });\n\n // Import items\n layer.items.forEach(item => {\n promises.push(addItem(sceneData, planData, layer, item.id, catalog, actions.itemsActions));\n });\n\n return promises;\n}\n\nexport function updateScene(planData, sceneData, oldSceneData, diffArray, actions, catalog) {\n\n let splitted = diffArray.map( el => { return { op: el.op, path: el.path.split('/'), value: el.value }; } );\n let filteredDiffs = filterDiffs(splitted, sceneData, oldSceneData);\n\n //***testing additional filter***\n filteredDiffs = filteredDiffs.filter( ({path}) => path[3] !== 'selected' );\n filteredDiffs = filteredDiffs.filter( ({path}) => path[1] !== 'groups' );\n //*******************************\n\n filteredDiffs.forEach(({op, path, value}) => {\n /* First of all I need to find the object I need to update */\n if (path[1] === 'layers') {\n\n let layer = sceneData.getIn(['layers', path[2]]);\n\n if (path.length === 3 && op === 'remove') {\n removeLayer(path[2], planData);\n } else if (path.length > 3) {\n switch (op) {\n case 'replace':\n replaceObject(path, layer, planData, actions, sceneData, oldSceneData, catalog);\n break;\n case 'add':\n addObject(path, layer, planData, actions, sceneData, oldSceneData, catalog);\n break;\n case 'remove':\n removeObject(path, layer, planData, actions, sceneData, oldSceneData, catalog);\n break;\n }\n }\n } else if (path[1] === 'selectedLayer') {\n let layerSelectedID = value;\n let layerSelected = sceneData.getIn(['layers', layerSelectedID]);\n // First of all I check if the new selected layer is not visible\n if (!layerSelected.visible) {\n // I need to create the objects for this layer\n let promises = createLayerObjects(layerSelected, planData, sceneData, actions, catalog);\n Promise.all(promises).then(() => updateBoundingBox(planData));\n }\n\n let layerGraph = planData.sceneGraph.layers[oldSceneData.selectedLayer];\n\n if (layerGraph) {\n if (!layerGraph.visible) {\n // I need to remove the objects for this layer\n for (let lineID in layerGraph.lines) removeLine(planData, layerGraph.id, lineID);\n for (let areaID in layerGraph.areas) removeArea(planData, layerGraph.id, areaID);\n for (let itemID in layerGraph.items) removeItem(planData, layerGraph.id, itemID);\n for (let holeID in layerGraph.holes) removeHole(planData, layerGraph.id, holeID);\n }\n }\n }\n });\n return planData;\n}\n\nfunction replaceObject(modifiedPath, layer, planData, actions, sceneData, oldSceneData, catalog) {\n\n let promises = [];\n\n switch (modifiedPath[3]) {\n case 'vertices':\n if (modifiedPath[5] !== 'selected') {\n let vertex = layer.getIn(['vertices', modifiedPath[4]]);\n\n if (modifiedPath[5] === 'x' || modifiedPath[5] === 'y') {\n vertex.lines.forEach(lineID => {\n let lineHoles = oldSceneData.getIn(['layers',layer.id, 'lines', lineID, 'holes' ]);\n if( lineHoles ) lineHoles.forEach(holeID => { replaceObject([0, 0, 0, 'holes', holeID, 'selected'], layer, planData, actions, sceneData, oldSceneData, catalog); });\n return replaceObject([0, 0, 0, 'lines', lineID], layer, planData, actions, sceneData, oldSceneData, catalog);\n });\n vertex.areas.forEach(areaID => replaceObject([0, 0, 0, 'areas', areaID], layer, planData, actions, sceneData, oldSceneData, catalog));\n }\n\n if (modifiedPath[5] === 'areas') {\n let areaID = vertex.getIn(['areas', ~~modifiedPath[6]]);\n replaceObject([0, 0, 0, 'areas', areaID], layer, planData, actions, sceneData, oldSceneData, catalog);\n }\n }\n break;\n case 'holes':\n let newHoleData = layer.getIn(['holes', modifiedPath[4]]);\n\n if (catalog.getElement(newHoleData.type).updateRender3D) {\n promises.push(\n updateHole(\n sceneData,\n oldSceneData,\n planData,\n layer,\n modifiedPath[4],\n modifiedPath.slice(5),\n catalog,\n actions.holesActions,\n () => removeHole(planData, layer.id, newHoleData.id),\n () => addHole(sceneData, planData, layer, newHoleData.id, catalog, actions.holesActions)\n )\n );\n }\n else {\n let lineID = newHoleData.line;\n if (modifiedPath[5] === 'selected') {\n // I remove only the hole without removing the wall\n removeHole(planData, layer.id, newHoleData.id);\n promises.push(addHole(sceneData, planData, layer, newHoleData.id, catalog, actions.holesActions));\n }\n else {\n layer.getIn(['lines', lineID, 'holes']).forEach(holeID => {\n removeHole(planData, layer.id, holeID);\n });\n removeLine(planData, layer.id, lineID);\n promises.push(addLine(sceneData, planData, layer, lineID, catalog, actions.linesActions));\n layer.getIn(['lines', lineID, 'holes']).forEach(holeID => {\n promises.push(addHole(sceneData, planData, layer, holeID, catalog, actions.holesActions));\n });\n }\n }\n break;\n case 'lines':\n let line = layer.getIn(['lines', modifiedPath[4]]);\n\n if (catalog.getElement(line.type).updateRender3D) {\n promises.push(\n updateLine(\n sceneData,\n oldSceneData,\n planData,\n layer,\n modifiedPath[4],\n modifiedPath.slice(5),\n catalog,\n actions.linesActions,\n () => removeLine(planData, layer.id, modifiedPath[4]),\n () => addLine(sceneData, planData, layer, modifiedPath[4], catalog, actions.linesActions)\n )\n );\n }\n else {\n removeLine(planData, layer.id, modifiedPath[4]);\n promises.push(addLine(sceneData, planData, layer, modifiedPath[4], catalog, actions.linesActions));\n }\n break;\n case 'areas':\n let area = layer.getIn(['areas', modifiedPath[4]]);\n\n if (catalog.getElement(area.type).updateRender3D) {\n promises.push(\n updateArea(\n sceneData,\n oldSceneData,\n planData,\n layer,\n modifiedPath[4],\n modifiedPath.slice(5),\n catalog,\n actions.areaActions,\n () => removeArea(planData, layer.id, modifiedPath[4]),\n () => addArea(sceneData, planData, layer, modifiedPath[4], catalog, actions.areaActions)\n )\n );\n }\n else {\n if (planData.sceneGraph.layers[layer.id].areas[modifiedPath[4]]) {\n removeArea(planData, layer.id, modifiedPath[4]);\n }\n promises.push(addArea(sceneData, planData, layer, modifiedPath[4], catalog, actions.areaActions));\n }\n break;\n case 'items':\n let item = layer.getIn(['items', modifiedPath[4]]);\n\n if (catalog.getElement(item.type).updateRender3D) {\n promises.push(\n updateItem(\n sceneData,\n oldSceneData,\n planData,\n layer,\n modifiedPath[4],\n modifiedPath.slice(5),\n catalog,\n actions.itemsActions,\n () => removeItem(planData, layer.id, modifiedPath[4]),\n () => addItem(sceneData, planData, layer, modifiedPath[4], catalog, actions.itemsActions)\n )\n );\n }\n else {\n removeItem(planData, layer.id, modifiedPath[4]);\n promises.push(addItem(sceneData, planData, layer, modifiedPath[4], catalog, actions.itemsActions));\n }\n break;\n\n case 'visible':\n if (!layer.visible) {\n let layerGraph = planData.sceneGraph.layers[layer.id];\n\n for (let lineID in layerGraph.lines) removeLine(planData, layer.id, lineID);\n for (let areaID in layerGraph.areas) removeArea(planData, layer.id, areaID);\n for (let itemID in layerGraph.items) removeItem(planData, layer.id, itemID);\n for (let holeID in layerGraph.holes) removeHole(planData, layer.id, holeID);\n\n } else {\n promises = promises.concat(createLayerObjects(layer, planData, sceneData, actions, catalog));\n }\n\n break;\n\n case 'opacity':\n case 'altitude':\n let layerGraph = planData.sceneGraph.layers[layer.id];\n for (let lineID in layerGraph.lines) removeLine(planData, layer.id, lineID);\n for (let areaID in layerGraph.areas) removeArea(planData, layer.id, areaID);\n for (let itemID in layerGraph.items) removeItem(planData, layer.id, itemID);\n for (let holeID in layerGraph.holes) removeHole(planData, layer.id, holeID);\n\n promises = promises.concat(createLayerObjects(layer, planData, sceneData, actions, catalog));\n\n }\n Promise.all(promises).then(values => updateBoundingBox(planData));\n}\n\nfunction removeObject(modifiedPath, layer, planData, actions, sceneData, oldSceneData, catalog) {\n\n let promises = [];\n switch (modifiedPath[3]) {\n case 'lines':\n // Here I remove the line with all its holes\n let lineID = modifiedPath[4];\n oldSceneData.getIn(['layers', layer.id, 'lines', lineID, 'holes']).forEach(holeID => {\n removeHole(planData, layer.id, holeID);\n });\n removeLine(planData, layer.id, lineID);\n if (modifiedPath.length > 5) {\n // I removed an hole, so I should add the new line\n promises.push(addLine(sceneData, planData, layer, lineID, catalog, actions.linesActions));\n layer.getIn(['lines', lineID, 'holes']).forEach(holeID => {\n promises.push(addHole(sceneData, planData, layer, holeID, catalog, actions.holesActions));\n });\n }\n break;\n case 'areas':\n if (modifiedPath.length === 5) {\n // I am removing an entire area\n removeArea(planData, layer.id, modifiedPath[4]);\n }\n break;\n case 'items':\n if (modifiedPath.length === 5) {\n // I am removing an item\n removeItem(planData, layer.id, modifiedPath[4]);\n }\n break;\n }\n\n Promise.all(promises).then(values => updateBoundingBox(planData));\n}\n\nfunction removeLayer(layerId, planData) {\n let layerGraph = planData.sceneGraph.layers[layerId];\n\n for (let lineID in layerGraph.lines) removeLine(planData, layerId, lineID);\n for (let areaID in layerGraph.areas) removeArea(planData, layerId, areaID);\n for (let itemID in layerGraph.items) removeItem(planData, layerId, itemID);\n for (let holeID in layerGraph.holes) removeHole(planData, layerId, holeID);\n\n delete planData.sceneGraph.layers[layerId];\n}\n\nfunction removeHole(planData, layerId, holeID) {\n\n if (planData.sceneGraph.busyResources.layers[layerId].holes[holeID]) {\n setTimeout(() => removeHole(planData, layerId, holeID), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layerId].holes[holeID] = true;\n\n let hole3D = planData.sceneGraph.layers[layerId].holes[holeID];\n\n if (hole3D) {\n planData.plan.remove(hole3D);\n disposeObject(hole3D);\n delete planData.sceneGraph.layers[layerId].holes[holeID];\n delete planData.sceneGraph.LODs[holeID];\n hole3D = null;\n updateBoundingBox(planData);\n }\n\n planData.sceneGraph.busyResources.layers[layerId].holes[holeID] = false;\n}\n\nfunction removeLine(planData, layerId, lineID) {\n\n if (planData.sceneGraph.busyResources.layers[layerId].lines[lineID]) {\n setTimeout(() => removeLine(planData, layerId, lineID), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layerId].lines[lineID] = true;\n\n let line3D = planData.sceneGraph.layers[layerId].lines[lineID];\n\n if (line3D) {\n planData.plan.remove(line3D);\n disposeObject(line3D);\n delete planData.sceneGraph.layers[layerId].lines[lineID];\n delete planData.sceneGraph.LODs[lineID];\n line3D = null;\n updateBoundingBox(planData);\n }\n\n planData.sceneGraph.busyResources.layers[layerId].lines[lineID] = false;\n}\n\nfunction removeArea(planData, layerId, areaID) {\n\n if (planData.sceneGraph.busyResources.layers[layerId].areas[areaID]) {\n setTimeout(() => removeArea(planData, layerId, areaID), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layerId].areas[areaID] = true;\n\n let area3D = planData.sceneGraph.layers[layerId].areas[areaID];\n\n if (area3D) {\n planData.plan.remove(area3D);\n disposeObject(area3D);\n delete planData.sceneGraph.layers[layerId].areas[areaID];\n delete planData.sceneGraph.LODs[areaID];\n area3D = null;\n updateBoundingBox(planData);\n }\n\n planData.sceneGraph.busyResources.layers[layerId].areas[areaID] = false;\n}\n\nfunction removeItem(planData, layerId, itemID) {\n\n if (planData.sceneGraph.busyResources.layers[layerId].items[itemID]) {\n setTimeout(() => removeItem(planData, layerId, itemID), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layerId].items[itemID] = true;\n\n let item3D = planData.sceneGraph.layers[layerId].items[itemID];\n\n if (item3D) {\n planData.plan.remove(item3D);\n disposeObject(item3D);\n delete planData.sceneGraph.layers[layerId].items[itemID];\n delete planData.sceneGraph.LODs[itemID];\n item3D = null;\n updateBoundingBox(planData);\n }\n\n planData.sceneGraph.busyResources.layers[layerId].items[itemID] = false;\n}\n\n//TODO generate an area's replace if vertex has been changed\nfunction addObject(modifiedPath, layer, planData, actions, sceneData, oldSceneData, catalog) {\n if (modifiedPath.length === 5) {\n let addPromise = null, addAction = null;\n\n switch (modifiedPath[3]) {\n case 'lines': addPromise = addLine; addAction = actions.linesActions; break;\n case 'areas': addPromise = addArea; addAction = actions.areaActions; break;\n case 'items': addPromise = addItem; addAction = actions.itemsActions; break;\n case 'holes': addPromise = addHole; addAction = actions.holesActions; break;\n }\n\n if( addPromise ) addPromise( sceneData, planData, layer, modifiedPath[4], catalog, addAction ).then(() => updateBoundingBox(planData));\n }\n}\n\nfunction addHole(sceneData, planData, layer, holeID, catalog, holesActions) {\n let holeData = layer.getIn(['holes', holeID]);\n\n // Create the hole object\n return catalog.getElement(holeData.type).render3D(holeData, layer, sceneData).then(object => {\n\n if (object instanceof Three.LOD) {\n planData.sceneGraph.LODs[holeID] = object;\n }\n\n let pivot = new Three.Object3D();\n pivot.name = 'pivot';\n pivot.add(object);\n\n let line = layer.getIn(['lines', holeData.line]);\n\n // First of all I need to find the vertices of this line\n let vertex0 = layer.vertices.get(line.vertices.get(0));\n let vertex1 = layer.vertices.get(line.vertices.get(1));\n let offset = holeData.offset;\n\n if (vertex0.x > vertex1.x) {\n let tmp = vertex0;\n vertex0 = vertex1;\n vertex1 = tmp;\n offset = 1 - offset;\n }\n\n let distance = Math.sqrt(Math.pow(vertex0.x - vertex1.x, 2) + Math.pow(vertex0.y - vertex1.y, 2));\n let alpha = Math.asin((vertex1.y - vertex0.y) / distance);\n\n let boundingBox = new Three.Box3().setFromObject(pivot);\n let center = [\n (boundingBox.max.x - boundingBox.min.x) / 2 + boundingBox.min.x,\n (boundingBox.max.y - boundingBox.min.y) / 2 + boundingBox.min.y,\n (boundingBox.max.z - boundingBox.min.z) / 2 + boundingBox.min.z];\n\n let holeAltitude = holeData.properties.getIn(['altitude', 'length']);\n let holeHeight = holeData.properties.getIn(['height', 'length']);\n\n pivot.rotation.y = alpha;\n pivot.position.x = vertex0.x + distance * offset * Math.cos(alpha) - center[2] * Math.sin(alpha);\n pivot.position.y = holeAltitude + holeHeight / 2 - center[1] + layer.altitude;\n pivot.position.z = -vertex0.y - distance * offset * Math.sin(alpha) - center[2] * Math.cos(alpha);\n\n planData.plan.add(pivot);\n planData.sceneGraph.layers[layer.id].holes[holeData.id] = pivot;\n\n applyInteract(pivot, () => {\n return holesActions.selectHole(layer.id, holeData.id);\n });\n\n let opacity = layer.opacity;\n if (holeData.selected) {\n opacity = 1;\n }\n applyOpacity(pivot, opacity);\n\n });\n}\n\nfunction updateHole(sceneData, oldSceneData, planData, layer, holeID, differences, catalog, holesActions, selfDestroy, selfBuild) {\n let hole = layer.getIn(['holes', holeID]);\n let oldHole = oldSceneData.getIn(['layers', layer.id, 'holes', holeID]);\n let mesh = planData.sceneGraph.layers[layer.id].holes[holeID];\n\n if (!mesh) return null;\n\n return catalog.getElement(hole.type).updateRender3D(hole, layer, sceneData, mesh, oldHole, differences, selfDestroy, selfBuild);\n}\n\nfunction addLine(sceneData, planData, layer, lineID, catalog, linesActions) {\n\n if (planData.sceneGraph.busyResources.layers[layer.id].lines[lineID]) {\n setTimeout(() => addLine(sceneData, planData, layer, lineID, catalog, linesActions), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layer.id].lines[lineID] = true;\n\n let line = layer.getIn(['lines', lineID]);\n\n // First of all I need to find the vertices of this line\n let vertex0 = layer.vertices.get(line.vertices.get(0));\n let vertex1 = layer.vertices.get(line.vertices.get(1));\n\n if (vertex0.x > vertex1.x) {\n let tmp = vertex0;\n vertex0 = vertex1;\n vertex1 = tmp;\n }\n\n return catalog.getElement(line.type).render3D(line, layer, sceneData).then(line3D => {\n\n if (line3D instanceof Three.LOD) {\n planData.sceneGraph.LODs[line.id] = line3D;\n }\n\n let pivot = new Three.Object3D();\n pivot.name = 'pivot';\n pivot.add(line3D);\n\n pivot.position.x = vertex0.x;\n pivot.position.y = layer.altitude;\n pivot.position.z = -vertex0.y;\n\n planData.plan.add(pivot);\n planData.sceneGraph.layers[layer.id].lines[lineID] = pivot;\n\n applyInteract(pivot, () => {\n return linesActions.selectLine(layer.id, line.id);\n });\n\n let opacity = layer.opacity;\n if (line.selected) {\n opacity = 1;\n }\n applyOpacity(pivot, opacity);\n planData.sceneGraph.busyResources.layers[layer.id].lines[lineID] = false;\n });\n}\n\nfunction updateLine(sceneData, oldSceneData, planData, layer, lineID, differences, catalog, linesActions, selfDestroy, selfBuild) {\n let line = layer.getIn(['lines', lineID]);\n let oldLine = oldSceneData.getIn(['layers', layer.id, 'lines', lineID]);\n let mesh = planData.sceneGraph.layers[layer.id].lines[lineID];\n\n if (!mesh) return null;\n\n return catalog.getElement(line.type).updateRender3D(line, layer, sceneData, mesh, oldLine, differences, selfDestroy, selfBuild);\n}\n\nfunction addArea(sceneData, planData, layer, areaID, catalog, areaActions) {\n\n if (planData.sceneGraph.busyResources.layers[layer.id].areas[areaID]) {\n setTimeout(() => addArea(sceneData, planData, layer, areaID, catalog, areaActions), 100);\n return;\n }\n\n planData.sceneGraph.busyResources.layers[layer.id].areas[areaID] = true;\n\n let area = layer.getIn(['areas', areaID]);\n let interactFunction = () => areaActions.selectArea(layer.id, areaID);\n\n return catalog.getElement(area.type).render3D(area, layer, sceneData).then(area3D => {\n\n if (area3D instanceof Three.LOD) {\n planData.sceneGraph.LODs[areaID] = area3D;\n }\n\n let pivot = new Three.Object3D();\n pivot.name = 'pivot';\n pivot.add(area3D);\n pivot.position.y = layer.altitude;\n planData.plan.add(pivot);\n planData.sceneGraph.layers[layer.id].areas[areaID] = pivot;\n\n applyInteract(pivot, interactFunction);\n\n let opacity = layer.opacity;\n if (area.selected) {\n opacity = 1;\n }\n\n applyOpacity(pivot, opacity);\n planData.sceneGraph.busyResources.layers[layer.id].areas[areaID] = false;\n });\n}\n\nfunction updateArea(sceneData, oldSceneData, planData, layer, areaID, differences, catalog, areaActions, selfDestroy, selfBuild) {\n let area = layer.getIn(['areas', areaID]);\n let oldArea = oldSceneData.getIn(['layers', layer.id, 'areas', areaID]);\n let mesh = planData.sceneGraph.layers[layer.id].areas[areaID];\n\n if (!mesh) return null;\n\n return catalog.getElement(area.type).updateRender3D(area, layer, sceneData, mesh, oldArea, differences, selfDestroy, selfBuild);\n}\n\nfunction addItem(sceneData, planData, layer, itemID, catalog, itemsActions) {\n\n let item = layer.getIn(['items', itemID]);\n\n return catalog.getElement(item.type).render3D(item, layer, sceneData).then(item3D => {\n\n if (item3D instanceof Three.LOD) {\n planData.sceneGraph.LODs[itemID] = item3D;\n }\n\n let pivot = new Three.Object3D();\n pivot.name = 'pivot';\n pivot.add(item3D);\n\n pivot.rotation.y = item.rotation * Math.PI / 180;\n pivot.position.x = item.x;\n pivot.position.y = layer.altitude;\n pivot.position.z = -item.y;\n\n applyInteract(item3D, () => {\n itemsActions.selectItem(layer.id, item.id);\n }\n );\n\n let opacity = layer.opacity;\n if (item.selected) {\n opacity = 1;\n }\n\n applyOpacity(pivot, opacity);\n\n planData.plan.add(pivot);\n planData.sceneGraph.layers[layer.id].items[item.id] = pivot;\n });\n\n}\n\nfunction updateItem(sceneData, oldSceneData, planData, layer, itemID, differences, catalog, itemsActions, selfDestroy, selfBuild) {\n let item = layer.getIn(['items', itemID]);\n let oldItem = oldSceneData.getIn(['layers', layer.id, 'items', itemID]);\n let mesh = planData.sceneGraph.layers[layer.id].items[itemID];\n\n if (!mesh) return null;\n\n return catalog.getElement(item.type).updateRender3D(item, layer, sceneData, mesh, oldItem, differences, selfDestroy, selfBuild);\n}\n\n// Apply interact function to children of an Object3D\nfunction applyInteract(object, interactFunction) {\n object.traverse((child) => {\n if (child instanceof Three.Mesh) {\n child.interact = interactFunction;\n }\n });\n}\n\n// Apply opacity to children of an Object3D\nfunction applyOpacity(object, opacity) {\n object.traverse((child) => {\n\n if (child instanceof Three.Mesh) {\n if (child.material instanceof Three.MultiMaterial) {\n child.material.materials.forEach(materialChild => {\n materialChild.transparent = true;\n if (materialChild.maxOpacity) {\n materialChild.opacity = Math.min(materialChild.maxOpacity, opacity);\n } else if (materialChild.opacity && materialChild.opacity > opacity) {\n materialChild.maxOpacity = materialChild.opacity;\n materialChild.opacity = opacity;\n }\n });\n } else if (child.material instanceof Array) {\n child.material.forEach(material => {\n material.transparent = true;\n if (material.maxOpacity) {\n material.opacity = Math.min(material.maxOpacity, opacity);\n } else if (material.opacity && material.opacity > opacity) {\n material.maxOpacity = material.opacity;\n material.opacity = opacity;\n }\n });\n } else {\n child.material.transparent = true;\n if (child.material.maxOpacity) {\n child.material.opacity = Math.min(child.material.maxOpacity, opacity);\n } else if (child.material.opacity && child.material.opacity > opacity) {\n child.material.maxOpacity = child.material.opacity;\n child.material.opacity = opacity;\n }\n }\n }\n });\n}\n\n\nfunction updateBoundingBox(planData) {\n let newBoundingBox = new Three.Box3().setFromObject(planData.plan);\n if (isFinite(newBoundingBox.max.x)\n && isFinite(newBoundingBox.min.x)\n && isFinite(newBoundingBox.max.y)\n && isFinite(newBoundingBox.min.y)\n && isFinite(newBoundingBox.max.z)\n && isFinite(newBoundingBox.min.z)) {\n\n let newCenter = new Three.Vector3(\n (newBoundingBox.max.x - newBoundingBox.min.x) / 2 + newBoundingBox.min.x,\n (newBoundingBox.max.y - newBoundingBox.min.y) / 2 + newBoundingBox.min.y,\n (newBoundingBox.max.z - newBoundingBox.min.z) / 2 + newBoundingBox.min.z\n );\n\n planData.plan.position.sub(newCenter);\n planData.grid.position.sub(newCenter);\n\n newBoundingBox.min.sub(newCenter);\n newBoundingBox.max.sub(newCenter);\n\n planData.boundingBox = newBoundingBox;\n }\n}\n\n/**\n * Filter the array of diffs\n * @param diffArray\n * @param sceneData\n * @param oldSceneData\n * @returns {Array}\n */\nfunction filterDiffs(diffArray, sceneData, oldSceneData) {\n return minimizeRemoveDiffsWhenSwitchingLayers(\n minimizeChangePropertiesAfterSelectionsDiffs(\n minimizeChangePropertiesDiffs(diffArray, sceneData, oldSceneData), sceneData, oldSceneData),\n sceneData, oldSceneData);\n}\n\n/**\n * Reduces the number of remove diffs when switching an hidden layer\n * @param diffArray the array of the diffs\n * @param sceneData\n * @param oldSceneData\n * @returns {Array}\n */\nfunction minimizeRemoveDiffsWhenSwitchingLayers(diffArray, sceneData, oldSceneData) {\n\n let foundDiff;\n let i;\n for (i = 0; i < diffArray.length && !foundDiff; i++) {\n if (diffArray[i].path[1] === 'selectedLayer') {\n foundDiff = diffArray[i];\n }\n }\n\n if (foundDiff) {\n if (!sceneData.getIn(['layers', oldSceneData.selectedLayer, 'visible'])) {\n return diffArray.filter(({op, path}) => {\n\n return (\n !( path[ path.length - 1] === 'selected' && ( path[1] === 'layers' && path[2] === oldSceneData.selectedLayer )) &&\n !(op === 'remove' && path.indexOf(oldSceneData.selectedLayer) !== -1)\n );\n\n });\n }\n }\n\n return diffArray;\n}\n\n/**\n * Reduces the number of change properties diffs for selected elements\n * @param diffArray the array of the diffs\n * @param sceneData\n * @param oldSceneData\n * @returns {Array}\n */\nfunction minimizeChangePropertiesAfterSelectionsDiffs(diffArray, sceneData, oldSceneData) {\n let idsFound = {};\n diffArray.forEach( ({path}) => {\n if (path[5] === 'selected') {\n idsFound[path[4]] = path[4];\n }\n });\n\n return diffArray.filter( ({path}) => {\n if (path[5] === 'properties') {\n return idsFound[path[4]] ? false : true;\n }\n return true;\n });\n}\n\n/**\n * Reduces the number of change properties diffs\n * @param diffArray the array of the diffs\n * @param sceneData\n * @param oldSceneData\n * @returns {Array}\n */\nfunction minimizeChangePropertiesDiffs(diffArray, sceneData, oldSceneData) {\n let idsFound = {};\n return diffArray.filter( ({path}) => {\n if (path[5] === 'properties') {\n return idsFound[path[4]] ? false : (idsFound[path[4]] = true);\n } else if (path[5] === 'misc') {\n // Remove misc changes\n return false;\n }\n return true;\n });\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst STYLE = {\n stroke: \"#0096fd\",\n strokeWidth: \"1px\"\n};\n\nconst STYLE_TEXT = {\n textAnchor: \"middle\",\n fontSize: \"12px\",\n fontFamily: \"'Courier New', Courier, monospace\",\n pointerEvents: \"none\",\n fontWeight: \"bold\",\n\n //http://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css\n WebkitTouchCallout: \"none\", /* iOS Safari */\n WebkitUserSelect: \"none\", /* Chrome/Safari/Opera */\n MozUserSelect: \"none\", /* Firefox */\n MsUserSelect: \"none\", /* Internet Explorer/Edge */\n userSelect: \"none\"\n};\n\n\nexport default function Ruler({length, unit, transform}) {\n\n let distanceText = `${length.toFixed(2)} ${unit}`;\n\n return (\n \n {distanceText}\n \n \n \n \n );\n\n}\n\nRuler.propTypes = {\n length: PropTypes.number.isRequired,\n unit: PropTypes.string.isRequired,\n transform: PropTypes.string.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as Geometry from '../../utils/geometry';\n\nconst STYLE = {\n stroke: '#D32F2F',\n strokeWidth: \"1px\"\n};\n\nexport default function ActiveDrawingHelper({snap, width, height}) {\n switch (snap.type) {\n case 'point':\n return (\n \n \n \n );\n\n case 'line':\n let h0 = Geometry.horizontalLine(0);\n let h1 = Geometry.horizontalLine(height);\n let pointH0 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, h0.a, h0.b, h0.c);\n let pointH1 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, h1.a, h1.b, h1.c);\n\n let v0 = Geometry.verticalLine(0);\n let v1 = Geometry.verticalLine(width);\n let pointV0 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, v0.a, v0.b, v0.c);\n let pointV1 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, v1.a, v1.b, v1.c);\n\n if (pointH0 && pointH1)\n return ;\n if (pointV0 && pointV1)\n return ;\n return null;\n\n case'line-segment':\n return ;\n\n default:\n return null;\n }\n}\n\nActiveDrawingHelper.propTypes = {\n snap: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { Layer, Grids } from './export';\n\nexport default class Scene extends Component {\n\n shouldComponentUpdate(nextProps, nextState) {\n return this.props.scene.hashCode() !== nextProps.scene.hashCode();\n }\n\n render() {\n let {scene, catalog} = this.props;\n let {height, layers} = scene;\n let selectedLayer = layers.get(scene.selectedLayer);\n\n return (\n \n \n\n \n {\n layers\n .entrySeq()\n .filter(([layerID, layer]) => layerID !== scene.selectedLayer && layer.visible)\n .map(([layerID, layer]) => )\n }\n \n\n \n \n );\n }\n}\n\n\nScene.propTypes = {\n scene: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Scene from './scene';\nimport Snap from './snap';\nimport * as SharedStyle from '../../shared-style';\n\nconst guideStyle = {\n stroke: SharedStyle.SECONDARY_COLOR.main,\n strokewidth:'2.5px'\n};\n\nexport default function State({state, catalog}) {\n\n let {activeSnapElement, snapElements, scene} = state;\n let {width, height} = scene;\n\n activeSnapElement = activeSnapElement ?\n : null;\n// snapElements = snapElements.map((snap,id) => );\n snapElements = null; //only for debug purpose\n\n return (\n \n \n \n\n \n {scene.getIn(['guides','horizontal']).entrySeq().map( ([ hgKey, hgVal ]) => )}\n {scene.getIn(['guides','vertical']).entrySeq().map( ([ vgKey, vgVal ]) => )}\n {activeSnapElement}\n {snapElements}\n\n \n \n )\n}\n\nState.propTypes = {\n state: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n","import Project from './project';\nimport Group from './group';\nimport Layer from './layer';\nimport Line from './line';\nimport Hole from './hole';\nimport Vertex from './vertex';\nimport Area from './area';\nimport Item from './item';\nimport { HorizontalGuide, VerticalGuide } from './guide';\n\nexport {\n Project,\n Group,\n Layer,\n Line,\n Hole,\n Vertex,\n Area,\n Item,\n HorizontalGuide,\n VerticalGuide\n};\n\nexport default {\n Project,\n Group,\n Layer,\n Line,\n Hole,\n Vertex,\n Area,\n Item,\n HorizontalGuide,\n VerticalGuide\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { ReactSVGPanZoom, TOOL_NONE, TOOL_PAN, TOOL_ZOOM_IN, TOOL_ZOOM_OUT, TOOL_AUTO } from 'react-svg-pan-zoom';\nimport * as constants from '../../constants';\nimport State from './state';\nimport * as SharedStyle from '../../shared-style';\nimport { RulerX, RulerY } from './export';\n\nfunction mode2Tool(mode) {\n switch (mode) {\n case constants.MODE_2D_PAN:\n return TOOL_PAN;\n case constants.MODE_2D_ZOOM_IN:\n return TOOL_ZOOM_IN;\n case constants.MODE_2D_ZOOM_OUT:\n return TOOL_ZOOM_OUT;\n case constants.MODE_IDLE:\n return TOOL_AUTO;\n default:\n return TOOL_NONE;\n }\n}\n\nfunction mode2PointerEvents(mode) {\n switch (mode) {\n case constants.MODE_DRAWING_LINE:\n case constants.MODE_DRAWING_HOLE:\n case constants.MODE_DRAWING_ITEM:\n case constants.MODE_DRAGGING_HOLE:\n case constants.MODE_DRAGGING_ITEM:\n case constants.MODE_DRAGGING_LINE:\n case constants.MODE_DRAGGING_VERTEX:\n return { pointerEvents: 'none' };\n\n default:\n return {};\n }\n}\n\nfunction mode2Cursor(mode) {\n switch (mode) {\n case constants.MODE_DRAGGING_HOLE:\n case constants.MODE_DRAGGING_LINE:\n case constants.MODE_DRAGGING_VERTEX:\n case constants.MODE_DRAGGING_ITEM:\n return { cursor: 'move' };\n\n case constants.MODE_ROTATING_ITEM:\n return { cursor: 'ew-resize' };\n\n case constants.MODE_WAITING_DRAWING_LINE:\n case constants.MODE_DRAWING_LINE:\n return { cursor: 'crosshair' };\n default:\n return { cursor: 'default' };\n }\n}\n\nfunction mode2DetectAutopan(mode) {\n switch (mode) {\n case constants.MODE_DRAWING_LINE:\n case constants.MODE_DRAGGING_LINE:\n case constants.MODE_DRAGGING_VERTEX:\n case constants.MODE_DRAGGING_HOLE:\n case constants.MODE_DRAGGING_ITEM:\n case constants.MODE_DRAWING_HOLE:\n case constants.MODE_DRAWING_ITEM:\n return true;\n\n default:\n return false;\n }\n}\n\nfunction extractElementData(node) {\n while (!node.attributes.getNamedItem('data-element-root') && node.tagName !== 'svg') {\n node = node.parentNode;\n }\n if (node.tagName === 'svg') return null;\n\n return {\n part: node.attributes.getNamedItem('data-part') ? node.attributes.getNamedItem('data-part').value : undefined,\n layer: node.attributes.getNamedItem('data-layer').value,\n prototype: node.attributes.getNamedItem('data-prototype').value,\n selected: node.attributes.getNamedItem('data-selected').value === 'true',\n id: node.attributes.getNamedItem('data-id').value\n }\n}\n\nexport default function Viewer2D(\n { state, width, height },\n { viewer2DActions, linesActions, holesActions, verticesActions, itemsActions, areaActions, projectActions, catalog }) {\n\n\n let { viewer2D, mode, scene } = state;\n\n let layerID = scene.selectedLayer;\n\n let mapCursorPosition = ({ x, y }) => {\n return { x, y: -y + scene.height }\n };\n\n let onMouseMove = viewerEvent => {\n\n //workaround that allow imageful component to work\n let evt = new Event('mousemove-planner-event');\n evt.viewerEvent = viewerEvent;\n document.dispatchEvent(evt);\n\n let { x, y } = mapCursorPosition(viewerEvent);\n\n projectActions.updateMouseCoord({ x, y });\n\n switch (mode) {\n case constants.MODE_DRAWING_LINE:\n linesActions.updateDrawingLine(x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAWING_HOLE:\n holesActions.updateDrawingHole(layerID, x, y);\n break;\n\n case constants.MODE_DRAWING_ITEM:\n itemsActions.updateDrawingItem(layerID, x, y);\n break;\n\n case constants.MODE_DRAGGING_HOLE:\n holesActions.updateDraggingHole(x, y);\n break;\n\n case constants.MODE_DRAGGING_LINE:\n linesActions.updateDraggingLine(x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAGGING_VERTEX:\n verticesActions.updateDraggingVertex(x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAGGING_ITEM:\n itemsActions.updateDraggingItem(x, y);\n break;\n\n case constants.MODE_ROTATING_ITEM:\n itemsActions.updateRotatingItem(x, y);\n break;\n }\n\n viewerEvent.originalEvent.stopPropagation();\n };\n\n let onMouseDown = viewerEvent => {\n let event = viewerEvent.originalEvent;\n\n //workaround that allow imageful component to work\n let evt = new Event('mousedown-planner-event');\n evt.viewerEvent = viewerEvent;\n document.dispatchEvent(evt);\n\n let { x, y } = mapCursorPosition(viewerEvent);\n\n if (mode === constants.MODE_IDLE) {\n let elementData = extractElementData(event.target);\n if (!elementData || !elementData.selected) return;\n\n switch (elementData.prototype) {\n case 'lines':\n linesActions.beginDraggingLine(elementData.layer, elementData.id, x, y, state.snapMask);\n break;\n\n case 'vertices':\n verticesActions.beginDraggingVertex(elementData.layer, elementData.id, x, y, state.snapMask);\n break;\n\n case 'items':\n if (elementData.part === 'rotation-anchor')\n itemsActions.beginRotatingItem(elementData.layer, elementData.id, x, y);\n else\n itemsActions.beginDraggingItem(elementData.layer, elementData.id, x, y);\n break;\n\n case 'holes':\n holesActions.beginDraggingHole(elementData.layer, elementData.id, x, y);\n break;\n\n default: break;\n }\n }\n event.stopPropagation();\n };\n\n let onMouseUp = viewerEvent => {\n let event = viewerEvent.originalEvent;\n\n let evt = new Event('mouseup-planner-event');\n evt.viewerEvent = viewerEvent;\n document.dispatchEvent(evt);\n\n let { x, y } = mapCursorPosition(viewerEvent);\n\n switch (mode) {\n\n case constants.MODE_IDLE:\n let elementData = extractElementData(event.target);\n\n if (elementData && elementData.selected) return;\n\n switch (elementData ? elementData.prototype : 'none') {\n case 'areas':\n areaActions.selectArea(elementData.layer, elementData.id);\n break;\n\n case 'lines':\n linesActions.selectLine(elementData.layer, elementData.id);\n break;\n\n case 'holes':\n holesActions.selectHole(elementData.layer, elementData.id);\n break;\n\n case 'items':\n itemsActions.selectItem(elementData.layer, elementData.id);\n break;\n\n case 'none':\n projectActions.unselectAll();\n break;\n }\n break;\n\n case constants.MODE_WAITING_DRAWING_LINE:\n linesActions.beginDrawingLine(layerID, x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAWING_LINE:\n linesActions.endDrawingLine(x, y, state.snapMask);\n linesActions.beginDrawingLine(layerID, x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAWING_HOLE:\n holesActions.endDrawingHole(layerID, x, y);\n break;\n\n case constants.MODE_DRAWING_ITEM:\n itemsActions.endDrawingItem(layerID, x, y);\n break;\n\n case constants.MODE_DRAGGING_LINE:\n linesActions.endDraggingLine(x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAGGING_VERTEX:\n verticesActions.endDraggingVertex(x, y, state.snapMask);\n break;\n\n case constants.MODE_DRAGGING_ITEM:\n itemsActions.endDraggingItem(x, y);\n break;\n\n case constants.MODE_DRAGGING_HOLE:\n holesActions.endDraggingHole(x, y);\n break;\n\n case constants.MODE_ROTATING_ITEM:\n itemsActions.endRotatingItem(x, y);\n break;\n }\n\n event.stopPropagation();\n };\n\n let onChangeValue = (value) => {\n projectActions.updateZoomScale(value.a);\n return viewer2DActions.updateCameraView(value)\n };\n\n let onChangeTool = (tool) => {\n switch (tool) {\n case TOOL_NONE:\n projectActions.selectToolEdit();\n break;\n\n case TOOL_PAN:\n viewer2DActions.selectToolPan();\n break;\n\n case TOOL_ZOOM_IN:\n viewer2DActions.selectToolZoomIn();\n break;\n\n case TOOL_ZOOM_OUT:\n viewer2DActions.selectToolZoomOut();\n break;\n }\n };\n\n let { e, f, SVGWidth, SVGHeight } = state.get('viewer2D').toJS();\n\n let rulerSize = 15; //px\n let rulerUnitPixelSize = 100;\n let rulerBgColor = SharedStyle.PRIMARY_COLOR.main;\n let rulerFnColor = SharedStyle.COLORS.white;\n let rulerMkColor = SharedStyle.SECONDARY_COLOR.main;\n let rulerXElements = Math.ceil( SVGWidth / rulerUnitPixelSize ) + 1;\n let rulerYElements = Math.ceil( SVGHeight / rulerUnitPixelSize ) + 1;\n\n return (\n
\n
\n
\n { SVGWidth ? : null }\n
\n
\n { SVGHeight ? : null }\n
\n \n\n \n \n \n \n \n \n \n \n \n \n \n\n \n
\n );\n}\n\n\nViewer2D.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n};\n\nViewer2D.contextTypes = {\n viewer2DActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n verticesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n areaActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport IconLoad from 'react-icons/lib/fa/folder-open-o';\nimport ToolbarButton from './toolbar-button';\nimport {browserUpload} from '../../utils/browser';\n\nexport default function ToolbarLoadButton({state}, {translator, projectActions}) {\n\n let loadProjectFromFile = event => {\n event.preventDefault();\n browserUpload().then((data) => {\n projectActions.loadProject(JSON.parse(data));\n });\n };\n\n return (\n \n \n \n );\n}\n\nToolbarLoadButton.propTypes = {\n state: PropTypes.object.isRequired,\n};\n\nToolbarLoadButton.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","export function browserDownload(json) {\n let fileOutputLink = document.createElement('a');\n\n let filename = 'output' + Date.now() + '.json';\n filename = window.prompt('Insert output filename', filename);\n if (!filename) return;\n\n let output = JSON.stringify(json);\n let data = new Blob([output], {type: 'text/plain'});\n let url = window.URL.createObjectURL(data);\n fileOutputLink.setAttribute('download', filename);\n fileOutputLink.href = url;\n fileOutputLink.style.display = 'none';\n document.body.appendChild(fileOutputLink);\n fileOutputLink.click();\n document.body.removeChild(fileOutputLink);\n}\n\nexport function browserUpload() {\n return new Promise(function (resolve, reject) {\n\n let fileInput = document.createElement('input');\n fileInput.type = 'file';\n\n fileInput.addEventListener('change', function (event) {\n let file = event.target.files[0];\n let reader = new FileReader();\n reader.addEventListener('load', (fileEvent) => {\n let loadedData = fileEvent.target.result;\n resolve(loadedData);\n });\n reader.readAsText(file);\n });\n\n fileInput.click();\n });\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport IconSave from 'react-icons/lib/fa/floppy-o';\nimport ToolbarButton from './toolbar-button';\nimport {browserDownload} from '../../utils/browser';\nimport { Project } from '../../class/export';\n\nexport default function ToolbarSaveButton({state}, {translator}) {\n\n let saveProjectToFile = e => {\n e.preventDefault();\n state = Project.unselectAll( state ).updatedState;\n browserDownload(state.get('scene').toJS());\n };\n\n return (\n \n \n \n );\n}\n\nToolbarSaveButton.propTypes = {\n state: PropTypes.object.isRequired,\n};\n\nToolbarSaveButton.contextTypes = {\n translator: PropTypes.object.isRequired,\n};\n","import ToolbarComponents from './toolbar/export';\nimport Content from './content';\nimport SidebarComponents from './sidebar/export';\nimport FooterBarComponents from './footerbar/export';\nimport Viewer2DComponents from './viewer2d/export';\nimport StyleComponents from './style/export';\n\nexport {\n ToolbarComponents,\n Content,\n SidebarComponents,\n FooterBarComponents,\n Viewer2DComponents,\n StyleComponents\n};\n\nexport default {\n ToolbarComponents,\n Content,\n SidebarComponents,\n FooterBarComponents,\n Viewer2DComponents,\n StyleComponents\n};\n","export function objectsMap(object, func){\n let mappedObject = {};\n for (let key in object) {\n mappedObject[key] = func(key, mappedObject[key]);\n }\n return mappedObject;\n}\n\nexport function objectsCompare( x, y ) {\n if ( x === y ) return true;\n if ( ! ( x instanceof Object ) || ! ( y instanceof Object ) ) return false;\n if ( x.constructor !== y.constructor ) return false;\n \n for ( let p in x ) {\n if ( ! x.hasOwnProperty( p ) ) continue;\n if ( ! y.hasOwnProperty( p ) ) return false;\n if ( x[ p ] === y[ p ] ) continue;\n if ( typeof( x[ p ] ) !== 'object' ) return false;\n if ( ! objectsCompare( x[ p ], y[ p ] ) ) return false;\n }\n\n for ( let p in y ) {\n if ( y.hasOwnProperty( p ) && ! x.hasOwnProperty( p ) ) return false;\n }\n\n return true;\n}","import ReactPlannerAreasReducer from './areas-reducer';\nimport ReactPlannerHolesReducer from './holes-reducer';\nimport ReactPlannerItemsReducer from './items-reducer';\nimport ReactPlannerLinesReducer from './lines-reducer';\nimport ReactPlannerGroupsReducer from './groups-reducer';\nimport ReactPlannerProjectReducer from './project-reducer';\nimport ReactPlannerSceneReducer from './scene-reducer';\nimport ReactPlannerVerticesReducer from './vertices-reducer';\nimport ReactPlannerViewer2dReducer from './viewer2d-reducer';\nimport ReactPlannerViewer3dReducer from './viewer3d-reducer';\n\nexport {\n ReactPlannerAreasReducer,\n ReactPlannerHolesReducer,\n ReactPlannerItemsReducer,\n ReactPlannerLinesReducer,\n ReactPlannerGroupsReducer,\n ReactPlannerProjectReducer,\n ReactPlannerSceneReducer,\n ReactPlannerVerticesReducer,\n ReactPlannerViewer2dReducer,\n ReactPlannerViewer3dReducer\n};\n\nexport default {\n ReactPlannerAreasReducer,\n ReactPlannerHolesReducer,\n ReactPlannerItemsReducer,\n ReactPlannerLinesReducer,\n ReactPlannerGroupsReducer,\n ReactPlannerProjectReducer,\n ReactPlannerSceneReducer,\n ReactPlannerVerticesReducer,\n ReactPlannerViewer2dReducer,\n ReactPlannerViewer3dReducer\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {UNITS_LENGTH, UNIT_CENTIMETER} from './../../constants';\nimport convert from 'convert-units';\nimport { FormLabel, FormNumberInput, FormSelect } from '../../components/style/export';\nimport {Map} from 'immutable';\nimport {toFixedFloat} from '../../utils/math';\nimport PropertyStyle from './shared-property-style';\n\nconst internalTableStyle = {borderCollapse: 'collapse'};\nconst secondTdStyle = {padding: 0};\nconst unitContainerStyle = {width: '5em'};\n\nexport default function PropertyLengthMeasure({value, onUpdate, onValid, configs, sourceElement, internalState, state}, {catalog}) {\n\n let length = value.get('length') || 0;\n let _length = value.get('_length') || length;\n let _unit = value.get('_unit') || UNIT_CENTIMETER;\n let { hook, label, ...configRest} = configs;\n\n let update = (lengthInput, unitInput) => {\n\n let newLength = toFixedFloat(lengthInput);\n let merged = value.merge({\n length: unitInput !== UNIT_CENTIMETER ? convert(newLength).from(unitInput).to(UNIT_CENTIMETER) : newLength,\n _length: lengthInput,\n _unit: unitInput\n });\n\n if (hook) {\n return hook(merged, sourceElement, internalState, state).then(val => {\n return onUpdate(val);\n });\n }\n\n return onUpdate(merged);\n };\n\n return (\n \n \n \n \n \n \n \n
{label}\n \n \n \n \n \n \n \n
\n update(event.target.value, _unit)}\n onValid={onValid}\n {...configRest}\n />\n \n update(_length, event.target.value) }>\n {\n UNITS_LENGTH.map(el => )\n }\n \n
\n
\n );\n\n}\n\nPropertyLengthMeasure.propTypes = {\n value: PropTypes.instanceOf(Map).isRequired,\n onUpdate: PropTypes.func.isRequired,\n onValid: PropTypes.func,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n\nPropertyLengthMeasure.contextTypes = {\n catalog: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel, FormTextInput } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nconst tableStyle = {width: \"100%\", borderSpacing: \"2px 0\", marginBottom: \"2px\"};\nconst firstTdStyle = {width: '6em', textTransform:'capitalize'};\n\nexport default function PropertyString({value, onUpdate, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n\n if (configs.hook) {\n return configs.hook(val, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(val);\n };\n\n return (\n \n \n \n \n \n \n \n
{configs.label}\n update(event.target.value)}/>\n
\n );\n}\n\nPropertyString.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import Button from './button';\nimport CancelButton from './cancel-button';\nimport ContentContainer from './content-container';\nimport ContentTitle from './content-title';\nimport DeleteButton from './delete-button';\nimport FormBlock from './form-block';\nimport FormColorInput from './form-color-input';\nimport FormLabel from './form-label';\nimport FormNumberInput from './form-number-input';\nimport FormSelect from './form-select';\nimport FormSlider from './form-slider';\nimport FormSubmitButton from './form-submit-button';\nimport FormTextInput from './form-text-input';\n\nexport {\n Button,\n CancelButton,\n ContentContainer,\n ContentTitle,\n DeleteButton,\n FormBlock,\n FormColorInput,\n FormLabel,\n FormNumberInput,\n FormSelect,\n FormSlider,\n FormSubmitButton,\n FormTextInput\n};\n\nexport default {\n Button,\n CancelButton,\n ContentContainer,\n ContentTitle,\n DeleteButton,\n FormBlock,\n FormColorInput,\n FormLabel,\n FormNumberInput,\n FormSelect,\n FormSlider,\n FormSubmitButton,\n FormTextInput\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { MdSettings, MdUndo, MdDirectionsRun } from 'react-icons/lib/md';\nimport { FaFileO, FaMousePointer, FaPlus } from 'react-icons/lib/fa';\nimport ToolbarButton from './toolbar-button';\nimport ToolbarSaveButton from './toolbar-save-button';\nimport ToolbarLoadButton from './toolbar-load-button';\nimport If from '../../utils/react-if';\nimport {\n MODE_IDLE,\n MODE_3D_VIEW,\n MODE_3D_FIRST_PERSON,\n MODE_VIEWING_CATALOG,\n MODE_CONFIGURING_PROJECT\n} from '../../constants';\nimport * as SharedStyle from '../../shared-style';\n\nconst iconTextStyle = {\n fontSize: '19px',\n textDecoration: 'none',\n fontWeight: 'bold',\n margin: '0px',\n userSelect: 'none'\n};\n\nconst Icon2D = ( {style} ) =>

2D

;\nconst Icon3D = ( {style} ) =>

3D

;\n\nconst ASIDE_STYLE = {\n backgroundColor: SharedStyle.PRIMARY_COLOR.main,\n padding: '10px'\n};\n\nconst sortButtonsCb = (a, b) => {\n if (a.index === undefined || a.index === null) {\n a.index = Number.MAX_SAFE_INTEGER;\n }\n\n if (b.index === undefined || b.index === null) {\n b.index = Number.MAX_SAFE_INTEGER;\n }\n\n return a.index - b.index;\n};\n\nconst mapButtonsCb = (el, ind) => {\n return (\n \n {el.dom}\n \n );\n};\n\nexport default class Toolbar extends Component {\n\n constructor(props, context) {\n super(props, context);\n this.state = {};\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n return this.props.state.mode !== nextProps.state.mode ||\n this.props.height !== nextProps.height ||\n this.props.width !== nextProps.width ||\n this.props.state.alterate !== nextProps.state.alterate;\n }\n\n render() {\n\n let {\n props: { state, width, height, toolbarButtons, allowProjectFileSupport },\n context: { projectActions, viewer3DActions, translator }\n } = this;\n\n let mode = state.get('mode');\n let alterate = state.get('alterate');\n let alterateColor = alterate ? SharedStyle.MATERIAL_COLORS[500].orange : '';\n\n let sorter = [\n {\n index: 0, condition: allowProjectFileSupport, dom: confirm(translator.t('Would you want to start a new Project?')) ? projectActions.newProject() : null}>\n \n \n },\n {\n index: 1, condition: allowProjectFileSupport,\n dom: \n },\n {\n index: 2, condition: allowProjectFileSupport,\n dom: \n },\n {\n index: 3, condition: true,\n dom: projectActions.openCatalog()}>\n \n \n },\n {\n index: 4, condition: true, dom: viewer3DActions.selectTool3DView()}>\n \n \n },\n {\n index: 5, condition: true, dom: projectActions.setMode( MODE_IDLE )}>\n {[MODE_3D_FIRST_PERSON, MODE_3D_VIEW].includes(mode) ? : }\n \n },\n {\n index: 6, condition: true, dom: viewer3DActions.selectTool3DFirstPerson()}>\n \n \n },\n {\n index: 7, condition: true, dom: projectActions.undo()}>\n \n \n },\n {\n index: 8, condition: true, dom: projectActions.openProjectConfigurator()}>\n \n \n }\n ];\n\n sorter = sorter.concat(toolbarButtons.map((Component, key) => {\n return Component.prototype ? //if is a react component\n {\n condition: true,\n dom: React.createElement(Component, { mode, state, key })\n } :\n { //else is a sortable toolbar button\n index: Component.index,\n condition: Component.condition,\n dom: React.createElement(Component.dom, { mode, state, key })\n };\n }));\n\n return (\n \n )\n }\n}\n\nToolbar.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n allowProjectFileSupport: PropTypes.bool.isRequired,\n toolbarButtons: PropTypes.array\n};\n\nToolbar.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n viewer2DActions: PropTypes.object.isRequired,\n viewer3DActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import ToolbarButton from './toolbar-button';\nimport ToolbarSaveButton from './toolbar-save-button';\nimport ToolbarLoadButton from './toolbar-load-button';\nimport Toolbar from './toolbar';\n\nexport {\n ToolbarButton,\n ToolbarSaveButton,\n ToolbarLoadButton,\n Toolbar\n};\n\nexport default {\n ToolbarButton,\n ToolbarSaveButton,\n ToolbarLoadButton,\n Toolbar\n};\n","import { GROUP_ACTIONS } from '../constants';\n\nexport function addGroup() {\n return {\n type: GROUP_ACTIONS.ADD_GROUP\n };\n}\n\nexport function addGroupFromSelected() {\n return {\n type: GROUP_ACTIONS.ADD_GROUP_FROM_SELECTED\n };\n}\n\nexport function selectGroup(groupID) {\n return {\n type: GROUP_ACTIONS.SELECT_GROUP,\n groupID\n };\n}\n\nexport function unselectGroup(groupID) {\n return {\n type: GROUP_ACTIONS.UNSELECT_GROUP,\n groupID\n };\n}\n\nexport function addToGroup( groupID, layerID, elementPrototype, elementID ) {\n return {\n type: GROUP_ACTIONS.ADD_TO_GROUP,\n groupID,\n layerID,\n elementPrototype,\n elementID\n };\n}\n\nexport function removeFromGroup( groupID, layerID, elementPrototype, elementID ) {\n return {\n type: GROUP_ACTIONS.REMOVE_FROM_GROUP,\n groupID,\n layerID,\n elementPrototype,\n elementID\n };\n}\n\nexport function setGroupAttributes( groupID, attributes ) {\n return {\n type: GROUP_ACTIONS.SET_GROUP_ATTRIBUTES,\n groupID,\n attributes\n };\n}\n\nexport function setGroupProperties( groupID, properties ) {\n return {\n type: GROUP_ACTIONS.SET_GROUP_PROPERTIES,\n groupID,\n properties\n };\n}\n\nexport function setGroupBarycenter( groupID, barycenter ) {\n return {\n type: GROUP_ACTIONS.SET_GROUP_BARYCENTER,\n groupID,\n barycenter\n };\n}\n\nexport function removeGroup( groupID ) {\n return {\n type: GROUP_ACTIONS.REMOVE_GROUP,\n groupID\n };\n}\n\nexport function removeGroupAndDeleteElements( groupID ) {\n return {\n type: GROUP_ACTIONS.REMOVE_GROUP_AND_DELETE_ELEMENTS,\n groupID\n };\n}\n\nexport function groupTranslate( groupID, x, y ) {\n return {\n type: GROUP_ACTIONS.GROUP_TRANSLATE,\n groupID,\n x,\n y\n };\n}\n\nexport function groupRotate( groupID, rotation ) {\n return {\n type: GROUP_ACTIONS.GROUP_ROTATE,\n groupID,\n rotation\n };\n}\n","import {SELECT_AREA} from '../constants';\n\nexport function selectArea(layerID, areaID) {\n return {\n type: SELECT_AREA,\n layerID,\n areaID\n }\n}\n","import {\n SELECT_ITEM,\n SELECT_TOOL_DRAWING_ITEM,\n UPDATE_DRAWING_ITEM,\n END_DRAWING_ITEM,\n BEGIN_DRAGGING_ITEM,\n UPDATE_DRAGGING_ITEM,\n END_DRAGGING_ITEM,\n BEGIN_ROTATING_ITEM,\n UPDATE_ROTATING_ITEM,\n END_ROTATING_ITEM\n} from '../constants';\n\nexport function selectItem(layerID, itemID) {\n return {\n type: SELECT_ITEM,\n layerID,\n itemID\n }\n}\n\nexport function selectToolDrawingItem(sceneComponentType) {\n return {\n type: SELECT_TOOL_DRAWING_ITEM,\n sceneComponentType\n }\n}\n\nexport function updateDrawingItem(layerID, x, y) {\n return {\n type: UPDATE_DRAWING_ITEM,\n layerID, x, y\n }\n}\n\nexport function endDrawingItem(layerID, x, y) {\n return {\n type: END_DRAWING_ITEM,\n layerID, x, y\n }\n}\n\nexport function beginDraggingItem(layerID, itemID, x, y) {\n return {\n type: BEGIN_DRAGGING_ITEM,\n layerID, itemID, x, y\n }\n}\n\nexport function updateDraggingItem(x, y) {\n return {\n type: UPDATE_DRAGGING_ITEM,\n x, y\n }\n}\n\nexport function endDraggingItem(x, y) {\n return {\n type: END_DRAGGING_ITEM,\n x, y\n }\n}\n\nexport function beginRotatingItem(layerID, itemID, x, y) {\n return {\n type: BEGIN_ROTATING_ITEM,\n layerID, itemID, x, y\n }\n}\n\nexport function updateRotatingItem(x, y) {\n return {\n type: UPDATE_ROTATING_ITEM,\n x, y\n }\n}\n\nexport function endRotatingItem(x, y) {\n return {\n type: END_ROTATING_ITEM,\n x, y\n }\n}\n","import {BEGIN_DRAGGING_VERTEX, UPDATE_DRAGGING_VERTEX, END_DRAGGING_VERTEX} from '../constants'\n\nexport function beginDraggingVertex(layerID, vertexID, x, y, snapMask) {\n return {\n type: BEGIN_DRAGGING_VERTEX,\n layerID, vertexID, x, y, snapMask\n }\n}\n\nexport function updateDraggingVertex(x, y, snapMask) {\n return {\n type: UPDATE_DRAGGING_VERTEX,\n x, y, snapMask\n }\n}\n\nexport function endDraggingVertex(x, y, snapMask) {\n return {\n type: END_DRAGGING_VERTEX,\n x, y, snapMask\n\n }\n}\n","import {SELECT_LAYER, ADD_LAYER, SET_LAYER_PROPERTIES, REMOVE_LAYER} from '../constants';\n\nexport function selectLayer(layerID) {\n return {\n type: SELECT_LAYER,\n layerID\n }\n}\n\nexport function addLayer(name, altitude) {\n return {\n type: ADD_LAYER,\n name, altitude\n }\n}\n\nexport function setLayerProperties(layerID, properties) {\n return {\n type: SET_LAYER_PROPERTIES,\n layerID,\n properties\n }\n}\n\nexport function removeLayer(layerID) {\n return {\n type: REMOVE_LAYER,\n layerID,\n }\n}\n","import {\n SELECT_HOLE,\n SELECT_TOOL_DRAWING_HOLE,\n UPDATE_DRAWING_HOLE,\n END_DRAWING_HOLE,\n BEGIN_DRAGGING_HOLE,\n UPDATE_DRAGGING_HOLE,\n END_DRAGGING_HOLE\n} from '../constants';\n\nexport function selectHole(layerID, holeID) {\n return {\n type: SELECT_HOLE,\n layerID,\n holeID\n }\n}\n\nexport function selectToolDrawingHole(sceneComponentType) {\n return {\n type: SELECT_TOOL_DRAWING_HOLE,\n sceneComponentType\n }\n}\n\nexport function updateDrawingHole(layerID, x, y) {\n return {\n type: UPDATE_DRAWING_HOLE,\n layerID, x, y\n }\n}\n\nexport function endDrawingHole(layerID, x, y) {\n return {\n type: END_DRAWING_HOLE,\n layerID, x, y\n }\n}\n\n\nexport function beginDraggingHole(layerID, holeID, x, y) {\n return {\n type: BEGIN_DRAGGING_HOLE,\n layerID, holeID, x, y\n };\n}\n\nexport function updateDraggingHole(x, y) {\n return {\n type: UPDATE_DRAGGING_HOLE,\n x, y\n }\n}\n\nexport function endDraggingHole(x, y) {\n return {\n type: END_DRAGGING_HOLE,\n x, y\n }\n}\n","import {\n SELECT_LINE,\n SELECT_TOOL_DRAWING_LINE,\n BEGIN_DRAWING_LINE,\n UPDATE_DRAWING_LINE,\n END_DRAWING_LINE,\n BEGIN_DRAGGING_LINE,\n UPDATE_DRAGGING_LINE,\n END_DRAGGING_LINE\n} from '../constants';\n\nexport function selectLine(layerID, lineID) {\n return {\n type: SELECT_LINE,\n layerID,\n lineID\n }\n}\n\nexport function selectToolDrawingLine(sceneComponentType) {\n return {\n type: SELECT_TOOL_DRAWING_LINE,\n sceneComponentType\n }\n}\n\nexport function beginDrawingLine(layerID, x, y, snapMask) {\n return {\n type: BEGIN_DRAWING_LINE,\n layerID, x, y, snapMask\n }\n}\n\nexport function updateDrawingLine(x, y, snapMask) {\n return {\n type: UPDATE_DRAWING_LINE,\n x, y, snapMask\n }\n}\n\nexport function endDrawingLine(x, y, snapMask) {\n return {\n type: END_DRAWING_LINE,\n x, y, snapMask\n }\n}\n\nexport function beginDraggingLine(layerID, lineID, x, y, snapMask) {\n return {\n type: BEGIN_DRAGGING_LINE,\n layerID, lineID, x, y, snapMask\n }\n}\n\nexport function updateDraggingLine(x, y, snapMask) {\n return {\n type: UPDATE_DRAGGING_LINE,\n x, y, snapMask\n }\n}\n\nexport function endDraggingLine(x, y, snapMask) {\n return {\n type: END_DRAGGING_LINE,\n x, y, snapMask\n }\n}\n","import {SELECT_TOOL_3D_VIEW, SELECT_TOOL_3D_FIRST_PERSON} from '../constants';\n\nexport function selectTool3DView() {\n return {\n type: SELECT_TOOL_3D_VIEW\n }\n}\n\n\nexport function selectTool3DFirstPerson() {\n return {\n type: SELECT_TOOL_3D_FIRST_PERSON\n }\n}\n\n\n","import {UPDATE_2D_CAMERA, SELECT_TOOL_PAN, SELECT_TOOL_ZOOM_IN, SELECT_TOOL_ZOOM_OUT} from '../constants';\n\nexport function updateCameraView(value) {\n return {\n type: UPDATE_2D_CAMERA,\n value\n }\n}\n\nexport function selectToolPan() {\n return {\n type: SELECT_TOOL_PAN\n };\n}\n\nexport function selectToolZoomOut() {\n return {\n type: SELECT_TOOL_ZOOM_OUT\n };\n}\n\nexport function selectToolZoomIn() {\n return {\n type: SELECT_TOOL_ZOOM_IN\n };\n}\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport {bindActionCreators} from 'redux';\nimport {connect} from 'react-redux';\n\nimport Translator from './translator/translator';\nimport Catalog from './catalog/catalog';\nimport actions from './actions/export';\nimport {objectsMap} from './utils/objects-utils';\nimport {\n ToolbarComponents,\n Content,\n SidebarComponents,\n FooterBarComponents\n} from './components/export';\nimport {VERSION} from './version';\nimport './styles/export';\n\nconst {Toolbar} = ToolbarComponents;\nconst {Sidebar} = SidebarComponents;\nconst {FooterBar} = FooterBarComponents;\n\nconst toolbarW = 50;\nconst sidebarW = 300;\nconst footerBarH= 20;\n\nconst wrapperStyle = {\n display: 'flex',\n flexFlow: 'row nowrap'\n};\n\nclass ReactPlanner extends Component {\n\n getChildContext() {\n return {\n ...objectsMap(actions, actionNamespace => this.props[actionNamespace]),\n translator: this.props.translator,\n catalog: this.props.catalog,\n }\n }\n\n componentWillMount() {\n let {store} = this.context;\n let {projectActions, catalog, stateExtractor, plugins} = this.props;\n plugins.forEach(plugin => plugin(store, stateExtractor));\n projectActions.initCatalog(catalog);\n }\n\n componentWillReceiveProps(nextProps) {\n let {stateExtractor, state, projectActions, catalog} = nextProps;\n let plannerState = stateExtractor(state);\n let catalogReady = plannerState.getIn(['catalog', 'ready']);\n if (!catalogReady) {\n projectActions.initCatalog(catalog);\n }\n }\n\n render() {\n let {width, height, state, stateExtractor, ...props} = this.props;\n\n let contentW = width - toolbarW - sidebarW;\n let toolbarH = height - footerBarH;\n let contentH = height - footerBarH;\n let sidebarH = height - footerBarH;\n\n let extractedState = stateExtractor(state);\n\n return (\n
\n \n event.preventDefault()} />\n \n \n
\n );\n }\n}\n\nReactPlanner.propTypes = {\n translator: PropTypes.instanceOf(Translator),\n catalog: PropTypes.instanceOf(Catalog),\n allowProjectFileSupport: PropTypes.bool,\n plugins: PropTypes.arrayOf(PropTypes.func),\n autosaveKey: PropTypes.string,\n autosaveDelay: PropTypes.number,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n stateExtractor: PropTypes.func.isRequired,\n toolbarButtons: PropTypes.array,\n sidebarComponents: PropTypes.array,\n footerbarComponents: PropTypes.array,\n customContents: PropTypes.object,\n softwareSignature: PropTypes.string\n};\n\nReactPlanner.contextTypes = {\n store: PropTypes.object.isRequired,\n};\n\nReactPlanner.childContextTypes = {\n ...objectsMap(actions, () => PropTypes.object),\n translator: PropTypes.object,\n catalog: PropTypes.object,\n};\n\nReactPlanner.defaultProps = {\n translator: new Translator(),\n catalog: new Catalog(),\n plugins: [],\n allowProjectFileSupport: true,\n softwareSignature: `React-Planner ${VERSION}`,\n toolbarButtons: [],\n sidebarComponents: [],\n footerbarComponents: [],\n customContents: {},\n};\n\n//redux connect\nfunction mapStateToProps(reduxState) {\n return {\n state: reduxState\n }\n}\n\nfunction mapDispatchToProps(dispatch) {\n return objectsMap(actions, actionNamespace => bindActionCreators(actions[actionNamespace], dispatch));\n}\n\nexport default connect(mapStateToProps, mapDispatchToProps)(ReactPlanner);\n","import {\n MODE_3D_VIEW,\n MODE_3D_FIRST_PERSON,\n SELECT_TOOL_3D_VIEW,\n SELECT_TOOL_3D_FIRST_PERSON\n} from '../constants';\nimport { Project } from '../class/export';\nimport { history } from '../utils/export';\n\nexport default function (state, action) {\n\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n\n switch (action.type) {\n case SELECT_TOOL_3D_VIEW:\n state = Project.rollback( state ).updatedState;\n state = Project.setMode( state, MODE_3D_VIEW ).updatedState;\n return state;\n\n case SELECT_TOOL_3D_FIRST_PERSON:\n state = Project.rollback( state ).updatedState;\n state = Project.setMode( state, MODE_3D_FIRST_PERSON ).updatedState;\n return state;\n\n default:\n return state;\n }\n}\n","import {\n UPDATE_2D_CAMERA,\n SELECT_TOOL_PAN,\n SELECT_TOOL_ZOOM_IN,\n SELECT_TOOL_ZOOM_OUT,\n MODE_2D_PAN,\n MODE_2D_ZOOM_IN,\n MODE_2D_ZOOM_OUT\n} from '../constants';\nimport {fromJS} from 'immutable';\n\nexport default function (state, action) {\n switch (action.type) {\n case UPDATE_2D_CAMERA:\n return state.merge({\n viewer2D: fromJS(action.value)\n });\n\n case SELECT_TOOL_PAN:\n return state.set('mode', MODE_2D_PAN);\n\n case SELECT_TOOL_ZOOM_IN:\n return state.set('mode', MODE_2D_ZOOM_IN);\n\n case SELECT_TOOL_ZOOM_OUT:\n return state.set('mode', MODE_2D_ZOOM_OUT);\n }\n}\n","import {\n BEGIN_DRAGGING_VERTEX,\n UPDATE_DRAGGING_VERTEX,\n END_DRAGGING_VERTEX\n} from '../constants';\nimport { Vertex } from '../class/export';\n\nexport default function (state, action) {\n switch (action.type) {\n case BEGIN_DRAGGING_VERTEX:\n return Vertex.beginDraggingVertex( state, action.layerID, action.vertexID, action.x, action.y ).updatedState;\n\n case UPDATE_DRAGGING_VERTEX:\n return Vertex.updateDraggingVertex( state, action.x, action.y ).updatedState;\n\n case END_DRAGGING_VERTEX:\n return Vertex.endDraggingVertex( state, action.x, action.y ).updatedState;\n\n default:\n return state;\n }\n}\n","import { Layer } from '../class/export';\nimport { history } from '../utils/export';\nimport {\n ADD_LAYER,\n SELECT_LAYER,\n SET_LAYER_PROPERTIES,\n REMOVE_LAYER\n} from '../constants';\n\nexport default function (state, action) {\n\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n\n switch (action.type) {\n case ADD_LAYER:\n return Layer.create( state, action.name, action.altitude).updatedState;\n\n case SELECT_LAYER:\n return Layer.select( state, action.layerID ).updatedState;\n\n case SET_LAYER_PROPERTIES:\n return Layer.setProperties( state, action.layerID, action.properties ).updatedState;\n\n case REMOVE_LAYER:\n return Layer.remove( state, action.layerID ).updatedState;\n\n default:\n return state;\n }\n}\n","import { history } from '../utils/export';\nimport {\n LOAD_PROJECT,\n NEW_PROJECT,\n OPEN_CATALOG,\n SELECT_TOOL_EDIT,\n MODE_IDLE,\n UNSELECT_ALL,\n SET_PROPERTIES,\n SET_ITEMS_ATTRIBUTES,\n SET_LINES_ATTRIBUTES,\n SET_HOLES_ATTRIBUTES,\n REMOVE,\n UNDO,\n ROLLBACK,\n SET_PROJECT_PROPERTIES,\n OPEN_PROJECT_CONFIGURATOR,\n INIT_CATALOG,\n UPDATE_MOUSE_COORDS,\n UPDATE_ZOOM_SCALE,\n TOGGLE_SNAP,\n CHANGE_CATALOG_PAGE,\n GO_BACK_TO_CATALOG_PAGE,\n THROW_ERROR,\n THROW_WARNING,\n COPY_PROPERTIES,\n PASTE_PROPERTIES,\n PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,\n ALTERATE_STATE,\n SET_MODE,\n ADD_HORIZONTAL_GUIDE,\n ADD_VERTICAL_GUIDE,\n ADD_CIRCULAR_GUIDE,\n REMOVE_HORIZONTAL_GUIDE,\n REMOVE_VERTICAL_GUIDE,\n REMOVE_CIRCULAR_GUIDE\n} from '../constants';\n\nimport { Project } from '../class/export';\n\nexport default function (state, action) {\n\n switch (action.type) {\n case NEW_PROJECT:\n return Project.newProject(state).updatedState;\n\n case LOAD_PROJECT:\n return Project.loadProject(state, action.sceneJSON).updatedState;\n\n case OPEN_CATALOG:\n return Project.openCatalog(state).updatedState;\n\n case CHANGE_CATALOG_PAGE:\n return Project.changeCatalogPage( state, action.oldPage, action.newPage ).updatedState;\n\n case GO_BACK_TO_CATALOG_PAGE:\n return Project.goBackToCatalogPage( state, action.newPage ).updatedState;\n\n case SELECT_TOOL_EDIT:\n return Project.setMode(state, MODE_IDLE).updatedState;\n\n case UNSELECT_ALL:\n return Project.unselectAll(state).updatedState;\n\n case SET_PROPERTIES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.setProperties(state, state.getIn(['scene', 'selectedLayer']), action.properties).updatedState;\n\n case SET_ITEMS_ATTRIBUTES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.setItemsAttributes(state, action.itemsAttributes).updatedState;\n\n case SET_LINES_ATTRIBUTES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.setLinesAttributes(state, action.linesAttributes).updatedState;\n\n case SET_HOLES_ATTRIBUTES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.setHolesAttributes(state, action.holesAttributes).updatedState;\n\n case REMOVE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.remove(state).updatedState;\n\n case UNDO:\n return Project.undo(state).updatedState;\n\n case ROLLBACK:\n return Project.rollback(state).updatedState;\n\n case SET_PROJECT_PROPERTIES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.setProjectProperties(state, action.properties).updatedState;\n\n case OPEN_PROJECT_CONFIGURATOR:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.openProjectConfigurator(state).updatedState;\n\n case INIT_CATALOG:\n return Project.initCatalog(state, action.catalog).updatedState;\n\n case UPDATE_MOUSE_COORDS:\n return Project.updateMouseCoord(state, action.coords).updatedState;\n\n case UPDATE_ZOOM_SCALE:\n return Project.updateZoomScale(state, action.scale).updatedState;\n\n case TOGGLE_SNAP:\n return Project.toggleSnap(state, action.mask).updatedState;\n\n case THROW_ERROR:\n return Project.throwError(state, action.error).updatedState;\n\n case THROW_WARNING:\n return Project.throwWarning(state, action.warning).updatedState;\n\n case COPY_PROPERTIES:\n return Project.copyProperties(state, action.properties).updatedState;\n\n case PASTE_PROPERTIES:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.pasteProperties(state).updatedState;\n\n case PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY:\n return Project.pushLastSelectedCatalogElementToHistory(state, action.element).updatedState;\n\n case ALTERATE_STATE:\n return Project.setAlterate( state ).updatedState;\n \n case SET_MODE:\n return Project.setMode(state, action.mode).updatedState;\n \n case ADD_HORIZONTAL_GUIDE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Project.addHorizontalGuide(state, action.coordinate).updatedState;\n \n case ADD_VERTICAL_GUIDE:\n return Project.addVerticalGuide(state, action.coordinate).updatedState;\n \n case ADD_CIRCULAR_GUIDE:\n return Project.addCircularGuide(state, action.x, action.y, action.radius).updatedState;\n\n case REMOVE_HORIZONTAL_GUIDE:\n return Project.removeHorizontalGuide(state, action.guideID).updatedState;\n\n case REMOVE_VERTICAL_GUIDE:\n return Project.removeVerticalGuide(state, action.guideID).updatedState;\n\n case REMOVE_CIRCULAR_GUIDE:\n return Project.removeCircularGuide(state, action.guideID).updatedState;\n\n default:\n return state;\n\n }\n}\n","import { GROUP_ACTIONS } from '../constants';\nimport { Group } from '../class/export';\nimport { history } from '../utils/export';\n\nexport default function (state, action) {\n\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n\n switch (action.type) {\n case GROUP_ACTIONS.ADD_GROUP:\n return Group.create(state).updatedState;\n\n case GROUP_ACTIONS.ADD_GROUP_FROM_SELECTED:\n return Group.createFromSelectedElements(state).updatedState;\n\n case GROUP_ACTIONS.SELECT_GROUP:\n return Group.select(state, action.groupID).updatedState;\n\n case GROUP_ACTIONS.UNSELECT_GROUP:\n return Group.unselect(state, action.groupID).updatedState;\n\n case GROUP_ACTIONS.ADD_TO_GROUP:\n return Group.addElement(state, action.groupID, action.layerID, action.elementPrototype, action.elementID).updatedState;\n\n case GROUP_ACTIONS.REMOVE_FROM_GROUP:\n return Group.removeElement(state, action.groupID, action.layerID, action.elementPrototype, action.elementID).updatedState;\n\n case GROUP_ACTIONS.SET_GROUP_ATTRIBUTES:\n return Group.setAttributes(state, action.groupID, action.attributes).updatedState;\n\n case GROUP_ACTIONS.SET_GROUP_PROPERTIES:\n return Group.setProperties(state, action.groupID, action.properties).updatedState;\n\n case GROUP_ACTIONS.SET_GROUP_BARYCENTER:\n return Group.setBarycenter(state, action.groupID, action.barycenter.get('x'), action.barycenter.get('y')).updatedState;\n\n case GROUP_ACTIONS.REMOVE_GROUP:\n return Group.remove(state, action.groupID).updatedState;\n\n case GROUP_ACTIONS.REMOVE_GROUP_AND_DELETE_ELEMENTS:\n return Group.removeAndDeleteElements(state, action.groupID).updatedState;\n\n case GROUP_ACTIONS.GROUP_TRANSLATE:\n return Group.translate(state, action.groupID, action.x, action.y).updatedState;\n\n case GROUP_ACTIONS.GROUP_ROTATE:\n return Group.rotate(state, action.groupID, action.rotation).updatedState;\n\n default:\n return state;\n }\n}\n\n","import { Line } from '../class/export';\nimport { history } from '../utils/export';\nimport {\n SELECT_TOOL_DRAWING_LINE,\n BEGIN_DRAWING_LINE,\n UPDATE_DRAWING_LINE,\n END_DRAWING_LINE,\n BEGIN_DRAGGING_LINE,\n UPDATE_DRAGGING_LINE,\n END_DRAGGING_LINE,\n SELECT_LINE\n} from '../constants';\n\nexport default function (state, action) {\n\n switch (action.type) {\n case SELECT_TOOL_DRAWING_LINE:\n return Line.selectToolDrawingLine(state, action.sceneComponentType).updatedState;\n\n case BEGIN_DRAWING_LINE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Line.beginDrawingLine(state, action.layerID, action.x, action.y).updatedState;\n\n case UPDATE_DRAWING_LINE:\n return Line.updateDrawingLine(state, action.x, action.y).updatedState;\n\n case END_DRAWING_LINE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Line.endDrawingLine(state, action.x, action.y).updatedState;\n\n case BEGIN_DRAGGING_LINE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Line.beginDraggingLine(state, action.layerID, action.lineID, action.x, action.y).updatedState;\n\n case UPDATE_DRAGGING_LINE:\n return Line.updateDraggingLine(state, action.x, action.y).updatedState;\n\n case END_DRAGGING_LINE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Line.endDraggingLine(state, action.x, action.y).updatedState;\n\n case SELECT_LINE:\n return Line.select(state, action.layerID, action.lineID).updatedState;\n\n default:\n return state;\n }\n}\n","import { Item } from '../class/export';\nimport { history } from '../utils/export';\nimport {\n SELECT_TOOL_DRAWING_ITEM,\n UPDATE_DRAWING_ITEM,\n END_DRAWING_ITEM,\n BEGIN_DRAGGING_ITEM,\n UPDATE_DRAGGING_ITEM,\n END_DRAGGING_ITEM,\n BEGIN_ROTATING_ITEM,\n UPDATE_ROTATING_ITEM,\n END_ROTATING_ITEM,\n SELECT_ITEM\n} from '../constants';\n\nexport default function (state, action) {\n switch (action.type) {\n case SELECT_ITEM:\n return Item.select(state, action.layerID, action.itemID).updatedState;\n\n case SELECT_TOOL_DRAWING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.selectToolDrawingItem(state, action.sceneComponentType).updatedState;\n\n case UPDATE_DRAWING_ITEM:\n return Item.updateDrawingItem(state, action.layerID, action.x, action.y).updatedState;\n\n case END_DRAWING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.endDrawingItem(state, action.layerID, action.x, action.y).updatedState;\n\n case BEGIN_DRAGGING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.beginDraggingItem(state, action.layerID, action.itemID, action.x, action.y).updatedState;\n\n case UPDATE_DRAGGING_ITEM:\n return Item.updateDraggingItem(state, action.x, action.y).updatedState;\n\n case END_DRAGGING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.endDraggingItem(state, action.x, action.y).updatedState;\n\n case BEGIN_ROTATING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.beginRotatingItem(state, action.layerID, action.itemID, action.x, action.y).updatedState;\n\n case UPDATE_ROTATING_ITEM:\n return Item.updateRotatingItem(state, action.x, action.y).updatedState;\n\n case END_ROTATING_ITEM:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Item.endRotatingItem(state, action.x, action.y).updatedState;\n\n default:\n return state;\n }\n}\n","import { Hole } from '../class/export';\nimport { history } from '../utils/export';\nimport {\n SELECT_TOOL_DRAWING_HOLE,\n UPDATE_DRAWING_HOLE,\n END_DRAWING_HOLE,\n BEGIN_DRAGGING_HOLE,\n UPDATE_DRAGGING_HOLE,\n END_DRAGGING_HOLE,\n SELECT_HOLE,\n} from '../constants';\n\nexport default function (state, action) {\n switch (action.type) {\n case SELECT_TOOL_DRAWING_HOLE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Hole.selectToolDrawingHole(state, action.sceneComponentType).updatedState;\n\n case UPDATE_DRAWING_HOLE:\n return Hole.updateDrawingHole(state, action.layerID, action.x, action.y).updatedState;\n\n case END_DRAWING_HOLE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Hole.endDrawingHole(state, action.layerID, action.x, action.y).updatedState;\n\n case BEGIN_DRAGGING_HOLE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Hole.beginDraggingHole(state, action.layerID, action.holeID, action.x, action.y).updatedState;\n\n case UPDATE_DRAGGING_HOLE:\n return Hole.updateDraggingHole(state, action.x, action.y).updatedState;\n\n case END_DRAGGING_HOLE:\n state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\n return Hole.endDraggingHole(state, action.x, action.y).updatedState;\n\n case SELECT_HOLE:\n return Hole.select( state, action.layerID, action.holeID ).updatedState;\n\n default:\n return state;\n }\n}\n","import { IDBroker } from '../utils/export';\n\nclass HorizontalGuide {\n static create(state, coordinate) {\n let hGuideID = IDBroker.acquireID();\n state = state.setIn(['scene', 'guides', 'horizontal', hGuideID], coordinate);\n\n return { updatedState: state };\n }\n\n static remove(state, hGuideID) {\n state = state.deleteIn(['scene', 'guides', 'horizontal', hGuideID]);\n\n return { updatedState: state };\n }\n};\n\nclass VerticalGuide {\n static create(state, coordinate) {\n let vGuideID = IDBroker.acquireID();\n state = state.setIn(['scene', 'guides', 'vertical', vGuideID], coordinate);\n\n return { updatedState: state };\n }\n\n static remove(state, vGuideID) {\n state = state.deleteIn(['scene', 'guides', 'vertical', vGuideID]);\n\n return { updatedState: state };\n }\n};\n\nclass CircularGuide {\n};\n\nexport {\n HorizontalGuide,\n VerticalGuide,\n CircularGuide\n};\n\nexport default {\n HorizontalGuide,\n VerticalGuide,\n CircularGuide\n};\n","import { Layer, Group } from './export';\nimport {\n IDBroker,\n NameGenerator\n} from '../utils/export';\nimport { Map, fromJS } from 'immutable';\n\nimport {\n MODE_IDLE,\n MODE_DRAWING_ITEM,\n MODE_DRAGGING_ITEM,\n MODE_ROTATING_ITEM\n} from '../constants';\n\nclass Item{\n\n static create( state, layerID, type, x, y, width, height, rotation ) {\n let itemID = IDBroker.acquireID();\n\n let item = state.catalog.factoryElement(type, {\n id: itemID,\n name: NameGenerator.generateName('items', state.catalog.getIn(['elements', type, 'info', 'title'])),\n type,\n height,\n width,\n x,\n y,\n rotation\n });\n\n state = state.setIn(['scene', 'layers', layerID, 'items', itemID], item);\n\n return { updatedState: state, item };\n }\n\n static select( state, layerID, itemID ){\n state = Layer.select( state, layerID ).updatedState;\n state = Layer.selectElement( state, layerID, 'items', itemID ).updatedState;\n\n return {updatedState: state};\n }\n\n static remove( state, layerID, itemID ) {\n state = this.unselect( state, layerID, itemID ).updatedState;\n state = Layer.removeElement( state, layerID, 'items', itemID ).updatedState;\n\n state.getIn(['scene', 'groups']).forEach( group => state = Group.removeElement(state, group.id, layerID, 'items', itemID).updatedState );\n\n return { updatedState: state };\n }\n\n static unselect( state, layerID, itemID ) {\n state = Layer.unselect( state, layerID, 'items', itemID ).updatedState;\n\n return { updatedState: state };\n }\n\n static selectToolDrawingItem(state, sceneComponentType) {\n state = state.merge({\n mode: MODE_DRAWING_ITEM,\n drawingSupport: new Map({\n type: sceneComponentType\n })\n });\n\n return { updatedState: state };\n }\n\n static updateDrawingItem(state, layerID, x, y) {\n if (state.hasIn(['drawingSupport','currentID'])) {\n state = state.updateIn(['scene', 'layers', layerID, 'items', state.getIn(['drawingSupport','currentID'])], item => item.merge({x, y}));\n }\n else {\n let { updatedState: stateI, item } = this.create( state, layerID, state.getIn(['drawingSupport','type']), x, y, 200, 100, 0);\n state = Item.select( stateI, layerID, item.id ).updatedState;\n state = state.setIn(['drawingSupport','currentID'], item.id);\n }\n\n return { updatedState: state };\n }\n\n static endDrawingItem(state, layerID, x, y) {\n let catalog = state.catalog;\n state = this.updateDrawingItem(state, layerID, x, y, catalog).updatedState;\n state = Layer.unselectAll( state, layerID ).updatedState;\n state = state.merge({\n drawingSupport: Map({\n type: state.drawingSupport.get('type')\n })\n });\n\n return { updatedState: state };\n }\n\n static beginDraggingItem(state, layerID, itemID, x, y) {\n\n let item = state.getIn(['scene', 'layers', layerID, 'items', itemID]);\n\n state = state.merge({\n mode: MODE_DRAGGING_ITEM,\n draggingSupport: Map({\n layerID,\n itemID,\n startPointX: x,\n startPointY: y,\n originalX: item.x,\n originalY: item.y\n })\n });\n\n return { updatedState: state };\n }\n\n static updateDraggingItem(state, x, y) {\n let {draggingSupport, scene} = state;\n\n let layerID = draggingSupport.get('layerID');\n let itemID = draggingSupport.get('itemID');\n let startPointX = draggingSupport.get('startPointX');\n let startPointY = draggingSupport.get('startPointY');\n let originalX = draggingSupport.get('originalX');\n let originalY = draggingSupport.get('originalY');\n\n let diffX = startPointX - x;\n let diffY = startPointY - y;\n\n let item = scene.getIn(['layers', layerID, 'items', itemID]);\n item = item.merge({\n x: originalX - diffX,\n y: originalY - diffY\n });\n\n state = state.merge({\n scene: scene.mergeIn(['layers', layerID, 'items', itemID], item)\n });\n\n return { updatedState: state };\n }\n\n static endDraggingItem(state, x, y) {\n state = this.updateDraggingItem(state, x, y).updatedState;\n state = state.merge({ mode: MODE_IDLE });\n\n return { updatedState: state };\n }\n\n static beginRotatingItem(state, layerID, itemID, x, y) {\n state = state.merge({\n mode: MODE_ROTATING_ITEM,\n rotatingSupport: Map({\n layerID,\n itemID\n })\n });\n\n return { updatedState: state };\n }\n\n static updateRotatingItem(state, x, y) {\n let {rotatingSupport, scene} = state;\n\n let layerID = rotatingSupport.get('layerID');\n let itemID = rotatingSupport.get('itemID');\n let item = state.getIn(['scene', 'layers', layerID, 'items', itemID]);\n\n let deltaX = x - item.x;\n let deltaY = y - item.y;\n let rotation = Math.atan2(deltaY, deltaX) * 180 / Math.PI - 90;\n\n if (-5 < rotation && rotation < 5) rotation = 0;\n if (-95 < rotation && rotation < -85) rotation = -90;\n if (-185 < rotation && rotation < -175) rotation = -180;\n if (85 < rotation && rotation < 90) rotation = 90;\n if (-270 < rotation && rotation < -265) rotation = 90;\n\n item = item.merge({\n rotation,\n });\n\n state = state.merge({\n scene: scene.mergeIn(['layers', layerID, 'items', itemID], item)\n });\n\n return { updatedState: state };\n }\n\n static endRotatingItem(state, x, y) {\n state = this.updateRotatingItem(state, x, y).updatedState;\n state = state.merge({ mode: MODE_IDLE });\n\n return { updatedState: state };\n }\n\n static setProperties( state, layerID, itemID, properties ) {\n state = state.mergeIn(['scene', 'layers', layerID, 'items', itemID, 'properties'], properties);\n\n return { updatedState: state };\n }\n\n static setJsProperties( state, layerID, itemID, properties ) {\n return this.setProperties( state, layerID, itemID, fromJS(properties) );\n }\n\n static updateProperties( state, layerID, itemID, properties) {\n properties.forEach( ( v, k ) => {\n if( state.hasIn(['scene', 'layers', layerID, 'items', itemID, 'properties', k]) )\n state = state.mergeIn(['scene', 'layers', layerID, 'items', itemID, 'properties', k], v);\n });\n\n return { updatedState: state };\n }\n\n static updateJsProperties( state, layerID, itemID, properties) {\n return this.updateProperties( state, layerID, itemID, fromJS(properties) );\n }\n\n static setAttributes( state, layerID, itemID, itemAttributes) {\n state = state.mergeIn(['scene', 'layers', layerID, 'items', itemID], itemAttributes);\n return { updatedState: state };\n }\n\n static setJsAttributes( state, layerID, itemID, itemAttributes) {\n itemAttributes = fromJS(itemAttributes);\n return this.setAttributes(state, layerID, itemID, itemAttributes);\n }\n\n}\n\nexport { Item as default };\n","import { fromJS } from 'immutable';\nimport { Layer, Vertex, Group } from './export';\nimport {\n IDBroker,\n NameGenerator\n} from '../utils/export';\n\nclass Area{\n\n static add( state, layerID, type, verticesCoords, catalog ) {\n\n let area;\n\n let layer = state.getIn(['scene', 'layers', layerID]);\n\n layer = layer.withMutations(layer => {\n let areaID = IDBroker.acquireID();\n\n let vertices = verticesCoords.map( ( v ) => Vertex.add( state, layerID, v.x, v.y, 'areas', areaID).vertex.id );\n\n area = catalog.factoryElement(type, {\n id: areaID,\n name: NameGenerator.generateName('areas', catalog.getIn(['elements', type, 'info', 'title'])),\n type,\n prototype: 'areas',\n vertices\n });\n\n layer.setIn(['areas', areaID], area);\n });\n\n state = state.setIn(['scene', 'layers', layerID], layer);\n\n return { updatedState: state, area };\n }\n\n static select( state, layerID, areaID ){\n state = Layer.select( state, layerID ).updatedState;\n state = Layer.selectElement( state, layerID, 'areas', areaID ).updatedState;\n\n return {updatedState: state};\n }\n\n static remove( state, layerID, areaID ) {\n\n let area = state.getIn(['scene', 'layers', layerID, 'areas', areaID]);\n\n if( area.get('selected') === true ) state = this.unselect( state, layerID, areaID ).updatedState;\n\n area.vertices.forEach(vertexID => { state = Vertex.remove( state, layerID, vertexID, 'areas', areaID).updatedState; });\n\n state = state.deleteIn(['scene', 'layers', layerID, 'areas', areaID]);\n\n state.getIn(['scene', 'groups']).forEach( group => state = Group.removeElement(state, group.id, layerID, 'areas', areaID).updatedState );\n\n return {updatedState: state};\n }\n\n static unselect( state, layerID, areaID ) {\n state = Layer.unselect( state, layerID, 'areas', areaID ).updatedState;\n\n return {updatedState: state};\n }\n\n static setProperties( state, layerID, areaID, properties ) {\n state = state.mergeIn(['scene', 'layers', layerID, 'areas', areaID, 'properties'], properties);\n\n return { updatedState: state };\n }\n\n static setJsProperties( state, layerID, areaID, properties ) {\n return this.setProperties( state, layerID, areaID, fromJS(properties) );\n }\n\n static updateProperties( state, layerID, areaID, properties) {\n properties.forEach( ( v, k ) => {\n if( state.hasIn(['scene', 'layers', layerID, 'areas', areaID, 'properties', k]) )\n state = state.mergeIn(['scene', 'layers', layerID, 'areas', areaID, 'properties', k], v);\n });\n\n return { updatedState: state };\n }\n\n static updateJsProperties( state, layerID, areaID, properties) {\n return this.updateProperties( state, layerID, areaID, fromJS(properties) );\n }\n\n static setAttributes( state ) {\n return { updatedState: state };\n }\n\n}\n\nexport { Area as default };\n","import { Map, List } from 'immutable';\nimport { Vertex as VertexModel } from '../models';\nimport {\n IDBroker,\n GeometryUtils,\n SnapSceneUtils,\n SnapUtils\n} from '../utils/export';\nimport {\n MODE_DRAGGING_VERTEX,\n MODE_IDLE\n} from '../constants';\nimport { Layer, Line, Group } from '../class/export';\n\nclass Vertex{\n\n static add( state, layerID, x, y, relatedPrototype, relatedID ) {\n\n let vertex = state.getIn(['scene', 'layers', layerID, 'vertices']).find(vertex => GeometryUtils.samePoints(vertex, {x, y}));\n\n if (vertex) {\n vertex = vertex.update(relatedPrototype, related => related.push(relatedID));\n }\n else {\n vertex = new VertexModel({\n id: IDBroker.acquireID(),\n name: 'Vertex',\n x, y,\n [relatedPrototype]: new List([relatedID])\n });\n }\n\n state = state.setIn(['scene', 'layers', layerID, 'vertices', vertex.id], vertex);\n\n return { updatedState: state, vertex };\n }\n\n static setAttributes(state, layerID, vertexID, vertexAttributes) {\n state = state.mergeIn(['scene', 'layers', layerID, 'vertices', vertexID ], vertexAttributes)\n\n return { updatedState: state };\n }\n\n static addElement( state, layerID, vertexID, elementPrototype, elementID ) {\n state = state.updateIn(['scene', 'layers', layerID, 'vertices', vertexID, elementPrototype], list => list.push( elementID ) );\n return { updatedState: state };\n }\n\n static removeElement( state, layerID, vertexID, elementPrototype, elementID ) {\n let elementIndex = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID, elementPrototype]).findIndex( el => el === elementID );\n if( elementIndex !== -1 ) {\n state = state.updateIn(['scene', 'layers', layerID, 'vertices', vertexID, elementPrototype], list => list.remove( elementIndex ) );\n }\n return { updatedState: state };\n }\n\n static select( state, layerID, vertexID ){\n state = state.setIn(['scene', 'layers', layerID, 'vertices', vertexID, 'selected'], true);\n state = state.updateIn(['scene', 'layers', layerID, 'selected', 'vertices'], elems => elems.push(vertexID));\n\n return { updatedState: state };\n }\n\n static unselect( state, layerID, vertexID ){\n state = state.setIn(['scene', 'layers', layerID, 'vertices', vertexID, 'selected'], false);\n state = state.updateIn(['scene', 'layers', layerID, 'selected', 'vertices'], elems => elems.filter( el => el.id !== vertexID ));\n\n return { updatedState: state };\n }\n\n static remove( state, layerID, vertexID, relatedPrototype, relatedID, forceRemove ) {\n let vertex = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]);\n\n\n if( vertex ) {\n if( relatedPrototype && relatedID ) vertex = vertex.update(relatedPrototype, related => {\n let index = related.findIndex(ID => relatedID === ID);\n return related.delete(index);\n });\n\n let inUse = vertex.areas.size || vertex.lines.size;\n\n if( inUse && !forceRemove ) {\n state = state.setIn(['scene', 'layers', layerID, 'vertices', vertexID], vertex);\n }\n else {\n state = state.deleteIn(['scene', 'layers', layerID, 'vertices', vertexID]);\n }\n }\n\n return { updatedState: state };\n }\n\n static beginDraggingVertex(state, layerID, vertexID, x, y) {\n\n let snapElements = SnapSceneUtils.sceneSnapElements(state.scene, new List(), state.snapMask);\n\n state = state.merge({\n mode: MODE_DRAGGING_VERTEX,\n snapElements,\n draggingSupport: Map({\n layerID,\n vertexID,\n previousMode: state.get('mode')\n })\n });\n\n return { updatedState: state };\n }\n\n static updateDraggingVertex(state, x, y) {\n let { draggingSupport, snapElements, scene } = state;\n\n let snap = null;\n if (state.snapMask && !state.snapMask.isEmpty()) {\n snap = SnapUtils.nearestSnap(snapElements, x, y, state.snapMask);\n if (snap) ({ x, y } = snap.point);\n }\n\n let layerID = draggingSupport.get('layerID');\n let vertexID = draggingSupport.get('vertexID');\n state = state.merge({\n activeSnapElement: snap ? snap.snap : null,\n scene: scene.mergeIn(['layers', layerID, 'vertices', vertexID], { x, y })\n });\n\n return { updatedState: state };\n }\n\n static endDraggingVertex(state, x, y) {\n let { draggingSupport } = state;\n let layerID = draggingSupport.get('layerID');\n let vertexID = draggingSupport.get('vertexID');\n let lines = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID, 'lines']);\n\n if( lines ) {\n state = lines.reduce(\n ( reducedState, lineID ) =>\n {\n if( !reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID])) return reducedState;\n\n let v_id0 = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices', 0]);\n let v_id1 = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices', 1]);\n let oldVertexID = v_id0 === vertexID ? v_id1 : v_id0;\n\n let oldVertex = reducedState.getIn(['scene', 'layers', layerID, 'vertices', oldVertexID]);\n let vertex = reducedState.getIn(['scene', 'layers', layerID, 'vertices', vertexID]);\n\n let oldHoles = [];\n\n let orderedVertices = GeometryUtils.orderVertices([oldVertex, vertex]);\n\n let holes = reducedState\n .getIn(['scene', 'layers', layerID, 'lines', lineID, 'holes'])\n .forEach(holeID => {\n let hole = reducedState.getIn(['scene', 'layers', layerID, 'holes', holeID]);\n let oldLineLength = GeometryUtils.pointsDistance(oldVertex.x, oldVertex.y, vertex.x, vertex.y);\n let offset = GeometryUtils.samePoints( orderedVertices[1], reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices', 1]) ) ? ( 1 - hole.offset ) : hole.offset;\n let offsetPosition = GeometryUtils.extendLine( oldVertex.x, oldVertex.y, vertex.x, vertex.y, oldLineLength * offset );\n\n oldHoles.push({hole, offsetPosition});\n });\n\n let lineType = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'type']);\n let lineProps = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'properties']);\n let lineGroups = reducedState //get groups membership if present\n .getIn(['scene', 'groups'])\n .filter( group => group.getIn(['elements', layerID, 'lines']).contains(lineID) );\n\n reducedState = Layer.removeZeroLengthLines( reducedState, layerID ).updatedState;\n reducedState = Layer.mergeEqualsVertices( reducedState, layerID, vertexID ).updatedState;\n reducedState = Line.remove( reducedState, layerID, lineID ).updatedState;\n\n if (!GeometryUtils.samePoints(oldVertex, vertex)) {\n let ret = Line.createAvoidingIntersections(\n reducedState,\n layerID,\n lineType,\n oldVertex.x,\n oldVertex.y,\n vertex.x,\n vertex.y,\n lineProps,\n oldHoles\n );\n\n reducedState = ret.updatedState;\n\n //re-add to old line's groups if present\n ret.lines.forEach( addedLine => {\n lineGroups.forEach( oldLineGroup => {\n reducedState = Group.addElement( reducedState, oldLineGroup.id, layerID, 'lines', addedLine.id ).updatedState;\n });\n });\n }\n\n return reducedState;\n },\n state\n );\n }\n\n state = Layer.detectAndUpdateAreas( state, layerID ).updatedState;\n\n state = state.merge({\n mode: draggingSupport.get('previousMode'),\n draggingSupport: null,\n activeSnapElement: null,\n snapElements: new List()\n });\n\n return { updatedState: state };\n }\n\n}\n\nexport { Vertex as default };\n","import {Map, List, fromJS} from 'immutable';\nimport {Layer, Group} from './export';\n\nimport {\n IDBroker,\n NameGenerator\n} from '../utils/export';\n\nimport {\n nearestSnap,\n addLineSegmentSnap,\n} from '../utils/snap';\n\nimport {\n MODE_IDLE,\n MODE_DRAWING_HOLE,\n MODE_DRAGGING_HOLE,\n} from '../constants';\n\nimport {\n GeometryUtils\n} from '../utils/export';\n\nclass Hole {\n\n static create(state, layerID, type, lineID, offset, properties) {\n\n let holeID = IDBroker.acquireID();\n\n let hole = state.catalog.factoryElement(type, {\n id: holeID,\n name: NameGenerator.generateName('holes', state.catalog.getIn(['elements', type, 'info', 'title'])),\n type,\n offset,\n line: lineID\n }, properties);\n\n state = state.setIn(['scene', 'layers', layerID, 'holes', holeID], hole);\n state = state.updateIn(['scene', 'layers', layerID, 'lines', lineID, 'holes'],\n holes => holes.push(holeID));\n\n return {updatedState: state, hole};\n }\n\n static select(state, layerID, holeID) {\n state = Layer.select(state, layerID).updatedState;\n state = Layer.selectElement(state, layerID, 'holes', holeID).updatedState;\n\n return {updatedState: state};\n }\n\n static remove(state, layerID, holeID) {\n let hole = state.getIn(['scene', 'layers', layerID, 'holes', holeID]);\n state = this.unselect(state, layerID, holeID).updatedState;\n state = Layer.removeElement(state, layerID, 'holes', holeID).updatedState;\n\n state = state.updateIn(['scene', 'layers', layerID, 'lines', hole.line, 'holes'], holes => {\n let index = holes.findIndex(ID => holeID === ID);\n return index !== -1 ? holes.remove(index) : holes;\n });\n\n state.getIn(['scene', 'groups']).forEach(group => state = Group.removeElement(state, group.id, layerID, 'holes', holeID).updatedState);\n\n return {updatedState: state};\n }\n\n static unselect(state, layerID, holeID) {\n state = Layer.unselect(state, layerID, 'holes', holeID).updatedState;\n\n return {updatedState: state};\n }\n\n static selectToolDrawingHole(state, sceneComponentType) {\n\n let snapElements = (new List()).withMutations(snapElements => {\n let {lines, vertices} = state.getIn(['scene', 'layers', state.scene.selectedLayer]);\n\n lines.forEach(line => {\n let {x: x1, y: y1} = vertices.get(line.vertices.get(0));\n let {x: x2, y: y2} = vertices.get(line.vertices.get(1));\n\n addLineSegmentSnap(snapElements, x1, y1, x2, y2, 20, 1, line.id);\n });\n });\n\n state = state.merge({\n mode: MODE_DRAWING_HOLE,\n snapElements,\n drawingSupport: Map({\n type: sceneComponentType\n })\n });\n\n return {updatedState: state};\n }\n\n static updateDrawingHole(state, layerID, x, y) {\n let catalog = state.catalog;\n\n //calculate snap and overwrite coords if needed\n //force snap to segment\n let snap = nearestSnap(state.snapElements, x, y, state.snapMask.merge({SNAP_SEGMENT: true}));\n if (snap) ({x, y} = snap.point);\n\n let selectedHole = state.getIn(['scene', 'layers', layerID, 'selected', 'holes']).first();\n\n if (snap) {\n let lineID = snap.snap.related.get(0);\n\n let vertices = state.getIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices']);\n let {x: x1, y: y1} = state.getIn(['scene', 'layers', layerID, 'vertices', vertices.get(0)]);\n let {x: x2, y: y2} = state.getIn(['scene', 'layers', layerID, 'vertices', vertices.get(1)]);\n\n // I need min and max vertices on this line segment\n let minVertex = GeometryUtils.minVertex({x: x1, y: y1}, {x: x2, y: y2});\n let maxVertex = GeometryUtils.maxVertex({x: x1, y: y1}, {x: x2, y: y2});\n let width = catalog.factoryElement(state.drawingSupport.get('type')).properties.getIn(['width', 'length']);\n\n // Now I need min and max possible coordinates for the hole on the line. They depend on the width of the hole\n let lineLength = GeometryUtils.pointsDistance(x1, y1, x2, y2);\n let alpha = GeometryUtils.absAngleBetweenTwoPoints(x1, y1, x2, y2);\n\n let cosAlpha = GeometryUtils.cosWithThreshold(alpha, 0.0000001);\n let sinAlpha = GeometryUtils.sinWithThreshold(alpha, 0.0000001);\n\n let minLeftVertexHole = {\n x: minVertex.x + width / 2 * cosAlpha,\n y: minVertex.y + width / 2 * sinAlpha\n };\n\n let maxRightVertexHole = {\n x: minVertex.x + lineLength * cosAlpha - width / 2 * cosAlpha,\n y: minVertex.y + lineLength * sinAlpha - width / 2 * sinAlpha\n };\n\n let offset;\n if (x < minLeftVertexHole.x) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n minLeftVertexHole.x, minLeftVertexHole.y);\n } else if (x > maxRightVertexHole.x) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n maxRightVertexHole.x, maxRightVertexHole.y);\n } else {\n\n if (x === minLeftVertexHole.x && x === maxRightVertexHole.x) {\n if (y < minLeftVertexHole.y) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n minLeftVertexHole.x, minLeftVertexHole.y);\n offset = minVertex.x === x1 && minVertex.y === y1 ? offset : 1 - offset;\n } else if (y > maxRightVertexHole.y) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n maxRightVertexHole.x, maxRightVertexHole.y);\n offset = minVertex.x === x1 && minVertex.y === y1 ? offset : 1 - offset;\n } else {\n offset = GeometryUtils.pointPositionOnLineSegment(x1, y1, x2, y2, x, y);\n }\n } else {\n offset = GeometryUtils.pointPositionOnLineSegment(x1, y1, x2, y2, x, y);\n }\n }\n\n //if hole does exist, update\n if (selectedHole && snap) {\n state = state.mergeIn(['scene', 'layers', layerID, 'holes', selectedHole], {offset, line: lineID});\n\n //remove from old line ( if present )\n let index = state.getIn(['scene', 'layers', layerID, 'lines']).findEntry(line => {\n return line.id !== lineID && line.get('holes').contains(selectedHole);\n });\n\n if (index) {\n let removed = index[1].get('holes').filter(hl => hl !== selectedHole);\n state = state.setIn(['scene', 'layers', layerID, 'lines', index[0], 'holes'], removed);\n }\n\n //add to line\n let line_holes = state.getIn(['scene', 'layers', layerID, 'lines', lineID, 'holes']);\n if (!line_holes.contains(selectedHole)) {\n state = state.setIn(['scene', 'layers', layerID, 'lines', lineID, 'holes'], line_holes.push(selectedHole));\n }\n } else if (!selectedHole && snap) {\n //if hole does not exist, create\n let {updatedState: stateH, hole} = this.create(state, layerID, state.drawingSupport.get('type'), lineID, offset);\n state = Hole.select(stateH, layerID, hole.id).updatedState;\n }\n }\n //i've lost the snap while trying to drop the hole\n else if (false && selectedHole) //think if enable\n {\n state = Hole.remove(state, layerID, selectedHole).updatedState;\n }\n\n return {updatedState: state};\n }\n\n static endDrawingHole(state, layerID, x, y) {\n state = this.updateDrawingHole(state, layerID, x, y).updatedState;\n state = Layer.unselectAll(state, layerID).updatedState;\n\n return {updatedState: state};\n }\n\n static beginDraggingHole(state, layerID, holeID, x, y) {\n let layer = state.getIn(['scene', 'layers', layerID]);\n let hole = layer.getIn(['holes', holeID]);\n let line = layer.getIn(['lines', hole.line]);\n let v0 = layer.getIn(['vertices', line.vertices.get(0)]);\n let v1 = layer.getIn(['vertices', line.vertices.get(1)]);\n\n let snapElements = addLineSegmentSnap(List(), v0.x, v0.y, v1.x, v1.y, 9999999, 1, null);\n\n state = state.merge({\n mode: MODE_DRAGGING_HOLE,\n snapElements,\n draggingSupport: Map({\n layerID,\n holeID,\n startPointX: x,\n startPointY: y,\n })\n });\n\n return {updatedState: state};\n }\n\n static updateDraggingHole(state, x, y) {\n\n //calculate snap and overwrite coords if needed\n //force snap to segment\n let snap = nearestSnap(state.snapElements, x, y, state.snapMask.merge({SNAP_SEGMENT: true}));\n if (!snap) return state;\n\n let {draggingSupport, scene} = state;\n\n let layerID = draggingSupport.get('layerID');\n let holeID = draggingSupport.get('holeID');\n let startPointX = draggingSupport.get('startPointX');\n let startPointY = draggingSupport.get('startPointY');\n\n let layer = state.getIn(['scene', 'layers', layerID]);\n let hole = layer.getIn(['holes', holeID]);\n let line = layer.getIn(['lines', hole.line]);\n let v0 = layer.getIn(['vertices', line.vertices.get(0)]);\n let v1 = layer.getIn(['vertices', line.vertices.get(1)]);\n\n ({x, y} = snap.point);\n\n // I need min and max vertices on this line segment\n let minVertex = GeometryUtils.minVertex(v0, v1);\n let maxVertex = GeometryUtils.maxVertex(v0, v1);\n\n // Now I need min and max possible coordinates for the hole on the line. They depend on the width of the hole\n\n let width = hole.properties.get('width').get('length');\n let lineLength = GeometryUtils.pointsDistance(v0.x, v0.y, v1.x, v1.y);\n let alpha = Math.atan2(Math.abs(v1.y - v0.y), Math.abs(v1.x - v0.x));\n\n let cosWithThreshold = (alpha) => {\n let cos = Math.cos(alpha);\n return cos < 0.0000001 ? 0 : cos;\n };\n\n let sinWithThreshold = (alpha) => {\n let sin = Math.sin(alpha);\n return sin < 0.0000001 ? 0 : sin;\n };\n\n let cosAlpha = cosWithThreshold(alpha);\n let sinAlpha = sinWithThreshold(alpha);\n\n let minLeftVertexHole = {\n x: minVertex.x + width / 2 * cosAlpha,\n y: minVertex.y + width / 2 * sinAlpha\n };\n\n let maxRightVertexHole = {\n x: minVertex.x + lineLength * cosAlpha - width / 2 * cosAlpha,\n y: minVertex.y + lineLength * sinAlpha - width / 2 * sinAlpha\n };\n\n // Now I need to verify if the snap vertex (with coordinates x and y) is on the line segment\n\n let offset;\n\n if (x < minLeftVertexHole.x) {\n // Snap point is previous the the line\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n minLeftVertexHole.x, minLeftVertexHole.y);\n } else {\n // Snap point is after the line or on the line\n if (x > maxRightVertexHole.x) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n maxRightVertexHole.x, maxRightVertexHole.y);\n } else if (x === minLeftVertexHole.x && x === maxRightVertexHole.x) {\n // I am on a vertical line, I need to check y coordinates\n if (y < minLeftVertexHole.y) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n minLeftVertexHole.x, minLeftVertexHole.y);\n\n offset = minVertex === v0 ? offset : 1 - offset;\n\n } else if (y > maxRightVertexHole.y) {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n maxRightVertexHole.x, maxRightVertexHole.y);\n\n offset = minVertex === v0 ? offset : 1 - offset;\n\n } else {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n x, y);\n\n offset = minVertex === v0 ? offset : 1 - offset;\n }\n } else {\n offset = GeometryUtils.pointPositionOnLineSegment(minVertex.x, minVertex.y,\n maxVertex.x, maxVertex.y,\n x, y);\n }\n }\n\n hole = hole.set('offset', offset);\n\n state = state.merge({\n scene: scene.mergeIn(['layers', layerID, 'holes', holeID], hole)\n });\n\n return {updatedState: state};\n }\n\n static endDraggingHole(state, x, y) {\n state = this.updateDraggingHole(state, x, y).updatedState;\n state = state.merge({mode: MODE_IDLE});\n\n return {updatedState: state};\n }\n\n static setProperties(state, layerID, holeID, properties) {\n state = state.setIn(['scene', 'layers', layerID, 'holes', holeID, 'properties'], properties);\n\n return {updatedState: state};\n }\n\n static setJsProperties(state, layerID, holeID, properties) {\n return this.setProperties(state, layerID, holeID, fromJS(properties));\n }\n\n static updateProperties(state, layerID, holeID, properties) {\n properties.forEach((v, k) => {\n if (state.hasIn(['scene', 'layers', layerID, 'holes', holeID, 'properties', k]))\n state = state.mergeIn(['scene', 'layers', layerID, 'holes', holeID, 'properties', k], v);\n });\n\n return {updatedState: state};\n }\n\n static updateJsProperties(state, layerID, holeID, properties) {\n return this.updateProperties(state, layerID, holeID, fromJS(properties));\n }\n\n static setAttributes(state, layerID, holeID, holesAttributes) {\n\n let hAttr = holesAttributes.toJS();\n let {offsetA, offsetB, offset} = hAttr;\n\n delete hAttr['offsetA'];\n delete hAttr['offsetB'];\n delete hAttr['offset'];\n\n let misc = new Map({_unitA: offsetA._unit, _unitB: offsetB._unit});\n\n state = state\n .mergeIn(['scene', 'layers', layerID, 'holes', holeID], fromJS(hAttr))\n .mergeDeepIn(['scene', 'layers', layerID, 'holes', holeID], new Map({offset, misc}));\n\n return {updatedState: state};\n }\n\n}\n\nexport {Hole as default};\n","import {Map, List, fromJS} from 'immutable';\nimport {\n Group,\n Layer,\n Hole,\n Vertex\n} from './export';\nimport {\n IDBroker,\n NameGenerator,\n GeometryUtils,\n SnapUtils,\n SnapSceneUtils,\n} from '../utils/export';\nimport {\n MODE_IDLE,\n MODE_WAITING_DRAWING_LINE,\n MODE_DRAWING_LINE,\n MODE_DRAGGING_LINE\n} from '../constants';\n\nclass Line{\n\n static create( state, layerID, type, x0, y0, x1, y1, properties ) {\n\n let lineID = IDBroker.acquireID();\n\n let { updatedState: stateV0, vertex: v0 } = Vertex.add( state , layerID, x0, y0, 'lines', lineID );\n let { updatedState: stateV1, vertex: v1 } = Vertex.add( stateV0, layerID, x1, y1, 'lines', lineID );\n state = stateV1;\n\n let line = state.catalog.factoryElement(type, {\n id: lineID,\n name: NameGenerator.generateName('lines', state.catalog.getIn(['elements', type, 'info', 'title'])),\n vertices: new List([v0.id, v1.id]),\n type\n }, properties);\n\n state = state.setIn(['scene', 'layers', layerID, 'lines', lineID], line);\n\n return {updatedState: state, line};\n }\n\n static select( state, layerID, lineID ){\n state = Layer.select( state, layerID ).updatedState;\n\n let line = state.getIn([ 'scene','layers', layerID, 'lines', lineID ]);\n\n state = Layer.selectElement( state, layerID, 'lines', lineID ).updatedState;\n state = Layer.selectElement( state, layerID, 'vertices', line.vertices.get(0) ).updatedState;\n state = Layer.selectElement( state, layerID, 'vertices', line.vertices.get(1) ).updatedState;\n\n return {updatedState: state};\n }\n\n static remove( state, layerID, lineID ) {\n let line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);\n\n if( line ) {\n state = this.unselect( state, layerID, lineID ).updatedState;\n line.holes.forEach(holeID => state = Hole.remove(state, layerID, holeID).updatedState);\n state = Layer.removeElement( state, layerID, 'lines', lineID ).updatedState;\n\n line.vertices.forEach(vertexID => state = Vertex.remove( state, layerID, vertexID, 'lines', lineID ).updatedState);\n\n state.getIn(['scene', 'groups']).forEach( group => state = Group.removeElement(state, group.id, layerID, 'lines', lineID).updatedState );\n }\n\n return {updatedState: state};\n }\n\n static unselect( state, layerID, lineID ) {\n let line = state.getIn([ 'scene','layers', layerID, 'lines', lineID ]);\n\n if( line ) {\n state = Layer.unselect( state, layerID, 'vertices', line.vertices.get(0) ).updatedState;\n state = Layer.unselect( state, layerID, 'vertices', line.vertices.get(1) ).updatedState;\n state = Layer.unselect( state, layerID, 'lines', lineID ).updatedState;\n }\n\n return {updatedState: state};\n }\n\n static split( state, layerID, lineID, x, y ) {\n let line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);\n let v0 = state.getIn(['scene', 'layers', layerID, 'vertices', line.vertices.get(0)]);\n let v1 = state.getIn(['scene', 'layers', layerID, 'vertices', line.vertices.get(1)]);\n let {x: x0, y: y0} = v0;\n let {x: x1, y: y1} = v1;\n\n let { updatedState: stateL1, line: line0 } = Line.create( state , layerID, line.type, x0, y0, x, y, line.get('properties'));\n let { updatedState: stateL2, line: line1 } = Line.create( stateL1, layerID, line.type, x1, y1, x, y, line.get('properties'));\n state = stateL2;\n\n let splitPointOffset = GeometryUtils.pointPositionOnLineSegment(x0, y0, x1, y1, x, y);\n let minVertex = GeometryUtils.minVertex(v0, v1);\n\n line.holes.forEach(holeID => {\n let hole = state.getIn(['scene', 'layers', layerID, 'holes', holeID]);\n\n let holeOffset = hole.offset;\n if (minVertex.x === x1 && minVertex.y === y1) {\n splitPointOffset = 1 - splitPointOffset;\n holeOffset = 1 - hole.offset;\n }\n\n if (holeOffset < splitPointOffset) {\n let offset = holeOffset / splitPointOffset;\n if (minVertex.x === x1 && minVertex.y === y1) {\n offset = 1 - offset;\n }\n state = Hole.create( state, layerID, hole.type, line0.id, offset, hole.properties ).updatedState;\n } else {\n let offset = (holeOffset - splitPointOffset) / (1 - splitPointOffset);\n if (minVertex.x === x1 && minVertex.y === y1) {\n offset = 1 - offset;\n }\n state = Hole.create( state, layerID, hole.type, line1.id, offset, hole.properties ).updatedState;\n }\n });\n\n //add splitted lines to the original line's group\n let lineGroups = state\n .getIn(['scene', 'groups'])\n .filter( group => group.getIn(['elements', layerID, 'lines']).contains(lineID) );\n\n lineGroups.forEach( group => {\n state = Group.addElement( state, group.id, layerID, 'lines', line0.id ).updatedState;\n state = Group.addElement( state, group.id, layerID, 'lines', line1.id ).updatedState;\n });\n\n state = Line.remove( state, layerID, lineID ).updatedState;\n\n return { updatedState: state, lines: new List([line0, line1]) };\n }\n\n static addFromPoints( state, layerID, type, points, properties, holes ) {\n points = new List(points)\n .sort(({x: x1, y: y1}, {x: x2, y: y2}) => x1 === x2 ? y1 - y2 : x1 - x2 );\n\n let pointsPair = points.zip(points.skip(1))\n .filterNot(([{x: x1, y: y1}, {x: x2, y: y2}]) => x1 === x2 && y1 === y2 );\n\n let lines = [];\n\n pointsPair.forEach( ([{x: x1, y: y1}, {x: x2, y: y2}]) => {\n let { updatedState: stateL, line } = this.create( state, layerID, type, x1, y1, x2, y2, properties );\n state = stateL;\n\n if( holes ) {\n holes.forEach(holeWithOffsetPoint => {\n let {x: xp, y: yp} = holeWithOffsetPoint.offsetPosition;\n\n if (GeometryUtils.isPointOnLineSegment(x1, y1, x2, y2, xp, yp)) {\n\n let newOffset = GeometryUtils.pointPositionOnLineSegment(x1, y1, x2, y2, xp, yp);\n\n if (newOffset >= 0 && newOffset <= 1) {\n state = Hole.create( state, layerID, holeWithOffsetPoint.hole.type, line.id, newOffset, holeWithOffsetPoint.hole.properties ).updatedState;\n }\n }\n });\n }\n\n lines.push( line );\n });\n\n return { updatedState: state, lines: new List(lines) };\n }\n\n static createAvoidingIntersections( state, layerID, type, x0, y0, x1, y1, oldProperties, oldHoles ) {\n let points = [{x: x0, y: y0}, {x: x1, y: y1}];\n\n state = state.getIn(['scene', 'layers', layerID, 'lines']).reduce( ( reducedState, line ) => {\n let [v0, v1] = line.vertices.map(vertexID => reducedState.getIn(['scene', 'layers', layerID, 'vertices']).get(vertexID)).toArray();\n\n let hasCommonEndpoint = (\n GeometryUtils.samePoints(v0, points[0]) ||\n GeometryUtils.samePoints(v0, points[1]) ||\n GeometryUtils.samePoints(v1, points[0]) ||\n GeometryUtils.samePoints(v1, points[1])\n );\n\n let intersection = GeometryUtils.twoLineSegmentsIntersection( points[0], points[1], v0, v1 );\n\n if (intersection.type === 'colinear') {\n if (!oldHoles) { oldHoles = []; }\n\n let orderedVertices = GeometryUtils.orderVertices(points);\n\n reducedState.getIn(['scene', 'layers', layerID, 'lines', line.id, 'holes']).forEach(holeID => {\n let hole = reducedState.getIn(['scene', 'layers', layerID, 'holes', holeID]);\n let oldLineLength = GeometryUtils.pointsDistance(v0.x, v0.y, v1.x, v1.y);\n let offset = GeometryUtils.samePoints( orderedVertices[1], line.vertices.get(1) ) ? ( 1 - hole.offset ) : hole.offset;\n let offsetPosition = GeometryUtils.extendLine( v0.x, v0.y, v1.x, v1.y, oldLineLength * offset );\n\n oldHoles.push({hole, offsetPosition});\n });\n\n reducedState = this.remove( reducedState, layerID, line.id ).updatedState;\n\n points.push(v0, v1);\n }\n\n if (intersection.type === 'intersecting' && (!hasCommonEndpoint)) {\n reducedState = this.split( reducedState, layerID, line.id, intersection.point.x, intersection.point.y ).updatedState;\n points.push(intersection.point);\n }\n\n return reducedState;\n\n }, state );\n\n let { updatedState, lines } = Line.addFromPoints( state, layerID, type, points, oldProperties, oldHoles );\n\n return { updatedState, lines };\n }\n\n static replaceVertex ( state, layerID, lineID, vertexIndex, x, y ) {\n let vertexID = state.getIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices', vertexIndex]);\n\n state = Vertex.remove( state, layerID, vertexID, 'lines', lineID ).updatedState;\n let { updatedState: stateV, vertex } = Vertex.add( state, layerID, x, y, 'lines', lineID );\n state = stateV;\n\n state = state.setIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices', vertexIndex], vertex.id);\n state = state.setIn(['scene', 'layers', layerID, 'lines', lineID], state.getIn(['scene', 'layers', layerID, 'lines', lineID]) );\n\n return { updatedState: state, line: state.getIn(['scene', 'layers', layerID, 'lines', lineID]), vertex };\n }\n\n static selectToolDrawingLine(state, sceneComponentType) {\n state = state.merge({\n mode: MODE_WAITING_DRAWING_LINE,\n drawingSupport: new Map({\n type: sceneComponentType\n })\n });\n\n return { updatedState: state };\n }\n\n static beginDrawingLine(state, layerID, x, y) {\n let snapElements = SnapSceneUtils.sceneSnapElements(state.scene, new List(), state.snapMask);\n let snap = null;\n\n if (state.snapMask && !state.snapMask.isEmpty()) {\n snap = SnapUtils.nearestSnap(snapElements, x, y, state.snapMask);\n if (snap) ({x, y} = snap.point);\n\n snapElements = snapElements.withMutations(snapElements => {\n let a, b, c;\n ({a, b, c} = GeometryUtils.horizontalLine(y));\n SnapUtils.addLineSnap(snapElements, a, b, c, 10, 3, null);\n ({a, b, c} = GeometryUtils.verticalLine(x));\n SnapUtils.addLineSnap(snapElements, a, b, c, 10, 3, null);\n });\n }\n\n let drawingSupport = state.get('drawingSupport').set('layerID', layerID);\n\n state = Layer.unselectAll( state, layerID ).updatedState;\n\n let { updatedState: stateL, line } = Line.create( state, layerID, drawingSupport.get('type'), x, y, x, y );\n state = Line.select( stateL, layerID, line.id ).updatedState;\n\n state = state.merge({\n mode: MODE_DRAWING_LINE,\n snapElements,\n activeSnapElement: snap ? snap.snap : null,\n drawingSupport\n });\n\n return { updatedState: state };\n }\n\n static updateDrawingLine(state, x, y) {\n let snap = null;\n if (state.snapMask && !state.snapMask.isEmpty()) {\n snap = SnapUtils.nearestSnap(state.snapElements, x, y, state.snapMask);\n if (snap) ({x, y} = snap.point);\n }\n\n let layerID = state.getIn(['drawingSupport', 'layerID']);\n let lineID = state.getIn(['scene', 'layers', layerID, 'selected', 'lines']).first();\n\n let { updatedState: stateLV, vertex } = Line.replaceVertex( state, layerID, lineID, 1, x, y );\n state = stateLV;\n\n state = this.select( state, layerID, lineID ).updatedState;\n state = state.merge({ activeSnapElement: snap ? snap.snap : null });\n\n return { updatedState: state };\n }\n\n static endDrawingLine(state, x, y) {\n\n if (state.snapMask && !state.snapMask.isEmpty()) {\n let snap = SnapUtils.nearestSnap(state.snapElements, x, y, state.snapMask);\n if (snap) ({x, y} = snap.point);\n }\n\n let layerID = state.getIn(['drawingSupport', 'layerID']);\n let layer = state.getIn(['scene','layers', layerID]);\n\n let lineID = state.getIn(['scene', 'layers', layerID, 'selected', 'lines']).first();\n let line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);\n\n let v0 = layer.vertices.get(line.vertices.get(0));\n\n state = Line.remove( state, layerID, lineID ).updatedState;\n state = Line.createAvoidingIntersections( state, layerID, line.type, v0.x, v0.y, x, y ).updatedState;\n state = Layer.detectAndUpdateAreas( state, layerID ).updatedState;\n\n state = state.merge({\n mode: MODE_WAITING_DRAWING_LINE,\n snapElements: new List(),\n activeSnapElement: null\n });\n\n return { updatedState: state };\n }\n\n static beginDraggingLine(state, layerID, lineID, x, y) {\n\n let snapElements = SnapSceneUtils.sceneSnapElements(state.scene, new List(), state.snapMask);\n\n let layer = state.scene.layers.get(layerID);\n let line = layer.lines.get(lineID);\n\n let vertex0 = layer.vertices.get(line.vertices.get(0));\n let vertex1 = layer.vertices.get(line.vertices.get(1));\n\n state = state.merge({\n mode: MODE_DRAGGING_LINE,\n snapElements,\n draggingSupport: Map({\n layerID, lineID,\n startPointX: x,\n startPointY: y,\n startVertex0X: vertex0.x,\n startVertex0Y: vertex0.y,\n startVertex1X: vertex1.x,\n startVertex1Y: vertex1.y,\n })\n });\n\n return { updatedState: state };\n }\n\n static updateDraggingLine(state, x, y) {\n\n let draggingSupport = state.draggingSupport;\n let snapElements = state.snapElements;\n\n let layerID = draggingSupport.get('layerID');\n let lineID = draggingSupport.get('lineID');\n let diffX = x - draggingSupport.get('startPointX');\n let diffY = y - draggingSupport.get('startPointY');\n let newVertex0X = draggingSupport.get('startVertex0X') + diffX;\n let newVertex0Y = draggingSupport.get('startVertex0Y') + diffY;\n let newVertex1X = draggingSupport.get('startVertex1X') + diffX;\n let newVertex1Y = draggingSupport.get('startVertex1Y') + diffY;\n\n\n let activeSnapElement = null;\n let curSnap0 = null, curSnap1 = null;\n if (state.snapMask && !state.snapMask.isEmpty()) {\n curSnap0 = SnapUtils.nearestSnap(snapElements, newVertex0X, newVertex0Y, state.snapMask);\n curSnap1 = SnapUtils.nearestSnap(snapElements, newVertex1X, newVertex1Y, state.snapMask);\n }\n\n let deltaX = 0, deltaY = 0;\n if (curSnap0 && curSnap1) {\n if (curSnap0.point.distance < curSnap1.point.distance) {\n deltaX = curSnap0.point.x - newVertex0X;\n deltaY = curSnap0.point.y - newVertex0Y;\n activeSnapElement = curSnap0.snap;\n } else {\n deltaX = curSnap1.point.x - newVertex1X;\n deltaY = curSnap1.point.y - newVertex1Y;\n activeSnapElement = curSnap1.snap;\n }\n } else {\n if (curSnap0) {\n deltaX = curSnap0.point.x - newVertex0X;\n deltaY = curSnap0.point.y - newVertex0Y;\n activeSnapElement = curSnap0.snap;\n }\n if (curSnap1) {\n deltaX = curSnap1.point.x - newVertex1X;\n deltaY = curSnap1.point.y - newVertex1Y;\n activeSnapElement = curSnap1.snap;\n }\n }\n\n newVertex0X += deltaX;\n newVertex0Y += deltaY;\n newVertex1X += deltaX;\n newVertex1Y += deltaY;\n\n state = state.merge({\n activeSnapElement,\n scene: state.scene.updateIn(['layers', layerID], layer => layer.withMutations(layer => {\n let lineVertices = layer.getIn(['lines', lineID, 'vertices']);\n layer.updateIn(['vertices', lineVertices.get(0)], vertex => vertex.merge({x: newVertex0X, y: newVertex0Y}));\n layer.updateIn(['vertices', lineVertices.get(1)], vertex => vertex.merge({x: newVertex1X, y: newVertex1Y}));\n return layer;\n }))\n });\n\n return { updatedState: state };\n }\n\n static endDraggingLine(state, x, y) {\n let {draggingSupport} = state;\n let layerID = draggingSupport.get('layerID');\n let layer = state.scene.layers.get(layerID);\n let lineID = draggingSupport.get('lineID');\n let line = layer.lines.get(lineID);\n\n let vertex0 = layer.vertices.get(line.vertices.get(0));\n let vertex1 = layer.vertices.get(line.vertices.get(1));\n\n let maxV = GeometryUtils.maxVertex(vertex0, vertex1);\n let minV = GeometryUtils.minVertex(vertex0, vertex1);\n\n let lineLength = GeometryUtils.verticesDistance(minV,maxV);\n let alpha = Math.atan2(maxV.y - minV.y, maxV.x - minV.x);\n\n let holesWithOffsetPosition = [];\n layer.lines.get(lineID).holes.forEach(holeID => {\n let hole = layer.holes.get(holeID);\n let pointOnLine = lineLength * hole.offset;\n\n let offsetPosition = {\n x: pointOnLine * Math.cos(alpha) + minV.x,\n y: pointOnLine * Math.sin(alpha) + minV.y\n };\n\n holesWithOffsetPosition.push({hole, offsetPosition});\n });\n\n let diffX = x - draggingSupport.get('startPointX');\n let diffY = y - draggingSupport.get('startPointY');\n let newVertex0X = draggingSupport.get('startVertex0X') + diffX;\n let newVertex0Y = draggingSupport.get('startVertex0Y') + diffY;\n let newVertex1X = draggingSupport.get('startVertex1X') + diffX;\n let newVertex1Y = draggingSupport.get('startVertex1Y') + diffY;\n\n if (state.snapMask && !state.snapMask.isEmpty()) {\n\n let curSnap0 = SnapUtils.nearestSnap(state.snapElements, newVertex0X, newVertex0Y, state.snapMask);\n let curSnap1 = SnapUtils.nearestSnap(state.snapElements, newVertex1X, newVertex1Y, state.snapMask);\n\n let deltaX = 0, deltaY = 0;\n if (curSnap0 && curSnap1) {\n if (curSnap0.point.distance < curSnap1.point.distance) {\n deltaX = curSnap0.point.x - newVertex0X;\n deltaY = curSnap0.point.y - newVertex0Y;\n } else {\n deltaX = curSnap1.point.x - newVertex1X;\n deltaY = curSnap1.point.y - newVertex1Y;\n }\n } else {\n if (curSnap0) {\n deltaX = curSnap0.point.x - newVertex0X;\n deltaY = curSnap0.point.y - newVertex0Y;\n }\n if (curSnap1) {\n deltaX = curSnap1.point.x - newVertex1X;\n deltaY = curSnap1.point.y - newVertex1Y;\n }\n }\n\n newVertex0X += deltaX;\n newVertex0Y += deltaY;\n newVertex1X += deltaX;\n newVertex1Y += deltaY;\n }\n\n let lineGroups = state //get groups membership if present\n .getIn(['scene', 'groups'])\n .filter( group => group.getIn(['elements', layerID, 'lines']).contains(lineID) );\n\n state = Layer.mergeEqualsVertices( state, layerID, line.vertices.get(0) ).updatedState;\n state = Layer.mergeEqualsVertices( state, layerID, line.vertices.get(1) ).updatedState;\n\n state = Line.remove( state, layerID, lineID ).updatedState;\n\n if(!GeometryUtils.samePoints({newVertex0X, newVertex0Y}, {newVertex1X, newVertex1Y})) {\n let ret = Line.createAvoidingIntersections(\n state,\n layerID,\n line.type,\n newVertex0X,\n newVertex0Y,\n newVertex1X,\n newVertex1Y,\n line.properties,\n holesWithOffsetPosition\n );\n\n state = ret.updatedState;\n\n //re-add to old line's groups if present\n ret.lines.forEach( addedLine => {\n lineGroups.forEach( oldLineGroup => {\n state = Group.addElement( state, oldLineGroup.id, layerID, 'lines', addedLine.id ).updatedState;\n });\n });\n }\n\n state = Layer.detectAndUpdateAreas( state, layerID ).updatedState;\n\n state = state.merge({\n mode: MODE_IDLE,\n draggingSupport: null,\n activeSnapElement: null,\n snapElements: new List()\n });\n\n return { updatedState: state };\n }\n\n static setProperties( state, layerID, lineID, properties ) {\n state = state.mergeIn(['scene', 'layers', layerID, 'lines', lineID, 'properties'], properties);\n\n return { updatedState: state };\n }\n\n static setJsProperties( state, layerID, lineID, properties ) {\n return this.setProperties( state, layerID, lineID, fromJS(properties) );\n }\n\n static updateProperties( state, layerID, lineID, properties) {\n properties.forEach( ( v, k ) => {\n if( state.hasIn(['scene', 'layers', layerID, 'lines', lineID, 'properties', k]) )\n state = state.mergeIn(['scene', 'layers', layerID, 'lines', lineID, 'properties', k], v);\n });\n\n return { updatedState: state };\n }\n\n static updateJsProperties( state, layerID, lineID, properties) {\n return this.updateProperties( state, layerID, lineID, fromJS(properties) );\n }\n\n static setAttributes( state, layerID, lineID, lineAttributes ) {\n\n let lAttr = lineAttributes.toJS();\n let {vertexOne, vertexTwo, lineLength} = lAttr;\n\n delete lAttr['vertexOne'];\n delete lAttr['vertexTwo'];\n delete lAttr['lineLength'];\n\n state = state\n .mergeIn(['scene', 'layers', layerID, 'lines', lineID], fromJS(lAttr))\n .mergeIn(['scene', 'layers', layerID, 'vertices', vertexOne.id], {x: vertexOne.x, y: vertexOne.y})\n .mergeIn(['scene', 'layers', layerID, 'vertices', vertexTwo.id], {x: vertexTwo.x, y: vertexTwo.y})\n .mergeIn(['scene', 'layers', layerID, 'lines', lineID, 'misc'], new Map({'_unitLength': lineLength._unit}));\n\n state = Layer.mergeEqualsVertices( state, layerID, vertexOne.id ).updatedState;\n\n if (vertexOne.x != vertexTwo.x && vertexOne.y != vertexTwo.y) {\n state = Layer.mergeEqualsVertices( state, layerID, vertexTwo.id ).updatedState;\n }\n\n state = Layer.detectAndUpdateAreas( state, layerID ).updatedState;\n\n return { updatedState: state };\n }\n\n static setVerticesCoords( state, layerID, lineID, x1, y1, x2, y2 ) {\n let line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);\n state = Vertex.setAttributes( state, layerID, line.vertices.get(0), new Map({ x: x1, y: y1 }) ).updatedState;\n state = Vertex.setAttributes( state, layerID, line.vertices.get(1), new Map({ x: x2, y: y2 }) ).updatedState;\n\n return { updatedState: state };\n }\n\n}\n\nexport { Line as default };\n","import { List } from 'immutable';\nimport { Project, Area, Line, Hole, Item, Vertex } from './export';\nimport {\n GraphInnerCycles,\n GeometryUtils,\n IDBroker\n} from '../utils/export';\nimport { Layer as LayerModel } from '../models';\n\nconst sameSet = (set1, set2) => set1.size === set2.size && set1.isSuperset(set2) && set1.isSubset(set2);\n\nclass Layer{\n\n static create( state, name, altitude ) {\n let layerID = IDBroker.acquireID();\n name = name || `layer ${layerID}`;\n altitude = altitude || 0;\n\n let layer = new LayerModel({ id: layerID, name, altitude });\n\n state = state.setIn(['scene', 'selectedLayer'], layerID );\n state = state.setIn(['scene', 'layers', layerID], layer);\n\n return { updatedState: state };\n }\n\n static select( state, layerID ) {\n if( !state.get('alterate') ) state = Project.unselectAll( state ).updatedState;\n state = state.setIn(['scene', 'selectedLayer'], layerID);\n\n return { updatedState: state };\n }\n\n static selectElement( state, layerID, elementPrototype, elementID ){\n state = state.setIn(['scene', 'layers', layerID, elementPrototype, elementID, 'selected'], true);\n state = state.updateIn(['scene', 'layers', layerID, 'selected', elementPrototype], elems => elems.push(elementID));\n\n return { updatedState: state };\n }\n\n static unselect( state, layerID, elementPrototype, elementID ){\n state = state.setIn(['scene', 'layers', layerID, elementPrototype, elementID, 'selected'], false);\n state = state.updateIn(['scene', 'layers', layerID, 'selected', elementPrototype], elems => elems.filter( el => el.id === elementID ));\n return { updatedState: state };\n }\n\n static unselectAll( state, layerID ) {\n let { lines, holes, items, areas } = state.getIn(['scene', 'layers', layerID]);\n\n if( lines ) lines.forEach( line => { state = Line.unselect( state, layerID, line.id ).updatedState; });\n if( holes ) holes.forEach( hole => { state = Hole.unselect( state, layerID, hole.id ).updatedState; });\n if( items ) items.forEach( item => { state = Item.unselect( state, layerID, item.id ).updatedState; });\n if( areas ) areas.forEach( area => { state = Area.unselect( state, layerID, area.id ).updatedState; });\n\n return { updatedState: state };\n }\n\n static setProperties( state, layerID, properties ) {\n state = state.mergeIn(['scene', 'layers', layerID], properties);\n state = state.updateIn(['scene', 'layers'], layers => layers.sort( ( a, b ) => a.altitude !== b.altitude ? a.altitude - b.altitude : a.order - b.order ));\n\n return { updatedState: state };\n }\n\n static remove( state, layerID ) {\n state = state.removeIn(['scene', 'layers', layerID]);\n\n state = state.setIn(\n ['scene', 'selectedLayer'],\n state.scene.selectedLayer !== layerID ? state.scene.selectedLayer : state.scene.layers.first().id\n );\n\n return { updatedState: state };\n }\n\n static removeElement( state, layerID, elementPrototype, elementID ) {\n state = state.deleteIn(['scene', 'layers', layerID, elementPrototype, elementID]);\n\n return { updatedState: state };\n }\n\n static detectAndUpdateAreas( state, layerID ) {\n\n let verticesArray = []; //array with vertices coords\n let linesArray; //array with edges\n\n let vertexID_to_verticesArrayIndex = {};\n let verticesArrayIndex_to_vertexID = {};\n\n state.getIn(['scene', 'layers', layerID, 'vertices']).forEach(vertex => {\n let verticesCount = verticesArray.push([vertex.x, vertex.y]);\n let latestVertexIndex = verticesCount - 1;\n vertexID_to_verticesArrayIndex[vertex.id] = latestVertexIndex;\n verticesArrayIndex_to_vertexID[latestVertexIndex] = vertex.id;\n });\n\n linesArray = state.getIn(['scene', 'layers', layerID, 'lines'])\n .map(line => line.vertices.map(vertexID => vertexID_to_verticesArrayIndex[vertexID]).toArray());\n\n let innerCyclesByVerticesArrayIndex = GraphInnerCycles.calculateInnerCycles(verticesArray, linesArray);\n\n let innerCyclesByVerticesID = new List(innerCyclesByVerticesArrayIndex)\n .map(cycle => new List(cycle.map(vertexIndex => verticesArrayIndex_to_vertexID[vertexIndex])));\n\n // All area vertices should be ordered in counterclockwise order\n innerCyclesByVerticesID = innerCyclesByVerticesID.map( ( area ) =>\n GraphInnerCycles.isClockWiseOrder( area.map(vertexID => state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]) ) ) ? area.reverse() : area\n );\n\n let areaIDs = [];\n\n //remove areas\n state.getIn(['scene', 'layers', layerID, 'areas']).forEach(area => {\n let areaInUse = innerCyclesByVerticesID.some(vertices => sameSet(vertices, area.vertices));\n if (!areaInUse) {\n state = Area.remove( state, layerID, area.id ).updatedState;\n }\n });\n\n //add new areas\n innerCyclesByVerticesID.forEach((cycle, ind) => {\n let areaInUse = state.getIn(['scene', 'layers', layerID, 'areas']).find(area => sameSet(area.vertices, cycle));\n\n if (areaInUse) {\n areaIDs[ind] = areaInUse.id;\n state = state.setIn(['scene', 'layers', layerID, 'areas', areaIDs[ind], 'holes'], new List());\n } else {\n let areaVerticesCoords = cycle.map(vertexID => state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]));\n let resultAdd = Area.add(state, layerID, 'area', areaVerticesCoords, state.catalog);\n\n areaIDs[ind] = resultAdd.area.id;\n state = resultAdd.updatedState;\n }\n });\n\n // Build a relationship between areas and their coordinates\n let verticesCoordsForArea = areaIDs.map(id => {\n let vertices = state.getIn(['scene', 'layers', layerID, 'areas', id]).vertices.map(vertexID => {\n let { x, y } = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]);\n return new List([x,y]);\n });\n return { id, vertices };\n });\n\n // Find all holes for an area\n let i, j;\n for (i = 0; i < verticesCoordsForArea.length; i++) {\n let holesList = new List(); // The holes for this area\n let areaVerticesList = verticesCoordsForArea[i].vertices.flatten().toArray();\n for (j = 0; j < verticesCoordsForArea.length; j++) {\n if (i !== j) {\n let isHole = GeometryUtils.ContainsPoint(areaVerticesList,\n verticesCoordsForArea[j].vertices.get(0).get(0),\n verticesCoordsForArea[j].vertices.get(0).get(1));\n if (isHole) {\n holesList = holesList.push(verticesCoordsForArea[j].id);\n }\n }\n }\n state = state.setIn(['scene', 'layers', layerID, 'areas', verticesCoordsForArea[i].id, 'holes'], holesList);\n }\n\n // Remove holes which are already holes for other areas\n areaIDs.forEach(areaID => {\n let doubleHoles = new Set();\n let areaHoles = state.getIn(['scene', 'layers', layerID, 'areas', areaID, 'holes']);\n areaHoles.forEach((areaHoleID) => {\n let holesOfholes = state.getIn(['scene', 'layers', layerID, 'areas', areaHoleID, 'holes']);\n holesOfholes.forEach((holeID) => {\n if (areaHoles.indexOf(holeID) !== -1) doubleHoles.add(holeID);\n });\n });\n doubleHoles.forEach(doubleHoleID => {\n areaHoles = areaHoles.remove( areaHoles.indexOf(doubleHoleID) );\n });\n state = state.setIn(['scene', 'layers', layerID, 'areas', areaID, 'holes'], areaHoles);\n });\n\n return { updatedState: state };\n }\n\n static removeZeroLengthLines( state, layerID ) {\n let updatedState = state.getIn(['scene', 'layers', layerID, 'lines']).reduce(\n ( newState, line ) =>\n {\n let v_id0 = line.getIn(['vertices', 0]);\n let v_id1 = line.getIn(['vertices', 1]);\n\n let v0 = newState.getIn(['scene', 'layers', layerID, 'vertices', v_id0]);\n let v1 = newState.getIn(['scene', 'layers', layerID, 'vertices', v_id1]);\n\n if( GeometryUtils.verticesDistance( v0, v1 ) === 0 )\n {\n newState = Line.remove( newState, layerID, line.id ).updatedState;\n }\n\n return newState;\n },\n state\n );\n\n return { updatedState };\n }\n\n static mergeEqualsVertices( state, layerID, vertexID ) {\n //1. find vertices to remove\n let vertex = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]);\n\n let doubleVertices = state.getIn(['scene', 'layers', layerID, 'vertices'])\n .filter(v => {\n return (\n v.id !== vertexID &&\n GeometryUtils.samePoints(vertex, v)// &&\n //!v.lines.contains( vertexID ) &&\n //!v.areas.contains( vertexID )\n );\n });\n\n if (doubleVertices.isEmpty()) return { updatedState: state };\n\n doubleVertices.forEach(doubleVertex => {\n let reduced = doubleVertex.lines.reduce(\n ( reducedState, lineID ) => {\n\n reducedState = reducedState.updateIn(['scene', 'layers', layerID, 'lines', lineID, 'vertices'], vertices => {\n if( vertices ) {\n return vertices.map(v => v === doubleVertex.id ? vertexID : v);\n }\n });\n reducedState = Vertex.addElement( reducedState, layerID, vertexID, 'lines', lineID ).updatedState;\n\n return reducedState;\n },\n state\n );\n\n let biReduced = doubleVertex.areas.reduce(\n ( reducedState, areaID ) => {\n\n reducedState = reducedState.updateIn(['scene', 'layers', layerID, 'areas', areaID, 'vertices'], vertices => {\n if( vertices ) return vertices.map(v => v === doubleVertex.id ? vertexID : v);\n });\n reducedState = Vertex.addElement( reducedState, layerID, vertexID, 'areas', areaID ).updatedState;\n\n return reducedState;\n },\n reduced\n );\n\n state = Vertex.remove( biReduced, layerID, doubleVertex.id, null, null, true ).updatedState;\n });\n\n return { updatedState: state };\n }\n\n static setPropertiesOnSelected( state, layerID, properties ) {\n let selected = state.getIn(['scene', 'layers', layerID, 'selected']);\n\n selected.lines.forEach(lineID => state = Line.setProperties(state, layerID, lineID, properties).updatedState);\n selected.holes.forEach(holeID => state = Hole.setProperties(state, layerID, holeID, properties).updatedState);\n selected.areas.forEach(areaID => state = Area.setProperties(state, layerID, areaID, properties).updatedState);\n selected.items.forEach(itemID => state = Item.setProperties(state, layerID, itemID, properties).updatedState);\n\n return { updatedState: state };\n }\n\n static updatePropertiesOnSelected( state, layerID, properties ) {\n let selected = state.getIn(['scene', 'layers', layerID, 'selected']);\n\n selected.lines.forEach(lineID => state = Line.updateProperties(state, layerID, lineID, properties).updatedState);\n selected.holes.forEach(holeID => state = Hole.updateProperties(state, layerID, holeID, properties).updatedState);\n selected.areas.forEach(areaID => state = Area.updateProperties(state, layerID, areaID, properties).updatedState);\n selected.items.forEach(itemID => state = Item.updateProperties(state, layerID, itemID, properties).updatedState);\n\n return { updatedState: state };\n }\n\n static setAttributesOnSelected( state, layerID, attributes ) {\n let selected = state.getIn(['scene', 'layers', layerID, 'selected']);\n\n selected.lines.forEach(lineID => state = Line.setAttributes( state, layerID, lineID, attributes ).updatedState);\n selected.holes.forEach(holeID => state = Hole.setAttributes( state, layerID, holeID, attributes ).updatedState);\n selected.items.forEach(itemID => state = Item.setAttributes( state, layerID, itemID, attributes ).updatedState);\n //selected.areas.forEach(areaID => state = Area.setAttributes( state, layerID, areaID, attributes ).updatedState);\n\n return { updatedState: state };\n }\n\n}\n\nexport { Layer as default };\n","import {\n Project,\n Line,\n Hole,\n Item,\n Area,\n Layer,\n Vertex\n} from './export';\nimport { Map, List } from 'immutable';\nimport { Group as GroupModel } from '../models';\nimport { IDBroker, MathUtils, GeometryUtils } from '../utils/export';\n\nclass Group{\n\n static select( state, groupID ){\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n\n state = Project.setAlterate( state ).updatedState;\n\n layerList.entrySeq().forEach( ([groupLayerID, groupLayerElements]) => {\n state = Layer.unselectAll( state, groupLayerID ).updatedState;\n\n let lines = groupLayerElements.get('lines');\n let holes = groupLayerElements.get('holes');\n let items = groupLayerElements.get('items');\n let areas = groupLayerElements.get('areas');\n\n if( lines ) lines.forEach( lineID => { state = Line.select( state, groupLayerID, lineID ).updatedState; });\n if( holes ) holes.forEach( holeID => { state = Hole.select( state, groupLayerID, holeID ).updatedState; });\n if( items ) items.forEach( itemID => { state = Item.select( state, groupLayerID, itemID ).updatedState; });\n if( areas ) areas.forEach( areaID => { state = Area.select( state, groupLayerID, areaID ).updatedState; });\n });\n\n state = Project.setAlterate( state ).updatedState;\n\n let groups = state.getIn(['scene', 'groups']).map( g => g.set('selected', false) );\n\n state = state.setIn(['scene', 'groups'], groups).setIn([ 'scene', 'groups', groupID, 'selected' ], true);\n\n return { updatedState: state };\n }\n\n static unselect( state, groupID ){\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n let reduced = layerList.reduce( ( newState, layer, layerID ) => Layer.unselectAll( newState, layerID ).updatedState, state );\n state = reduced.setIn([ 'scene', 'groups', groupID, 'selected' ], false);\n\n return { updatedState: state };\n }\n\n static create( state ){\n let groupID = IDBroker.acquireID();\n\n state = state.setIn(['scene', 'groups', groupID], new GroupModel({ id: groupID, name: groupID}) );\n\n return { updatedState: state };\n }\n\n static createFromSelectedElements( state ){\n let groupID = IDBroker.acquireID();\n\n state = state.setIn(['scene', 'groups', groupID], new GroupModel({ id: groupID, name: groupID}) );\n\n state.getIn(['scene', 'layers']).forEach((layer) => {\n\n let layerID = layer.get('id');\n let layerElements = {\n 'lines': layer.get('lines').filter( el => el.get('selected') ),\n 'items': layer.get('items').filter( el => el.get('selected') ),\n 'holes': layer.get('holes').filter( el => el.get('selected') ),\n 'areas': layer.get('areas').filter( el => el.get('selected') )\n };\n\n for( let elementPrototype in layerElements ) {\n layerElements[elementPrototype].forEach( el => state = this.addElement( state, groupID, layerID, elementPrototype, el.get('id') ).updatedState );\n }\n });\n\n return {updatedState: state};\n }\n\n static addElement( state, groupID, layerID, elementPrototype, elementID ){\n let actualList = state.getIn(['scene', 'groups', groupID, 'elements', layerID, elementPrototype]) || new List();\n\n if( !actualList.contains(elementID) ) {\n state = state.setIn(['scene', 'groups', groupID, 'elements', layerID, elementPrototype], actualList.push(elementID));\n\n state = this.reloadBaricenter( state, groupID ).updatedState;\n }\n\n return { updatedState: state };\n }\n\n static setBarycenter( state, groupID, x, y ) {\n if (typeof x !== 'undefined') state = state.setIn(['scene', 'groups', groupID, 'x'], x);\n if (typeof y !== 'undefined') state = state.setIn(['scene', 'groups', groupID, 'y'], y);\n\n return { updatedState: state };\n }\n\n static reloadBaricenter( state, groupID ) {\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n\n let { a, b, c, d, e, f, SVGHeight } = state.get('viewer2D').toJS();\n\n let m1 = [\n [ a, b, c ],\n [ d, e, f ],\n [ 0, 0, 1 ]\n ];\n\n let xBar = 0;\n let yBar = 0;\n let elementCount = 0;\n\n layerList.entrySeq().forEach( ([groupLayerID, groupLayerElements]) => {\n state = Layer.unselectAll( state, groupLayerID ).updatedState;\n\n let lines = groupLayerElements.get('lines');\n let holes = groupLayerElements.get('holes');\n let items = groupLayerElements.get('items');\n let areas = groupLayerElements.get('areas');\n\n if( lines ) lines.forEach( ( lineID ) => {\n let vertices = state.getIn(['scene', 'layers', groupLayerID, 'lines', lineID, 'vertices'])\n .map( vID => state.getIn(['scene', 'layers', groupLayerID, 'vertices', vID]) );\n\n let { x: x1, y: y1 } = vertices.get(0);\n let { x: x2, y: y2 } = vertices.get(1);\n let { x: xM, y: yM } = GeometryUtils.midPoint( x1, y1, x2, y2 );\n\n xBar += xM;\n yBar += yM;\n elementCount++;\n });\n\n if( holes ) holes.forEach( holeID => {\n let hole = state.getIn(['scene', 'layers', groupLayerID, 'holes', holeID]);\n let lineVertices = state.getIn(['scene', 'layers', groupLayerID, 'lines', hole.line, 'vertices'])\n .map( vID => state.getIn(['scene', 'layers', groupLayerID, 'vertices', vID]) );\n let { x: x1, y: y1 } = lineVertices.get(0);\n let { x: x2, y: y2 } = lineVertices.get(1);\n let { x, y } = GeometryUtils.extendLine( x1, y1, x2, y2, hole.offset * GeometryUtils.pointsDistance( x1, y1, x2, y2 ) );\n\n xBar += x;\n yBar += y;\n elementCount++;\n });\n\n if( items ) items.forEach( itemID => {\n let { x, y } = state.getIn(['scene', 'layers', groupLayerID, 'items', itemID]);\n\n xBar += x;\n yBar += y;\n elementCount++;\n });\n\n if( areas ) areas.forEach( areaID => {\n let areaVertices = state.getIn(['scene', 'layers', groupLayerID, 'areas', areaID, 'vertices'])\n .map( vID => state.getIn(['scene', 'layers', groupLayerID, 'vertices', vID]) ).toJS();\n let { x, y } = GeometryUtils.verticesMidPoint( areaVertices );\n\n xBar += x;\n yBar += y;\n elementCount++;\n });\n });\n\n if( elementCount ) {\n state = this.setBarycenter( state, groupID, xBar / elementCount, yBar / elementCount ).updatedState;\n }\n\n return { updatedState: state };\n }\n\n static removeElement( state, groupID, layerID, elementPrototype, elementID ) {\n let actualList = state.getIn(['scene', 'groups', groupID, 'elements', layerID, elementPrototype]);\n\n if( !actualList || !actualList.contains(elementID) )\n {\n return { updatedState: state };\n }\n\n state = state.setIn(['scene', 'groups', groupID, 'elements', layerID, elementPrototype], actualList.filterNot( el => el === elementID ));\n\n return { updatedState : state };\n }\n\n static setAttributes( state, groupID, attributes ){\n state = state.mergeIn(['scene', 'groups', groupID], attributes);\n\n return { updatedState : state };\n }\n\n static setProperties( state, groupID, properties ){\n state = state.mergeIn(['scene', 'groups', groupID, 'properties'], properties);\n\n return { updatedState : state };\n }\n\n static remove( state, groupID ) {\n state = state.removeIn(['scene', 'groups', groupID]);\n\n return { updatedState : state };\n }\n\n static removeAndDeleteElements( state, groupID ) {\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n\n layerList.entrySeq().forEach( ([groupLayerID, groupLayerElements]) => {\n state = Layer.unselectAll( state, groupLayerID ).updatedState;\n\n let lines = groupLayerElements.get('lines');\n let holes = groupLayerElements.get('holes');\n let items = groupLayerElements.get('items');\n let areas = groupLayerElements.get('areas');\n\n if( lines ) {\n lines.forEach( lineID => {\n state = Line.remove( state, groupLayerID, lineID ).updatedState;\n state = Layer.detectAndUpdateAreas( state, groupLayerID ).updatedState;\n });\n }\n\n if( holes ) holes.forEach( holeID => { state = Hole.remove( state, groupLayerID, holeID ).updatedState; });\n if( items ) items.forEach( itemID => { state = Item.remove( state, groupLayerID, itemID ).updatedState; });\n //( actually ) no effect by area's destruction\n if( false && areas ) areas.forEach( areaID => { state = Area.remove( state, groupLayerID, areaID ).updatedState; });\n });\n\n state = state.deleteIn([ 'scene', 'groups', groupID ]);\n\n return { updatedState: state };\n }\n\n static translate( state, groupID, x, y ) {\n let deltaX = x - state.getIn(['scene', 'groups', groupID, 'x']);\n let deltaY = y - state.getIn(['scene', 'groups', groupID, 'y']);\n\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n\n layerList.entrySeq().forEach( ([groupLayerID, groupLayerElements]) => {\n let lines = groupLayerElements.get('lines');\n //let holes = groupLayerElements.get('holes');\n let items = groupLayerElements.get('items');\n //let areas = groupLayerElements.get('areas');\n\n //move vertices instead lines avoiding multiple vertex translation\n if( lines ) {\n let vertices = {};\n lines.forEach( lineID => {\n let line = state.getIn(['scene', 'layers', groupLayerID, 'lines', lineID]);\n if( !vertices[ line.vertices.get(0) ] ) vertices[ line.vertices.get(0) ] = state.getIn(['scene', 'layers', groupLayerID, 'vertices', line.vertices.get(0)])\n if( !vertices[ line.vertices.get(1) ] ) vertices[ line.vertices.get(1) ] = state.getIn(['scene', 'layers', groupLayerID, 'vertices', line.vertices.get(1)])\n });\n\n for( let vertexID in vertices ) {\n let { x: xV, y: yV } = vertices[ vertexID ];\n state = Vertex.setAttributes( state, groupLayerID, vertexID, new Map({ x: xV + deltaX, y: yV + deltaY }) ).updatedState;\n }\n\n //need to be separated from setAttributes cycle\n for( let vertexID in vertices ) {\n state = Vertex.beginDraggingVertex( state, groupLayerID, vertexID ).updatedState;\n state = Vertex.endDraggingVertex( state ).updatedState;\n }\n }\n\n if( items ) state = items\n .map( itemID => state.getIn(['scene', 'layers', groupLayerID, 'items', itemID]) )\n .reduce( ( newState, item ) => {\n let { x: xI, y: yI } = item;\n return Item.setAttributes( newState, groupLayerID, item.id, new Map({ x: xI + deltaX, y: yI + deltaY }) ).updatedState;\n }, state );\n\n //translation of holes and areas should not take any effect\n //if( holes ) holes.forEach( holeID => { state = Hole.select( state, groupLayerID, holeID ).updatedState; });\n //if( areas ) areas.forEach( areaID => { state = Area.select( state, groupLayerID, areaID ).updatedState; });\n\n state = Layer.detectAndUpdateAreas( state, groupLayerID ).updatedState;\n });\n\n state = this.setBarycenter( state, groupID, x, y ).updatedState;\n\n state = Group.select( state, groupID ).updatedState;\n\n return { updatedState: state };\n }\n\n static rotate( state, groupID, newAlpha ) {\n\n\n let { x: barX, y: barY, rotation } = state.getIn(['scene', 'groups', groupID]);\n\n let alpha = newAlpha - rotation;\n\n state = Group.setAttributes( state, groupID, new Map({ rotation: newAlpha }) ).updatedState;\n\n let layerList = state.getIn([ 'scene', 'groups', groupID, 'elements' ]);\n\n layerList.entrySeq().forEach( ([groupLayerID, groupLayerElements]) => {\n let lines = groupLayerElements.get('lines');\n let holes = groupLayerElements.get('holes');\n let items = groupLayerElements.get('items');\n let areas = groupLayerElements.get('areas');\n\n //move vertices instead lines avoiding multiple vertex translation\n if( lines ) {\n let vertices = {};\n lines.forEach( lineID => {\n let line = state.getIn(['scene', 'layers', groupLayerID, 'lines', lineID]);\n if( !vertices[ line.vertices.get(0) ] ) vertices[ line.vertices.get(0) ] = state.getIn(['scene', 'layers', groupLayerID, 'vertices', line.vertices.get(0)])\n if( !vertices[ line.vertices.get(1) ] ) vertices[ line.vertices.get(1) ] = state.getIn(['scene', 'layers', groupLayerID, 'vertices', line.vertices.get(1)])\n });\n\n for( let vertexID in vertices ) {\n let { x: xV, y: yV } = vertices[ vertexID ];\n let { x: newX, y: newY } = GeometryUtils.rotatePointAroundPoint( xV, yV, barX, barY, alpha );\n state = Vertex.setAttributes( state, groupLayerID, vertexID, new Map({ x: newX, y: newY }) ).updatedState;\n }\n //need to be separated from setAttributes cycle\n for( let vertexID in vertices ) {\n state = Vertex.beginDraggingVertex( state, groupLayerID, vertexID ).updatedState;\n state = Vertex.endDraggingVertex( state ).updatedState;\n }\n }\n\n if( items ) state = items\n .map( itemID => state.getIn(['scene', 'layers', groupLayerID, 'items', itemID]) )\n .reduce( ( newState, item ) => {\n let { x: xI, y: yI, rotation: rI } = item;\n\n let { x: newX, y: newY } = GeometryUtils.rotatePointAroundPoint( xI, yI, barX, barY, alpha );\n\n return Item.setAttributes( newState, groupLayerID, item.id, new Map({ x: newX, y: newY, rotation: rI + alpha }) ).updatedState;\n }, state );\n\n //rotation of holes and areas should not take any effect\n //if( holes ) holes.forEach( holeID => { state = Hole.select( state, groupLayerID, holeID ).updatedState; });\n //if( areas ) areas.forEach( areaID => { state = Area.select( state, groupLayerID, areaID ).updatedState; });\n\n state = Layer.detectAndUpdateAreas( state, groupLayerID ).updatedState;\n });\n\n state = Group.select( state, groupID ).updatedState;\n\n return { updatedState: state };\n }\n\n}\n\nexport { Group as default };\n","export default class NameGenerator {\n static generateName( prototype, type ) {\n return type.substr(0, 1).toUpperCase() + type.substr(1);\n }\n}\n","let shortid = require('shortid');\n\nexport class IDBroker {\n static acquireID() {\n return shortid.generate();\n }\n}\n\nexport default IDBroker;\n","import { Map } from 'immutable';\nimport diff from 'immutablediff';\nimport patch from 'immutablepatch';\n\nexport const historyPush = (historyStructure, item) => {\n if (historyStructure.last) {\n if (historyStructure.last.hashCode() !== item.hashCode()) {\n let toPush = new Map({\n time: Date.now(),\n diff: diff(historyStructure.last, item)\n });\n\n historyStructure = historyStructure\n .set('last', item)\n .set('list', historyStructure.list.push(toPush));\n }\n }\n else {\n historyStructure = historyStructure.set('last', item);\n }\n return historyStructure;\n};\n\nexport const historyPop = (historyStructure) => {\n if (historyStructure.last) {\n if (historyStructure.list.size) {\n let last = historyStructure.first;\n for (let x = 0; x < historyStructure.list.size - 1; x++) {\n last = patch(last, historyStructure.list.get(x).get('diff'));\n }\n\n historyStructure = historyStructure\n .set('last', last)\n .set('list', historyStructure.list.pop());\n }\n }\n return historyStructure;\n};\n","import {\n SNAP_POINT,\n SNAP_LINE,\n SNAP_SEGMENT,\n SNAP_GRID,\n SNAP_GUIDE,\n addPointSnap,\n addLineSnap,\n addLineSegmentSnap,\n addGridSnap\n} from './snap';\nimport { GeometryUtils } from './export';\nimport { Map, List } from 'immutable';\n\nexport function sceneSnapElements(scene, snapElements = new List(), snapMask = new Map()) {\n\n let { width, height } = scene;\n\n let a, b, c;\n return snapElements.withMutations(snapElements => {\n scene.layers.forEach(layer => {\n\n let { lines, vertices } = layer;\n\n vertices.forEach(({ id: vertexID, x, y }) => {\n\n if (snapMask.get(SNAP_POINT)) {\n addPointSnap(snapElements, x, y, 10, 10, vertexID);\n }\n\n if (snapMask.get(SNAP_LINE)) {\n ({ a, b, c } = GeometryUtils.horizontalLine(y));\n addLineSnap(snapElements, a, b, c, 10, 1, vertexID);\n ({ a, b, c } = GeometryUtils.verticalLine(x));\n addLineSnap(snapElements, a, b, c, 10, 1, vertexID);\n }\n\n });\n\n if (snapMask.get(SNAP_SEGMENT)) {\n lines.forEach(({ id: lineID, vertices: [v0, v1] }) => {\n let { x: x1, y: y1 } = vertices.get(v0);\n let { x: x2, y: y2 } = vertices.get(v1);\n\n addLineSegmentSnap(snapElements, x1, y1, x2, y2, 20, 1, lineID);\n });\n }\n\n });\n\n if (snapMask.get(SNAP_GRID)) {\n let divider = 5;\n let gridCellSize = 100 / divider;\n let xCycle = width / gridCellSize;\n let yCycle = height / gridCellSize;\n\n for (let x = 0; x < xCycle; x++) {\n let xMul = x * gridCellSize;\n\n for (let y = 0; y < yCycle; y++) {\n let yMul = y * gridCellSize;\n\n let onXCross = !(x % divider) ? true : false;\n let onYCross = !(y % divider) ? true : false;\n\n addGridSnap(snapElements, xMul, yMul, 10, onXCross && onYCross ? 15 : 10, null);\n }\n }\n }\n\n if (snapMask.get(SNAP_GUIDE)) {\n\n let horizontal = scene.getIn(['guides', 'horizontal']);\n let vertical = scene.getIn(['guides', 'vertical']);\n\n let hValues = horizontal.valueSeq();\n let vValues = vertical.valueSeq();\n\n hValues.forEach(hVal => {\n vValues.forEach(vVal => {\n addPointSnap(snapElements, vVal, hVal, 10, 10);\n });\n });\n\n hValues.forEach(hVal => addLineSegmentSnap(snapElements, 0, hVal, width, hVal, 20, 1));\n vValues.forEach(vVal => addLineSegmentSnap(snapElements, vVal, 0, vVal, height, 20, 1));\n\n }\n\n })\n}\n","/**\n * UTILS\n */\n\nfunction sub (v1, v2) {\n return [v1[0] - v2[0], v1[1] - v2[1]]\n}\n\nfunction mod (n, m) {\n return ((n % m) + m) % m\n}\n\n/**\n * CYCLES\n */\n\nfunction compute_ev_mapping (EV) {\n let ev_mapping = EV.map(function (ev) {\n return {\n ev: ev,\n color: 0,\n direction: -1\n }\n })\n\n return ev_mapping\n}\n\nfunction compute_angle (P, V) {\n let point = sub(V, P)\n let angle = Math.atan2(point[1], point[0])\n return angle\n}\n\nfunction compute_incidences (V, EV) {\n let incidences = V.map(function (vertex, i) {\n let incidence = []\n EV.forEach(function (edge, j) {\n let endpoint\n let position\n\n if (edge[0] === i) {\n endpoint = edge[1]\n position = 1\n }\n\n if (edge[1] === i) {\n endpoint = edge[0]\n position = 0\n }\n\n endpoint !== undefined && incidence.push({\n index: j,\n endpoint: endpoint,\n angle: compute_angle(vertex, V[endpoint]),\n edge: edge,\n position: position\n })\n })\n\n incidence.sort(function (i1, i2) {\n return i2.angle - i1.angle\n })\n\n return incidence\n })\n\n return incidences\n}\n\nfunction get_starting_edge (incidences, ev_mapping) {\n let e\n let position\n let direction\n for (e = 0; e < ev_mapping.length; e += 1) {\n if (ev_mapping[e].color < 2) {\n direction = -1 * ev_mapping[e].direction\n color(ev_mapping, e, direction)\n return {\n edge: e,\n direction: direction,\n position: direction === -1 ? 0 : 1\n }\n }\n }\n}\n\nfunction get_next_edge (incidences, edge, position, EV) {\n let items = incidences[EV[edge][position]]\n //console.log(items, incidences, EV, edge, position);\n let n_items = items.length\n let item\n let out\n let j\n for (j = 0; j < n_items; j += 1) {\n item = items[j]\n if (item.index === edge) {\n out = items[mod(j + 1, items.length)]\n return {\n edge: out.index,\n vertex: out.endpoint,\n position: out.position,\n direction: out.position ? 1 : -1\n }\n }\n }\n}\n\nfunction color (ev_mapping, index, direction) {\n ev_mapping[index].color += 1\n ev_mapping[index].direction = direction\n}\n\nfunction find_cycles (V, EV) {\n let ev_mapping = compute_ev_mapping(EV)\n let incidences = compute_incidences(V, EV)\n let V_cycles = []\n let E_cycles = []\n let dir_E_cycles = []\n let V_cycle\n let E_cycle\n let dir_E_cycle\n let next\n let counter = 0\n let start = get_starting_edge(incidences, ev_mapping)\n\n while (start !== undefined) {\n V_cycle = [EV[start.edge][mod(start.position + 1, 2)], EV[start.edge][start.position]]\n E_cycle = [start.edge]\n dir_E_cycle = [start.direction]\n next = get_next_edge(incidences, start.edge, start.position, EV)\n while (next.edge !== start.edge) {\n V_cycle.push(next.vertex)\n E_cycle.push(next.edge)\n dir_E_cycle.push(next.direction)\n color(ev_mapping, next.edge, next.direction)\n next = get_next_edge(incidences, next.edge, next.position, EV)\n }\n E_cycles.push(E_cycle)\n V_cycles.push(V_cycle)\n dir_E_cycles.push(dir_E_cycle)\n\n //console.log('############## CYCLE ', ++counter)\n //console.log('EDGES:', E_cycle)\n //console.log('VERTICES:', V_cycle)\n //console.log('START', 'edge:', start.edge, 'position:', start.position)\n //console.log('COUNTER:', ev_mapping.map(e => e.color), ev_mapping.map(e => e.color).reduce((a, b) => a + b));\n //console.log('\\n')\n\n start = get_starting_edge(incidences, ev_mapping)\n }\n\n return {\n v_cycles: V_cycles,\n e_cycles: E_cycles,\n dir_e_cycles: dir_E_cycles,\n ev_mapping: ev_mapping\n }\n}\n\nfunction find_short_cycles_indexes (v_cycles, e_cycles) {\n let indexes = [];\n let e_cycle;\n let v_cycle;\n let i;\n\n for (i = 0; i < e_cycles.length; i += 1) {\n e_cycle = e_cycles[i];\n v_cycle = v_cycles[i];\n if ((e_cycle.length < 3) || (v_cycle[0] !== v_cycle[v_cycle.length - 1])) {\n indexes.push(i);\n }\n }\n\n return indexes;\n}\n\nfunction find_inner_cycles (V, EV) {\n let cycles = find_cycles(V, EV);\n let v_cycles = cycles.v_cycles;\n let e_cycles = cycles.e_cycles;\n let short_cycles_indexes = find_short_cycles_indexes(v_cycles, e_cycles);\n short_cycles_indexes.forEach(indx => {\n v_cycles.splice(indx, 1);\n e_cycles.splice(indx, 1);\n })\n let dir_e_cycles = cycles.dir_e_cycles;\n let rooms_values = cycles.e_cycles.map((cycle, i) => cycle.map(function (edge, j) {\n let v1;\n let v2;\n\n let dir = dir_e_cycles[i][j] > 0\n\n if (dir > 0) {\n v1 = EV[edge][0];\n v2 = EV[edge][1];\n } else {\n v1 = EV[edge][1];\n v2 = EV[edge][0];\n }\n\n return (V[v2][0] - V[v1][0]) * (V[v2][1] + V[v1][1]);\n }));\n\n let rooms_sums = rooms_values.map(room => room.reduce((a, b) => a + b))\n\n let positive_count = rooms_sums.filter(sum => sum > 0).length;\n let negative_count = rooms_sums.length - positive_count;\n\n let rm_neg = positive_count >= negative_count ? 1 : -1;\n\n return {\n v_cycles: cycles.v_cycles.filter((v, i) => (rm_neg * rooms_sums[i]) > 0 ),\n e_cycles: cycles.e_cycles.filter((v, i) => (rm_neg * rooms_sums[i]) > 0 ),\n ev_mapping: cycles.ev_mapping\n }\n}\n\n// export default find_inner_cycles;\nmodule.exports = find_inner_cycles\n\n/**\n* DATA\n*/\n\n// let V = [[0.5774, 1.0], [1.0, 1.0], [1.1547, 0.0], [1.0, 0.0], [0.0, 0.0], [0.0, 0.732], [1.0, 0.1547], [0.732, 0.0], [1.0491, 0.183], [-0.317, 0.549], [1.0, 0.268], [0.183, -0.3169], [0.5491, 1.049], [0.4642, 1.0], [0.0, -0.4226], [0.0, 1.0]]\n// let EV = [[0, 1], [2, 3], [5, 4], [7, 6], [2, 8], [3, 6], [4, 9], [0, 10], [9, 5], [8, 10], [7, 11], [12, 13], [6, 8], [6, 10], [4, 7], [4, 11], [4, 14], [5, 15], [11, 14], [0, 12], [13, 15], [0, 13], [1, 10], [3, 7], [5, 13]]\n\n// let V = [[0,0],[10,0],[10,10],[0,10], [100,100],[110,100],[110,110],[100,110], [5,0], [5,10]]\n// let V = [[0,0.5],[12,-0.7],[14,14],[-2,10], [103,106],[117,98],[96,112],[104,109], [5.5,0.8], [4.8,10.5]]\n// let EV = [[3,9],[9,2],[2,1],[1,8],[8,0],[0,3],[8,9]] // IT WORKS\n// let EV = [[3,9],[9,2],[2,1],[1,8],[8,0],[0,3],[8,9], [5,6], [6,7], [2,5]] // IT DOESN'T WORK\n// let EV = [[3,2],[2,1],[1,0],[0,3]] // IT WORKS\n// let EV = [[2,3],[1,2],[0,1],[3,0]] // IT WORKS\n// let EV = [[2,3],[1,2],[0,1],[3,0],[6,7],[5,6],[4,5],[7,4]] // IT WORKS\n// let EV = [[3,2],[2,1],[1,0],[0,3],[7,6],[6,5],[5,4],[4,7]] // IT WORKS\n\n// let V = [[2,5],[5,6],[10,6.8],[23,8],[9.6,11.3],[20,15],[25,16],[29,18],[30,22],[4,11],[6,10],[24,25],[18,20],[27,7]]\n// let EV = [[0,1],[10,0],[9,10],[9,1],[1,2],[4,2],[3,13],[2,3],[4,5],[5,6],[6,7],[12,5],[12,11],[11,6],[11,8],[7,8],[9,4]]\n\n/**\n* MAIN\n*/\n\n// let cycles_data = find_inner_cycles(V, EV)\n// console.log('############## OUTPUT')\n// console.log('EDGES:')\n// console.log(cycles_data.e_cycles)\n// console.log('\\n')\n// console.log('VERTICES:')\n// console.log(cycles_data.v_cycles)\n// console.log('\\n')\n// console.log(cycles_data.ev_mapping.every(m => m.color === 2))\n\n","function getEdgesOfSubgraphs(subgraphs, graph) {\n\n let edges = [];\n\n subgraphs.forEach(component => {\n edges.push([]);\n let vertices = getVerticesFromBiconnectedComponent(component);\n let inserted = [];\n vertices.forEach(vertex => {\n let adjacents = graph.adj[vertex];\n adjacents.forEach(adj => {\n if (vertex <= adj && vertices.has(adj)) {\n edges[edges.length - 1].push([vertex,adj]);\n }\n });\n });\n });\n return edges;\n\n}\n\nfunction getVerticesFromBiconnectedComponent(component) {\n let vertices = new Set();\n component.forEach(edge => {\n vertices.add(edge.u);\n vertices.add(edge.v);\n });\n return vertices;\n}\n\nmodule.exports = getEdgesOfSubgraphs;\n","//JS porting of this code http://www.geeksforgeeks.org/biconnected-components/\n\nfunction create_array(length) {\n let array = [];\n for (let i = 0; i < length; ++i) {\n array.push([]);\n }\n return array;\n}\n\n\nclass Edge {\n constructor(u, v) {\n this.u = u;\n this.v = v;\n }\n}\n\nclass Graph {\n\n constructor(v) {\n this.count = 0; // count is number of biconnected components\n this.subgraphs = []; //biconnected components\n this.time = 0; // time is used to find discovery times\n\n this.V = v; // No. of vertices\n this.E = 0; // No. of Edges\n this.adj = []; // Adjacency List\n\n this.adj = create_array(v);\n }\n\n //Function to add an edge into the graph\n addEdge(v, w) {\n this.adj[v].push(w);\n this.E++;\n }\n\n // A recursive function that finds and prints strongly connected\n // components using DFS traversal\n // u --> The vertex to be visited next\n // disc[] --> Stores discovery times of visited vertices\n // low[] -- >> earliest visited vertex (the vertex with minimum\n // discovery time) that can be reached from subtree\n // rooted with current vertex\n // *st -- >> To store visited edges\n // // A recursive function that finds and prints strongly connected\n // components using DFS traversal\n // u --> The vertex to be visited next\n // disc[] --> Stores discovery times of visited vertices\n // low[] -- >> earliest visited vertex (the vertex with minimum\n // discovery time) that can be reached from subtree\n // rooted with current vertex\n // *st -- >> To store visited edges\n _BCCUtil(u, disc, low, st, parent) {\n // Initialize discovery time and low value\n disc[u] = low[u] = ++this.time;\n this.children = 0;\n\n // Go through all vertices adjacent to this\n // v is current adjacent of 'u'\n this.adj[u].forEach(v => {\n\n // If v is not visited yet, then recur for it\n if (disc[v] == -1) {\n this.children++;\n parent[v] = u;\n\n // store the edge in stack\n st.push(new Edge(u, v));\n this._BCCUtil(v, disc, low, st, parent);\n\n // Check if the subtree rooted with 'v' has a\n // connection to one of the ancestors of 'u'\n // Case 1 -- per Strongly Connected Components Article\n if (low[u] > low[v])\n low[u] = low[v];\n\n // If u is an articulation point,\n // pop all edges from stack till u -- v\n if ((disc[u] == 1 && this.children > 1) || (disc[u] > 1 && low[v] >= disc[u])) {\n let subgraph = [];\n while (st[st.length - 1].u != u || st[st.length - 1].v != v) {\n subgraph.push(st[st.length - 1]);\n //console.log(st[st.length - 1].u + \"--\" + st[st.length - 1].v + \" \");\n st.splice(st.length - 1, 1);\n }\n\n subgraph.push(st[st.length - 1]);\n //console.log(st[st.length - 1].u + \"--\" + st[st.length - 1].v + \" \");\n this.subgraphs.push(subgraph);\n subgraph = [];\n //console.log()\n st.splice(st.length - 1, 1);\n\n this.count++;\n }\n }\n\n // Update low value of 'u' only of 'v' is still in stack\n // (i.e. it's a back edge, not cross edge).\n // Case 2 -- per Strongly Connected Components Article\n else if (v != parent[u] && disc[v] < low[u]) {\n if (low[u] > disc[v])\n low[u] = disc[v];\n st.push(new Edge(u, v));\n }\n })\n }\n\n BCC() {\n let V = this.V;\n let disc = create_array(V);\n let low = create_array(V);\n let parent = create_array(V);\n let st = [];\n\n // Initialize disc and low, and parent arrays\n for (let i = 0; i < V; i++) {\n disc[i] = -1;\n low[i] = -1;\n parent[i] = -1;\n }\n\n for (let i = 0; i < V; i++) {\n if (disc[i] == -1)\n this._BCCUtil(i, disc, low, st, parent);\n\n let j = 0;\n\n // If stack is not empty, pop all edges from stack\n let subgraph = [];\n while (st.length > 0) {\n j = 1;\n subgraph.push(st[st.length - 1]);\n //console.log(st[st.length - 1].u + \"--\" + st[st.length - 1].v + \" \");\n st.splice(st.length - 1, 1);\n }\n\n if (j == 1) {\n this.subgraphs.push(subgraph);\n subgraph = [];\n //console.log();\n this.count++;\n }\n }\n }\n}\n\nmodule.exports = Graph;\n","import Graph from './graph';\nimport getEdgesOfSubgraphs from './get-edges-of-subgraphs';\nimport graphCycles from './graph-cycles';\nimport {List} from 'immutable';\n\nexport function calculateInnerCycles(verticesArray, edgesArray) {\n let innerCycles = new List();\n\n let graph = new Graph(verticesArray.length);\n edgesArray.forEach(line => {\n graph.addEdge(line[0], line[1]);\n graph.addEdge(line[1], line[0]);\n });\n\n graph.BCC();\n\n let subgraphs = graph.subgraphs.filter(subgraph => subgraph.length >= 3);\n let edgesOfSubgraphsArray = getEdgesOfSubgraphs(subgraphs, graph);\n\n let edges = [];\n edgesOfSubgraphsArray.forEach(es => {\n es.forEach(edge => edges.push(edge))\n });\n\n let cycles = graphCycles(verticesArray, edges);\n cycles.v_cycles.forEach(cycle => {\n cycle.shift();\n innerCycles = innerCycles.push(cycle);\n });\n\n return innerCycles;\n}\n\nexport function isClockWiseOrder(innerCycleWithCoords) {\n // See: https://stackoverflow.com/a/1165943 and http://blog.element84.com/polygon-winding.html\n\n let i = 0;\n let twiceEnclosedArea = 0;\n let size = innerCycleWithCoords.size;\n\n for (i = 0; i < size; i++) {\n\n let { x: x1, y: y1 } = innerCycleWithCoords.get(i);\n let { x: x2, y: y2 } = innerCycleWithCoords.get((i + 1) % size);\n\n twiceEnclosedArea += (x2 - x1) * (y2 + y1);\n }\n\n return twiceEnclosedArea > 0;\n}\n","import { Map, List } from 'immutable';\nimport {\n MODE_VIEWING_CATALOG,\n MODE_CONFIGURING_PROJECT,\n MODE_IDLE\n} from '../constants';\nimport { State, Catalog } from '../models';\nimport { history } from '../utils/export';\nimport {\n Layer,\n Group,\n Line,\n Hole,\n Item,\n HorizontalGuide,\n VerticalGuide\n} from '../class/export';\n\nclass Project{\n\n static setAlterate( state ){\n return { updatedState: state.set('alterate', !state.alterate ) };\n }\n\n static openCatalog( state ) {\n state = this.setMode( state, MODE_VIEWING_CATALOG ).updatedState;\n\n return { updatedState: state };\n }\n\n static newProject() {\n return { updatedState: new State() };\n }\n\n static loadProject(state, sceneJSON) {\n state = new State({ scene: sceneJSON, catalog: state.catalog.toJS() });\n\n return { updatedState: state };\n }\n\n static setProperties(state, layerID, properties) {\n state = Layer.setPropertiesOnSelected( state, layerID, properties ).updatedState;\n \n return { updatedState: state };\n }\n\n static updateProperties(state, layerID, properties) {\n state = Layer.updatePropertiesOnSelected( state, layerID, properties ).updatedState;\n\n return { updatedState: state };\n }\n\n static setItemsAttributes(state, attributes) {\n //TODO apply only to items\n state.getIn(['scene', 'layers']).forEach( layer => { state = Layer.setAttributesOnSelected( state, layer.id, attributes ).updatedState; } );\n\n return { updatedState: state };\n }\n\n static setLinesAttributes(state, attributes) {\n //TODO apply only to lines\n state.getIn(['scene', 'layers']).forEach( layer => { state = Layer.setAttributesOnSelected( state, layer.id, attributes ).updatedState; } );\n\n return { updatedState: state };\n }\n\n static setHolesAttributes(state, attributes) {\n //TODO apply only to holes\n state.getIn(['scene', 'layers']).forEach( layer => { state = Layer.setAttributesOnSelected( state, layer.id, attributes ).updatedState; } );\n\n return { updatedState: state };\n }\n\n static unselectAll(state) {\n state.getIn(['scene', 'layers']).forEach( ({ id: layerID }) => { state = Layer.unselectAll( state, layerID ).updatedState; });\n state.getIn(['scene', 'groups']).forEach( group => { state = Group.unselect( state, group.get('id') ).updatedState; });\n\n return { updatedState: state };\n }\n\n static remove(state) {\n let selectedLayer = state.getIn(['scene', 'selectedLayer']);\n let {\n lines: selectedLines,\n holes: selectedHoles,\n items: selectedItems\n } = state.getIn(['scene', 'layers', selectedLayer, 'selected']);\n\n state = Layer.unselectAll( state, selectedLayer ).updatedState;\n\n selectedLines.forEach(lineID => { state = Line.remove( state, selectedLayer, lineID ).updatedState; });\n selectedHoles.forEach(holeID => { state = Hole.remove( state, selectedLayer, holeID ).updatedState; });\n selectedItems.forEach(itemID => { state = Item.remove( state, selectedLayer, itemID ).updatedState; });\n\n state = Layer.detectAndUpdateAreas( state, selectedLayer ).updatedState;\n\n return { updatedState: state };\n }\n\n static undo(state) {\n let sceneHistory = state.sceneHistory;\n if (state.scene === sceneHistory.last && sceneHistory.list.size > 1) {\n sceneHistory = history.historyPop(sceneHistory);\n }\n\n state = state.merge({\n mode: MODE_IDLE,\n scene: sceneHistory.last,\n sceneHistory: history.historyPop(sceneHistory)\n });\n\n return { updatedState: state };\n }\n\n static rollback(state) {\n let sceneHistory = state.sceneHistory;\n\n if (!sceneHistory.last && sceneHistory.list.isEmpty()) {\n return { updatedState: state };\n }\n\n state = this.unselectAll( state ).updatedState;\n\n state = state.merge({\n mode: MODE_IDLE,\n scene: sceneHistory.last,\n sceneHistory: history.historyPush(sceneHistory, sceneHistory.last),\n snapElements: new List(),\n activeSnapElement: null,\n drawingSupport: new Map(),\n draggingSupport: new Map(),\n rotatingSupport: new Map(),\n });\n\n return { updatedState: state };\n }\n\n static setProjectProperties(state, properties) {\n let scene = state.scene.merge(properties);\n state = state.merge({\n mode: MODE_IDLE,\n scene\n });\n\n return { updatedState: state };\n }\n\n static openProjectConfigurator(state) {\n state = state.merge({\n mode: MODE_CONFIGURING_PROJECT,\n });\n\n return { updatedState: state };\n }\n\n static initCatalog(state, catalog) {\n state = state.set('catalog', new Catalog(catalog));\n\n return { updatedState: state };\n }\n\n static updateMouseCoord(state, coords) {\n state = state.set('mouse', new Map(coords));\n\n return { updatedState: state };\n }\n\n static updateZoomScale(state, scale) {\n state = state.set('zoom', scale);\n\n return { updatedState: state };\n }\n\n static toggleSnap(state, mask) {\n state = state.set('snapMask', mask);\n return { updatedState: state };\n }\n\n static throwError(state, error) {\n state = state.set('errors', state.get('errors').push({\n date: Date.now(),\n error\n }));\n\n return { updatedState: state };\n }\n\n static throwWarning(state, warning) {\n state = state.set('warnings', state.get('warnings').push({\n date: Date.now(),\n warning\n }));\n\n return { updatedState: state };\n }\n\n static copyProperties(state, properties){\n state = state.set('clipboardProperties', properties);\n\n return { updatedState: state };\n }\n\n static pasteProperties(state) {\n state = this.updateProperties(state, state.getIn(['scene', 'selectedLayer']), state.get('clipboardProperties')).updatedState;\n\n return { updatedState: state };\n }\n\n static pushLastSelectedCatalogElementToHistory(state, element) {\n let currHistory = state.selectedElementsHistory;\n\n let previousPosition = currHistory.findIndex(el => el.name === element.name);\n if (previousPosition !== -1) {\n currHistory = currHistory.splice(previousPosition, 1);\n }\n currHistory = currHistory.splice(0, 0, element);\n\n state = state.set('selectedElementsHistory', currHistory);\n return { updatedState: state };\n }\n\n static changeCatalogPage( state, oldPage, newPage ) {\n state = state.setIn(['catalog', 'page'], newPage)\n .updateIn(['catalog', 'path'], path => path.push(oldPage));\n\n return { updatedState: state };\n }\n\n static goBackToCatalogPage( state, newPage ){\n let pageIndex = state.catalog.path.findIndex(page => page === newPage);\n state = state.setIn(['catalog', 'page'], newPage)\n .updateIn(['catalog', 'path'], path => path.take(pageIndex));\n\n return { updatedState: state };\n }\n\n static setMode( state, mode ){\n state = state.set('mode', mode);\n return { updatedState: state };\n }\n\n static addHorizontalGuide( state, coordinate ){\n state = HorizontalGuide.create( state, coordinate ).updatedState;\n\n return { updatedState: state };\n }\n\n static addVerticalGuide( state, coordinate ){\n state = VerticalGuide.create( state, coordinate ).updatedState;\n\n return { updatedState: state };\n }\n\n static addCircularGuide( state, x, y, radius ){\n console.log('adding horizontal guide at', x, y, radius);\n\n return { updatedState: state };\n }\n\n static removeHorizontalGuide( state, guideID ){\n state = HorizontalGuide.remove( state, guideID ).updatedState;\n\n return { updatedState: state };\n }\n\n static removeVerticalGuide( state, guideID ){\n state = VerticalGuide.remove( state, guideID ).updatedState;\n\n return { updatedState: state };\n }\n\n static removeCircularGuide( state, guideID ){\n console.log('removeing horizontal guide ', guideID);\n\n return { updatedState: state };\n }\n\n}\n\nexport { Project as default };\n","import { Area } from '../class/export';\nimport { SELECT_AREA } from '../constants';\n\nexport default function (state, action) {\n switch (action.type) {\n case SELECT_AREA:\n return Area.select(state, action.layerID, action.areaID).updatedState;\n default:\n return state;\n }\n}\n","import {\n PROJECT_ACTIONS,\n VIEWER2D_ACTIONS,\n VIEWER3D_ACTIONS,\n GROUP_ACTIONS,\n ITEMS_ACTIONS,\n HOLE_ACTIONS,\n LINE_ACTIONS,\n AREA_ACTIONS,\n SCENE_ACTIONS,\n VERTEX_ACTIONS\n} from '../constants';\n\nimport {\n ReactPlannerAreasReducer,\n ReactPlannerHolesReducer,\n ReactPlannerItemsReducer,\n ReactPlannerLinesReducer,\n ReactPlannerGroupsReducer,\n ReactPlannerProjectReducer,\n ReactPlannerSceneReducer,\n ReactPlannerVerticesReducer,\n ReactPlannerViewer2dReducer,\n ReactPlannerViewer3dReducer\n} from './export';\n\nimport {State} from '../models';\n\nexport const initialState = new State();\n\nexport default function appReducer(state, action) {\n if( PROJECT_ACTIONS[action.type] ) return ReactPlannerProjectReducer(...arguments);\n if( VIEWER2D_ACTIONS[action.type] ) return ReactPlannerViewer2dReducer(...arguments);\n if( VIEWER3D_ACTIONS[action.type] ) return ReactPlannerViewer3dReducer(...arguments);\n if( ITEMS_ACTIONS[action.type] ) return ReactPlannerItemsReducer(...arguments);\n if( HOLE_ACTIONS[action.type] ) return ReactPlannerHolesReducer(...arguments);\n if( LINE_ACTIONS[action.type] ) return ReactPlannerLinesReducer(...arguments);\n if( AREA_ACTIONS[action.type] ) return ReactPlannerAreasReducer(...arguments);\n if( GROUP_ACTIONS[action.type] ) return ReactPlannerGroupsReducer(...arguments);\n if( SCENE_ACTIONS[action.type] ) return ReactPlannerSceneReducer(...arguments);\n if( VERTEX_ACTIONS[action.type] ) return ReactPlannerVerticesReducer(...arguments);\n\n return state || initialState;\n};\n","export default {\n \"+ Add Horizontal Giude\":\"+ Добавить горизонтальное руководство\",\n \"+ Add Vertical Giude\":\"+ Добавить вертикальное руководство\",\n \"2D View\": \"Плоский вид\",\n \"3D First Person\": \"3D от первого лица\",\n \"3D View\": \"Объёмный вид\",\n \"altitude\": \"высота\",\n \"Altitude\": \"Высота\",\n \"Areas\": \"Поверхности\",\n \"Cancel\": \"Отмена\",\n \"Catalog\": \"Каталог\",\n \"Chain selected Elements to Group\":\"Цепочка выбранных элементов в группу\",\n \"Circular\":\"круговой\",\n \"color\":\"цвет\",\n \"Configure layer\": \"Настроить слой\",\n \"Configure project\": \"Настроить проект\",\n \"Confirm\": \"подтвердить\",\n \"Copy\": \"Копировать\",\n \"Delete group and all Elements\":\"Удалить группу и все элементы\",\n \"Delete layer\": \"Удалить слой\",\n \"Delete\": \"Удалить\",\n \"Elements on layer {0}\": \"Элементов на слое {0}\",\n \"Elements\":\"элементы\",\n \"Get Screenshot\": \"Сделать снимок экрана\",\n \"Group [{0}]\":\"группа [{0}]\",\n \"Group's Barycenter\":\"Барицентр группы\",\n \"Group's Elements\":\"Элементы группы\",\n \"Groups\":\"группы\",\n \"Guides\":\"руководства\",\n \"height\": \"высота\",\n \"Holes\": \"Проёмы\",\n \"Horizontal\":\"горизонтальный\",\n \"Items\": \"Предметы\",\n \"Last Selected\": \"Последний выбраный\",\n \"Layer config\": \"Настройка слоя\",\n \"Layer\":\"Слой\",\n \"Layers\": \"Слои\",\n \"Length\": \"Длинна\",\n \"Lines\": \"Линии\",\n \"Load project\": \"Загрузить проект\",\n \"Mouse X Coordinate\": \"X-координата курсора\",\n \"Mouse Y Coordinate\": \"Y-координата курсора\",\n \"Name\": \"Название\",\n \"New Empty Group\":\"Новая пустая группа\",\n \"New Group from selected\":\"Новая группа из выбранных\",\n \"New layer\": \"Новый слой\",\n \"New project\": \"Новый проект\",\n \"opacity\": \"непрозрачность\",\n \"Open catalog\": \"Открыть каталог\",\n \"order\": \"порядок\",\n \"Pan\": \"Двигать\",\n \"Paste\": \"Вставить\",\n \"Project config\": \"Настройка проекта\",\n \"Properties: [{0}] {1}\": \"Свойства: [{0}] {1}\",\n \"Prototype\":\"Опытный образец\",\n \"Reset\": \"Сброс\",\n \"Rotation\": \"Вращение\",\n \"Save project\": \"Сохранить проект\",\n \"Save\": \"Сохранить\",\n \"Scene Zoom Level\": \"Уровень приближениия сцены\",\n \"Search Element\": \"Поиск\",\n \"Snap to Grid\": \"Привязка к сетке\",\n \"Snap to Guide\": \"Привязать к руководству\",\n \"Snap to Line\": \"Привязка к линии\",\n \"Snap to Point\": \"Привязка к точке\",\n \"Snap to Segment\": \"Привязка к сегменту\",\n \"texture\":\"текстура\",\n \"thickness\":\"толщина\",\n \"Toggle Group Visibility\":\"Переключить видимость группы\",\n \"Un-chain all Group\\'s Elements and remove Group\":\"Удалить цепочку элементов группы и удалить группу\",\n \"Un-chain Element from Group\":\"Unchain Element из группы\",\n \"Undo (CTRL-Z)\": \"Отменить действие (CTRL-Z)\",\n \"Unselect\": \"Снять выделене\",\n \"Vertical\":\"вертикальный\",\n \"width\": \"ширина\",\n \"Would you want to start a new Project?\": \"Начать новый проект?\",\n \"Zoom in\": \"Приблизить\",\n \"Zoom out\": \"Отдалить\"\n};\n","export default {\n \"+ Add Horizontal Giude\":\"+ Aggiungi Guida Orizzontale\",\n \"+ Add Vertical Giude\":\"+ Aggiungi Guida Verticale\",\n \"2D View\": \"Vista 2D\",\n \"3D First Person\": \"3D Prima persona\",\n \"3D View\": \"Vista 3D\",\n \"Altitude\": \"Quota\",\n \"altitude\": \"Quota\",\n \"Areas\":\"Aree\",\n \"Cancel\": \"Annulla\",\n \"Catalog\" : \"Catalogo\",\n \"Chain selected Elements to Group\":\"Collega l'Elemento selzionato al Gruppo\",\n \"Circular\":\"Circolare\",\n \"color\":\"colore\",\n \"Configure layer\": \"Configura livello\",\n \"Configure project\": \"Configura progetto\",\n \"Confirm\": \"Conferma\",\n \"Copy\":\"Copia\",\n \"Delete group and all Elements\":\"Elimina Gruppo e tutti i suoi Elementi\",\n \"Delete layer\": \"Elimina livello\",\n \"Delete\": \"Elimina\",\n \"Elements on layer {0}\": \"Elementi nel livello {0}\",\n \"Elements\":\"Elementi\",\n \"Get Screenshot\" : \"Cattura uno screenshot\",\n \"Group [{0}]\":\"Gruppo [{0}]\",\n \"Group's Barycenter\":\"Baricentro del Gruppo\",\n \"Group's Elements\":\"Elementi del Gruppo\",\n \"Groups\":\"Gruppi\",\n \"Guides\":\"Guide\",\n \"height\": \"Altezza\",\n \"Holes\":\"Buchi\",\n \"Horizontal\":\"Orizzontale\",\n \"Items\":\"Oggetti\",\n \"Last Selected\":\"Ultimi Selezionati\",\n \"Layer config\": \"Configurazione livello\",\n \"Layer\":\"Livello\",\n \"Layers\": \"Livelli\",\n \"Length\":\"Lunghezza\",\n \"Lines\":\"Linee\",\n \"Load project\": \"Carica progetto\",\n \"Mouse X Coordinate\":\"Coordinata X del Mouse\",\n \"Mouse Y Coordinate\":\"Coordinata Y del Mouse\",\n \"Name\" : \"Nome\",\n \"New Empty Group\":\"Crea Gruppo Vuoto\",\n \"New Group from selected\":\"Crea Gruppo dai selezionati\",\n \"New layer\": \"Nuovo livello\",\n \"New project\": \"Nuovo progetto\",\n \"opacity\": \"Opacità\",\n \"Open catalog\": \"Apri catalogo\",\n \"order\":\"Ordine\",\n \"Pan\": \"Muovi\",\n \"Paste\":\"Incolla\",\n \"Project config\": \"Configurazione progetto\",\n \"Properties: [{0}] {1}\": \"Proprietà: [{0}] {1}\",\n \"Prototype\":\"Prototipo\",\n \"Reset\": \"Annulla\",\n \"Rotation\" : \"Rotazione\",\n \"Save project\": \"Salva progetto\",\n \"Save\" : \"Salva\",\n \"Scene Zoom Level\":\"Livello di Zoom della Scena\",\n \"Search Element\":\"Cerca Elemento\",\n \"Snap to Grid\":\"Snap alla Griglia\",\n \"Snap to Guide\":\"Snap alla Guida\",\n \"Snap to Line\":\"Snap alla Linea\",\n \"Snap to Point\":\"Snap al Punto\",\n \"Snap to Segment\":\"Snap al Segmento\",\n \"texture\":\"texture\",\n \"thickness\":\"spessore\",\n \"Toggle Group Visibility\":\"Varia la visibilità del Gruppo\",\n \"Un-chain all Group\\'s Elements and remove Group\":\"Elimina il Gruppo e scollega tutti gli Elementi appartenenti\",\n \"Un-chain Element from Group\":\"Scollega l'Elemento dal Gruppo\",\n \"Undo (CTRL-Z)\": \"Annulla (CTRL-Z)\",\n \"Unselect\": \"Deseleziona\",\n \"Vertical\":\"Verticale\",\n \"width\": \"Larghezza\",\n \"Would you want to start a new Project?\": \"Vuoi iniziare un nuovo progetto?\",\n \"Zoom in\": \"Ingrandisci\",\n \"Zoom out\": \"Riduci\"\n};\n","export default {\n \"+ Add Horizontal Giude\":\"+ Add Horizontal Giude\",\n \"+ Add Vertical Giude\":\"+ Add Vertical Giude\",\n \"2D View\": \"2D View\",\n \"3D First Person\": \"3D First Person\",\n \"3D View\": \"3D View\",\n \"altitude\": \"altitude\",\n \"Altitude\": \"Altitude\",\n \"Areas\":\"Areas\",\n \"Cancel\": \"Cancel\",\n \"Catalog\" : \"Catalog\",\n \"Chain selected Elements to Group\":\"Chain selected Elements to Group\",\n \"Circular\":\"Circular\",\n \"color\":\"color\",\n \"Configure layer\": \"Configure layer\",\n \"Configure project\": \"Configure project\",\n \"Confirm\": \"Confirm\",\n \"Copy\":\"Copy\",\n \"Delete group and all Elements\":\"Delete group and all Elements\",\n \"Delete layer\": \"Delete layer\",\n \"Delete\": \"Delete\",\n \"Elements on layer {0}\": \"Elements on layer {0}\",\n \"Elements\":\"Elements\",\n \"Get Screenshot\" : \"Get Screenshot\",\n \"Group [{0}]\":\"Group [{0}]\",\n \"Group's Barycenter\":\"Group's Barycenter\",\n \"Group's Elements\":\"Group's Elements\",\n \"Groups\":\"Groups\",\n \"Guides\":\"Guides\",\n \"height\": \"height\",\n \"Holes\":\"Holes\",\n \"Horizontal\":\"Horizontal\",\n \"Items\":\"Items\",\n \"Last Selected\":\"Last Selected\",\n \"Layer config\": \"Layer config\",\n \"Layer\":\"Layer\",\n \"Layers\": \"Layers\",\n \"Length\":\"Length\",\n \"Lines\":\"Lines\",\n \"Load project\": \"Load project\",\n \"Mouse X Coordinate\":\"Mouse X Coordinate\",\n \"Mouse Y Coordinate\":\"Mouse Y Coordinate\",\n \"Name\": \"Name\",\n \"New Empty Group\":\"New Empty Group\",\n \"New Group from selected\":\"New Group from selected\",\n \"New layer\": \"New layer\",\n \"New project\": \"New project\",\n \"opacity\": \"opacity\",\n \"Open catalog\": \"Open catalog\",\n \"order\": \"order\",\n \"Pan\": \"Pan\",\n \"Paste\":\"Paste\",\n \"Project config\": \"Project config\",\n \"Properties: [{0}] {1}\": \"Properties: [{0}] {1}\",\n \"Prototype\":\"Prototype\",\n \"Reset\": \"Reset\",\n \"Rotation\" : \"Rotation\",\n \"Save project\": \"Save project\",\n \"Save\": \"Save\",\n \"Scene Zoom Level\":\"Scene Zoom Level\",\n \"Search Element\":\"Search Element\",\n \"Snap to Grid\":\"Snap to Grid\",\n \"Snap to Guide\":\"Snap to Guide\",\n \"Snap to Line\":\"Snap to Line\",\n \"Snap to Point\":\"Snap to Point\",\n \"Snap to Segment\":\"Snap to Segment\",\n \"texture\":\"texture\",\n \"thickness\":\"thickness\",\n \"Toggle Group Visibility\":\"Toggle Group Visibility\",\n \"Un-chain all Group\\'s Elements and remove Group\":\"Un-chain all Group\\'s Elements and remove Group\",\n \"Un-chain Element from Group\":\"Un-chain Element from Group\",\n \"Undo (CTRL-Z)\": \"Undo (CTRL-Z)\",\n \"Unselect\": \"Unselect\",\n \"Vertical\":\"Vertical\",\n \"width\": \"width\",\n \"Would you want to start a new Project?\": \"Would you want to start a new Project?\",\n \"Zoom in\": \"Zoom in\",\n \"Zoom out\": \"Zoom out\"\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nexport default function PropertyReadOnly({value, onUpdate, configs, sourceElement, internalState, state}) {\n return (\n \n \n \n \n \n \n \n
{configs.label}\n
{value}
\n
\n );\n}\n\nPropertyReadOnly.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport default function PropertyHidden({value, onUpdate, configs, sourceElement, internalState, state}) {\n return null\n}\n\nPropertyHidden.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nconst checkboxStyle = {margin: 0};\n\nexport default function PropertyCheckbox({value, onUpdate, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n\n if (configs.hook) {\n return configs.hook(val, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(val);\n };\n\n return (\n \n \n \n \n \n \n \n
{configs.label}\n update(!value)}/>\n
\n );\n}\n\nPropertyCheckbox.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel, Button } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\n\nexport default function PropertyToggle({value, onUpdate, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n\n if (configs.hook) {\n return configs.hook(val, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(val);\n };\n\n return (\n \n \n \n \n \n \n \n
{configs.label}\n \n
\n );\n}\n\nPropertyToggle.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel, FormNumberInput } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nexport default function PropertyNumber({value, onUpdate, onValid, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n let number = parseFloat(val);\n\n if (isNaN(number)) {\n number = 0;\n }\n\n if (configs.hook) {\n return configs.hook(number, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(number);\n };\n\n return (\n \n \n \n \n \n \n \n
{configs.label}\n update(event.target.value)}\n onValid={onValid}\n min={configs.min}\n max={configs.max}/>\n
\n );\n\n}\n\nPropertyNumber.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onValid: PropTypes.func,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {Seq} from 'immutable';\nimport { FormLabel, FormSelect } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nexport default function PropertyEnum({value, onUpdate, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n\n if (configs.hook) {\n return configs.hook(val, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(val);\n };\n\n return (\n \n \n \n \n \n \n \n
{configs.label}\n update(event.target.value)}>\n {Seq(configs.values)\n .entrySeq()\n .map(([key, value]) => )}\n \n
\n );\n}\n\nPropertyEnum.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport Button from './button';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE = {\n borderColor: \"#415375\",\n backgroundColor: \"#415375\",\n color: SharedStyle.COLORS.white\n};\n\nconst STYLE_HOVER = {\n borderColor: \"#1f3149\",\n backgroundColor: \"#1f3149\",\n color: SharedStyle.COLORS.white\n};\n\nexport default function FormSubmitButton({children, ...rest}) {\n return \n}\n","import React from 'react';\nimport ReactRange from '@mapbox/react-range';\nimport FormTextInput from './form-text-input';\n\nconst sliderContainerStyle = {display: 'inline-block', width: '80%', marginRight: '5%'};\nconst sliderStyle = { display: 'block', width: '100%', height: '30px' };\nconst textContainerStyle = {display: 'inline-block', width: '15%', float: 'right'};\nconst textStyle = {height:'34px', textAlign:'center'};\n\nexport default function FormNumberInput({value, onChange, ...rest}) {\n return (\n
\n
\n \n
\n\n
\n \n
\n
\n )\n}\n","import React from 'react';\nimport * as SharedStyle from '../../shared-style';\n\nconst BASE_STYLE = {\n display: \"block\",\n width: \"100%\",\n padding: \"0px 4px\",\n fontSize: \"13px\",\n color: SharedStyle.PRIMARY_COLOR.input,\n backgroundColor: SharedStyle.COLORS.white,\n backgroundImage: \"none\",\n border: \"1px solid rgba(0,0,0,.15)\",\n outline: \"none\",\n borderRadius: \"0px\",\n height: \"30px\",\n WebkitAppearance: \"none\",\n WebkitBorderRadius: \"0px\",\n background: `url(\"data:image/svg+xml;utf8,\") #fff`,\n backgroundPosition: \"100% 50%\",\n backgroundRepeat: \"no-repeat\",\n};\n\nexport default function FormSelect({children, style, ...rest}) {\n return ;\n}\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\nimport { MdUpdate } from 'react-icons/lib/md';\nimport { KEYBOARD_BUTTON_CODE } from '../../constants';\n\nconst STYLE_INPUT = {\n display: 'block',\n width: '100%',\n padding: '0 2px',\n fontSize: '13px',\n lineHeight: '1.25',\n color: SharedStyle.PRIMARY_COLOR.input,\n backgroundColor: SharedStyle.COLORS.white,\n backgroundImage: 'none',\n border: '1px solid rgba(0,0,0,.15)',\n outline: 'none',\n height: '30px',\n};\n\nconst confirmStyle = {\n position: 'absolute',\n cursor: 'pointer',\n width: '2em',\n height: '2em',\n right: '0.35em',\n top: '0.35em',\n backgroundColor: SharedStyle.SECONDARY_COLOR.main,\n color: '#FFF',\n transition: 'all 0.1s linear'\n};\n\nexport default class FormNumberInput extends Component {\n\n constructor(props, context) {\n super(props, context);\n this.state = {\n focus: false,\n valid: true,\n showedValue: props.value\n };\n }\n\n componentWillReceiveProps( nextProps ) {\n if( this.props.value !== nextProps.value ) {\n this.setState({ showedValue: nextProps.value });\n }\n }\n\n render() {\n\n let { value, min, max, precision, onChange, onValid, onInvalid, style, placeholder } = this.props;\n let numericInputStyle = { ...STYLE_INPUT, ...style };\n\n if (this.state.focus) numericInputStyle.border = `1px solid ${SharedStyle.SECONDARY_COLOR.main}`;\n\n let regexp = new RegExp(`^-?([0-9]+)?\\\\.?([0-9]{0,${precision}})?$`);\n\n if (!isNaN(min) && isFinite(min) && this.state.showedValue < min) this.setState({ showedValue: min }); // value = min;\n if (!isNaN(max) && isFinite(max) && this.state.showedValue > max) this.setState({ showedValue: max }); // value = max;\n\n let currValue = regexp.test(this.state.showedValue) ? this.state.showedValue : parseFloat(this.state.showedValue).toFixed(precision);\n\n let different = parseFloat(this.props.value).toFixed(precision) !== parseFloat(this.state.showedValue).toFixed(precision);\n\n let saveFn = (e) => {\n e.stopPropagation();\n\n if (this.state.valid) {\n let savedValue = (this.state.showedValue !== '' && this.state.showedValue !== '-') ? parseFloat(this.state.showedValue) : 0;\n\n this.setState({ showedValue: savedValue });\n onChange({ target: { value: savedValue } });\n }\n };\n\n return (\n
\n {\n let valid = regexp.test(evt.nativeEvent.target.value);\n\n if (valid) {\n this.setState({ showedValue: evt.nativeEvent.target.value });\n if (onValid) onValid(evt.nativeEvent);\n }\n else {\n if (onInvalid) onInvalid(evt.nativeEvent);\n }\n\n this.setState({ valid });\n }}\n onFocus={e => this.setState({ focus: true })}\n onBlur={e => this.setState({ focus: false })}\n onKeyDown={e => {\n var keyCode = e.keyCode || e.which;\n if ((keyCode == KEYBOARD_BUTTON_CODE.ENTER || keyCode == KEYBOARD_BUTTON_CODE.TAB) && different) {\n saveFn(e);\n }\n }}\n placeholder={placeholder}\n />\n { if (different) saveFn(e); }}\n title={this.context.translator.t('Confirm')}\n style={{ ...confirmStyle, visibility: different ? 'visible' : 'hidden', opacity: different ? '1' : '0' }}\n >\n \n
\n \n );\n }\n}\n\nFormNumberInput.propTypes = {\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n style: PropTypes.object,\n onChange: PropTypes.func.isRequired,\n onValid: PropTypes.func,\n onInvalid: PropTypes.func,\n min: PropTypes.number,\n max: PropTypes.number,\n precision: PropTypes.number,\n placeholder: PropTypes.string\n};\n\nFormNumberInput.contextTypes = {\n translator: PropTypes.object.isRequired\n};\n\nFormNumberInput.defaultProps = {\n value: 0,\n style: {},\n min: Number.MIN_SAFE_INTEGER,\n max: Number.MAX_SAFE_INTEGER,\n precision: 3\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE = {\n color: SharedStyle.PRIMARY_COLOR.alt,\n fontWeight: 300,\n};\n\nexport default function ContentTitle({children, style = {}, ...rest}) {\n return

{children}

\n}\n\nContentTitle.propsType = {\n style: PropTypes.object\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst STYLE = {\n padding: '0 20px',\n overflowY: 'auto'\n};\n\nexport default function ContentContainer({children, width, height, style = {}}) {\n return
event.stopPropagation()}>{children}
\n}\n\nContentContainer.propsType = {\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n style: PropTypes.object\n};\n","import PropertyColor from './property-color';\nimport PropertyEnum from './property-enum';\nimport PropertyString from './property-string';\nimport PropertyNumber from './property-number';\nimport PropertyLengthMeasure from './property-lenght-measure';\nimport PropertyToggle from './property-toggle';\nimport PropertyCheckbox from './property-checkbox';\nimport PropertyHidden from './property-hidden';\nimport PropertyReadOnly from './property-read-only';\n\nexport {\n PropertyColor,\n PropertyEnum,\n PropertyString,\n PropertyNumber,\n PropertyLengthMeasure,\n PropertyToggle,\n PropertyCheckbox,\n PropertyHidden,\n PropertyReadOnly\n};\n\nexport default {\n PropertyColor,\n PropertyEnum,\n PropertyString,\n PropertyNumber,\n PropertyLengthMeasure,\n PropertyToggle,\n PropertyCheckbox,\n PropertyHidden,\n PropertyReadOnly\n};\n","import {\n PropertyColor,\n PropertyEnum,\n PropertyString,\n PropertyNumber,\n PropertyLengthMeasure,\n PropertyToggle,\n PropertyCheckbox,\n PropertyHidden,\n PropertyReadOnly\n} from './properties/export';\n\nimport {UNIT_CENTIMETER} from '../constants';\n\nexport default class Catalog {\n\n constructor(unit = UNIT_CENTIMETER) {\n this.elements = {};\n this.categories = {root: {name: 'root', label: '/', elements: [], categories: []}};\n this.propertyTypes = {};\n this.unit = unit;\n\n this.registerMultiplePropertyType([\n ['color', PropertyColor, PropertyColor],\n ['enum', PropertyEnum, PropertyEnum],\n ['string', PropertyString, PropertyString],\n ['number', PropertyNumber, PropertyNumber],\n ['length-measure', PropertyLengthMeasure, PropertyLengthMeasure],\n ['toggle', PropertyToggle, PropertyToggle],\n ['checkbox', PropertyCheckbox, PropertyCheckbox],\n ['hidden', PropertyHidden, PropertyHidden],\n ['read-only', PropertyReadOnly, PropertyReadOnly]\n ]);\n }\n\n /** @description Get catalog's element\n * @param {string} type Element's type\n * @return {?object} Element\n */\n getElement(type) {\n if (this.hasElement(type)) {\n return this.elements[type];\n }\n throw new Error(`Element ${type} does not exist in catalog`);\n }\n\n /** @description Get catalog category\n * @param {string} categoryName Name of category\n * @return {object} Category\n */\n getCategory(categoryName) {\n if (this.hasCategory(categoryName)) {\n return this.categories[categoryName];\n }\n throw new Error(`Category ${categoryName} does not exist in catalog`);\n }\n\n /** @description Return type of a specfied property\n * @param {string} type Property type\n * @return {?object} Property\n */\n getPropertyType(type) {\n if (this.propertyTypes.hasOwnProperty(type)) {\n return this.propertyTypes[type];\n }\n throw new Error(`Element ${type} does not exist in catalog`);\n }\n\n /** @description Register a new element\n * @param {object} json Element structure\n * @return {void}\n */\n registerElement(json) {\n json.properties = json.properties || {};\n if (this.validateElement(json)) {\n this.elements[json.name] = json;\n this.categories.root.elements.push(this.elements[json.name]);\n }\n }\n\n /** @description Register multiple elements\n * @param {array} [elementArray] Array of elements\n * @return {void}\n */\n registerMultipleElements(elementArray) {\n elementArray.forEach(el => this.registerElement(el));\n }\n\n /** @description Register a new property\n * @param {string} type Type of property\n * @param {object} Viewer Property viewer component\n * @param {object} Editor Property editor component\n * @return {void}\n */\n registerPropertyType(type, Viewer, Editor) {\n this.propertyTypes[type] = {type, Viewer, Editor};\n }\n\n /** @description Register multiple property\n * @param {array} propertyTypeArray Array of properties\n * @return {void}\n */\n registerMultiplePropertyType(propertyTypeArray) {\n propertyTypeArray.forEach(el => this.registerPropertyType(...el));\n }\n\n /** @description Validate an element\n * @param {object} json Element's structure\n * @return {?boolean}\n */\n validateElement(json) {\n if (!json.hasOwnProperty('name')) throw new Error('Element not valid');\n\n let name = json.name;\n if (!json.hasOwnProperty('prototype')) throw new Error(`Element ${name} doesn't have prototype`);\n\n if (!json.hasOwnProperty('info')) throw new Error(`Element ${name} doesn't have info`);\n if (!json.info.hasOwnProperty('tag')) throw new Error(`Element ${name} doesn't have tag`);\n if (!json.info.hasOwnProperty('description')) throw new Error(`Element ${name} doesn't have description`);\n if (!json.info.hasOwnProperty('image')) throw new Error(`Element ${name} doesn't have image`);\n\n if (!json.hasOwnProperty('render2D')) throw new Error(`Element ${name} doesn't have render2D handler`);\n if (!json.hasOwnProperty('render3D')) throw new Error(`Element ${name} doesn't have render3D handler`);\n if (!json.hasOwnProperty('properties')) throw new Error(`Element ${name} doesn't have properties`);\n\n for (let propertyName in json.properties) {\n let propertyConfigs = json.properties[propertyName];\n if (!propertyConfigs.hasOwnProperty('type')) throw new Error(`Element ${name}, Property ${propertyName} doesn't have type`);\n if (!propertyConfigs.hasOwnProperty('defaultValue')) throw new Error(`Element ${name}, Property ${propertyName} doesn't have defaultValue`);\n }\n\n return true;\n }\n\n /** @description Check if catalog has element\n * @param {string} type Element's type\n * @return {boolean}\n */\n hasElement(type) {\n return this.elements.hasOwnProperty(type);\n }\n\n /** @description Register a new category\n * @param {string} name Name of category\n * @param {string} label Label of category\n * @param {array} [childs] Category's childs\n * @return {?object} Registered category\n */\n registerCategory(name, label, childs) {\n if (this.validateCategory(name, label)) {\n this.categories[name] = {name, label, categories: [], elements: []};\n this.categories.root.categories.push(this.categories[name]);\n\n if(childs && childs.length) {\n childs.forEach( el => this.addToCategory( name, el ) );\n }\n\n return this.categories[name];\n }\n return null;\n }\n\n /** @description Add an element to the specified category\n * @param {string} name Name of category\n * @param {object} child Element's structure\n * @return {?void}\n */\n addToCategory(name, child) {\n if (this.hasElement(child.name)) {\n this.categories[name].elements.push(child);\n this.categories.root.elements.splice(this.categories.root.elements.indexOf(child), 1);\n } else if (this.hasCategory(child.name)) {\n this.categories[name].categories.push(child);\n this.categories.root.categories.splice(this.categories.root.categories.indexOf(child), 1);\n } else {\n throw new Error(`child ${child} is either category nor element`);\n }\n }\n\n /** @description Check if category contain element\n * @param {string} categoryName Name of category\n * @param {string} elementName Name of element\n * @return {boolean}\n */\n categoryHasElement(categoryName, elementName) {\n return this.hasCategory(categoryName) && this.categories[categoryName].elements.some(el => el.name === elementName);\n }\n\n /** @description Validate a category\n * @param {string} name Name of category\n * @param {string} label Label of category\n * @return {?boolean}\n */\n validateCategory(name, label) {\n if (!name) {\n throw new Error('Category has undefined name');\n }\n if (name === '') {\n throw new Error('Category has empty name');\n }\n if (this.hasCategory(name)) {\n throw new Error('Category has already been registered');\n }\n\n return true;\n }\n\n /** @description Verify if catalog already contain a category with specified name\n * @param {string} categoryName Name of category\n * @return {boolean}\n */\n hasCategory(categoryName) {\n return this.categories.hasOwnProperty(categoryName);\n }\n\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport IconSave from 'react-icons/lib/md/camera-alt';\nimport {ReactPlannerComponents, ReactPlannerConstants} from 'react-planner';\n\nconst {\n MODE_IDLE,\n MODE_2D_ZOOM_IN,\n MODE_2D_ZOOM_OUT,\n MODE_2D_PAN,\n MODE_WAITING_DRAWING_LINE,\n MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX,\n MODE_DRAGGING_ITEM,\n MODE_DRAWING_LINE,\n MODE_DRAWING_HOLE,\n MODE_DRAWING_ITEM,\n MODE_DRAGGING_HOLE,\n MODE_ROTATING_ITEM,\n MODE_3D_FIRST_PERSON,\n MODE_3D_VIEW\n} = ReactPlannerConstants;\n\nconst { ToolbarButton } = ReactPlannerComponents.ToolbarComponents;\n\nexport default function ToolbarScreenshotButton({mode}, {translator}) {\n\n let imageBrowserDownload = imageUri => {\n let fileOutputLink = document.createElement('a');\n\n let filename = 'output' + Date.now() + '.png';\n filename = window.prompt('Insert output filename', filename);\n if (!filename) return;\n\n fileOutputLink.setAttribute('download', filename);\n fileOutputLink.href = imageUri;\n fileOutputLink.style.display = 'none';\n document.body.appendChild(fileOutputLink);\n fileOutputLink.click();\n document.body.removeChild(fileOutputLink);\n };\n\n\n let saveScreenshotToFile = event => {\n event.preventDefault();\n let canvas = document.getElementsByTagName('canvas')[0];\n imageBrowserDownload(canvas.toDataURL());\n };\n\n let saveSVGScreenshotToFile = event => {\n event.preventDefault();\n\n // First of all I need the svg content of the viewer\n let svgElements = document.getElementsByTagName('svg');\n\n // I get the element with max width (which is the viewer)\n let maxWidthSVGElement = svgElements[0];\n for (let i = 1; i < svgElements.length; i++) {\n if (svgElements[i].width.baseVal.value > maxWidthSVGElement.width.baseVal.value) {\n maxWidthSVGElement = svgElements[i];\n }\n }\n\n let serializer = new XMLSerializer();\n\n let img = new Image;\n\n // I create the new canvas to draw\n let canvas = document.createElement('canvas');\n let ctx = canvas.getContext('2d');\n\n // Set width and height for the new canvas\n let heightAtt = document.createAttribute('height');\n heightAtt.value = maxWidthSVGElement.height.baseVal.value;\n canvas.setAttributeNode(heightAtt);\n\n let widthAtt = document.createAttribute('width');\n widthAtt.value = maxWidthSVGElement.width.baseVal.value;\n canvas.setAttributeNode(widthAtt);\n\n ctx.fillStyle = 'white';\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n\n img.crossOrigin = 'anonymous';\n img.src = `data:image/svg+xml;utf8,${serializer.serializeToString(maxWidthSVGElement)}`;\n\n img.onload = () => {\n ctx.drawImage(img, 0, 0, maxWidthSVGElement.width.baseVal.value, maxWidthSVGElement.height.baseVal.value);\n imageBrowserDownload(canvas.toDataURL());\n };\n\n };\n\n if ([MODE_3D_FIRST_PERSON, MODE_3D_VIEW].includes(mode)) {\n return (\n \n \n \n );\n }\n\n if ([MODE_IDLE,\n MODE_2D_ZOOM_IN,\n MODE_2D_ZOOM_OUT,\n MODE_2D_PAN,\n MODE_WAITING_DRAWING_LINE,\n MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX,\n MODE_DRAGGING_ITEM,\n MODE_DRAWING_LINE,\n MODE_DRAWING_HOLE,\n MODE_DRAWING_ITEM,\n MODE_DRAGGING_HOLE,\n MODE_ROTATING_ITEM].includes(mode)) {\n\n return (\n \n \n \n );\n }\n\n return null;\n\n}\n\nToolbarScreenshotButton.propTypes = {\n mode: PropTypes.string.isRequired,\n};\n\nToolbarScreenshotButton.contextTypes = {\n translator: PropTypes.object.isRequired,\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/wardrobe/wardrobe.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 60;\nconst DEPTH = 60;\nconst HEIGHT = 220;\n\nconst blue = new Three.MeshLambertMaterial({color: 0x0000CC});\nconst grey = new Three.MeshLambertMaterial({color: 0xC0C0C0});\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\n\nfunction makeObjectMaxLOD() {\n\n let wardrobe = new Three.Mesh();\n\n //base\n let bottomSide = new Three.Mesh(new Three.BoxGeometry(1, 0.05, 1), grey);\n wardrobe.add(bottomSide);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1, 2, 0.05), grey);\n side1.position.set(0, 1.025, 0.475);\n wardrobe.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1, 2, 0.05), grey);\n side2.position.set(0, 1.025, -0.475);\n wardrobe.add(side2);\n\n //backside\n let backside = new Three.Mesh(new Three.BoxGeometry(0.05, 2, 1), grey);\n backside.position.set(0.475, 1.025, 0);\n wardrobe.add(backside);\n\n // top\n let topside = new Three.Mesh(new Three.BoxGeometry(1, 0.05, 1), grey);\n topside.position.set(0, 2.05, 0);\n wardrobe.add(topside);\n\n //central axis\n let centralAxis = new Three.Mesh(new Three.BoxGeometry(0.9, 0.4, 0.05), grey);\n centralAxis.position.set(0, 1.025, 0);\n wardrobe.add(centralAxis);\n\n //lower shelve\n let lowShelve = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.5), grey);\n lowShelve.position.set(0, 0.8, 0.225);\n wardrobe.add(lowShelve);\n\n //upper shelve\n let upShelve = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.5), grey);\n upShelve.position.set(0, 1.25, -0.225);\n wardrobe.add(upShelve);\n\n //up door\n let upDoor_p1 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.77, 0.9), blue);\n upDoor_p1.position.set(-0.475, 1.64, 0);\n wardrobe.add(upDoor_p1);\n\n let upDoor_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.44, 0.435), blue);\n upDoor_p2.position.set(-0.475, 1.035, 0.23);\n wardrobe.add(upDoor_p2);\n\n //low door\n let lowDoor_p1 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.77, 0.9), blue);\n lowDoor_p1.position.set(-0.475, 0.41, 0);\n wardrobe.add(lowDoor_p1);\n\n let lowDoor_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.44, 0.435), blue);\n lowDoor_p2.position.set(-0.475, 1.015, -0.23);\n wardrobe.add(lowDoor_p2);\n\n let fz;\n\n for (let fy = 1.64; fy >= 0.4; fy -= 1.14) {\n fy === 1.64 ? fz = -0.35 : fz = 0.35;\n\n //lock\n let lock_p1 = new Three.Mesh(new Three.CylinderGeometry(0.025, 0.03, 0.02, 32, 32), black);\n lock_p1.rotation.x = 0.5 * Math.PI;\n lock_p1.rotation.z = 0.5 * Math.PI;\n lock_p1.position.set(-0.5, fy, fz);\n wardrobe.add(lock_p1);\n\n let lock_p2 = new Three.Mesh(new Three.CylinderGeometry(0.02, 0.022, 0.015, 32, 32), grey);\n lock_p2.rotation.x = 0.5 * Math.PI;\n lock_p2.rotation.z = 0.5 * Math.PI;\n lock_p2.position.set(-0.515, fy, fz);\n wardrobe.add(lock_p2);\n\n let lock_p3 = new Three.Mesh(new Three.BoxGeometry(0.01, 0.015, 0.005, 32, 32), black);\n lock_p3.position.set(-0.518, fy, fz);\n wardrobe.add(lock_p3);\n\n }\n\n for (let fx = -0.47; fx <= 0.47; fx += 0.94) {\n for (let fz = 0.47; fz >= -0.47; fz -= 0.94) {\n //foot\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.02, 0.04, 0.1, 4), grey);\n foot.position.set(fx, -0.05, fz);\n foot.rotation.y = 0.25 * Math.PI;\n foot.rotation.z = Math.PI;\n wardrobe.add(foot);\n }\n }\n\n return wardrobe\n}\n\nfunction makeObjectMinLOD() {\n\n let wardrobe = new Three.Mesh();\n\n //base\n let bottomSide = new Three.Mesh(new Three.BoxGeometry(1, 0.05, 1), grey);\n wardrobe.add(bottomSide);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1, 2, 0.05), grey);\n side1.position.set(0, 1.025, 0.475);\n wardrobe.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1, 2, 0.05), grey);\n side2.position.set(0, 1.025, -0.475);\n wardrobe.add(side2);\n\n //backside\n let backside = new Three.Mesh(new Three.BoxGeometry(0.05, 2, 1), grey);\n backside.position.set(0.475, 1.025, 0);\n wardrobe.add(backside);\n\n // top\n let topside = new Three.Mesh(new Three.BoxGeometry(1, 0.05, 1), grey);\n topside.position.set(0, 2.05, 0);\n wardrobe.add(topside);\n\n //central axis\n let centralAxis = new Three.Mesh(new Three.BoxGeometry(0.9, 0.4, 0.05), grey);\n centralAxis.position.set(0, 1.025, 0);\n wardrobe.add(centralAxis);\n\n //lower shelve\n let lowShelve = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.5), grey);\n lowShelve.position.set(0, 0.8, 0.225);\n wardrobe.add(lowShelve);\n\n //upper shelve\n let upShelve = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.5), grey);\n upShelve.position.set(0, 1.25, -0.225);\n wardrobe.add(upShelve);\n\n //up door\n let upDoor_p1 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.77, 0.9), blue);\n upDoor_p1.position.set(-0.475, 1.64, 0);\n wardrobe.add(upDoor_p1);\n\n let upDoor_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.44, 0.435), blue);\n upDoor_p2.position.set(-0.475, 1.035, 0.23);\n wardrobe.add(upDoor_p2);\n\n //low door\n let lowDoor_p1 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.77, 0.9), blue);\n lowDoor_p1.position.set(-0.475, 0.41, 0);\n wardrobe.add(lowDoor_p1);\n\n let lowDoor_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.44, 0.435), blue);\n lowDoor_p2.position.set(-0.475, 1.015, -0.23);\n wardrobe.add(lowDoor_p2);\n\n\n for (let fx = -0.47; fx <= 0.47; fx += 0.94) {\n for (let fz = 0.47; fz >= -0.47; fz -= 0.94) {\n //foot\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.02, 0.04, 0.1, 4), grey);\n foot.position.set(fx, -0.05, fz);\n foot.rotation.y = 0.25 * Math.PI;\n foot.rotation.z = Math.PI;\n wardrobe.add(foot);\n }\n }\n\n return wardrobe\n}\n\nexport default {\n name: \"wardrobe\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"wardrobe\",\n description: \"wardrobe\",\n image: require('./wardrobe.png')\n },\n properties: {\n altitude: {\n label: \"altitudine\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /*************** lod max *******************/\n\n let wardrobeMaxLOD=new Three.Object3D();\n wardrobeMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(wardrobeMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n wardrobeMaxLOD.position.z+= -DEPTH/6;\n wardrobeMaxLOD.position.y+= HEIGHT/24 +newAltitude;\n wardrobeMaxLOD.rotation.y+= -Math.PI/2;\n wardrobeMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /************** lod min ********************/\n\n let wardrobeMinLOD=new Three.Object3D();\n wardrobeMinLOD.add(objectMinLOD.clone());\n wardrobeMinLOD.position.z+= -DEPTH/6;\n wardrobeMinLOD.position.y+= HEIGHT/24 +newAltitude;\n wardrobeMinLOD.rotation.y+= -Math.PI/2;\n wardrobeMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(wardrobeMaxLOD, 200);\n lod.addLevel(wardrobeMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/umbrella-stand/umbrellaStand.png\";","module.exports = __webpack_public_path__ + \"catalog/items/umbrella-stand/bronze-texture.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH=30;\nconst DEPTH=40;\nconst HEIGHT=70;\n\nconst textureLoader = new Three.TextureLoader();\nconst Image = textureLoader.load(require('./bronze-texture.jpg'));\nconst material = new Three.MeshLambertMaterial( {map:Image} );\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let umbrellaStand = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=.45;\n let height=.7;\n\n roundedRectShape.moveTo( x, y );\n roundedRectShape.lineTo( x + width, y);\n roundedRectShape.lineTo( x + width, y+height );\n roundedRectShape.lineTo( x, y + height) ;\n\n let holePath = new Three.Path();\n holePath.moveTo( width/2, height/2 );\n holePath.absellipse( .225, .15, .100, .025, .025, Math.PI*2, false );\n roundedRectShape.holes.push( holePath );\n\n let extrudeSettings = {\n steps: 2,\n depth: .05,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let SideGeometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let Side1 = new Three.Mesh( SideGeometry, material ) ;\n\n Side1.position.set(.05,1.2,0);\n Side1.rotation.z+=Math.PI;\n umbrellaStand.add(Side1);\n\n let Side2 = new Three.Mesh( SideGeometry, material ) ;\n Side2.position.set(.05,1.2,-.4);\n Side2.rotation.z+=Math.PI;\n umbrellaStand.add(Side2);\n\n let Side3 = new Three.Mesh( SideGeometry, material ) ;\n Side3.position.set(.05,1.2,-.4);\n Side3.rotation.z+=Math.PI;\n Side3.rotation.y+=Math.PI/2;\n umbrellaStand.add(Side3);\n\n let Side4 = new Three.Mesh( SideGeometry, material ) ;\n Side4.position.set(-.45,1.2,-.4);\n Side4.rotation.z+=Math.PI;\n Side4.rotation.y+=Math.PI/2;\n umbrellaStand.add(Side4);\n\n let geometryBox = new Three.BoxGeometry(.55, .45, .05 );\n let downPlane = new Three.Mesh( geometryBox, material );\n downPlane.rotation.x+=Math.PI/2;\n downPlane.position.set(-.175,.475,-.175);\n umbrellaStand.add(downPlane);\n\n return umbrellaStand\n}\n\nfunction makeObjectMinLOD() {\n\n let umbrellaStand = new Three.Mesh();\n\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=.45;\n let height=.7;\n\n roundedRectShape.moveTo( x, y );\n roundedRectShape.lineTo( x + width, y);\n roundedRectShape.lineTo( x + width, y+height );\n roundedRectShape.lineTo( x, y + height) ;\n\n let extrudeSettings = {\n steps: 2,\n depth: .05,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let SideGeometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let Side1 = new Three.Mesh( SideGeometry, material ) ;\n\n Side1.position.set(.05,1.2,0);\n Side1.rotation.z+=Math.PI;\n umbrellaStand.add(Side1);\n\n let Side2 = new Three.Mesh( SideGeometry, material ) ;\n Side2.position.set(.05,1.2,-.4);\n Side2.rotation.z+=Math.PI;\n umbrellaStand.add(Side2);\n\n let Side3 = new Three.Mesh( SideGeometry, material ) ;\n Side3.position.set(.05,1.2,-.4);\n Side3.rotation.z+=Math.PI;\n Side3.rotation.y+=Math.PI/2;\n umbrellaStand.add(Side3);\n\n let Side4 = new Three.Mesh( SideGeometry, material ) ;\n Side4.position.set(-.45,1.2,-.4);\n Side4.rotation.z+=Math.PI;\n Side4.rotation.y+=Math.PI/2;\n umbrellaStand.add(Side4);\n\n let geometryBox = new Three.BoxGeometry(.55, .45, .05 );\n let downPlane = new Three.Mesh( geometryBox, material );\n downPlane.rotation.x+=Math.PI/2;\n downPlane.position.set(-.175,.475,-.175);\n umbrellaStand.add(downPlane);\n\n return umbrellaStand\n}\n\nexport default {\n name: \"umbrella-stand\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"umbrella stand\",\n description: \"umbrella stand\",\n image: require('./umbrellaStand.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /***************** lod max *******************/\n\n let umbrellaStandMaxLOD = new Three.Object3D();\n umbrellaStandMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(umbrellaStandMaxLOD);\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n umbrellaStandMaxLOD.position.x+= -WIDTH/1.5;\n umbrellaStandMaxLOD.position.z+= DEPTH/4;\n umbrellaStandMaxLOD.position.y+= -HEIGHT/1.6 + newAltitude;\n umbrellaStandMaxLOD.rotation.y+= -Math.PI/2;\n umbrellaStandMaxLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX);\n\n /**************** lod min *******************/\n\n let umbrellaStandMinLOD = new Three.Object3D();\n umbrellaStandMinLOD.add(objectMinLOD.clone());\n umbrellaStandMinLOD.position.x+= -WIDTH/1.5;\n umbrellaStandMinLOD.position.z+= DEPTH/4;\n umbrellaStandMinLOD.position.y+= -HEIGHT/1.6 + newAltitude;\n umbrellaStandMinLOD.rotation.y+= -Math.PI/2;\n umbrellaStandMinLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(umbrellaStandMaxLOD, 200);\n lod.addLevel(umbrellaStandMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n\n","module.exports = __webpack_public_path__ + \"catalog/items/tv/tv.obj\";","module.exports = __webpack_public_path__ + \"catalog/items/tv/tv.mtl\";","module.exports = __webpack_public_path__ + \"catalog/items/tv/tv.png\";","import * as Three from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\n\nimport React from 'react';\nimport convert from 'convert-units';\n\nlet cached3DTV = null;\n\nexport default {\n name: \"tv\",\n prototype: \"items\",\n\n info: {\n title: \"tv\",\n tag: ['furnishing', 'electronics'],\n description: \"LCD TV\",\n image: require('./tv.png')\n },\n\n properties: {\n altitude: {\n label: \"Altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n let width = {length: 1.60, unit: 'ft'};\n let depth = {length: 0.59, unit: 'ft'};\n\n let newWidth = convert(width.length).from(width.unit).to(scene.unit);\n let newDepth = convert(depth.length).from(depth.unit).to(scene.unit);\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n let width = {length: 1.60, unit: 'ft'};\n let depth = {length: 0.59, unit: 'ft'};\n let height = {length: 1.05, unit: 'ft'};\n\n let onLoadItem = (object) => {\n\n let newWidth = convert(width.length).from(width.unit).to(scene.unit);\n let newHeight = convert(height.length).from(height.unit).to(scene.unit);\n let newDepth = convert(depth.length).from(depth.unit).to(scene.unit);\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n object.scale.set(newWidth / width.length, newHeight / height.length, newDepth / depth.length);\n\n // Normalize the origin of the object\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let center = [\n (boundingBox.max.x - boundingBox.min.x) / 2 + boundingBox.min.x,\n (boundingBox.max.y - boundingBox.min.y) / 2 + boundingBox.min.y,\n (boundingBox.max.z - boundingBox.min.z) / 2 + boundingBox.min.z];\n\n object.position.x -= center[0];\n object.position.y -= center[1] - (boundingBox.max.y - boundingBox.min.y) / 2;\n object.position.z -= center[2];\n\n object.position.y += newAltitude;\n\n object.rotation.y = Math.PI;\n\n return object;\n };\n\n\n if(cached3DTV) {\n return Promise.resolve(onLoadItem(cached3DTV.clone()));\n }\n\n let mtl = require('./tv.mtl');\n let obj = require('./tv.obj');\n\n return loadObjWithMaterial(mtl, obj, '')\n .then(object => {\n cached3DTV = object;\n return onLoadItem(cached3DTV.clone())\n })\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/trash/trash.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst RADIUS = 20;\nconst HEIGHT = 40;\n\n\nexport default {\n name: \"trash\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"Trash\",\n description: \"Trash\",\n image: require('./trash.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let circleStyle = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n var grey = new Three.MeshLambertMaterial( {color: 0xdddddd} );\n grey.side = Three.DoubleSide;\n\n\n var cestino=new Three.Object3D();\n\n\n var cylinderGeometry1 = new Three.CylinderGeometry(0.25,0.25,0.0001,80);\n var p1 = new Three.Mesh(cylinderGeometry1,grey);\n cestino.add(p1);\n\n var cylinderGeometry2 = new Three.CylinderGeometry(0.30,0.25,0.002,80,80,true);\n var p2 = new Three.Mesh(cylinderGeometry2,grey);\n p2.position.set(0,0.001,0);\n p1.add(p2);\n\n\n let value = new Three.Box3().setFromObject(cestino);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(cestino, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n cestino.add(bbox);\n }\n\n cestino.position.y += HEIGHT/16 + newAltitude;\n cestino.scale.set(1.5*RADIUS / deltaX, HEIGHT / deltaY, 1.5*RADIUS/ deltaZ);\n\n return Promise.resolve(cestino);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/three-phase-panel/threePhasePanel.png\";","module.exports = __webpack_public_path__ + \"catalog/items/three-phase-panel/PanelTexture.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 40;\nconst DEPTH = 20;\nconst HEIGHT = 50;\n\nconst grey = new Three.MeshLambertMaterial({color:0xAAAAAA});\ngrey.side = Three.DoubleSide;\nconst red = new Three.MeshPhongMaterial({color:0xAA0000});\nconst blue = new Three.MeshPhongMaterial({color:0x0000AA} );\nconst black = new Three.MeshLambertMaterial({color:0x000000});\nblack.side=Three.DoubleSide;\n\nconst textureLoader = new Three.TextureLoader();\nconst quadro=textureLoader.load(require('./PanelTexture.png'));\n\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMiddleLOD = makeObjectMiddleLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\n\n\nfunction makeObjectMaxLOD() {\n\n\n let threePhasePanel = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=0.79;\n let height=0.6;\n let radius=0.1;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.2,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let BackSideGeometry = new Three.BoxGeometry(1,1.4,0.1);\n let BackSide = new Three.Mesh( BackSideGeometry, grey );\n BackSide.position.set(0.5,1.5,0.05);\n threePhasePanel.add(BackSide);\n\n let PanelGeometry = new Three.PlaneGeometry(0.5,0.5);\n let meshPanel = new Three.Mesh( PanelGeometry, new Three.MeshPhongMaterial({map:quadro, transparent:true} ) );\n meshPanel.position.set(0.5,1.85,0.31);\n threePhasePanel.add(meshPanel);\n\n let geometry0 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh0 = new Three.Mesh( geometry0, grey ) ;\n mesh0.position.set(0.1,1.55,0.1);\n threePhasePanel.add(mesh0);\n\n let geometry1 = new Three.BoxGeometry(0.86,.38,0.2);\n let mesh1 = new Three.Mesh( geometry1, grey );\n mesh1.position.set(0.495,1.85,0.2);\n threePhasePanel.add(mesh1);\n\n let geometry00 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh00 = new Three.Mesh( geometry00, grey ) ;\n mesh00.position.set(0.1,.85,0.1);\n mesh00.scale.set(1,1.2,.6);\n threePhasePanel.add(mesh00);\n\n let geometry11 = new Three.BoxGeometry(0.86,.51,0.1);\n let mesh11 = new Three.Mesh( geometry11, grey );\n mesh11.position.set(0.495,1.225,0.15);\n threePhasePanel.add(mesh11);\n\n let geometry1b = new Three.BoxGeometry(0.3,.5,0.1);\n let mesh1b = new Three.Mesh( geometry1b, grey);\n mesh1b.position.set(0.68,1.2,0.25);\n threePhasePanel.add(mesh1b);\n\n let mesh1c = new Three.Mesh( geometry1b, grey );\n mesh1c.position.set(0.32,1.2,0.25);\n threePhasePanel.add(mesh1c);\n\n let geometry1d = new Three.BoxGeometry(0.35,.6,0.1);\n let mesh1d = new Three.Mesh( geometry1d, grey);\n mesh1d.position.set(0.68,1.2,0.2);\n threePhasePanel.add(mesh1d);\n\n let mesh1e = new Three.Mesh( geometry1d, grey );\n mesh1e.position.set(0.32,1.2,0.2);\n threePhasePanel.add(mesh1e);\n\n let geometry1f = new Three.BoxGeometry(.15,.15,.01);\n let mesh1f = new Three.Mesh( geometry1f, red);\n mesh1f.position.set(0.32,1.1,0.3);\n threePhasePanel.add(mesh1f);\n\n let mesh1g = new Three.Mesh( geometry1f, blue );\n mesh1g.position.set(0.68,1.1,0.3);\n threePhasePanel.add(mesh1g);\n\n let stopperGeometry1 = new Three.CylinderGeometry(0.05,0.05,0.05,16,16);\n let stopper_p1 = new Three.Mesh(stopperGeometry1, red);\n stopper_p1.position.set(0.32,1.1,0.3);\n stopper_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(stopper_p1);\n\n let stopperGeometry2 = new Three.SphereGeometry(0.07,16,16);\n let stopper_p2 = new Three.Mesh(stopperGeometry2, red);\n stopper_p2.position.set(0.32,1.1,0.35);\n stopper_p2.rotation.x=Math.PI/2;\n stopper_p2.scale.set(1,.5,1);\n threePhasePanel.add(stopper_p2);\n\n let stopperGeometry3 = new Three.CylinderGeometry(0.01,0.01,0.065,16,16);\n let stopper_p3 = new Three.Mesh(stopperGeometry3, red);\n stopper_p3.position.set(0.32,1.15,0.32);\n stopper_p3.rotation.x=Math.PI/2;\n stopper_p3.rotation.z=Math.PI/2;\n threePhasePanel.add(stopper_p3);\n\n let stopper2_p1 = new Three.Mesh(stopperGeometry1,blue);\n stopper2_p1.position.set(0.68,1.1,0.3);\n stopper2_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(stopper2_p1);\n\n let stopper2_p2 = new Three.Mesh(stopperGeometry2,blue);\n stopper2_p2.position.set(0.68,1.1,0.35);\n stopper2_p2.rotation.x=Math.PI/2;\n stopper2_p2.scale.set(1,.5,1);\n threePhasePanel.add(stopper2_p2);\n\n let stopper2_p3 = new Three.Mesh(stopperGeometry3,blue);\n stopper2_p3.position.set(0.68,1.15,0.32);\n stopper2_p3.rotation.x=Math.PI/2;\n stopper2_p3.rotation.z=Math.PI/2;\n threePhasePanel.add(stopper2_p3);\n\n let handleGeometry = new Three.CylinderGeometry(0.05,0.05,0.025,16,16);\n let handle_p1 = new Three.Mesh(handleGeometry,grey);\n handle_p1.position.set(0.32,1.3,0.3);\n handle_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p1);\n\n let handle2_p1 = new Three.Mesh(handleGeometry,grey);\n handle2_p1.position.set(0.68,1.3,0.3);\n handle2_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p1);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.051,0.051,0.05,16,16,true);\n let handle_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle_p2.position.set(0.32,1.3,0.31);\n handle_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p2);\n\n let handle2_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle2_p2.position.set(0.68,1.3,0.31);\n handle2_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p2);\n\n let geometry2 = new Three.BoxGeometry(0.1,0.02,0.02);\n let handle_p3 = new Three.Mesh( geometry2,black );\n handle_p3.position.set(0.32,1.3,0.32);\n threePhasePanel.add(handle_p3);\n\n let handle2_p3 = new Three.Mesh( geometry2, black );\n handle2_p3.position.set(0.68,1.3,0.32);\n threePhasePanel.add(handle2_p3);\n\n let cylinderGeometry3 = new Three.CylinderGeometry(0.015,0.015,0.1,16,16);\n let pivot1 = new Three.Mesh(cylinderGeometry3,black);\n pivot1.rotation.x += Math.PI/2;\n pivot1.position.set(0.91,2.05,0.2);\n threePhasePanel.add(pivot1);\n\n let pivot2 = new Three.Mesh(cylinderGeometry3, black);\n pivot2.rotation.x += Math.PI/2;\n pivot2.position.set(0.91,1.65,0.2);\n threePhasePanel.add(pivot2);\n\n let pivot3 = new Three.Mesh(cylinderGeometry3,black);\n pivot3.rotation.x += Math.PI/2;\n pivot3.position.set(.08,2.05,0.2);\n threePhasePanel.add(pivot3);\n\n let pivot4 = new Three.Mesh(cylinderGeometry3,black);\n pivot4.rotation.x += Math.PI/2;\n pivot4.position.set(.08,1.65,0.2);\n threePhasePanel.add(pivot4);\n\n let cylinderGeometry4 = new Three.CylinderGeometry(0.018,0.018,0.22,16,16,true);\n let pivot11 = new Three.Mesh(cylinderGeometry4,grey);\n pivot11.rotation.x += Math.PI/2;\n pivot11.position.set(0.91,2.05,0.18);\n threePhasePanel.add(pivot11);\n\n let pivot22 = new Three.Mesh(cylinderGeometry4,grey);\n pivot22.rotation.x += Math.PI/2;\n pivot22.position.set(0.91,1.65,0.18);\n threePhasePanel.add(pivot22);\n\n let pivot33 = new Three.Mesh(cylinderGeometry4,grey);\n pivot33.rotation.x += Math.PI/2;\n pivot33.position.set(.08,2.05,0.18);\n threePhasePanel.add(pivot33);\n\n let pivot44 = new Three.Mesh(cylinderGeometry4,grey);\n pivot44.rotation.x += Math.PI/2;\n pivot44.position.set(.08,1.65,0.18);\n threePhasePanel.add(pivot44);\n\n let pivot1b = new Three.Mesh(cylinderGeometry3,black);\n pivot1b.rotation.x += Math.PI/2;\n pivot1b.position.set(0.91,1.5,0.16);\n threePhasePanel.add(pivot1b);\n\n let pivot2b = new Three.Mesh(cylinderGeometry3,black);\n pivot2b.rotation.x += Math.PI/2;\n pivot2b.position.set(0.91,.95,0.16);\n threePhasePanel.add(pivot2b);\n\n let pivot3b = new Three.Mesh(cylinderGeometry3,black);\n pivot3b.rotation.x += Math.PI/2;\n pivot3b.position.set(.08,1.5,0.16);\n threePhasePanel.add(pivot3b);\n\n let pivot4b = new Three.Mesh(cylinderGeometry3,black);\n pivot4b.rotation.x += Math.PI/2;\n pivot4b.position.set(.08,.95,0.16);\n threePhasePanel.add(pivot4b);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(0.018,0.018,0.1,16,16,true);\n let pivot11b = new Three.Mesh(cylinderGeometry5,grey);\n pivot11b.rotation.x += Math.PI/2;\n pivot11b.position.set(0.91,1.5,0.16);\n threePhasePanel.add(pivot11b);\n\n let pivot22b = new Three.Mesh(cylinderGeometry5,grey);\n pivot22b.rotation.x += Math.PI/2;\n pivot22b.position.set(0.91,.95,0.16);\n threePhasePanel.add(pivot22b);\n\n let pivot33b = new Three.Mesh(cylinderGeometry5,grey);\n pivot33b.rotation.x += Math.PI/2;\n pivot33b.position.set(.08,1.5,0.16);\n threePhasePanel.add(pivot33b);\n\n let pivot44b = new Three.Mesh(cylinderGeometry5,grey);\n pivot44b.rotation.x += Math.PI/2;\n pivot44b.position.set(.08,.95,0.16);\n threePhasePanel.add(pivot44b);\n\n\n return threePhasePanel;\n}\n\nfunction makeObjectMiddleLOD() {\n\n let threePhasePanel = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=0.79;\n let height=0.6;\n let radius=0.1;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.2,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let backSideGeometry = new Three.BoxGeometry(1,1.4,0.1);\n let backSide = new Three.Mesh( backSideGeometry, grey );\n backSide.position.set(0.5,1.5,0.05);\n threePhasePanel.add(backSide);\n\n let PanelGeometry = new Three.PlaneGeometry(0.5,0.5);\n let Panel = new Three.Mesh( PanelGeometry, new Three.MeshPhongMaterial({map:quadro, transparent:true} ) );\n Panel.position.set(0.5,1.85,0.31);\n threePhasePanel.add(Panel);\n\n let geometry0 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh0 = new Three.Mesh( geometry0, grey ) ;\n mesh0.position.set(0.1,1.55,0.1);\n threePhasePanel.add(mesh0);\n\n let geometry1 = new Three.BoxGeometry(0.86,.38,0.2);\n let mesh1 = new Three.Mesh( geometry1, grey );\n mesh1.position.set(0.495,1.85,0.2);\n threePhasePanel.add(mesh1);\n\n let geometry00 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh00 = new Three.Mesh( geometry00, grey ) ;\n mesh00.position.set(0.1,.85,0.1);\n mesh00.scale.set(1,1.2,.6);\n threePhasePanel.add(mesh00);\n\n let geometry11 = new Three.BoxGeometry(0.86,.51,0.1);\n let mesh11 = new Three.Mesh( geometry11, grey );\n mesh11.position.set(0.495,1.225,0.15);\n threePhasePanel.add(mesh11);\n\n let geometry1b = new Three.BoxGeometry(0.3,.5,0.1);\n let mesh1b = new Three.Mesh( geometry1b, grey);\n mesh1b.position.set(0.68,1.2,0.25);\n threePhasePanel.add(mesh1b);\n\n let mesh1c = new Three.Mesh( geometry1b, grey );\n mesh1c.position.set(0.32,1.2,0.25);\n threePhasePanel.add(mesh1c);\n\n let geometry1d = new Three.BoxGeometry(0.35,.6,0.1);\n let mesh1d = new Three.Mesh( geometry1d, grey);\n mesh1d.position.set(0.68,1.2,0.2);\n threePhasePanel.add(mesh1d);\n\n let mesh1e = new Three.Mesh( geometry1d, grey );\n mesh1e.position.set(0.32,1.2,0.2);\n threePhasePanel.add(mesh1e);\n\n let geometry1f = new Three.BoxGeometry(.15,.15,.01);\n let mesh1f = new Three.Mesh( geometry1f, red);\n mesh1f.position.set(0.32,1.1,0.3);\n threePhasePanel.add(mesh1f);\n\n let mesh1g = new Three.Mesh( geometry1f, blue );\n mesh1g.position.set(0.68,1.1,0.3);\n threePhasePanel.add(mesh1g);\n\n let stopperGeometry1 = new Three.CylinderGeometry(0.05,0.05,0.05,16,16);\n let stopper_p1 = new Three.Mesh(stopperGeometry1, red);\n stopper_p1.position.set(0.32,1.1,0.3);\n stopper_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(stopper_p1);\n\n let stopperGeometry2 = new Three.SphereGeometry(0.07,16,16);\n let stopper_p2 = new Three.Mesh(stopperGeometry2, red);\n stopper_p2.position.set(0.32,1.1,0.35);\n stopper_p2.rotation.x=Math.PI/2;\n stopper_p2.scale.set(1,.5,1);\n threePhasePanel.add(stopper_p2);\n\n let stopperGeometry3 = new Three.CylinderGeometry(0.01,0.01,0.065,16,16);\n let stopper_p3 = new Three.Mesh(stopperGeometry3, red);\n stopper_p3.position.set(0.32,1.15,0.32);\n stopper_p3.rotation.x=Math.PI/2;\n stopper_p3.rotation.z=Math.PI/2;\n threePhasePanel.add(stopper_p3);\n\n let stopper2_p1 = new Three.Mesh(stopperGeometry1,blue);\n stopper2_p1.position.set(0.68,1.1,0.3);\n stopper2_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(stopper2_p1);\n\n let stopper2_p2 = new Three.Mesh(stopperGeometry2,blue);\n stopper2_p2.position.set(0.68,1.1,0.35);\n stopper2_p2.rotation.x=Math.PI/2;\n stopper2_p2.scale.set(1,.5,1);\n threePhasePanel.add(stopper2_p2);\n\n let stopper2_p3 = new Three.Mesh(stopperGeometry3,blue);\n stopper2_p3.position.set(0.68,1.15,0.32);\n stopper2_p3.rotation.x=Math.PI/2;\n stopper2_p3.rotation.z=Math.PI/2;\n threePhasePanel.add(stopper2_p3);\n\n let handleGeometry = new Three.CylinderGeometry(0.05,0.05,0.025,16,16);\n let handle_p1 = new Three.Mesh(handleGeometry,grey);\n handle_p1.position.set(0.32,1.3,0.3);\n handle_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p1);\n\n let handle2_p1 = new Three.Mesh(handleGeometry,grey);\n handle2_p1.position.set(0.68,1.3,0.3);\n handle2_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p1);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.051,0.051,0.05,16,16,true);\n let handle_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle_p2.position.set(0.32,1.3,0.31);\n handle_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p2);\n\n let handle2_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle2_p2.position.set(0.68,1.3,0.31);\n handle2_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p2);\n\n let geometry2 = new Three.BoxGeometry(0.1,0.02,0.02);\n let handle_p3 = new Three.Mesh( geometry2,black );\n handle_p3.position.set(0.32,1.3,0.32);\n threePhasePanel.add(handle_p3);\n\n let handle2_p3 = new Three.Mesh( geometry2, black );\n handle2_p3.position.set(0.68,1.3,0.32);\n threePhasePanel.add(handle2_p3);\n\n return threePhasePanel;\n}\n\nfunction makeObjectMinLOD() {\n\n let threePhasePanel = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=0.79;\n let height=0.6;\n let radius=0.1;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.2,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let backSideGeometry = new Three.BoxGeometry(1,1.4,0.1);\n let backSide = new Three.Mesh( backSideGeometry, grey );\n backSide.position.set(0.5,1.5,0.05);\n threePhasePanel.add(backSide);\n\n let geometry0 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh0 = new Three.Mesh( geometry0, grey ) ;\n mesh0.position.set(0.1,1.55,0.1);\n threePhasePanel.add(mesh0);\n\n let geometry1 = new Three.BoxGeometry(0.86,.38,0.2);\n let mesh1 = new Three.Mesh( geometry1, grey );\n mesh1.position.set(0.495,1.85,0.2);\n threePhasePanel.add(mesh1);\n\n let geometry00 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh00 = new Three.Mesh( geometry00, grey ) ;\n mesh00.position.set(0.1,.85,0.1);\n mesh00.scale.set(1,1.2,.6);\n threePhasePanel.add(mesh00);\n\n let geometry11 = new Three.BoxGeometry(0.86,.51,0.1);\n let mesh11 = new Three.Mesh( geometry11, grey );\n mesh11.position.set(0.495,1.225,0.15);\n threePhasePanel.add(mesh11);\n\n let geometry1b = new Three.BoxGeometry(0.3,.5,0.1);\n let mesh1b = new Three.Mesh( geometry1b, grey);\n mesh1b.position.set(0.68,1.2,0.25);\n threePhasePanel.add(mesh1b);\n\n let mesh1c = new Three.Mesh( geometry1b, grey );\n mesh1c.position.set(0.32,1.2,0.25);\n threePhasePanel.add(mesh1c);\n\n let geometry1d = new Three.BoxGeometry(0.35,.6,0.1);\n let mesh1d = new Three.Mesh( geometry1d, grey);\n mesh1d.position.set(0.68,1.2,0.2);\n threePhasePanel.add(mesh1d);\n\n let mesh1e = new Three.Mesh( geometry1d, grey );\n mesh1e.position.set(0.32,1.2,0.2);\n threePhasePanel.add(mesh1e);\n\n let geometry1f = new Three.BoxGeometry(.15,.15,.01);\n let mesh1f = new Three.Mesh( geometry1f, red);\n mesh1f.position.set(0.32,1.1,0.3);\n threePhasePanel.add(mesh1f);\n\n let mesh1g = new Three.Mesh( geometry1f, blue );\n mesh1g.position.set(0.68,1.1,0.3);\n threePhasePanel.add(mesh1g);\n\n let handleGeometry = new Three.CylinderGeometry(0.05,0.05,0.025,8,8);\n let handle_p1 = new Three.Mesh(handleGeometry,grey);\n handle_p1.position.set(0.32,1.3,0.3);\n handle_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p1);\n\n let handle2_p1 = new Three.Mesh(handleGeometry,grey);\n handle2_p1.position.set(0.68,1.3,0.3);\n handle2_p1.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p1);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.051,0.051,0.05,8,8,true);\n let handle_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle_p2.position.set(0.32,1.3,0.31);\n handle_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle_p2);\n\n let handle2_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle2_p2.position.set(0.68,1.3,0.31);\n handle2_p2.rotation.x=Math.PI/2;\n threePhasePanel.add(handle2_p2);\n\n let geometry2 = new Three.BoxGeometry(0.1,0.02,0.02);\n let handle_p3 = new Three.Mesh( geometry2,black );\n handle_p3.position.set(0.32,1.3,0.32);\n threePhasePanel.add(handle_p3);\n\n let handle2_p3 = new Three.Mesh( geometry2, black );\n handle2_p3.position.set(0.68,1.3,0.32);\n threePhasePanel.add(handle2_p3);\n\n return threePhasePanel;\n}\n\nexport default {\n name: \"three- phase panel\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"three-phase panel\",\n description: \"electric panel\",\n image: require('./threePhasePanel.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = WIDTH;\n let newDepth = DEPTH;\n let angle = element.rotation + 90;\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = WIDTH;\n let newDepth = DEPTH;\n let newHeight = HEIGHT;\n let newAltitude = element.properties.get('altitude').get('length');\n\n\n /**************** LOD max ***********************/\n\n let threePhasePanelMaxLOD=new Three.Object3D();\n threePhasePanelMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(threePhasePanelMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n threePhasePanelMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n threePhasePanelMaxLOD.position.y+= -newHeight/2 + newAltitude;\n threePhasePanelMaxLOD.position.x+= -newWidth/2;\n threePhasePanelMaxLOD.position.z+= -newDepth/2;\n\n /**************** LOD middle ***********************/\n\n let threePhasePanelMiddleLOD=new Three.Object3D();\n threePhasePanelMiddleLOD.add(objectMiddleLOD.clone());\n\n threePhasePanelMiddleLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n threePhasePanelMiddleLOD.position.y+= -newHeight/2 + newAltitude;\n threePhasePanelMiddleLOD.position.x+= -newWidth/2;\n threePhasePanelMiddleLOD.position.z+= -newDepth/2;\n\n\n /**************** LOD min ***********************/\n\n let threePhasePanelMinLOD=new Three.Object3D();\n threePhasePanelMinLOD.add(objectMinLOD.clone());\n\n threePhasePanelMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n threePhasePanelMinLOD.position.y+= -newHeight/2 + newAltitude;\n threePhasePanelMinLOD.position.x+= -newWidth/2;\n threePhasePanelMinLOD.position.z+= -newDepth/2;\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(threePhasePanelMaxLOD, 100);\n lod.addLevel(threePhasePanelMiddleLOD, 300);\n lod.addLevel(threePhasePanelMinLOD, 700);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n\n};\n\n\n","module.exports = __webpack_public_path__ + \"catalog/items/text-3d/img.png\";","export const HELVETIKER = {\"glyphs\":{\"ο\":{\"x_min\":0,\"x_max\":712,\"ha\":815,\"o\":\"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 \"},\"S\":{\"x_min\":0,\"x_max\":788,\"ha\":890,\"o\":\"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 \"},\"¦\":{\"x_min\":343,\"x_max\":449,\"ha\":792,\"o\":\"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 \"},\"/\":{\"x_min\":183.25,\"x_max\":608.328125,\"ha\":792,\"o\":\"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 \"},\"Τ\":{\"x_min\":-0.4375,\"x_max\":777.453125,\"ha\":839,\"o\":\"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 \"},\"y\":{\"x_min\":0,\"x_max\":684.78125,\"ha\":771,\"o\":\"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 \"},\"Π\":{\"x_min\":0,\"x_max\":803,\"ha\":917,\"o\":\"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 \"},\"ΐ\":{\"x_min\":-111,\"x_max\":339,\"ha\":361,\"o\":\"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 \"},\"g\":{\"x_min\":0,\"x_max\":686,\"ha\":838,\"o\":\"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 \"},\"²\":{\"x_min\":0,\"x_max\":442,\"ha\":539,\"o\":\"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 \"},\"–\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 \"},\"Κ\":{\"x_min\":0,\"x_max\":819.5625,\"ha\":893,\"o\":\"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 \"},\"ƒ\":{\"x_min\":-46.265625,\"x_max\":392,\"ha\":513,\"o\":\"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 \"},\"e\":{\"x_min\":0,\"x_max\":714,\"ha\":813,\"o\":\"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 \"},\"ό\":{\"x_min\":0,\"x_max\":712,\"ha\":815,\"o\":\"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 \"},\"J\":{\"x_min\":0,\"x_max\":588,\"ha\":699,\"o\":\"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 \"},\"»\":{\"x_min\":-1,\"x_max\":503,\"ha\":601,\"o\":\"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 \"},\"©\":{\"x_min\":-3,\"x_max\":1008,\"ha\":1106,\"o\":\"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 \"},\"ώ\":{\"x_min\":0,\"x_max\":922,\"ha\":1030,\"o\":\"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 \"},\"^\":{\"x_min\":193.0625,\"x_max\":598.609375,\"ha\":792,\"o\":\"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 \"},\"«\":{\"x_min\":0,\"x_max\":507.203125,\"ha\":604,\"o\":\"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 \"},\"D\":{\"x_min\":0,\"x_max\":828,\"ha\":935,\"o\":\"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 \"},\"∙\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 \"},\"ÿ\":{\"x_min\":0,\"x_max\":47,\"ha\":125,\"o\":\"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 \"},\"w\":{\"x_min\":0,\"x_max\":1009.71875,\"ha\":1100,\"o\":\"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 \"},\"$\":{\"x_min\":0,\"x_max\":700,\"ha\":793,\"o\":\"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 \"},\"\\\\\":{\"x_min\":-0.015625,\"x_max\":425.0625,\"ha\":522,\"o\":\"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 \"},\"µ\":{\"x_min\":0,\"x_max\":697.21875,\"ha\":747,\"o\":\"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 \"},\"Ι\":{\"x_min\":42,\"x_max\":181,\"ha\":297,\"o\":\"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 \"},\"Ύ\":{\"x_min\":0,\"x_max\":1144.5,\"ha\":1214,\"o\":\"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"’\":{\"x_min\":0,\"x_max\":139,\"ha\":236,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 \"},\"Ν\":{\"x_min\":0,\"x_max\":801,\"ha\":915,\"o\":\"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 \"},\"-\":{\"x_min\":8.71875,\"x_max\":350.390625,\"ha\":478,\"o\":\"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 \"},\"Q\":{\"x_min\":0,\"x_max\":968,\"ha\":1072,\"o\":\"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 \"},\"ς\":{\"x_min\":1,\"x_max\":676.28125,\"ha\":740,\"o\":\"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 \"},\"M\":{\"x_min\":0,\"x_max\":954,\"ha\":1067,\"o\":\"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 \"},\"Ψ\":{\"x_min\":0,\"x_max\":1006,\"ha\":1094,\"o\":\"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 \"},\"C\":{\"x_min\":0,\"x_max\":886,\"ha\":944,\"o\":\"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 \"},\"!\":{\"x_min\":0,\"x_max\":138,\"ha\":236,\"o\":\"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 \"},\"{\":{\"x_min\":0,\"x_max\":480.5625,\"ha\":578,\"o\":\"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 \"},\"X\":{\"x_min\":-0.015625,\"x_max\":854.15625,\"ha\":940,\"o\":\"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 \"},\"#\":{\"x_min\":0,\"x_max\":963.890625,\"ha\":1061,\"o\":\"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 \"},\"ι\":{\"x_min\":42,\"x_max\":284,\"ha\":361,\"o\":\"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 \"},\"Ά\":{\"x_min\":0,\"x_max\":906.953125,\"ha\":982,\"o\":\"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 \"},\")\":{\"x_min\":0,\"x_max\":318,\"ha\":415,\"o\":\"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 \"},\"ε\":{\"x_min\":0,\"x_max\":634.71875,\"ha\":714,\"o\":\"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 \"},\"Δ\":{\"x_min\":0,\"x_max\":952.78125,\"ha\":1028,\"o\":\"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 \"},\"}\":{\"x_min\":0,\"x_max\":481,\"ha\":578,\"o\":\"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 \"},\"‰\":{\"x_min\":-3,\"x_max\":1672,\"ha\":1821,\"o\":\"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 \"},\"a\":{\"x_min\":0,\"x_max\":698.609375,\"ha\":794,\"o\":\"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 \"},\"—\":{\"x_min\":0,\"x_max\":941.671875,\"ha\":1039,\"o\":\"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 \"},\"=\":{\"x_min\":8.71875,\"x_max\":780.953125,\"ha\":792,\"o\":\"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 \"},\"N\":{\"x_min\":0,\"x_max\":801,\"ha\":914,\"o\":\"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 \"},\"ρ\":{\"x_min\":0,\"x_max\":712,\"ha\":797,\"o\":\"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 \"},\"2\":{\"x_min\":59,\"x_max\":731,\"ha\":792,\"o\":\"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 \"},\"¯\":{\"x_min\":0,\"x_max\":941.671875,\"ha\":938,\"o\":\"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 \"},\"Z\":{\"x_min\":0,\"x_max\":779,\"ha\":849,\"o\":\"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 \"},\"u\":{\"x_min\":0,\"x_max\":617,\"ha\":729,\"o\":\"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 \"},\"k\":{\"x_min\":0,\"x_max\":612.484375,\"ha\":697,\"o\":\"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 \"},\"Η\":{\"x_min\":0,\"x_max\":803,\"ha\":917,\"o\":\"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 \"},\"Α\":{\"x_min\":0,\"x_max\":906.953125,\"ha\":985,\"o\":\"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 \"},\"s\":{\"x_min\":0,\"x_max\":604,\"ha\":697,\"o\":\"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 \"},\"B\":{\"x_min\":0,\"x_max\":778,\"ha\":876,\"o\":\"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 \"},\"…\":{\"x_min\":0,\"x_max\":614,\"ha\":708,\"o\":\"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 \"},\"?\":{\"x_min\":0,\"x_max\":607,\"ha\":704,\"o\":\"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 \"},\"H\":{\"x_min\":0,\"x_max\":803,\"ha\":915,\"o\":\"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 \"},\"ν\":{\"x_min\":0,\"x_max\":675,\"ha\":761,\"o\":\"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 \"},\"c\":{\"x_min\":1,\"x_max\":701.390625,\"ha\":775,\"o\":\"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 \"},\"¶\":{\"x_min\":0,\"x_max\":566.671875,\"ha\":678,\"o\":\"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 \"},\"β\":{\"x_min\":0,\"x_max\":660,\"ha\":745,\"o\":\"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 \"},\"Μ\":{\"x_min\":0,\"x_max\":954,\"ha\":1068,\"o\":\"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 \"},\"Ό\":{\"x_min\":0.109375,\"x_max\":1120,\"ha\":1217,\"o\":\"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"Ή\":{\"x_min\":0,\"x_max\":1158,\"ha\":1275,\"o\":\"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"•\":{\"x_min\":0,\"x_max\":663.890625,\"ha\":775,\"o\":\"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 \"},\"¥\":{\"x_min\":0.1875,\"x_max\":819.546875,\"ha\":886,\"o\":\"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 \"},\"(\":{\"x_min\":0,\"x_max\":318.0625,\"ha\":415,\"o\":\"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 \"},\"U\":{\"x_min\":0,\"x_max\":796,\"ha\":904,\"o\":\"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 \"},\"γ\":{\"x_min\":0.5,\"x_max\":744.953125,\"ha\":822,\"o\":\"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 \"},\"α\":{\"x_min\":0,\"x_max\":765.5625,\"ha\":809,\"o\":\"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 \"},\"F\":{\"x_min\":0,\"x_max\":683.328125,\"ha\":717,\"o\":\"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 \"},\"­\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 \"},\":\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 \"},\"Χ\":{\"x_min\":0,\"x_max\":854.171875,\"ha\":935,\"o\":\"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 \"},\"*\":{\"x_min\":116,\"x_max\":674,\"ha\":792,\"o\":\"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 \"},\"†\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 \"},\"°\":{\"x_min\":0,\"x_max\":347,\"ha\":444,\"o\":\"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 \"},\"V\":{\"x_min\":0,\"x_max\":862.71875,\"ha\":940,\"o\":\"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 \"},\"Ξ\":{\"x_min\":0,\"x_max\":734.71875,\"ha\":763,\"o\":\"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 \"},\" \":{\"x_min\":0,\"x_max\":0,\"ha\":853},\"Ϋ\":{\"x_min\":0.328125,\"x_max\":819.515625,\"ha\":889,\"o\":\"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 \"},\"0\":{\"x_min\":73,\"x_max\":715,\"ha\":792,\"o\":\"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 \"},\"”\":{\"x_min\":0,\"x_max\":347,\"ha\":454,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 \"},\"@\":{\"x_min\":0,\"x_max\":1260,\"ha\":1357,\"o\":\"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 \"},\"Ί\":{\"x_min\":0,\"x_max\":499,\"ha\":613,\"o\":\"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 \"},\"i\":{\"x_min\":14,\"x_max\":136,\"ha\":275,\"o\":\"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 \"},\"Β\":{\"x_min\":0,\"x_max\":778,\"ha\":877,\"o\":\"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 \"},\"υ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 \"},\"]\":{\"x_min\":0,\"x_max\":275,\"ha\":372,\"o\":\"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 \"},\"m\":{\"x_min\":0,\"x_max\":1019,\"ha\":1128,\"o\":\"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 \"},\"χ\":{\"x_min\":8.328125,\"x_max\":780.5625,\"ha\":815,\"o\":\"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 \"},\"8\":{\"x_min\":55,\"x_max\":736,\"ha\":792,\"o\":\"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 \"},\"ί\":{\"x_min\":42,\"x_max\":326.71875,\"ha\":361,\"o\":\"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 \"},\"Ζ\":{\"x_min\":0,\"x_max\":779.171875,\"ha\":850,\"o\":\"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 \"},\"R\":{\"x_min\":0,\"x_max\":781.953125,\"ha\":907,\"o\":\"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 \"},\"o\":{\"x_min\":0,\"x_max\":713,\"ha\":821,\"o\":\"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 \"},\"5\":{\"x_min\":54.171875,\"x_max\":738,\"ha\":792,\"o\":\"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 \"},\"7\":{\"x_min\":58.71875,\"x_max\":730.953125,\"ha\":792,\"o\":\"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 \"},\"K\":{\"x_min\":0,\"x_max\":819.46875,\"ha\":906,\"o\":\"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 \"},\",\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 \"},\"d\":{\"x_min\":0,\"x_max\":683,\"ha\":796,\"o\":\"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 \"},\"¨\":{\"x_min\":-109,\"x_max\":247,\"ha\":232,\"o\":\"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 \"},\"E\":{\"x_min\":0,\"x_max\":736.109375,\"ha\":789,\"o\":\"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 \"},\"Y\":{\"x_min\":0,\"x_max\":820,\"ha\":886,\"o\":\"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 \"},\"\\\"\":{\"x_min\":0,\"x_max\":299,\"ha\":396,\"o\":\"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 \"},\"‹\":{\"x_min\":17.984375,\"x_max\":773.609375,\"ha\":792,\"o\":\"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 \"},\"„\":{\"x_min\":0,\"x_max\":364,\"ha\":467,\"o\":\"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 \"},\"δ\":{\"x_min\":1,\"x_max\":710,\"ha\":810,\"o\":\"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 \"},\"έ\":{\"x_min\":0,\"x_max\":634.71875,\"ha\":714,\"o\":\"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 \"},\"ω\":{\"x_min\":0,\"x_max\":922,\"ha\":1031,\"o\":\"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 \"},\"´\":{\"x_min\":0,\"x_max\":96,\"ha\":251,\"o\":\"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 \"},\"±\":{\"x_min\":11,\"x_max\":781,\"ha\":792,\"o\":\"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 \"},\"|\":{\"x_min\":343,\"x_max\":449,\"ha\":792,\"o\":\"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 \"},\"ϋ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 \"},\"§\":{\"x_min\":0,\"x_max\":593,\"ha\":690,\"o\":\"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 \"},\"b\":{\"x_min\":0,\"x_max\":685,\"ha\":783,\"o\":\"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 \"},\"q\":{\"x_min\":0,\"x_max\":683,\"ha\":876,\"o\":\"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 \"},\"Ω\":{\"x_min\":-0.171875,\"x_max\":969.5625,\"ha\":1068,\"o\":\"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 \"},\"ύ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 \"},\"z\":{\"x_min\":-0.015625,\"x_max\":613.890625,\"ha\":697,\"o\":\"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 \"},\"™\":{\"x_min\":0,\"x_max\":894,\"ha\":1000,\"o\":\"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 \"},\"ή\":{\"x_min\":0.78125,\"x_max\":697,\"ha\":810,\"o\":\"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 \"},\"Θ\":{\"x_min\":0,\"x_max\":960,\"ha\":1056,\"o\":\"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 \"},\"®\":{\"x_min\":-3,\"x_max\":1008,\"ha\":1106,\"o\":\"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 \"},\"~\":{\"x_min\":0,\"x_max\":833,\"ha\":931,\"o\":\"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 \"},\"Ε\":{\"x_min\":0,\"x_max\":736.21875,\"ha\":778,\"o\":\"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 \"},\"³\":{\"x_min\":0,\"x_max\":450,\"ha\":547,\"o\":\"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 \"},\"[\":{\"x_min\":0,\"x_max\":273.609375,\"ha\":371,\"o\":\"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 \"},\"L\":{\"x_min\":0,\"x_max\":645.828125,\"ha\":696,\"o\":\"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 \"},\"σ\":{\"x_min\":0,\"x_max\":803.390625,\"ha\":894,\"o\":\"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 \"},\"ζ\":{\"x_min\":0,\"x_max\":573,\"ha\":642,\"o\":\"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 \"},\"θ\":{\"x_min\":0,\"x_max\":674,\"ha\":778,\"o\":\"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 \"},\"Ο\":{\"x_min\":0,\"x_max\":958,\"ha\":1054,\"o\":\"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 \"},\"Γ\":{\"x_min\":0,\"x_max\":705.28125,\"ha\":749,\"o\":\"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 \"},\" \":{\"x_min\":0,\"x_max\":0,\"ha\":375},\"%\":{\"x_min\":-3,\"x_max\":1089,\"ha\":1186,\"o\":\"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 \"},\"P\":{\"x_min\":0,\"x_max\":726,\"ha\":806,\"o\":\"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 \"},\"Έ\":{\"x_min\":0,\"x_max\":1078.21875,\"ha\":1118,\"o\":\"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"Ώ\":{\"x_min\":0.125,\"x_max\":1136.546875,\"ha\":1235,\"o\":\"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 \"},\"_\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 \"},\"Ϊ\":{\"x_min\":-110,\"x_max\":246,\"ha\":275,\"o\":\"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 \"},\"+\":{\"x_min\":23,\"x_max\":768,\"ha\":792,\"o\":\"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 \"},\"½\":{\"x_min\":0,\"x_max\":1050,\"ha\":1149,\"o\":\"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 \"},\"Ρ\":{\"x_min\":0,\"x_max\":720,\"ha\":783,\"o\":\"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 \"},\"'\":{\"x_min\":0,\"x_max\":139,\"ha\":236,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 \"},\"ª\":{\"x_min\":0,\"x_max\":350,\"ha\":397,\"o\":\"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 \"},\"΅\":{\"x_min\":0,\"x_max\":450,\"ha\":553,\"o\":\"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 \"},\"T\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 \"},\"Φ\":{\"x_min\":0,\"x_max\":915,\"ha\":997,\"o\":\"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 \"},\"⁋\":{\"x_min\":0,\"x_max\":0,\"ha\":694},\"j\":{\"x_min\":-77.78125,\"x_max\":167,\"ha\":349,\"o\":\"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 \"},\"Σ\":{\"x_min\":0,\"x_max\":756.953125,\"ha\":819,\"o\":\"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 \"},\"1\":{\"x_min\":215.671875,\"x_max\":574,\"ha\":792,\"o\":\"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 \"},\"›\":{\"x_min\":18.0625,\"x_max\":774,\"ha\":792,\"o\":\"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 \"},\"<\":{\"x_min\":17.984375,\"x_max\":773.609375,\"ha\":792,\"o\":\"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 \"},\"£\":{\"x_min\":0,\"x_max\":704.484375,\"ha\":801,\"o\":\"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 \"},\"t\":{\"x_min\":0,\"x_max\":367,\"ha\":458,\"o\":\"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 \"},\"¬\":{\"x_min\":0,\"x_max\":706,\"ha\":803,\"o\":\"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 \"},\"λ\":{\"x_min\":0,\"x_max\":750,\"ha\":803,\"o\":\"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 \"},\"W\":{\"x_min\":0,\"x_max\":1263.890625,\"ha\":1351,\"o\":\"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 \"},\">\":{\"x_min\":18.0625,\"x_max\":774,\"ha\":792,\"o\":\"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 \"},\"v\":{\"x_min\":0,\"x_max\":675.15625,\"ha\":761,\"o\":\"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 \"},\"τ\":{\"x_min\":0.28125,\"x_max\":644.5,\"ha\":703,\"o\":\"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 \"},\"ξ\":{\"x_min\":0,\"x_max\":624.9375,\"ha\":699,\"o\":\"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 \"},\"&\":{\"x_min\":-3,\"x_max\":894.25,\"ha\":992,\"o\":\"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 \"},\"Λ\":{\"x_min\":0,\"x_max\":862.5,\"ha\":942,\"o\":\"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 \"},\"I\":{\"x_min\":41,\"x_max\":180,\"ha\":293,\"o\":\"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 \"},\"G\":{\"x_min\":0,\"x_max\":921,\"ha\":1011,\"o\":\"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 \"},\"ΰ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 \"},\"`\":{\"x_min\":0,\"x_max\":138.890625,\"ha\":236,\"o\":\"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 \"},\"·\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 \"},\"Υ\":{\"x_min\":0.328125,\"x_max\":819.515625,\"ha\":889,\"o\":\"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 \"},\"r\":{\"x_min\":0,\"x_max\":355.5625,\"ha\":432,\"o\":\"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 \"},\"x\":{\"x_min\":0,\"x_max\":675,\"ha\":764,\"o\":\"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 \"},\"μ\":{\"x_min\":0,\"x_max\":696.609375,\"ha\":747,\"o\":\"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 \"},\"h\":{\"x_min\":0,\"x_max\":615,\"ha\":724,\"o\":\"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 \"},\".\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 \"},\"φ\":{\"x_min\":-2,\"x_max\":878,\"ha\":974,\"o\":\"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 \"},\";\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 \"},\"f\":{\"x_min\":0,\"x_max\":378,\"ha\":472,\"o\":\"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 \"},\"“\":{\"x_min\":1,\"x_max\":348.21875,\"ha\":454,\"o\":\"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 \"},\"A\":{\"x_min\":0.03125,\"x_max\":906.953125,\"ha\":1008,\"o\":\"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 \"},\"6\":{\"x_min\":53,\"x_max\":739,\"ha\":792,\"o\":\"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 \"},\"‘\":{\"x_min\":1,\"x_max\":139.890625,\"ha\":236,\"o\":\"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 \"},\"ϊ\":{\"x_min\":-70,\"x_max\":283,\"ha\":361,\"o\":\"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 \"},\"π\":{\"x_min\":-0.21875,\"x_max\":773.21875,\"ha\":857,\"o\":\"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 \"},\"ά\":{\"x_min\":0,\"x_max\":765.5625,\"ha\":809,\"o\":\"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 \"},\"O\":{\"x_min\":0,\"x_max\":958,\"ha\":1057,\"o\":\"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 \"},\"n\":{\"x_min\":0,\"x_max\":615,\"ha\":724,\"o\":\"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 \"},\"3\":{\"x_min\":54,\"x_max\":737,\"ha\":792,\"o\":\"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 \"},\"9\":{\"x_min\":53,\"x_max\":739,\"ha\":792,\"o\":\"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 \"},\"l\":{\"x_min\":41,\"x_max\":166,\"ha\":279,\"o\":\"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 \"},\"¤\":{\"x_min\":40.09375,\"x_max\":728.796875,\"ha\":825,\"o\":\"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 \"},\"κ\":{\"x_min\":0,\"x_max\":632.328125,\"ha\":679,\"o\":\"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 \"},\"4\":{\"x_min\":48,\"x_max\":742.453125,\"ha\":792,\"o\":\"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 \"},\"p\":{\"x_min\":0,\"x_max\":685,\"ha\":786,\"o\":\"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 \"},\"‡\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 \"},\"ψ\":{\"x_min\":0,\"x_max\":808,\"ha\":907,\"o\":\"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 \"},\"η\":{\"x_min\":0.78125,\"x_max\":697,\"ha\":810,\"o\":\"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 \"}},\"cssFontWeight\":\"normal\",\"ascender\":1189,\"underlinePosition\":-100,\"cssFontStyle\":\"normal\",\"boundingBox\":{\"yMin\":-334,\"xMin\":-111,\"yMax\":1189,\"xMax\":1672},\"resolution\":1000,\"original_font_information\":{\"postscript_name\":\"Helvetiker-Regular\",\"version_string\":\"Version 1.00 2004 initial release\",\"vendor_url\":\"http://www.magenta.gr/\",\"full_font_name\":\"Helvetiker\",\"font_family_name\":\"Helvetiker\",\"copyright\":\"Copyright (c) Μagenta ltd, 2004\",\"description\":\"\",\"trademark\":\"\",\"designer\":\"\",\"designer_url\":\"\",\"unique_font_identifier\":\"Μagenta ltd:Helvetiker:22-10-104\",\"license_url\":\"http://www.ellak.gr/fonts/MgOpen/license.html\",\"license_description\":\"Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\\r\\n\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license (\\\"Fonts\\\") and associated documentation files (the \\\"Font Software\\\"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \\r\\n\\r\\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\\r\\n\\r\\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word \\\"MgOpen\\\", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\\r\\n\\r\\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the \\\"MgOpen\\\" name.\\r\\n\\r\\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \\r\\n\\r\\nTHE FONT SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.\",\"manufacturer_name\":\"Μagenta ltd\",\"font_sub_family_name\":\"Regular\"},\"descender\":-334,\"familyName\":\"Helvetiker\",\"lineHeight\":1522,\"underlineThickness\":50}\n","import { FontLoader, TextGeometry, MeshBasicMaterial, Mesh, BoxHelper } from 'three';\nimport React from 'react';\nimport { HELVETIKER } from './helvetiker_regular.typeface.js';\n\nconst fontLoader = new FontLoader();\nconst font = fontLoader.parse(HELVETIKER);\n\nconst defaultFontSize = 16;\nconst defaultColor = '#000000';\n\nexport default {\n name: 'text',\n prototype: 'items',\n\n info: {\n tag: ['text'],\n title: 'Text 3D',\n description: 'Text',\n image: require('./img.png')\n },\n\n properties: {\n text: {\n label: 'text',\n type: 'string',\n defaultValue: 'Custom Text'\n },\n fontSize: {\n label: 'font size',\n type: 'number',\n defaultValue: defaultFontSize\n },\n color: {\n label: 'text color',\n type: 'color',\n defaultValue: defaultColor\n },\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let color = element.properties.get('color') || defaultColor;\n let text = element.properties.get('text') || '';\n let fontSize = element.properties.get('fontSize') || defaultFontSize;\n let textHorizontalPadding = defaultFontSize;\n let width = ( ( text.length - ( text.length / 2 ) ) * fontSize ) + textHorizontalPadding;\n let height = 2 * fontSize;\n\n return (\n \n \n \n {text}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let text = element.properties.get('text') || '';\n let size = element.properties.get('fontSize') || defaultFontSize;\n let textHorizontalPadding = defaultFontSize;\n let width = ( ( text.length - ( text.length / 2 ) ) * size ) + textHorizontalPadding;\n let color = element.properties.get('color') || defaultColor;\n\n let mesh = new Mesh(\n new TextGeometry( text, { size, height: 1, font }),\n new MeshBasicMaterial({color})\n );\n\n if (element.selected) {\n let box = new BoxHelper(mesh, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n mesh.add(box);\n }\n\n mesh.position.y += element.properties.getIn(['altitude','length']);\n mesh.position.x -= ( width / 2 );\n\n return Promise.resolve( mesh );\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/teaching-post/teaching-post.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 140;\nconst DEPTH = 70;\nconst HEIGHT = 100;\n\nconst CHAIR_WIDTH = 55;\nconst CHAIR_DEPTH = 55;\nconst CHAIR_HEIGHT = 50;\n\nconst CHAIR_TRANSLATION = 30;\n\nconst TOTAL_DEPTH = DEPTH + CHAIR_DEPTH / 2 - (CHAIR_TRANSLATION - CHAIR_DEPTH / 2);\n\nexport default {\n name: \"teaching-post\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"Teaching post\",\n description: \"Teaching post\",\n image: require('./teaching-post.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let makeChair = (altitude) => {\n\n let WIDTH = CHAIR_WIDTH;\n let DEPTH = CHAIR_DEPTH;\n let HEIGHT = CHAIR_HEIGHT;\n\n let chair = new Three.Object3D();\n\n let geometry = new Three.CylinderGeometry(0.02, 0.02, 0.5, 32);\n let material = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n\n let p1 = new Three.Mesh(geometry, material);\n p1.rotation.x += Math.PI / 2;\n p1.position.z += 0.5 / 2;\n\n let p2 = new Three.Mesh(geometry, material);\n p2.rotation.x += Math.PI / 2;\n p2.position.z += 0.5 / 2;\n p2.position.y += 0.4;\n\n let p3 = new Three.Mesh(geometry, material);\n p3.rotation.x += Math.PI / 2;\n p3.position.z += 0.5 / 2;\n p3.position.x += 0.4;\n\n let p4 = new Three.Mesh(geometry, material);\n p4.rotation.x += Math.PI / 2;\n p4.position.z += 0.5 / 2;\n p4.position.y += 0.4;\n p4.position.x += 0.4;\n\n let p5 = new Three.Mesh(geometry, material);\n p5.rotation.x += Math.PI / 2;\n p5.position.z += 0.5 * 3 / 2;\n\n let p6 = new Three.Mesh(geometry, material);\n p6.rotation.x += Math.PI / 2;\n p6.position.z += 0.5 * 3 / 2;\n p6.position.x += 0.4;\n\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n let roundedRectShape = new Three.Shape();\n\n let x = 0;\n let y = 0;\n let width = .5;\n let height = .48;\n let radius = 0.05;\n\n roundedRectShape.moveTo(x, y + radius);\n roundedRectShape.lineTo(x, y + height - radius);\n roundedRectShape.quadraticCurveTo(x, y + height, x + radius, y + height);\n roundedRectShape.lineTo(x + width - radius, y + height);\n roundedRectShape.quadraticCurveTo(x + width, y + height, x + width, y + height - radius);\n roundedRectShape.lineTo(x + width, y + radius);\n roundedRectShape.quadraticCurveTo(x + width, y, x + width - radius, y);\n roundedRectShape.lineTo(x + radius, y);\n roundedRectShape.quadraticCurveTo(x, y, x, y + radius);\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry50 = new Three.ExtrudeGeometry(roundedRectShape, extrudeSettings);\n let plane = new Three.Mesh(geometry50, materialTexture);\n\n\n plane.position.x += -0.05;\n plane.position.y += -0.04;\n plane.position.z += 0.5;\n\n let roundedRectShape2 = new Three.Shape();\n\n let x1 = 0;\n let y1 = 0;\n let width1 = .45;\n let height1 = .25;\n let radius1 = 0.05;\n\n roundedRectShape2.moveTo(x1, y1 + radius1);\n roundedRectShape2.lineTo(x1, y1 + height1 - radius1);\n roundedRectShape2.quadraticCurveTo(x1, y1 + height1, x1 + radius1, y1 + height1);\n roundedRectShape2.lineTo(x1 + width1 - radius1, y1 + height1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1);\n roundedRectShape2.lineTo(x1 + width1, y1 + radius1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1, x1 + width1 - radius1, y1);\n roundedRectShape2.lineTo(x1 + radius1, y1);\n roundedRectShape2.quadraticCurveTo(x1, y1, x1, y1 + radius1);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry22 = new Three.ExtrudeGeometry(roundedRectShape2, extrudeSettings2);\n let back = new Three.Mesh(geometry22, materialTexture);\n\n\n //geometry = new Three.BoxGeometry( 0.38, 0.02, 0.15);\n //let back = new Three.Mesh( geometry, material );\n back.rotation.x += Math.PI / 2;\n back.position.z += 0.5 * 12 / 8;\n back.position.y += 0.03;\n back.position.x += -0.025;\n\n chair.add(back);\n chair.add(plane);\n chair.add(p1);\n chair.add(p2);\n chair.add(p3);\n chair.add(p4);\n chair.add(p5);\n chair.add(p6);\n\n\n let aa = new Three.Box3().setFromObject(chair);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n chair.rotation.x += -Math.PI / 2;\n chair.position.y += altitude;\n chair.position.x += -WIDTH / 3.5;\n chair.position.z += DEPTH / 4;\n chair.scale.set(1.5 * WIDTH / deltaZ, DEPTH / 1.5 / deltaX, HEIGHT / deltaY);\n\n return chair;\n };\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n let green = new Three.MeshBasicMaterial({color: 0x669966});\n\n\n let cattedra = new Three.Object3D();\n\n let cattedraX = 1.9;\n let cattedraY = 1.5;\n let cattedraZ = 1.2;\n\n\n let p1 = new Three.Mesh(new Three.BoxGeometry(0.06, 0.06, cattedraZ), materialTexture);\n p1.position.z += cattedraZ / 2;\n p1.position.x += 0.05;\n p1.position.y += 0.05;\n\n let p2 = new Three.Mesh(new Three.BoxGeometry(0.06, 0.06, cattedraZ), materialTexture);\n p2.position.z += cattedraZ / 2;\n p2.position.x += cattedraX - 0.05;\n p2.position.y += 0.05;\n\n let p3 = new Three.Mesh(new Three.BoxGeometry(0.06, 0.06, cattedraZ), materialTexture);\n p3.position.z += cattedraZ / 2;\n p3.position.x += cattedraX - 0.05;\n p3.position.y += cattedraY - 0.05;\n\n let p4 = new Three.Mesh(new Three.BoxGeometry(0.06, 0.06, cattedraZ), materialTexture);\n p4.position.z += cattedraZ / 2;\n p4.position.x += 0.05;\n p4.position.y += cattedraY - 0.05;\n\n let boxMaterials = [materialTexture, materialTexture,materialTexture,materialTexture, green, materialTexture];\n\n let plane = new Three.Mesh(new Three.BoxGeometry(cattedraX, cattedraY, 0.04), boxMaterials);\n plane.position.x += cattedraX / 2;\n plane.position.y += cattedraY / 2;\n plane.position.z += cattedraZ;\n\n\n let backPlane = new Three.Mesh(new Three.BoxGeometry(cattedraX, (cattedraY / 2) - 0.1, 0.04), materialTexture);\n backPlane.rotation.x += Math.PI / 2;\n backPlane.position.x += cattedraX / 2;\n backPlane.position.z += cattedraZ - cattedraY / 4;\n\n\n let downPlane = new Three.Mesh(new Three.BoxGeometry(cattedraX, (cattedraY / 20), 0.04), materialTexture);\n downPlane.position.x += cattedraX / 2;\n downPlane.position.y += cattedraY / 2 + 0.4;\n downPlane.position.z += cattedraZ - 0.6;\n\n\n let leftPlane = new Three.Mesh(new Three.BoxGeometry(cattedraY, (cattedraY / 2) - 0.1, 0.04), materialTexture);\n leftPlane.rotation.x += Math.PI / 2;\n leftPlane.rotation.y += Math.PI / 2;\n leftPlane.position.x += cattedraX;\n leftPlane.position.y += cattedraY / 2;\n leftPlane.position.z += cattedraZ - cattedraY / 4;\n\n\n let rightPlane = leftPlane.clone();\n rightPlane.position.x -= cattedraX;\n\n\n let drawer = new Three.Mesh(new Three.BoxGeometry(cattedraX / 4, cattedraY, 0.4), materialTexture);\n drawer.position.x += cattedraX / 4;\n drawer.position.y += cattedraY / 2;\n drawer.position.z += cattedraZ / 1.55;\n\n\n let geometry = new Three.BoxGeometry(0.1, 0.04, 0.02);\n let handle = new Three.Mesh(geometry, materialTexture);\n handle.position.y += cattedraY / 2 + 0.02;\n\n let geometry2 = new Three.BoxGeometry(0.5, 0.04, 0.3);\n let p = new Three.Mesh(geometry2, green);\n p.position.y += cattedraY / 2;\n\n\n drawer.add(handle);\n drawer.add(p);\n drawer.scale.set(1.5, 1, .7);\n\n let drawer2 = drawer.clone();\n drawer2.position.z += (cattedraZ / 4.5);\n\n\n cattedra.add(p1);\n cattedra.add(p2);\n cattedra.add(p3);\n cattedra.add(p4);\n cattedra.add(plane);\n cattedra.add(drawer);\n cattedra.add(drawer2);\n cattedra.add(backPlane);\n cattedra.add(leftPlane);\n cattedra.add(rightPlane);\n cattedra.add(downPlane);\n\n\n let valueObject = new Three.Box3().setFromObject(cattedra);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n cattedra.rotation.x += -Math.PI / 2;\n cattedra.position.y += newAltitude;\n cattedra.position.x += -WIDTH / 2;\n cattedra.position.z += DEPTH / 1.5;\n cattedra.scale.set(WIDTH / deltaX, DEPTH / deltaZ, HEIGHT / deltaY);\n\n let chair = makeChair(newAltitude);\n chair.rotation.z += Math.PI;\n chair.position.z -= 70;\n chair.position.x += 60;\n\n let deskAndChair = new Three.Object3D();\n deskAndChair.add(cattedra);\n deskAndChair.add(chair);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(deskAndChair, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n deskAndChair.add(bbox);\n }\n\n deskAndChair.rotation.y += Math.PI;\n\n deskAndChair.position.z -= (CHAIR_DEPTH / 2 - (CHAIR_TRANSLATION - CHAIR_DEPTH / 2)) / 2;\n\n let boundingBoxDeskAndChair = new Three.Box3().setFromObject(deskAndChair);\n\n let deltaZDeskAndChair = Math.abs(boundingBoxDeskAndChair.max.z - boundingBoxDeskAndChair.min.z);\n\n deskAndChair.scale.set(1, 1, TOTAL_DEPTH / deltaZDeskAndChair); //Fix Depth problem with the chair\n\n\n return Promise.resolve(deskAndChair);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/table/table.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst RADIUS = 3;\n\nconst PlaneMaterial = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\nconst material_legs = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth) {\n\n let table = new Three.Mesh();\n\n let PlaneGeometry = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane = new Three.Mesh( PlaneGeometry, PlaneMaterial );\n plane.position.y = newHeight;\n table.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( RADIUS, RADIUS, newHeight, 32, 32 );\n\n let leg1 = new Three.Mesh( geometry_legs, material_legs );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n table.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, material_legs );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n table.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, material_legs );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n table.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, material_legs );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n table.add(leg4);\n\n return table;\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth) {\n\n let table = new Three.Mesh();\n\n let PlaneGeometry = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane = new Three.Mesh( PlaneGeometry, PlaneMaterial );\n plane.position.y = newHeight;\n table.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( RADIUS, RADIUS, newHeight, 8, 8 );\n\n let leg1 = new Three.Mesh( geometry_legs, material_legs );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n table.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, material_legs );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n table.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, material_legs );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n table.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, material_legs );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n table.add(leg4);\n\n return table;\n}\n\nexport default {\n name: \"table\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'wood'],\n title: \"table\",\n description: \"table\",\n image: require('./table.png')\n },\n\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 90,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 50,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 80,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let newHeight = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n /********** lod max ************/\n\n let tableMaxLOD = new Three.Object3D();\n let objectMaxLod = makeObjectMaxLOD(newWidth,newHeight,newDepth);\n tableMaxLOD.add(objectMaxLod.clone());\n tableMaxLOD.position.y += newHeight/20 + newAltitude;\n\n /********** lod min ************/\n\n let tableMinLOD = new Three.Object3D();\n let objectMinLod = makeObjectMinLOD(newWidth,newHeight,newDepth);\n tableMinLOD.add(objectMinLod.clone());\n tableMinLOD.position.y += newHeight/20 + newAltitude;\n\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(tableMaxLOD, 200);\n lod.addLevel(tableMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/sofa/sofa.png\";","module.exports = __webpack_public_path__ + \"catalog/items/sofa/texture.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/sofa/sofa.obj\";","module.exports = __webpack_public_path__ + \"catalog/items/sofa/sofa.mtl\";","import {BoxHelper, Box3, ObjectLoader} from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\nimport path from 'path';\nimport convert from 'convert-units';\n\nimport React from 'react';\n\nconst mtl = require('./sofa.mtl');\nconst obj = require('./sofa.obj');\nconst img = require('./texture.jpg');\n\nconst width = {length: 180, unit: 'cm'};\nconst depth = {length: 60, unit: 'cm'};\nconst height = {length: 70, unit: 'cm'};\n\nlet cachedJSONSofa = null;\n\nexport default {\n name: 'sofa',\n prototype: 'items',\n\n info: {\n title: 'sofa',\n tag: ['furnishings', 'leather'],\n description: 'Leather sofa',\n image: require('./sofa.png')\n },\n\n properties: {},\n\n render2D: function (element, layer, scene) {\n let angle = element.rotation + 90;\n let textRotation = Math.sin(angle * Math.PI / 180) < 0 ? 180 : 0;\n\n let style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n\n let onLoadItem = (object) => {\n let newWidth = convert(width.length).from(width.unit).to(scene.unit);\n let newHeight = convert(height.length).from(height.unit).to(scene.unit);\n let newDepth = convert(depth.length).from(depth.unit).to(scene.unit);\n\n object.scale.set(newWidth / width.length, newHeight / height.length, newDepth / depth.length);\n\n let box = new BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n box.visible = element.selected;\n object.add(box);\n\n // Normalize the origin of this item\n let boundingBox = new Box3().setFromObject(object);\n\n let center = [\n (boundingBox.max.x - boundingBox.min.x) / 2 + boundingBox.min.x,\n (boundingBox.max.y - boundingBox.min.y) / 2 + boundingBox.min.y,\n (boundingBox.max.z - boundingBox.min.z) / 2 + boundingBox.min.z];\n\n object.position.x -= center[0];\n object.position.y -= center[1] - (boundingBox.max.y - boundingBox.min.y) / 2;\n object.position.z -= center[2];\n\n return object;\n };\n\n if (cachedJSONSofa) {\n let loader = new ObjectLoader();\n let object = loader.parse(cachedJSONSofa);\n return Promise.resolve(onLoadItem(object));\n }\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cachedJSONSofa = object.toJSON();\n let loader = new ObjectLoader();\n return onLoadItem(loader.parse(cachedJSONSofa))\n });\n },\n\n updateRender3D: ( element, layer, scene, mesh, oldElement, differences, selfDestroy, selfBuild ) => {\n\n let noPerf = () => { selfDestroy(); return selfBuild(); };\n\n if( differences.indexOf('selected') !== -1 )\n {\n mesh.traverse(( child ) => {\n if ( child instanceof BoxHelper ) {\n child.visible = element.selected;\n }\n });\n\n return Promise.resolve(mesh);\n }\n\n if( differences.indexOf('rotation') !== -1 ) {\n mesh.rotation.y = element.rotation * Math.PI / 180;\n return Promise.resolve(mesh);\n }\n\n return noPerf();\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/smoke-detector/smokeDetector.png\";","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\nimport { FaAngleDown, FaAngleUp } from 'react-icons/lib/fa';\n\nconst STYLE = {\n borderTop: '1px solid #222',\n borderBottom: '1px solid #48494E',\n userSelect: 'none'\n};\nconst STYLE_TITLE = {\n fontSize: '11px',\n color: SharedStyle.PRIMARY_COLOR.text_alt,\n padding: '5px 15px 8px 15px',\n backgroundColor: SharedStyle.PRIMARY_COLOR.alt,\n textShadow: '-1px -1px 2px rgba(0, 0, 0, 1)',\n boxShadow: 'inset 0px -3px 19px 0px rgba(0,0,0,0.5)',\n margin: '0px',\n cursor: 'pointer'\n};\nconst STYLE_CONTENT = {\n fontSize: '11px',\n color: SharedStyle.PRIMARY_COLOR.text_alt,\n border: '1px solid #222',\n padding: '0px',\n backgroundColor: SharedStyle.PRIMARY_COLOR.alt,\n textShadow: '-1px -1px 2px rgba(0, 0, 0, 1)'\n};\nconst STYLE_ARROW = {\n float: 'right'\n};\n\nexport default class Panel extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n opened: props.hasOwnProperty('opened') ? props.opened : false,\n hover: false\n };\n }\n\n toggleOpen() {\n this.setState({opened: !this.state.opened});\n }\n\n toggleHover() {\n this.setState({hover: !this.state.hover});\n }\n\n render() {\n\n let { name, headComponents, children } = this.props;\n let { opened, hover } = this.state;\n\n return (\n
\n this.toggleHover()}\n onMouseLeave={() => this.toggleHover()}\n onClick={() => this.toggleOpen()}\n >\n {name}\n {headComponents}\n {\n opened ?\n :\n \n }\n \n\n
\n {children}\n
\n
\n )\n }\n}\n\nPanel.propTypes = {\n name: PropTypes.string.isRequired,\n headComponents: PropTypes.array,\n opened: PropTypes.bool\n};\n","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH=10;\nconst DEPTH=10;\nconst HEIGHT=5;\n\nconst red = new Three.MeshLambertMaterial( { color: 0xff0000 } );\nconst grey = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\nconst black = new Three.MeshLambertMaterial({color:0x000000});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let detector = new Three.Mesh();\n\n let BaseGeometry1 = new Three.CylinderGeometry( .55,.55,.25, 32, 32 );\n let base_p1 = new Three.Mesh( BaseGeometry1, grey );\n detector.add(base_p1);\n\n let BaseGeometry2 = new Three.CylinderGeometry( .65,.65,.1, 32, 32 );\n let base_p2 = new Three.Mesh( BaseGeometry2, grey );\n base_p2.position.y+=.125;\n base_p1.add(base_p2);\n\n let BaseGeometry3 = new Three.CylinderGeometry( .55,.65,.1, 32, 32 );\n let base_p3 = new Three.Mesh( BaseGeometry3, grey );\n base_p3.position.y+=.22;\n base_p1.add(base_p3);\n\n let BaseGeometry4 = new Three.CylinderGeometry( .65,.65,.1, 32, 32 );\n let base_p4 = new Three.Mesh( BaseGeometry4, grey );\n base_p4.position.y+= -.125;\n base_p1.add(base_p4);\n\n let geometrySphereUp = new Three.SphereGeometry( 0.025, 32, 32, 32 );\n let led = new Three.Mesh( geometrySphereUp, red );\n led.position.y+=.28;\n led.position.x+=.4;\n led.position.z+=-.25;\n led.scale.set(1,1.3,1);\n base_p1.add(led);\n\n\n for (let i = 0; i < Math.PI*4; i+=4*Math.PI/3) {\n\n let geometry = new Three.TorusGeometry( .45, .025, 32, 100, Math.PI/3 );\n let torus = new Three.Mesh( geometry, black );\n torus.position.y+=.028;\n torus.position.x+=.01;\n torus.rotation.z+=i;\n torus.rotation.x+=Math.PI/2;\n base_p3.add( torus );\n\n let geometry2 = new Three.TorusGeometry( .35, .025, 32, 100, Math.PI/3 );\n let torus2 = new Three.Mesh( geometry2, black );\n torus2.position.y+=.028;\n torus2.position.x+=.01;\n torus2.rotation.x+=Math.PI/2;\n torus2.rotation.z+=i;\n base_p3.add(torus2);\n\n let geometry3 = new Three.TorusGeometry( .25, .025, 32, 100, Math.PI/3 );\n let torus3 = new Three.Mesh( geometry3, black );\n torus3.position.y+=.028;\n torus3.position.x+=.01;\n torus3.rotation.x+=Math.PI/2;\n torus3.rotation.z+=i;\n base_p3.add(torus3);\n }\n\n return detector\n}\n\nfunction makeObjectMinLOD() {\n\n let detector = new Three.Mesh();\n\n let BaseGeometry1 = new Three.CylinderGeometry( .55,.55,.25, 8, 8 );\n let base_p1 = new Three.Mesh( BaseGeometry1, grey );\n detector.add(base_p1);\n\n let BaseGeometry2 = new Three.CylinderGeometry( .65,.65,.1, 8, 8 );\n let base_p2 = new Three.Mesh( BaseGeometry2, grey );\n base_p2.position.y+=.125;\n base_p1.add(base_p2);\n\n let BaseGeometry3 = new Three.CylinderGeometry( .55,.65,.1, 8, 8 );\n let base_p3 = new Three.Mesh( BaseGeometry3, grey );\n base_p3.position.y+=.22;\n base_p1.add(base_p3);\n\n let BaseGeometry4 = new Three.CylinderGeometry( .65,.65,.1, 8, 8 );\n let base_p4 = new Three.Mesh( BaseGeometry4, grey );\n base_p4.position.y+= -.125;\n base_p1.add(base_p4);\n\n return detector\n}\n\n\nexport default {\n name: \"smoke-detector\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"smoke detector\",\n description: \"smoke detector\",\n image: require('./smokeDetector.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 250,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************* lod max ****************/\n\n let detectorMaxLOD = new Three.Object3D();\n detectorMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(detectorMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n detectorMaxLOD.position.z+= -DEPTH/3;\n detectorMaxLOD.position.y+= -HEIGHT/1.3 + newAltitude;\n detectorMaxLOD.rotation.x+= -Math.PI/2;\n detectorMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /************* lod min ****************/\n\n let detectorMinLOD = new Three.Object3D();\n detectorMinLOD.add(objectMinLOD.clone());\n detectorMinLOD.position.z+= -DEPTH/3;\n detectorMinLOD.position.y+= -HEIGHT/1.3 + newAltitude;\n detectorMinLOD.rotation.x+= -Math.PI/2;\n detectorMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(detectorMaxLOD, 200);\n lod.addLevel(detectorMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/sink/sink.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst HEIGHT = 60;\n\nconst steel = new Three.MeshLambertMaterial({color:0xffffff});\nconst grey = new Three.MeshLambertMaterial({color:0xAAAAAA});\nconst yellow = new Three.MeshLambertMaterial({color: 0xFF9933});\nconst blue = new Three.MeshLambertMaterial({color:0x0000ff});\n\nfunction makeObjectMaxLOD(newWidth,newDepth) {\n\n let sink = new Three.Mesh();\n\n let rectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=newWidth;\n let height=newDepth;\n let newHeight= HEIGHT;\n let radius=newDepth/10;\n\n rectShape.moveTo( x, y + radius );\n rectShape.lineTo( x, y + height - radius );\n rectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n rectShape.lineTo( x + width - radius, y + height) ;\n rectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n rectShape.lineTo( x + width, y + radius );\n rectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n rectShape.lineTo( x + radius, y );\n rectShape.quadraticCurveTo( x, y, x, y + radius );\n\n\n let extrudeSettings = {\n steps: 2,\n depth: newHeight/40,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n let geometry = new Three.ExtrudeGeometry( rectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, steel ) ;\n mesh.rotation.x+=Math.PI/2;\n mesh.position.y=newHeight/4;\n sink.add(mesh);\n\n let rectShape2 = new Three.Shape();\n let hole = new Three.Path();\n\n rectShape2.moveTo( x, y + radius );\n rectShape2.lineTo( x, y + height - radius );\n rectShape2.quadraticCurveTo( x, y + height, x + radius, y + height );\n rectShape2.lineTo( x + width - radius, y + height) ;\n rectShape2.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n rectShape2.lineTo( x + width, y + radius );\n rectShape2.quadraticCurveTo( x + width, y, x + width - radius, y );\n rectShape2.lineTo( x + radius, y );\n rectShape2.quadraticCurveTo( x, y, x, y + radius );\n\n hole.moveTo(newWidth/20, newDepth/20);\n hole.lineTo(newWidth-newWidth/20, newDepth/20);\n hole.lineTo(newWidth-newWidth/20, newDepth-newDepth/20);\n hole.lineTo(newWidth/20, newDepth-newDepth/20);\n rectShape2.holes.push(hole);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: newHeight/4,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n let geometry2 = new Three.ExtrudeGeometry( rectShape2, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, steel ) ;\n mesh2.rotation.x+=Math.PI/2;\n mesh2.position.y+=newHeight/2;\n sink.add(mesh2);\n\n //pipe\n let pipe_p1 = new Three.Mesh(new Three.TorusGeometry( 2.5, 2.5, 16, 16, Math.PI/2 ), yellow);\n pipe_p1.position.set(newWidth/2,newHeight/5.5,newDepth/2-2.5);\n pipe_p1.rotation.z=-Math.PI/2;\n pipe_p1.rotation.y-=Math.PI/2;\n sink.add(pipe_p1);\n\n let cylinderGeometry1 = new Three.CylinderGeometry(2.25,2.25,newDepth/2,80);\n let pipe_p2 = new Three.Mesh(cylinderGeometry1,yellow);\n pipe_p2.rotation.z=Math.PI/2;\n pipe_p2.rotation.y-=Math.PI/2;\n pipe_p2.position.set(newWidth/2,newHeight/7.5,newDepth/4.5);\n sink.add(pipe_p2);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(2.5,2.5,newDepth/12,80);\n let pipe_p3 = new Three.Mesh(cylinderGeometry2,yellow);\n pipe_p3.rotation.y-=Math.PI/2;\n pipe_p3.position.set(newWidth/2,newHeight/4.85,newDepth/2);\n sink.add(pipe_p3);\n\n //tap\n let cylinderGeometry66 = new Three.CylinderGeometry(1.25,1.25,8,12);\n let tap_p1 = new Three.Mesh(cylinderGeometry66,grey);\n tap_p1.position.set(newWidth/2,newHeight/1.45,3);\n tap_p1.rotation.z-=Math.PI/2;\n tap_p1.rotation.y+=Math.PI/2;\n sink.add(tap_p1);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(2.7,3,5,12);\n let tap_p2 = new Three.Mesh(cylinderGeometry5,grey);\n tap_p2.position.set(newWidth/2, newHeight/1.45,10);\n tap_p2.rotation.z-=Math.PI/2;\n tap_p2.rotation.y+=Math.PI/2;\n sink.add(tap_p2);\n\n let cylinderGeometry6 = new Three.CylinderGeometry(2,2,5.5,80);\n let tap_p3 = new Three.Mesh(cylinderGeometry6,blue);\n tap_p3.position.set(newWidth/2, newHeight/1.45,10);\n tap_p3.rotation.z-=Math.PI/2;\n tap_p3.rotation.y+=Math.PI/2;\n sink.add(tap_p3);\n\n let curve = new Three.CatmullRomCurve3( [\n new Three.Vector3( -12, -10, 0 ),\n new Three.Vector3( -12, -5, 0 ),\n new Three.Vector3( 0, 0, 0 ),\n new Three.Vector3( 6, 5, 0 ),\n new Three.Vector3( 6, 10, 0 )\n ] );\n\n let geometry7 = new Three.TubeGeometry(curve, 32, 1, 16, false);\n let mesh3 = new Three.Mesh(geometry7, grey);\n mesh3.position.set(newWidth/2, newHeight/1.7,11);\n mesh3.rotation.y+=Math.PI/2;\n mesh3.rotation.z-=Math.PI/8;\n sink.add(mesh3);\n\n //hole\n let cylinderGeometry7 = new Three.CylinderGeometry(newDepth/20,newDepth/20,newHeight/100,80);\n let blackMaterial = new Three.MeshLambertMaterial({color: 0x000000});\n let hole_p1 = new Three.Mesh(cylinderGeometry7,blackMaterial);\n hole_p1.position.set(newWidth/2,newHeight/4,newDepth/2);\n sink.add(hole_p1);\n\n let cylinderGeometry8 = new Three.CylinderGeometry(newDepth/10,newDepth/10,newHeight/200,80,80,false,0,Math.PI);\n let whiteMaterial = new Three.MeshLambertMaterial({color: 0xffffff});\n let hole_p2 = new Three.Mesh(cylinderGeometry8,whiteMaterial);\n hole_p2.scale.set(.25,.5,.5);\n hole_p2.rotation.z=Math.PI/2;\n hole_p2.position.set(newWidth/2,newHeight/4,newDepth/2);\n sink.add(hole_p2);\n\n let hole_p3 = new Three.Mesh(cylinderGeometry8,whiteMaterial);\n hole_p3.rotation.z=Math.PI/2;\n hole_p3.rotation.y=Math.PI/2;\n hole_p3.scale.set(.25,.5,.5);\n hole_p3.position.set(newWidth/2,newHeight/4,newDepth/2);\n sink.add(hole_p3);\n\n let hole_p4 = new Three.Mesh(cylinderGeometry8,whiteMaterial);\n hole_p4.rotation.z=Math.PI/2;\n hole_p4.rotation.y=Math.PI/4;\n hole_p4.position.set(newWidth/2,newHeight/4,newDepth/2);\n hole_p4.scale.set(.25,.5,.5);\n sink.add(hole_p4);\n\n let hole_p5 = new Three.Mesh(cylinderGeometry8,whiteMaterial);\n hole_p5.rotation.z=Math.PI/2;\n hole_p5.rotation.y=-Math.PI/4;\n hole_p5.position.set(newWidth/2,newHeight/4,newDepth/2);\n hole_p5.scale.set(.25,.5,.5);\n sink.add(hole_p5);\n\n return sink\n}\n\nfunction makeObjectMinLOD(newWidth,newDepth) {\n\n let sink = new Three.Mesh();\n\n let rectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=newWidth;\n let height=newDepth;\n let newHeight= HEIGHT;\n let radius=newDepth/10;\n\n rectShape.moveTo( x, y + radius );\n rectShape.lineTo( x, y + height - radius );\n rectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n rectShape.lineTo( x + width - radius, y + height) ;\n rectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n rectShape.lineTo( x + width, y + radius );\n rectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n rectShape.lineTo( x + radius, y );\n rectShape.quadraticCurveTo( x, y, x, y + radius );\n\n\n let extrudeSettings = {\n steps: 2,\n depth: newHeight/40,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n let geometry = new Three.ExtrudeGeometry( rectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, steel ) ;\n mesh.rotation.x+=Math.PI/2;\n mesh.position.y=newHeight/4;\n sink.add(mesh);\n\n let rectShape2 = new Three.Shape();\n let hole = new Three.Path();\n\n rectShape2.moveTo( x, y + radius );\n rectShape2.lineTo( x, y + height - radius );\n rectShape2.quadraticCurveTo( x, y + height, x + radius, y + height );\n rectShape2.lineTo( x + width - radius, y + height) ;\n rectShape2.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n rectShape2.lineTo( x + width, y + radius );\n rectShape2.quadraticCurveTo( x + width, y, x + width - radius, y );\n rectShape2.lineTo( x + radius, y );\n rectShape2.quadraticCurveTo( x, y, x, y + radius );\n\n hole.moveTo(newWidth/20, newDepth/20);\n hole.lineTo(newWidth-newWidth/20, newDepth/20);\n hole.lineTo(newWidth-newWidth/20, newDepth-newDepth/20);\n hole.lineTo(newWidth/20, newDepth-newDepth/20);\n rectShape2.holes.push(hole);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: newHeight/4,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n let geometry2 = new Three.ExtrudeGeometry( rectShape2, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, steel ) ;\n mesh2.rotation.x+=Math.PI/2;\n mesh2.position.y+=newHeight/2;\n sink.add(mesh2);\n\n //tap\n let cylinderGeometry66 = new Three.CylinderGeometry(1.25,1.25,8,12);\n let tap_p1 = new Three.Mesh(cylinderGeometry66,grey);\n tap_p1.position.set(newWidth/2,newHeight/1.45,3);\n tap_p1.rotation.z-=Math.PI/2;\n tap_p1.rotation.y+=Math.PI/2;\n sink.add(tap_p1);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(2.7,3,5,12);\n let tap_p2 = new Three.Mesh(cylinderGeometry5,grey);\n tap_p2.position.set(newWidth/2, newHeight/1.45,10);\n tap_p2.rotation.z-=Math.PI/2;\n tap_p2.rotation.y+=Math.PI/2;\n sink.add(tap_p2);\n\n let cylinderGeometry6 = new Three.CylinderGeometry(2,2,5.5,80);\n let tap_p3 = new Three.Mesh(cylinderGeometry6,blue);\n tap_p3.position.set(newWidth/2, newHeight/1.45,10);\n tap_p3.rotation.z-=Math.PI/2;\n tap_p3.rotation.y+=Math.PI/2;\n sink.add(tap_p3);\n\n let curve = new Three.CatmullRomCurve3( [\n new Three.Vector3( -12, -10, 0 ),\n new Three.Vector3( -12, -5, 0 ),\n new Three.Vector3( 0, 0, 0 ),\n new Three.Vector3( 6, 5, 0 ),\n new Three.Vector3( 6, 10, 0 )\n ] );\n\n let geometry7 = new Three.TubeGeometry(curve, 32, 1, 16, false);\n let mesh3 = new Three.Mesh(geometry7, grey);\n mesh3.position.set(newWidth/2, newHeight/1.7,11);\n mesh3.rotation.y+=Math.PI/2;\n mesh3.rotation.z-=Math.PI/8;\n sink.add(mesh3);\n\n return sink\n}\n\nexport default {\n name: \"sink\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"sink\",\n description: \"sink\",\n image: require('./sink.png')\n },\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 50,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 40,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 80,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let newHeight = HEIGHT;\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** lod max ********************/\n\n let sinkMaxLOD=new Three.Object3D();\n sinkMaxLOD.add(makeObjectMaxLOD(newWidth,newDepth).clone());\n\n let value = new Three.Box3().setFromObject(sinkMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n sinkMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n sinkMaxLOD.position.y+= -newHeight/5 + newAltitude;\n sinkMaxLOD.position.z-= newDepth/4;\n sinkMaxLOD.position.x-= newWidth/2;\n\n /**************** lod min ********************/\n\n let sinkMinLOD=new Three.Object3D();\n sinkMinLOD.add(makeObjectMinLOD(newWidth,newDepth).clone());\n sinkMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n sinkMinLOD.position.y+= -newHeight/5 + newAltitude;\n sinkMinLOD.position.z-= newDepth/4;\n sinkMinLOD.position.x-= newWidth/2;\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(sinkMaxLOD, 200);\n lod.addLevel(sinkMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n\n }\n\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/school-desk/school-desk.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 70;\nconst DEPTH = 50;\nconst HEIGHT = 90;\n\nconst CHAIR_WIDTH = 55;\nconst CHAIR_DEPTH = 55;\nconst CHAIR_HEIGHT = 50;\n\nconst CHAIR_TRANSLATION = 30;\n\nconst TOTAL_DEPTH = DEPTH + CHAIR_DEPTH / 2 - (CHAIR_TRANSLATION - CHAIR_DEPTH / 2);\n\nexport default {\n name: \"school-desk\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"School desk\",\n description: \"School desk\",\n image: require('./school-desk.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let makeChair = (altitude) => {\n\n let WIDTH = CHAIR_WIDTH;\n let DEPTH = CHAIR_DEPTH;\n let HEIGHT = CHAIR_HEIGHT;\n\n let chair = new Three.Object3D();\n\n let geometry = new Three.CylinderGeometry(0.02, 0.02, 0.5, 32);\n let material = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n\n let p1 = new Three.Mesh(geometry, material);\n p1.rotation.x += Math.PI / 2;\n p1.position.z += 0.5 / 2;\n\n let p2 = new Three.Mesh(geometry, material);\n p2.rotation.x += Math.PI / 2;\n p2.position.z += 0.5 / 2;\n p2.position.y += 0.4;\n\n let p3 = new Three.Mesh(geometry, material);\n p3.rotation.x += Math.PI / 2;\n p3.position.z += 0.5 / 2;\n p3.position.x += 0.4;\n\n let p4 = new Three.Mesh(geometry, material);\n p4.rotation.x += Math.PI / 2;\n p4.position.z += 0.5 / 2;\n p4.position.y += 0.4;\n p4.position.x += 0.4;\n\n let p5 = new Three.Mesh(geometry, material);\n p5.rotation.x += Math.PI / 2;\n p5.position.z += 0.5 * 3 / 2;\n\n let p6 = new Three.Mesh(geometry, material);\n p6.rotation.x += Math.PI / 2;\n p6.position.z += 0.5 * 3 / 2;\n p6.position.x += 0.4;\n\n // material = new Three.MeshLambertMaterial({color: 0x9b8c75});\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n\n let roundedRectShape = new Three.Shape();\n\n let x = 0;\n let y = 0;\n let width = .5;\n let height = .48;\n let radius = 0.05;\n\n roundedRectShape.moveTo(x, y + radius);\n roundedRectShape.lineTo(x, y + height - radius);\n roundedRectShape.quadraticCurveTo(x, y + height, x + radius, y + height);\n roundedRectShape.lineTo(x + width - radius, y + height);\n roundedRectShape.quadraticCurveTo(x + width, y + height, x + width, y + height - radius);\n roundedRectShape.lineTo(x + width, y + radius);\n roundedRectShape.quadraticCurveTo(x + width, y, x + width - radius, y);\n roundedRectShape.lineTo(x + radius, y);\n roundedRectShape.quadraticCurveTo(x, y, x, y + radius);\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry50 = new Three.ExtrudeGeometry(roundedRectShape, extrudeSettings);\n let plane = new Three.Mesh(geometry50, materialTexture);\n\n\n plane.position.x += -0.05;\n plane.position.y += -0.04;\n plane.position.z += 0.5;\n\n let roundedRectShape2 = new Three.Shape();\n\n let x1 = 0;\n let y1 = 0;\n let width1 = .45;\n let height1 = .25;\n let radius1 = 0.05;\n\n roundedRectShape2.moveTo(x1, y1 + radius1);\n roundedRectShape2.lineTo(x1, y1 + height1 - radius1);\n roundedRectShape2.quadraticCurveTo(x1, y1 + height1, x1 + radius1, y1 + height1);\n roundedRectShape2.lineTo(x1 + width1 - radius1, y1 + height1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1);\n roundedRectShape2.lineTo(x1 + width1, y1 + radius1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1, x1 + width1 - radius1, y1);\n roundedRectShape2.lineTo(x1 + radius1, y1);\n roundedRectShape2.quadraticCurveTo(x1, y1, x1, y1 + radius1);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry22 = new Three.ExtrudeGeometry(roundedRectShape2, extrudeSettings2);\n let back = new Three.Mesh(geometry22, materialTexture);\n\n\n //geometry = new Three.BoxGeometry( 0.38, 0.02, 0.15);\n //let back = new Three.Mesh( geometry, material );\n back.rotation.x += Math.PI / 2;\n back.position.z += 0.5 * 12 / 8;\n back.position.y += 0.03;\n back.position.x += -0.025;\n\n chair.add(back);\n chair.add(plane);\n chair.add(p1);\n chair.add(p2);\n chair.add(p3);\n chair.add(p4);\n chair.add(p5);\n chair.add(p6);\n\n\n let aa = new Three.Box3().setFromObject(chair);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n // if (element.selected) {\n // let bbox = new Three.BoxHelper(chair, 0x99c3fb);\n // bbox.material.linewidth = 5;\n // bbox.renderOrder = 1000;\n // bbox.material.depthTest = false;\n // chair.add(bbox);\n // }\n\n chair.rotation.x += -Math.PI / 2;\n chair.position.y += altitude;\n chair.position.x += -WIDTH / 3.5;\n chair.position.z += DEPTH / 4;\n chair.scale.set(1.5 * WIDTH / deltaZ, DEPTH / 1.5 / deltaX, HEIGHT / deltaY);\n\n return chair;\n };\n\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let brown = new Three.MeshLambertMaterial({color: 0x9b8c75});\n let grey = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n let black = new Three.MeshLambertMaterial({color: 0x000000});\n\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let raggio = .03;\n\n let banco = new Three.Object3D();\n\n let geometry = new Three.BoxGeometry(newWidth + newWidth / 6, newHeight / 20, newDepth + newDepth / 4);\n\n let boxMaterials = [\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({color: 0x669966}), //top\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture})\n ];\n\n let tMaterial = new Three.MultiMaterial(boxMaterials);\n\n let plane = new Three.Mesh(geometry, tMaterial);\n plane.position.y = newHeight;\n banco.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry(raggio, raggio, newHeight, 32);\n\n let geometry2 = new Three.BoxGeometry(newWidth, newHeight / 20, newDepth);\n let plane2 = new Three.Mesh(geometry2, materialTexture);\n plane2.position.y = newHeight / 2 + newHeight / 4;\n banco.add(plane2);\n\n let geometry3 = new Three.BoxGeometry(newWidth, newHeight / 10, newDepth / 20);\n let plane3 = new Three.Mesh(geometry3, materialTexture);\n plane3.position.y = newHeight / 2 + newHeight / 4 + newHeight / 16;\n plane3.position.z = newDepth / 3 + newDepth / 5;\n banco.add(plane3);\n\n let p1 = new Three.Mesh(geometry_legs, grey);\n p1.position.x = newWidth / 2;\n p1.position.z = newDepth / 2;\n p1.position.y = newHeight / 2;\n banco.add(p1);\n\n let p2 = new Three.Mesh(geometry_legs, grey);\n p2.position.x = newWidth / 2;\n p2.position.z = -newDepth / 2;\n p2.position.y = newHeight / 2;\n banco.add(p2);\n\n let p3 = new Three.Mesh(geometry_legs, grey);\n p3.position.x = -newWidth / 2;\n p3.position.z = newDepth / 2;\n p3.position.y = newHeight / 2;\n banco.add(p3);\n\n let p4 = new Three.Mesh(geometry_legs, grey);\n p4.position.x = -newWidth / 2;\n p4.position.z = -newDepth / 2;\n p4.position.y = newHeight / 2;\n banco.add(p4);\n\n\n let valueObject = new Three.Box3().setFromObject(banco);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n\n // if (element.selected) {\n // let bbox = new Three.BoxHelper(banco, 0x99c3fb);\n // bbox.material.linewidth = 5;\n // bbox.renderOrder = 1000;\n // bbox.material.depthTest = false;\n // banco.add(bbox);\n // }\n\n banco.rotation.y += Math.PI;\n banco.position.y += newAltitude;\n banco.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n let chair = makeChair(newAltitude);\n chair.position.z += CHAIR_TRANSLATION;\n\n let deskAndChair = new Three.Object3D();\n deskAndChair.add(banco);\n deskAndChair.add(chair);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(deskAndChair, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n deskAndChair.add(bbox);\n }\n\n deskAndChair.position.z -= (CHAIR_DEPTH / 2 - (CHAIR_TRANSLATION - CHAIR_DEPTH / 2)) / 2;\n\n let boundingBoxDeskAndChair = new Three.Box3().setFromObject(deskAndChair);\n\n let deltaZDeskAndChair = Math.abs(boundingBoxDeskAndChair.max.z - boundingBoxDeskAndChair.min.z);\n\n deskAndChair.scale.set(1, 1, TOTAL_DEPTH / deltaZDeskAndChair); //Fix Depth problem with the chair\n\n return Promise.resolve(deskAndChair);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/school-desk-double/school-desk-double.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 120;\nconst DEPTH = 50;\nconst HEIGHT = 90;\n\nconst CHAIR_WIDTH = 55;\nconst CHAIR_DEPTH = 55;\nconst CHAIR_HEIGHT = 50;\n\nconst CHAIR_TRANSLATION = 30;\n\nconst TOTAL_DEPTH = DEPTH + CHAIR_DEPTH/2 - (CHAIR_TRANSLATION - CHAIR_DEPTH/2);\n\nexport default {\n name: \"school-desk-double\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"School desk double\",\n description: \"school desk double\",\n image: require('./school-desk-double.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let makeChair = (altitude) => {\n\n let WIDTH = CHAIR_WIDTH;\n let DEPTH = CHAIR_DEPTH;\n let HEIGHT = CHAIR_HEIGHT;\n\n let chair = new Three.Object3D();\n\n let geometry = new Three.CylinderGeometry(0.02, 0.02, 0.5, 32);\n let material = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n\n let p1 = new Three.Mesh(geometry, material);\n p1.rotation.x += Math.PI / 2;\n p1.position.z += 0.5 / 2;\n\n let p2 = new Three.Mesh(geometry, material);\n p2.rotation.x += Math.PI / 2;\n p2.position.z += 0.5 / 2;\n p2.position.y += 0.4;\n\n let p3 = new Three.Mesh(geometry, material);\n p3.rotation.x += Math.PI / 2;\n p3.position.z += 0.5 / 2;\n p3.position.x += 0.4;\n\n let p4 = new Three.Mesh(geometry, material);\n p4.rotation.x += Math.PI / 2;\n p4.position.z += 0.5 / 2;\n p4.position.y += 0.4;\n p4.position.x += 0.4;\n\n let p5 = new Three.Mesh(geometry, material);\n p5.rotation.x += Math.PI / 2;\n p5.position.z += 0.5 * 3 / 2;\n\n let p6 = new Three.Mesh(geometry, material);\n p6.rotation.x += Math.PI / 2;\n p6.position.z += 0.5 * 3 / 2;\n p6.position.x += 0.4;\n\n// material = new Three.MeshLambertMaterial({color: 0x9b8c75});\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n\n let roundedRectShape = new Three.Shape();\n\n let x = 0;\n let y = 0;\n let width = .5;\n let height = .48;\n let radius = 0.05;\n\n roundedRectShape.moveTo(x, y + radius);\n roundedRectShape.lineTo(x, y + height - radius);\n roundedRectShape.quadraticCurveTo(x, y + height, x + radius, y + height);\n roundedRectShape.lineTo(x + width - radius, y + height);\n roundedRectShape.quadraticCurveTo(x + width, y + height, x + width, y + height - radius);\n roundedRectShape.lineTo(x + width, y + radius);\n roundedRectShape.quadraticCurveTo(x + width, y, x + width - radius, y);\n roundedRectShape.lineTo(x + radius, y);\n roundedRectShape.quadraticCurveTo(x, y, x, y + radius);\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry50 = new Three.ExtrudeGeometry(roundedRectShape, extrudeSettings);\n let plane = new Three.Mesh(geometry50, materialTexture);\n\n\n plane.position.x += -0.05;\n plane.position.y += -0.04;\n plane.position.z += 0.5;\n\n let roundedRectShape2 = new Three.Shape();\n\n let x1 = 0;\n let y1 = 0;\n let width1 = .45;\n let height1 = .25;\n let radius1 = 0.05;\n\n roundedRectShape2.moveTo(x1, y1 + radius1);\n roundedRectShape2.lineTo(x1, y1 + height1 - radius1);\n roundedRectShape2.quadraticCurveTo(x1, y1 + height1, x1 + radius1, y1 + height1);\n roundedRectShape2.lineTo(x1 + width1 - radius1, y1 + height1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1);\n roundedRectShape2.lineTo(x1 + width1, y1 + radius1);\n roundedRectShape2.quadraticCurveTo(x1 + width1, y1, x1 + width1 - radius1, y1);\n roundedRectShape2.lineTo(x1 + radius1, y1);\n roundedRectShape2.quadraticCurveTo(x1, y1, x1, y1 + radius1);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry22 = new Three.ExtrudeGeometry(roundedRectShape2, extrudeSettings2);\n let back = new Three.Mesh(geometry22, materialTexture);\n\n\n //geometry = new Three.BoxGeometry( 0.38, 0.02, 0.15);\n //let back = new Three.Mesh( geometry, material );\n back.rotation.x += Math.PI / 2;\n back.position.z += 0.5 * 12 / 8;\n back.position.y += 0.03;\n back.position.x += -0.025;\n\n chair.add(back);\n chair.add(plane);\n chair.add(p1);\n chair.add(p2);\n chair.add(p3);\n chair.add(p4);\n chair.add(p5);\n chair.add(p6);\n\n\n let aa = new Three.Box3().setFromObject(chair);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n // if (element.selected) {\n // let bbox = new Three.BoxHelper(chair, 0x99c3fb);\n // bbox.material.linewidth = 5;\n // bbox.renderOrder = 1000;\n // bbox.material.depthTest = false;\n // chair.add(bbox);\n // }\n\n chair.rotation.x += -Math.PI / 2;\n chair.position.y += altitude;\n chair.position.x += -WIDTH / 3.5;\n chair.position.z += DEPTH / 4;\n chair.scale.set(1.5 * WIDTH / deltaZ, DEPTH / 1.5 / deltaX, HEIGHT / deltaY);\n\n return chair;\n };\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let brown = new Three.MeshLambertMaterial({color: 0x9b8c75});\n let grey = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let raggio = .03;\n\n let bancoDouble = new Three.Object3D();\n\n let geometry = new Three.BoxGeometry(newWidth + newWidth / 6, newHeight / 20, newDepth + newDepth / 4);\n\n let boxMaterials = [\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({color: 0x669966}), //top\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture}),\n new Three.MeshBasicMaterial({map: texture})\n ];\n\n let tMaterial = new Three.MeshFaceMaterial(boxMaterials);\n\n let plane = new Three.Mesh(geometry, tMaterial);\n plane.position.y = newHeight;\n bancoDouble.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry(raggio, raggio, newHeight, 32);\n\n let geometry2 = new Three.BoxGeometry(newWidth, newHeight / 20, newDepth);\n let plane2 = new Three.Mesh(geometry2, materialTexture);\n plane2.position.y = newHeight / 2 + newHeight / 4;\n bancoDouble.add(plane2);\n\n let geometry3 = new Three.BoxGeometry(newWidth, newHeight / 10, newDepth / 20);\n let plane3 = new Three.Mesh(geometry3, materialTexture);\n plane3.position.y = newHeight / 2 + newHeight / 4 + newHeight / 16;\n plane3.position.z = newDepth / 3 + newDepth / 5;\n bancoDouble.add(plane3);\n\n let p1 = new Three.Mesh(geometry_legs, grey);\n p1.position.x = newWidth / 2;\n p1.position.z = newDepth / 2;\n p1.position.y = newHeight / 2;\n p1.scale.set(.5, 1, .75);\n bancoDouble.add(p1);\n\n let p2 = new Three.Mesh(geometry_legs, grey);\n p2.position.x = newWidth / 2;\n p2.position.z = -newDepth / 2;\n p2.position.y = newHeight / 2;\n p2.scale.set(.5, 1, .75);\n bancoDouble.add(p2);\n\n let p3 = new Three.Mesh(geometry_legs, grey);\n p3.position.x = -newWidth / 2;\n p3.position.z = newDepth / 2;\n p3.position.y = newHeight / 2;\n p3.scale.set(.5, 1, .75);\n bancoDouble.add(p3);\n\n let p4 = new Three.Mesh(geometry_legs, grey);\n p4.position.x = -newWidth / 2;\n p4.position.z = -newDepth / 2;\n p4.position.y = newHeight / 2;\n p4.scale.set(.5, 1, .75);\n bancoDouble.add(p4);\n\n\n let valueObject = new Three.Box3().setFromObject(bancoDouble);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n\n // if (element.selected) {\n // let bbox = new Three.BoxHelper(bancoDouble, 0x99c3fb);\n // bbox.material.linewidth = 5;\n // bbox.renderOrder = 1000;\n // bbox.material.depthTest = false;\n // bancoDouble.add(bbox);\n // }\n\n bancoDouble.rotation.y += Math.PI;\n bancoDouble.position.y += newAltitude;\n bancoDouble.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n let chair = makeChair(newAltitude);\n chair.position.z += 30;\n chair.position.x += 25;\n\n let chair2 = makeChair(newAltitude);\n chair2.position.z += 30;\n chair2.position.x -= 25;\n\n let deskAndChairDouble = new Three.Object3D();\n deskAndChairDouble.add(bancoDouble);\n deskAndChairDouble.add(chair);\n deskAndChairDouble.add(chair2);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(deskAndChairDouble, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n deskAndChairDouble.add(bbox);\n }\n\n // deskAndChairDouble.position.z-=DEPTH/4;\n\n deskAndChairDouble.position.z -= (CHAIR_DEPTH / 2 - (CHAIR_TRANSLATION - CHAIR_DEPTH / 2)) / 2;\n\n let boundingBoxDeskAndChair = new Three.Box3().setFromObject(deskAndChairDouble);\n\n let deltaZDeskAndChair = Math.abs(boundingBoxDeskAndChair.max.z - boundingBoxDeskAndChair.min.z);\n\n deskAndChairDouble.scale.set(1, 1, TOTAL_DEPTH / deltaZDeskAndChair); //Fix Depth problem with the chair\n\n return Promise.resolve(deskAndChairDouble);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/schneider/schneider.png\";","module.exports = __webpack_public_path__ + \"catalog/items/schneider/monitor.png\";","import * as Three from 'three';\nimport React from 'react';\n\n//color\nlet grey = new Three.MeshLambertMaterial({color: 0xd3d3d3});\nlet white = new Three.MeshLambertMaterial({color: 0xf5f5f5});\nlet darkGrey = new Three.MeshLambertMaterial({color: 0x3d3d3d});\nlet black = new Three.MeshLambertMaterial({color: 0x000000});\nlet boxMaterials = [ grey, darkGrey, grey, grey, grey, grey];\nlet boxMaterials2 = [ grey, grey, grey, grey, grey, darkGrey];\nlet boxMaterials3 = [ grey, grey, grey, grey, darkGrey, grey];\n\n\nlet textureLoader = new Three.TextureLoader();\nlet lcdTexture = textureLoader.load(require('./monitor.png'));\n\n//dimensions\nlet width = 258;\nlet depth = 87;\nlet height = 195;\nlet filterWidth = 48;\nlet filterDepth = 10;\nlet filterHeight = 52;\nlet gridThickness = 3;\n\n\nfunction makeObjectMaxLOD(){\n\n let schneider = new Three.Mesh();\n\n let gridVerticalElemGeometry = new Three.BoxGeometry(gridThickness/2,filterHeight,filterDepth);\n let gridHorizontalElemGeometry = new Three.BoxGeometry(filterWidth,gridThickness,filterDepth);\n\n let filter = new Three.Object3D();\n\n for(let i=0.25; i<48; i+=3.32){\n let gridVerticalElem = new Three.Mesh(gridVerticalElemGeometry, white);\n gridVerticalElem.position.x = i;\n gridVerticalElem.position.y = 26;\n filter.add(gridVerticalElem);\n }\n\n for(let i=0; i<52; i+=7.4){\n let gridHorizontalElem = new Three.Mesh(gridHorizontalElemGeometry, white);\n gridHorizontalElem.position.x = 23.5;\n gridHorizontalElem.position.y = i;\n filter.add(gridHorizontalElem);\n }\n\n for(let k=0;k<=54;k+=46){\n for(let j=10;j<240;j+=48){\n let filterClone = filter.clone();\n filterClone.position.x+=j;\n filterClone.position.y+=k;\n filterClone.rotation.x-=Math.PI/6;\n if(k===0)\n filterClone.position.z+=18;\n else\n filterClone.position.z-=10;\n schneider.add(filterClone);\n }\n }\n\n let panelSideElemGeometry = new Three.BoxGeometry(5,height,depth);\n let panelSideElemLeft = new Three.Mesh(panelSideElemGeometry, boxMaterials);\n panelSideElemLeft.rotation.y+=Math.PI;\n schneider.add(panelSideElemLeft);\n\n let panelSideElemRight = new Three.Mesh(panelSideElemGeometry, boxMaterials);\n panelSideElemRight.position.x+=258;\n schneider.add(panelSideElemRight);\n\n let panelSideBackElemGeometry = new Three.BoxGeometry(width,height,5);\n let panelSideElemBack = new Three.Mesh(panelSideBackElemGeometry, boxMaterials3);\n panelSideElemBack.position.x+=129;\n panelSideElemBack.position.z-=43.5;\n schneider.add(panelSideElemBack);\n\n let boxElemGeometry = new Three.BoxGeometry(width/3,height/3,depth/8);\n let boxElem = new Three.Mesh(boxElemGeometry, grey);\n boxElem.position.x+=212;\n boxElem.position.y+=65;\n boxElem.position.z+=35;\n schneider.add(boxElem);\n\n let panelSideFrontElemGeometry = new Three.BoxGeometry(width/3,height,5);\n let panelSideElemFront_P1 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P1.position.x+=43.5;\n panelSideElemFront_P1.position.z+=43.5;\n schneider.add(panelSideElemFront_P1);\n\n let panelSideElemFront_P2 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P2.position.x+=130;\n panelSideElemFront_P2.position.z+=43.5;\n schneider.add(panelSideElemFront_P2);\n\n let panelSideElemFront_P3 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P3.position.x+=217;\n panelSideElemFront_P3.position.z+=43.5;\n schneider.add(panelSideElemFront_P3);\n\n let planeGeometryFront = new Three.PlaneGeometry(width/16,height/12);\n let planeMaterialFront = new Three.MeshLambertMaterial({map:lcdTexture, transparent:true, overdraw:true});\n\n let planeGeometryFront1 = new Three.PlaneGeometry(width/8,height/3);\n let panelBase = new Three.Mesh(planeGeometryFront1,darkGrey);\n panelBase.position.set(217,65,46.5);\n schneider.add(panelBase);\n\n let lcd = new Three.Mesh(planeGeometryFront,planeMaterialFront);\n lcd.position.set(217,60,46.55);\n schneider.add(lcd);\n\n let panelSideMiddleElemGeometry = new Three.BoxGeometry(width,5,depth);\n let panelSideElemMiddle = new Three.Mesh(panelSideMiddleElemGeometry, grey);\n panelSideElemMiddle.position.x+=129;\n panelSideElemMiddle.position.y-=10;\n schneider.add(panelSideElemMiddle);\n\n let panelSideElemFooter = new Three.Mesh(panelSideMiddleElemGeometry, black);\n panelSideElemFooter.position.x+=129;\n panelSideElemFooter.position.y-=97.5;\n schneider.add(panelSideElemFooter);\n\n return schneider\n}\n\nfunction makeObjectMinLOD(){\n\n let schneider = new Three.Mesh();\n\n let gridVerticalElemGeometry = new Three.BoxGeometry(gridThickness/2,filterHeight,filterDepth);\n let gridHorizontalElemGeometry = new Three.BoxGeometry(filterWidth,gridThickness,filterDepth);\n\n let filter = new Three.Object3D();\n\n for(let i=0.25; i<48; i+=3.32){\n let gridVerticalElem = new Three.Mesh(gridVerticalElemGeometry, white);\n gridVerticalElem.position.x = i;\n gridVerticalElem.position.y = 26;\n filter.add(gridVerticalElem);\n }\n\n for(let i=0; i<52; i+=7.4){\n let gridHorizontalElem = new Three.Mesh(gridHorizontalElemGeometry, white);\n gridHorizontalElem.position.x = 23.5;\n gridHorizontalElem.position.y = i;\n filter.add(gridHorizontalElem);\n }\n\n for(let k=0;k<=54;k+=46){\n for(let j=10;j<240;j+=48){\n let filterClone = filter.clone();\n filterClone.position.x+=j;\n filterClone.position.y+=k;\n filterClone.rotation.x-=Math.PI/6;\n if(k===0)\n filterClone.position.z+=18;\n else\n filterClone.position.z-=10;\n schneider.add(filterClone);\n }\n }\n\n let panelSideElemGeometry = new Three.BoxGeometry(5,height,depth);\n let panelSideElemLeft = new Three.Mesh(panelSideElemGeometry, boxMaterials);\n panelSideElemLeft.rotation.y+=Math.PI;\n schneider.add(panelSideElemLeft);\n\n let panelSideElemRight = new Three.Mesh(panelSideElemGeometry, boxMaterials);\n panelSideElemRight.position.x+=258;\n schneider.add(panelSideElemRight);\n\n let panelSideBackElemGeometry = new Three.BoxGeometry(width,height,5);\n let panelSideElemBack = new Three.Mesh(panelSideBackElemGeometry, boxMaterials3);\n panelSideElemBack.position.x+=129;\n panelSideElemBack.position.z-=43.5;\n schneider.add(panelSideElemBack);\n\n let boxElemGeometry = new Three.BoxGeometry(width/3,height/3,depth/8);\n let boxElem = new Three.Mesh(boxElemGeometry, grey);\n boxElem.position.x+=212;\n boxElem.position.y+=65;\n boxElem.position.z+=35;\n schneider.add(boxElem);\n\n let panelSideFrontElemGeometry = new Three.BoxGeometry(width/3,height,5);\n let panelSideElemFront_P1 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P1.position.x+=43.5;\n panelSideElemFront_P1.position.z+=43.5;\n schneider.add(panelSideElemFront_P1);\n\n let panelSideElemFront_P2 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P2.position.x+=130;\n panelSideElemFront_P2.position.z+=43.5;\n schneider.add(panelSideElemFront_P2);\n\n let panelSideElemFront_P3 = new Three.Mesh(panelSideFrontElemGeometry, boxMaterials2);\n panelSideElemFront_P3.position.x+=217;\n panelSideElemFront_P3.position.z+=43.5;\n schneider.add(panelSideElemFront_P3);\n\n let planeGeometryFront = new Three.PlaneGeometry(width/16,height/12);\n let planeMaterialFront = new Three.MeshLambertMaterial({map:lcdTexture, transparent:true, overdraw:true});\n\n let planeGeometryFront1 = new Three.PlaneGeometry(width/8,height/3);\n let panelBase = new Three.Mesh(planeGeometryFront1,darkGrey);\n panelBase.position.set(217,65,46.5);\n schneider.add(panelBase);\n\n let lcd = new Three.Mesh(planeGeometryFront,planeMaterialFront);\n lcd.position.set(217,60,46.55);\n schneider.add(lcd);\n\n let panelSideMiddleElemGeometry = new Three.BoxGeometry(width,5,depth);\n let panelSideElemMiddle = new Three.Mesh(panelSideMiddleElemGeometry, grey);\n panelSideElemMiddle.position.x+=129;\n panelSideElemMiddle.position.y-=10;\n schneider.add(panelSideElemMiddle);\n\n let panelSideElemFooter = new Three.Mesh(panelSideMiddleElemGeometry, black);\n panelSideElemFooter.position.x+=129;\n panelSideElemFooter.position.y-=97.5;\n schneider.add(panelSideElemFooter);\n\n return schneider\n}\n\nexport default {\n name: \"schneider\",\n prototype: \"items\",\n\n info: {\n tag: ['metal'],\n title: \"schneider\",\n description: \"schneider\",\n image: require('./schneider.png')\n },\n properties: {\n patternColor: {\n label: \"pattern colori\",\n type: \"color\",\n defaultValue: \"#f5f4f4\"\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let fillValue = element.selected ? \"#99c3fb\" : element.properties.get('patternColor');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n return (\n \n \n \n {element.get('name')}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let rackMaxLOD=new Three.Object3D();\n\n let objectMaxLOD = makeObjectMaxLOD(width,height,depth);\n rackMaxLOD.add(objectMaxLOD.clone());\n rackMaxLOD.rotation.y=Math.PI;\n rackMaxLOD.position.x+= width/2;\n rackMaxLOD.position.y+= height/1.8 + newAltitude;\n\n /**************** LOD min ***********************/\n\n let rackMinLOD=new Three.Object3D();\n let objectMinLOD = makeObjectMinLOD(width,height,depth);\n rackMinLOD.add(objectMinLOD.clone());\n rackMinLOD.rotation.y=Math.PI;\n rackMinLOD.position.x+= width/2;\n rackMinLOD.position.y+= height/1.8 + newAltitude;\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(rackMaxLOD, 100);\n lod.addLevel(rackMinLOD, 1800);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n};\n","const tableStyle = {width: '100%', borderSpacing: '2px 0', marginBottom: '2px'};\nconst firstTdStyle = {width: '6em', textTransform:'capitalize'};\n\nconst PropertyStyle = {\n tableStyle,\n firstTdStyle\n};\n\nexport default PropertyStyle;\n","module.exports = __webpack_public_path__ + \"catalog/items/router-wifi/routerWifi.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 20;\nconst DEPTH = 5;\nconst HEIGHT= 20;\nconst RADIUS = 10;\n\n\nconst grey = new Three.MeshLambertMaterial({color:0x6b6b6b});\nconst grey2 = new Three.MeshLambertMaterial({color:0x939393});\nconst greenMaterial = new Three.MeshLambertMaterial({color:0x00FF00});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD(){\n\n let routerWifi = new Three.Mesh();\n\n let x=0;\n let y=0;\n let w=WIDTH;\n let h=HEIGHT;\n let r=RADIUS;\n\n let roundedRectShape = new Three.Shape();\n\n\n roundedRectShape.moveTo( x, y + r );\n roundedRectShape.lineTo( x, y + h - r );\n roundedRectShape.quadraticCurveTo( x, y + h, x + r, y + h );\n roundedRectShape.lineTo( x + w - r, y + h) ;\n roundedRectShape.quadraticCurveTo( x + w, y + h, x + w, y + h - r );\n roundedRectShape.lineTo( x + w, y + r );\n roundedRectShape.quadraticCurveTo( x + w, y, x + w - r, y );\n roundedRectShape.lineTo( x + r, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + r );\n\n\n let extrudeSettings = {\n steps: 2,\n depth: DEPTH/2,\n bevelEnabled: true,\n bevelThickness: DEPTH,\n bevelSize: 2*DEPTH,\n bevelSegments: 2\n };\n\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n\n mesh.position.set(-0.4,1,0.2);\n routerWifi.add(mesh);\n\n let extrudeSettings2 = {\n steps: 2,\n depth: DEPTH/2,\n bevelEnabled: false,\n bevelThickness: DEPTH,\n bevelSize: 2*DEPTH,\n bevelSegments: 2\n };\n\n let geometry2 = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, grey2 ) ;\n\n mesh2.position.set(-0.4,1,5.5);\n routerWifi.add(mesh2);\n\n let cylinderGeometry = new Three.CylinderGeometry(RADIUS/20,RADIUS/20,DEPTH,32,32);\n let led = new Three.Mesh(cylinderGeometry,greenMaterial);\n led.rotation.x+=Math.PI/2;\n led.position.set(WIDTH/2,WIDTH/2,1.2*DEPTH);\n routerWifi.add(led);\n\n let led2 = new Three.Mesh(cylinderGeometry,greenMaterial);\n led2.rotation.x+=Math.PI/2;\n led2.position.set(WIDTH/2+5,WIDTH/2,1.2*DEPTH);\n routerWifi.add(led2);\n\n let led3 = new Three.Mesh(cylinderGeometry,greenMaterial);\n led3.rotation.x+=Math.PI/2;\n led3.position.set(WIDTH/2-5,WIDTH/2,1.2*DEPTH);\n routerWifi.add(led3);\n\n return routerWifi;\n}\n\nfunction makeObjectMinLOD(){\n\n let routerWifi = new Three.Mesh();\n\n let x=0;\n let y=0;\n let w=WIDTH;\n let h=HEIGHT;\n let r=RADIUS;\n\n let roundedRectShape = new Three.Shape();\n\n roundedRectShape.moveTo( x, y + r );\n roundedRectShape.lineTo( x, y + h - r );\n roundedRectShape.quadraticCurveTo( x, y + h, x + r, y + h );\n roundedRectShape.lineTo( x + w - r, y + h) ;\n roundedRectShape.quadraticCurveTo( x + w, y + h, x + w, y + h - r );\n roundedRectShape.lineTo( x + w, y + r );\n roundedRectShape.quadraticCurveTo( x + w, y, x + w - r, y );\n roundedRectShape.lineTo( x + r, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + r );\n\n let extrudeSettings = {\n steps: 2,\n depth: DEPTH/2,\n bevelEnabled: true,\n bevelThickness: DEPTH,\n bevelSize: 2*DEPTH,\n bevelSegments: 2\n };\n\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n\n mesh.position.set(-0.4,1,0.2);\n routerWifi.add(mesh);\n\n return routerWifi;\n}\n\nexport default {\n name: \"router_wifi\",\n prototype: \"items\",\n\n info: {\n tag: ['telecomunication'],\n title: \"router Wifi\",\n description: \"router Wifi\",\n image: require('./routerWifi.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let routerWifiMaxLOD = new Three.Object3D();\n routerWifiMaxLOD.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(routerWifiMaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n routerWifiMaxLOD.position.y+= HEIGHT/2 +newAltitude;\n routerWifiMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**************** LOD min ***********************/\n\n let routerWifiMinLOD = new Three.Object3D();\n routerWifiMinLOD.add(objectMinLOD.clone());\n\n routerWifiMinLOD.position.y+= HEIGHT/2 +newAltitude;\n routerWifiMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(routerWifiMaxLOD, 200);\n lod.addLevel(routerWifiMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/recycling-bins/recycle.png\";","module.exports = __webpack_public_path__ + \"catalog/items/recycling-bins/recycling-bins.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 40;\nconst DEPTH = 40;\nconst HEIGHT = 70;\n\nexport default {\n name: \"recycling-bins\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"recycling bins\",\n description: \"Recycling-bins\",\n image: require('./recycling-bins.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n\n \n \n \n \n \n \n \n \n \n \n {this.info.description}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n\n let makeBin = (color) => {\n var cestino_carta = new Three.Object3D();\n\n var newWidth = 1;\n var newDepth = 1;\n var newHeight = 1.5;\n\n var grey = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n\n let coloredMaterial = new Three.MeshLambertMaterial({color: color});\n\n var geometry = new Three.BoxGeometry(newWidth, newHeight, newDepth);\n var plane1 = new Three.Mesh(geometry, coloredMaterial);\n plane1.position.y = newHeight / 2;\n cestino_carta.add(plane1);\n\n var geometry_legs = new Three.CylinderGeometry(newWidth / 2, newWidth / 2, newWidth, 32);\n var p1 = new Three.Mesh(geometry_legs, coloredMaterial);\n p1.rotation.x += Math.PI / 2;\n p1.position.set(0, .75, 0);\n plane1.add(p1);\n\n var points = [];\n\n points.push(new Three.Vector2(0.4, -0.3));\n points.push(new Three.Vector2(0.4, -0.3));\n points.push(new Three.Vector2(0.4, 0.3));\n points.push(new Three.Vector2(0.4, 0.3));\n\n var geometry = new Three.LatheGeometry(points, 200, 0, Math.PI / 2);\n var etichetta = new Three.Mesh(geometry, grey);\n etichetta.rotation.y += Math.PI;\n etichetta.rotation.x += Math.PI / 2;\n etichetta.position.set(-.1, .8, 0);\n plane1.add(etichetta);\n\n var texture = new Three.TextureLoader().load(require('./recycle.png'));\n\n var planeGeometry2 = new Three.PlaneGeometry(.5, .5);\n var planeMaterial2 = new Three.MeshLambertMaterial({map: texture, transparent: true});\n var plane2 = new Three.Mesh(planeGeometry2, planeMaterial2);\n plane2.rotation.y += -Math.PI / 2;\n plane2.position.set(-.51, .3, 0);\n\n plane1.add(plane2);\n\n let value = new Three.Box3().setFromObject(cestino_carta);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n cestino_carta.position.y += newAltitude;\n cestino_carta.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n cestino_carta.rotation.y -= Math.PI/2;\n\n return cestino_carta;\n\n };\n\n let bins = new Three.Object3D();\n\n // I create all trash bins\n\n let metalBin = makeBin(0x0000ff);\n let yellowBin = makeBin(0xffff00);\n let brownBin = makeBin(0xeacb9d);\n let paperBin = makeBin(0xffffff);\n let glassBin = makeBin(0x00ff00);\n\n yellowBin.position.x += 50;\n brownBin.position.x += 100;\n paperBin.position.x += 150;\n glassBin.position.x += 200;\n\n bins.add(metalBin);\n bins.add(yellowBin);\n bins.add(brownBin);\n bins.add(paperBin);\n bins.add(glassBin);\n\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(bins, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n bins.add(bbox);\n }\n\n bins.position.x -= 100;\n\n return Promise.resolve(bins);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/radiator-old-style/OldStyleRadiator.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst DEPTH = 20;\n\n//colors\nconst grey = new Three.MeshLambertMaterial( {color: 0xeae6ca} );\n\nfunction makeObjectMaxLOD(WIDTH,HEIGHT) {\n\n let OldStyleRadiator = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=DEPTH;\n let height=HEIGHT;\n let radius=2.5;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let holePath1 = new Three.Path();\n holePath1.moveTo( DEPTH/6, HEIGHT*.16 );\n holePath1.arc(0, HEIGHT*.07, DEPTH/8 ,0, Math.PI,false);\n holePath1.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath1 );\n\n let holePath4 = new Three.Path();\n holePath4.moveTo( DEPTH/6, HEIGHT*.16);\n holePath4.arc(0, HEIGHT*0.725, DEPTH/8 ,0, Math.PI,false);\n holePath4.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath4 );\n\n let holePath7 = new Three.Path();\n holePath7.moveTo( DEPTH/6, HEIGHT*.16 );\n holePath7.arc(0, HEIGHT*.4, DEPTH/8 ,0, Math.PI,false);\n holePath7.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath7 );\n\n ////////////////////////////////////////////////\n\n let holePath2 = new Three.Path();\n holePath2.moveTo( DEPTH/2, HEIGHT*.2 );\n holePath2.arc(0, HEIGHT*.07, DEPTH/8 ,0, Math.PI,false);\n holePath2.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath2 );\n\n let holePath5 = new Three.Path();\n holePath5.moveTo( DEPTH/2, HEIGHT*.5 );\n holePath5.arc(0, HEIGHT*.0725, DEPTH/8 ,0, Math.PI,false);\n holePath5.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath5 );\n\n let holePath8 = new Three.Path();\n holePath8.moveTo( DEPTH/2, HEIGHT*1.25);\n holePath8.arc(0, -HEIGHT*.4, DEPTH/8 ,0, Math.PI,false);\n holePath8.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath8 );\n\n ////////////////////////////////////////////\n\n let holePath3 = new Three.Path();\n holePath3.moveTo( 0.85*DEPTH, HEIGHT*.16 );\n holePath3.arc(0, HEIGHT*.07, DEPTH/8 ,0, Math.PI,false);\n holePath3.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath3 );\n\n let holePath6 = new Three.Path();\n holePath6.moveTo( 0.85*DEPTH, HEIGHT*.16 );\n holePath6.arc(0, HEIGHT*.4, DEPTH/8 ,0, Math.PI,false);\n holePath6.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath6 );\n\n let holePath9 = new Three.Path();\n holePath9.moveTo( 0.85*DEPTH, HEIGHT*.16 );\n holePath9.arc(0, HEIGHT*.725,DEPTH/8 ,0, Math.PI,false);\n holePath9.arc(DEPTH/8, -HEIGHT*.15, DEPTH/8 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath9 );\n\n\n let extrudeSettings = {\n steps: 1,\n depth: 4.5,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for(let i = 2.5; i<=WIDTH-5; i+=5){\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(i,height/20,DEPTH);\n mesh.rotation.y += Math.PI/2;\n OldStyleRadiator.add(mesh);\n }\n\n for (let i = 10; i <= HEIGHT; i+=HEIGHT - 10) {\n\n let geometry1 = new Three.CylinderGeometry( DEPTH/12,DEPTH/12, WIDTH, 32 );\n let tube = new Three.Mesh(geometry1,grey);\n tube.rotation.x+=Math.PI/2;\n tube.rotation.z+=Math.PI/2;\n tube.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube);\n\n let geometry2 = new Three.CylinderGeometry( DEPTH/8, DEPTH/8, WIDTH-2.5, 6 );\n let tube2 = new Three.Mesh(geometry2,grey);\n tube2.rotation.x+=Math.PI/2;\n tube2.rotation.z+=Math.PI/2;\n tube2.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube2);\n\n let geometry3 = new Three.CylinderGeometry( DEPTH/7, DEPTH/7, WIDTH-5, 32 );\n let tube3 = new Three.Mesh(geometry3,grey);\n tube3.rotation.x+=Math.PI/2;\n tube3.rotation.z+=Math.PI/2;\n tube3.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube3);\n\n }\n\n return OldStyleRadiator\n}\n\nfunction makeObjectMinLOD(WIDTH,HEIGHT) {\n\n let OldStyleRadiator = new Three.Mesh();\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=DEPTH;\n let height=HEIGHT;\n let radius=2.5;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 1,\n depth: 4.5,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for(let i = 2.5; i<=WIDTH-5; i+=5){\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(i,height/20,DEPTH);\n mesh.rotation.y += Math.PI/2;\n OldStyleRadiator.add(mesh);\n }\n\n for (let i = HEIGHT/10; i <= HEIGHT; i+=HEIGHT - 10) {\n\n let geometry1 = new Three.CylinderGeometry( DEPTH/12,DEPTH/12, WIDTH, 32 );\n let tube = new Three.Mesh(geometry1,grey);\n tube.rotation.x+=Math.PI/2;\n tube.rotation.z+=Math.PI/2;\n tube.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube);\n\n let geometry2 = new Three.CylinderGeometry( DEPTH/8, DEPTH/8, WIDTH-2.5, 6 );\n let tube2 = new Three.Mesh(geometry2,grey);\n tube2.rotation.x+=Math.PI/2;\n tube2.rotation.z+=Math.PI/2;\n tube2.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube2);\n\n let geometry3 = new Three.CylinderGeometry( DEPTH/7, DEPTH/7, WIDTH-5, 32 );\n let tube3 = new Three.Mesh(geometry3,grey);\n tube3.rotation.x+=Math.PI/2;\n tube3.rotation.z+=Math.PI/2;\n tube3.position.set(WIDTH/2,i,DEPTH/2);\n OldStyleRadiator.add(tube3);\n\n }\n return OldStyleRadiator\n}\n\n\nexport default {\n name: \"radiator-old-style\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'cast iron'],\n title: \"cast iron radiator\",\n description: \"cast iron radiator\",\n image: require('./OldStyleRadiator.png')\n },\n\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 20,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let WIDTH = element.properties.get('width').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let WIDTH = element.properties.get('width').get('length');\n let HEIGHT = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n /********* lod max *************/\n\n let OldStyleRadiatorMaxLOD = new Three.Object3D();\n OldStyleRadiatorMaxLOD.add(makeObjectMaxLOD(WIDTH,HEIGHT).clone());\n\n let value = new Three.Box3().setFromObject(OldStyleRadiatorMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n OldStyleRadiatorMaxLOD.position.z-= DEPTH/2;\n OldStyleRadiatorMaxLOD.position.x-= WIDTH/2;\n OldStyleRadiatorMaxLOD.position.y+= -HEIGHT/20+newAltitude;\n OldStyleRadiatorMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /********* lod min *************/\n\n let OldStyleRadiatorMinLOD = new Three.Object3D();\n OldStyleRadiatorMinLOD.add(makeObjectMinLOD(WIDTH,HEIGHT).clone());\n OldStyleRadiatorMinLOD.position.z-= DEPTH/2;\n OldStyleRadiatorMinLOD.position.x-= WIDTH/2;\n OldStyleRadiatorMinLOD.position.y+= -HEIGHT/20+newAltitude;\n OldStyleRadiatorMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(OldStyleRadiatorMaxLOD, 400);\n lod.addLevel(OldStyleRadiatorMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/radiator-modern-style/ModernStyleRadiator.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst DEPTH = 10;\n\nconst grey = new Three.MeshLambertMaterial( {color: 0xeae6ca} );\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth){\n\n let ModernRadiator = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=9.5;\n let height=newHeight-25;\n let radius=2.5;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 1,\n depth: 2.5,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for(let i = 5; i<=newWidth-7.5; i+=10){\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(i,0,2.5);\n ModernRadiator.add(mesh);\n\n let mesh2 = new Three.Mesh( geometry, grey ) ;\n mesh2.position.set(i,5,0);\n mesh2.scale.set(1,1,1);\n ModernRadiator.add(mesh2);\n\n let mesh3 = new Three.Mesh( geometry, grey ) ;\n mesh3.position.set(i,5,-2.5);\n mesh3.scale.set(1,1.05,1);\n ModernRadiator.add(mesh3);\n\n let mesh4 = new Three.Mesh( geometry, grey ) ;\n mesh4.position.set(i,6,-4);\n mesh4.scale.set(1,1.2,1);\n ModernRadiator.add(mesh4);\n\n let mesh5 = new Three.Mesh( geometry, grey ) ;\n mesh5.position.set(i+6,newHeight-25,-2.5);\n mesh5.rotation.y-=Math.PI/2;\n mesh5.scale.set(.8,.18,.8);\n ModernRadiator.add(mesh5);\n\n let mesh6 = new Three.Mesh( geometry, grey ) ;\n mesh6.position.set(i,newHeight-5,5.5);\n mesh6.rotation.x-=Math.PI/2;\n mesh6.scale.set(1,.13,.8);\n ModernRadiator.add(mesh6);\n\n let mesh7 = new Three.Mesh( geometry, grey ) ;\n mesh7.position.set(i,newHeight - 17.5,-2);\n mesh7.rotation.x+=Math.PI/4;\n mesh7.scale.set(1,.14,.4);\n ModernRadiator.add(mesh7);\n\n let mesh8 = new Three.Mesh( geometry, grey ) ;\n mesh8.position.set(i,newHeight-11,5);\n mesh8.scale.set(1,.1,.4);\n ModernRadiator.add(mesh8);\n\n }\n\n\n for (let i = 5; i <= newHeight; i+=newHeight - 12.5) {\n\n let geometry1 = new Three.CylinderGeometry( newDepth/6,newDepth/6, newWidth, 32 );\n let tube = new Three.Mesh(geometry1,grey);\n tube.rotation.x+=Math.PI/2;\n tube.rotation.z+=Math.PI/2;\n tube.position.set(newWidth/2,i,newDepth/6);\n ModernRadiator.add(tube);\n\n let geometry2 = new Three.CylinderGeometry( newDepth/4, newDepth/4, newWidth-2.5, 6 );\n let tube2 = new Three.Mesh(geometry2,grey);\n tube2.rotation.x+=Math.PI/2;\n tube2.rotation.z+=Math.PI/2;\n tube2.position.set(newWidth/2,i,newDepth/6);\n ModernRadiator.add(tube2);\n\n let geometry3 = new Three.CylinderGeometry( newDepth/3.5, newDepth/3.5, newWidth-5, 32 );\n let tube3 = new Three.Mesh(geometry3,grey);\n tube3.rotation.x+=Math.PI/2;\n tube3.rotation.z+=Math.PI/2;\n tube3.position.set(newWidth/2,i,newDepth/6);\n ModernRadiator.add(tube3);\n\n }\n\n return ModernRadiator\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth){\n\n let ModernRadiator = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=9.5;\n let height=newHeight-25;\n let radius=0.25;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 1,\n depth: 2.5,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for(let i = 5; i<=newWidth-7.5; i+=10){\n\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(i,0,2.5);\n ModernRadiator.add(mesh);\n\n let mesh3 = new Three.Mesh( geometry, grey ) ;\n mesh3.position.set(i,5,-2.5);\n mesh3.scale.set(1,1.05,1);\n ModernRadiator.add(mesh3);\n\n let mesh4 = new Three.Mesh( geometry, grey ) ;\n mesh4.position.set(i,6,-4);\n mesh4.scale.set(1,1.2,1);\n ModernRadiator.add(mesh4);\n\n let mesh6 = new Three.Mesh( geometry, grey ) ;\n mesh6.position.set(i,newHeight-5,5.5);\n mesh6.rotation.x-=Math.PI/2;\n mesh6.scale.set(1,.13,.8);\n ModernRadiator.add(mesh6);\n\n let mesh7 = new Three.Mesh( geometry, grey ) ;\n mesh7.position.set(i,newHeight - 17.5,-2);\n mesh7.rotation.x+=Math.PI/4;\n mesh7.scale.set(1,.14,.4);\n ModernRadiator.add(mesh7);\n\n let mesh8 = new Three.Mesh( geometry, grey ) ;\n mesh8.position.set(i,newHeight-11,5);\n mesh8.scale.set(1,.1,.4);\n ModernRadiator.add(mesh8);\n\n }\n\n\n for (let i = newDepth/6; i <= newHeight; i+=newHeight - 10) {\n\n let geometry1 = new Three.CylinderGeometry( newDepth/6,newDepth/6, newWidth, 8 );\n let tube = new Three.Mesh(geometry1,grey);\n tube.rotation.x+=Math.PI/2;\n tube.rotation.z+=Math.PI/2;\n tube.position.set(newWidth/2,i,newDepth/6);\n ModernRadiator.add(tube);\n\n }\n\n return ModernRadiator\n}\n\n\nexport default {\n name: \"termosifone_alluminio\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"aluminum radiator\",\n description: \"aluminum radiator\",\n image: require('./ModernStyleRadiator.png')\n },\n\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 20,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let WIDTH = element.properties.get('width').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = DEPTH;\n let newHeight = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************ lod max **************/\n\n let ModernRadiatorMaxLOD = new Three.Object3D();\n ModernRadiatorMaxLOD.add(makeObjectMaxLOD(newWidth,newHeight,newDepth).clone());\n\n let value = new Three.Box3().setFromObject(ModernRadiatorMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n ModernRadiatorMaxLOD.position.x-= newWidth/2;\n ModernRadiatorMaxLOD.position.y+= 5 + newAltitude;\n ModernRadiatorMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n // let bigger = new Three.Object3D();\n //\n // bigger.add(ModernRadiator);\n //\n // let pivot = new Three.Mesh(new Three.SphereGeometry(10), new Three.MeshBasicMaterial({color:0xff0000}));\n // bigger.add(pivot);\n\n /************ lod min **************/\n\n let ModernRadiatorMinLOD = new Three.Object3D();\n ModernRadiatorMinLOD.add(makeObjectMinLOD(newWidth,newHeight,newDepth).clone());\n ModernRadiatorMinLOD.position.x-= newWidth/2;\n ModernRadiatorMinLOD.position.y+= 5 + newAltitude;\n ModernRadiatorMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(ModernRadiatorMaxLOD, 200);\n lod.addLevel(ModernRadiatorMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod); }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/projector/projector.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst white = new Three.MeshLambertMaterial( {color: 0xFFFFFF} );\nconst grey = new Three.MeshLambertMaterial( {color: 0xCCCCCC} );\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth){\n\n let projector = new Three.Mesh();\n let radius=0.5;\n\n let geometry = new Three.CylinderGeometry(radius,radius,newWidth,32,32,false,0,Math.PI);\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(newWidth/2,newHeight/2.75,0);\n mesh.rotation.z+=Math.PI/2;\n mesh.rotation.x+=Math.PI;\n projector.add(mesh);\n\n let g1 = new Three.PlaneGeometry(2*radius,newWidth);\n let m1 = new Three.Mesh(g1,grey);\n m1.rotation.z+=Math.PI/2;\n m1.rotation.x-=Math.PI/2;\n m1.position.set(newWidth/2,newHeight/2.75,0);\n projector.add(m1);\n\n let geometry2 = new Three.BoxGeometry(newWidth-newWidth/20,newHeight-newHeight/8,newDepth/20);\n let mesh2 = new Three.Mesh( geometry2, white ) ;\n mesh2.position.set(newWidth/2,0.8*newHeight,0);\n projector.add(mesh2);\n\n let geometry3 = new Three.BoxGeometry(newWidth,newHeight/50,newDepth/20);\n let mesh3 = new Three.Mesh( geometry3, grey ) ;\n mesh3.position.set(newWidth/2,newHeight+newHeight/4,0);\n projector.add(mesh3);\n\n let geometry4 = new Three.BoxGeometry(newWidth,newDepth/20,newHeight/20);\n let mesh4 = new Three.Mesh( geometry4, grey ) ;\n mesh4.rotation.x+=Math.PI/2;\n mesh4.position.set(newWidth/2,newHeight+newHeight/4.25,newDepth/20);\n projector.add(mesh4);\n\n let mesh5 = new Three.Mesh( geometry4, grey ) ;\n mesh5.rotation.x+=Math.PI/2;\n mesh5.position.set(newWidth/2,newHeight+newHeight/4.25,-newDepth/20);\n projector.add(mesh5);\n\n return projector\n\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth){\n\n let projector = new Three.Mesh();\n\n let radius=0.5;\n\n let geometry = new Three.CylinderGeometry(radius,radius,newWidth,32,32,false,0,Math.PI);\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(newWidth/2,newHeight/2.75,0);\n mesh.rotation.z+=Math.PI/2;\n mesh.rotation.x+=Math.PI;\n projector.add(mesh);\n\n let g1 = new Three.PlaneGeometry(2*radius,newWidth);\n let m1 = new Three.Mesh(g1,grey);\n m1.rotation.z+=Math.PI/2;\n m1.rotation.x-=Math.PI/2;\n m1.position.set(newWidth/2,newHeight/2.75,0);\n projector.add(m1);\n\n let geometry2 = new Three.BoxGeometry(newWidth-newWidth/20,newHeight-newHeight/8,newDepth/20);\n let mesh2 = new Three.Mesh( geometry2, white ) ;\n mesh2.position.set(newWidth/2,0.8*newHeight,0);\n projector.add(mesh2);\n\n let geometry3 = new Three.BoxGeometry(newWidth,newHeight/50,newDepth/20);\n let mesh3 = new Three.Mesh( geometry3, grey ) ;\n mesh3.position.set(newWidth/2,newHeight+newHeight/4,0);\n projector.add(mesh3);\n\n let geometry4 = new Three.BoxGeometry(newWidth,newDepth/20,newHeight/20);\n let mesh4 = new Three.Mesh( geometry4, grey ) ;\n mesh4.rotation.x+=Math.PI/2;\n mesh4.position.set(newWidth/2,newHeight+newHeight/4.25,newDepth/20);\n projector.add(mesh4);\n\n let mesh5 = new Three.Mesh( geometry4, grey ) ;\n mesh5.rotation.x+=Math.PI/2;\n mesh5.position.set(newWidth/2,newHeight+newHeight/4.25,-newDepth/20);\n projector.add(mesh5);\n\n return projector\n\n}\n\n\nexport default {\n name: \"projector\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'wood', 'metal'],\n title: \"projector\",\n description: \"projector\",\n image: require('./projector.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 300,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 150,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 10,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n let newWidth = element.properties.get('width').get('length');\n let newHeight = element.properties.get('height').get('length');\n let newDepth = element.properties.get('depth').get('length');\n\n /*********** lod max ***************/\n\n let projectorMaxLOD = new Three.Object3D();\n projectorMaxLOD.add(makeObjectMaxLOD(newWidth,newHeight,newDepth).clone());\n\n let value = new Three.Box3().setFromObject(projectorMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n projectorMaxLOD.rotation.y+=Math.PI;\n projectorMaxLOD.position.y+=-newHeight/3.2 + newAltitude;\n projectorMaxLOD.position.x+=newWidth/2;\n projectorMaxLOD.position.z+=newDepth/4;\n projectorMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /*********** lod min *****************/\n\n let projectorMinLOD = new Three.Object3D();\n projectorMinLOD.add(makeObjectMinLOD(newWidth,newHeight,newDepth).clone());\n projectorMinLOD.rotation.y+=Math.PI;\n projectorMinLOD.position.y+=-newHeight/3.2 + newAltitude;\n projectorMinLOD.position.x+=newWidth/2;\n projectorMinLOD.position.z+=newDepth/4;\n projectorMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(projectorMaxLOD, 200);\n lod.addLevel(projectorMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/naspo/naspo.png\";","module.exports = __webpack_public_path__ + \"catalog/items/naspo/naspofront.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 50;\nconst DEPTH = 30;\nconst HEIGHT = 80;\n\nconst red = new Three.MeshPhongMaterial({color: 0xAA0000} );\nconst grey = new Three.MeshLambertMaterial({color:0xAAAAAA});\nconst black = new Three.MeshLambertMaterial({color:0x000000});\nconst textureLoader = new Three.TextureLoader();\nconst frontTexture = textureLoader.load(require('./naspofront.png'));\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMiddleLOD = makeObjectMiddleLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD(){\n\n let naspo = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let radius = 0.1;\n let height = 1.2;\n let width = 0.8;\n let depth = 0.6;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: depth/3,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometryBody = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometryBody, red ) ;\n mesh.position.set(0.1,1.1,0.1);\n naspo.add(mesh);\n\n let geometryBox = new Three.BoxGeometry(0.95,1.05,0.2);\n let mesh1 = new Three.Mesh( geometryBox, red );\n mesh1.position.set(0.5,1.7,0.2);\n naspo.add(mesh1);\n\n let geometryPlane = new Three.PlaneGeometry(0.6,0.9);\n let mesh3 = new Three.Mesh( geometryPlane, new Three.MeshPhongMaterial({map:frontTexture, transparent:true} ) );\n mesh3.position.set(0.5,1.7,0.31);\n naspo.add(mesh3);\n\n let cylinderGeometry1 = new Three.CylinderGeometry(0.05,0.05,0.025,80,80);\n let handle_p1 = new Three.Mesh(cylinderGeometry1,grey);\n handle_p1.position.set(0.17,1.7,0.3);\n handle_p1.rotation.x=Math.PI/2;\n naspo.add(handle_p1);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.051,0.051,0.05,80,80,true);\n black.side=Three.DoubleSide;\n let handle_p2 = new Three.Mesh(cylinderGeometry2,black);\n handle_p2.position.set(0.17,1.7,0.31);\n handle_p2.rotation.x=Math.PI/2;\n naspo.add(handle_p2);\n\n let geometry = new Three.BoxGeometry(0.1,0.02,0.02);\n let handle_p3 = new Three.Mesh( geometry,black );\n handle_p3.position.set(0.17,1.7,0.32);\n naspo.add(handle_p3);\n\n let cylinderGeometry4 = new Three.CylinderGeometry(0.015,0.015,0.1,80,80);\n let pivot1 = new Three.Mesh(cylinderGeometry4,black);\n pivot1.position.set(0.99,1.9,0.28);\n naspo.add(pivot1);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(0.015,0.015,0.1,80,80);\n let pivot2 = new Three.Mesh(cylinderGeometry5,black);\n pivot2.position.set(0.99,1.4,0.28);\n naspo.add(pivot2);\n\n let roundedRectShape2 = new Three.Shape();\n\n let width2=1.05;\n let height2=1.3;\n let radius2=0.1;\n\n roundedRectShape2.moveTo( x, y + radius2 );\n roundedRectShape2.lineTo( x, y + height2 - radius2 );\n roundedRectShape2.quadraticCurveTo( x, y + height2, x + radius2, y + height2 );\n roundedRectShape2.lineTo( x + width2 - radius2, y + height2) ;\n roundedRectShape2.quadraticCurveTo( x + width2, y + height2, x + width2, y + height2 - radius2 );\n roundedRectShape2.lineTo( x + width2, y + radius2 );\n roundedRectShape2.quadraticCurveTo( x + width2, y, x + width2 - radius2, y );\n roundedRectShape2.lineTo( x + radius2, y );\n roundedRectShape2.quadraticCurveTo( x, y, x, y + radius2 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: depth,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry2 = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, red ) ;\n mesh2.position.set(0,1.05,-0.33);\n naspo.add(mesh2);\n\n return naspo\n}\n\nfunction makeObjectMiddleLOD(){\n\n let naspo = new Three.Mesh();\n\n let roundedRectShape2 = new Three.Shape();\n\n let x=0;\n let y=0;\n let width2=1.05;\n let height2=1.3;\n let radius2=0.1;\n let depth=0.6;\n\n roundedRectShape2.moveTo( x, y + radius2 );\n roundedRectShape2.lineTo( x, y + height2 - radius2 );\n roundedRectShape2.quadraticCurveTo( x, y + height2, x + radius2, y + height2 );\n roundedRectShape2.lineTo( x + width2 - radius2, y + height2) ;\n roundedRectShape2.quadraticCurveTo( x + width2, y + height2, x + width2, y + height2 - radius2 );\n roundedRectShape2.lineTo( x + width2, y + radius2 );\n roundedRectShape2.quadraticCurveTo( x + width2, y, x + width2 - radius2, y );\n roundedRectShape2.lineTo( x + radius2, y );\n roundedRectShape2.quadraticCurveTo( x, y, x, y + radius2 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: depth,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry2 = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, red ) ;\n mesh2.position.set(0,1.05,-0.33);\n naspo.add(mesh2);\n\n let geometryBox = new Three.BoxGeometry(0.95,1.05,0.2);\n let mesh1 = new Three.Mesh( geometryBox, red );\n mesh1.position.set(0.5,1.7,0.2);\n naspo.add(mesh1);\n\n let geometryPlane = new Three.PlaneGeometry(0.6,0.9);\n let mesh3 = new Three.Mesh( geometryPlane, new Three.MeshPhongMaterial({map:frontTexture, transparent:true} ) );\n mesh3.position.set(0.5,1.7,0.31);\n naspo.add(mesh3);\n\n return naspo;\n}\n\nfunction makeObjectMinLOD(){\n\n let naspo = new Three.Mesh();\n\n let roundedRectShape2 = new Three.Shape();\n\n let x=0;\n let y=0;\n let width2=1.05;\n let height2=1.3;\n let radius2=0.1;\n let depth=0.6;\n\n roundedRectShape2.moveTo( x, y + radius2 );\n roundedRectShape2.lineTo( x, y + height2 - radius2 );\n roundedRectShape2.quadraticCurveTo( x, y + height2, x + radius2, y + height2 );\n roundedRectShape2.lineTo( x + width2 - radius2, y + height2) ;\n roundedRectShape2.quadraticCurveTo( x + width2, y + height2, x + width2, y + height2 - radius2 );\n roundedRectShape2.lineTo( x + width2, y + radius2 );\n roundedRectShape2.quadraticCurveTo( x + width2, y, x + width2 - radius2, y );\n roundedRectShape2.lineTo( x + radius2, y );\n roundedRectShape2.quadraticCurveTo( x, y, x, y + radius2 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: depth,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry2 = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let mesh2 = new Three.Mesh( geometry2, red ) ;\n mesh2.position.set(0,1.05,-0.33);\n naspo.add(mesh2);\n\n return naspo;\n}\n\n\n\nexport default {\n name: \"naspo\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"naspo\",\n description: \"naspo\",\n image: require('./naspo.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 60,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let naspoMaxLOD = new Three.Object3D();\n naspoMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(naspoMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n naspoMaxLOD.rotation.y+= Math.PI;\n naspoMaxLOD.position.x+= WIDTH/2;\n naspoMaxLOD.position.y+= -HEIGHT/1.3 + newAltitude;\n naspoMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n\n /**************** LOD middle ***********************/\n\n let naspoMiddleLOD = new Three.Object3D();\n naspoMiddleLOD.add(objectMiddleLOD.clone());\n\n naspoMiddleLOD.rotation.y+= Math.PI;\n naspoMiddleLOD.position.x+= WIDTH/2;\n naspoMiddleLOD.position.y+= -HEIGHT/1.3 + newAltitude;\n naspoMiddleLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**************** LOD min ***********************/\n\n let naspoMinLOD = new Three.Object3D();\n naspoMinLOD.add(objectMinLOD.clone());\n\n naspoMinLOD.rotation.y+= Math.PI;\n naspoMinLOD.position.x+= WIDTH/2;\n naspoMinLOD.position.y+= -HEIGHT/1.3 + newAltitude;\n naspoMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(naspoMaxLOD, 200);\n lod.addLevel(naspoMiddleLOD, 900);\n lod.addLevel(naspoMinLOD, 1200);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/monitor-pc/monitorPC.png\";","module.exports = __webpack_public_path__ + \"catalog/items/monitor-pc/keyboard.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/monitor-pc/white.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/monitor-pc/black.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/monitor-pc/power.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 50;\nconst DEPTH = 50;\nconst HEIGHT = 50;\n\nconst textureLoader = new Three.TextureLoader();\nconst power = textureLoader.load(require(\"./power.jpg\" ));\nconst black = textureLoader.load(require(\"./black.jpg\" ));\nconst white = textureLoader.load(require(\"./white.jpg\" ));\nconst keyboard = textureLoader.load(require(\"./keyboard.jpg\" ));\nconst blackMaterial = new Three.MeshLambertMaterial( { map:black} );\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\n\nfunction makeObjectMaxLOD() {\n\n let monitorPC = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(0.04,0.42,0.06);\n let whiteMaterial = new Three.MeshLambertMaterial({map:white});\n let edge_p0 = new Three.Mesh(cubeGeometryBase,whiteMaterial);\n edge_p0.position.set(0,0.79,0);\n edge_p0.rotation.x=Math.PI/2;\n monitorPC.add(edge_p0);\n\n let cubeGeometryBase2 = new Three.BoxGeometry(0.04,0.42,0.06);\n let edge_p1 = new Three.Mesh(cubeGeometryBase2,whiteMaterial);\n edge_p1.position.set(0,0.43,0);\n edge_p1.rotation.x=Math.PI/2;\n monitorPC.add(edge_p1);\n\n let cubeGeometryBase3 = new Three.BoxGeometry(0.04,0.42,0.04);\n let edge_p3 = new Three.Mesh(cubeGeometryBase3,whiteMaterial);\n edge_p3.position.set(0,0.61,0.21);\n monitorPC.add(edge_p3);\n\n let cubeGeometryBase4 = new Three.BoxGeometry(0.04,0.42,0.04);\n let edge_p4 = new Three.Mesh(cubeGeometryBase4,whiteMaterial);\n edge_p4.position.set(0,0.61,-0.21);\n monitorPC.add(edge_p4);\n\n let cubeGeometryBase5 = new Three.BoxGeometry(0.4,0.40,0.05);\n let back = new Three.Mesh(cubeGeometryBase5,blackMaterial);\n back.position.set(-0.02,0.61,0);\n back.rotation.y=Math.PI/2;\n monitorPC.add(back);\n\n let powerGeometry = new Three.BoxGeometry(0.01,0.02,0.02);\n let powerMaterial = new Three.MeshLambertMaterial({map:power});\n let powerButton = new Three.Mesh(powerGeometry,powerMaterial);\n powerButton.position.set(0.0155,0.43,0);\n monitorPC.add(powerButton);\n\n let cylinderGeometry1 = new Three.CylinderGeometry(0.02,0.02,0.06,32,32);\n let base_p1 = new Three.Mesh(cylinderGeometry1,blackMaterial);\n base_p1.position.set(0,0.38,0);\n monitorPC.add(base_p1);\n\n let geometry = new Three.CylinderGeometry(0.1,0.1,0.02,32,32);\n let material = new Three.MeshLambertMaterial( { map:black} );\n let base_p2 = new Three.Mesh( geometry, material );\n base_p2.scale.set(0.8,1,1);\n base_p2.position.set(0,0.36,0);\n monitorPC.add(base_p2);\n\n //keyboard\n let cubeGeometryBase8 = new Three.BoxGeometry(0.4,0.02,0.2);\n\n let boxMaterials = [\n new Three.MeshBasicMaterial({color:0x000000}),\n new Three.MeshBasicMaterial({color:0x000000}),\n new Three.MeshLambertMaterial({map:keyboard}),\n new Three.MeshBasicMaterial({color:0x000000}),\n new Three.MeshBasicMaterial({color:0x000000}),\n new Three.MeshBasicMaterial({color:0x000000})\n ];\n\n\n let keyboardMesh = new Three.Mesh(cubeGeometryBase8,boxMaterials);\n keyboardMesh.position.set(0.3,0.36,0);\n keyboardMesh.rotation.y=Math.PI/2;\n monitorPC.add(keyboardMesh);\n\n return monitorPC;\n}\n\nfunction makeObjectMinLOD() {\n\n let monitorPC = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(0.04,0.42,0.06);\n let whiteMaterial = new Three.MeshLambertMaterial({map:white});\n let edge_p0 = new Three.Mesh(cubeGeometryBase,whiteMaterial);\n edge_p0.position.set(0,0.79,0);\n edge_p0.rotation.x=Math.PI/2;\n monitorPC.add(edge_p0);\n\n let cubeGeometryBase2 = new Three.BoxGeometry(0.04,0.42,0.06);\n let edge_p1 = new Three.Mesh(cubeGeometryBase2,whiteMaterial);\n edge_p1.position.set(0,0.43,0);\n edge_p1.rotation.x=Math.PI/2;\n monitorPC.add(edge_p1);\n\n let cubeGeometryBase3 = new Three.BoxGeometry(0.04,0.42,0.04);\n let edge_p3 = new Three.Mesh(cubeGeometryBase3,whiteMaterial);\n edge_p3.position.set(0,0.61,0.21);\n monitorPC.add(edge_p3);\n\n let cubeGeometryBase4 = new Three.BoxGeometry(0.04,0.42,0.04);\n let edge_p4 = new Three.Mesh(cubeGeometryBase4,whiteMaterial);\n edge_p4.position.set(0,0.61,-0.21);\n monitorPC.add(edge_p4);\n\n let cubeGeometryBase5 = new Three.BoxGeometry(0.4,0.40,0.05);\n let blackMaterial = new Three.MeshLambertMaterial( { map:black} );\n let back = new Three.Mesh(cubeGeometryBase5,blackMaterial);\n back.position.set(-0.02,0.61,0);\n back.rotation.y=Math.PI/2;\n monitorPC.add(back);\n\n let cylinderGeometry1 = new Three.CylinderGeometry(0.02,0.02,0.06,8,8);\n let base_p1 = new Three.Mesh(cylinderGeometry1,blackMaterial);\n base_p1.position.set(0,0.38,0);\n monitorPC.add(base_p1);\n\n let geometry = new Three.CylinderGeometry(0.1,0.1,0.02,8,8);\n let base_p2 = new Three.Mesh( geometry, blackMaterial );\n base_p2.scale.set(0.8,1,1);\n base_p2.position.set(0,0.36,0);\n monitorPC.add(base_p2);\n\n //keyboard\n let cubeGeometryBase8 = new Three.BoxGeometry(0.4,0.02,0.2);\n let keyboardMesh = new Three.Mesh(cubeGeometryBase8,blackMaterial);\n keyboardMesh.position.set(0.3,0.36,0);\n keyboardMesh.rotation.y=Math.PI/2;\n monitorPC.add(keyboardMesh);\n\n return monitorPC;\n}\n\nexport default {\n name: \"monitor_pc\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"pc monitor\",\n description: \"pc monitor\",\n image: require('./monitorPC.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let monitorPC_MaxLOD=new Three.Object3D();\n monitorPC_MaxLOD.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(monitorPC_MaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n monitorPC_MaxLOD.rotation.y+=-Math.PI/2;\n monitorPC_MaxLOD.position.y+= -HEIGHT * .75 + newAltitude;\n monitorPC_MaxLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX);\n\n /**************** LOD min ***********************/\n\n let monitorPC_MinLOD=new Three.Object3D();\n\n monitorPC_MinLOD.add(objectMinLOD.clone());\n\n monitorPC_MinLOD.rotation.y+=-Math.PI/2;\n monitorPC_MinLOD.position.y+= -HEIGHT * .75 + newAltitude;\n monitorPC_MinLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX);\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(monitorPC_MaxLOD, 300);\n lod.addLevel(monitorPC_MinLOD, 700);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/metal-detector/metalDetector.png\";","module.exports = __webpack_public_path__ + \"catalog/items/metal-detector/display2.png\";","module.exports = __webpack_public_path__ + \"catalog/items/metal-detector/display1.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst newWidth = 90;\nconst newDepth = 90;\nconst newHeight = 220;\n\nconst grey = new Three.MeshLambertMaterial({color: 0xa6a9ad});\nconst darkGrey = new Three.MeshLambertMaterial({color: 0x3f454f});\nconst red = new Three.MeshLambertMaterial({color: 0xff0000});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\n\nfunction makeObjectMaxLOD() {\n\n let metalDetector = new Three.Mesh();\n\n let textureLoader = new Three.TextureLoader();\n let display1= textureLoader.load(require('./display1.png'));\n let display2= textureLoader.load(require('./display2.png'));\n\n let cubeGeometryBase = new Three.BoxGeometry(0.72,0.2,0.4);\n let up = new Three.Mesh(cubeGeometryBase,grey);\n up.position.set(0,2,0);\n metalDetector.add(up);\n\n for (let j = -0.2; j <= 0.2; j+=0.4) {\n\n let cubeGeometryBorderUp = new Three.BoxGeometry(0.72,0.03,0.03);\n let up_border_down = new Three.Mesh(cubeGeometryBorderUp,darkGrey);\n up_border_down.position.set(0,1.9,j);\n metalDetector.add(up_border_down);\n\n let up_border_top = new Three.Mesh(cubeGeometryBorderUp,darkGrey);\n up_border_top.position.set(0,2.1,j);\n metalDetector.add(up_border_top);\n\n }\n\n let cubeGeometrySide = new Three.BoxGeometry(0.08,2.3,0.6);\n let left = new Three.Mesh(cubeGeometrySide,grey);\n left.position.set(-0.4,1,0);\n metalDetector.add(left);\n\n let right = new Three.Mesh(cubeGeometrySide,grey);\n right.position.set(0.4,1,0);\n metalDetector.add(right);\n\n for (let k = -0.165; k <= 2.20; k+= 2.32 ) {\n\n let cubeGeometrySide2 = new Three.BoxGeometry(0.09,0.03,0.68);\n let left2 = new Three.Mesh(cubeGeometrySide2,darkGrey);\n left2.position.set(-0.4,k,0);\n metalDetector.add(left2);\n\n let right2 = new Three.Mesh(cubeGeometrySide2,darkGrey);\n right2.position.set(0.4,k,0);\n metalDetector.add(right2);\n\n }\n\n for (let i = -0.3; i <= 0.3 ; i+=0.6) {\n\n let cubeGeometryBorder = new Three.BoxGeometry(0.09,2.3,0.05);\n let left_border = new Three.Mesh(cubeGeometryBorder,darkGrey);\n left_border.position.set(-0.4,1,i);\n metalDetector.add(left_border);\n\n let right_border = new Three.Mesh(cubeGeometryBorder,darkGrey);\n right_border.position.set(0.4,1,i);\n metalDetector.add(right_border);\n\n let cubeGeometryBorderLed = new Three.BoxGeometry(0.02,2.3,0.02);\n let left_borderLed = new Three.Mesh(cubeGeometryBorderLed,red);\n let right_borderLed = new Three.Mesh(cubeGeometryBorderLed,red);\n\n if(i<0){\n\n left_borderLed.position.set(-0.4,1,i-.02);\n right_borderLed.position.set(0.4,1,i-.02);\n\n }\n else{\n\n left_borderLed.position.set(-0.4,1,i+.02);\n right_borderLed.position.set(0.4,1,i+.02);\n\n }\n\n metalDetector.add(left_borderLed);\n metalDetector.add(right_borderLed);\n\n }\n\n let planeDisplay1 = new Three.PlaneGeometry(0.15,0.15);\n let planeMaterial1 = new Three.MeshLambertMaterial({map: display1, transparent:true});\n let plane1 = new Three.Mesh(planeDisplay1,planeMaterial1);\n plane1.position.set(-0.15,2,0.21);\n\n let planeDisplay2 = new Three.PlaneGeometry(0.25,0.15);\n let planeMaterial2 = new Three.MeshLambertMaterial({map: display2, transparent:true});\n let plane2 = new Three.Mesh(planeDisplay2,planeMaterial2);\n plane2.position.set(0.15,2,0.21);\n\n metalDetector.add(plane1);\n metalDetector.add(plane2);\n\n return metalDetector\n}\n\nfunction makeObjectMinLOD() {\n\n let metalDetector = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(0.72,0.2,0.4);\n let up = new Three.Mesh(cubeGeometryBase,grey);\n up.position.set(0,2,0);\n metalDetector.add(up);\n\n for (let j = -0.2; j <= 0.2; j+=0.4) {\n\n let cubeGeometryBorderUp = new Three.BoxGeometry(0.72,0.03,0.03);\n let up_border_down = new Three.Mesh(cubeGeometryBorderUp,darkGrey);\n up_border_down.position.set(0,1.9,j);\n metalDetector.add(up_border_down);\n\n let up_border_top = new Three.Mesh(cubeGeometryBorderUp,darkGrey);\n up_border_top.position.set(0,2.1,j);\n metalDetector.add(up_border_top);\n\n }\n\n let cubeGeometrySide = new Three.BoxGeometry(0.08,2.3,0.6);\n let left = new Three.Mesh(cubeGeometrySide,grey);\n left.position.set(-0.4,1,0);\n metalDetector.add(left);\n\n let right = new Three.Mesh(cubeGeometrySide,grey);\n right.position.set(0.4,1,0);\n metalDetector.add(right);\n\n for (let k = -0.165; k <= 2.20; k+= 2.32 ) {\n\n let cubeGeometrySide2 = new Three.BoxGeometry(0.09,0.03,0.68);\n let left2 = new Three.Mesh(cubeGeometrySide2,darkGrey);\n left2.position.set(-0.4,k,0);\n metalDetector.add(left2);\n\n let right2 = new Three.Mesh(cubeGeometrySide2,darkGrey);\n right2.position.set(0.4,k,0);\n metalDetector.add(right2);\n\n }\n\n for (let i = -0.3; i <= 0.3 ; i+=0.6) {\n\n let cubeGeometryBorder = new Three.BoxGeometry(0.09, 2.3, 0.05);\n let left_border = new Three.Mesh(cubeGeometryBorder, darkGrey);\n left_border.position.set(-0.4, 1, i);\n metalDetector.add(left_border);\n\n let right_border = new Three.Mesh(cubeGeometryBorder, darkGrey);\n right_border.position.set(0.4, 1, i);\n metalDetector.add(right_border);\n\n }\n\n return metalDetector\n}\n\nexport default {\n name: \"metal_detector\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"metal detector\",\n description: \"metal detector\",\n image: require('./metalDetector.png')\n },\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let metalDetectorMaxLOD = new Three.Object3D();\n metalDetectorMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(metalDetectorMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n metalDetectorMaxLOD.position.y+= newHeight/11.5 + newAltitude;\n metalDetectorMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n let metalDetectorMinLOD = new Three.Object3D();\n metalDetectorMinLOD.add(objectMinLOD.clone());\n metalDetectorMinLOD.position.y+= newHeight/11.5 + newAltitude;\n metalDetectorMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(metalDetectorMaxLOD, 700);\n lod.addLevel(metalDetectorMinLOD, 1200);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/lim/example_lim.png\";","module.exports = __webpack_public_path__ + \"catalog/items/lim/lim.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 200;\nconst DEPTH = 60;\nconst HEIGHT = 150;\n\n//colors\nconst white = new Three.MeshLambertMaterial( {color: 0xffffff} );\nconst grey = new Three.MeshLambertMaterial( {color: 0xdddddd} );\nconst grey2 = new Three.MeshLambertMaterial( {color: 0x414449} );\n\nexport default {\n name: 'multimedia chalkboard',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood', 'metal'],\n title: 'multimedia chalkboard',\n description: 'multimedia chalkboard',\n image: require('./lim.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let lim = new Three.Object3D();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=5;\n let height=4;\n let radius=0.25;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 1,\n depth: 0.003125,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n let geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(0,1.2,0);\n lim.add(mesh);\n\n let geometry2 = new Three.BoxGeometry(width-width/11,height-height/8,.003125);\n let mesh2 = new Three.Mesh( geometry2, white ) ;\n mesh2.position.set(2.5,3.2,0.00125);\n lim.add(mesh2);\n\n let roundedRectShape2 = new Three.Shape();\n\n let x2=0;\n let y2=0;\n let width2=1;\n let height2=.6;\n let radius2=0.125;\n\n roundedRectShape2.moveTo( x2, y2 + radius2 );\n roundedRectShape2.lineTo( x2, y2 + height2 - radius2 );\n roundedRectShape2.quadraticCurveTo( x2, y2 + height2, x2 + radius2, y2 + height2 );\n roundedRectShape2.lineTo( x2 + width2 - radius2, y2 + height2) ;\n roundedRectShape2.quadraticCurveTo( x2 + width2, y2 + height2, x2 + width2, y2 + height2 - radius2 );\n roundedRectShape2.lineTo( x2 + width2, y2 + radius2 );\n roundedRectShape2.quadraticCurveTo( x2 + width2, y2, x2 + width2 - radius2, y2 );\n roundedRectShape2.lineTo( x2 + radius2, y2 );\n roundedRectShape2.quadraticCurveTo( x2, y2, x2, y2 + radius2 );\n\n let extrudeSettings2 = {\n steps: 1,\n depth: 0.003125,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n let textureLoader = new Three.TextureLoader();\n let etichettaImage = textureLoader.load(require('./example_lim.png'));\n\n let geometryPlane = new Three.PlaneGeometry( 4,3);\n let material = new Three.MeshLambertMaterial( {map:etichettaImage, transparent: true} );\n let plane = new Three.Mesh( geometryPlane, material );\n plane.position.set(2.5,3.1,-.0005);\n plane.rotation.y+=Math.PI;\n lim.add(plane);\n\n let geometry3 = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let mesh3 = new Three.Mesh( geometry3, grey ) ;\n mesh3.position.set(width/2-width/10,5.35,0);\n lim.add(mesh3);\n\n let roundedRectShape3 = new Three.Shape();\n\n let x3=0;\n let y3=0;\n let width3=.45;\n let height3=.25;\n let radius3=0.125;\n\n roundedRectShape3.moveTo( x3, y3 + radius3 );\n roundedRectShape3.lineTo( x3, y3 + height3 - radius3 );\n roundedRectShape3.quadraticCurveTo( x3, y3 + height3, x3 + radius3, y3 + height3 );\n roundedRectShape3.lineTo( x3 + width3 - radius3, y3 + height3) ;\n roundedRectShape3.quadraticCurveTo( x3 + width3, y3 + height3, x3 + width3, y3 + height3 - radius3 );\n roundedRectShape3.lineTo( x3 + width3, y3 + radius3 );\n roundedRectShape3.quadraticCurveTo( x3 + width3, y3, x3 + width3 - radius3, y3 );\n roundedRectShape3.lineTo( x3 + radius3, y3 );\n roundedRectShape3.quadraticCurveTo( x3, y3, x3, y3 + radius3 );\n\n let extrudeSettings3 = {\n steps: 1,\n depth: 0.0125,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n let geometry4 = new Three.ExtrudeGeometry( roundedRectShape3, extrudeSettings3 );\n let mesh4 = new Three.Mesh( geometry4, grey2 ) ;\n mesh4.position.set(width/2-width/24,5.45,-0.0125);\n lim.add(mesh4);\n\n let roundedRectShape4 = new Three.Shape();\n\n let x4=0;\n let y4=0;\n let width4=.4;\n let height4=.2;\n let radius4=0.10;\n\n roundedRectShape4.moveTo( x4, y4 + radius4 );\n roundedRectShape4.lineTo( x4, y4 + height4 - radius4 );\n roundedRectShape4.quadraticCurveTo( x4, y4 + height4, x4 + radius4, y4 + height4 );\n roundedRectShape4.lineTo( x4 + width4 - radius4, y4 + height4) ;\n roundedRectShape4.quadraticCurveTo( x4 + width4, y4 + height4, x4 + width4, y4 + height4 - radius4 );\n roundedRectShape4.lineTo( x4 + width4, y4 + radius4 );\n roundedRectShape4.quadraticCurveTo( x4 + width4, y4, x4 + width4 - radius4, y4 );\n roundedRectShape4.lineTo( x4 + radius4, y4 );\n roundedRectShape4.quadraticCurveTo( x4, y4, x4, y4 + radius4 );\n\n let extrudeSettings4 = {\n steps: 1,\n depth: 0.0125,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n let geometry5 = new Three.ExtrudeGeometry( roundedRectShape4, extrudeSettings4 );\n let mesh5 = new Three.Mesh( geometry5, grey2 ) ;\n mesh5.position.set(width/2-width/27,5.5,-0.02);\n lim.add(mesh5);\n\n\n let supportGeometry = new Three.CylinderGeometry(0.025,0.035,0.1,32,32,false,0,2*Math.PI);\n let support = new Three.Mesh( supportGeometry, grey2);\n support.position.set(width/2-width/1024,5.45,-0.018);\n support.rotation.y+=Math.PI/2;\n support.scale.set(.05,1,4);\n lim.add(support);\n\n let roundedRectShape5 = new Three.Shape();\n\n let x5=0;\n let y5=0;\n let width5=.4;\n let height5=.2;\n let radius5=0.10;\n\n roundedRectShape5.moveTo( x5, y5);\n roundedRectShape5.lineTo( width5,y5 );\n roundedRectShape5.lineTo( width5,height5 );\n roundedRectShape5.lineTo( x5,height5 );\n\n let extrudeSettings5 = {\n steps: 1,\n depth: 0.01,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n let geometry6 = new Three.ExtrudeGeometry( roundedRectShape5, extrudeSettings5 );\n let mesh6 = new Three.Mesh( geometry6, grey2 ) ;\n mesh6.position.set(width/2-width/24.45,5.2,-0.0225);\n lim.add(mesh6);\n\n let supportGeometry2 = new Three.CylinderGeometry(0.029,0.029,0.4,32,32,false,0,2*Math.PI);\n let support2 = new Three.Mesh( supportGeometry2, grey2);\n support2.position.set(width/2-width/1024,5.2,-0.021);\n support2.rotation.y+=Math.PI;\n support2.rotation.x+=Math.PI/2;\n support2.rotation.z+=Math.PI/2;\n support2.scale.set(.05,1,4);\n lim.add(support2);\n\n let value = new Three.Box3().setFromObject(lim);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lim, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lim.add(bbox);\n }\n\n lim.rotation.y+=Math.PI;\n lim.position.y+=-HEIGHT/3.2 + newAltitude;\n lim.position.x+=WIDTH/2;\n lim.position.z+=-DEPTH/3.5;\n\n lim.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n return Promise.resolve(lim);\n }\n\n};\n\n\n","module.exports = __webpack_public_path__ + \"catalog/items/kitchen/kitchen.png\";","module.exports = __webpack_public_path__ + \"catalog/items/kitchen/logo.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/kitchen/darksteel.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/kitchen/steel.jpg\";","import React from 'react';\n\nconst BASE_STYLE = {\n display: \"block\",\n marginBottom: \"5px\"\n};\n\nexport default function FormLabel({children, style, ...rest}) {\n return \n}\n","import React from 'react';\nimport FormTextInput from './form-text-input';\n\n\nconst STYLE = {\n padding: 0,\n border: 0,\n};\nconst EREG_NUMBER = /^.*$/;\n\nexport default function FormColorInput({onChange, ...rest}) {\n let onChangeCustom = event => {\n let value = event.target.value;\n if (EREG_NUMBER.test(value)) {\n onChange(event);\n }\n };\n\n return ;\n}\n","import React from 'react';\n\nconst BASE_STYLE = {\n marginBottom: \"16px\"\n};\n\nexport default function FormBlock({children, style, ...rest}) {\n return
{children}
\n}\n","import React from 'react';\nimport Button from './button';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE = {\n borderColor: \"#c12e2a\",\n backgroundColor: \"#c9302c\",\n color: SharedStyle.COLORS.white\n};\n\nconst STYLE_HOVER = {\n backgroundColor: \"#972726\",\n borderColor: \"#c12e2a\",\n color: SharedStyle.COLORS.white\n};\n\nexport default function FormDeleteButton({children, ...rest}) {\n return \n}\n","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 80;\nconst DEPTH = 100;\nconst HEIGHT = 80;\n\nlet textureLoader = new Three.TextureLoader();\nlet steel = textureLoader.load(require('./steel.jpg'));\nlet darkSteel = textureLoader.load(require('./darksteel.jpg'));\nlet logo = textureLoader.load(require('./logo.jpg'));\nlet steelTexture = new Three.MeshLambertMaterial({map:steel});\nlet darkSteelTexture = new Three.MeshLambertMaterial({map:darkSteel});\nlet logoTexture = new Three.MeshLambertMaterial({map:logo});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let kitchen = new Three.Mesh();\n\n //base\n let body = new Three.Mesh(new Three.BoxGeometry(1,0.05,1.5), steelTexture);\n body.position.set(0,0.15,0);\n kitchen.add(body);\n\n //foot\n for(let gx=-0.45;gx<=0.45;gx+=0.9){\n for(let gz=-0.7125;gz<=0.7125;gz+=1.425){\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.05, 0.05, 0.05, 4), steelTexture)\n foot.position.set(gx,-0.05,gz);\n foot.rotation.y=0.25*Math.PI;\n body.add(foot)\n }\n }\n\n //back\n let back = new Three.Mesh(new Three.BoxGeometry(0.05,1,1.5), steelTexture);\n back.position.set(0.475,0.525,0);\n body.add(back);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1,1,0.05), steelTexture);\n side1.position.set(0,0.525,0.725);\n body.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1,1,0.05), steelTexture);\n side2.position.set(0,0.525,-0.725);\n body.add(side2);\n\n //top\n let top = new Three.Mesh(new Three.BoxGeometry(1,0.20,1.5), steelTexture);\n top.position.set(0,1.1,0);\n body.add(top);\n\n //logo\n let logo = new Three.Mesh(new Three.PlaneGeometry(0.1,0.05),logoTexture);\n logo.position.set(-0.51,1.13,0);\n logo.rotation.y=-0.5*Math.PI;\n body.add(logo);\n\n //front\n let front = new Three.Mesh(new Three.BoxGeometry(0.05,0.99,1.4), steelTexture);\n front.position.set(-0.47,0.525,0);\n body.add(front);\n\n //oven\n let oven = new Three.Mesh(new Three.BoxGeometry(0.05,0.9,1.3), steelTexture);\n oven.position.set(-0.53,0.525,0);\n body.add(oven);\n\n //handle\n let handle1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,1),darkSteelTexture);\n handle1.position.set(-0.6,0.85,0);\n handle1.rotation.x=0.5*Math.PI;\n body.add(handle1);\n\n let handle2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),darkSteelTexture);\n handle2.position.set(-0.56,0.85,-0.4);\n handle2.rotation.z=0.5*Math.PI;\n body.add(handle2);\n\n let handle3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),darkSteelTexture);\n handle3.position.set(-0.56,0.85,0.4);\n handle3.rotation.z=0.5*Math.PI;\n body.add(handle3);\n\n //knob\n for(let gz=-0.6;gz<=0.65;gz+=0.3){\n let knob = new Three.Mesh(new Three.CylinderGeometry(0.03, 0.03, 0.02, 32), darkSteelTexture);\n knob.position.set(-0.51,1.05,gz);\n knob.rotation.z=0.5*Math.PI;\n body.add(knob);\n\n let knob_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.03, 0.01), darkSteelTexture);\n knob_p2.position.set(0,0.02,0);\n knob.add(knob_p2)\n }\n\n //fire\n for(let gx=-0.22;gx<=0.22;gx+=0.44){\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let fire = new Three.Mesh(new Three.CylinderGeometry(0.08, 0.1, 0.02, 32), darkSteelTexture)\n fire.position.set(gx,1.21,gz);\n body.add(fire)\n }\n }\n\n //central fire\n let centralFire = new Three.Mesh(new Three.CylinderGeometry(0.1, 0.12, 0.02, 32), darkSteelTexture);\n centralFire.position.set(0,1.21,0);\n body.add(centralFire);\n\n\n //long side grid\n for(let gx=-0.45;gx<=0.45;gx+=0.45){\n if(gx!==0)\n {\n let longSideGrid = new Three.Mesh(new Three.BoxGeometry(0.03, 0.05, 1.38), darkSteelTexture);\n longSideGrid.position.set(gx,1.21,0);\n body.add(longSideGrid)\n }\n else\n {\n for(let gz=-0.46;gz<=0.68;gz+=0.90){\n let longSideGrid2 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.05, 0.46), darkSteelTexture);\n longSideGrid2.position.set(gx,1.21,gz);\n body.add(longSideGrid2)\n }\n }\n }\n\n //short side grid\n for(let gz=-0.675;gz<=0.675;gz+=0.45){\n\n let shortSideGrid = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.03), darkSteelTexture);\n shortSideGrid.position.set(0,1.21,gz);\n body.add(shortSideGrid)\n\n }\n\n //long side grid central\n for(let gx=-0.22;gx<=0.22;gx+=0.44){\n for(let gz=-0.59;gz<=0.68;gz+=0.90){\n let lsgc1 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.01, 0.2), darkSteelTexture);\n lsgc1.position.set(gx,1.24,gz);\n body.add(lsgc1)\n }\n for(let gz=0.59;gz>=-0.68;gz-=0.90){\n let lsgc2 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.01, 0.2), darkSteelTexture);\n lsgc2.position.set(gx,1.24,gz);\n body.add(lsgc2)\n }\n }\n\n //short side grid central\n for(let gx=-0.365;gx<=0.345;gx+=0.7){\n for(let gz=-0.45;gz<=0.45;gz+=0.45){\n if(gz!==0)\n {\n let ssgc1 = new Three.Mesh(new Three.BoxGeometry(0.2, 0.02, 0.03),darkSteelTexture);\n if(gx<0)\n ssgc1.position.set(gx,1.24,gz);\n else\n ssgc1.position.set(gx+0.03,1.24,gz);\n body.add(ssgc1)\n }\n else\n {\n let ssgc2 = new Three.Mesh(new Three.BoxGeometry(0.4, 0.02, 0.03),darkSteelTexture);\n if(gx<0)\n ssgc2.position.set(gx+0.1,1.24,gz);\n else\n ssgc2.position.set(gx-0.07,1.24,gz);\n body.add(ssgc2)\n }\n }\n }\n\n //long side grid inside\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let lsgi = new Three.Mesh(new Three.BoxGeometry(0.35, 0.02, 0.03),darkSteelTexture);\n lsgi.position.set(0,1.24,gz);\n body.add(lsgi)\n }\n\n //central peace\n for(let gz=-0.14;gz<=0.14;gz+=0.28)\n {\n let cp = new Three.Mesh(new Three.BoxGeometry(0.03, 0.02, 0.2),darkSteelTexture);\n cp.position.set(0,1.25,gz);\n body.add(cp)\n }\n\n return kitchen\n}\n\nfunction makeObjectMinLOD() {\n\n let kitchen = new Three.Mesh();\n\n //base\n let body = new Three.Mesh(new Three.BoxGeometry(1,0.05,1.5), steelTexture);\n body.position.set(0,0.15,0);\n kitchen.add(body);\n\n //foot\n for(let gx=-0.45;gx<=0.45;gx+=0.9){\n for(let gz=-0.7125;gz<=0.7125;gz+=1.425){\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.05, 0.05, 0.05, 4), steelTexture)\n foot.position.set(gx,-0.05,gz);\n foot.rotation.y=0.25*Math.PI;\n body.add(foot)\n }\n }\n\n //back\n let back = new Three.Mesh(new Three.BoxGeometry(0.05,1,1.5), steelTexture);\n back.position.set(0.475,0.525,0);\n body.add(back);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1,1,0.05), steelTexture);\n side1.position.set(0,0.525,0.725);\n body.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1,1,0.05), steelTexture);\n side2.position.set(0,0.525,-0.725);\n body.add(side2);\n\n //top\n let top = new Three.Mesh(new Three.BoxGeometry(1,0.20,1.5), steelTexture);\n top.position.set(0,1.1,0);\n body.add(top);\n\n //logo\n let logo = new Three.Mesh(new Three.PlaneGeometry(0.1,0.05),logoTexture);\n logo.position.set(-0.51,1.13,0);\n logo.rotation.y=-0.5*Math.PI;\n body.add(logo);\n\n //front\n let front = new Three.Mesh(new Three.BoxGeometry(0.05,0.99,1.4), steelTexture);\n front.position.set(-0.47,0.525,0);\n body.add(front);\n\n //oven\n let oven = new Three.Mesh(new Three.BoxGeometry(0.05,0.9,1.3), steelTexture);\n oven.position.set(-0.53,0.525,0);\n body.add(oven);\n\n //handle\n let handle1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,1),darkSteelTexture);\n handle1.position.set(-0.6,0.85,0);\n handle1.rotation.x=0.5*Math.PI;\n body.add(handle1);\n\n let handle2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),darkSteelTexture);\n handle2.position.set(-0.56,0.85,-0.4);\n handle2.rotation.z=0.5*Math.PI;\n body.add(handle2);\n\n let handle3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),darkSteelTexture);\n handle3.position.set(-0.56,0.85,0.4);\n handle3.rotation.z=0.5*Math.PI;\n body.add(handle3);\n\n //knob\n for(let gz=-0.6;gz<=0.65;gz+=0.3){\n let knob = new Three.Mesh(new Three.CylinderGeometry(0.03, 0.03, 0.02, 32), darkSteelTexture);\n knob.position.set(-0.51,1.05,gz);\n knob.rotation.z=0.5*Math.PI;\n body.add(knob);\n\n let knob_p2 = new Three.Mesh(new Three.BoxGeometry(0.05, 0.03, 0.01), darkSteelTexture);\n knob_p2.position.set(0,0.02,0);\n knob.add(knob_p2)\n }\n\n //fire\n for(let gx=-0.22;gx<=0.22;gx+=0.44){\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let fire = new Three.Mesh(new Three.CylinderGeometry(0.08, 0.1, 0.02, 32), darkSteelTexture)\n fire.position.set(gx,1.21,gz);\n body.add(fire)\n }\n }\n\n //central fire\n let centralFire = new Three.Mesh(new Three.CylinderGeometry(0.1, 0.12, 0.02, 32), darkSteelTexture);\n centralFire.position.set(0,1.21,0);\n body.add(centralFire);\n\n\n //long side grid\n for(let gx=-0.45;gx<=0.45;gx+=0.45){\n if(gx!==0)\n {\n let longSideGrid = new Three.Mesh(new Three.BoxGeometry(0.03, 0.05, 1.38), darkSteelTexture);\n longSideGrid.position.set(gx,1.21,0);\n body.add(longSideGrid)\n }\n else\n {\n for(let gz=-0.46;gz<=0.68;gz+=0.90){\n let longSideGrid2 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.05, 0.46), darkSteelTexture);\n longSideGrid2.position.set(gx,1.21,gz);\n body.add(longSideGrid2)\n }\n }\n }\n\n //short side grid\n for(let gz=-0.675;gz<=0.675;gz+=0.45){\n\n let shortSideGrid = new Three.Mesh(new Three.BoxGeometry(0.9, 0.05, 0.03), darkSteelTexture);\n shortSideGrid.position.set(0,1.21,gz);\n body.add(shortSideGrid)\n\n }\n\n //long side grid central\n for(let gx=-0.22;gx<=0.22;gx+=0.44){\n for(let gz=-0.59;gz<=0.68;gz+=0.90){\n let lsgc1 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.01, 0.2), darkSteelTexture);\n lsgc1.position.set(gx,1.24,gz);\n body.add(lsgc1)\n }\n for(let gz=0.59;gz>=-0.68;gz-=0.90){\n let lsgc2 = new Three.Mesh(new Three.BoxGeometry(0.03, 0.01, 0.2), darkSteelTexture);\n lsgc2.position.set(gx,1.24,gz);\n body.add(lsgc2)\n }\n }\n\n //short side grid central\n for(let gx=-0.365;gx<=0.345;gx+=0.7){\n for(let gz=-0.45;gz<=0.45;gz+=0.45){\n if(gz!==0)\n {\n let ssgc1 = new Three.Mesh(new Three.BoxGeometry(0.2, 0.02, 0.03),darkSteelTexture);\n if(gx<0)\n ssgc1.position.set(gx,1.24,gz);\n else\n ssgc1.position.set(gx+0.03,1.24,gz);\n body.add(ssgc1)\n }\n else\n {\n let ssgc2 = new Three.Mesh(new Three.BoxGeometry(0.4, 0.02, 0.03),darkSteelTexture);\n if(gx<0)\n ssgc2.position.set(gx+0.1,1.24,gz);\n else\n ssgc2.position.set(gx-0.07,1.24,gz);\n body.add(ssgc2)\n }\n }\n }\n\n //long side grid inside\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let lsgi = new Three.Mesh(new Three.BoxGeometry(0.35, 0.02, 0.03),darkSteelTexture);\n lsgi.position.set(0,1.24,gz);\n body.add(lsgi)\n }\n\n //central peace\n for(let gz=-0.14;gz<=0.14;gz+=0.28)\n {\n let cp = new Three.Mesh(new Three.BoxGeometry(0.03, 0.02, 0.2),darkSteelTexture);\n cp.position.set(0,1.25,gz);\n body.add(cp)\n }\n\n return kitchen\n}\n\nexport default {\n name: \"kitchen\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"kitchen\",\n description: \"kitchen\",\n image: require('./kitchen.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************ lod max ****************/\n\n let kitchenMaxLOD=new Three.Object3D();\n kitchenMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(kitchenMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n kitchenMaxLOD.position.y+=newAltitude;\n kitchenMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n\n /************ lod min ****************/\n\n let kitchenMinLOD=new Three.Object3D();\n kitchenMinLOD.add(objectMinLOD.clone());\n kitchenMinLOD.position.y+=newAltitude;\n kitchenMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(kitchenMaxLOD, 200);\n lod.addLevel(kitchenMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","import React from 'react';\nimport Button from './button';\n\nconst STYLE = {\n borderColor: \"#adadad\",\n backgroundColor: \"#e6e6e6\"\n};\n\nconst STYLE_HOVER = {\n backgroundColor: \"#d4d4d4\",\n borderColor: \"#8c8c8c\"\n};\n\nexport default function CancelButton({children, ...rest}) {\n return \n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormLabel, FormColorInput } from '../../components/style/export';\nimport PropertyStyle from './shared-property-style';\n\nexport default function PropertyColor({value, onUpdate, configs, sourceElement, internalState, state}) {\n\n let update = (val) => {\n\n if (configs.hook) {\n return configs.hook(val, sourceElement, internalState, state).then(_val => {\n return onUpdate(_val);\n });\n }\n\n return onUpdate(val);\n };\n\n return (\n \n \n \n \n \n \n \n
\n {configs.label}\n \n update(event.target.value)}/>\n
\n );\n}\n\nPropertyColor.propTypes = {\n value: PropTypes.any.isRequired,\n onUpdate: PropTypes.func.isRequired,\n configs: PropTypes.object.isRequired,\n sourceElement: PropTypes.object,\n internalState: PropTypes.object,\n state: PropTypes.object.isRequired\n};\n","import {Catalog} from 'react-planner';\n\nlet catalog = new Catalog();\n\nimport * as Areas from './areas/**/planner-element.jsx';\nimport * as Lines from './lines/**/planner-element.jsx';\nimport * as Holes from './holes/**/planner-element.jsx';\nimport * as Items from './items/**/planner-element.jsx';\n\nfor( let x in Areas ) catalog.registerElement( Areas[x] );\nfor( let x in Lines ) catalog.registerElement( Lines[x] );\nfor( let x in Holes ) catalog.registerElement( Holes[x] );\nfor( let x in Items ) catalog.registerElement( Items[x] );\n\ncatalog.registerCategory('windows', 'Windows', [Holes.window, Holes.sashWindow, Holes.venetianBlindWindow, Holes.windowCurtain] );\ncatalog.registerCategory('doors', 'Doors', [Holes.door, Holes.doorDouble, Holes.panicDoor, Holes.panicDoorDouble, Holes.slidingDoor] );\n\nexport default catalog;\n","module.exports = __webpack_public_path__ + \"catalog/items/image/image.png\";","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport {Map} from 'immutable';\n\nconst grabCircleRadius = 10;\nconst hoverCircleRadius = 14;\nconst rulerColor = '#f45c42';\nconst hoverColor = '#ff9900';\n\nconst grabCircleStyle = {\n cursor: 'grab',\n fill: rulerColor,\n transition: 'r 150ms ease-in'\n};\n\nconst hoverCircleStyle = {\n cursor: 'grab',\n fill: hoverColor,\n transition: 'r 150ms ease-in'\n};\n\nconst pointsDistance = (x1, y1, x2, y2) => {\n\n if (\n !isNaN(x1) &&\n !isNaN(y1) &&\n !isNaN(x2) &&\n !isNaN(y2)\n ) {\n if (!(x1 == 0 && y1 == 0 && x2 == 0 && y2 == 0)) {\n return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));\n }\n }\n\n return 0;\n};\n\nexport default class ImageFul extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n handleMouseMove1: false,\n handleMouseMove2: false,\n hover1: false,\n hover2: false,\n imageLoadError: false\n };\n\n this.onMouseDown = this.onMouseDown.bind(this);\n this.onMouseMove = this.onMouseMove.bind(this);\n this.toggleHover1 = this.toggleHover1.bind(this);\n this.toggleHover2 = this.toggleHover2.bind(this);\n }\n\n onMouseDown(event) {\n let target = event.viewerEvent.originalEvent.target;\n\n if (target.nodeName === 'circle') {\n if (target.attributes.name) {\n if (target.attributes.name.nodeValue === 'fst-anchor') {\n this.setState({handleMouseMove1: !this.state.handleMouseMove1});\n }\n else if (target.attributes.name.nodeValue === 'snd-anchor') {\n this.setState({handleMouseMove2: !this.state.handleMouseMove2});\n }\n }\n }\n }\n\n onMouseMove(event) {\n let {x, y} = event.viewerEvent;\n\n y = this.props.scene.height - y;\n\n let dist = pointsDistance(this.props.x1, this.props.y1, this.props.x2, this.props.y2);\n let scale = !isNaN(dist) && dist ? (this.props.distance.length / dist) : 0;\n\n let origin = {\n x: this.props.element.x - (this.props.width * scale / 2),\n y: this.props.element.y + (this.props.height * scale / 2)\n };\n\n let minX = origin.x + (this.props.width * scale);\n let minY = origin.y - (this.props.height * scale);\n\n if (x < origin.x) {\n x = origin.x;\n }\n else if (x > minX) {\n x = minX;\n }\n\n if (y > origin.y) {\n y = origin.y;\n }\n else if (y < minY) {\n y = minY;\n }\n\n let newX = (x - origin.x);\n let newY = (origin.y - y);\n\n if (this.state.handleMouseMove1) {\n let dist = pointsDistance(newX, newY, this.props.x2, this.props.y2);\n this.context.projectActions.setProperties(new Map({x1: newX, y1: newY, distance: new Map({length: dist})}));\n }\n else if (this.state.handleMouseMove2) {\n let dist = pointsDistance(this.props.x1, this.props.y1, newX, newY);\n this.context.projectActions.setProperties(new Map({x2: newX, y2: newY, distance: new Map({length: dist})}));\n }\n }\n\n componentDidMount() {\n document.addEventListener('mousedown-planner-event', this.onMouseDown);\n document.addEventListener('mousemove-planner-event', this.onMouseMove);\n\n if (this.props.imageUri) {\n let img = new Image;\n img.src = this.props.imageUri;\n img.onload = () => {\n this.setState({imageLoadError: false});\n this.context.projectActions.setProperties(new Map({width: img.naturalWidth, height: img.naturalHeight}))\n };\n img.onerror = () => {\n this.setState({imageLoadError: true})\n };\n }\n }\n\n componentWillUnmount() {\n document.removeEventListener('mousedown-planner-event', this.onMouseDown);\n document.removeEventListener('mousemove-planner-event', this.onMouseMove);\n }\n\n componentWillReceiveProps(nextProps) {\n if (this.props.imageUri !== nextProps.imageUri) {\n let img = new Image;\n img.src = nextProps.imageUri;\n img.onload = () => {\n this.setState({imageLoadError: false});\n this.context.projectActions.setProperties(new Map({width: img.naturalWidth, height: img.naturalHeight}))\n };\n img.onerror = () => {\n this.setState({imageLoadError: true})\n };\n }\n }\n\n toggleHover1(e) {\n this.setState({hover1: !this.state.hover1})\n }\n\n toggleHover2(e) {\n this.setState({hover2: !this.state.hover2})\n }\n\n render() {\n let dist = pointsDistance(this.props.x1, this.props.y1, this.props.x2, this.props.y2);\n let scale = !isNaN(dist) && dist ? (this.props.distance.length / dist) : 0;\n let half_w = this.props.width / 2;\n\n let ruler = !this.props.element.selected ? null : (\n \n \n \n \n \n );\n\n return (\n \n {\n this.props.imageUri && !this.state.imageLoadError ?\n :\n \n \n \n Set the image url on the component\n property inside the sidebar,\n click and move each vertex\n of the ruler then set the real distance\n in the component property\n \n \n }\n {ruler}\n \n )\n }\n}\n\nImageFul.propTypes = {\n element: PropTypes.object.isRequired,\n x1: PropTypes.number.isRequired,\n y1: PropTypes.number.isRequired,\n x2: PropTypes.number.isRequired,\n y2: PropTypes.number.isRequired,\n distance: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n imageUri: PropTypes.string.isRequired,\n layer: PropTypes.object.isRequired,\n scene: PropTypes.object.isRequired\n};\n\nImageFul.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport ContainerDimensions from 'react-container-dimensions';\nimport Immutable, {Map} from 'immutable';\nimport immutableDevtools from 'immutable-devtools';\nimport {createStore} from 'redux';\nimport {Provider} from 'react-redux';\n\nimport MyCatalog from './catalog/mycatalog';\n\nimport ToolbarScreenshotButton from './ui/toolbar-screenshot-button';\n\nimport {\n Models as PlannerModels,\n reducer as PlannerReducer,\n ReactPlanner,\n Plugins as PlannerPlugins,\n} from 'react-planner'; //react-planner\n\n//define state\nlet AppState = Map({\n 'react-planner': new PlannerModels.State()\n});\n\n//define reducer\nlet reducer = (state, action) => {\n state = state || AppState;\n state = state.update('react-planner', plannerState => PlannerReducer(plannerState, action));\n return state;\n};\n\nlet blackList = isProduction === true ? [] : [\n 'UPDATE_MOUSE_COORDS',\n 'UPDATE_ZOOM_SCALE',\n 'UPDATE_2D_CAMERA'\n];\n\nif( !isProduction ) {\n console.info('Environment is in development and these actions will be blacklisted', blackList);\n console.info('Enable Chrome custom formatter for Immutable pretty print');\n immutableDevtools( Immutable );\n}\n\n//init store\nlet store = createStore(\n reducer,\n null,\n !isProduction && window.devToolsExtension ?\n window.devToolsExtension({\n features: {\n pause : true, // start/pause recording of dispatched actions\n lock : true, // lock/unlock dispatching actions and side effects\n persist : true, // persist states on page reloading\n export : true, // export history of actions in a file\n import : 'custom', // import history of actions from a file\n jump : true, // jump back and forth (time travelling)\n skip : true, // skip (cancel) actions\n reorder : true, // drag and drop actions in the history list\n dispatch: true, // dispatch custom actions or action creators\n test : true // generate tests for the selected actions\n },\n actionsBlacklist: blackList,\n maxAge: 999999\n }) :\n f => f\n);\n\nlet plugins = [\n PlannerPlugins.Keyboard(),\n PlannerPlugins.Autosave('react-planner_v0'),\n PlannerPlugins.ConsoleDebugger(),\n];\n\nlet toolbarButtons = [\n ToolbarScreenshotButton,\n];\n\n//render\nReactDOM.render(\n (\n \n \n {({width, height}) =>\n state.get('react-planner')}\n />\n }\n \n \n ),\n document.getElementById('app')\n);\n\n","import * as Three from 'three';\nimport React from 'react';\nimport ImageFul from './imageful';\n\nexport default {\n name: \"image\",\n prototype: \"items\",\n\n info: {\n title: \"image\",\n tag: ['image'],\n description: \"Image\",\n image: require('./image.png')\n },\n\n properties: {\n imageUri: {\n label: \"Image URI\",\n type: \"string\",\n defaultValue: '',\n },\n x1: {\n label: \"x1\",\n type: \"number\",\n defaultValue: 0\n },\n y1: {\n label: \"y1\",\n type: \"number\",\n defaultValue: 0\n },\n x2: {\n label: \"x2\",\n type: \"number\",\n defaultValue: 100\n },\n y2: {\n label: \"y2\",\n type: \"number\",\n defaultValue: 0\n },\n distance: {\n label: \"Distance\",\n type: \"length-measure\",\n defaultValue: {\n length: 100\n }\n },\n width: {\n label: \"Width\",\n type: \"number\",\n defaultValue: 600\n },\n height: {\n label: \"Height\",\n type: \"number\",\n defaultValue: 400\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let {x1, y1, x2, y2, distance, width, height, imageUri} = element.properties.toJS();\n\n return (\n \n );\n },\n\n render3D: function (element, layer, scene) {\n return Promise.resolve(new Three.Object3D());\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/hub/hub.png\";","module.exports = __webpack_public_path__ + \"catalog/items/hub/front.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst textureLoader = new Three.TextureLoader();\nconst front = textureLoader.load(require('./front.png'));\nconst blackMaterial = new Three.MeshLambertMaterial({color: 0x3d3d3d});\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth) {\n\n let hub = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(newWidth,newHeight,newDepth);\n let body = new Three.Mesh(cubeGeometryBase,blackMaterial);\n body.position.set(0,1,0);\n hub.add(body);\n\n for (let i = -newHeight/2+newHeight/32; i < newHeight/2; i+=newHeight/16) {\n\n let planeGeometry = new Three.PlaneGeometry(newWidth,newHeight/16);\n let planeMaterial = new Three.MeshLambertMaterial({map:front});\n let plane_texture = new Three.Mesh(planeGeometry,planeMaterial);\n plane_texture.position.set(0,i,newDepth/3+newDepth/5.9);\n body.add(plane_texture);\n\n }\n\n return hub\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth) {\n\n let hub = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(newWidth,newHeight,newDepth);\n let body = new Three.Mesh(cubeGeometryBase,blackMaterial);\n body.position.set(0,1,0);\n hub.add(body);\n\n return hub\n}\nexport default {\n name: \"hub\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"hub\",\n description: \"hub\",\n image: require('./hub.png')\n },\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 60,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 30,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 200,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let newHeight = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n /*************** lod max ******************/\n\n let hubMaxLOD = new Three.Object3D();\n hubMaxLOD.add(makeObjectMaxLOD(newWidth,newHeight,newDepth).clone());\n\n let valuePosition = new Three.Box3().setFromObject(hubMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n hubMaxLOD.position.y+= newHeight/2 +newAltitude;\n hubMaxLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /*************** lod min ******************/\n\n let hubMinLOD = new Three.Object3D();\n hubMinLOD.add(makeObjectMinLOD(newWidth,newHeight,newDepth).clone());\n hubMinLOD.position.y+= newHeight/2 +newAltitude;\n hubMinLOD.scale.set(newWidth / deltaX, newHeight / deltaY, newDepth / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(hubMaxLOD, 200);\n lod.addLevel(hubMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/hiroos/hiroos.png\";","module.exports = __webpack_public_path__ + \"catalog/items/hiroos/hiroosTexture.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst cubeMaterial = new Three.MeshLambertMaterial({color: 0x65696c});\nlet textureLoader = new Three.TextureLoader();\nlet frontTexture1 = textureLoader.load(require('./hiroosTexture.jpg'));\nlet newWidth = 175;\nlet newDepth = 85;\nlet newHeight = 195;\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth){\n\n let rack = new Three.Mesh();\n\n let frontTexture, backTexture;\n\n // if((Math.floor(Math.random()*10)+1) % 2 === 0) {\n // backTexture = backTexture1;\n frontTexture = frontTexture1;\n // }\n // else {\n // backTexture = backTexture2;\n // frontTexture= frontTexture2;\n // }\n\n //base\n let cubeGeometryBase = new Three.BoxGeometry(newWidth,newHeight,newDepth);\n\n let p1 = new Three.Mesh(cubeGeometryBase,cubeMaterial);\n p1.position.set(0,1,0);\n rack.add(p1);\n\n let planeGeometryFront = new Three.PlaneGeometry(newWidth,newHeight);\n let planeMaterialFront = new Three.MeshLambertMaterial({map:frontTexture});\n\n let front = new Three.Mesh(planeGeometryFront,planeMaterialFront);\n front.position.set(0,1,newDepth/1.95);\n rack.add(front);\n\n // let planeGeometryBack = new Three.PlaneGeometry(newWidth,newHeight);\n // let planeMaterialBack = new Three.MeshLambertMaterial({map:backTexture});\n //\n // let back = new Three.Mesh(planeGeometryBack,planeMaterialBack);\n // back.position.set(0,1,-newDepth/1.95);\n // back.rotation.y+=Math.PI;\n // rack.add(back);\n\n return rack\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth){\n\n let rack = new Three.Mesh();\n\n //base\n let cubeGeometryBase = new Three.BoxGeometry(newWidth,newHeight,newDepth);\n\n let p1 = new Three.Mesh(cubeGeometryBase,cubeMaterial);\n p1.position.set(0,1,0);\n rack.add(p1);\n\n return rack\n}\n\nexport default {\n name: \"hiroos\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"hiroos\",\n description: \"hiroos\",\n image: require('./hiroos.png')\n },\n properties: {\n patternColor: {\n label: \"pattern colori\",\n type: \"color\",\n defaultValue: \"#f5f4f4\"\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let fillValue = element.selected ? \"#99c3fb\" : element.properties.get('patternColor');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n return (\n \n \n \n {element.get('name')}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let rackMaxLOD=new Three.Object3D();\n\n let objectMaxLOD = makeObjectMaxLOD(newWidth,newHeight,newDepth);\n rackMaxLOD.add(objectMaxLOD.clone());\n rackMaxLOD.rotation.y=Math.PI;\n rackMaxLOD.position.y+= newHeight/2 + newAltitude;\n\n /**************** LOD min ***********************/\n\n let rackMinLOD=new Three.Object3D();\n let objectMinLOD = makeObjectMinLOD(newWidth,newHeight,newDepth);\n rackMinLOD.add(objectMinLOD.clone());\n rackMinLOD.rotation.y=Math.PI;\n rackMinLOD.position.y+= newHeight/2 + newAltitude;\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(rackMaxLOD, 100);\n lod.addLevel(rackMinLOD, 1800);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/hanger/hanger.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 50;\nconst DEPTH = 50;\nconst HEIGHT = 180;\n\nconst blackMaterial = new Three.MeshLambertMaterial({color: 0x4B4B4B});\nconst greyMaterial = new Three.MeshLambertMaterial({color: 0xC0C0C0});\nconst blueMaterial = new Three.MeshLambertMaterial({color: 0x3399FF, transparent: true, opacity: 0.8});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let hanger = new Three.Mesh();\n\n //base\n let base_geom = new Three.CylinderGeometry(0.09, 0.25, 0.08, 20, 2, true);\n blackMaterial.side = Three.DoubleSide;\n let base = new Three.Mesh(base_geom, blackMaterial);\n base.position.set(0, 0.04, 0);\n\n let base2_geom = new Three.CylinderGeometry(0.09, 0.01, 0.03, 20, 2, true);\n let base2 = new Three.Mesh(base2_geom, blackMaterial);\n base2.position.set(0, 0.015+0.05, 0);\n\n //central body\n let body_geom = new Three.CylinderGeometry(0.03, 0.03, 2, 32, 32);\n let body = new Three.Mesh(body_geom, greyMaterial);\n body.position.set(0, 1, 0);\n\n //umbrella base\n let g_umbrella_base = new Three.TorusGeometry(0.045, 0.02, 32, 32);\n\n let umbrella_base = new Three.Mesh(g_umbrella_base, blueMaterial);\n umbrella_base.rotation.x = Math.PI/2;\n umbrella_base.position.set(0, 0.7, 0);\n\n let g_umbrella = new Three.TorusGeometry(0.06, 0.015, 32, 32);\n let umbrella = [];\n\n for (let i = 0; i < 4; i++) {\n umbrella[i] = new Three.Mesh(g_umbrella, blueMaterial);\n umbrella[i].rotation.x = Math.PI/2;\n umbrella[i].position.y = 0.7;\n }\n\n umbrella[0].position.x = 0.1;\n umbrella[1].position.z = 0.1;\n umbrella[2].position.x = -0.1;\n umbrella[3].position.z = -0.1;\n\n //hooks\n let g_hook_body = new Three.CylinderGeometry(0.015, 0.015, 0.17, 32, 32);\n\n let g_hook = new Three.CylinderGeometry(0.05, 0.05, 0.02, 32, 32);\n\n let hooks = [];\n\n for (let i = 0; i < 8; i++) {\n hooks[i] = new Three.Object3D();\n hooks[i].rotation.x = Math.PI/2;\n hooks[i].position.set(0, 1.7, 0);\n\n let hook_body = new Three.Mesh(g_hook_body, greyMaterial);\n hooks[i].add(hook_body);\n\n let hook = new Three.Mesh(g_hook, blueMaterial);\n hook_body.add(hook);\n hook.position.y = 0.085;\n\n hooks[i].rotation.z = 45 * i * Math.PI/180;\n hook_body.position.y = 0.115;\n\n if ((i % 2) === 1)\n hooks[i].position.y += 0.2;\n }\n\n hanger.add(base);\n hanger.add(base2);\n hanger.add(body);\n hanger.add(umbrella_base);\n\n for (let i = 0; i < 4; i++) {\n hanger.add(umbrella[i]);\n }\n\n for (let i = 0; i < 8; i++) {\n hanger.add(hooks[i]);\n }\n\n return hanger;\n}\n\nfunction makeObjectMinLOD() {\n\n let hanger = new Three.Mesh();\n\n //base\n let base_geom = new Three.CylinderGeometry(0.09, 0.25, 0.08, 20, 2, true);\n blackMaterial.side = Three.DoubleSide;\n let base = new Three.Mesh(base_geom, blackMaterial);\n base.position.set(0, 0.04, 0);\n\n let base2_geom = new Three.CylinderGeometry(0.09, 0.01, 0.03, 20, 2, true);\n let base2 = new Three.Mesh(base2_geom, blackMaterial);\n base2.position.set(0, 0.015+0.05, 0);\n\n //central body\n let body_geom = new Three.CylinderGeometry(0.03, 0.03, 2, 8, 8);\n let body = new Three.Mesh(body_geom, greyMaterial);\n body.position.set(0, 1, 0);\n\n //umbrella support\n let g_umbrella_base = new Three.TorusGeometry(0.045, 0.02, 8, 8);\n let m_umbrella = new Three.MeshLambertMaterial({\n color: 0x3399FF,\n transparent: true,\n opacity: 0.8\n });\n let umbrella_base = new Three.Mesh(g_umbrella_base, m_umbrella);\n umbrella_base.rotation.x = Math.PI/2;\n umbrella_base.position.set(0, 0.7, 0);\n\n let g_umbrella = new Three.TorusGeometry(0.06, 0.015, 8, 8);\n let umbrella = [];\n\n for (let i = 0; i < 4; i++) {\n umbrella[i] = new Three.Mesh(g_umbrella, m_umbrella);\n umbrella[i].rotation.x = Math.PI/2;\n umbrella[i].position.y = 0.7;\n }\n\n umbrella[0].position.x = 0.1;\n umbrella[1].position.z = 0.1;\n umbrella[2].position.x = -0.1;\n umbrella[3].position.z = -0.1;\n\n //hooks\n let g_hook_body = new Three.CylinderGeometry(0.015, 0.015, 0.17, 8, 8);\n\n let g_hook = new Three.CylinderGeometry(0.05, 0.05, 0.02, 8, 8);\n\n let hooks = [];\n\n for (let i = 0; i < 8; i++) {\n hooks[i] = new Three.Object3D();\n hooks[i].rotation.x = Math.PI/2;\n hooks[i].position.set(0, 1.7, 0);\n\n let hook_body = new Three.Mesh(g_hook_body, greyMaterial);\n hooks[i].add(hook_body);\n\n let hook = new Three.Mesh(g_hook, m_umbrella);\n hook_body.add(hook);\n hook.position.y = 0.085;\n\n hooks[i].rotation.z = 45 * i * Math.PI/180;\n hook_body.position.y = 0.115;\n\n if (i % 2 === 1)\n hooks[i].position.y += 0.2;\n }\n\n hanger.add(base);\n hanger.add(base2);\n hanger.add(body);\n hanger.add(umbrella_base);\n\n for (let i = 0; i < 4; i++) {\n hanger.add(umbrella[i]);\n }\n\n for (let i = 0; i < 8; i++) {\n hanger.add(hooks[i]);\n }\n\n return hanger;\n}\n\nexport default {\n name: \"hanger\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metallo','plastic'],\n title: \"hanger\",\n description: \"hanger\",\n image: require('./hanger.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************* lod max ******************/\n let hangerMaxLOD = new Three.Object3D();\n hangerMaxLOD.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(hangerMaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n hangerMaxLOD.position.y+= newAltitude;\n hangerMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /************* lod min ******************/\n let hangerMinLOD = new Three.Object3D();\n hangerMinLOD.add(objectMinLOD.clone());\n hangerMinLOD.position.y+= newAltitude;\n hangerMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(hangerMaxLOD, 200);\n lod.addLevel(hangerMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/fridge/fridge.png\";","module.exports = __webpack_public_path__ + \"catalog/items/fridge/steel.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/fridge/logo.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 80;\nconst DEPTH = 80;\nconst HEIGHT = 180;\n\nconst textureLoader = new Three.TextureLoader();\nconst logoTexture = textureLoader.load(require('./logo.jpg'));\nconst steelTexture = textureLoader.load(require('./steel.jpg'));\nconst logoMaterial = new Three.MeshLambertMaterial({map:logoTexture});\nconst steel = new Three.MeshLambertMaterial({map:steelTexture});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let fridge = new Three.Mesh();\n\n //base\n let base = new Three.Mesh(new Three.BoxGeometry(1,0.05,1), steel);\n base.position.set(0,0.15,0);\n fridge.add(base);\n\n //foot\n for(let gx=-0.45;gx<=0.45;gx+=0.9){\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.05, 0.05, 0.05, 4), steel);\n foot.position.set(gx,-0.05,gz);\n foot.rotation.y=0.25*Math.PI;\n base.add(foot)\n }\n }\n\n //back\n let back = new Three.Mesh(new Three.BoxGeometry(0.05,1.8,1), steel);\n back.position.set(0.475,0.925,0);\n base.add(back);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1,1.8,0.05), steel);\n side1.position.set(0,0.925,0.475);\n base.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1,1.8,0.05), steel);\n side2.position.set(0,0.925,-0.475);\n base.add(side2);\n\n //top\n let top = new Three.Mesh(new Three.BoxGeometry(1,0.20,1), steel);\n top.position.set(0,1.85,0);\n base.add(top);\n\n //logo\n let logo = new Three.Mesh(new Three.PlaneGeometry(0.2,0.1),logoMaterial);\n logo.position.set(-0.51,1.85,0);\n logo.rotation.y=-0.5*Math.PI;\n base.add(logo);\n\n //up door\n let door1 = new Three.Mesh(new Three.BoxGeometry(0.05,0.9,0.95), steel);\n door1.position.set(-0.5,1.30,0);\n base.add(door1);\n\n //down door\n let door2 = new Three.Mesh(new Three.BoxGeometry(0.05,0.8,0.95), steel);\n door2.position.set(-0.5,0.425,0);\n base.add(door2);\n\n //middle plane\n let middlePlane = new Three.Mesh(new Three.BoxGeometry(1,0.05,1), steel);\n middlePlane.position.set(0,0.845,0);\n base.add(middlePlane);\n\n //handle\n let handle1_p1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.8),steel);\n handle1_p1.position.set(-0.56,1.30,-0.4);\n base.add(handle1_p1);\n\n let handle1_p2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle1_p2.position.set(-0.53,1.60,-0.4);\n handle1_p2.rotation.z=0.5*Math.PI;\n base.add(handle1_p2);\n\n let handle1_p3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle1_p3.position.set(-0.53,1,-0.4);\n handle1_p3.rotation.z=0.5*Math.PI;\n base.add(handle1_p3);\n\n //handle\n let handle2_p1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.7),steel);\n handle2_p1.position.set(-0.56,0.425,-0.4);\n base.add(handle2_p1);\n\n let handle2_p2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle2_p2.position.set(-0.53,0.7,-0.4);\n handle2_p2.rotation.z=0.5*Math.PI;\n base.add(handle2_p2);\n\n let handle2_p3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle2_p3.position.set(-0.53,0.15,-0.4);\n handle2_p3.rotation.z=0.5*Math.PI;\n base.add(handle2_p3);\n\n return fridge\n}\n\nfunction makeObjectMinLOD() {\n\n let fridge = new Three.Mesh();\n //base\n let base = new Three.Mesh(new Three.BoxGeometry(1,0.05,1), steel);\n base.position.set(0,0.15,0);\n fridge.add(base);\n\n //foot\n for(let gx=-0.45;gx<=0.45;gx+=0.9){\n for(let gz=-0.45;gz<=0.45;gz+=0.9){\n let foot = new Three.Mesh(new Three.CylinderGeometry(0.05, 0.05, 0.05, 4), steel);\n foot.position.set(gx,-0.05,gz);\n foot.rotation.y=0.25*Math.PI;\n base.add(foot)\n }\n }\n\n //back\n let back = new Three.Mesh(new Three.BoxGeometry(0.05,1.8,1), steel);\n back.position.set(0.475,0.925,0);\n base.add(back);\n\n //side\n let side1 = new Three.Mesh(new Three.BoxGeometry(1,1.8,0.05), steel);\n side1.position.set(0,0.925,0.475);\n base.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(1,1.8,0.05), steel);\n side2.position.set(0,0.925,-0.475);\n base.add(side2);\n\n //top\n let top = new Three.Mesh(new Three.BoxGeometry(1,0.20,1), steel);\n top.position.set(0,1.85,0);\n base.add(top);\n\n //logo\n let logo = new Three.Mesh(new Three.PlaneGeometry(0.2,0.1),logoMaterial);\n logo.position.set(-0.51,1.85,0);\n logo.rotation.y=-0.5*Math.PI;\n base.add(logo);\n\n //up door\n let door1 = new Three.Mesh(new Three.BoxGeometry(0.05,0.9,0.95), steel);\n door1.position.set(-0.5,1.30,0);\n base.add(door1);\n\n //down door\n let door2 = new Three.Mesh(new Three.BoxGeometry(0.05,0.8,0.95), steel);\n door2.position.set(-0.5,0.425,0);\n base.add(door2);\n\n //middle plane\n let middlePlane = new Three.Mesh(new Three.BoxGeometry(1,0.05,1), steel);\n middlePlane.position.set(0,0.845,0);\n base.add(middlePlane);\n\n //handle\n let handle1_p1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.8),steel);\n handle1_p1.position.set(-0.56,1.30,-0.4);\n base.add(handle1_p1);\n\n let handle1_p2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle1_p2.position.set(-0.53,1.60,-0.4);\n handle1_p2.rotation.z=0.5*Math.PI;\n base.add(handle1_p2);\n\n let handle1_p3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle1_p3.position.set(-0.53,1,-0.4);\n handle1_p3.rotation.z=0.5*Math.PI;\n base.add(handle1_p3);\n\n //handle\n let handle2_p1 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.7),steel);\n handle2_p1.position.set(-0.56,0.425,-0.4);\n base.add(handle2_p1);\n\n let handle2_p2 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle2_p2.position.set(-0.53,0.7,-0.4);\n handle2_p2.rotation.z=0.5*Math.PI;\n base.add(handle2_p2);\n\n let handle2_p3 = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06),steel);\n handle2_p3.position.set(-0.53,0.15,-0.4);\n handle2_p3.rotation.z=0.5*Math.PI;\n base.add(handle2_p3);\n\n return fridge\n}\nexport default {\n name: \"fridge\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"fridge\",\n description: \"fridge\",\n image: require('./fridge.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** lod max *******************/\n\n let fridgeMaxLOD = new Three.Object3D();\n fridgeMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(fridgeMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n fridgeMaxLOD.position.y += newAltitude;\n fridgeMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**************** lod min *******************/\n\n let fridgeMinLOD = new Three.Object3D();\n fridgeMinLOD.add(objectMinLOD.clone());\n fridgeMinLOD.position.y += newAltitude;\n fridgeMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(fridgeMaxLOD, 200);\n lod.addLevel(fridgeMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/fire-extinguisher/fire-extinguisher.png\";","module.exports = __webpack_public_path__ + \"catalog/items/fire-extinguisher/label-image.png\";","module.exports = __webpack_public_path__ + \"catalog/items/fire-extinguisher/gage-image.png\";","import MTLLoader from './mtl-loader';\nimport OBJLoader from './obj-loader';\n\nexport function loadObjWithMaterial(mtlFile, objFile, imgPath) {\n let mtlLoader = new MTLLoader();\n mtlLoader.setTexturePath(imgPath);\n let url = mtlFile;\n return new Promise((resolve, reject) => {\n\n mtlLoader.load(url, materials => {\n materials.preload();\n let objLoader = new OBJLoader();\n objLoader.setMaterials(materials);\n objLoader.load(objFile, object => resolve(object));\n\n });\n });\n}\n\n","import * as Three from 'three';\nimport React from 'react';\n\nconst RADIUS = 15;\nconst HEIGHT = 60;\n\n//colors\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\nconst red = new Three.MeshLambertMaterial({color: 0xff0000});\nconst grey = new Three.MeshLambertMaterial({color: 0xCCCCCC});\nconst yellow = new Three.MeshLambertMaterial({color: 0xffff00});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMiddleLOD = makeObjectMiddleLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\n\nfunction makeObjectMaxLOD() {\n\n const bodyGeometry = new Three.CylinderGeometry(0.1, 0.1, 0.5, 32);\n const body = new Three.Mesh(bodyGeometry, red);\n body.position.set(0, 1, 0);\n\n const bodyGeometry2 = new Three.CylinderGeometry(0.11, 0.11, 0.03, 32);\n const lock = new Three.Mesh(bodyGeometry2, black);\n lock.position.set(0, -0.2, 0);\n body.add(lock);\n\n const geometrySphereUp = new Three.SphereGeometry(0.1, 32, 32);\n const sphereUp = new Three.Mesh(geometrySphereUp, red);\n sphereUp.position.set(0, 0.25, 0);\n body.add(sphereUp);\n\n const cylinderGeometry = new Three.CylinderGeometry(0.015, 0.025, 0.05, 32);\n const vent_p1 = new Three.Mesh(cylinderGeometry, black);\n vent_p1.position.z = -0.13;\n vent_p1.position.y = -0.23;\n body.add(vent_p1);\n\n const cylinderGeometry1 = new Three.CylinderGeometry(0.01, 0.01, 0.02, 32);\n const vent_p2 = new Three.Mesh(cylinderGeometry1, grey);\n vent_p2.position.z = -0.13;\n vent_p2.position.y = -0.2;\n body.add(vent_p2);\n\n const cylinderGeometry2 = new Three.CylinderGeometry(0.015, 0.02, 0.04, 32);\n const cylinder2 = new Three.Mesh(cylinderGeometry2, black);\n cylinder2.position.set(0, 0.35, 0);\n body.add(cylinder2);\n\n const cylinderGeometry3 = new Three.CylinderGeometry(0.01, 0.01, 0.02, 32);\n const cylinder3 = new Three.Mesh(cylinderGeometry3, grey);\n cylinder3.position.set(0, 0.38, 0);\n body.add(cylinder3);\n\n const cylinderGeometry4 = new Three.CylinderGeometry(0.005, 0.005, 0.02, 32);\n const cylinder4 = new Three.Mesh(cylinderGeometry4, grey);\n cylinder4.position.set(-0.01, 0.38, 0);\n cylinder4.rotation.z += Math.PI / 2;\n body.add(cylinder4);\n\n const cylinderGeometry5 = new Three.CylinderGeometry(0.02, 0.02, 0.01, 32);\n const cylinder5 = new Three.Mesh(cylinderGeometry5, grey);\n cylinder5.position.set(-0.02, 0.38, 0);\n cylinder5.rotation.z += Math.PI / 2;\n body.add(cylinder5);\n\n const textureLoader = new Three.TextureLoader();\n const gageImage = textureLoader.load(require('./gage-image.png'));\n\n const geometry2 = new Three.PlaneGeometry(0.04, 0.04);\n const material2 = new Three.MeshLambertMaterial({map: gageImage, transparent: true});\n const gage = new Three.Mesh(geometry2, material2);\n gage.position.set(-0.0255, 0.38, 0);\n gage.rotation.y = -Math.PI / 2;\n body.add(gage);\n\n const cylinderGeometry6 = new Three.CylinderGeometry(0.005, 0.005, 0.03, 32);\n const cylinder6 = new Three.Mesh(cylinderGeometry6, grey);\n cylinder6.position.set(0, 0.38, -0.01);\n cylinder6.rotation.z += Math.PI / 2;\n cylinder6.rotation.y += Math.PI / 2;\n body.add(cylinder6);\n\n const cylinderGeometry7 = new Three.CylinderGeometry(0.01, 0.01, 0.02, 32);\n const cylinder7 = new Three.Mesh(cylinderGeometry7, grey);\n cylinder7.position.set(0, 0.38, -0.03);\n cylinder7.rotation.z += Math.PI / 2;\n cylinder7.rotation.y += Math.PI / 2;\n body.add(cylinder7);\n\n const labelImage = textureLoader.load(require('./label-image.png'));\n labelImage.wrapS = Three.RepeatWrapping;\n labelImage.wrapT = Three.RepeatWrapping;\n labelImage.repeat.set(1, 1);\n labelImage.offset.x = 0; // 0.0 - 1.0\n labelImage.offset.y = 0; // 0.0 - 1.0\n\n const points = [\n new Three.Vector2(.1, .666),\n new Three.Vector2(.1, 1)\n ];\n\n const geometry = new Three.LatheGeometry(points, 200, 0, Math.PI);\n const material = new Three.MeshLambertMaterial({map: labelImage});\n const label = new Three.Mesh(geometry, material);\n\n label.rotation.y = 60;\n label.position.y -= .75;\n body.add(label);\n\n const shape2 = new Three.Shape();\n shape2.moveTo(0.02, 0.06);\n shape2.lineTo(0.06, 0.07);\n shape2.lineTo(0.08, 0.1);\n shape2.lineTo(0.16, 0.1);\n shape2.lineTo(0.18, 0.09);\n shape2.lineTo(0.09, 0.08);\n shape2.lineTo(0.07, 0.05);\n shape2.lineTo(0.02, 0.04);\n\n const extrudeSettings = {\n steps: 2,\n depth: 0.02,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n const geometry4 = new Three.ExtrudeGeometry(shape2, extrudeSettings);\n const material4 = new Three.MeshLambertMaterial({color: 0xff0000});\n const valve_p1 = new Three.Mesh(geometry4, material4);\n valve_p1.rotation.y = -Math.PI / 2;\n valve_p1.position.set(0.01, 0.35, -0.035);\n body.add(valve_p1);\n\n const shape3 = new Three.Shape();\n shape3.moveTo(0.02, 0.06);\n shape3.lineTo(0.04, 0.06);\n shape3.lineTo(0.16, 0.05);\n shape3.lineTo(0.18, 0.03);\n shape3.lineTo(0.16, 0.04);\n shape3.lineTo(0.02, 0.04);\n\n const extrudeSettings2 = {\n steps: 2,\n depth: 0.016,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n const geometry5 = new Three.ExtrudeGeometry(shape3, extrudeSettings2);\n const valve_p2 = new Three.Mesh(geometry5, red);\n valve_p2.rotation.y = -Math.PI / 2;\n valve_p2.position.set(0.01, 0.34, -0.035);\n body.add(valve_p2);\n\n const geometry6 = new Three.TorusGeometry(0.0075, 0.00125, 16, 32, 1200);\n const safetyValve_p1 = new Three.Mesh(geometry6, yellow);\n safetyValve_p1.rotation.x = -Math.PI / 2;\n safetyValve_p1.position.set(-0.023, 0.41, 0.02);\n body.add(safetyValve_p1);\n\n const cylinderGeometry8 = new Three.CylinderGeometry(0.001, 0.001, 0.03, 32);\n const safetyValve_p2 = new Three.Mesh(cylinderGeometry8, yellow);\n safetyValve_p2.position.set(0, 0.41, 0.02);\n safetyValve_p2.rotation.z += Math.PI / 2;\n body.add(safetyValve_p2);\n\n const cylinderGeometry9 = new Three.CylinderGeometry(0.0025, 0.0025, 0.026, 32);\n const cylinder9 = new Three.Mesh(cylinderGeometry9, grey);\n cylinder9.position.set(0, 0.40, 0.0);\n cylinder9.rotation.z += Math.PI / 2;\n body.add(cylinder9);\n\n const curve = new Three.CatmullRomCurve3([\n new Three.Vector3(.5, 0, 0),\n new Three.Vector3(.5, 0, 0),\n new Three.Vector3(0, 0, 0),\n new Three.Vector3(-0.03, .1050, 0),\n new Three.Vector3(-0.03, .1050, 0)\n ]);\n\n const geometry7 = new Three.TubeGeometry(curve, 32, 0.008, 16, false);\n const mesh = new Three.Mesh(geometry7, black);\n mesh.position.set(0, 0.35, -0.13);\n mesh.rotation.y -= Math.PI / 2;\n mesh.rotation.z = (Math.PI / 2) + (4 * Math.PI);\n mesh.rotation.x += Math.PI;\n body.add(mesh);\n\n return body\n\n}\n\nfunction makeObjectMiddleLOD() {\n\n let bodyGeometry21 = new Three.CylinderGeometry(0.1, 0.1, 0.5, 8);\n let body1 = new Three.Mesh(bodyGeometry21, red);\n body1.position.set(0, 1, 0);\n\n let bodyGeometry22 = new Three.CylinderGeometry(0.11, 0.11, 0.03, 8);\n let lock2 = new Three.Mesh(bodyGeometry22, black);\n lock2.position.set(0, -0.2, 0);\n body1.add(lock2);\n\n let geometrySphereUp1 = new Three.SphereGeometry(0.095, 32, 8);\n let sphereUp1 = new Three.Mesh(geometrySphereUp1, red);\n sphereUp1.position.set(0, 0.25, 0);\n body1.add(sphereUp1);\n\n return body1\n\n}\n\nfunction makeObjectMinLOD() {\n let bodyGeometry0 = new Three.CylinderGeometry(0.1, 0.1, 0.475, 6);\n let body0 = new Three.Mesh(bodyGeometry0, red);\n body0.position.set(0, .95, 0);\n\n return body0\n}\n\nexport default {\n name: \"fire-extinguisher\",\n prototype: \"items\",\n\n info: {\n tag: ['security'],\n title: \"Fire extinguisher\",\n description: \"Fire extinguisher\",\n image: require('./fire-extinguisher.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let fireExtinguisher2 = new Three.Object3D();\n\n fireExtinguisher2.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(fireExtinguisher2);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n\n fireExtinguisher2.rotation.y += -Math.PI / 2;\n fireExtinguisher2.position.y += -HEIGHT / 1.25 + newAltitude;\n fireExtinguisher2.scale.set(RADIUS / deltaX, RADIUS / deltaX, HEIGHT / deltaY);\n\n /**************** LOD middle ***********************/\n\n let fireExtinguisher1 = new Three.Object3D();\n\n\n fireExtinguisher1.add(objectMiddleLOD.clone());\n\n fireExtinguisher1.position.y += -HEIGHT / 1.25 + newAltitude;\n fireExtinguisher1.scale.set(RADIUS / deltaX, RADIUS / deltaX, HEIGHT / deltaY);\n\n\n /**************** LOD min ***********************/\n\n let fireExtinguisher0 = new Three.Object3D();\n\n fireExtinguisher0.add(objectMinLOD.clone());\n\n fireExtinguisher0.position.y += -HEIGHT / 1.35 + newAltitude;\n fireExtinguisher0.scale.set(RADIUS / deltaX, RADIUS / deltaX, HEIGHT / deltaY);\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(fireExtinguisher2, 200);\n lod.addLevel(fireExtinguisher1, 900);\n lod.addLevel(fireExtinguisher0, 1200);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/electrical-panel/electricalPanel.png\";","module.exports = __webpack_public_path__ + \"catalog/items/electrical-panel/texturePanel.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst cubeMaterial = new Three.MeshLambertMaterial({color: 0xf5f4f4});\n\nfunction makeObjectMaxLOD(newWidth,newHeight,newDepth) {\n\n let electricalPanel = new Three.Mesh();\n\n let textureLoader = new Three.TextureLoader();\n let mat = textureLoader.load(require('./texturePanel.png'));\n\n let cubeGeometryBase = new Three.BoxGeometry(newWidth, newHeight, newDepth);\n\n let p1 = new Three.Mesh(cubeGeometryBase, cubeMaterial);\n p1.position.set(0, 1, 0);\n electricalPanel.add(p1);\n\n let planeGeometryBase = new Three.PlaneGeometry(newWidth, newHeight);\n let planeMaterial = new Three.MeshLambertMaterial({map: mat});\n\n let p2 = new Three.Mesh(planeGeometryBase, planeMaterial);\n p2.position.set(0, 1, 25.5);\n p1.add(p2);\n\n return electricalPanel\n}\n\nfunction makeObjectMinLOD(newWidth,newHeight,newDepth) {\n\n let electricalPanel = new Three.Mesh();\n\n let cubeGeometryBase = new Three.BoxGeometry(newWidth, newHeight, newDepth);\n let p1 = new Three.Mesh(cubeGeometryBase, cubeMaterial);\n p1.position.set(0, 1, 0);\n electricalPanel.add(p1);\n\n return electricalPanel\n}\n\nexport default {\n name: \"pannello_elettrico\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'metal'],\n title: \"electric panel\",\n description: \"electric panel\",\n image: require('./electricalPanel.png')\n },\n properties: {\n width: {\n label: \"width\",\n type: \"length-measure\",\n defaultValue: {\n length: 90,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 50,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 210,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.get('name')}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.get('width').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let newHeight = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n\n /**************** LOD max ***********************/\n\n let elettricalPannel2=new Three.Object3D();\n\n let objectMaxLOD = makeObjectMaxLOD(newWidth,newHeight,newDepth);\n elettricalPannel2.add(objectMaxLOD.clone());\n elettricalPannel2.rotation.y=Math.PI;\n elettricalPannel2.position.y+= newHeight/2 + newAltitude;\n\n /**************** LOD max ***********************/\n\n let elettricalPannel1=new Three.Object3D();\n let objectMinLOD = makeObjectMinLOD(newWidth,newHeight,newDepth);\n elettricalPannel1.add(objectMinLOD.clone());\n elettricalPannel1.rotation.y=Math.PI;\n elettricalPannel1.position.y+= newHeight/2 + newAltitude;\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(elettricalPannel2, 200);\n lod.addLevel(elettricalPannel1, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/deskoffice/desk.png\";","module.exports = __webpack_public_path__ + \"catalog/items/deskoffice/wood.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/deskoffice/white.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst textureLoader = new Three.TextureLoader();\nconst white = textureLoader.load(require(\"./white.jpg\"));\nconst whiteMaterial = new Three.MeshLambertMaterial({color:0x000000});\nconst wood = textureLoader.load(require(\"./wood.jpg\"));\nconst glassMaterial = new Three.MeshLambertMaterial({color:0xc6c6c6,transparent: true, opacity:.5});\n\nfunction makeMonitor(newDepth)\n{\n let monitor = new Three.Object3D();\n\n let cubeGeometryBase = new Three.BoxGeometry(0.04,0.42,0.06);\n let whiteTexture = new Three.MeshLambertMaterial({map:white});\n let edge1 = new Three.Mesh(cubeGeometryBase,whiteTexture);\n edge1.position.set(0,0.79,0);\n edge1.rotation.x=Math.PI/2;\n monitor.add(edge1);\n\n let edge2 = new Three.Mesh(cubeGeometryBase,whiteTexture);\n edge2.position.set(0,0.43,0);\n edge2.rotation.x=Math.PI/2;\n monitor.add(edge2);\n\n let cubeGeometryBase2 = new Three.BoxGeometry(0.04,0.42,0.04);\n let edge3 = new Three.Mesh(cubeGeometryBase2,whiteTexture);\n edge3.position.set(0,0.61,0.21);\n monitor.add(edge3);\n\n let edge4 = new Three.Mesh(cubeGeometryBase2,whiteTexture);\n edge4.position.set(0,0.61,-0.21);\n monitor.add(edge4);\n\n let cubeGeometryBase3 = new Three.BoxGeometry(0.4,0.40,0.05);\n let screen = new Three.Mesh(cubeGeometryBase3,whiteMaterial);\n screen.position.set(-0.02,0.61,0);\n screen.rotation.y=Math.PI/2;\n monitor.add(screen);\n\n monitor.rotation.y-=Math.PI/2;\n monitor.rotation.x-=Math.PI/3;\n\n let value = new Three.Box3().setFromObject(monitor);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n monitor.scale.set(newDepth/3 / deltaX, newDepth/4 / deltaY, newDepth/4 / deltaZ);\n\n return monitor\n}\n\nfunction makeObjectMaxLOD(newWidthA,newWidthB,newHeight,newDepth) {\n\n let desk = new Three.Mesh();\n\n let rectShape = new Three.Shape();\n if(newWidthAnewWidthB) {\n rectShape.moveTo(0, 0);\n rectShape.lineTo(newWidthA, 0);\n rectShape.lineTo(newWidthA + (newWidthB/2 - newWidthA/2), newDepth);\n rectShape.lineTo(-(newWidthB/2-newWidthA/2), newDepth);\n }\n else if(newWidthA===newWidthB){\n rectShape.moveTo( 0,0 );\n rectShape.lineTo( 0, newDepth );\n rectShape.lineTo( newWidthA, newDepth );\n rectShape.lineTo( newWidthA, 0 );\n }\n\n let extrudeSettings = {\n steps: 2,\n depth: newHeight/40,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n\n\n let geometry = new Three.ExtrudeGeometry( rectShape, extrudeSettings );\n let woodTexture = new Three.MeshLambertMaterial({map:wood});\n let mesh = new Three.Mesh( geometry, woodTexture ) ;\n\n mesh.rotation.x+=Math.PI/2;\n mesh.position.y=newHeight/1.8;\n\n let rectShape2 = new Three.Shape();\n let hole = new Three.Path();\n if(newWidthAnewWidthB){\n\n rectShape2.moveTo(0, 0);\n rectShape2.lineTo(newWidthA, 0);\n rectShape2.lineTo(newWidthA + (newWidthB/2 - newWidthA/2), newDepth);\n rectShape2.lineTo(-(newWidthB/2-newWidthA/2), newDepth);\n\n hole.moveTo(newWidthA / 2 - newWidthB / 2 - newWidthA / 20, newDepth / 20);\n hole.lineTo(newWidthA - (newWidthA / 2 - newWidthB / 2) + newWidthA / 20, newDepth / 20);\n hole.lineTo(newWidthB + newWidthA / 20, newDepth - newDepth / 20);\n hole.lineTo(newWidthA - newWidthB - newWidthA / 20, newDepth - newDepth / 20);\n rectShape2.holes.push(hole);\n }\n else if(newWidthA===newWidthB){\n\n rectShape2.moveTo(0, 0);\n rectShape2.lineTo(newWidthA, 0);\n rectShape2.lineTo(newWidthA, newDepth);\n rectShape2.lineTo(0, newDepth);\n\n hole.moveTo(newWidthA/20, newDepth/20);\n hole.lineTo(newWidthA-newWidthA/20, newDepth/20);\n hole.lineTo(newWidthA-newWidthA/20, newDepth-newDepth/20);\n hole.lineTo(newWidthA/20, newDepth-newDepth/20);\n rectShape2.holes.push(hole);\n }\n\n let geometry2 = new Three.ExtrudeGeometry( rectShape2, extrudeSettings );\n let mesh2 = new Three.Mesh( geometry2, woodTexture ) ;\n mesh2.position.y+=newHeight;\n mesh2.position.z+=newDepth/40;\n mesh2.rotation.x+=Math.PI/2;\n\n let mesh3 = new Three.Mesh( geometry, woodTexture ) ;\n mesh3.position.y+=newHeight;\n mesh3.rotation.x+=Math.PI/1.5;\n\n if (newWidthA < newWidthB) {\n mesh3.scale.set(.98,1,1);\n mesh3.position.x += 3;\n }\n if (newWidthA > newWidthB || newWidthA === newWidthB) mesh3.scale.set(1,1,1);\n\n let glass = new Three.Shape();\n if(newWidthAnewWidthB){\n glass.moveTo(newWidthA / 2 - newWidthB / 2 - newWidthA / 20, newDepth / 20);\n glass.lineTo(newWidthA - (newWidthA / 2 - newWidthB / 2) + newWidthA / 20, newDepth / 20);\n glass.lineTo(newWidthB + newWidthA / 20, newDepth - newDepth / 20);\n glass.lineTo(newWidthA - newWidthB - newWidthA / 20, newDepth - newDepth / 20);\n }\n else if (newWidthA===newWidthB){\n glass.moveTo(newWidthA/20, newDepth/20);\n glass.lineTo(newWidthA-newWidthA/20, newDepth/20);\n glass.lineTo(newWidthA-newWidthA/20, newDepth-newDepth/20);\n glass.lineTo(newWidthA/20, newDepth-newDepth/20);\n }\n\n let geometry4 = new Three.ExtrudeGeometry( glass, extrudeSettings );\n let mesh4 = new Three.Mesh( geometry4, glassMaterial ) ;\n mesh4.position.y+=newHeight;\n mesh4.rotation.x+=Math.PI/2;\n\n let geometry5 = new Three.BoxGeometry(newWidthA,newDepth/20,1.6*newHeight);\n let mesh5 = new Three.Mesh(geometry5, woodTexture);\n mesh5.rotation.x+=Math.PI/2;\n mesh5.position.set(newWidthA/2,newHeight/5,0);\n\n let c;\n\n if(newWidthAnewWidthB)\n c = (newWidthA/2 - newWidthB/2);\n\n let value = (newDepth)/c;\n let angle = Math.atan(value);\n let edge;\n\n edge = Math.sqrt(Math.pow(c,2)+Math.pow(newDepth,2));\n\n if (newWidthA===newWidthB) edge = newDepth;\n\n let geometry6 = new Three.BoxGeometry(edge,newDepth/20,1.6*newHeight);\n let mesh6 = new Three.Mesh(geometry6, woodTexture);\n mesh6.rotation.x+=Math.PI/2;\n\n if(newWidthAnewWidthB) {\n mesh6.position.set((newWidthA- (newWidthA/2+newWidthB/2))/2, newHeight / 5, newDepth / 2);\n mesh6.rotation.z+=angle;\n }\n else if(newWidthA===newWidthB) {\n mesh6.position.set(0, newHeight / 5, newDepth / 2);\n mesh6.rotation.z+=Math.PI/2;\n }\n\n\n let mesh7 = mesh6.clone();\n if(newWidthAnewWidthB) {\n mesh7.position.set(newWidthA - (newWidthA/2 - newWidthB/2)/2, newHeight / 5, newDepth / 2);\n mesh7.rotation.z=-Math.PI - angle;\n }\n else if(newWidthA===newWidthB) {\n mesh7.position.set(newWidthB,newHeight/5,newDepth/2);\n }\n\n let index;\n let indexMonitor;\n let lastPosition;\n let lastPositionMonitor;\n let incrPosition;\n\n if (newWidthAnewWidthB){\n index = newWidthA/2 - newWidthB/2;\n indexMonitor = 2 * (newWidthA/2 - newWidthB/2);\n lastPosition = newWidthA - (newWidthA/2 - newWidthB/2);\n lastPositionMonitor = newWidthA - 2 * (newWidthA/2 - newWidthB/2);\n incrPosition = newWidthA/2 - newWidthB/2;\n }\n else if (newWidthA===newWidthB){\n index = 0;\n indexMonitor = newWidthA/8;\n lastPosition = newWidthA;\n lastPositionMonitor = newWidthA - newWidthA/8;\n incrPosition = newWidthA/8;\n }\n\n for ( let i = index + incrPosition; i < lastPosition; i+=incrPosition) {\n\n let geometry8 = new Three.BoxGeometry(newDepth,newDepth/20,1.55*newHeight);\n let mesh8 = new Three.Mesh(geometry8, woodTexture);\n mesh8.rotation.x=Math.PI/2;\n mesh8.rotation.z=Math.PI/2;\n mesh8.position.x+=i;\n mesh8.position.y+=newHeight/5;\n mesh8.position.z+=newDepth/2;\n desk.add(mesh8);\n\n }\n\n desk.add(mesh);\n desk.add(mesh2);\n desk.add(mesh3);\n desk.add(mesh4);\n desk.add(mesh5);\n desk.add(mesh6);\n desk.add(mesh7);\n\n\n for (let i = indexMonitor + incrPosition/2; i < lastPositionMonitor ; i += incrPosition) {\n let monitor2 = makeMonitor(newDepth);\n monitor2.position.x = i;\n monitor2.position.z += 1.15*newDepth;\n monitor2.position.y += mesh3.position.y/2.2;\n desk.add(monitor2);\n }\n\n return desk\n}\n\nfunction makeObjectMinLOD(newWidthA,newWidthB,newHeight,newDepth) {\n\n let desk = new Three.Mesh();\n\n let rectShape = new Three.Shape();\n if(newWidthAnewWidthB) {\n rectShape.moveTo(0, 0);\n rectShape.lineTo(newWidthA, 0);\n rectShape.lineTo(newWidthA + (newWidthB/2 - newWidthA/2), newDepth);\n rectShape.lineTo(-(newWidthB/2-newWidthA/2), newDepth);\n }\n else if(newWidthA===newWidthB){\n rectShape.moveTo( 0,0 );\n rectShape.lineTo( 0, newDepth );\n rectShape.lineTo( newWidthA, newDepth );\n rectShape.lineTo( newWidthA, 0 );\n }\n\n let extrudeSettings = {\n steps: 2,\n depth: newHeight/40,\n bevelEnabled: false,\n bevelThickness: newHeight,\n bevelSize: newHeight,\n bevelSegments: 2\n };\n\n\n\n let geometry = new Three.ExtrudeGeometry( rectShape, extrudeSettings );\n let woodTexture = new Three.MeshLambertMaterial({map:wood});\n let mesh = new Three.Mesh( geometry, woodTexture ) ;\n\n mesh.rotation.x+=Math.PI/2;\n mesh.position.y=newHeight/1.8;\n\n let rectShape2 = new Three.Shape();\n let hole = new Three.Path();\n if(newWidthAnewWidthB){\n\n rectShape2.moveTo(0, 0);\n rectShape2.lineTo(newWidthA, 0);\n rectShape2.lineTo(newWidthA + (newWidthB/2 - newWidthA/2), newDepth);\n rectShape2.lineTo(-(newWidthB/2-newWidthA/2), newDepth);\n\n hole.moveTo(newWidthA / 2 - newWidthB / 2 - newWidthA / 20, newDepth / 20);\n hole.lineTo(newWidthA - (newWidthA / 2 - newWidthB / 2) + newWidthA / 20, newDepth / 20);\n hole.lineTo(newWidthB + newWidthA / 20, newDepth - newDepth / 20);\n hole.lineTo(newWidthA - newWidthB - newWidthA / 20, newDepth - newDepth / 20);\n rectShape2.holes.push(hole);\n }\n else if(newWidthA===newWidthB){\n\n rectShape2.moveTo(0, 0);\n rectShape2.lineTo(newWidthA, 0);\n rectShape2.lineTo(newWidthA, newDepth);\n rectShape2.lineTo(0, newDepth);\n\n hole.moveTo(newWidthA/20, newDepth/20);\n hole.lineTo(newWidthA-newWidthA/20, newDepth/20);\n hole.lineTo(newWidthA-newWidthA/20, newDepth-newDepth/20);\n hole.lineTo(newWidthA/20, newDepth-newDepth/20);\n rectShape2.holes.push(hole);\n }\n\n let geometry2 = new Three.ExtrudeGeometry( rectShape2, extrudeSettings );\n let mesh2 = new Three.Mesh( geometry2, woodTexture ) ;\n mesh2.position.y+=newHeight;\n mesh2.position.z+=newDepth/40;\n mesh2.rotation.x+=Math.PI/2;\n\n let mesh3 = new Three.Mesh( geometry, woodTexture ) ;\n mesh3.position.y+=newHeight;\n mesh3.rotation.x+=Math.PI/1.5;\n\n if (newWidthA < newWidthB) {\n mesh3.scale.set(.98,1,1);\n mesh3.position.x += 3;\n }\n if (newWidthA > newWidthB || newWidthA === newWidthB) mesh3.scale.set(1,1,1);\n\n let glass = new Three.Shape();\n if(newWidthAnewWidthB){\n glass.moveTo(newWidthA / 2 - newWidthB / 2 - newWidthA / 20, newDepth / 20);\n glass.lineTo(newWidthA - (newWidthA / 2 - newWidthB / 2) + newWidthA / 20, newDepth / 20);\n glass.lineTo(newWidthB + newWidthA / 20, newDepth - newDepth / 20);\n glass.lineTo(newWidthA - newWidthB - newWidthA / 20, newDepth - newDepth / 20);\n }\n else if (newWidthA===newWidthB){\n glass.moveTo(newWidthA/20, newDepth/20);\n glass.lineTo(newWidthA-newWidthA/20, newDepth/20);\n glass.lineTo(newWidthA-newWidthA/20, newDepth-newDepth/20);\n glass.lineTo(newWidthA/20, newDepth-newDepth/20);\n }\n\n let geometry4 = new Three.ExtrudeGeometry( glass, extrudeSettings );\n let glassMaterial = new Three.MeshLambertMaterial({color:0xc6c6c6,transparent: true, opacity:.5});\n let mesh4 = new Three.Mesh( geometry4, glassMaterial ) ;\n mesh4.position.y+=newHeight;\n mesh4.rotation.x+=Math.PI/2;\n\n let geometry5 = new Three.BoxGeometry(newWidthA,newDepth/20,1.6*newHeight);\n let mesh5 = new Three.Mesh(geometry5, woodTexture);\n mesh5.rotation.x+=Math.PI/2;\n mesh5.position.set(newWidthA/2,newHeight/5,0);\n\n let c;\n\n if(newWidthAnewWidthB)\n c = (newWidthA/2 - newWidthB/2);\n\n let value = (newDepth)/c;\n let angle = Math.atan(value);\n let edge;\n\n edge = Math.sqrt(Math.pow(c,2)+Math.pow(newDepth,2));\n\n if (newWidthA===newWidthB) edge = newDepth;\n\n let geometry6 = new Three.BoxGeometry(edge,newDepth/20,1.6*newHeight);\n let mesh6 = new Three.Mesh(geometry6, woodTexture);\n mesh6.rotation.x+=Math.PI/2;\n\n if(newWidthAnewWidthB) {\n mesh6.position.set((newWidthA- (newWidthA/2+newWidthB/2))/2, newHeight / 5, newDepth / 2);\n mesh6.rotation.z+=angle;\n }\n else if(newWidthA===newWidthB) {\n mesh6.position.set(0, newHeight / 5, newDepth / 2);\n mesh6.rotation.z+=Math.PI/2;\n }\n\n\n let mesh7 = mesh6.clone();\n if(newWidthAnewWidthB) {\n mesh7.position.set(newWidthA - (newWidthA/2 - newWidthB/2)/2, newHeight / 5, newDepth / 2);\n mesh7.rotation.z=-Math.PI - angle;\n }\n else if(newWidthA===newWidthB) {\n mesh7.position.set(newWidthB,newHeight/5,newDepth/2);\n }\n\n desk.add(mesh);\n desk.add(mesh2);\n desk.add(mesh3);\n desk.add(mesh4);\n desk.add(mesh5);\n desk.add(mesh6);\n desk.add(mesh7);\n\n return desk\n}\n\nexport default {\n name: \"desk\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'wood'],\n title: \"desk\",\n description: \"desk\",\n image: require('./desk.png')\n },\n\n properties: {\n widthA: {\n label: \"larghezza lato A\",\n type: \"length-measure\",\n defaultValue: {\n length: 400,\n unit: 'cm'\n }\n },\n widthB: {\n label: \"larghezza lato B\",\n type: \"length-measure\",\n defaultValue: {\n length: 400,\n unit: 'cm'\n }\n },\n depth: {\n label: \"depth\",\n type: \"length-measure\",\n defaultValue: {\n length: 90,\n unit: 'cm'\n }\n },\n height: {\n label: \"height\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidthA = element.properties.get('widthA').get('length');\n let newWidthB = element.properties.get('widthB').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidthA = element.properties.get('widthA').get('length');\n let newWidthB = element.properties.get('widthB').get('length');\n let newDepth = element.properties.get('depth').get('length');\n let newHeight = element.properties.get('height').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n /********** lod max **********/\n\n let scrivaniaMaxLOD = new Three.Object3D();\n scrivaniaMaxLOD.add(makeObjectMaxLOD(newWidthA,newWidthB,newHeight,newDepth).clone());\n\n let aa = new Three.Box3().setFromObject(scrivaniaMaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n scrivaniaMaxLOD.position.y += newHeight/2 + newAltitude;\n scrivaniaMaxLOD.position.z += newDepth/2;\n if (newWidthAnewWidthB)\n scrivaniaMaxLOD.position.x += newWidthA/2;\n if (newWidthA===newWidthB)\n scrivaniaMaxLOD.position.x += newWidthB/2;\n\n scrivaniaMaxLOD.rotation.y += Math.PI;\n if(newWidthAnewWidthB)\n scrivaniaMaxLOD.scale.set(newWidthA / deltaX, newDepth / deltaY, newHeight / deltaZ);\n if(newWidthA===newWidthB)\n scrivaniaMaxLOD.scale.set(newWidthA / deltaX, newDepth / deltaY, newHeight / deltaZ);\n\n /********** lod min **********/\n\n let scrivaniaMinLOD = new Three.Object3D();\n scrivaniaMinLOD.add(makeObjectMinLOD(newWidthA,newWidthB,newHeight,newDepth).clone());\n\n scrivaniaMinLOD.position.y += newHeight/2 + newAltitude;\n scrivaniaMinLOD.position.z += newDepth/2;\n if (newWidthAnewWidthB)\n scrivaniaMinLOD.position.x += newWidthA/2;\n if (newWidthA===newWidthB)\n scrivaniaMinLOD.position.x += newWidthB/2;\n\n scrivaniaMinLOD.rotation.y += Math.PI;\n if(newWidthAnewWidthB)\n scrivaniaMinLOD.scale.set(newWidthA / deltaX, newDepth / deltaY, newHeight / deltaZ);\n if(newWidthA===newWidthB)\n scrivaniaMinLOD.scale.set(newWidthA / deltaX, newDepth / deltaY, newHeight / deltaZ);\n\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(scrivaniaMaxLOD, 700);\n lod.addLevel(scrivaniaMinLOD, 1000);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/deskdouble/deskdouble.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 120;\nconst DEPTH = 50;\nconst HEIGHT = 90;\n\nconst brown = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\nconst grey = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\nconst green = new Three.MeshBasicMaterial({color:0x669966});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let deskdouble = new Three.Mesh();\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let radius = .03;\n\n let geometry = new Three.BoxGeometry( newWidth+newWidth/6, newHeight/20, newDepth+newDepth/4 );\n\n let boxMaterials = [ brown, brown, green, brown, brown, brown];\n\n let plane = new Three.Mesh( geometry, boxMaterials);\n plane.position.y = newHeight;\n deskdouble.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( radius, radius, newHeight, 32, 32 );\n\n let geometry2 = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane2 = new Three.Mesh( geometry2, brown );\n plane2.position.y = newHeight/2+newHeight/4;\n deskdouble.add(plane2);\n\n let geometry3 = new Three.BoxGeometry( newWidth, newHeight/10, newDepth/20 );\n let plane3 = new Three.Mesh( geometry3, brown );\n plane3.position.y = newHeight/2+newHeight/4+newHeight/16;\n plane3.position.z = newDepth/3+newDepth/5;\n deskdouble.add(plane3);\n\n let leg1 = new Three.Mesh( geometry_legs, grey );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n deskdouble.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, grey );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n deskdouble.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, grey );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n deskdouble.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, grey );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n deskdouble.add(leg4);\n\n return deskdouble\n}\n\nfunction makeObjectMinLOD() {\n\n let deskdouble = new Three.Mesh();\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let radius = .03;\n\n let geometry = new Three.BoxGeometry( newWidth+newWidth/6, newHeight/20, newDepth+newDepth/4 );\n\n let boxMaterials = [ brown, brown, green, brown, brown, brown];\n\n let plane = new Three.Mesh( geometry, boxMaterials);\n plane.position.y = newHeight;\n deskdouble.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( radius, radius, newHeight, 8, 8 );\n\n let geometry2 = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane2 = new Three.Mesh( geometry2, brown );\n plane2.position.y = newHeight/2+newHeight/4;\n deskdouble.add(plane2);\n\n let geometry3 = new Three.BoxGeometry( newWidth, newHeight/10, newDepth/20 );\n let plane3 = new Three.Mesh( geometry3, brown );\n plane3.position.y = newHeight/2+newHeight/4+newHeight/16;\n plane3.position.z = newDepth/3+newDepth/5;\n deskdouble.add(plane3);\n\n let leg1 = new Three.Mesh( geometry_legs, grey );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n deskdouble.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, grey );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n deskdouble.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, grey );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n deskdouble.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, grey );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n deskdouble.add(leg4);\n\n return deskdouble\n}\n\nexport default {\n name: 'double school desk',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood'],\n title: 'double school desk',\n description: 'double school desk',\n image: require('./deskdouble.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /*************** lod max *******************/\n\n let deskdoubleMaxLOD = new Three.Object3D();\n deskdoubleMaxLOD.add(objectMaxLOD.clone());\n\n let valueObject = new Three.Box3().setFromObject(deskdoubleMaxLOD);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n deskdoubleMaxLOD.rotation.y += Math.PI;\n deskdoubleMaxLOD.position.y += newAltitude;\n deskdoubleMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /*************** lod min *******************/\n\n let deskdoubleMinLOD = new Three.Object3D();\n deskdoubleMinLOD.add(objectMinLOD.clone());\n deskdoubleMinLOD.rotation.y += Math.PI;\n deskdoubleMinLOD.position.y += newAltitude;\n deskdoubleMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(deskdoubleMaxLOD, 200);\n lod.addLevel(deskdoubleMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/desk/desk.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 70;\nconst DEPTH = 50;\nconst HEIGHT = 90;\n\nconst brown = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\nconst grey = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\nconst green = new Three.MeshBasicMaterial({color:0x669966});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let desk = new Three.Mesh();\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let radius = .03;\n\n let geometry = new Three.BoxGeometry( newWidth+newWidth/6, newHeight/20, newDepth+newDepth/4 );\n\n let boxMaterials = [ brown, brown, green, brown, brown, brown];\n\n let plane = new Three.Mesh( geometry, boxMaterials);\n plane.position.y = newHeight;\n desk.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( radius, radius, newHeight, 32, 32 );\n\n let geometry2 = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane2 = new Three.Mesh( geometry2, brown );\n plane2.position.y = newHeight/2+newHeight/4;\n desk.add(plane2);\n\n let geometry3 = new Three.BoxGeometry( newWidth, newHeight/10, newDepth/20 );\n let plane3 = new Three.Mesh( geometry3, brown );\n plane3.position.y = newHeight/2+newHeight/4+newHeight/16;\n plane3.position.z = newDepth/3+newDepth/5;\n desk.add(plane3);\n\n let leg1 = new Three.Mesh( geometry_legs, grey );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n desk.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, grey );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n desk.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, grey );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n desk.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, grey );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n desk.add(leg4);\n\n return desk\n}\n\nfunction makeObjectMinLOD() {\n\n let desk = new Three.Mesh();\n\n let newDepth = .5;\n let newWidth = .9;\n let newHeight = 1;\n let radius = .03;\n\n let geometry = new Three.BoxGeometry( newWidth+newWidth/6, newHeight/20, newDepth+newDepth/4 );\n\n let boxMaterials = [ brown, brown, green, brown, brown, brown];\n\n let plane = new Three.Mesh( geometry, boxMaterials);\n plane.position.y = newHeight;\n desk.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry( radius, radius, newHeight, 32, 32 );\n\n let geometry2 = new Three.BoxGeometry( newWidth, newHeight/20, newDepth );\n let plane2 = new Three.Mesh( geometry2, brown );\n plane2.position.y = newHeight/2+newHeight/4;\n desk.add(plane2);\n\n let geometry3 = new Three.BoxGeometry( newWidth, newHeight/10, newDepth/20 );\n let plane3 = new Three.Mesh( geometry3, brown );\n plane3.position.y = newHeight/2+newHeight/4+newHeight/16;\n plane3.position.z = newDepth/3+newDepth/5;\n desk.add(plane3);\n\n let leg1 = new Three.Mesh( geometry_legs, grey );\n leg1.position.x = newWidth/2;\n leg1.position.z = newDepth/2;\n leg1.position.y = newHeight/2;\n desk.add(leg1);\n\n let leg2 = new Three.Mesh( geometry_legs, grey );\n leg2.position.x = newWidth/2;\n leg2.position.z = -newDepth/2;\n leg2.position.y = newHeight/2;\n desk.add(leg2);\n\n let leg3 = new Three.Mesh( geometry_legs, grey );\n leg3.position.x = -newWidth/2;\n leg3.position.z = newDepth/2;\n leg3.position.y = newHeight/2;\n desk.add(leg3);\n\n let leg4 = new Three.Mesh( geometry_legs, grey );\n leg4.position.x = -newWidth/2;\n leg4.position.z = -newDepth/2;\n leg4.position.y = newHeight/2;\n desk.add(leg4);\n\n return desk\n}\n\nexport default {\n name: 'school desk',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood'],\n title: 'school desk',\n description: 'school desk',\n image: require('./desk.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************* lod max ******************/\n\n let deskMaxLOD = new Three.Object3D();\n deskMaxLOD.add(objectMaxLOD.clone());\n\n let valueObject = new Three.Box3().setFromObject(deskMaxLOD);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n deskMaxLOD.rotation.y+=Math.PI;\n deskMaxLOD.position.y+= newAltitude;\n deskMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ );\n\n /************* lod min ******************/\n\n let deskMinLOD = new Three.Object3D();\n deskMinLOD.add(objectMinLOD.clone());\n deskMinLOD.rotation.y+=Math.PI;\n deskMinLOD.position.y+= newAltitude;\n deskMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ );\n\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(deskMaxLOD, 200);\n lod.addLevel(deskMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/cube/cube.png\";","import React from 'react';\nimport { BoxGeometry, MeshBasicMaterial, Mesh, BoxHelper } from 'three';\nimport { ReactPlannerSharedStyle } from 'react-planner';\n\nexport default {\n name: 'cube',\n prototype: 'items',\n\n info: {\n title: 'cube',\n tag: ['demo'],\n description: 'Demo item',\n image: require('./cube.png')\n },\n\n properties: {\n color: {\n label: 'Color',\n type: 'color',\n defaultValue: ReactPlannerSharedStyle.AREA_MESH_COLOR.unselected\n },\n width: {\n label: 'Width',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n height: {\n label: 'Height',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n depth: {\n label: 'Depth',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n },\n\n render2D: (element, layer, scene) => {\n let style = {\n stroke: !element.selected ? ReactPlannerSharedStyle.LINE_MESH_COLOR.unselected : ReactPlannerSharedStyle.MESH_SELECTED,\n strokeWidth: 2,\n fill: element.properties.get('color')\n };\n\n let w = element.properties.getIn(['width', 'length']);\n let d = element.properties.getIn(['depth', 'length']);\n let w2 = w / 2;\n let d2 = d / 2;\n\n return (\n \n \n \n );\n },\n\n render3D: (element, layer, scene) => {\n let w = element.properties.getIn(['width', 'length']);\n let h = element.properties.getIn(['height', 'length']);\n let d = element.properties.getIn(['depth', 'length']);\n let geometry = new BoxGeometry(w, h, d);\n let material = new MeshBasicMaterial({\n color: element.properties.get('color')\n });\n\n let mesh = new Mesh(geometry, material);\n\n let box = new BoxHelper(mesh, !element.selected ? ReactPlannerSharedStyle.LINE_MESH_COLOR.unselected : ReactPlannerSharedStyle.MESH_SELECTED );\n box.material.linewidth = 2;\n box.renderOrder = 1000;\n mesh.add(box);\n\n mesh.position.y = (h / 2);\n\n return Promise.resolve(mesh);\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/column/column.png\";","module.exports = __webpack_public_path__ + \"catalog/items/column/copper.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nlet textureLoader = new Three.TextureLoader();\nlet mat=textureLoader.load(require('./copper.jpg'));\nlet frameMaterial = new Three.MeshLambertMaterial({map:mat});\n\nfunction makeObjectMaxLOD(RADIUS,HEIGHT) {\n\n let RADIUS_10 = RADIUS/10;\n let RADIUS_2_5 = RADIUS/2.5;\n\n let column = new Three.Mesh();\n let object = new Three.Mesh(new Three.CylinderGeometry(RADIUS, RADIUS, HEIGHT, 32), frameMaterial);\n\n let frame1 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 32), frameMaterial);\n let frame2 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 32), frameMaterial);\n let frame3 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 32), frameMaterial);\n let frame4 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 32), frameMaterial);\n\n frame1.position.x+=RADIUS_2_5;\n frame1.position.z+=RADIUS_2_5;\n frame2.position.x-=RADIUS_2_5;\n frame2.position.z-=RADIUS_2_5;\n frame3.position.x-=RADIUS_2_5;\n frame3.position.z+=RADIUS_2_5;\n frame4.position.x+=RADIUS_2_5;\n frame4.position.z-=RADIUS_2_5;\n column.add(frame1);\n column.add(frame2);\n column.add(frame3);\n column.add(frame4);\n column.add(object);\n\n return column\n}\n\nfunction makeObjectMinLOD(RADIUS,HEIGHT) {\n\n let RADIUS_10 = RADIUS/10;\n let RADIUS_2_5 = RADIUS/2.5;\n\n let column = new Three.Mesh();\n let object = new Three.Mesh(new Three.CylinderGeometry(RADIUS, RADIUS, HEIGHT, 6, 6), frameMaterial);\n\n let frame1 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 6), frameMaterial);\n let frame2 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 6), frameMaterial);\n let frame3 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 6), frameMaterial);\n let frame4 = new Three.Mesh(new Three.CylinderGeometry(RADIUS_10, RADIUS_10, HEIGHT+HEIGHT/10, 6), frameMaterial);\n\n frame1.position.x+=RADIUS_2_5;\n frame1.position.z+=RADIUS_2_5;\n frame2.position.x-=RADIUS_2_5;\n frame2.position.z-=RADIUS_2_5;\n frame3.position.x-=RADIUS_2_5;\n frame3.position.z+=RADIUS_2_5;\n frame4.position.x+=RADIUS_2_5;\n frame4.position.z-=RADIUS_2_5;\n column.add(frame1);\n column.add(frame2);\n column.add(frame3);\n column.add(frame4);\n column.add(object);\n\n return column\n}\nexport default {\n name: 'round column',\n prototype: 'items',\n\n info: {\n tag: ['structure'],\n title: 'round column',\n description: 'round column',\n image: require('./column.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n height:{\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 300,\n unit: 'cm'\n }\n },\n radius:{\n label: 'radius',\n type: 'length-measure',\n defaultValue: {\n length: 20,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n\n let RADIUS = element.properties.get('radius').get('length');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let circleStyle = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let HEIGHT = element.properties.get('height').get('length');\n let RADIUS = element.properties.get('radius').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n\n /**************** LOD max ***********************/\n\n let columnMaxLOD = new Three.Object3D();\n let objectMaxLOD = makeObjectMaxLOD(RADIUS,HEIGHT);\n columnMaxLOD.add(objectMaxLOD.clone());\n columnMaxLOD.position.y += HEIGHT / 2 + newAltitude;\n\n /**************** LOD min ***********************/\n\n let columnMinLOD = new Three.Object3D();\n let objectMinLOD = makeObjectMinLOD(RADIUS,HEIGHT);\n columnMinLOD.add(objectMinLOD.clone());\n columnMinLOD.position.y += HEIGHT / 2 + newAltitude;\n\n /*** add all Level of Detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(columnMaxLOD, 1300);\n lod.addLevel(columnMinLOD, 2000);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/column-square/square_column.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst material = new Three.MeshLambertMaterial({color: 0xf5f4f4});\n\nexport default {\n name: 'square column',\n prototype: 'items',\n\n info: {\n tag: ['structure'],\n title: 'square column',\n description: 'column',\n image: require('./square_column.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n height:{\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 300,\n unit: 'cm'\n }\n },\n width:{\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 50,\n unit: 'cm'\n }\n },\n depth:{\n label: 'depth',\n type: 'length-measure',\n defaultValue: {\n length: 50,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let width = element.properties.get('width').get('length');\n let depth = element.properties.get('depth').get('length');\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let circleStyle = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let HEIGHT = element.properties.get('height').get('length');\n let width = element.properties.get('width').get('length');\n let depth = element.properties.get('depth').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n let column = new Three.Object3D();\n\n let object = new Three.Mesh(new Three.BoxGeometry(width,HEIGHT,depth, 32), material);\n\n column.add(object);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(column, 0x99c3fb);\n bbox.material.linewidth = 10;\n bbox.renderOrder = 5000;\n bbox.material.depthTest = false;\n column.add(bbox);\n }\n\n column.position.y += HEIGHT / 2 + newAltitude;\n column.position.x += width / 2;\n\n\n return Promise.resolve(column);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/coat-hook/wood.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/coat-hook/coat-hook.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 200;\nconst DEPTH = 20;\nconst HEIGHT = 40;\n\nexport default {\n name: 'coat-hook',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'optional'],\n title: 'Coat hook',\n description: 'Coat hook',\n image: require('./coat-hook.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 120,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let coatHook = new Three.Object3D();\n\n let newWidth = 2.15;\n let newDepth = .04;\n let newHeight = .1;\n let radius = .0125;\n\n let texture = new Three.TextureLoader().load(require('./wood.jpg'));\n let materialTexture = new Three.MeshLambertMaterial({map: texture});\n\n let geometry = new Three.BoxGeometry(newWidth, 1.5 * newHeight, newDepth);\n //let material = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\n let plane = new Three.Mesh(geometry, materialTexture);\n plane.position.y = newHeight / 2;\n coatHook.add(plane);\n\n let geometry_legs = new Three.CylinderGeometry(radius, radius, newHeight / 1.7, 32);\n let material_legs = new Three.MeshLambertMaterial({color: 0xd9d7d7});\n let p1 = new Three.Mesh(geometry_legs, material_legs);\n p1.rotation.x += Math.PI / 2;\n p1.position.set(1, 0.05, 0.05);\n coatHook.add(p1);\n\n let p2 = new Three.Mesh(geometry_legs, material_legs);\n p2.rotation.x += Math.PI / 2;\n p2.position.set(-.95, 0.05, 0.05);\n coatHook.add(p2);\n\n let geometrySphereUp = new Three.SphereGeometry(0.035, 32, 32);\n let sphere = new Three.Mesh(geometrySphereUp, material_legs);\n sphere.position.set(1, 0.05, 0.08);\n sphere.scale.set(1, 1, .5);\n coatHook.add(sphere);\n\n let sphere2 = new Three.Mesh(geometrySphereUp, material_legs);\n sphere2.position.set(-.95, 0.05, 0.08);\n sphere2.scale.set(1, 1, .5);\n coatHook.add(sphere2);\n\n\n let newHeight2 = .2;\n\n let curve = new Three.CatmullRomCurve3([\n new Three.Vector3(.05, 0.125, 0),\n new Three.Vector3(.125, .025, 0),\n new Three.Vector3(-.05, -.075, 0),\n ]);\n\n\n for (let i = -0.95; i <= 1.05; i += 0.15) {\n\n let geometry_legs2 = new Three.CylinderGeometry(radius, radius, newHeight2, 32);\n let p3 = new Three.Mesh(geometry_legs2, material_legs);\n p3.position.set(i, -0.05, 0);\n coatHook.add(p3);\n\n let geometry3 = new Three.TubeGeometry(curve, 32, .015, 16, false);\n let mesh3 = new Three.Mesh(geometry3, material_legs);\n mesh3.position.set(i, -.05, .045);\n mesh3.rotation.y -= Math.PI / 2;\n mesh3.rotation.x += Math.PI + Math.PI / 7.5;\n mesh3.rotation.z += Math.PI / 2;\n coatHook.add(mesh3);\n\n let geometrySphere = new Three.SphereGeometry(0.035, 32, 32);\n let sphereTop = new Three.Mesh(geometrySphere, material_legs);\n sphereTop.position.set(i, -0.142, 0.15);\n sphereTop.rotation.x += Math.PI / 2 + Math.PI / 3;\n coatHook.add(sphereTop);\n\n }\n\n\n let value = new Three.Box3().setFromObject(coatHook);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(coatHook, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n coatHook.add(bbox);\n }\n\n coatHook.rotation.y += Math.PI;\n coatHook.position.y += HEIGHT / 1.5 + newAltitude;\n coatHook.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n return Promise.resolve(coatHook);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/cleaningcart/cleaning_cart.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 100;\nconst DEPTH = 80;\nconst HEIGHT = 100;\n\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\nconst grey = new Three.MeshLambertMaterial({color: 0xC0C0C0});\nconst red = new Three.MeshLambertMaterial({color: 0xCC0000});\nconst blue = new Three.MeshLambertMaterial({color: 0x000066});\nconst yellow = new Three.MeshLambertMaterial({color: 0xF7DA00});\nconst green = new Three.MeshLambertMaterial({color: 0x006633});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n //base\n let cleaning_cart = new Three.Mesh(new Three.BoxGeometry(1,0.75,0.05),grey);\n\n for(let rx=-0.4;rx<=0.45;rx+=0.85)\n {\n for(let rz=-0.3;rz<=0.3;rz+=0.6)\n {\n\n let tire = new Three.Mesh(new Three.CylinderGeometry(0.08,0.08,0.05,32),black);\n tire.position.set(rx,rz,0.15);\n cleaning_cart.add(tire);\n\n let bearing = new Three.Mesh(new Three.CylinderGeometry(0.06,0.06,0.06,32),grey);\n tire.add(bearing);\n\n let nut = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.08,6),black);\n nut.position.set(0,0,0);\n tire.add(nut);\n\n let coverUp = new Three.Mesh(new Three.CylinderGeometry(0.06,0.06,0.01,32), grey);\n coverUp.rotation.x=0.5*Math.PI;\n coverUp.position.set(-0.03,0,-0.12);\n tire.add(coverUp);\n\n let coverDown = new Three.Mesh(new Three.CylinderGeometry(0.03725,0.03725,0.03,32), black);\n coverDown.rotation.x=0.5*Math.PI;\n coverDown.position.set(-0.03,0,-0.1);\n tire.add(coverDown);\n\n let p1Geometry = new Three.CylinderGeometry(0.055,0.055,0.005,3);\n let p1_left = new Three.Mesh(p1Geometry, grey);\n p1_left.position.set(-0.02,-0.035,-0.06);\n tire.add(p1_left);\n\n let p2Geometry = new Three.BoxGeometry(0.055,0.11,0.005);\n let p2_left = new Three.Mesh(p2Geometry,grey);\n p2_left.rotation.x=0.5*Math.PI;\n p2_left.position.set(0,-0.035,-0.04);\n tire.add(p2_left);\n\n let p1_right = new Three.Mesh(p1Geometry, grey);\n p1_right.position.set(-0.02,0.035,-0.06);\n tire.add(p1_right);\n\n let p2_right = new Three.Mesh(p2Geometry,grey);\n p2_right.rotation.x=0.5*Math.PI;\n p2_right.position.set(0,0.035,-0.04);\n tire.add(p2_right);\n\n let p3 = new Three.Mesh(new Three.BoxGeometry(0.095,0.075,0.01),grey);\n p3.position.set(-0.02,0,-0.09);\n tire.add(p3);\n\n }\n }\n\n //drawer support\n let drawerSupportGeometry = new Three.BoxGeometry(0.85,0.75,0.05);\n let drawer_p1 = new Three.Mesh(drawerSupportGeometry,grey);\n drawer_p1.position.set(0.475,0,-0.45);\n drawer_p1.rotation.y=0.5*Math.PI;\n cleaning_cart.add(drawer_p1);\n\n let drawer_p2 = new Three.Mesh(drawerSupportGeometry,grey);\n drawer_p2.position.set(0,0,-0.45);\n drawer_p2.rotation.y=0.5*Math.PI;\n cleaning_cart.add(drawer_p2);\n\n //base top\n let baseTop = new Three.Mesh(new Three.BoxGeometry(0.5,0.75,0.05),grey);\n baseTop.position.set(0.25,0,-0.8);\n cleaning_cart.add(baseTop);\n\n let gz;\n\n //shelfs guide\n for(gz=-0.74;gz<=-0.1;gz+=0.25)\n {\n let shelfGeometry = new Three.BoxGeometry(0.05,0.75,0.02);\n let shelf_1 = new Three.Mesh(shelfGeometry,grey);\n shelf_1.position.set(0.45,0,gz);\n cleaning_cart.add(shelf_1);\n\n let shelf_2 = new Three.Mesh(shelfGeometry,grey);\n shelf_2.position.set(0.025,0,gz);\n cleaning_cart.add(shelf_2);\n }\n\n let cz;\n\n //lateral drawers\n for(cz=-0.76;cz<=-0.1;cz+=0.25)\n {\n //border\n let drawerBorderGeometry = new Three.BoxGeometry(0.05,0.75,0.015);\n let drawerBorder_1 = new Three.Mesh(drawerBorderGeometry,blue);\n drawerBorder_1.position.set(0.42,0,cz);\n cleaning_cart.add(drawerBorder_1);\n\n let drawerBorder_2 = new Three.Mesh(drawerBorderGeometry,blue);\n drawerBorder_2.position.set(0.055,0,cz);\n cleaning_cart.add(drawerBorder_2);\n\n //long side\n let longSideGeometry = new Three.BoxGeometry(0.02,0.20,0.75);\n let longSide_1 = new Three.Mesh(longSideGeometry,blue);\n longSide_1.position.set(0.405,0,cz+0.1);\n longSide_1.rotation.x=0.5*Math.PI;\n cleaning_cart.add(longSide_1);\n\n let longSide_2 = new Three.Mesh(longSideGeometry,blue);\n longSide_2.position.set(0.07,0,cz+0.1);\n longSide_2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(longSide_2);\n\n //short side\n let shortSideGeometry = new Three.BoxGeometry(0.02,0.34,0.215);\n let shortSide_1 = new Three.Mesh(shortSideGeometry,blue);\n shortSide_1.position.set(0.25,-0.365,cz+0.1);\n shortSide_1.rotation.z=0.5*Math.PI;\n cleaning_cart.add(shortSide_1);\n\n let shortSide_2 = new Three.Mesh(shortSideGeometry,blue);\n shortSide_2.position.set(0.235,0.365,cz+0.1);\n shortSide_2.rotation.z=0.5*Math.PI;\n cleaning_cart.add(shortSide_2);\n\n //bottom side\n let bottomSide = new Three.Mesh(new Three.BoxGeometry(0.355,0.75,0.015),blue);\n bottomSide.position.set(0.2375,0,cz+0.205);\n cleaning_cart.add(bottomSide);\n }\n\n //bucket up support\n let bucket_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n bucket_1.position.set(0.25,-0.35,-0.85);\n cleaning_cart.add(bucket_1);\n\n let bucket_2 = bucket_1.clone();\n bucket_2.position.set(0.25,0.35,-0.85);\n cleaning_cart.add(bucket_2);\n\n //bucket down support\n let bucket_3 = bucket_1.clone();\n bucket_3.position.set(-0.25,-0.35,-0.05);\n cleaning_cart.add(bucket_3);\n\n let bucket_4 = bucket_1.clone();\n bucket_4.position.set(-0.25,0.35,-0.05);\n cleaning_cart.add(bucket_4);\n\n let bucket_5 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05),grey);\n bucket_5.position.set(-0.475,0,-0.05);\n cleaning_cart.add(bucket_5);\n\n //waste basket top support\n let wasteSupport_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n wasteSupport_1.position.set(0.7,-0.35,-0.05);\n cleaning_cart.add(wasteSupport_1);\n\n let wasteSupport_2 = wasteSupport_1.clone();\n wasteSupport_2.position.set(0.7,0.35,-0.05);\n cleaning_cart.add(wasteSupport_2);\n\n let wasteSupport_3 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05),grey);\n wasteSupport_3.position.set(0.925,0,-0.05);\n cleaning_cart.add(wasteSupport_3);\n\n\n //waste basket support down\n let wasteSupportDown_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n wasteSupportDown_1.position.set(0.7,-0.35,-0.85);\n cleaning_cart.add(wasteSupportDown_1);\n\n let wasteSupportDown_2 = wasteSupportDown_1.clone();\n wasteSupportDown_2.position.set(0.7,0.35,-0.85);\n cleaning_cart.add(wasteSupportDown_2);\n\n let wasteSupportDown_3 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05), grey);\n wasteSupportDown_3.position.set(0.925,0,-0.85);\n cleaning_cart.add(wasteSupportDown_3);\n\n //waste cover\n let wasteCover = new Three.Mesh(new Three.BoxGeometry(0.45,0.775,0.05),blue);\n wasteCover.position.set(0.745,0,-0.9);\n cleaning_cart.add(wasteCover);\n\n //sack\n let sack = new Three.Mesh(new Three.BoxGeometry(0.3,0.65,0.7),black);\n sack.position.set(0.75,0,-0.5);\n cleaning_cart.add(sack);\n\n // cover pivot\n let coverPivotGeometry = new Three.CylinderGeometry(0.01,0.01,0.05,32);\n let coverPivot_1 = new Three.Mesh(coverPivotGeometry,black);\n coverPivot_1.position.set(0.51,-0.35,-0.88);\n cleaning_cart.add(coverPivot_1);\n\n let coverPivot_2 = new Three.Mesh(coverPivotGeometry,black);\n coverPivot_2.position.set(0.51,0.35,-0.88);\n cleaning_cart.add(coverPivot_2);\n\n let delta1;\n let color1;\n\n //bucket on the top\n for(let sty=-0.3;sty<=0.3;sty+=0.6)\n {\n sty===-0.3 ? color1=red : color1=blue;\n sty===-0.3 ? delta1=-1 : delta1=1;\n\n let bucketTop_1 = new Three.Mesh(new Three.BoxGeometry(0.2,0.3,0.05),color1);\n bucketTop_1.position.set(0.13,sty-delta1*0.14,-0.85);\n cleaning_cart.add(bucketTop_1);\n\n let bucketTop_2 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color1);\n bucketTop_2.position.set(0.13,sty-delta1*0.29,-0.9);\n bucketTop_2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop_2);\n\n let bucketTop_3 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color1);\n bucketTop_3.position.set(0.13,sty,-0.9);\n bucketTop_3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop_3);\n\n let bucketTop_4 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color1);\n bucketTop_4.position.set(0.04,sty-delta1*0.14,-0.9);\n bucketTop_4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop_4);\n\n let bucketTop_5 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color1);\n bucketTop_5.position.set(0.22,sty-delta1*0.14,-0.9);\n bucketTop_5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop_5);\n }\n\n\n let delta2;\n let color2;\n\n //bucket on the top\n for(let sty=-0.3;sty<=0.3;sty+=0.6)\n {\n sty===-0.3 ? color2=yellow : color2=green;\n sty===-0.3 ? delta2=-1 : delta2=1;\n\n let bucketTop2_p1 = new Three.Mesh(new Three.BoxGeometry(0.2,0.3,0.05),color2);\n bucketTop2_p1.position.set(0.35,sty-delta2*0.14,-0.85);\n cleaning_cart.add(bucketTop2_p1);\n\n let bucketTop2_p2 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color2);\n bucketTop2_p2.position.set(0.35,sty-delta2*0.29,-0.9);\n bucketTop2_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p2);\n\n let bucketTop2_p3 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color2);\n bucketTop2_p3.position.set(0.35,sty,-0.9);\n bucketTop2_p3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p3);\n\n let bucketTop2_p4 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color2);\n bucketTop2_p4.position.set(0.26,sty-delta2*0.14,-0.9);\n bucketTop2_p4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p4);\n\n let bucketTop2_p5 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color2);\n bucketTop2_p5.position.set(0.44,sty-delta2*0.14,-0.9);\n bucketTop2_p5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p5);\n\n }\n\n let color;\n let delta;\n\n //bucket on the top\n for(let sdy=-0.3;sdy<=0.3;sdy+=0.6)\n {\n sdy===-0.3 ? color=red : color=blue;\n sdy===-0.3 ? delta=-1 : delta=1;\n\n let bucketTop3_p1 = new Three.Mesh(new Three.BoxGeometry(0.4,0.3,0.05),color);\n bucketTop3_p1.position.set(-0.22,sdy-delta*0.14,-0.05);\n cleaning_cart.add(bucketTop3_p1);\n\n let bucketTop3_p2 = new Three.Mesh(new Three.BoxGeometry(0.4,0.25,0.02),color);\n bucketTop3_p2.position.set(-0.22,sdy-delta*0.28,-0.2);\n bucketTop3_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p2);\n\n let bucketTop3_p3 = new Three.Mesh(new Three.BoxGeometry(0.4,0.25,0.02),color);\n bucketTop3_p3.position.set(-0.22,sdy,-0.2);\n bucketTop3_p3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p3);\n\n let bucketTop3_p4 = new Three.Mesh(new Three.BoxGeometry(0.25,0.3,0.02),color);\n bucketTop3_p4.position.set(-0.41,sdy-delta*0.14,-0.2);\n bucketTop3_p4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p4);\n\n let bucketTop3_p5 = new Three.Mesh(new Three.BoxGeometry(0.25,0.3,0.02),color);\n bucketTop3_p5.position.set(-0.03,sdy-delta*0.14,-0.2);\n bucketTop3_p5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p5);\n }\n\n\n for(let scy=-0.45;scy<=0.55;scy+=0.90)\n {\n //broom\n let broom = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06,32),blue);\n broom.rotation.x=0.5*Math.PI;\n broom.position.set(0.48,scy,-1.3);\n cleaning_cart.add(broom);\n\n let broom_handle = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,1.3,32),grey);\n broom_handle.position.set(0,0.68,0);\n broom.add(broom_handle);\n\n let broom_p2 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.06,32),blue);\n broom_p2.rotation.y=0.5*Math.PI;\n broom_p2.position.set(0,1.32,0);\n broom.add(broom_p2);\n\n let broom_p3 = new Three.Mesh(new Three.BoxGeometry(0.02,0.15,0.5),blue);\n broom_p3.position.set(0,1.34,0);\n broom_p3.rotation.z=0.5*Math.PI;\n broom_p3.rotation.y=0.5*Math.PI;\n broom.add(broom_p3);\n\n let broom_p4 = new Three.Mesh(new Three.BoxGeometry(0.01,0.2,0.55),grey);\n broom_p4.position.set(0,1.35,0);\n broom_p4.rotation.z=0.5*Math.PI;\n broom_p4.rotation.y=0.5*Math.PI;\n broom.add(broom_p4);\n }\n\n\n //broom hook\n let hook_p1 = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.05,32),blue);\n hook_p1.position.set(0.48,-0.39,-0.85);\n cleaning_cart.add(hook_p1);\n\n let hook_p2 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.03,32),blue);\n hook_p2.position.set(0.48,-0.44,-0.85);\n hook_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(hook_p2);\n\n let hook_p3 = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.05,32),blue);\n hook_p3.position.set(0.48,0.39,-0.85);\n cleaning_cart.add(hook_p3);\n\n let hook_p4 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.03,32),blue);\n hook_p4.position.set(0.48,0.44,-0.85);\n hook_p4.rotation.x=0.5*Math.PI;\n cleaning_cart.add(hook_p4);\n\n return cleaning_cart\n}\n\nfunction makeObjectMinLOD() {\n\n //base\n let cleaning_cart = new Three.Mesh(new Three.BoxGeometry(1,0.75,0.05),grey);\n\n for(let rx=-0.4;rx<=0.45;rx+=0.85)\n {\n for(let rz=-0.3;rz<=0.3;rz+=0.6)\n {\n\n let tire = new Three.Mesh(new Three.CylinderGeometry(0.08,0.08,0.05,32),black);\n tire.position.set(rx,rz,0.15);\n cleaning_cart.add(tire);\n\n let bearing = new Three.Mesh(new Three.CylinderGeometry(0.06,0.06,0.06,32),grey);\n tire.add(bearing);\n\n let nut = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.08,6),black);\n nut.position.set(0,0,0);\n tire.add(nut);\n\n let coverUp = new Three.Mesh(new Three.CylinderGeometry(0.06,0.06,0.01,32), grey);\n coverUp.rotation.x=0.5*Math.PI;\n coverUp.position.set(-0.03,0,-0.12);\n tire.add(coverUp);\n\n let coverDown = new Three.Mesh(new Three.CylinderGeometry(0.03725,0.03725,0.03,32), black);\n coverDown.rotation.x=0.5*Math.PI;\n coverDown.position.set(-0.03,0,-0.1);\n tire.add(coverDown);\n\n let p1Geometry = new Three.CylinderGeometry(0.055,0.055,0.005,3);\n let p1_left = new Three.Mesh(p1Geometry, grey);\n p1_left.position.set(-0.02,-0.035,-0.06);\n tire.add(p1_left);\n\n let p2Geometry = new Three.BoxGeometry(0.055,0.11,0.005);\n let p2_left = new Three.Mesh(p2Geometry,grey);\n p2_left.rotation.x=0.5*Math.PI;\n p2_left.position.set(0,-0.035,-0.04);\n tire.add(p2_left);\n\n let p1_right = new Three.Mesh(p1Geometry, grey);\n p1_right.position.set(-0.02,0.035,-0.06);\n tire.add(p1_right);\n\n let p2_right = new Three.Mesh(p2Geometry,grey);\n p2_right.rotation.x=0.5*Math.PI;\n p2_right.position.set(0,0.035,-0.04);\n tire.add(p2_right);\n\n let p3 = new Three.Mesh(new Three.BoxGeometry(0.095,0.075,0.01),grey);\n p3.position.set(-0.02,0,-0.09);\n tire.add(p3);\n\n }\n }\n\n //drawer support\n let drawerSupportGeometry = new Three.BoxGeometry(0.85,0.75,0.05);\n let drawer_p1 = new Three.Mesh(drawerSupportGeometry,grey);\n drawer_p1.position.set(0.475,0,-0.45);\n drawer_p1.rotation.y=0.5*Math.PI;\n cleaning_cart.add(drawer_p1);\n\n let drawer_p2 = new Three.Mesh(drawerSupportGeometry,grey);\n drawer_p2.position.set(0,0,-0.45);\n drawer_p2.rotation.y=0.5*Math.PI;\n cleaning_cart.add(drawer_p2);\n\n //base top\n let baseTop = new Three.Mesh(new Three.BoxGeometry(0.5,0.75,0.05),grey);\n baseTop.position.set(0.25,0,-0.8);\n cleaning_cart.add(baseTop);\n\n let gz;\n\n //shelfs guide\n for(gz=-0.74;gz<=-0.1;gz+=0.25)\n {\n let shelfGeometry = new Three.BoxGeometry(0.05,0.75,0.02);\n let shelf_1 = new Three.Mesh(shelfGeometry,grey);\n shelf_1.position.set(0.45,0,gz);\n cleaning_cart.add(shelf_1);\n\n let shelf_2 = new Three.Mesh(shelfGeometry,grey);\n shelf_2.position.set(0.025,0,gz);\n cleaning_cart.add(shelf_2);\n }\n\n let cz;\n\n //lateral drawers\n for(cz=-0.76;cz<=-0.1;cz+=0.25)\n {\n //border\n let drawerBorderGeometry = new Three.BoxGeometry(0.05,0.75,0.015);\n let drawerBorder_1 = new Three.Mesh(drawerBorderGeometry,blue);\n drawerBorder_1.position.set(0.42,0,cz);\n cleaning_cart.add(drawerBorder_1);\n\n let drawerBorder_2 = new Three.Mesh(drawerBorderGeometry,blue);\n drawerBorder_2.position.set(0.055,0,cz);\n cleaning_cart.add(drawerBorder_2);\n\n //long side\n let longSideGeometry = new Three.BoxGeometry(0.02,0.20,0.75);\n let longSide_1 = new Three.Mesh(longSideGeometry,blue);\n longSide_1.position.set(0.405,0,cz+0.1);\n longSide_1.rotation.x=0.5*Math.PI;\n cleaning_cart.add(longSide_1);\n\n let longSide_2 = new Three.Mesh(longSideGeometry,blue);\n longSide_2.position.set(0.07,0,cz+0.1);\n longSide_2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(longSide_2);\n\n //short side\n let shortSideGeometry = new Three.BoxGeometry(0.02,0.34,0.215);\n let shortSide_1 = new Three.Mesh(shortSideGeometry,blue);\n shortSide_1.position.set(0.25,-0.365,cz+0.1);\n shortSide_1.rotation.z=0.5*Math.PI;\n cleaning_cart.add(shortSide_1);\n\n let shortSide_2 = new Three.Mesh(shortSideGeometry,blue);\n shortSide_2.position.set(0.235,0.365,cz+0.1);\n shortSide_2.rotation.z=0.5*Math.PI;\n cleaning_cart.add(shortSide_2);\n\n //bottom side\n let bottomSide = new Three.Mesh(new Three.BoxGeometry(0.355,0.75,0.015),blue);\n bottomSide.position.set(0.2375,0,cz+0.205);\n cleaning_cart.add(bottomSide);\n }\n\n //bucket up support\n let bucket_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n bucket_1.position.set(0.25,-0.35,-0.85);\n cleaning_cart.add(bucket_1);\n\n let bucket_2 = bucket_1.clone();\n bucket_2.position.set(0.25,0.35,-0.85);\n cleaning_cart.add(bucket_2);\n\n //bucket down support\n let bucket_3 = bucket_1.clone();\n bucket_3.position.set(-0.25,-0.35,-0.05);\n cleaning_cart.add(bucket_3);\n\n let bucket_4 = bucket_1.clone();\n bucket_4.position.set(-0.25,0.35,-0.05);\n cleaning_cart.add(bucket_4);\n\n let bucket_5 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05),grey);\n bucket_5.position.set(-0.475,0,-0.05);\n cleaning_cart.add(bucket_5);\n\n //waste basket top support\n let wasteSupport_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n wasteSupport_1.position.set(0.7,-0.35,-0.05);\n cleaning_cart.add(wasteSupport_1);\n\n let wasteSupport_2 = wasteSupport_1.clone();\n wasteSupport_2.position.set(0.7,0.35,-0.05);\n cleaning_cart.add(wasteSupport_2);\n\n let wasteSupport_3 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05),grey);\n wasteSupport_3.position.set(0.925,0,-0.05);\n cleaning_cart.add(wasteSupport_3);\n\n\n //waste basket support down\n let wasteSupportDown_1 = new Three.Mesh(new Three.BoxGeometry(0.5,0.05,0.05),grey);\n wasteSupportDown_1.position.set(0.7,-0.35,-0.85);\n cleaning_cart.add(wasteSupportDown_1);\n\n let wasteSupportDown_2 = wasteSupportDown_1.clone();\n wasteSupportDown_2.position.set(0.7,0.35,-0.85);\n cleaning_cart.add(wasteSupportDown_2);\n\n let wasteSupportDown_3 = new Three.Mesh(new Three.BoxGeometry(0.05,0.65,0.05), grey);\n wasteSupportDown_3.position.set(0.925,0,-0.85);\n cleaning_cart.add(wasteSupportDown_3);\n\n //waste cover\n let wasteCover = new Three.Mesh(new Three.BoxGeometry(0.45,0.775,0.05),blue);\n wasteCover.position.set(0.745,0,-0.9);\n cleaning_cart.add(wasteCover);\n\n //sack\n let sack = new Three.Mesh(new Three.BoxGeometry(0.3,0.65,0.7),black);\n sack.position.set(0.75,0,-0.5);\n cleaning_cart.add(sack);\n\n // cover pivot\n let coverPivotGeometry = new Three.CylinderGeometry(0.01,0.01,0.05,32);\n let coverPivot_1 = new Three.Mesh(coverPivotGeometry,black);\n coverPivot_1.position.set(0.51,-0.35,-0.88);\n cleaning_cart.add(coverPivot_1);\n\n let coverPivot_2 = new Three.Mesh(coverPivotGeometry,black);\n coverPivot_2.position.set(0.51,0.35,-0.88);\n cleaning_cart.add(coverPivot_2);\n\n let delta1;\n let color1;\n\n //bucket on the top\n for(let sty=-0.3;sty<=0.3;sty+=0.6)\n {\n sty===-0.3 ? color1=red : color1=blue;\n sty===-0.3 ? delta1=-1 : delta1=1;\n\n let bucketTop_1 = new Three.Mesh(new Three.BoxGeometry(0.2,0.3,0.05),color1);\n bucketTop_1.position.set(0.13,sty-delta1*0.14,-0.85);\n cleaning_cart.add(bucketTop_1);\n\n let bucketTop_2 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color1);\n bucketTop_2.position.set(0.13,sty-delta1*0.29,-0.9);\n bucketTop_2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop_2);\n\n let bucketTop_3 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color1);\n bucketTop_3.position.set(0.13,sty,-0.9);\n bucketTop_3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop_3);\n\n let bucketTop_4 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color1);\n bucketTop_4.position.set(0.04,sty-delta1*0.14,-0.9);\n bucketTop_4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop_4);\n\n let bucketTop_5 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color1);\n bucketTop_5.position.set(0.22,sty-delta1*0.14,-0.9);\n bucketTop_5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop_5);\n }\n\n\n let delta2;\n let color2;\n\n //bucket on the top\n for(let sty=-0.3;sty<=0.3;sty+=0.6)\n {\n sty===-0.3 ? color2=yellow : color2=green;\n sty===-0.3 ? delta2=-1 : delta2=1;\n\n let bucketTop2_p1 = new Three.Mesh(new Three.BoxGeometry(0.2,0.3,0.05),color2);\n bucketTop2_p1.position.set(0.35,sty-delta2*0.14,-0.85);\n cleaning_cart.add(bucketTop2_p1);\n\n let bucketTop2_p2 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color2);\n bucketTop2_p2.position.set(0.35,sty-delta2*0.29,-0.9);\n bucketTop2_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p2);\n\n let bucketTop2_p3 = new Three.Mesh(new Three.BoxGeometry(0.2,0.15,0.02),color2);\n bucketTop2_p3.position.set(0.35,sty,-0.9);\n bucketTop2_p3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p3);\n\n let bucketTop2_p4 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color2);\n bucketTop2_p4.position.set(0.26,sty-delta2*0.14,-0.9);\n bucketTop2_p4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p4);\n\n let bucketTop2_p5 = new Three.Mesh(new Three.BoxGeometry(0.15,0.3,0.02),color2);\n bucketTop2_p5.position.set(0.44,sty-delta2*0.14,-0.9);\n bucketTop2_p5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop2_p5);\n\n }\n\n let color;\n let delta;\n\n //bucket on the top\n for(let sdy=-0.3;sdy<=0.3;sdy+=0.6)\n {\n sdy===-0.3 ? color=red : color=blue;\n sdy===-0.3 ? delta=-1 : delta=1;\n\n let bucketTop3_p1 = new Three.Mesh(new Three.BoxGeometry(0.4,0.3,0.05),color);\n bucketTop3_p1.position.set(-0.22,sdy-delta*0.14,-0.05);\n cleaning_cart.add(bucketTop3_p1);\n\n let bucketTop3_p2 = new Three.Mesh(new Three.BoxGeometry(0.4,0.25,0.02),color);\n bucketTop3_p2.position.set(-0.22,sdy-delta*0.28,-0.2);\n bucketTop3_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p2);\n\n let bucketTop3_p3 = new Three.Mesh(new Three.BoxGeometry(0.4,0.25,0.02),color);\n bucketTop3_p3.position.set(-0.22,sdy,-0.2);\n bucketTop3_p3.rotation.x=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p3);\n\n let bucketTop3_p4 = new Three.Mesh(new Three.BoxGeometry(0.25,0.3,0.02),color);\n bucketTop3_p4.position.set(-0.41,sdy-delta*0.14,-0.2);\n bucketTop3_p4.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p4);\n\n let bucketTop3_p5 = new Three.Mesh(new Three.BoxGeometry(0.25,0.3,0.02),color);\n bucketTop3_p5.position.set(-0.03,sdy-delta*0.14,-0.2);\n bucketTop3_p5.rotation.y=0.5*Math.PI;\n cleaning_cart.add(bucketTop3_p5);\n }\n\n\n for(let scy=-0.45;scy<=0.55;scy+=0.90)\n {\n //broom\n let broom = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,0.06,32),blue);\n broom.rotation.x=0.5*Math.PI;\n broom.position.set(0.48,scy,-1.3);\n cleaning_cart.add(broom);\n\n let broom_handle = new Three.Mesh(new Three.CylinderGeometry(0.02,0.02,1.3,32),grey);\n broom_handle.position.set(0,0.68,0);\n broom.add(broom_handle);\n\n let broom_p2 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.06,32),blue);\n broom_p2.rotation.y=0.5*Math.PI;\n broom_p2.position.set(0,1.32,0);\n broom.add(broom_p2);\n\n let broom_p3 = new Three.Mesh(new Three.BoxGeometry(0.02,0.15,0.5),blue);\n broom_p3.position.set(0,1.34,0);\n broom_p3.rotation.z=0.5*Math.PI;\n broom_p3.rotation.y=0.5*Math.PI;\n broom.add(broom_p3);\n\n let broom_p4 = new Three.Mesh(new Three.BoxGeometry(0.01,0.2,0.55),grey);\n broom_p4.position.set(0,1.35,0);\n broom_p4.rotation.z=0.5*Math.PI;\n broom_p4.rotation.y=0.5*Math.PI;\n broom.add(broom_p4);\n }\n\n\n //broom hook\n let hook_p1 = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.05,32),blue);\n hook_p1.position.set(0.48,-0.39,-0.85);\n cleaning_cart.add(hook_p1);\n\n let hook_p2 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.03,32),blue);\n hook_p2.position.set(0.48,-0.44,-0.85);\n hook_p2.rotation.x=0.5*Math.PI;\n cleaning_cart.add(hook_p2);\n\n let hook_p3 = new Three.Mesh(new Three.CylinderGeometry(0.01,0.01,0.05,32),blue);\n hook_p3.position.set(0.48,0.39,-0.85);\n cleaning_cart.add(hook_p3);\n\n let hook_p4 = new Three.Mesh(new Three.CylinderGeometry(0.025,0.025,0.03,32),blue);\n hook_p4.position.set(0.48,0.44,-0.85);\n hook_p4.rotation.x=0.5*Math.PI;\n cleaning_cart.add(hook_p4);\n\n return cleaning_cart\n}\n\nexport default {\n name: 'cleaning cart',\n prototype: 'items',\n\n info: {\n tag: ['metal','plastic'],\n title: 'cleaning cart',\n description: 'cleaning cart',\n image: require('./cleaning_cart.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************ lod max ****************/\n\n let cleaning_cartMaxLOD = new Three.Object3D();\n cleaning_cartMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(cleaning_cartMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n cleaning_cartMaxLOD.rotation.x=0.5*Math.PI;\n cleaning_cartMaxLOD.position.y+=HEIGHT/5 + newAltitude;\n cleaning_cartMaxLOD.scale.set(WIDTH / deltaX, DEPTH / deltaZ, HEIGHT / deltaY);\n\n /************ lod min ****************/\n\n let cleaning_cartMinLOD = new Three.Object3D();\n cleaning_cartMinLOD.add(objectMinLOD.clone());\n cleaning_cartMinLOD.rotation.x=0.5*Math.PI;\n cleaning_cartMinLOD.position.y+=HEIGHT/5 + newAltitude;\n cleaning_cartMinLOD.scale.set(WIDTH / deltaX, DEPTH / deltaZ, HEIGHT / deltaY);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(cleaning_cartMaxLOD, 200);\n lod.addLevel(cleaning_cartMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/child-chair-desk/chairDesk.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 70;\nconst DEPTH = 100;\nconst HEIGHT = 100;\n\nexport default {\n name: 'child chair desk',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood', 'metal'],\n title: 'child chair desk',\n description: 'child chair desk',\n image: require('./chairDesk.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation;\n\n if (angle>-180 && angle<0)\n angle = 360;\n else\n angle = 0;\n\n let rect_style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let grey = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\n let red = new Three.MeshPhongMaterial({color: 0xff0000} );\n let black = new Three.MeshPhongMaterial({color: 0x000000} );\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let chairDesk = new Three.Object3D();\n\n let roundedRectShapeTable = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=1;\n let height=1.2;\n let radius=0.25;\n\n roundedRectShapeTable.moveTo( x, y + radius );\n roundedRectShapeTable.lineTo( x, y + height - radius );\n roundedRectShapeTable.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShapeTable.lineTo( x + width - radius, y + height) ;\n roundedRectShapeTable.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShapeTable.lineTo( x + width, y + radius );\n roundedRectShapeTable.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShapeTable.lineTo( x + radius, y );\n roundedRectShapeTable.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettingsTable = {\n steps: 2,\n depth: 0.1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let tableGeometry = new Three.ExtrudeGeometry( roundedRectShapeTable, extrudeSettingsTable );\n let table = new Three.Mesh( tableGeometry, red ) ;\n\n table.position.set(0,1.2,0);\n table.rotation.x+=Math.PI/2;\n chairDesk.add(table);\n\n let baseGeometry = new Three.CylinderGeometry( 0.08, 0.08, 1, 32 );\n let baseVerticalGeometry = new Three.CylinderGeometry( 0.08, 0.08, .6, 32 );\n let unionGeometry = new Three.CylinderGeometry( 0.08, 0.08, .2, 32 );\n let footGeometry = new Three.CylinderGeometry( 0.06, 0.06, .025, 32 );\n let closureGeometry = new Three.CylinderGeometry( 0.08, 0.08, .02, 32 );\n\n let basePiece1 = new Three.Mesh( baseGeometry, grey );\n basePiece1.rotation.x += Math.PI/2;\n basePiece1.position.set(0.5,0.6,0.6);\n table.add(basePiece1);\n\n let basePiece2 = new Three.Mesh( baseGeometry, grey );\n basePiece2.position.set(0.5,0.6,1.1);\n table.add(basePiece2);\n\n let basePiece3 = new Three.Mesh( baseGeometry, grey );\n basePiece3.rotation.z += Math.PI/2;\n basePiece3.position.set(0,0.6,1.1);\n table.add(basePiece3);\n\n let baseVerticalPiece = new Three.Mesh( baseVerticalGeometry, grey );\n baseVerticalPiece.rotation.x += Math.PI/2;\n baseVerticalPiece.position.set(-0.5,0.6,0.8);\n table.add(baseVerticalPiece);\n\n let unionPiece = new Three.Mesh( unionGeometry, grey );\n unionPiece.position.set(-0.5,0.6,1.1);\n table.add(unionPiece);\n\n let foot1 = new Three.Mesh( footGeometry, black );\n foot1.position.set(0.5,0.2,1.18);\n foot1.rotation.x+=Math.PI/2;\n table.add(foot1);\n\n let foot2 = new Three.Mesh( footGeometry, black );\n foot2.position.set(0.5,1,1.18);\n foot2.rotation.x+=Math.PI/2;\n table.add(foot2);\n\n let foot3 = new Three.Mesh( footGeometry, black );\n foot3.position.set(-.9,0,1.18);\n foot3.rotation.x+=Math.PI/2;\n table.add(foot3);\n\n let foot4 = new Three.Mesh( footGeometry, black );\n foot4.position.set(-.9,1.2,1.18);\n foot4.rotation.x+=Math.PI/2;\n table.add(foot4);\n\n let closurePiece1 = new Three.Mesh( closureGeometry, grey );\n closurePiece1.position.set(-1,0,1.1);\n closurePiece1.rotation.z+=Math.PI/2;\n table.add(closurePiece1);\n\n let closurePiece2 = new Three.Mesh( closureGeometry, grey );\n closurePiece2.position.set(-1,1.2,1.1);\n closurePiece2.rotation.z+=Math.PI/2;\n table.add(closurePiece2);\n\n const curve = new Three.CatmullRomCurve3([\n new Three.Vector3(.35, 0, 0),\n new Three.Vector3(0, 0, 0),\n new Three.Vector3(-.05, .25, 0),\n ]);\n\n const barGeometry = new Three.TubeGeometry(curve, 32, 0.03, 16, false);\n const leftBar = new Three.Mesh(barGeometry, grey);\n leftBar.rotation.x -= Math.PI/2;\n leftBar.position.set(-1,.35,.48);\n table.add(leftBar);\n\n let rightBar = new Three.Mesh( barGeometry, grey );\n rightBar.position.set(-1,.85,.48);\n rightBar.rotation.x -= Math.PI/2;\n table.add(rightBar);\n\n let baseCurvedGeometry = new Three.TorusGeometry( .5, .08, 32, 32, Math.PI/2 );\n let baseCurvePiece1 = new Three.Mesh( baseCurvedGeometry, grey );\n baseCurvePiece1.position.set(-1,.70,1.1);\n table.add( baseCurvePiece1 );\n\n let baseCurvePiece2 = new Three.Mesh( baseCurvedGeometry, grey );\n baseCurvePiece2.rotation.x+=Math.PI;\n baseCurvePiece2.position.set(-1,.50,1.1);\n table.add( baseCurvePiece2 );\n\n let roundedRectShapeStairPiece1 = new Three.Shape();\n\n let x1=0;\n let y1=0;\n let width1=.8;\n let height1=.8;\n let radius1=0.25;\n\n roundedRectShapeStairPiece1.moveTo( x1, y1 + radius1 );\n roundedRectShapeStairPiece1.lineTo( x1, y1 + height1 - radius1 );\n roundedRectShapeStairPiece1.quadraticCurveTo( x1, y1 + height1, x1 + radius1, y1 + height1 );\n roundedRectShapeStairPiece1.lineTo( x1 + width1 - radius1, y1 + height1) ;\n roundedRectShapeStairPiece1.quadraticCurveTo( x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1 );\n roundedRectShapeStairPiece1.lineTo( x1 + width1, y1 + radius1 );\n roundedRectShapeStairPiece1.quadraticCurveTo( x1 + width1, y1, x1 + width1 - radius1, y1 );\n roundedRectShapeStairPiece1.lineTo( x1 + radius1, y1 );\n roundedRectShapeStairPiece1.quadraticCurveTo( x1, y1, x1, y1 + radius1 );\n\n let extrudeSettingsStairPiece1 = {\n steps: 2,\n depth: 0.1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let stairGeometryPiece1 = new Three.ExtrudeGeometry( roundedRectShapeStairPiece1, extrudeSettingsStairPiece1 );\n let stairPiece1 = new Three.Mesh( stairGeometryPiece1, red ) ;\n\n stairPiece1.position.set(-.9,.2,.45);\n table.add(stairPiece1);\n\n let roundedRectShapeStairPiece2 = new Three.Shape();\n\n let x2=0;\n let y2=0;\n let width2=.8;\n let height2=.8;\n let radius2=0.25;\n\n roundedRectShapeStairPiece2.moveTo( x2, y2 + radius2 );\n roundedRectShapeStairPiece2.lineTo( x2, y2 + height2 - radius2 );\n roundedRectShapeStairPiece2.quadraticCurveTo( x2, y2 + height2, x2 + radius2, y2 + height2 );\n roundedRectShapeStairPiece2.lineTo( x2 + width2 - radius2, y2 + height2) ;\n roundedRectShapeStairPiece2.quadraticCurveTo( x2 + width2, y2 + height2, x2 + width2, y2 + height2 - radius2 );\n roundedRectShapeStairPiece2.lineTo( x2 + width2, y2 + radius2 );\n roundedRectShapeStairPiece2.quadraticCurveTo( x2 + width2, y2, x2 + width2 - radius2, y2 );\n roundedRectShapeStairPiece2.lineTo( x2 + radius2, y2 );\n roundedRectShapeStairPiece2.quadraticCurveTo( x2, y2, x2, y2 + radius2 );\n\n let holePath = new Three.Path();\n holePath.moveTo( 3.5, 3.5 );\n holePath.absellipse( .65, .4, .035, .125, .125, Math.PI*2, false );\n roundedRectShapeStairPiece2.holes.push( holePath );\n\n let stairGeometryPiece2 = new Three.ExtrudeGeometry( roundedRectShapeStairPiece2, extrudeSettingsStairPiece1 );\n let stairPiece2 = new Three.Mesh( stairGeometryPiece2, red ) ;\n stairPiece2.position.set(-1.08,.2,.45);\n stairPiece2.rotation.y+=Math.PI/2;\n table.add(stairPiece2);\n\n let value = new Three.Box3().setFromObject(chairDesk);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n if (element.selected) {\n let boundingBox = new Three.BoxHelper(chairDesk, 0x99c3fb);\n boundingBox.material.linewidth = 5;\n boundingBox.renderOrder = 1000;\n boundingBox.material.depthTest = false;\n chairDesk.add(boundingBox);\n }\n\n chairDesk.rotation.y += Math.PI / 2;\n chairDesk.position.x += -DEPTH / 2.75;\n chairDesk.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, 1.25*DEPTH / deltaX);\n\n return Promise.resolve(chairDesk);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/chairdesk/chairdesk.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 70;\nconst DEPTH = 70;\nconst HEIGHT = 100;\n\nconst grey = new Three.MeshBasicMaterial({color : 0xD3D3D3});\nconst metalGrey = new Three.MeshBasicMaterial({color : 0x808080});\nconst white = new Three.MeshBasicMaterial({color : 0x000000});\nconst black = new Three.MeshBasicMaterial({color : 0x000000});\n\n\nfunction makeBackrest(){\n\n let backrest = new Three.Object3D();\n let backrestGeometry1 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.18 , 32, 32 );\n let backrestGeometry2 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.04 , 32, 32 );\n let NodeGeometry = new Three.SphereGeometry( 0.01 , 32 , 32 );\n let backrest1 = new Three.Mesh( backrestGeometry1 , black );\n let backrest2 = new Three.Mesh( backrestGeometry2 , black );\n let backrest3 = new Three.Mesh( backrestGeometry1 , black );\n let backrest4 = new Three.Mesh( backrestGeometry2 , black );\n let node1 = new Three.Mesh( NodeGeometry , black );\n let node2 = new Three.Mesh( NodeGeometry , black );\n let backrestPillow = makeBackrestPillow();\n backrest1.rotation.z = Math.PI*(90 +6)/180;\n backrest1.position.z = 0.05;\n backrest1.position.x = 0.09;\n backrest2.rotation.z = -Math.PI*96/180;\n backrest2.position.x = 0.02*Math.cos(Math.PI*6/180);\n backrest3.rotation.z = Math.PI*(90 +6)/180;\n backrest3.position.z =-0.05;\n backrest3.position.x = 0.09;\n backrest4.rotation.z =-Math.PI*96/180;\n backrest4.position.x = 0.02*Math.cos(Math.PI*6/180);\n node1.position.y = 0.09;\n node2.position.y = 0.09;\n node1.add(backrest2);\n node2.add(backrest4);\n backrestPillow.rotation.y = Math.PI/2;\n backrestPillow.position.y = 0.25 +0.02;\n backrest1.add(node1);\n backrest.add(backrest1);\n backrest3.add(node2);\n backrest.add(backrest3);\n backrest.add(backrestPillow);\n\n return backrest;\n}\n\nfunction makeBackrestMinLOD(){\n\n let backrest = new Three.Object3D();\n let backrestGeometry1 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.18 , 8, 8 );\n let backrestGeometry2 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.04 , 8, 8 );\n let NodeGeometry = new Three.SphereGeometry( 0.01 , 32 , 32 );\n let backrest1 = new Three.Mesh( backrestGeometry1 , black );\n let backrest2 = new Three.Mesh( backrestGeometry2 , black );\n let backrest3 = new Three.Mesh( backrestGeometry1 , black );\n let backrest4 = new Three.Mesh( backrestGeometry2 , black );\n let node1 = new Three.Mesh( NodeGeometry , black );\n let node2 = new Three.Mesh( NodeGeometry , black );\n let backrestPillow = makeBackrestPillowMinLOD();\n backrest1.rotation.z = Math.PI*(90 +6)/180;\n backrest1.position.z = 0.05;\n backrest1.position.x = 0.09;\n backrest2.rotation.z = -Math.PI*96/180;\n backrest2.position.x = 0.02*Math.cos(Math.PI*6/180);\n backrest3.rotation.z = Math.PI*(90 +6)/180;\n backrest3.position.z =-0.05;\n backrest3.position.x = 0.09;\n backrest4.rotation.z =-Math.PI*96/180;\n backrest4.position.x = 0.02*Math.cos(Math.PI*6/180);\n node1.position.y = 0.09;\n node2.position.y = 0.09;\n node1.add(backrest2);\n node2.add(backrest4);\n backrestPillow.rotation.y = Math.PI/2;\n backrestPillow.position.y = 0.25 +0.02;\n backrest1.add(node1);\n backrest.add(backrest1);\n backrest3.add(node2);\n backrest.add(backrest3);\n backrest.add(backrestPillow);\n\n return backrest;\n}\n\n\nfunction makeWheel(){\n\n let ArmrestGeometry = new Three.CylinderGeometry( 0.027 , 0.02 , 0.3 , 32, 32 );\n let SupportGeometry = new Three.CylinderGeometry( 0.02 , 0.01 , 0.02 , 32, 32 );\n let PivotGeometry = new Three.CylinderGeometry( 0.008 , 0.008 , 0.01 , 32, 32 );\n let SupportGeometryStart = new Three.SphereGeometry( 0.02 , 32 , 32 );\n let WheelGeometry = new Three.CylinderGeometry( 0.025 , 0.025 , 0.05 , 32, 32 );\n let InsideWheelGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.051 , 32, 32 );\n let WheelCoverGeometry = new Three.CylinderGeometry( 0.026 , 0.026 , 0.045 , 32, 32 );\n let armrest = new Three.Mesh( ArmrestGeometry , metalGrey );\n let support = new Three.Mesh( SupportGeometry , metalGrey );\n let pivot = new Three.Mesh( PivotGeometry , grey );\n let SupportStart = new Three.Mesh( SupportGeometryStart , metalGrey );\n let Wheel = new Three.Mesh( WheelGeometry , black );\n let WheelCover = new Three.Mesh( WheelCoverGeometry , metalGrey );\n let InsideWheel = new Three.Mesh( InsideWheelGeometry , metalGrey );\n let Armrest1 = new Three.Object3D();\n let Armrest2 = new Three.Object3D();\n armrest.rotation.z = Math.PI*80/180;\n armrest.position.x = 0.01 + 0.15;\n Armrest1.rotation.z =-Math.PI*80/180;\n Armrest1.position.y =-Math.sin(Math.PI*80/180)*0.15;\n support.position.y =-0.01;\n pivot.position.y =-0.01 - 0.005;\n Wheel.rotation.x = Math.PI/2;\n Wheel.position.y =-0.005 -0.02;\n WheelCover.position.z =-0.003;\n Wheel.add(InsideWheel);\n Wheel.add(WheelCover);\n pivot.add(Wheel);\n support.add(pivot);\n Armrest1.add(support);\n Armrest1.add(SupportStart);\n armrest.add(Armrest1);\n Armrest2.add(armrest);\n return Armrest2;\n}\n\nfunction makeWheelMinLOD(){\n\n let ArmrestGeometry = new Three.CylinderGeometry( 0.027 , 0.02 , 0.3 , 8, 8 );\n let SupportGeometry = new Three.CylinderGeometry( 0.02 , 0.01 , 0.02 , 8, 8 );\n let PivotGeometry = new Three.CylinderGeometry( 0.008 , 0.008 , 0.01 , 8, 8 );\n let SupportGeometryStart = new Three.SphereGeometry( 0.02 , 8 , 8 );\n let WheelGeometry = new Three.CylinderGeometry( 0.025 , 0.025 , 0.05 , 8, 8 );\n let InsideWheelGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.051 , 8, 8 );\n let armrest = new Three.Mesh( ArmrestGeometry , metalGrey );\n let support = new Three.Mesh( SupportGeometry , metalGrey );\n let pivot = new Three.Mesh( PivotGeometry , grey );\n let SupportStart = new Three.Mesh( SupportGeometryStart , metalGrey );\n let Wheel = new Three.Mesh( WheelGeometry , black );\n let InsideWheel = new Three.Mesh( InsideWheelGeometry , metalGrey );\n let Armrest1 = new Three.Object3D();\n let Armrest2 = new Three.Object3D();\n armrest.rotation.z = Math.PI*80/180;\n armrest.position.x = 0.01 + 0.15;\n Armrest1.rotation.z =-Math.PI*80/180;\n Armrest1.position.y =-Math.sin(Math.PI*80/180)*0.15;\n support.position.y =-0.01;\n pivot.position.y =-0.01 - 0.005;\n Wheel.rotation.x = Math.PI/2;\n Wheel.position.y =-0.005 -0.02;\n Wheel.add(InsideWheel);\n pivot.add(Wheel);\n support.add(pivot);\n Armrest1.add(support);\n Armrest1.add(SupportStart);\n armrest.add(Armrest1);\n Armrest2.add(armrest);\n return Armrest2;\n}\n\nfunction makeBackrestPillow(){\n\n let pillow = new Three.Object3D();\n let CenterGeometry = new Three.BoxGeometry( 0.3 , 0.5 , 0.04 );\n let ShortEdgeGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.3 , 32, 32 );\n let LongEdgeGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.5 , 32, 32 );\n let AngleGeometry = new Three.SphereGeometry( 0.02 , 32 , 32 );\n let edgeShort1 = new Three.Mesh( ShortEdgeGeometry , white );\n let edgeShort2 = new Three.Mesh( ShortEdgeGeometry , white );\n let edgeLong1 = new Three.Mesh( LongEdgeGeometry , white );\n let edgeLong2 = new Three.Mesh( LongEdgeGeometry , white );\n let angle1c = new Three.Mesh( AngleGeometry , white);\n let angle2c = new Three.Mesh( AngleGeometry , white);\n let angle1l = new Three.Mesh( AngleGeometry , white);\n let angle2l = new Three.Mesh( AngleGeometry , white);\n let center = new Three.Mesh( CenterGeometry , white );\n edgeShort1.rotation.z = Math.PI/2;\n edgeShort1.position.y = 0.25;\n angle1c.position.y = 0.15;\n edgeShort2.rotation.z = Math.PI/2;\n edgeShort2.position.y =-0.25;\n angle2c.position.y =-0.15;\n edgeLong1.position.x = 0.15;\n angle1l.position.y = 0.25;\n edgeLong2.position.x =-0.15;\n angle2l.position.y =-0.25;\n edgeLong2.add(angle2l);\n pillow.add(edgeLong2);\n edgeLong1.add(angle1l);\n pillow.add(edgeLong1);\n edgeShort2.add(angle2c);\n pillow.add(edgeShort2);\n edgeShort1.add(angle1c);\n pillow.add(edgeShort1);\n pillow.add(center);\n return pillow;\n}\n\nfunction makeBackrestPillowMinLOD(){\n\n let pillow = new Three.Object3D();\n let CenterGeometry = new Three.BoxGeometry( 0.3 , 0.5 , 0.04 );\n let ShortEdgeGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.3 , 8, 8 );\n let LongEdgeGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.5 , 8, 8 );\n let AngleGeometry = new Three.SphereGeometry( 0.02 , 32 , 32 );\n let edgeShort1 = new Three.Mesh( ShortEdgeGeometry , white );\n let edgeShort2 = new Three.Mesh( ShortEdgeGeometry , white );\n let edgeLong1 = new Three.Mesh( LongEdgeGeometry , white );\n let edgeLong2 = new Three.Mesh( LongEdgeGeometry , white );\n let angle1c = new Three.Mesh( AngleGeometry , white);\n let angle2c = new Three.Mesh( AngleGeometry , white);\n let angle1l = new Three.Mesh( AngleGeometry , white);\n let angle2l = new Three.Mesh( AngleGeometry , white);\n let center = new Three.Mesh( CenterGeometry , white );\n edgeShort1.rotation.z = Math.PI/2;\n edgeShort1.position.y = 0.25;\n angle1c.position.y = 0.15;\n edgeShort2.rotation.z = Math.PI/2;\n edgeShort2.position.y =-0.25;\n angle2c.position.y =-0.15;\n edgeLong1.position.x = 0.15;\n angle1l.position.y = 0.25;\n edgeLong2.position.x =-0.15;\n angle2l.position.y =-0.25;\n edgeLong2.add(angle2l);\n pillow.add(edgeLong2);\n edgeLong1.add(angle1l);\n pillow.add(edgeLong1);\n edgeShort2.add(angle2c);\n pillow.add(edgeShort2);\n edgeShort1.add(angle1c);\n pillow.add(edgeShort1);\n pillow.add(center);\n return pillow;\n}\n\nfunction makeBody() {\n\n let body = new Three.Object3D();\n let SupportPillowGeometry1 = new Three.BoxGeometry( 0.28 , 0.06 , 0.07 );\n let SupportPillowGeometry2 = new Three.BoxGeometry( 0.3 , 0.04 , 0.09 );\n let ShortHandleGeometry = new Three.CylinderGeometry( 0.0045 , 0.0045 , 0.07 , 32, 32 );\n let LongHandleGeometry = new Three.CylinderGeometry( 0.0045 , 0.0045 , 0.09 , 32, 32 );\n let HandleGeometry = new Three.CylinderGeometry( 0.007 , 0.005 , 0.06 , 32 );\n let ArmrestSupportGeometry = new Three.CylinderGeometry( 0.01 , 0.01 , 0.2 , 32, 32 );\n let SupportPillow1 = new Three.Mesh( SupportPillowGeometry1 , metalGrey );\n let SupportPillow2 = new Three.Mesh( SupportPillowGeometry2 , metalGrey );\n let LongHandle = new Three.Mesh( LongHandleGeometry , white );\n let ShortHandle = new Three.Mesh( ShortHandleGeometry , white );\n let Handle1 = new Three.Mesh( HandleGeometry , black );\n let Handle2 = new Three.Mesh( HandleGeometry , black );\n let ArmrestBase1 = new Three.Mesh( ArmrestSupportGeometry , metalGrey );\n let ArmrestBase2 = new Three.Mesh( ArmrestSupportGeometry , metalGrey );\n let Pillow = makePillow();\n let armrest1 = makeArmrest();\n let armrest2 = makeArmrest();\n SupportPillow1.position.y = 0.03;\n SupportPillow2.rotation.z = Math.PI*6/180;\n SupportPillow2.position.y = 0.06 ;\n LongHandle.rotation.x = Math.PI*80/180;\n LongHandle.position.z = 0.035 + 0.045;\n LongHandle.position.x = 0.1;\n ShortHandle.rotation.x =-Math.PI*80/180;\n ShortHandle.position.z =-0.035 - 0.035;\n ShortHandle.position.x = 0.08;\n Handle2.position.y = 0.035 + 0.03;\n Handle1.position.y = 0.045 + 0.03;\n Pillow.position.y = 0.02 + 0.02;\n ArmrestBase1.rotation.x = Math.PI/2;\n ArmrestBase1.rotation.y = -Math.PI*6/180;\n ArmrestBase2.rotation.x = Math.PI/2;\n ArmrestBase2.rotation.y = -Math.PI*6/180;\n ArmrestBase1.position.z = 0.045 + 0.1;\n ArmrestBase2.position.z =-0.045 - 0.1;\n armrest1.position.y = 0.1;\n armrest2.position.y = -0.1;\n SupportPillow2.add(Pillow);\n ArmrestBase1.add(armrest1);\n ArmrestBase2.add(armrest2);\n SupportPillow2.add(ArmrestBase1);\n SupportPillow2.add(ArmrestBase2);\n LongHandle.add(Handle1);\n ShortHandle.add(Handle2);\n SupportPillow1.add(LongHandle);\n SupportPillow1.add(ShortHandle);\n body.add(SupportPillow2);\n body.add(SupportPillow1);\n return body;\n}\n\nfunction makeBodyMinLOD() {\n\n let body = new Three.Object3D();\n let SupportPillowGeometry1 = new Three.BoxGeometry( 0.28 , 0.06 , 0.07 );\n let SupportPillowGeometry2 = new Three.BoxGeometry( 0.3 , 0.04 , 0.09 );\n let ArmrestSupportGeometry = new Three.CylinderGeometry( 0.01 , 0.01 , 0.2 , 8, 8 );\n let SupportPillow1 = new Three.Mesh( SupportPillowGeometry1 , metalGrey );\n let SupportPillow2 = new Three.Mesh( SupportPillowGeometry2 , metalGrey );\n let ArmrestBase1 = new Three.Mesh( ArmrestSupportGeometry , metalGrey );\n let ArmrestBase2 = new Three.Mesh( ArmrestSupportGeometry , metalGrey );\n let Pillow = makePillow();\n let armrest1 = makeArmrestMinLOD();\n let armrest2 = makeArmrestMinLOD();\n SupportPillow1.position.y = 0.03;\n SupportPillow2.rotation.z = Math.PI*6/180;\n SupportPillow2.position.y = 0.06 ;\n Pillow.position.y = 0.02 + 0.02;\n ArmrestBase1.rotation.x = Math.PI/2;\n ArmrestBase1.rotation.y = -Math.PI*6/180;\n ArmrestBase2.rotation.x = Math.PI/2;\n ArmrestBase2.rotation.y = -Math.PI*6/180;\n ArmrestBase1.position.z = 0.045 + 0.1;\n ArmrestBase2.position.z =-0.045 - 0.1;\n armrest1.position.y = 0.1;\n armrest2.position.y = -0.1;\n SupportPillow2.add(Pillow);\n ArmrestBase1.add(armrest1);\n ArmrestBase2.add(armrest2);\n SupportPillow2.add(ArmrestBase1);\n SupportPillow2.add(ArmrestBase2);\n body.add(SupportPillow2);\n body.add(SupportPillow1);\n return body;\n}\n\nfunction makeArmrest(){\n\n let armrest = new Three.Object3D();\n let NodeGeometry = new Three.SphereGeometry( 0.01 , 32 , 32 );\n let GeometryP1 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.24 , 32, 32 );\n let GeometryP2 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.04 , 32, 32 );\n let GeometryP3 = new Three.CylinderGeometry( 0.02 , 0.025 , 0.2 , 32, 32 );\n let node1 = new Three.Mesh( NodeGeometry , metalGrey );\n let node2 = new Three.Mesh( NodeGeometry , metalGrey );\n let P1 = new Three.Mesh( GeometryP1 , metalGrey );\n let P2 = new Three.Mesh( GeometryP2 , metalGrey );\n let P3 = new Three.Mesh( GeometryP3 , white );\n P1.rotation.x = Math.PI/2;\n P1.rotation.z = -Math.PI*25/180;\n P1.position.set( 0.12*Math.sin(P1.rotation.z) , 0 , -0.12*Math.cos(P1.rotation.z) );\n P2.rotation.z = Math.PI*100/180;\n P2.position.x = 0.02;\n P2.position.y = 0.0035;\n node2.position.y =-0.12;\n P3.position.y =-0.1 -0.02;\n P2.add(P3);\n node2.add(P2);\n P1.add(node2);\n node1.add(P1);\n armrest.add(node1);\n return armrest;\n}\n\nfunction makeArmrestMinLOD(){\n\n let armrest = new Three.Object3D();\n let NodeGeometry = new Three.SphereGeometry( 0.01 , 8 , 8 );\n let GeometryP1 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.24 , 8, 8 );\n let GeometryP2 = new Three.CylinderGeometry( 0.01 , 0.01 , 0.04 , 8, 8 );\n let GeometryP3 = new Three.CylinderGeometry( 0.02 , 0.025 , 0.2 , 8, 8 );\n let node1 = new Three.Mesh( NodeGeometry , metalGrey );\n let node2 = new Three.Mesh( NodeGeometry , metalGrey );\n let P1 = new Three.Mesh( GeometryP1 , metalGrey );\n let P2 = new Three.Mesh( GeometryP2 , metalGrey );\n let P3 = new Three.Mesh( GeometryP3 , white );\n P1.rotation.x = Math.PI/2;\n P1.rotation.z = -Math.PI*25/180;\n P1.position.set( 0.12*Math.sin(P1.rotation.z) , 0 , -0.12*Math.cos(P1.rotation.z) );\n P2.rotation.z = Math.PI*100/180;\n P2.position.x = 0.02;\n P2.position.y = 0.0035;\n node2.position.y =-0.12;\n P3.position.y =-0.1 -0.02;\n P2.add(P3);\n node2.add(P2);\n P1.add(node2);\n node1.add(P1);\n armrest.add(node1);\n return armrest;\n}\n\nfunction makePillow() {\n\n let pillow = new Three.Object3D();\n let CenterGeometry = new Three.BoxGeometry( 0.4 , 0.04 , 0.4 );\n let CenterPillow = new Three.Mesh( CenterGeometry , white );\n let edge1 = makeEdge();\n let edge2 = makeEdge();\n let edge3 = makeEdge();\n let edge4 = makeEdge();\n edge1.rotation.x = Math.PI/2;\n edge1.position.x = 0.2;\n edge2.rotation.x =-Math.PI/2;\n edge2.position.x =-0.2;\n edge3.rotation.z =-Math.PI/2;\n edge3.position.z =-0.2;\n edge4.rotation.z = Math.PI/2;\n edge4.position.z = 0.2;\n CenterPillow.add(edge1);\n CenterPillow.add(edge2);\n CenterPillow.add(edge3);\n CenterPillow.add(edge4);\n pillow.add(CenterPillow);\n return pillow;\n}\n\nfunction makeEdge(){\n let EdgeGeometry = new Three.CylinderGeometry( 0.02 , 0.02 , 0.4 , 32 , 32, true );\n let AngleGeometry = new Three.SphereGeometry( 0.02 , 32 , 32 );\n let angle = new Three.Mesh( AngleGeometry , white );\n let edge = new Three.Mesh( EdgeGeometry , white );\n edge.openEnded = 1;\n angle.position.y = 0.2;\n edge.add(angle);\n return edge;\n}\n\nfunction makeBase(){\n\n let base = new Three.Object3D();\n let CylinderGeometry1 = new Three.CylinderGeometry( 0.027 , 0.027 , 0.05 , 32, 32 );\n let CylinderGeometry2 = new Three.CylinderGeometry( 0.03 , 0.03 , 0.2 , 32, 32 );\n let CylinderGeometry3 = new Three.CylinderGeometry( 0.04 , 0.04 , 0.06 , 32, 32 );\n let CylinderCoverGeometryCylinder2 = new Three.TorusGeometry( 0.04 , 0.025 , 32 , 100 );\n let CylinderGeometry4 = new Three.CylinderGeometry( 0.02 , 0.02 , 0.14 , 32, 32 );\n let Cylinder1 = new Three.Mesh( CylinderGeometry1 , metalGrey );\n let Cylinder2 = new Three.Mesh( CylinderGeometry2 , metalGrey );\n let CoverCylinder1 = new Three.Mesh( CylinderGeometry3 , metalGrey );\n let CoverCylinder2 = new Three.Mesh( CylinderCoverGeometryCylinder2 , metalGrey );\n let Cylinder3 = new Three.Mesh( CylinderGeometry4 , metalGrey );\n let Wheel = makeWheels();\n Cylinder1.position.y =-0.1 - 0.025;\n Cylinder3.position.y = 0.1 + 0.07;\n Wheel.position.y =-0.07;\n CoverCylinder1.position.y =-0.05;\n CoverCylinder2.rotation.x = Math.PI/2;\n CoverCylinder2.position.y =-0.05;\n Cylinder2.add(CoverCylinder1);\n Cylinder2.add(CoverCylinder2);\n Cylinder2.add(Wheel);\n Cylinder2.add(Cylinder1);\n Cylinder2.add(Cylinder3);\n base.add(Cylinder2);\n return base;\n}\n\nfunction makeBaseMinLOD(){\n\n let base = new Three.Object3D();\n let CylinderGeometry1 = new Three.CylinderGeometry( 0.027 , 0.027 , 0.05 , 8, 8 );\n let CylinderGeometry2 = new Three.CylinderGeometry( 0.03 , 0.03 , 0.2 , 8, 8 );\n let CylinderGeometry3 = new Three.CylinderGeometry( 0.04 , 0.04 , 0.06 , 8, 8 );\n let CylinderCoverGeometryCylinder2 = new Three.TorusGeometry( 0.04 , 0.025 , 8 , 100 );\n let CylinderGeometry4 = new Three.CylinderGeometry( 0.02 , 0.02 , 0.14 , 8, 8 );\n let Cylinder1 = new Three.Mesh( CylinderGeometry1 , metalGrey );\n let Cylinder2 = new Three.Mesh( CylinderGeometry2 , metalGrey );\n let CoverCylinder1 = new Three.Mesh( CylinderGeometry3 , metalGrey );\n let CoverCylinder2 = new Three.Mesh( CylinderCoverGeometryCylinder2 , metalGrey );\n let Cylinder3 = new Three.Mesh( CylinderGeometry4 , metalGrey );\n let Wheel = makeWheelsMinLOD();\n Cylinder1.position.y =-0.1 - 0.025;\n Cylinder3.position.y = 0.1 + 0.07;\n Wheel.position.y =-0.07;\n CoverCylinder1.position.y =-0.05;\n CoverCylinder2.rotation.x = Math.PI/2;\n CoverCylinder2.position.y =-0.05;\n Cylinder2.add(CoverCylinder1);\n Cylinder2.add(CoverCylinder2);\n Cylinder2.add(Wheel);\n Cylinder2.add(Cylinder1);\n Cylinder2.add(Cylinder3);\n base.add(Cylinder2);\n return base;\n}\n\nfunction makeWheels(){\n let wheels = new Three.Object3D();\n for (let i = 0; i < 5; i++) {\n let wheel = makeWheel();\n wheel.rotation.y = 2*Math.PI*i*72/360;\n wheels.add(wheel);\n }\n return wheels;\n}\n\nfunction makeWheelsMinLOD(){\n let wheels = new Three.Object3D();\n for (let i = 0; i < 5; i++) {\n let wheel = makeWheelMinLOD();\n wheel.rotation.y = 2*Math.PI*i*72/360;\n wheels.add(wheel);\n }\n return wheels;\n}\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let chairDesk = new Three.Mesh();\n let baseChair = makeBase();\n let bodyChair = makeBody();\n let backrestChair = makeBackrest();\n baseChair.position.y = 0.1 +0.07;\n bodyChair.position.y = 0.1 +0.14;\n backrestChair.position.y = 0.06;\n backrestChair.position.x =-0.25;\n bodyChair.add(backrestChair);\n baseChair.add(bodyChair);\n chairDesk.add(baseChair);\n chairDesk.rotation.y= -0.5*Math.PI;\n chairDesk.position.z-= 0.02;\n\n return chairDesk\n}\n\nfunction makeObjectMinLOD() {\n\n let chairDesk = new Three.Mesh();\n let baseChair = makeBaseMinLOD();\n let bodyChair = makeBodyMinLOD();\n let backrestChair = makeBackrestMinLOD();\n baseChair.position.y = 0.1 +0.07;\n bodyChair.position.y = 0.1 +0.14;\n backrestChair.position.y = 0.06;\n backrestChair.position.x =-0.25;\n bodyChair.add(backrestChair);\n baseChair.add(bodyChair);\n chairDesk.add(baseChair);\n chairDesk.rotation.y= -0.5*Math.PI;\n chairDesk.position.z-= 0.02;\n\n return chairDesk\n}\n\nexport default {\n name: \"chairdesk\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'wood'],\n title: \"chairdesk\",\n description: \"office chair\",\n image: require('./chairdesk.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n\n );\n\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n let chairDeskMaxLOD = new Three.Object3D();\n chairDeskMaxLOD.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(chairDeskMaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n chairDeskMaxLOD.position.y+= newAltitude;\n chairDeskMaxLOD.position.x+= -WIDTH/8;\n chairDeskMaxLOD.position.z+= DEPTH/4;\n chairDeskMaxLOD.scale.set( WIDTH / deltaX,DEPTH / deltaZ, HEIGHT / deltaY);\n\n let chairDeskMinLOD = new Three.Object3D();\n chairDeskMinLOD.add(objectMinLOD.clone());\n chairDeskMinLOD.position.y+= newAltitude;\n chairDeskMinLOD.position.x+= -WIDTH/8;\n chairDeskMinLOD.position.z+= DEPTH/4;\n chairDeskMinLOD.scale.set( WIDTH / deltaX,DEPTH / deltaZ, HEIGHT / deltaY);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(chairDeskMaxLOD, 200);\n lod.addLevel(chairDeskMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/chair/chair.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 55;\nconst DEPTH = 55;\nconst HEIGHT = 50;\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD(){\n\n let chair = new Three.Mesh();\n\n let LegGeometry = new Three.CylinderGeometry( 0.02, 0.02, 0.5, 32, 32 );\n let LegMaterial = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\n\n let leg1 = new Three.Mesh( LegGeometry, LegMaterial );\n leg1.rotation.x += Math.PI/2;\n leg1.position.z += 0.5/2;\n\n let leg2 = new Three.Mesh( LegGeometry, LegMaterial );\n leg2.rotation.x += Math.PI/2;\n leg2.position.z += 0.5/2;\n leg2.position.y += 0.4;\n\n let leg3 = new Three.Mesh( LegGeometry, LegMaterial );\n leg3.rotation.x += Math.PI/2;\n leg3.position.z += 0.5/2;\n leg3.position.x += 0.4;\n\n let leg4 = new Three.Mesh( LegGeometry, LegMaterial );\n leg4.rotation.x += Math.PI/2;\n leg4.position.z += 0.5/2;\n leg4.position.y += 0.4;\n leg4.position.x += 0.4;\n\n let leg5 = new Three.Mesh( LegGeometry, LegMaterial );\n leg5.rotation.x += Math.PI/2;\n leg5.position.z += 0.5*3/2;\n\n let leg6 = new Three.Mesh( LegGeometry, LegMaterial );\n leg6.rotation.x += Math.PI/2;\n leg6.position.z += 0.5*3/2;\n leg6.position.x += 0.4;\n\n let WoodMaterial = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=.5;\n let height=.48;\n let radius=0.05;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let PlaneGeometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let plane = new Three.Mesh( PlaneGeometry, WoodMaterial ) ;\n\n plane.position.x += -0.05;\n plane.position.y += -0.04;\n plane.position.z += 0.5;\n\n let roundedRectShape2 = new Three.Shape();\n\n let x1=0;\n let y1=0;\n let width1=.45;\n let height1=.25;\n let radius1=0.05;\n\n roundedRectShape2.moveTo( x1, y1 + radius1 );\n roundedRectShape2.lineTo( x1, y1 + height1 - radius1 );\n roundedRectShape2.quadraticCurveTo( x1, y1 + height1, x1 + radius1, y1 + height1 );\n roundedRectShape2.lineTo( x1 + width1 - radius1, y1 + height1) ;\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1 );\n roundedRectShape2.lineTo( x1 + width1, y1 + radius1 );\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1, x1 + width1 - radius1, y1 );\n roundedRectShape2.lineTo( x1 + radius1, y1 );\n roundedRectShape2.quadraticCurveTo( x1, y1, x1, y1 + radius1 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let backGeometry = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let back = new Three.Mesh( backGeometry, WoodMaterial ) ;\n back.rotation.x += Math.PI/2;\n back.position.z += 0.5*12/8;\n back.position.y += 0.03;\n back.position.x += -0.025;\n\n chair.add(back);\n chair.add(plane);\n chair.add(leg1);\n chair.add(leg2);\n chair.add(leg3);\n chair.add(leg4);\n chair.add(leg5);\n chair.add(leg6);\n\n return chair\n}\n\nfunction makeObjectMinLOD(){\n let chair = new Three.Mesh();\n\n let LegGeometry = new Three.CylinderGeometry( 0.02, 0.02, 0.5, 8, 8 );\n let LegMaterial = new Three.MeshLambertMaterial( {color: 0xd9d7d7} );\n\n let leg1 = new Three.Mesh( LegGeometry, LegMaterial );\n leg1.rotation.x += Math.PI/2;\n leg1.position.z += 0.5/2;\n\n let leg2 = new Three.Mesh( LegGeometry, LegMaterial );\n leg2.rotation.x += Math.PI/2;\n leg2.position.z += 0.5/2;\n leg2.position.y += 0.4;\n\n let leg3 = new Three.Mesh( LegGeometry, LegMaterial );\n leg3.rotation.x += Math.PI/2;\n leg3.position.z += 0.5/2;\n leg3.position.x += 0.4;\n\n let leg4 = new Three.Mesh( LegGeometry, LegMaterial );\n leg4.rotation.x += Math.PI/2;\n leg4.position.z += 0.5/2;\n leg4.position.y += 0.4;\n leg4.position.x += 0.4;\n\n let leg5 = new Three.Mesh( LegGeometry, LegMaterial );\n leg5.rotation.x += Math.PI/2;\n leg5.position.z += 0.5*3/2;\n\n let leg6 = new Three.Mesh( LegGeometry, LegMaterial );\n leg6.rotation.x += Math.PI/2;\n leg6.position.z += 0.5*3/2;\n leg6.position.x += 0.4;\n\n let WoodMaterial = new Three.MeshLambertMaterial( {color: 0x9b8c75} );\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=.5;\n let height=.48;\n let radius=0.025;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let PlaneGeometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let plane = new Three.Mesh( PlaneGeometry, WoodMaterial ) ;\n\n plane.position.x += -0.05;\n plane.position.y += -0.04;\n plane.position.z += 0.5;\n\n let roundedRectShape2 = new Three.Shape();\n\n let x1=0;\n let y1=0;\n let width1=.45;\n let height1=.25;\n let radius1=0.025;\n\n roundedRectShape2.moveTo( x1, y1 + radius1 );\n roundedRectShape2.lineTo( x1, y1 + height1 - radius1 );\n roundedRectShape2.quadraticCurveTo( x1, y1 + height1, x1 + radius1, y1 + height1 );\n roundedRectShape2.lineTo( x1 + width1 - radius1, y1 + height1) ;\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1 );\n roundedRectShape2.lineTo( x1 + width1, y1 + radius1 );\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1, x1 + width1 - radius1, y1 );\n roundedRectShape2.lineTo( x1 + radius1, y1 );\n roundedRectShape2.quadraticCurveTo( x1, y1, x1, y1 + radius1 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 0.03,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let backGeometry = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let back = new Three.Mesh( backGeometry, WoodMaterial ) ;\n back.rotation.x += Math.PI/2;\n back.position.z += 0.5*12/8;\n back.position.y += 0.03;\n back.position.x += -0.025;\n\n chair.add(back);\n chair.add(plane);\n chair.add(leg1);\n chair.add(leg2);\n chair.add(leg3);\n chair.add(leg4);\n chair.add(leg5);\n chair.add(leg6);\n\n return chair\n}\n\nexport default {\n name: \"sedia\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings', 'wood'],\n title: \"chair\",\n description: \"chair\",\n image: require('./chair.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************** lod max *********************/\n\n let chair1 = new Three.Object3D();\n chair1.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(chair1);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n chair1.rotation.x+= -Math.PI/2;\n chair1.position.y+= newAltitude;\n chair1.position.x+= -WIDTH/3.5;\n chair1.position.z+= DEPTH/4;\n chair1.scale.set( 1.5*WIDTH / deltaZ,DEPTH/1.5 / deltaX, HEIGHT / deltaY);\n\n /************** lod min *********************/\n\n let chair0 = new Three.Object3D();\n chair0.add(objectMinLOD.clone());\n chair0.rotation.x+= -Math.PI/2;\n chair0.position.y+= newAltitude;\n chair0.position.x+= -WIDTH/3.5;\n chair0.position.z+= DEPTH/4;\n chair0.scale.set( 1.5*WIDTH / deltaZ,DEPTH/1.5 / deltaX, HEIGHT / deltaY);\n\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(chair1, 200);\n lod.addLevel(chair0, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/canteencart/canteen_cart.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 30;\nconst DEPTH = 40;\nconst HEIGHT = 180;\nconst RADIUS = 10;\n\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\nconst grey = new Three.MeshLambertMaterial({color: 0xC0C0C0});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let canteen_cart = new Three.Mesh(new Three.CylinderGeometry(0.8, 0.8, 0.5, 32), black);\n\n for (let fx = 0; fx <= 6; fx += 6) {\n for (let fz = 0; fz <= 6; fz += 6) {\n\n // ruota pneumatico\n let wheel = new Three.Mesh(new Three.CylinderGeometry(0.8, 0.8, 0.5, 32), black);\n wheel.position.set(fx, fz, 0);\n canteen_cart.add(wheel);\n\n // ruota cuscinetto\n let r1a = new Three.Mesh(new Three.CylinderGeometry(0.6, 0.6, 0.6, 32), grey);\n wheel.add(r1a);\n\n // dado esagonale\n let cr1 = new Three.Mesh(new Three.CylinderGeometry(0.1, 0.1, 0.8, 6), black);\n cr1.position.set(0, 0, 0);\n wheel.add(cr1);\n\n // copriruota disco superiore\n let wheelCoverUp = new Three.Mesh(new Three.CylinderGeometry(0.6, 0.6, 0.1, 32), grey);\n wheelCoverUp.rotation.x = 0.5 * Math.PI;\n wheelCoverUp.position.set(-0.3, 0, -1.2);\n wheel.add(wheelCoverUp);\n\n // copriruota disco inferiore\n let wheelCoverDown = new Three.Mesh(new Three.CylinderGeometry(0.3725, 0.3725, 0.3, 32), black);\n wheelCoverDown.rotation.x = 0.5 * Math.PI;\n wheelCoverDown.position.set(-0.3, 0, -1);\n wheel.add(wheelCoverDown);\n\n // triangolo lato 1\n let cr2 = new Three.Mesh(new Three.CylinderGeometry(0.55, 0.55, 0.05, 3), grey);\n cr2.position.set(-0.2, -0.35, -0.6);\n wheel.add(cr2);\n\n // rettangolo lato 1\n let b1 = new Three.Mesh(new Three.BoxGeometry(0.55, 1.1, 0.05), grey);\n b1.rotation.x = 0.5 * Math.PI;\n b1.position.set(0, -0.35, -0.4);\n wheel.add(b1);\n\n // triangolo lato 2\n let cr3 = new Three.Mesh(new Three.CylinderGeometry(0.55, 0.55, 0.05, 3), grey);\n cr3.position.set(-0.2, 0.35, -0.6);\n wheel.add(cr3);\n\n // rettangolo lato 2\n let b2 = new Three.Mesh(new Three.BoxGeometry(0.55, 1.1, 0.05), grey);\n b2.rotation.x = 0.5 * Math.PI;\n b2.position.set(0, 0.35, -0.4);\n wheel.add(b2);\n\n // rettangolo lato up\n let b3 = new Three.Mesh(new Three.BoxGeometry(0.95, 0.75, 0.1), grey);\n b3.position.set(-0.2, 0, -0.9);\n wheel.add(b3);\n\n }\n }\n\n // side\n let side1 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side1.rotation.x = 0.5 * Math.PI;\n side1.position.set(-0.3, 0, -9.6);\n canteen_cart.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side2.rotation.x = 0.5 * Math.PI;\n side2.position.set(-0.3, 6, -9.6);\n canteen_cart.add(side2);\n\n let side3 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side3.rotation.x = 0.5 * Math.PI;\n side3.position.set(5.7, 0, -9.6);\n canteen_cart.add(side3);\n\n let side4 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side4.rotation.x = 0.5 * Math.PI;\n side4.position.set(5.7, 6, -9.6);\n canteen_cart.add(side4);\n\n // archi top\n let a1 = new Three.Mesh(new Three.TorusGeometry(3, 0.15, 20, 20, 3.125), grey);\n a1.rotation.x = -0.5 * Math.PI;\n a1.position.set(2.7, 6, -18.1);\n canteen_cart.add(a1);\n\n // archi top\n let a2 = new Three.Mesh(new Three.TorusGeometry(3, 0.15, 20, 20, 3.125), grey);\n a2.rotation.x = -0.5 * Math.PI;\n a2.position.set(2.7, 0, -18.1);\n canteen_cart.add(a2);\n\n // ripiano top\n let plane = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane.position.set(-0.3, 3, -18);\n canteen_cart.add(plane);\n\n // ripiano top\n let plane2 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane2.rotation.x = 0.5 * Math.PI;\n plane2.rotation.z = 0.5 * Math.PI;\n plane2.position.set(2.7, 0, -18);\n canteen_cart.add(plane2);\n\n // ripiano top\n let plane3 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane3.rotation.x = 0.5 * Math.PI;\n plane3.rotation.z = 0.5 * Math.PI;\n plane3.position.set(2.7, 6, -18);\n canteen_cart.add(plane3);\n\n // ripiano top\n let plane4 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane4.position.set(5.7, 3, -18);\n canteen_cart.add(plane4);\n\n //ripiani\n for (let Dz = -16.5; Dz <= -2.8; Dz += 1.5) {\n let plane5 = new Three.Mesh(new Three.BoxGeometry(0.5, 5.7, 0.1), grey);\n plane5.rotation.z = 0.5 * Math.PI;\n plane5.position.set(2.7, 5.9, Dz + 0.2);\n canteen_cart.add(plane5);\n\n let plane6 = new Three.Mesh(new Three.BoxGeometry(0.1, 5.7, 0.5), grey);\n plane6.rotation.z = 0.5 * Math.PI;\n plane6.position.set(2.7, 6.1, Dz);\n canteen_cart.add(plane6);\n\n let plane7 = new Three.Mesh(new Three.BoxGeometry(0.5, 5.7, 0.1), grey);\n plane7.rotation.z = 0.5 * Math.PI;\n plane7.position.set(2.7, 0.1, Dz + 0.2);\n canteen_cart.add(plane7);\n\n let plane8 = new Three.Mesh(new Three.BoxGeometry(0.1, 5.7, 0.5), grey);\n plane8.rotation.z = 0.5 * Math.PI;\n plane8.position.set(2.7, -0.1, Dz);\n canteen_cart.add(plane8)\n }\n\n // ripiano down\n let d1 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n d1.position.set(-0.3, 3, -2);\n canteen_cart.add(d1);\n\n //ripiano down\n let d2 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n d2.position.set(5.7, 3, -2);\n canteen_cart.add(d2);\n\n return canteen_cart\n}\n\nfunction makeObjectMinLOD() {\n\n let canteen_cart = new Three.Mesh();\n\n for (let fx = 0; fx <= 6; fx += 6) {\n for (let fz = 0; fz <= 6; fz += 6) {\n\n // ruota pneumatico\n let wheel = new Three.Mesh(new Three.CylinderGeometry(0.8, 0.8, 0.5, 32), black);\n wheel.position.set(fx, fz, 0);\n canteen_cart.add(wheel);\n\n // ruota cuscinetto\n let r1a = new Three.Mesh(new Three.CylinderGeometry(0.6, 0.6, 0.6, 32), grey);\n wheel.add(r1a);\n\n // dado esagonale\n let cr1 = new Three.Mesh(new Three.CylinderGeometry(0.1, 0.1, 0.8, 6), black);\n cr1.position.set(0, 0, 0);\n wheel.add(cr1);\n\n // copriruota disco superiore\n let wheelCoverUp = new Three.Mesh(new Three.CylinderGeometry(0.6, 0.6, 0.1, 32), grey);\n wheelCoverUp.rotation.x = 0.5 * Math.PI;\n wheelCoverUp.position.set(-0.3, 0, -1.2);\n wheel.add(wheelCoverUp);\n\n // copriruota disco inferiore\n let wheelCoverDown = new Three.Mesh(new Three.CylinderGeometry(0.3725, 0.3725, 0.3, 32), black);\n wheelCoverDown.rotation.x = 0.5 * Math.PI;\n wheelCoverDown.position.set(-0.3, 0, -1);\n wheel.add(wheelCoverDown);\n\n // triangolo lato 1\n let cr2 = new Three.Mesh(new Three.CylinderGeometry(0.55, 0.55, 0.05, 3), grey);\n cr2.position.set(-0.2, -0.35, -0.6);\n wheel.add(cr2);\n\n // rettangolo lato 1\n let b1 = new Three.Mesh(new Three.BoxGeometry(0.55, 1.1, 0.05), grey);\n b1.rotation.x = 0.5 * Math.PI;\n b1.position.set(0, -0.35, -0.4);\n wheel.add(b1);\n\n // triangolo lato 2\n let cr3 = new Three.Mesh(new Three.CylinderGeometry(0.55, 0.55, 0.05, 3), grey);\n cr3.position.set(-0.2, 0.35, -0.6);\n wheel.add(cr3);\n\n // rettangolo lato 2\n let b2 = new Three.Mesh(new Three.BoxGeometry(0.55, 1.1, 0.05), grey);\n b2.rotation.x = 0.5 * Math.PI;\n b2.position.set(0, 0.35, -0.4);\n wheel.add(b2);\n\n // rettangolo lato up\n let b3 = new Three.Mesh(new Three.BoxGeometry(0.95, 0.75, 0.1), grey);\n b3.position.set(-0.2, 0, -0.9);\n wheel.add(b3);\n\n }\n }\n\n // side\n let side1 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side1.rotation.x = 0.5 * Math.PI;\n side1.position.set(-0.3, 0, -9.6);\n canteen_cart.add(side1);\n\n let side2 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side2.rotation.x = 0.5 * Math.PI;\n side2.position.set(-0.3, 6, -9.6);\n canteen_cart.add(side2);\n\n let side3 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side3.rotation.x = 0.5 * Math.PI;\n side3.position.set(5.7, 0, -9.6);\n canteen_cart.add(side3);\n\n let side4 = new Three.Mesh(new Three.BoxGeometry(0.3, 17.1, 0.3), grey);\n side4.rotation.x = 0.5 * Math.PI;\n side4.position.set(5.7, 6, -9.6);\n canteen_cart.add(side4);\n\n // archi top\n let a1 = new Three.Mesh(new Three.TorusGeometry(3, 0.15, 20, 20, 3.125), grey);\n a1.rotation.x = -0.5 * Math.PI;\n a1.position.set(2.7, 6, -18.1);\n canteen_cart.add(a1);\n\n // archi top\n let a2 = new Three.Mesh(new Three.TorusGeometry(3, 0.15, 20, 20, 3.125), grey);\n a2.rotation.x = -0.5 * Math.PI;\n a2.position.set(2.7, 0, -18.1);\n canteen_cart.add(a2);\n\n // ripiano top\n let plane = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane.position.set(-0.3, 3, -18);\n canteen_cart.add(plane);\n\n // ripiano top\n let plane2 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane2.rotation.x = 0.5 * Math.PI;\n plane2.rotation.z = 0.5 * Math.PI;\n plane2.position.set(2.7, 0, -18);\n canteen_cart.add(plane2);\n\n // ripiano top\n let plane3 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane3.rotation.x = 0.5 * Math.PI;\n plane3.rotation.z = 0.5 * Math.PI;\n plane3.position.set(2.7, 6, -18);\n canteen_cart.add(plane3);\n\n // ripiano top\n let plane4 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n plane4.position.set(5.7, 3, -18);\n canteen_cart.add(plane4);\n\n //ripiani\n for (let Dz = -16.5; Dz <= -2.8; Dz += 1.5) {\n let plane5 = new Three.Mesh(new Three.BoxGeometry(0.5, 5.7, 0.1), grey);\n plane5.rotation.z = 0.5 * Math.PI;\n plane5.position.set(2.7, 5.9, Dz + 0.2);\n canteen_cart.add(plane5);\n\n let plane6 = new Three.Mesh(new Three.BoxGeometry(0.1, 5.7, 0.5), grey);\n plane6.rotation.z = 0.5 * Math.PI;\n plane6.position.set(2.7, 6.1, Dz);\n canteen_cart.add(plane6);\n\n let plane7 = new Three.Mesh(new Three.BoxGeometry(0.5, 5.7, 0.1), grey);\n plane7.rotation.z = 0.5 * Math.PI;\n plane7.position.set(2.7, 0.1, Dz + 0.2);\n canteen_cart.add(plane7);\n\n let plane8 = new Three.Mesh(new Three.BoxGeometry(0.1, 5.7, 0.5), grey);\n plane8.rotation.z = 0.5 * Math.PI;\n plane8.position.set(2.7, -0.1, Dz);\n canteen_cart.add(plane8)\n }\n\n // ripiano down\n let d1 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n d1.position.set(-0.3, 3, -2);\n canteen_cart.add(d1);\n\n //ripiano down\n let d2 = new Three.Mesh(new Three.BoxGeometry(0.3, 5.7, 0.3), grey);\n d2.position.set(5.7, 3, -2);\n canteen_cart.add(d2);\n\n return canteen_cart\n}\nexport default {\n name: 'canteen cart',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'metal'],\n title: 'canteen cart',\n description: 'canteen cart',\n image: require('./canteen_cart.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n\n \n \n \n {element.type}\n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************** lod max ****************/\n\n let canteen_cartMaxLOD = new Three.Object3D();\n canteen_cartMaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(canteen_cartMaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n canteen_cartMaxLOD.rotation.x+=Math.PI/2;\n canteen_cartMaxLOD.position.y+=newAltitude;\n canteen_cartMaxLOD.scale.set(WIDTH / deltaY, DEPTH / deltaX, HEIGHT / deltaZ);\n\n /************** lod min ****************/\n\n let canteen_cartMinLOD = new Three.Object3D();\n canteen_cartMinLOD.add(objectMinLOD.clone());\n canteen_cartMinLOD.rotation.x+=Math.PI/2;\n canteen_cartMinLOD.position.y+=newAltitude;\n canteen_cartMinLOD.scale.set(WIDTH / deltaY, DEPTH / deltaX, HEIGHT / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(canteen_cartMaxLOD, 200);\n lod.addLevel(canteen_cartMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/canteen-table/canteen_table.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 100;\nconst DEPTH = 140;\nconst HEIGHT = 100;\n\nconst brown = new Three.MeshLambertMaterial({color: 0xac6c25});\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\nconst grey = new Three.MeshLambertMaterial({color: 0xC0C0C0});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n //central pillar\n let centralPillar = new Three.BoxGeometry(1,3,1);\n let canteen_table = new Three.Mesh(centralPillar,grey);\n\n // plane top\n let planeTop = new Three.Mesh(new Three.BoxGeometry(10,0.5,10),brown);\n planeTop.position.set(0,1.5,0);\n canteen_table.add(planeTop);\n\n //plane nuts\n for(let dx=-0.25;dx<=0.25;dx+=0.5)\n {\n for(let dz=-0.25;dz<=0.25;dz+=0.5)\n {\n let nut = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.8,6),black);\n nut.position.set(dx,1.4,dz);\n canteen_table.add(nut);\n }\n }\n\n // central axis\n let axis1 = new Three.Mesh(new Three.BoxGeometry(1,15,1),grey);\n axis1.rotation.x=0.5*Math.PI;\n axis1.position.set(0,-1,0);\n canteen_table.add(axis1);\n\n //axis\n let axis2 = new Three.Mesh(new Three.BoxGeometry(1,10,1),grey);\n axis2.rotation.z=0.5*Math.PI;\n axis2.position.set(0,-1,-7);\n canteen_table.add(axis2);\n\n //axis\n let axis3 = new Three.Mesh(new Three.BoxGeometry(1,10,1),grey);\n axis3.rotation.z=0.5*Math.PI;\n axis3.position.set(0,-1,7);\n canteen_table.add(axis3);\n\n //legs\n for(let gx=-3;gx<=3;gx+=6)\n {\n for(let gz=7;gz>=-7;gz-=14)\n {\n let leg = new Three.Mesh(new Three.BoxGeometry(1,3,1),grey);\n leg.rotation.y=0.5*Math.PI;\n leg.position.set(gx,-2,gz);\n canteen_table.add(leg);\n }\n }\n\n //legs base\n for(let fx=-3;fx<=3;fx+=6)\n {\n for(let fz=8;fz>=-8;fz-=16)\n {\n let legBase = new Three.Mesh(new Three.BoxGeometry(3,0.25,1),grey);\n legBase.rotation.y=0.5*Math.PI;\n legBase.position.set(fx,-3.5,fz+1);\n canteen_table.add(legBase);\n\n // base nuts\n let baseNut1 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.3,6),black);\n baseNut1.position.set(fx,-3.5,fz-1);\n baseNut1.position.set(fx,-3.5,fz+2);\n canteen_table.add(baseNut1);\n\n if(fz>0)\n {\n legBase.position.set(fx,-3.5,fz-1);\n baseNut1.position.set(fx,-3.5,fz-2);\n }\n\n let baseNut2 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.3,6),black);\n baseNut2.position.set(fx,-3.5,fz);\n canteen_table.add(baseNut2);\n }\n }\n\n // chair back\n for(let fsx=-3;fsx<=3;fsx+=6)\n {\n for(let fsz=-9.24;fsz<=9.24;fsz+=18.48)\n {\n let chairBack = new Three.Mesh(new Three.BoxGeometry(4,0.5,2.5),brown);\n chairBack.rotation.x=0.5*Math.PI;\n chairBack.position.set(fsx,2.5,fsz);\n canteen_table.add(chairBack);\n }\n }\n\n for(let fbx=-4.5;fbx<=4.5;fbx+=9)\n {\n for(let fbz=-9.45;fbz<=9.45;fbz+=18.9)\n {\n // chair support bar\n let support1 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,4),grey);\n support1.rotation.x=0.5*Math.PI;\n support1.position.set(fbx,1.6,fbz);\n canteen_table.add(support1);\n\n let support2 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,4),grey);\n support2.rotation.x=0.5*Math.PI;\n support2.position.set(fbx-3,1.6,fbz);\n canteen_table.add(support2);\n\n //nut back chair\n let nutBack1 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.6,6),black);\n nutBack1.rotation.x=0.5*Math.PI;\n nutBack1.position.set(fbx,2.5,fbz-0.2);\n canteen_table.add(nutBack1);\n\n let nutBack2 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.6,6),black);\n nutBack2.rotation.x=0.5*Math.PI;\n nutBack2.position.set(fbx-3,2.5,fbz-0.2);\n canteen_table.add(nutBack2);\n\n if(fbx<0)\n {\n support2.position.set(fbx+3,1.6,fbz);\n nutBack2.position.set(fbx+3,2.5,fbz-0.2);\n if(fbz<0)\n nutBack2.position.set(fbx+3,2.5,fbz+0.2);\n }\n\n if(fbz<0)\n {\n nutBack1.position.set(fbx,2.5,fbz+0.2);\n\n if(fbx>0)\n nutBack2.position.set(fbx-3,2.5,fbz+0.2);\n\n }\n }\n }\n\n for(let fdx=-3;fdx<=3;fdx+=6)\n {\n for(let fdz=-7;fdz<=7;fdz+=14)\n {\n // seat chair\n let seat = new Three.Mesh(new Three.BoxGeometry(4,0.5,4),brown);\n seat.rotation.y=0.5*Math.PI;\n seat.position.set(fdx,-0.25,fdz);\n canteen_table.add(seat);\n }\n }\n\n for(let fbsx=-4.5;fbsx<=4.5;fbsx+=9)\n {\n for(let fbsz=-9;fbsz<=9;fbsz+=18)\n {\n // seat support\n let seatSupport1 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,1),grey);\n seatSupport1.position.set(fbsx,-0.35,fbsz);\n canteen_table.add(seatSupport1);\n\n let seatSupport2 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,1),grey);\n seatSupport2.position.set(fbsx-3,-0.35,fbsz);\n canteen_table.add(seatSupport2);\n\n // seat nuts\n let seatNut1 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.8,6),black);\n seatNut1.position.set(fbsx,-0.35,fbsz-2);\n canteen_table.add(seatNut1);\n\n let seatNut2 = new Three.Mesh(new Three.CylinderGeometry(0.1,0.1,0.8,6),black);\n seatNut2.position.set(fbsx-3,-0.35,fbsz-2);\n canteen_table.add(seatNut2);\n\n if(fbsx<0)\n {\n seatSupport2.position.set(fbsx+3,-0.35,fbsz);\n seatNut2.position.set(fbsx+3,-0.35,fbsz-2);\n if(fbsz<0)\n seatNut2.position.set(fbsx+3,-0.35,fbsz+2);\n }\n\n if(fbsz<0)\n {\n seatNut1.position.set(fbsx,-0.35,fbsz+2);\n\n if(fbsx>0)\n seatNut2.position.set(fbsx-3,-0.35,fbsz+2);\n\n }\n }\n }\n\n return canteen_table\n}\n\nfunction makeObjectMinLOD() {\n\n //central pillar\n let centralPillar = new Three.BoxGeometry(1,3,1);\n let canteen_table = new Three.Mesh(centralPillar,grey);\n\n // plane top\n let planeTop = new Three.Mesh(new Three.BoxGeometry(10,0.5,10),brown);\n planeTop.position.set(0,1.5,0);\n canteen_table.add(planeTop);\n\n // central axis\n let axis1 = new Three.Mesh(new Three.BoxGeometry(1,15,1),grey);\n axis1.rotation.x=0.5*Math.PI;\n axis1.position.set(0,-1,0);\n canteen_table.add(axis1);\n\n //axis\n let axis2 = new Three.Mesh(new Three.BoxGeometry(1,10,1),grey);\n axis2.rotation.z=0.5*Math.PI;\n axis2.position.set(0,-1,-7);\n canteen_table.add(axis2);\n\n //axis\n let axis3 = new Three.Mesh(new Three.BoxGeometry(1,10,1),grey);\n axis3.rotation.z=0.5*Math.PI;\n axis3.position.set(0,-1,7);\n canteen_table.add(axis3);\n\n //legs\n for(let gx=-3;gx<=3;gx+=6)\n {\n for(let gz=7;gz>=-7;gz-=14)\n {\n let leg = new Three.Mesh(new Three.BoxGeometry(1,3,1),grey);\n leg.rotation.y=0.5*Math.PI;\n leg.position.set(gx,-2,gz);\n canteen_table.add(leg);\n }\n }\n\n //legs base\n for(let fx=-3;fx<=3;fx+=6)\n {\n for(let fz=8;fz>=-8;fz-=16)\n {\n let legBase = new Three.Mesh(new Three.BoxGeometry(3,0.25,1),grey);\n legBase.rotation.y=0.5*Math.PI;\n legBase.position.set(fx,-3.5,fz+1);\n canteen_table.add(legBase);\n\n if(fz>0)\n legBase.position.set(fx,-3.5,fz-1);\n }\n }\n\n // chair back\n for(let fsx=-3;fsx<=3;fsx+=6)\n {\n for(let fsz=-9.24;fsz<=9.24;fsz+=18.48)\n {\n let chairBack = new Three.Mesh(new Three.BoxGeometry(4,0.5,2.5),brown);\n chairBack.rotation.x=0.5*Math.PI;\n chairBack.position.set(fsx,2.5,fsz);\n canteen_table.add(chairBack);\n }\n }\n\n for(let fbx=-4.5;fbx<=4.5;fbx+=9)\n {\n for(let fbz=-9.45;fbz<=9.45;fbz+=18.9)\n {\n // chair support bar\n let support1 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,4),grey);\n support1.rotation.x=0.5*Math.PI;\n support1.position.set(fbx,1.6,fbz);\n canteen_table.add(support1);\n\n let support2 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,4),grey);\n support2.rotation.x=0.5*Math.PI;\n support2.position.set(fbx-3,1.6,fbz);\n canteen_table.add(support2);\n\n if(fbx<0)\n support2.position.set(fbx+3,1.6,fbz);\n }\n }\n\n for(let fdx=-3;fdx<=3;fdx+=6)\n {\n for(let fdz=-7;fdz<=7;fdz+=14)\n {\n // seat chair\n let seat = new Three.Mesh(new Three.BoxGeometry(4,0.5,4),brown);\n seat.rotation.y=0.5*Math.PI;\n seat.position.set(fdx,-0.25,fdz);\n canteen_table.add(seat);\n }\n }\n\n for(let fbsx=-4.5;fbsx<=4.5;fbsx+=9)\n {\n for(let fbsz=-9;fbsz<=9;fbsz+=18)\n {\n // seat support\n let seatSupport1 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,1),grey);\n seatSupport1.position.set(fbsx,-0.35,fbsz);\n canteen_table.add(seatSupport1);\n\n let seatSupport2 = new Three.Mesh(new Three.BoxGeometry(0.25,0.125,1),grey);\n seatSupport2.position.set(fbsx-3,-0.35,fbsz);\n canteen_table.add(seatSupport2);\n\n if(fbsx<0)\n seatSupport2.position.set(fbsx+3,-0.35,fbsz);\n }\n }\n\n return canteen_table\n}\n\n\nexport default {\n name: 'canteen table',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood'],\n title: 'canteen table',\n description: 'canteen table',\n image: require('./canteen_table.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /************** lod max *****************/\n\n let canteen_table_MaxLOD = new Three.Object3D();\n canteen_table_MaxLOD.add(objectMaxLOD.clone());\n\n let valuePosition = new Three.Box3().setFromObject(canteen_table_MaxLOD);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n canteen_table_MaxLOD.position.y+= HEIGHT/2 +newAltitude;\n canteen_table_MaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /************** lod min *****************/\n\n let canteen_table_MinLOD = new Three.Object3D();\n canteen_table_MinLOD.add(objectMinLOD.clone());\n canteen_table_MinLOD.position.y+= HEIGHT/2 +newAltitude;\n canteen_table_MinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(canteen_table_MaxLOD, 200);\n lod.addLevel(canteen_table_MinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod)\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/camera/camera.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 10;\nconst DEPTH = 20;\nconst HEIGHT = 20;\n\nconst grey = new Three.MeshLambertMaterial({color:0xaaaaaa});\nconst black = new Three.MeshLambertMaterial({color:0x000000});\nconst white = new Three.MeshLambertMaterial({color:0xffffff});\nconst glassMaterial = new Three.MeshLambertMaterial({color:0xffffff, transparent: true, opacity:0.5});\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD(){\n\n let video_camera = new Three.Mesh();\n\n let cylinderGeometry = new Three.CylinderGeometry(0.2,0.2,0.5,80);\n let body = new Three.Mesh(cylinderGeometry,grey);\n body.rotation.x+= Math.PI/2;\n body.position.set(0,0.5,0);\n\n let geometrySphereUp = new Three.SphereGeometry( 0.2, 32, 32 );\n let sphereUp = new Three.Mesh( geometrySphereUp, grey );\n sphereUp.position.set(0,-0.25,0);\n body.add(sphereUp);\n\n let cylinderGeometry2b = new Three.CylinderGeometry(0.085,0.085,0.5,80);\n let focus = new Three.Mesh(cylinderGeometry2b,black);\n focus.position.set(0,0.04,0);\n body.add(focus);\n\n let geometrySphereUp2 = new Three.SphereGeometry( 0.025, 32, 32 );\n\n for (let i = 0; i < 16; i++) {\n\n let led_1 = new Three.Mesh( geometrySphereUp2, white );\n let led_2 = new Three.Mesh( geometrySphereUp2, white );\n\n led_1.position.set(Math.cos(2*Math.PI/14*i)*0.115,0.2497,Math.sin(2*Math.PI/14*i)*0.115 );\n led_2.position.set(Math.cos(2*Math.PI/16*i)*0.17,0.25,Math.sin(2*Math.PI/16*i)*0.17);\n led_1.scale.set(1,1,1.3);\n led_2.scale.set(1,1,1.3);\n led_1.rotation.x+=Math.PI/2;\n led_2.rotation.x+=Math.PI/2;\n body.add(led_1);\n body.add(led_2);\n\n\n }\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.195,0.195,0.05,80);\n let glass = new Three.Mesh(cylinderGeometry2, glassMaterial);\n glass.position.set(0,0.27,0);\n body.add(glass);\n\n let cylinderGeometry3 = new Three.CylinderGeometry(0.2,0.2,0.1,80,16,true);\n let cover = new Three.Mesh(cylinderGeometry3,grey);\n cover.position.set(0,0.25,0);\n body.add(cover);\n\n let cubeGeometryBase = new Three.BoxGeometry(0.25,0.05,0.25);\n let base = new Three.Mesh(cubeGeometryBase,grey);\n base.position.set(0,-0.6,0.35);\n body.add(base);\n\n for (let i = 0.265; i <=0.5 ; i+=0.165) {\n\n let cylinderGeometry = new Three.CylinderGeometry(0.02,0.02,0.055,6,6);\n let locknut1 = new Three.Mesh(cylinderGeometry,black);\n let locknut2 = new Three.Mesh(cylinderGeometry,black);\n locknut1.position.set(0.08,-0.6,i);\n locknut2.position.set(-0.08,-0.6,i);\n body.add(locknut1);\n body.add(locknut2);\n\n }\n\n let shape2 = new Three.Shape();\n shape2.moveTo( 0.2,0.45 );\n shape2.lineTo( 0.5,0.5 );\n shape2.lineTo( 0.7,0.5 );\n shape2.lineTo(0.7,0.6);\n shape2.lineTo(0.2,0.6);\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry3 = new Three.ExtrudeGeometry( shape2, extrudeSettings );\n let arm_p1 = new Three.Mesh(geometry3,grey) ;\n arm_p1.rotation.z=Math.PI/2;\n arm_p1.rotation.y=-Math.PI/2;\n arm_p1.position.set(0.05,-0.8,0.875);\n body.add( arm_p1 );\n\n let cylinderGeometry4 = new Three.CylinderGeometry(0.1,0.1,0.1,80,16);\n let arm_p2 = new Three.Mesh(cylinderGeometry4,grey);\n arm_p2.rotation.x+=Math.PI/2;\n arm_p2.position.set(0,-0.02,0.325);\n body.add(arm_p2);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(0.05,0.05,0.14,80,16);\n let arm_p3 = new Three.Mesh(cylinderGeometry5,black);\n arm_p3.rotation.x+=Math.PI/2;\n arm_p3.position.set(0,-0.02,0.325);\n body.add(arm_p3);\n\n let cylinderGeometry6 = new Three.CylinderGeometry(0.025,0.025,0.16,80,16);\n let arm_p3b = new Three.Mesh(cylinderGeometry6,grey);\n arm_p3b.rotation.x+=Math.PI/2;\n arm_p3b.position.set(0,-0.02,0.325);\n body.add(arm_p3b);\n\n let cylinderGeometry7 = new Three.CylinderGeometry(0.026,0.026,0.12,80,16);\n let arm_p4 = new Three.Mesh(cylinderGeometry7,black);\n arm_p4.rotation.z+=Math.PI/2;\n arm_p4.position.set(0,-0.02,0.23);\n body.add(arm_p4);\n\n let cylinderGeometry8 = new Three.CylinderGeometry(0.02,0.02,0.16,80,16);\n let arm_p5 = new Three.Mesh(cylinderGeometry8,grey);\n arm_p5.rotation.z+=Math.PI/2;\n arm_p5.position.set(0,-0.02,0.23);\n body.add(arm_p5);\n\n let joint = new Three.Shape();\n\n // startpoint\n joint.moveTo(0, 0);\n joint.lineTo(0, 0.1);\n joint.lineTo(0.1, 0.1);\n joint.bezierCurveTo(0.05,0.05,0.05,0.05,0.1,0);\n\n let extrudeSettings2 = { depth: 0.1, bevelEnabled: false, bevelSegments: 1, steps: 1, bevelSize: 1, bevelThickness: 1 };\n\n let geometry4 = new Three.ExtrudeGeometry( joint, extrudeSettings2 );\n\n let mesh_1 = new Three.Mesh( geometry4, grey );\n\n mesh_1.position.set(-0.05,0.03,0.15);\n mesh_1.rotation.y+=Math.PI/2;\n mesh_1.rotation.z+=-Math.PI;\n\n let mesh_2 = new Three.Mesh( geometry4, grey );\n mesh_2.position.set(-0.05,-0.07,0.3);\n mesh_2.rotation.y+=Math.PI/2;\n\n body.add(mesh_1);\n body.add(mesh_2);\n\n let points = [];\n\n points.push( new Three.Vector2(0.2, 0));\n points.push( new Three.Vector2(0.2, 0));\n points.push( new Three.Vector2(0.2, 0.2));\n points.push( new Three.Vector2(0.2, 0.2));\n\n let geometry = new Three.LatheGeometry( points, 200, 0, Math.PI );\n grey.side = Three.DoubleSide;\n let cover_2 = new Three.Mesh(geometry,grey);\n cover_2.position.set(0,0.2,0);\n cover_2.rotation.y+=Math.PI/2;\n body.add(cover_2);\n\n let cylinderGeometry9 = new Three.CylinderGeometry(0.025,0.02,0.3,80,16);\n let antenna_p1 = new Three.Mesh(cylinderGeometry9,black);\n antenna_p1.rotation.x+=Math.PI/2;\n antenna_p1.position.set(0,-0.5,-0.18);\n body.add(antenna_p1);\n\n let cylinderGeometry10 = new Three.CylinderGeometry(0.02,0.015,0.3,80,16);\n let antenna_p2 = new Three.Mesh(cylinderGeometry10,black);\n antenna_p2.rotation.x+=Math.PI/2;\n antenna_p2.position.set(0,-0.5,-0.35);\n body.add(antenna_p2);\n\n let sphere_p1 = new Three.SphereGeometry( 0.015, 32, 32 );\n let antenna_p3 = new Three.Mesh( sphere_p1, black );\n antenna_p3.position.set(0,-0.5,-0.5);\n body.add(antenna_p3);\n\n let sphere_p2 = new Three.SphereGeometry( 0.04, 32, 32 );\n let antenna_p4 = new Three.Mesh( sphere_p2, black );\n antenna_p4.position.set(0,-0.5,0);\n body.add(antenna_p4);\n\n let cylinderGeometry11 = new Three.CylinderGeometry(0.025,0.025,0.1,80,16);\n let antenna_p5 = new Three.Mesh(cylinderGeometry11,black);\n antenna_p5.position.set(0,-0.42,0);\n body.add(antenna_p5);\n video_camera.add(body);\n\n return video_camera;\n}\n\nfunction makeObjectMinLOD(){\n\n let video_camera = new Three.Mesh();\n\n let cylinderGeometry = new Three.CylinderGeometry(0.2,0.2,0.5,8.8);\n let body = new Three.Mesh(cylinderGeometry,grey);\n body.rotation.x+= Math.PI/2;\n body.position.set(0,0.5,0);\n\n let geometrySphereUp = new Three.SphereGeometry( 0.2, 8, 8 );\n let sphereUp = new Three.Mesh( geometrySphereUp, grey );\n sphereUp.position.set(0,-0.25,0);\n body.add(sphereUp);\n\n let cylinderGeometry2b = new Three.CylinderGeometry(0.085,0.085,0.5,8,8);\n let focus = new Three.Mesh(cylinderGeometry2b,black);\n focus.position.set(0,0.04,0);\n body.add(focus);\n\n let cylinderGeometry2 = new Three.CylinderGeometry(0.195,0.195,0.05,8,8);\n let glass = new Three.Mesh(cylinderGeometry2,glassMaterial);\n glass.position.set(0,0.27,0);\n body.add(glass);\n\n let cylinderGeometry3 = new Three.CylinderGeometry(0.2,0.2,0.1,8,8,true);\n let cover = new Three.Mesh(cylinderGeometry3,grey);\n cover.position.set(0,0.25,0);\n body.add(cover);\n\n let cubeGeometryBase = new Three.BoxGeometry(0.25,0.05,0.25);\n let base = new Three.Mesh(cubeGeometryBase,grey);\n base.position.set(0,-0.6,0.35);\n body.add(base);\n\n let shape2 = new Three.Shape();\n shape2.moveTo( 0.2,0.45 );\n shape2.lineTo( 0.5,0.5 );\n shape2.lineTo( 0.7,0.5 );\n shape2.lineTo(0.7,0.6);\n shape2.lineTo(0.2,0.6);\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry3 = new Three.ExtrudeGeometry( shape2, extrudeSettings );\n let arm_p1 = new Three.Mesh(geometry3,grey) ;\n arm_p1.rotation.z=Math.PI/2;\n arm_p1.rotation.y=-Math.PI/2;\n arm_p1.position.set(0.05,-0.8,0.875);\n body.add( arm_p1 );\n\n let cylinderGeometry4 = new Three.CylinderGeometry(0.1,0.1,0.1,80,16);\n let arm_p2 = new Three.Mesh(cylinderGeometry4,grey);\n arm_p2.rotation.x+=Math.PI/2;\n arm_p2.position.set(0,-0.02,0.325);\n body.add(arm_p2);\n\n let cylinderGeometry5 = new Three.CylinderGeometry(0.05,0.05,0.14,80,16);\n let arm_p3 = new Three.Mesh(cylinderGeometry5,black);\n arm_p3.rotation.x+=Math.PI/2;\n arm_p3.position.set(0,-0.02,0.325);\n body.add(arm_p3);\n\n let cylinderGeometry6 = new Three.CylinderGeometry(0.025,0.025,0.16,80,16);\n let arm_p3b = new Three.Mesh(cylinderGeometry6,grey);\n arm_p3b.rotation.x+=Math.PI/2;\n arm_p3b.position.set(0,-0.02,0.325);\n body.add(arm_p3b);\n\n let cylinderGeometry7 = new Three.CylinderGeometry(0.026,0.026,0.12,80,16);\n let arm_p4 = new Three.Mesh(cylinderGeometry7,black);\n arm_p4.rotation.z+=Math.PI/2;\n arm_p4.position.set(0,-0.02,0.23);\n body.add(arm_p4);\n\n let cylinderGeometry8 = new Three.CylinderGeometry(0.02,0.02,0.16,80,16);\n let arm_p5 = new Three.Mesh(cylinderGeometry8,grey);\n arm_p5.rotation.z+=Math.PI/2;\n arm_p5.position.set(0,-0.02,0.23);\n body.add(arm_p5);\n\n let joint = new Three.Shape();\n\n // startpoint\n joint.moveTo(0, 0);\n joint.lineTo(0, 0.1);\n joint.lineTo(0.1, 0.1);\n joint.bezierCurveTo(0.05,0.05,0.05,0.05,0.1,0);\n\n let extrudeSettings2 = { depth: 0.1, bevelEnabled: false, bevelSegments: 1, steps: 1, bevelSize: 1, bevelThickness: 1 };\n\n let geometry4 = new Three.ExtrudeGeometry( joint, extrudeSettings2 );\n\n let mesh_1 = new Three.Mesh( geometry4, grey );\n\n mesh_1.position.set(-0.05,0.03,0.15);\n mesh_1.rotation.y+=Math.PI/2;\n mesh_1.rotation.z+=-Math.PI;\n\n let mesh_2 = new Three.Mesh( geometry4, grey );\n mesh_2.position.set(-0.05,-0.07,0.3);\n mesh_2.rotation.y+=Math.PI/2;\n\n body.add(mesh_1);\n body.add(mesh_2);\n\n\n let cylinderGeometry9 = new Three.CylinderGeometry(0.025,0.02,0.3,8,8);\n let antenna_p1 = new Three.Mesh(cylinderGeometry9,black);\n antenna_p1.rotation.x+=Math.PI/2;\n antenna_p1.position.set(0,-0.5,-0.18);\n body.add(antenna_p1);\n\n let cylinderGeometry10 = new Three.CylinderGeometry(0.02,0.015,0.3,8,8);\n let antenna_p2 = new Three.Mesh(cylinderGeometry10,black);\n antenna_p2.rotation.x+=Math.PI/2;\n antenna_p2.position.set(0,-0.5,-0.35);\n body.add(antenna_p2);\n\n let sphere_p1 = new Three.SphereGeometry( 0.015, 8, 8 );\n let antenna_p3 = new Three.Mesh( sphere_p1, black );\n antenna_p3.position.set(0,-0.5,-0.5);\n body.add(antenna_p3);\n\n let sphere_p2 = new Three.SphereGeometry( 0.04, 8, 8 );\n let antenna_p4 = new Three.Mesh( sphere_p2, black );\n antenna_p4.position.set(0,-0.5,0);\n body.add(antenna_p4);\n\n let cylinderGeometry11 = new Three.CylinderGeometry(0.025,0.025,0.1,8,8);\n let antenna_p5 = new Three.Mesh(cylinderGeometry11,black);\n antenna_p5.position.set(0,-0.42,0);\n body.add(antenna_p5);\n video_camera.add(body);\n\n return video_camera;\n}\n\n\nexport default {\n name: 'camera',\n prototype: 'items',\n\n info: {\n tag: ['security', 'metal'],\n title: 'camera',\n description: 'camera',\n image: require('./camera.png')\n },\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** LOD max ***********************/\n\n let video_cameraMaxLOD = new Three.Object3D();\n video_cameraMaxLOD.add(objectMaxLOD.clone());\n\n let aa = new Three.Box3().setFromObject(video_cameraMaxLOD);\n\n let deltaX = Math.abs(aa.max.x - aa.min.x);\n let deltaY = Math.abs(aa.max.y - aa.min.y);\n let deltaZ = Math.abs(aa.max.z - aa.min.z);\n\n video_cameraMaxLOD.position.y+= HEIGHT/8 +newAltitude;\n video_cameraMaxLOD.position.z+= DEPTH/2;\n video_cameraMaxLOD.scale.set( DEPTH / deltaZ, HEIGHT / deltaY,WIDTH / deltaX);\n\n /**************** LOD min ***********************/\n\n let video_cameraMinLOD = new Three.Object3D();\n video_cameraMinLOD.add(objectMinLOD.clone());\n\n\n video_cameraMinLOD.position.y+= HEIGHT/8 +newAltitude;\n video_cameraMinLOD.position.z+= DEPTH/2;\n video_cameraMinLOD.scale.set( DEPTH / deltaZ, HEIGHT / deltaY,WIDTH / deltaX);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(video_cameraMaxLOD, 200);\n lod.addLevel(video_cameraMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/bookcase/bookcase.png\";","module.exports = __webpack_public_path__ + \"catalog/items/bookcase/bookTexture3.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/bookcase/bookTexture2.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/bookcase/bookTexture1.jpg\";","import {Record, List, Map, fromJS} from 'immutable';\nimport {MODE_IDLE} from './constants';\nimport {SNAP_MASK} from './utils/snap';\n\nlet safeLoadMapList = (mapList, Model, defaultMap) => {\n return mapList\n ? new Map(mapList).map(m => new Model(m)).toMap()\n : (defaultMap || new Map());\n};\n\n\nexport class Grid extends Record({\n id: '',\n type: '',\n properties: Map()\n}, 'Grid') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {})\n });\n }\n}\n\nexport const DefaultGrids = new Map({\n 'h1': new Grid({\n id: 'h1',\n type: 'horizontal-streak',\n properties: {\n step: 20,\n colors: ['#808080', '#ddd', '#ddd', '#ddd', '#ddd']\n }\n }),\n 'v1': new Grid({\n id: 'v1',\n type: 'vertical-streak',\n properties: {\n step: 20,\n colors: ['#808080', '#ddd', '#ddd', '#ddd', '#ddd']\n }\n })\n});\n\n\nexport class ElementsSet extends Record({\n vertices: new List(),\n lines: new List(),\n holes: new List(),\n areas: new List(),\n items: new List(),\n}, 'ElementsSet') {\n constructor(json = {}) {\n super({\n vertices: new List(json.vertices || []),\n lines: new List(json.lines || []),\n holes: new List(json.holes || []),\n areas: new List(json.areas || []),\n items: new List(json.items || [])\n });\n }\n}\n\nconst sharedAttributes =\n{\n id: '',\n type: '',\n prototype: '',\n name: '',\n misc: new Map(),\n selected: false,\n properties: new Map(),\n visible: true\n};\n\nexport class Vertex extends Record({\n ...sharedAttributes,\n x: -1,\n y: -1,\n prototype: 'vertices',\n lines: new List(),\n areas: new List()\n}, 'Vertex') {\n constructor(json = {}) {\n super({\n ...json,\n lines: new List(json.lines || []),\n areas: new List(json.areas || [])\n });\n }\n}\n\nexport class Line extends Record({\n ...sharedAttributes,\n prototype: 'lines',\n vertices: new List(),\n holes: new List()\n}, 'Line') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {}),\n vertices: new List(json.vertices || []),\n holes: new List(json.holes || []),\n });\n }\n}\n\nexport class Hole extends Record({\n ...sharedAttributes,\n prototype: 'holes',\n offset: -1,\n line: ''\n}, 'Hole') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {})\n });\n }\n}\n\nexport class Area extends Record({\n ...sharedAttributes,\n prototype: 'areas',\n vertices: new List(),\n holes: new List()\n}, 'Area') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {}),\n vertices: new List(json.vertices || [])\n });\n }\n}\n\nexport class Item extends Record({\n ...sharedAttributes,\n prototype: 'items',\n x: 0,\n y: 0,\n rotation: 0\n}, 'Item') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {})\n });\n }\n}\n\nexport class Layer extends Record({\n id: '',\n altitude: 0,\n order: 0,\n opacity: 1,\n name: '',\n visible: true,\n vertices: new Map(),\n lines: new Map(),\n holes: new Map(),\n areas: new Map(),\n items: new Map(),\n selected: new ElementsSet(),\n}, 'Layer') {\n constructor(json = {}) {\n super({\n ...json,\n vertices: safeLoadMapList(json.vertices, Vertex),\n lines: safeLoadMapList(json.lines, Line),\n holes: safeLoadMapList(json.holes, Hole),\n areas: safeLoadMapList(json.areas, Area),\n items: safeLoadMapList(json.items, Item),\n selected: new ElementsSet(json.selected)\n });\n }\n}\n\nexport class Group extends Record({\n ...sharedAttributes,\n prototype: 'groups',\n x: 0,\n y: 0,\n rotation: 0,\n elements: new Map()\n}, 'Group') {\n constructor(json = {}) {\n super({\n ...json,\n properties: fromJS(json.properties || {}),\n elements: fromJS(json.elements || {})\n });\n }\n}\n\n\nexport const DefaultLayers = new Map({\n 'layer-1': new Layer({id: 'layer-1', name: 'default'})\n});\n\n\nexport class Scene extends Record({\n unit: 'cm',\n layers: new Map(),\n grids: new Map(),\n selectedLayer: null,\n groups: new Map(),\n width: 3000,\n height: 2000,\n meta: new Map(), //additional info\n guides: new Map()\n}, 'Scene') {\n constructor(json = {}) {\n let layers = safeLoadMapList(json.layers, Layer, DefaultLayers);\n super({\n ...json,\n grids: safeLoadMapList(json.grids, Grid, DefaultGrids),\n layers,\n selectedLayer: layers.first().id,\n groups: safeLoadMapList(json.groups || {}, Group),\n meta: json.meta ? fromJS(json.meta) : new Map(),\n guides: json.guides ? fromJS(json.guides) : new Map({ horizontal: new Map(), vertical: new Map(), circular: new Map() })\n });\n }\n}\n\nexport class CatalogElement extends Record({\n name: '',\n prototype: '',\n info: new Map(),\n properties: new Map(),\n}, 'CatalogElement') {\n constructor(json = {}) {\n super({\n ...json,\n info: fromJS(json.info),\n properties: fromJS(json.properties)\n });\n }\n}\n\nexport class Catalog extends Record({\n ready: false,\n page: 'root',\n path: new List(),\n elements: new Map(),\n}, 'Catalog') {\n constructor(json = {}) {\n let elements = safeLoadMapList(json.elements, CatalogElement);\n super({\n elements,\n ready: !elements.isEmpty()\n });\n }\n\n factoryElement(type, options, initialProperties) {\n if (!this.elements.has(type)) {\n let catList = this.elements.map(element => element.name).toArray();\n throw new Error(`Element ${type} does not exist in catalog ${catList}`);\n }\n\n let element = this.elements.get(type);\n let properties = element.properties.map((value, key) => initialProperties && initialProperties.has(key) ? initialProperties.get(key) : value.get('defaultValue'));\n\n switch (element.prototype) {\n case 'lines':\n return new Line(options).merge({properties});\n\n case 'holes':\n return new Hole(options).merge({properties});\n\n case 'areas':\n return new Area(options).merge({properties});\n\n case 'items':\n return new Item(options).merge({properties});\n\n default:\n throw new Error('prototype not valid');\n }\n }\n}\n\nexport class HistoryStructure extends Record({\n list: new List(),\n first: null,\n last: null\n}, 'HistoryStructure' ){\n constructor( json = {} ){\n super({\n list: fromJS( json.list || [] ),\n first: new Scene( json.scene ),\n last: new Scene( json.last || json.scene )\n });\n }\n}\n\nexport class State extends Record({\n mode: MODE_IDLE,\n scene: new Scene(),\n sceneHistory: new HistoryStructure(),\n catalog: new Catalog(),\n viewer2D: new Map(),\n mouse: new Map({x: 0, y: 0}),\n zoom: 0,\n snapMask: SNAP_MASK,\n snapElements: new List(),\n activeSnapElement: null,\n drawingSupport: new Map(),\n draggingSupport: new Map(),\n rotatingSupport: new Map(),\n errors: new List(),\n warnings: new List(),\n clipboardProperties: new Map(),\n selectedElementsHistory: new List(),\n misc: new Map(), //additional info\n alterate: false\n}, 'State') {\n constructor(json = {}) {\n super({\n ...json,\n scene: new Scene(json.scene),\n sceneHistory: new HistoryStructure(json),\n catalog: new Catalog(json.catalog || {}),\n viewer2D: new Map(json.viewer2D || {}),\n drawingSupport: new Map(json.drawingSupport || {}),\n draggingSupport: new Map(json.draggingSupport || {}),\n rotatingSupport: new Map(json.rotatingSupport || {}),\n misc: json.misc ? fromJS(json.misc) : new Map()\n });\n }\n}\n\n\n\n","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 80;\nconst DEPTH = 80;\nconst HEIGHT = 200;\n\nconst textureLoader = new Three.TextureLoader();\nconst woodMaterial=textureLoader.load(require('./wood.jpg'));\nconst bookTexture1=textureLoader.load(require('./bookTexture1.jpg' ));\nconst bookTexture2=textureLoader.load(require('./bookTexture2.jpg' ));\nconst bookTexture3=textureLoader.load(require('./bookTexture3.jpg' ));\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let bookcase = new Three.Mesh();\n\n //Bookcase\n let backGeometry = new Three.BoxGeometry(0.03,2,0.8);\n let wood = new Three.MeshPhongMaterial({map:woodMaterial});\n let backside = new Three.Mesh(backGeometry,wood);\n backside.position.set(0,1,0);\n bookcase.add(backside);\n\n let sideGeometry = new Three.BoxGeometry(0.3,2,0.03);\n let side1 = new Three.Mesh(sideGeometry,wood);\n side1.position.set(0.15,1,0.4);\n bookcase.add(side1);\n\n let side2 = new Three.Mesh(sideGeometry,wood);\n side2.position.set(0.15,1,-0.4);\n bookcase.add(side2);\n\n let bottomGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let bottomPanel = new Three.Mesh(bottomGeometry,wood);\n bottomPanel.position.set(0.15,2,0);\n bookcase.add(bottomPanel);\n\n let topGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let topPanel = new Three.Mesh(topGeometry,wood);\n topPanel.position.set(0.15,0.015,0);\n bookcase.add(topPanel);\n\n //shelves\n for(let i=1;i<5;i++){\n let shelveGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let shelve = new Three.Mesh(shelveGeometry,wood);\n shelve.position.set(0.15,0.015+i*0.4,0);\n bookcase.add(shelve);\n }\n\n function choiceTexture() {\n\n return (Math.floor(Math.random() * 3))\n\n }\n\n //book\n let bookGeometry = new Three.BoxGeometry(0.24,0.32,0.76);\n\n let bookMaterial =\n [ new Three.MeshLambertMaterial({map:bookTexture1}),\n new Three.MeshLambertMaterial({map:bookTexture2}),\n new Three.MeshLambertMaterial({map:bookTexture3})];\n\n let book1 = new Three.Mesh(bookGeometry,bookMaterial[choiceTexture()]);\n book1.position.set(0.15,0.59,0);\n bookcase.add(book1);\n\n let book2 = new Three.Mesh(bookGeometry,bookMaterial[choiceTexture()]);\n book2.position.set(0.15,0.99,0);\n bookcase.add(book2);\n\n let book3 = new Three.Mesh(bookGeometry,bookMaterial[choiceTexture()]);\n book3.position.set(0.15,0.19,0);\n bookcase.add(book3);\n\n let book4 = new Three.Mesh(bookGeometry,bookMaterial[choiceTexture()]);\n book4.position.set(0.15,1.39,0);\n bookcase.add(book4);\n\n let book5 = new Three.Mesh(bookGeometry,bookMaterial[choiceTexture()]);\n book5.position.set(0.15,1.79,0);\n bookcase.add(book5);\n\n return bookcase\n}\n\nfunction makeObjectMinLOD() {\n\n let bookcase = new Three.Mesh();\n\n let textureLoader = new Three.TextureLoader();\n\n let woodMaterial=textureLoader.load(require('./wood.jpg'));\n\n //Bookcase\n let backGeometry = new Three.BoxGeometry(0.03,2,0.8);\n let wood = new Three.MeshPhongMaterial({map:woodMaterial});\n let backside = new Three.Mesh(backGeometry,wood);\n backside.position.set(0,1,0);\n bookcase.add(backside);\n\n let sideGeometry = new Three.BoxGeometry(0.3,2,0.03);\n let side1 = new Three.Mesh(sideGeometry,wood);\n side1.position.set(0.15,1,0.4);\n bookcase.add(side1);\n\n let side2 = new Three.Mesh(sideGeometry,wood);\n side2.position.set(0.15,1,-0.4);\n bookcase.add(side2);\n\n let bottomGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let bottomPanel = new Three.Mesh(bottomGeometry,wood);\n bottomPanel.position.set(0.15,2,0);\n bookcase.add(bottomPanel);\n\n let topGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let topPanel = new Three.Mesh(topGeometry,wood);\n topPanel.position.set(0.15,0.015,0);\n bookcase.add(topPanel);\n\n //shelves\n for(let i=1;i<5;i++){\n let shelveGeometry = new Three.BoxGeometry(0.3,0.03,0.8);\n let shelve = new Three.Mesh(shelveGeometry,wood);\n shelve.position.set(0.15,0.015+i*0.4,0);\n bookcase.add(shelve);\n }\n\n return bookcase\n\n}\n\nexport default {\n name: 'bookcase',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood'],\n title: 'bookcase',\n description: 'bookcase',\n image: require('./bookcase.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n\n\n return (\n \n \n \n {element.type}\n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /**************** lod max ******************/\n\n let bookcaseMaxLOD=new Three.Object3D();\n bookcaseMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(bookcaseMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n bookcaseMaxLOD.rotation.y+=Math.PI/2;\n bookcaseMaxLOD.position.y+= newAltitude;\n bookcaseMaxLOD.position.z+= WIDTH/2;\n bookcaseMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**************** lod min ******************/\n\n let bookcaseMinLOD=new Three.Object3D();\n bookcaseMinLOD.add(objectMinLOD.clone());\n bookcaseMinLOD.rotation.y+=Math.PI/2;\n bookcaseMinLOD.position.y+= newAltitude;\n bookcaseMinLOD.position.z+= WIDTH/2;\n bookcaseMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(bookcaseMaxLOD, 200);\n lod.addLevel(bookcaseMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n\n}\n\n};\n\n\n","module.exports = __webpack_public_path__ + \"catalog/items/blackboard/blackboard.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 300;\nconst DEPTH = 20;\nconst HEIGHT = 150;\n\nexport default {\n name: \"blackboard\",\n prototype: \"items\",\n\n info: {\n tag: ['furnishings'],\n title: \"Blackboard\",\n description: \"Blackboard\",\n image: require('./blackboard.png')\n },\n\n properties: {\n altitude: {\n label: \"altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let rect_style = {stroke : element.selected ? '#0096fd' : '#000', strokeWidth: \"2px\", fill: \"#84e1ce\"};\n let arrow_style = {stroke: element.selected ? '#0096fd' : null, strokeWidth: \"2px\", fill: \"#84e1ce\"};\n\n return (\n\n \n \n \n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n //colors\n var grey2 = new Three.MeshLambertMaterial( {color: 0x000000} );\n var grey = new Three.MeshLambertMaterial( {color: 0xCCCCCC} );\n var grey2 = new Three.MeshLambertMaterial( {color: 0x414449} );\n\n\n\n var lavagna = new Three.Object3D();\n\n var roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=8;\n let height=4;\n let radius=0.25;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n var extrudeSettings = {\n steps: 1,\n depth: 0.2,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n var geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n var mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(0,1.2,0);\n lavagna.add(mesh);\n\n var geometry2 = new Three.BoxGeometry(width-width/11,height-height/8,.2);\n var mesh2 = new Three.Mesh( geometry2, grey2 ) ;\n mesh2.position.set(4,3.2,0.07);\n lavagna.add(mesh2);\n\n var geometry3 = new Three.BoxGeometry(width,height/50,.33);\n var mesh3 = new Three.Mesh( geometry3, grey ) ;\n mesh3.position.set(4,1.0,-0.095);\n lavagna.add(mesh3);\n\n var geometry4 = new Three.BoxGeometry(width,height/50,.25);\n var mesh4 = new Three.Mesh( geometry4, grey ) ;\n mesh4.rotation.x+=Math.PI/2;\n mesh4.position.set(4,1.1,0.03);\n lavagna.add(mesh4);\n\n var mesh5 = new Three.Mesh( geometry4, grey ) ;\n mesh5.rotation.x+=Math.PI/2;\n mesh5.position.set(4,1.1,-0.22);\n lavagna.add(mesh5);\n\n let value = new Three.Box3().setFromObject(lavagna);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lavagna, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lavagna.add(bbox);\n }\n\n\n lavagna.position.y+=-HEIGHT/3.2 + newAltitude;\n lavagna.position.x+=-WIDTH/2;\n lavagna.position.z+=DEPTH/4;\n\n lavagna.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n return Promise.resolve(lavagna);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/bench/bench.png\";","module.exports = __webpack_public_path__ + \"catalog/items/bench/wood.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 150;\nconst DEPTH = 50;\nconst HEIGHT = 50;\nconst RADIUS = 10;\n\nconst grey = new Three.MeshLambertMaterial({ color: 0xC0C0C0 });\nconst black = new Three.MeshLambertMaterial({ color: 0x00000 });\nconst textureLoader = new Three.TextureLoader();\nconst woodTexture = textureLoader.load(require('./wood.jpg'));\n\nconst objectMaxLOD = makeObjectMaxLOD();\nconst objectMinLOD = makeObjectMinLOD();\n\nfunction makeObjectMaxLOD() {\n\n let bench = new Three.Mesh();\n\n // axis\n let axis1 = new Three.Mesh(new Three.BoxGeometry(10, 0.5, 0.5), grey);\n axis1.position.set(0, 0, 0);\n bench.add(axis1);\n\n let axi2 = new Three.Mesh(new Three.BoxGeometry(10, 0.5, 0.5), grey);\n axi2.position.set(0, 0, 3);\n bench.add(axi2);\n\n //beams\n for (let lx = -5; lx <= 5; lx += 5) {\n let beam = new Three.Mesh(new Three.BoxGeometry(0.5, 0.5, 3.5), grey);\n beam.position.set(lx, 0, 1.5);\n bench.add(beam);\n }\n\n //legs\n for (let gx = -5; gx <= 5; gx += 5) {\n for (let gz = 0; gz <= 3; gz += 3) {\n let leg = new Three.Mesh(new Three.BoxGeometry(3, 0.5, 0.5), grey);\n leg.rotation.z = 0.5 * Math.PI;\n leg.position.set(gx, -1.5, gz);\n bench.add(leg);\n\n // foot\n let foot = new Three.Mesh(new Three.BoxGeometry(0.5, 0.25, 0.5), black);\n foot.rotation.z = 0.5 * Math.PI;\n foot.position.x = -1.625;\n leg.add(foot);\n }\n }\n\n // wood axis\n for (let z = 0; z <= 3; z += 0.75) {\n let woodAxis = new Three.Mesh(new Three.BoxGeometry(12, 0.25, 0.5), new Three.MeshPhongMaterial({ map: woodTexture }));\n woodAxis.position.set(0, 0.5, z);\n bench.add(woodAxis);\n }\n\n //nuts\n for (let z = 0; z <= 3; z += 0.75) {\n for (let dy = -5; dy <= 5; dy += 5) {\n let nut = new Three.Mesh(new Three.CylinderGeometry(0.1, 0.1, 0.8, 6), black);\n nut.position.set(dy, 0.3, z);\n bench.add(nut);\n }\n }\n\n return bench;\n}\n\nfunction makeObjectMinLOD() {\n\n let bench = new Three.Mesh();\n // axis\n let axis1 = new Three.Mesh(new Three.BoxGeometry(10, 0.5, 0.5), grey);\n axis1.position.set(0, 0, 0);\n bench.add(axis1);\n\n let axi2 = new Three.Mesh(new Three.BoxGeometry(10, 0.5, 0.5), grey);\n axi2.position.set(0, 0, 3);\n bench.add(axi2);\n\n //beams\n for (let lx = -5; lx <= 5; lx += 5) {\n let beam = new Three.Mesh(new Three.BoxGeometry(0.5, 0.5, 3.5), grey);\n beam.position.set(lx, 0, 1.5);\n bench.add(beam);\n }\n\n //legs\n for (let gx = -5; gx <= 5; gx += 5) {\n for (let gz = 0; gz <= 3; gz += 3) {\n let leg = new Three.Mesh(new Three.BoxGeometry(3, 0.5, 0.5), grey);\n leg.rotation.z = 0.5 * Math.PI;\n leg.position.set(gx, -1.5, gz);\n bench.add(leg);\n\n }\n }\n\n // wood axis\n for (let z = 0; z <= 3; z += 0.75) {\n let woodAxis = new Three.Mesh(new Three.BoxGeometry(12, 0.25, 0.5), new Three.MeshPhongMaterial({ map: woodTexture }));\n woodAxis.position.set(0, 0.5, z);\n bench.add(woodAxis);\n }\n\n return bench;\n}\n\nexport default {\n name: 'bench',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood', 'metal'],\n title: 'bench',\n description: 'bench',\n image: require('./bench.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n let textRotation = Math.sin(angle * Math.PI / 180) < 0 ? 180 : 0;\n let rect_style = { stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce' };\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.getIn(['altitude', 'length']);\n\n /************ lod max *****************/\n let benchMaxLOD = new Three.Object3D();\n benchMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(benchMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n benchMaxLOD.position.y += HEIGHT + newAltitude;\n benchMaxLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n\n /************ lod min *****************/\n\n let benchMinLOD = new Three.Object3D();\n benchMinLOD.add(objectMinLOD.clone());\n benchMinLOD.position.y += HEIGHT + newAltitude;\n benchMinLOD.scale.set(WIDTH / deltaX, HEIGHT / deltaY, DEPTH / deltaZ);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(benchMaxLOD, 200);\n lod.addLevel(benchMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/balcony/balcony.png\";","module.exports = __webpack_public_path__ + \"catalog/items/balcony/bricks.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/balcony/painted.jpg\";","import * as Three from 'three';\nimport React from 'react';\n\nconst PI_2 = Math.PI / 2;\nconst paintedtexture = require('./painted.jpg');\nconst brickTexture = require('./bricks.jpg');\nconst scale = 100;\n\nlet textureLoader = new Three.TextureLoader();\ntextureLoader.setPath('./');\nlet mat = textureLoader.load(paintedtexture);\nlet mat2 = textureLoader.load(brickTexture);\n\nfunction makeObject(newWidth, newHeight, newDepth) {\n\n let mat3 = textureLoader.load( brickTexture, ( texture ) => {\n texture.wrapS = texture.wrapT = Three.RepeatWrapping;\n texture.offset.set( 0, 0 );\n texture.repeat.set( ~~( newWidth / scale ), ~~( newHeight / scale ) );\n });\n\n let balcony = new Three.Mesh();\n //base\n let cubeGeometryBase = new Three.BoxGeometry(newWidth, newHeight / 10, newDepth);\n let cubeMaterial = new Three.MeshLambertMaterial({ map: mat });\n let cubeMaterial2 = new Three.MeshLambertMaterial({ map: mat2 });\n let cubeMaterial3 = new Three.MeshLambertMaterial({ map: mat3 });\n\n let p1 = new Three.Mesh(cubeGeometryBase, cubeMaterial);\n\n let cubeGeometryBase2 = new Three.BoxGeometry(newWidth, newHeight / 10, newDepth);\n\n let p2 = new Three.Mesh(cubeGeometryBase2, cubeMaterial3);\n p2.position.set(0, newHeight / 2, newDepth / 2);\n p2.rotation.x += PI_2;\n\n let cubeGeometryBase3 = new Three.BoxGeometry(newDepth, newHeight / 10, newDepth);\n let p3 = new Three.Mesh(cubeGeometryBase3, cubeMaterial2);\n p3.position.set(newWidth / 2, newHeight / 2, 0);\n p3.rotation.z += PI_2;\n p3.rotation.x += PI_2;\n\n let p4 = new Three.Mesh(cubeGeometryBase3, cubeMaterial2);\n p4.position.set(-newWidth / 2, newHeight / 2, 0);\n p4.rotation.z += PI_2;\n p4.rotation.x += PI_2;\n\n let cubeGeometryBase5 = new Three.BoxGeometry(newWidth + newHeight / 5, newHeight / 5, newDepth / 10);\n\n let p5 = new Three.Mesh(cubeGeometryBase5, cubeMaterial);\n p5.position.set(0, newHeight + newHeight / 32, newDepth / 2);\n p5.rotation.x += PI_2;\n\n let cubeGeometryBase6 = new Three.BoxGeometry(newDepth, newHeight / 5, newDepth / 10);\n let p6 = new Three.Mesh(cubeGeometryBase6, cubeMaterial);\n p6.position.set(newWidth / 2, newHeight + newHeight / 32, 0);\n p6.rotation.z += PI_2;\n p6.rotation.x += PI_2;\n\n let p7 = new Three.Mesh(cubeGeometryBase6, cubeMaterial);\n p7.position.set(-newWidth / 2, newHeight + newHeight / 32, 0);\n p7.rotation.z += PI_2;\n p7.rotation.x += PI_2;\n\n return balcony.add(p1,p2,p3,p4,p5,p6,p7);\n}\n\nexport default {\n name: 'balcony',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'metal'],\n title: 'balcony',\n description: 'balcony',\n image: require('./balcony.png')\n },\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 500,\n unit: 'cm'\n }\n },\n depth: {\n label: 'depth',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n patternColor: {\n label: '2D color',\n type: 'color',\n defaultValue: '#f5f4f4'\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let newWidth = element.properties.getIn(['width', 'length']);\n let newDepth = element.properties.getIn(['depth', 'length']);\n let fillValue = element.selected ? '#99c3fb' : element.properties.get('patternColor');\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.name}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newWidth = element.properties.getIn(['width', 'length']);\n let newDepth = element.properties.getIn(['depth', 'length']);\n let newHeight = element.properties.getIn(['height', 'length']);\n let newAltitude = element.properties.getIn(['altitude', 'length']);\n\n let balcony = new Three.Object3D();\n balcony.add(makeObject(newWidth, newHeight, newDepth));\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(balcony, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n balcony.add(bbox);\n }\n\n balcony.position.y += newHeight / 10 + newAltitude;\n return Promise.resolve(balcony);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/items/armchairs/armchairs.png\";","import * as Three from 'three';\nimport React from 'react';\n\nconst WIDTH = 60;\nconst DEPTH = 60;\nconst HEIGHT = 100;\n\nlet greyMaterial = new Three.MeshLambertMaterial({color: 0xC0C0C0});\ngreyMaterial.side = Three.DoubleSide;\nlet greenMaterial = new Three.MeshLambertMaterial({color: 0x008250});\n\n\nfunction makeArmchairMaxLOD()\n{\n let armchair = new Three.Object3D();\n let foot = new Three.Mesh();\n\n //armchair base\n let g_base_foot = new Three.BoxGeometry(0.3, 0.05, 0.4);\n let m_base_foot1 = new Three.Mesh(g_base_foot, greyMaterial);\n m_base_foot1.position.set(0, 0.1, 0.1);\n foot.add(m_base_foot1);\n\n let g_base_foot2 = new Three.CylinderGeometry(0.055, 0.055, 0.35, 20);\n let m_base_foot2 = new Three.Mesh(g_base_foot2, greyMaterial);\n m_base_foot2.position.set(0, 0.25, 0.15);\n foot.add(m_base_foot2);\n\n armchair.add(foot);\n\n //seat\n let seat = new Three.Mesh();\n\n let extrusionSettings = {\n depth: 0.65,\n bevelEnabled: false,\n bevelSegments: 2,\n steps: 10,\n bevelSize: 1,\n bevelThickness: 1\n };\n\n let shape_sed = new Three.Shape();\n shape_sed.moveTo(0, 0);\n shape_sed.lineTo(0, 0.05);\n shape_sed.quadraticCurveTo(0, 0.1, -0.02, 0.1);\n shape_sed.lineTo(-0.6, 0.1);\n shape_sed.quadraticCurveTo(-0.6, 0.1, -0.6, 0.07);\n shape_sed.lineTo(-0.6, 0);\n\n let g_sitting = new Three.ExtrudeGeometry(shape_sed, extrusionSettings);\n let sitting = new Three.Mesh(g_sitting, greenMaterial);\n\n sitting.rotation.y = Math.PI / 2;\n sitting.rotation.z = Math.PI / 3.5;\n sitting.position.set(-0.325, .905, -0.3);\n seat.add(sitting);\n\n //back armchair\n let shape_sc = new Three.Shape();\n shape_sc.moveTo(0, 0);\n shape_sc.lineTo(0, 0.1);\n shape_sc.quadraticCurveTo(-0.5, 0.07, -0.97, 0.1);\n shape_sc.quadraticCurveTo(-1, 0.1, -1, 0.07);\n shape_sc.lineTo(-1, 0);\n shape_sc.quadraticCurveTo(-0.5, -0.03, 0, 0);\n\n let g_back = new Three.ExtrudeGeometry(shape_sc, extrusionSettings);\n let back = new Three.Mesh(g_back, greenMaterial);\n\n back.rotation.z = -105 * Math.PI / 180;\n back.rotation.y = -Math.PI / 2;\n back.position.set(0.325, 0.52, 0.125);\n seat.add(back);\n\n let g_asse_rotaz2 = new Three.CylinderGeometry(0.06, 0.06, 0.8, 32, 32, true);\n let asse_rotaz2 = new Three.Mesh(g_asse_rotaz2, greyMaterial);\n\n asse_rotaz2.rotation.z = -Math.PI / 2;\n asse_rotaz2.position.set(0, 0.45, 0.15);\n seat.add(asse_rotaz2);\n\n let roundedRectShape = new Three.Shape();\n\n let x = 0;\n let y = 0;\n let width = .7;\n let height = .75;\n let radius = 0.25;\n\n roundedRectShape.moveTo(x, y + radius);\n roundedRectShape.lineTo(x, y + height - radius);\n roundedRectShape.quadraticCurveTo(x, y + height, x + radius, y + height);\n roundedRectShape.lineTo(x + width - radius, y + height);\n roundedRectShape.lineTo(x + width, y + radius);\n roundedRectShape.quadraticCurveTo(x + width, y, x + width - radius, y);\n roundedRectShape.lineTo(x + radius, y);\n roundedRectShape.quadraticCurveTo(x, y, x, y + radius);\n\n let extrudeSettings = {\n steps: 2,\n depth: .07,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry2 = new Three.ExtrudeGeometry(roundedRectShape, extrudeSettings);\n let armrest_1 = new Three.Mesh(geometry2, greyMaterial);\n armrest_1.rotation.y = Math.PI / 2;\n armrest_1.rotation.z = .9 * Math.PI;\n armrest_1.position.set(-0.4, 1, -0.4);\n seat.add(armrest_1);\n\n let armrest_2 = armrest_1.clone();\n armrest_2.position.x += .73;\n seat.add(armrest_2);\n armchair.add(seat);\n\n return armchair\n}\n\nfunction makeArmchairMinLOD()\n{\n let armchair = new Three.Object3D();\n let foot = new Three.Mesh();\n\n //armchair base\n let g_base_foot = new Three.BoxGeometry(0.3, 0.05, 0.4);\n let base_foot1 = new Three.Mesh(g_base_foot, greyMaterial);\n base_foot1.position.set(0, 0.1, 0.1);\n foot.add(base_foot1);\n\n let g_base_foot2 = new Three.CylinderGeometry(0.055, 0.055, 0.35, 8, 8);\n let base_foot2 = new Three.Mesh(g_base_foot2, greyMaterial);\n base_foot2.position.set(0, 0.25, 0.15);\n foot.add(base_foot2);\n\n armchair.add(foot);\n\n //seat\n let seat = new Three.Mesh();\n\n let extrusionSettings = {\n depth: 0.65,\n bevelEnabled: false,\n bevelSegments: 2,\n steps: 10,\n bevelSize: 1,\n bevelThickness: 1\n };\n\n let shape_sed = new Three.Shape();\n shape_sed.moveTo(0, 0);\n shape_sed.lineTo(0, 0.05);\n shape_sed.quadraticCurveTo(0, 0.1, -0.02, 0.1);\n shape_sed.lineTo(-0.6, 0.1);\n shape_sed.quadraticCurveTo(-0.6, 0.1, -0.6, 0.07);\n shape_sed.lineTo(-0.6, 0);\n\n let g_sitting = new Three.ExtrudeGeometry(shape_sed, extrusionSettings);\n let sitting = new Three.Mesh(g_sitting, greenMaterial);\n\n sitting.rotation.y = Math.PI / 2;\n sitting.rotation.z = Math.PI / 3.5;\n sitting.position.set(-0.325, .905, -0.3);\n seat.add(sitting);\n\n //back armchair\n let shape_sc = new Three.Shape();\n shape_sc.moveTo(0, 0);\n shape_sc.lineTo(0, 0.1);\n shape_sc.quadraticCurveTo(-0.5, 0.07, -0.97, 0.1);\n shape_sc.quadraticCurveTo(-1, 0.1, -1, 0.07);\n shape_sc.lineTo(-1, 0);\n shape_sc.quadraticCurveTo(-0.5, -0.03, 0, 0);\n\n let g_back = new Three.ExtrudeGeometry(shape_sc, extrusionSettings);\n let back = new Three.Mesh(g_back, greenMaterial);\n\n back.rotation.z = -105 * Math.PI / 180;\n back.rotation.y = -Math.PI / 2;\n back.position.set(0.325, 0.52, 0.125);\n seat.add(back);\n\n let g_asse_rotaz2 = new Three.CylinderGeometry(0.06, 0.06, 0.8, 8, 8, true);\n let asse_rotaz2 = new Three.Mesh(g_asse_rotaz2, greyMaterial);\n\n asse_rotaz2.rotation.z = -Math.PI / 2;\n asse_rotaz2.position.set(0, 0.45, 0.15);\n seat.add(asse_rotaz2);\n\n let roundedRectShape = new Three.Shape();\n\n let x = 0;\n let y = 0;\n let width = .7;\n let height = .75;\n let radius = 0.25;\n\n roundedRectShape.moveTo(x, y + radius);\n roundedRectShape.lineTo(x, y + height - radius);\n roundedRectShape.quadraticCurveTo(x, y + height, x + radius, y + height);\n roundedRectShape.lineTo(x + width - radius, y + height);\n roundedRectShape.lineTo(x + width, y + radius);\n roundedRectShape.quadraticCurveTo(x + width, y, x + width - radius, y);\n roundedRectShape.lineTo(x + radius, y);\n roundedRectShape.quadraticCurveTo(x, y, x, y + radius);\n\n let extrudeSettings = {\n steps: 2,\n depth: .07,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry2 = new Three.ExtrudeGeometry(roundedRectShape, extrudeSettings);\n let armrest_1 = new Three.Mesh(geometry2, greyMaterial);\n armrest_1.rotation.y = Math.PI / 2;\n armrest_1.rotation.z = .9 * Math.PI;\n armrest_1.position.set(-0.4, 1, -0.4);\n seat.add(armrest_1);\n\n let armrest_2 = armrest_1.clone();\n armrest_2.position.x += .73;\n seat.add(armrest_2);\n armchair.add(seat);\n\n return armchair\n}\n\nexport default {\n name: 'armchairs',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'wood'],\n title: 'armchairs',\n description: 'armchairs',\n image: require('./armchairs.png')\n },\n\n properties: {\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n seat: {\n label: 'seats',\n type: 'number',\n defaultValue: 1\n },\n flip: {\n label: 'flip',\n type: 'checkbox',\n defaultValue: false,\n values: {\n 'none': false,\n 'yes': true\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let rect_style ={stroke: element.selected ? '#0096fd' : '#000', strokeWidth: '2px', fill: '#84e1ce'};\n let text_style ={textAnchor: 'middle', fontSize: '11px', fill: '#FF0000'};\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n let seats = element.properties.get('seat');\n let flip = element.properties.get('flip');\n\n let seatsArray = new Array(seats);\n\n let eps = -1.7;\n\n for (let ind = 0; ind < seats; ind++)\n seatsArray[ind]=\n\n return (\n \n {seatsArray}\n \n {element.type}\n \n \n );\n\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n let seats = element.properties.get('seat');\n let flip = element.properties.get('flip');\n let newWidth = WIDTH;\n let newDepth = DEPTH;\n\n let armchairsMaxLOD = new Three.Object3D();\n let seatArray = new Array(seats);\n\n function setArmchairsPos(listObject,seats) {\n\n newWidth = WIDTH * seats;\n newDepth = DEPTH + (DEPTH / 8 * seats / 2);\n seatArray = listObject;\n\n for (let ind = 0; ind < seats; ind++) {\n\n seatArray[ind].position.x = (ind - Math.floor(seats / 2)) * -.8;\n\n if(flip)\n seatArray[ind].position.z = (ind - Math.floor(seats / 2)) * -.085;\n else\n seatArray[ind].position.z = (ind - Math.floor(seats / 2)) * +.085;\n\n }\n\n }\n\n function makeSeriesArmchair2(seats) {\n\n let chair = makeArmchairMaxLOD().clone();\n for (let ind = 0; ind < seats; ind++)\n seatArray[ind] = chair.clone();\n\n return seatArray\n\n }\n\n let armchairsObject2 = makeSeriesArmchair2(seats);\n setArmchairsPos(armchairsObject2,seats);\n\n for(let i=0; i -.36; i-=.005) {\n\n let gridHorizontalGeometry = new Three.BoxGeometry(.001, .025, .705);\n let gridHorizontal = new Three.Mesh(gridHorizontalGeometry, darkGrey);\n gridHorizontal.position.set(i,j,.5);\n gridHorizontal.rotation.z+=Math.PI/4;\n air_conditioner.add(gridHorizontal);\n j-=.005\n }\n\n for (let k = .15; k < .87; k+=.05) {\n let gridVerticalGeometry = new Three.BoxGeometry(.079, .025, .005);\n let gridVertical = new Three.Mesh(gridVerticalGeometry, darkGrey);\n gridVertical.position.set(-.324,1.148,k);\n gridVertical.rotation.z+=Math.PI/4;\n air_conditioner.add(gridVertical);\n }\n\n\n let roundedRectShape2 = new Three.Shape();\n\n let x2=0;\n let y2=0;\n let width2=.2;\n let height2=.4;\n let radius2=0.15;\n\n roundedRectShape2.moveTo( x2, y2 );\n roundedRectShape2.lineTo( x2 + width2, y2);\n roundedRectShape2.quadraticCurveTo( x2 + width2 + radius2, y2 + height2, x2 + width2/2, y2 + height2 );\n roundedRectShape2.lineTo( x2 + width2/2, y2+height2 );\n roundedRectShape2.quadraticCurveTo( x2 + width2 + radius2, y2 + height2/4, x2 , y2 );\n\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let frontCoverGeometry = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let frontCover = new Three.Mesh( frontCoverGeometry, grey) ;\n\n frontCover.position.set(-.2,1.1,0);\n frontCover.rotation.z+=Math.PI;\n air_conditioner.add(frontCover);\n\n let roundedRectShape3 = new Three.Shape();\n\n let x3=0;\n let y3=0;\n let width3=.1;\n let height3=.1;\n let radius3=0.15;\n\n roundedRectShape3.moveTo( x3, y3 );\n roundedRectShape3.quadraticCurveTo( x3 - width3/2 + radius3/2, y3 - height3, x3 + width3, y3);\n roundedRectShape3.lineTo( x3 + width3, y3);\n roundedRectShape3.quadraticCurveTo( x3 + width3/2 + radius3/2, y3 + 2 * height3, x3 + width3/2, y3 + height3 );\n roundedRectShape3.lineTo( x3 + width3/2, y3 + height3 );\n roundedRectShape3.quadraticCurveTo( x3 + width3/4, y3 + height3/6, x3 , y3 );\n\n let extrudeSettings3 = {\n steps: 2,\n depth: .1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let flapSupportGeometry = new Three.ExtrudeGeometry( roundedRectShape3, extrudeSettings3 );\n let flapLeft = new Three.Mesh( flapSupportGeometry, darkGrey ) ;\n\n flapLeft.position.set(-.27,.62,0.1);\n flapLeft.rotation.y+=Math.PI;\n flapLeft.rotation.z-=Math.PI/9;\n air_conditioner.add(flapLeft);\n\n let flapRight = new Three.Mesh( flapSupportGeometry, darkGrey ) ;\n\n flapRight.position.set(-.27,.62,1);\n flapRight.rotation.y+=Math.PI;\n flapRight.rotation.z-=Math.PI/9;\n air_conditioner.add(flapRight);\n\n let points2 = [];\n\n points2.push( new Three.Vector3(.5, 0));\n points2.push( new Three.Vector3(.5, 0));\n points2.push( new Three.Vector3(.5, .8));\n points2.push( new Three.Vector3(.5, .8));\n\n let flapGeometry = new Three.LatheGeometry( points2, 200, Math.PI/2, Math.PI/16 );\n let flap1 = new Three.Mesh( flapGeometry, darkGrey );\n\n flap1.position.set(-.4,.18,.9);\n flap1.rotation.z+=Math.PI/2;\n flap1.rotation.y+=-Math.PI/2;\n\n air_conditioner.add(flap1);\n\n let flap2 = new Three.Mesh( flapGeometry, darkGrey );\n\n flap2.position.set(-.4,.15,.9);\n flap2.rotation.z+=Math.PI/2;\n flap2.rotation.y+=-Math.PI/2;\n\n air_conditioner.add(flap2);\n\n return air_conditioner\n}\n\nfunction makeObjectMinLOD() {\n\n let air_conditioner = new Three.Mesh();\n\n let roundedRectShape = new Three.Shape();\n\n let x=0;\n let y=0;\n let width=.15;\n let height=.6;\n let radius=0.15;\n\n roundedRectShape.moveTo( x, y );\n roundedRectShape.lineTo( x + width, y);\n roundedRectShape.lineTo( x + width + radius, y + radius);\n roundedRectShape.quadraticCurveTo( x + width + radius, y + height, x + width/2, y + height );\n roundedRectShape.lineTo( x + width/2, y+height );\n roundedRectShape.lineTo( x, y + height) ;\n\n\n let extrudeSettings = {\n steps: 2,\n depth: 1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let bodyGeometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n let body = new Three.Mesh( bodyGeometry, grey );\n\n body.position.set(-.11,1.2,0);\n body.rotation.z+=Math.PI;\n air_conditioner.add(body);\n\n let roundedRectShape2 = new Three.Shape();\n\n let x2=0;\n let y2=0;\n let width2=.2;\n let height2=.4;\n let radius2=0.15;\n\n roundedRectShape2.moveTo( x2, y2 );\n roundedRectShape2.lineTo( x2 + width2, y2);\n roundedRectShape2.quadraticCurveTo( x2 + width2 + radius2, y2 + height2, x2 + width2/2, y2 + height2 );\n roundedRectShape2.lineTo( x2 + width2/2, y2+height2 );\n roundedRectShape2.quadraticCurveTo( x2 + width2 + radius2, y2 + height2/4, x2 , y2 );\n\n let extrudeSettings2 = {\n steps: 2,\n depth: 1,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let frontCoverGeometry = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n let frontCover = new Three.Mesh( frontCoverGeometry, grey) ;\n\n frontCover.position.set(-.2,1.1,0);\n frontCover.rotation.z+=Math.PI;\n air_conditioner.add(frontCover);\n\n return air_conditioner\n}\n\nexport default {\n name: 'conditioner',\n prototype: 'items',\n\n info: {\n tag: ['furnishings', 'metal'],\n title: 'air conditioner',\n description: 'air conditioner',\n image: require('./air_conditioner.png')\n },\n properties: {\n altitude: {\n label: 'quota',\n type: 'length-measure',\n defaultValue: {\n length: 220,\n unit: 'cm'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n let angle = element.rotation + 90;\n\n let textRotation = 0;\n if (Math.sin(angle * Math.PI / 180) < 0) {\n textRotation = 180;\n }\n\n return (\n \n \n \n {element.type}\n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let newAltitude = element.properties.get('altitude').get('length');\n\n /*************** lod max *******************/\n\n let air_conditionerMaxLOD = new Three.Object3D();\n air_conditionerMaxLOD.add(objectMaxLOD.clone());\n\n let value = new Three.Box3().setFromObject(air_conditionerMaxLOD);\n\n let deltaX = Math.abs(value.max.x - value.min.x);\n let deltaY = Math.abs(value.max.y - value.min.y);\n let deltaZ = Math.abs(value.max.z - value.min.z);\n\n air_conditionerMaxLOD.position.x+= WIDTH/2.2;\n air_conditionerMaxLOD.position.z+= DEPTH/1.2;\n air_conditionerMaxLOD.position.y+= newAltitude;\n air_conditionerMaxLOD.rotation.y+= -Math.PI/2;\n air_conditionerMaxLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX/1.4);\n\n\n /*************** lod min *******************/\n\n let air_conditionerMinLOD = new Three.Object3D();\n air_conditionerMinLOD.add(objectMinLOD.clone());\n air_conditionerMinLOD.position.x+= WIDTH/2.2;\n air_conditionerMinLOD.position.z+= DEPTH/1.2;\n air_conditionerMinLOD.position.y+= newAltitude;\n air_conditionerMinLOD.rotation.y+= -Math.PI/2;\n air_conditionerMinLOD.scale.set(WIDTH / deltaZ, HEIGHT / deltaY, DEPTH / deltaX/1.4);\n\n /**** all level of detail ***/\n\n let lod = new Three.LOD();\n\n lod.addLevel(air_conditionerMaxLOD, 200);\n lod.addLevel(air_conditionerMinLOD, 900);\n lod.updateMatrix();\n lod.matrixAutoUpdate = false;\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(lod, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n lod.add(bbox);\n }\n\n return Promise.resolve(lod);\n }\n\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/holes/window/texture.png\";","module.exports = __webpack_public_path__ + \"catalog/holes/window/window.obj\";","module.exports = __webpack_public_path__ + \"catalog/holes/window/window.mtl\";","module.exports = __webpack_public_path__ + \"catalog/holes/window/window.png\";","import React from 'react';\nimport * as Three from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\nimport path from 'path';\n\nlet cached3DWindow = null;\n\nexport default {\n name: \"window\",\n prototype: \"holes\",\n\n info: {\n title: \"window\",\n tag: ['window'],\n description: \"Window\",\n image: require('./window.png')\n },\n\n properties: {\n width: {\n label: \"Width\",\n type: \"length-measure\",\n defaultValue: {\n length: 90\n }\n },\n height: {\n label: \"Height\",\n type: \"length-measure\",\n defaultValue: {\n length: 100\n }\n },\n altitude: {\n label: \"Altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 90\n }\n },\n thickness: {\n label: \"Thickness\",\n type: \"length-measure\",\n defaultValue: {\n length: 10\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n const STYLE_HOLE_BASE = {stroke: \"#000\", strokeWidth: \"3px\", fill: \"#000\"};\n const STYLE_HOLE_SELECTED = {stroke: \"#0096fd\", strokeWidth: \"3px\", fill: \"#0096fd\", cursor: \"move\"};\n //let line = layer.lines.get(hole.line);\n //let epsilon = line.properties.get('thickness') / 2;\n\n let epsilon = 3;\n\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let length = element.properties.get('width').get('length');\n return (\n \n \n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n let onLoadItem = (object) => {\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n\n object.scale.set(width / initialWidth, height / initialHeight,\n thickness / initialThickness);\n\n return object;\n };\n\n if(cached3DWindow) {\n return Promise.resolve(onLoadItem(cached3DWindow.clone()));\n }\n\n let mtl = require('./window.mtl');\n let obj = require('./window.obj');\n let img = require('./texture.png');\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cached3DWindow = object;\n return onLoadItem(cached3DWindow.clone())\n })\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/window-curtain/texture.png\";","module.exports = __webpack_public_path__ + \"catalog/holes/window-curtain/window.obj\";","module.exports = __webpack_public_path__ + \"catalog/holes/window-curtain/window.mtl\";","module.exports = __webpack_public_path__ + \"catalog/holes/window-curtain/window-curtain.jpg\";","import React from 'react';\nimport * as Three from 'three';\nimport { loadObjWithMaterial } from '../../utils/load-obj';\nimport path from 'path';\n\nlet cached3DWindow = null;\n\nconst STYLE_HOLE_BASE = { stroke: '#000', strokeWidth: '3px', fill: '#000' };\nconst STYLE_HOLE_SELECTED = { stroke: '#0096fd', strokeWidth: '3px', fill: '#0096fd', cursor: 'move' };\nconst EPSILON = 3;\n\nexport default {\n name: 'window-curtain',\n prototype: 'holes',\n\n info: {\n tag: ['Finestre'],\n title: 'Curtain window',\n description: 'Curtain window',\n image: require('./window-curtain.jpg')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 90\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 100\n }\n },\n altitude: {\n label: 'altitudine',\n type: 'length-measure',\n defaultValue: {\n length: 90\n }\n },\n thickness: {\n label: 'spessore',\n type: 'length-measure',\n defaultValue: {\n length: 10\n }\n },\n flip: {\n label: 'flip',\n type: 'checkbox',\n defaultValue: 'none',\n values: {\n 'none': 'none',\n 'yes': 'yes'\n }\n },\n },\n\n render2D: function (element, layer, scene) {\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${-EPSILON} L${holeWidth} ${-EPSILON} L${holeWidth} ${EPSILON} L${0} ${EPSILON} z`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let length = element.properties.get('width').get('length');\n return (\n \n \n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let flip = element.properties.get('flip');\n\n let onLoadItem = (object) => {\n\n let window = new Three.Object3D();\n\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n\n object.scale.set(width / initialWidth, height / initialHeight,\n thickness / 2 / initialThickness);\n\n window.add(object);\n window.add(createTenda());\n\n if (flip === true)\n window.rotation.y += Math.PI;\n\n return window;\n };\n\n if (cached3DWindow) {\n return Promise.resolve(onLoadItem(cached3DWindow.clone()));\n }\n\n let mtl = require('./window.mtl');\n let obj = require('./window.obj');\n let img = require('./texture.png');\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cached3DWindow = object;\n return onLoadItem(cached3DWindow.clone());\n });\n\n function createTenda() {\n\n let radialWave = function (u, v) {\n let r = 10;\n let x = Math.sin(u) * 3 * r;\n let z = Math.sin(v / 2) * 2 * r;\n let y = (Math.sin(u * 2 * Math.PI) + Math.cos(v * 2 * Math.PI)) * .5;\n\n return new Three.Vector3(x, y, z);\n };\n\n //color\n let white = new Three.MeshLambertMaterial({ color: 0xeae6ca });\n\n let Tenda = new Three.Object3D();\n\n let mesh = createMesh(new Three.ParametricGeometry(radialWave, 20, 20));\n mesh.rotation.x += Math.PI / 2;\n mesh.rotation.y += Math.PI / 2;\n mesh.position.y += 3.1;\n mesh.position.x += .05;\n mesh.scale.set(.125, .125, .125);\n\n let mesh2 = mesh.clone();\n mesh2.rotation.x += Math.PI;\n mesh2.position.set(1.4, 0, 0.06);\n\n Tenda.add(mesh);\n Tenda.add(mesh2);\n\n for (let i = -.7; i > -3.4; i -= .45) {\n let geometry = new Three.TorusGeometry(.08, .016, 32, 32, 2 * Math.PI);\n let torus = new Three.Mesh(geometry, white);\n\n if (i == -1.15)\n torus.position.set(i, 3.14, .045);\n else if (i == -2.5)\n torus.position.set(i, 3.14, -.01);\n else\n torus.position.set(i, 3.14, .04);\n torus.rotation.y += Math.PI / 2;\n Tenda.add(torus);\n }\n\n let geometryAsta = new Three.CylinderGeometry(0.02, 0.02, 1.25, 32);\n let asta = new Three.Mesh(geometryAsta, white);\n asta.position.set(-1.1, 3.18, 0.02);\n asta.rotation.z += Math.PI / 2;\n Tenda.add(asta);\n\n let asta2 = asta.clone();\n asta2.position.set(-2.5, 3.18, 0.02);\n Tenda.add(asta2);\n\n let geometrySphereUp = new Three.SphereGeometry(0.04, 32, 32);\n let sphere = new Three.Mesh(geometrySphereUp, white);\n sphere.position.set(-.5, 3.18, 0.02);\n sphere.rotation.x += Math.PI / 2;\n sphere.scale.set(0.8, 1, 1);\n Tenda.add(sphere);\n\n let sphere2 = sphere.clone();\n sphere2.position.x += -1.2;\n Tenda.add(sphere2);\n\n let sphere3 = sphere.clone();\n sphere3.position.x += -1.4;\n Tenda.add(sphere3);\n\n let sphere4 = sphere.clone();\n sphere4.position.x += -2.6;\n Tenda.add(sphere4);\n\n let valueObject = new Three.Box3().setFromObject(Tenda);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n Tenda.position.x += width / 1.48;\n Tenda.position.y += -height / 2.1;\n Tenda.position.z += thickness / 1024;\n Tenda.scale.set(width / deltaX, height / deltaY, thickness / deltaZ);\n\n return Tenda;\n }\n\n function createMesh(geom) {\n geom.applyMatrix(new Three.Matrix4().makeTranslation(-25, 0, -25));\n let meshMaterial = new Three.MeshLambertMaterial({ color: 0xffffff, opacity: 0.9, transparent: true });\n meshMaterial.side = Three.DoubleSide;\n\n let plane = new Three.Mesh(geom, meshMaterial);\n return plane;\n }\n\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/venetian-blind-window/texture.png\";","module.exports = __webpack_public_path__ + \"catalog/holes/venetian-blind-window/venetian.obj\";","module.exports = __webpack_public_path__ + \"catalog/holes/venetian-blind-window/venetian.mtl\";","module.exports = __webpack_public_path__ + \"catalog/holes/venetian-blind-window/venetian.jpg\";","import React from 'react';\nimport * as Three from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\nimport path from 'path';\n\nlet cached3DWindow = null;\n\nexport default {\n name: 'venetian-blind-window',\n prototype: 'holes',\n\n info: {\n tag: ['Window'],\n title: 'Venetian Blind Window',\n description: 'Venetian Blind Window',\n image: require('./venetian.jpg')\n },\n\n properties: {\n width: {\n label: 'Width',\n type: 'length-measure',\n defaultValue: {\n length: 90\n }\n },\n height: {\n label: 'Height',\n type: 'length-measure',\n defaultValue: {\n length: 100\n }\n },\n altitude: {\n label: 'Altitude',\n type: 'length-measure',\n defaultValue: {\n length: 90\n }\n },\n thickness: {\n label: 'Thickness',\n type: 'length-measure',\n defaultValue: {\n length: 10\n }\n },\n flip: {\n label: 'Flip',\n type: 'checkbox',\n defaultValue: 'false',\n },\n },\n\n render2D: function (element, layer, scene) {\n\n const STYLE_HOLE_BASE = {stroke: '#000', strokeWidth: '3px', fill: '#000'};\n const STYLE_HOLE_SELECTED = {stroke: '#0096fd', strokeWidth: '3px', fill: '#0096fd', cursor: 'move'};\n\n let epsilon = 3;\n\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let length = element.properties.get('width').get('length');\n return (\n \n \n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let flip = element.properties.get('flip');\n\n let onLoadItem = (object) => {\n\n let venetian = new Three.Object3D();\n\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n\n object.scale.set(width / initialWidth, height / initialHeight,\n thickness/2 / initialThickness);\n\n venetian.add(object);\n venetian.add(createTenda());\n\n if(flip === true)\n venetian.rotation.y += Math.PI;\n\n return venetian;\n };\n\n if(cached3DWindow) {\n return Promise.resolve(onLoadItem(cached3DWindow.clone()));;\n }\n\n let mtl = require('./venetian.mtl');\n let obj = require('./venetian.obj');\n let img = require('./texture.png');\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cached3DWindow = object;\n return onLoadItem(cached3DWindow.clone());\n });\n\n function createTenda() {\n\n var venetian = new Three.Object3D();\n\n //colors\n var white = new Three.MeshLambertMaterial( {color: 0xffffff, opacity:0.5, transparent:true} );\n var grey = new Three.MeshLambertMaterial( {color: 0xCCCCCC} );\n\n var roundedRectShape = new Three.Shape();\n\n var x=0;\n var y=0;\n var width=1;\n var height=18;\n var radius=0.25;\n\n roundedRectShape.moveTo( x, y + radius );\n roundedRectShape.lineTo( x, y + height - radius );\n roundedRectShape.quadraticCurveTo( x, y + height, x + radius, y + height );\n roundedRectShape.lineTo( x + width - radius, y + height) ;\n roundedRectShape.quadraticCurveTo( x + width, y + height, x + width, y + height - radius );\n roundedRectShape.lineTo( x + width, y + radius );\n roundedRectShape.quadraticCurveTo( x + width, y, x + width - radius, y );\n roundedRectShape.lineTo( x + radius, y );\n roundedRectShape.quadraticCurveTo( x, y, x, y + radius );\n\n var holePath1 = new Three.Path();\n holePath1.moveTo( 0.5, 0.6 );\n holePath1.arc(0, .7, .15 ,0, Math.PI,false);\n holePath1.arc(0.15, -.09, .15 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath1 );\n\n var holePath2 = new Three.Path();\n holePath2.moveTo( 0.5, 4.6 );\n holePath2.arc(0, .7, .15 ,0, Math.PI,false);\n holePath2.arc(0.15, -.09, .15 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath2 );\n\n var holePath3 = new Three.Path();\n holePath3.moveTo( 0.5, 8.6 );\n holePath3.arc(0, .7, .15 ,0, Math.PI,false);\n holePath3.arc(0.15, -.09, .15 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath3 );\n\n var holePath4 = new Three.Path();\n holePath4.moveTo( 0.5, 12.6 );\n holePath4.arc(0, .7, .15 ,0, Math.PI,false);\n holePath4.arc(0.15, -.09, .15 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath4 );\n\n var holePath5 = new Three.Path();\n holePath5.moveTo( 0.5, 16.6 );\n holePath5.arc(0, .7, .15 ,0, Math.PI,false);\n holePath5.arc(0.15, -.09, .15 ,Math.PI,0,false);\n roundedRectShape.holes.push( holePath5 );\n\n var extrudeSettings = {\n steps: 1,\n depth: 0.2,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for (var i = 0; i < 25; i+=.7) {\n var geometry = new Three.ExtrudeGeometry( roundedRectShape, extrudeSettings );\n var mesh = new Three.Mesh( geometry, grey ) ;\n mesh.position.set(0,i,0.86);\n mesh.rotation.z+=Math.PI/2;\n mesh.rotation.x+=-Math.PI/2;\n venetian.add(mesh);\n\n }\n\n for (var j = -1.25; j > -19; j+=-4) {\n\n var geometry1 = new Three.CylinderGeometry( 0.105, 0.105, 26, 32 );\n var tubo = new Three.Mesh(geometry1,white);\n tubo.position.set(j,12.5,.35);\n venetian.add(tubo);\n\n }\n\n var roundedRectShape2 = new Three.Shape();\n\n var x1=0;\n var y1=0;\n var width1=1;\n var height1=18;\n var radius1=0.25;\n\n roundedRectShape2.moveTo( x1, y1 + radius1 );\n roundedRectShape2.lineTo( x1, y1 + height1 - radius1 );\n roundedRectShape2.quadraticCurveTo( x1, y1 + height1, x1 + radius1, y1 + height1 );\n roundedRectShape2.lineTo( x1 + width1 - radius1, y1 + height1) ;\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1 + height1, x1 + width1, y1 + height1 - radius1 );\n roundedRectShape2.lineTo( x1 + width1, y1 + radius1 );\n roundedRectShape2.quadraticCurveTo( x1 + width1, y1, x1 + width1 - radius1, y1 );\n roundedRectShape2.lineTo( x1 + radius1, y1 );\n roundedRectShape2.quadraticCurveTo( x1, y1, x1, y1 + radius1 );\n\n var extrudeSettings2 = {\n steps: 1,\n depth: 0.4,\n bevelEnabled: false,\n bevelThickness: .4,\n bevelSize: .4,\n bevelSegments: 1\n };\n\n\n for (var k = -.5; k < 27; k+=26) {\n var geometry2 = new Three.ExtrudeGeometry( roundedRectShape2, extrudeSettings2 );\n var mesh2 = new Three.Mesh( geometry2, grey ) ;\n mesh2.position.set(0,k,1);\n mesh2.rotation.z+=Math.PI/2;\n mesh2.rotation.x+=-Math.PI/2;\n venetian.add(mesh2);\n }\n\n\n let valueObject = new Three.Box3().setFromObject(venetian);\n\n let deltaX = Math.abs(valueObject.max.x - valueObject.min.x);\n let deltaY = Math.abs(valueObject.max.y - valueObject.min.y);\n let deltaZ = Math.abs(valueObject.max.z - valueObject.min.z);\n\n venetian.position.x+=width1/.025;\n venetian.position.y+=-height1/.4;\n venetian.scale.set(5.2*width1 / deltaZ, 5.45*height1 / deltaY, 2.5*thickness / deltaX);\n\n\n return venetian;\n }\n }\n\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/sliding-door/slidingDoor.png\";","import Catalog from './catalog/catalog';\nimport Translator from './translator/translator';\nimport * as Models from './models';\nimport reducer from './reducers/reducer';\nimport ReactPlanner from './react-planner';\nimport Plugins from './plugins/export';\nimport * as ReactPlannerConstants from './constants';\nimport * as ReactPlannerSharedStyle from './shared-style';\nimport ReactPlannerComponents from './components/export';\nimport ReactPlannerActions from './actions/export';\nimport ReactPlannerReducers from './reducers/export';\nimport ReactPlannerClasses from './class/export';\nimport ElementsFactories from './catalog/factories/export';\nimport ReactPlannerUtils from './utils/export';\n\nexport {\n Catalog,\n Translator,\n Models,\n reducer,\n ReactPlanner,\n Plugins,\n ReactPlannerConstants,\n ReactPlannerSharedStyle,\n ReactPlannerComponents,\n ReactPlannerActions,\n ReactPlannerReducers,\n ReactPlannerClasses,\n ElementsFactories,\n ReactPlannerUtils\n};\n","import React from 'react';\nimport * as Three from 'three';\n\nconst grey = new Three.MeshLambertMaterial({color: 0x3f3f3f});\nconst white = new Three.MeshLambertMaterial({color: 0xffffff, transparent:true, opacity:0.5});\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\n\nfunction makeDoor(handleSide) {\n\n let slidingDoor = new Three.Mesh();\n\n let doorShape = new Three.Shape();\n doorShape.moveTo( 1, 2 );\n doorShape.lineTo( 0, 2);\n doorShape.lineTo( 0, 0);\n doorShape.lineTo( 1, 0);\n\n let doorHole = new Three.Path();\n doorHole.moveTo(.65, 1.75 );\n doorHole.lineTo(.35, 1.75);\n doorHole.lineTo(.35, 1.25);\n doorHole.lineTo(.65, 1.25);\n doorShape.holes.push( doorHole );\n\n let extrudeSettings = {\n steps: 2,\n depth: 0.05,\n bevelEnabled: false,\n bevelThickness: 1,\n bevelSize: 1,\n bevelSegments: 1\n };\n\n let geometry = new Three.ExtrudeGeometry( doorShape, extrudeSettings );\n let door = new Three.Mesh( geometry, grey ) ;\n if(handleSide === 'right')\n door.position.set(-1,0,0);\n else\n door.position.set(0,0,0);\n slidingDoor.add(door);\n\n let doorGeometry = new Three.BoxGeometry(1,2,0.05);\n let door2 = new Three.Mesh(doorGeometry,grey);\n if (handleSide === 'right')\n door2.position.set(1.5,1,0.065);\n else\n door2.position.set(-.5,1,0.065);\n door.add(door2);\n\n let barGeometry = new Three.BoxGeometry(2,0.1,0.1);\n let doorBar = new Three.Mesh(barGeometry,grey);\n doorBar.position.set(-0,2.07,0.05);\n slidingDoor.add(doorBar);\n\n let glassGeometry = new Three.BoxGeometry(0.3,0.5,0.05);\n let glass = new Three.Mesh(glassGeometry,white);\n glass.position.set(0.5,1.5,0.025);\n door.add(glass);\n\n let HandleGeometry1 = new Three.CylinderGeometry(0.051,0.051,0.0625,80,80,true);\n black.side=Three.DoubleSide;\n let handle_p1 = new Three.Mesh(HandleGeometry1,black);\n handle_p1.position.set(0.2,1,0.025);\n handle_p1.rotation.x=Math.PI/2;\n door.add(handle_p1);\n\n let HandleGeometry2 = new Three.BoxGeometry(0.1,0.02,0.0625);\n let handle_p2 = new Three.Mesh( HandleGeometry2,black );\n handle_p2.position.set(0.2,1,0.025);\n door.add(handle_p2);\n\n if (handleSide === 'left'){\n handle_p1.position.x=0.8;\n handle_p2.position.x=0.8;\n }\n\n return slidingDoor\n}\n\nexport default {\n name: 'sliding door',\n prototype: 'holes',\n\n info: {\n tag: ['door'],\n title: 'sliding door',\n description: 'iron door',\n image: require('./slidingDoor.png')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 200,\n unit: 'cm'\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 215,\n unit: 'cm'\n }\n },\n thickness: {\n label: 'thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30,\n unit: 'cm'\n }\n },\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n flip_horizontal: {\n label: 'horizontal flip',\n type: 'checkbox',\n defaultValue: 'none',\n values: {\n 'none': 'none',\n 'yes': 'yes'\n }\n },\n flip_vertical: {\n label: 'vertical flip',\n type: 'checkbox',\n defaultValue: 'right',\n values: {\n 'right': 'right',\n 'left': 'left'\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n const STYLE_HOLE_BASE = {stroke: '#000', strokeWidth: '14px', fill: '#000'};\n const STYLE_HOLE_BASE2 = {stroke: '#000', strokeWidth: '16px', fill: '#000'};\n const STYLE_HOLE_SELECTED = {stroke: '#0096fd', strokeWidth: '14px', fill: '#0096fd', cursor: 'move'};\n\n let epsilon = 3;\n let flip = element.properties.get('flip_horizontal');\n let handleSide = element.properties.get('flip_vertical');\n let holeWidth = element.properties.get('width').get('length');\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let holeStyle2 = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE2;\n let length = element.properties.get('width').get('length');\n\n let scaleX, scaleY;\n let scaleX2, scaleY2;\n let pX1, pX2;\n\n flip ? flip = 'yes' : flip = 'none';\n handleSide ? handleSide = 'right' : handleSide = 'left';\n\n if(flip === 'yes') {\n scaleX = 1;\n if (handleSide === 'right') {\n pX1 = 0;\n pX2 = holeWidth/2;\n scaleY = -1;\n }\n else {\n pX1 = holeWidth/2;\n pX2 = holeWidth;\n scaleY = -1;\n }\n }\n else {\n scaleX = 1;\n if (handleSide === 'right') {\n pX1 = holeWidth/2;\n pX2 = holeWidth;\n scaleY = 1;\n }\n else {\n pX1 = 0;\n pX2 = holeWidth/2;\n scaleY = 1;\n }\n\n }\n return (\n \n \n \n \n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let flip = element.properties.get('flip_horizontal');\n let handleSide = element.properties.get('flip_vertical');\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n flip ? flip = 'yes' : flip = 'none';\n handleSide ? handleSide = 'right' : handleSide = 'left';\n\n let slidingDoor = new Three.Object3D();\n slidingDoor.add(makeDoor(handleSide).clone());\n\n let valuePosition = new Three.Box3().setFromObject(slidingDoor);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n if (element.selected) {\n let boundingBox = new Three.BoxHelper(slidingDoor, 0x99c3fb);\n boundingBox.material.linewidth = 5;\n boundingBox.renderOrder = 1000;\n boundingBox.material.depthTest = false;\n slidingDoor.add(boundingBox);\n }\n\n if(flip === 'yes')\n slidingDoor.rotation.y += Math.PI;\n\n slidingDoor.position.y+= newAltitude;\n slidingDoor.scale.set(width / deltaX, height / deltaY, thickness / deltaZ);\n\n return Promise.resolve(slidingDoor);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/sash-window/texture.png\";","module.exports = __webpack_public_path__ + \"catalog/holes/sash-window/sash-window.obj\";","module.exports = __webpack_public_path__ + \"catalog/holes/sash-window/sash-window.mtl\";","module.exports = __webpack_public_path__ + \"catalog/holes/sash-window/window.png\";","import React from 'react';\nimport * as Three from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\nimport path from 'path';\n\nlet cached3DWindow = null;\n\nexport default {\n name: \"sash window\",\n prototype: \"holes\",\n\n info: {\n title: \"sash window\",\n tag: ['window'],\n description: \"Sash window\",\n image: require('./window.png')\n },\n\n properties: {\n width: {\n label: \"Width\",\n type: \"length-measure\",\n defaultValue: {\n length: 90\n }\n },\n height: {\n label: \"Height\",\n type: \"length-measure\",\n defaultValue: {\n length: 100\n }\n },\n altitude: {\n label: \"Altitude\",\n type: \"length-measure\",\n defaultValue: {\n length: 90\n }\n },\n thickness: {\n label: \"Thickness\",\n type: \"length-measure\",\n defaultValue: {\n length: 10\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n const STYLE_HOLE_BASE = {stroke: \"#000\", strokeWidth: \"3px\", fill: \"#000\"};\n const STYLE_HOLE_SELECTED = {stroke: \"#0096fd\", strokeWidth: \"3px\", fill: \"#0096fd\", cursor: \"move\"};\n //let line = layer.lines.get(hole.line);\n //let epsilon = line.properties.get('thickness') / 2;\n\n let epsilon = 3;\n\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let length = element.properties.get('width').get('length');\n return (\n \n \n \n \n );\n },\n\n render3D: function (element, layer, scene) {\n let onLoadItem = (object) => {\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n\n object.scale.set(width / initialWidth, height / initialHeight,\n thickness / initialThickness);\n\n return object;\n };\n\n if(cached3DWindow) {\n return Promise.resolve(onLoadItem(cached3DWindow.clone()));\n }\n\n let mtl = require('./sash-window.mtl');\n let obj = require('./sash-window.obj');\n let img = require('./texture.png');\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cached3DWindow = object;\n return onLoadItem(cached3DWindow.clone());\n })\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/panic-door/panicDoor.png\";","import React from 'react';\nimport * as Three from 'three';\n\nconst black = new Three.MeshLambertMaterial({color : 0x000000});\nconst green = new Three.MeshLambertMaterial( {color : 0x348781});\nconst red = new Three.MeshLambertMaterial({color : 0xFF0000});\nconst turquoise = new Three.MeshLambertMaterial({color : 0x43C6DB,opacity :0.7,transparent: true});\nconst metalBlue = new Three.MeshLambertMaterial({color : 0xB7CEEC});\nconst darkGrey = new Three.MeshLambertMaterial({color : 0x313131});\nconst darkGrey2 = new Three.MeshLambertMaterial({color : 0x212121});\nconst metalBlueGrey = new Three.MeshLambertMaterial({color : 0x566D7E});\n\nlet flip_value;\nlet handleSide_value;\n\nfunction makePanicDoor(handleSide) {\n\n let panicDoor = new Three.Mesh();\n let leftDoor = makeDoorStructure();\n let handle = makeHandle(handleSide);\n let leftDoorPivot = makePivot();\n let rightDoorPivot = makePivot();\n let safetyHandleLeft = makeSafetyHandle();\n let safetyHandleRight = makeSafetyHandle();\n let hilt = makeLock();\n let doorLock = makeDoorLock();\n hilt.position.set(-0.05,-0.02,0.03);\n handle.position.set(-0.47/2,0.85/2,-0.03);\n\n if(handleSide) {\n leftDoorPivot.position.set(0.595 / 2, 0, -0.06 / 2);\n }\n else {\n leftDoorPivot.position.set(-0.595 / 2, 0, -0.06 / 2);\n }\n rightDoorPivot.position.set(0.6/2 ,0,0.077/2);\n safetyHandleLeft.position.set(0,0.4,0.06/2);\n safetyHandleRight.position.set(0,0.4,-0.062/2);\n handle.add(hilt);\n leftDoor.add(handle);\n leftDoor.add(safetyHandleLeft);\n leftDoor.add(leftDoorPivot);\n panicDoor.add(leftDoor);\n leftDoor.add(doorLock);\n\n return panicDoor\n}\n\nfunction makeDoorLock () {\n\n let DoorLock = new Three.Object3D();\n let doorLockGeometry1 = new Three.CylinderGeometry(0.012,0.012,1.905,Math.round(32));\n let doorLockGeometry2 = new Three.CylinderGeometry(0.007,0.007,1.907,Math.round(32));\n let doorLock1 = new Three.Mesh( doorLockGeometry1, metalBlue);\n let doorLock2 = new Three.Mesh( doorLockGeometry2, metalBlueGrey);\n DoorLock.position.set(-0.275,0.7/2,0);\n DoorLock.scale.x =1/1.3;\n doorLock1.add(doorLock2);\n DoorLock.add(doorLock1);\n return DoorLock;\n}\n\nfunction makeLock () {\n\n let mechanism = new Three.Object3D();\n let BaseGeometry = new Three.BoxGeometry(0.01,0.1,0.02);\n let PieceGeometry1 = new Three.BoxGeometry(0.01,0.02,0.01);\n let PieceGeometry2 = new Three.BoxGeometry(0.006,0.04,0.008);\n let base = new Three.Mesh( BaseGeometry, metalBlue);\n let piece1 = new Three.Mesh( PieceGeometry1, metalBlueGrey);\n let piece2 = new Three.Mesh( PieceGeometry2, metalBlueGrey);\n piece1.position.set(-0.008/2,0.03,0);\n piece2.position.y =-0.05;\n piece1.add(piece2);\n base.add(piece1);\n mechanism.add(base);\n\n return mechanism;\n}\n\nfunction makeSafetyHandle () {\n\n let handle = new Three.Object3D();\n let HandleSupportGeometry = new Three.BoxGeometry(0.5,0.1,0.005);\n let PushGeometry = new Three.CylinderGeometry(0.04,0.04,0.48,Math.round(32));\n let CoverPushGeometry = new Three.CylinderGeometry(0.042,0.042,0.01,Math.round(32));\n let handleSupport = new Three.Mesh( HandleSupportGeometry, black);\n let PushButton = new Three.Mesh( PushGeometry, red);\n let CoverPush1 = new Three.Mesh( CoverPushGeometry, black);\n let CoverPush2 = new Three.Mesh( CoverPushGeometry, black);\n handleSupport.position.z =0.005/2;\n PushButton.rotation.z =Math.PI/2;\n CoverPush1.position.y =0.48/2 +0.01/2;\n CoverPush2.position.y =-0.48/2 -0.01/2;\n PushButton.add(CoverPush1);\n PushButton.add(CoverPush2);\n handleSupport.add(PushButton);\n handle.add(handleSupport);\n\n return handle;\n}\n\nfunction makePivot () {\n\n let DoorPivot = new Three.Object3D();\n let DownPivotGeometry = new Three.CylinderGeometry(0.009,0.009,0.04,Math.round(32));\n let UpPivotGeometry = new Three.CylinderGeometry(0.01,0.01,0.04,Math.round(32));\n let downPivot1 = new Three.Mesh( DownPivotGeometry, green);\n let upPivot1 = new Three.Mesh( UpPivotGeometry, green);\n let downPivot2 = new Three.Mesh( DownPivotGeometry, green);\n let upPivot2 = new Three.Mesh( UpPivotGeometry, green);\n downPivot1.position.y =-0.4;\n upPivot1.position.y =0.04;\n downPivot2.position.y =1;\n upPivot2.position.y =0.04;\n downPivot2.add(upPivot2);\n downPivot1.add(upPivot1);\n DoorPivot.add(downPivot2);\n DoorPivot.add(downPivot1);\n\n return DoorPivot;\n}\n\nfunction makeHandle (handleSide_value) {\n\n let handle = new Three.Object3D();\n let handleBase = makeHandleBase(handleSide_value);\n let hilt = makeHilt();\n hilt.rotation.x = Math.PI / 2;\n\n if(handleSide_value) {\n hilt.position.set(0, 0.04, -0.03 / 2 - 0.01 / 2);\n }\n else {\n hilt.position.set(0.4, 0.04, -0.03 / 2 - 0.01 / 2);\n hilt.rotation.y = Math.PI ;\n }\n handle.add(handleBase);\n handle.add(hilt);\n handle.scale.set(1.1, 1.1, 1.1);\n return handle;\n}\n\nfunction makeHilt () {\n\n let hilt = new Three.Object3D();\n let Geometry_p1 = new Three.CylinderGeometry(0.01,0.01,0.03,Math.round(32));\n let Geometry_p2 = new Three.SphereGeometry(0.01,Math.round(32),Math.round(32));\n let Geometry_p3 = new Three.CylinderGeometry(0.01,0.01,0.07,Math.round(32));\n let piece1 = new Three.Mesh( Geometry_p1, black);\n let piece2 = new Three.Mesh( Geometry_p2, black);\n let piece3 = new Three.Mesh( Geometry_p3, black);\n let piece4 = new Three.Mesh( Geometry_p2, black);\n piece3.rotation.z =Math.PI/2;\n piece3.position.x =0.07/2;\n piece2.position.y =-0.03/2;\n piece4.position.y =-0.07/2;\n piece3.add(piece4);\n piece2.add(piece3);\n piece1.add(piece2);\n hilt.add(piece1);\n\n return hilt;\n}\n\nfunction makeHandleBase (handleSide_value) {\n let base = new Three.Object3D();\n let BaseGeometry1 = new Three.BoxGeometry(0.038,0.14,0.01);\n let BaseGeometry2 = new Three.CylinderGeometry(0.023,0.023,0.01,Math.round(32));\n let lock = makeLockKey();\n let base1 = new Three.Mesh( BaseGeometry1, black);\n let base2 = new Three.Mesh( BaseGeometry2, black);\n lock.rotation.x = Math.PI/2;\n base2.rotation.x =Math.PI/2;\n lock.position.y = -0.03;\n base2.position.y = -0.033;\n if(!handleSide_value)\n base1.position.x = 0.4;\n base2.scale.z =1.5;\n base1.add(lock);\n base1.add(base2);\n base.add(base1);\n return base;\n}\n\nfunction makeLockKey () {\n\n let Lock = new Three.Object3D();\n let geometry1 = new Three.CylinderGeometry(0.005,0.005,0.02,Math.round(32));\n let geometry2 = new Three.BoxGeometry(0.008,0.02,0.02);\n let geometry3 = new Three.BoxGeometry(0.007,0.0203,0.0018);\n let LockPiece1 = new Three.Mesh( geometry1, metalBlue);\n let LockPiece2 = new Three.Mesh( geometry2, metalBlue);\n let LockPiece3 = new Three.Mesh( geometry3, metalBlueGrey );\n LockPiece2.position.z = 0.01;\n LockPiece1.add(LockPiece2);\n LockPiece1.add(LockPiece3);\n Lock.add(LockPiece1);\n\n return Lock;\n}\n\nfunction makeDoorStructure () {\n\n let door = new Three.Object3D();\n let lowBaseDoorGeometry = new Three.BoxGeometry(0.6,1.2,0.01);\n let middleBaseDoorGeometry = new Three.BoxGeometry(0.2,0.7,0.01);\n let highBaseDoorGeometry = new Three.BoxGeometry(0.2,0.2,0.01);\n let BorderCoverDoorGeometry1 = new Three.CylinderGeometry(0.005,0.005,1.9,Math.round(32));\n let BorderCoverDoorGeometry2 = new Three.BoxGeometry(0.03,1.9,0.01);\n let MiddleDoorGeometry2 = new Three.BoxGeometry(0.2,0.7,0.06);\n let MiddleDoorGeometry1 = new Three.BoxGeometry(0.19,0.7,0.06);\n let HighDoorGeometry = new Three.BoxGeometry(0.2,0.2,0.06);\n let glassGeometry = new Three.BoxGeometry(0.2,0.5,0.05);\n let LowDoorGeometry = new Three.BoxGeometry(0.59,1.2,0.06);\n let glassCoverVertical = new Three.BoxGeometry(0.01,0.52,0.064);\n let glassCoverHorizontal = new Three.BoxGeometry(0.224,0.01,0.064);\n let lowCoverDoor = new Three.Mesh( lowBaseDoorGeometry , green );\n let middleDoor1 = new Three.Mesh( MiddleDoorGeometry1, green);\n let middleDoor2 = new Three.Mesh( MiddleDoorGeometry2, green);\n let baseDoor = new Three.Mesh( LowDoorGeometry, green );\n let middleCoverDoor1 = new Three.Mesh( middleBaseDoorGeometry, green);\n let middleCoverDoor2 = new Three.Mesh( middleBaseDoorGeometry, green);\n let highCoverDoor = new Three.Mesh( highBaseDoorGeometry, green);\n let highDoor = new Three.Mesh( HighDoorGeometry, green);\n let borderCoverDoor1 = new Three.Mesh( BorderCoverDoorGeometry1, green);\n let borderCoverDoor2 = new Three.Mesh( BorderCoverDoorGeometry2, green);\n let glass = new Three.Mesh( glassGeometry, turquoise);\n let glassVerticalCover1 = new Three.Mesh( glassCoverVertical, green);\n let glassVerticalCover2 = new Three.Mesh( glassCoverVertical, green);\n let glassHorizontalCover1 = new Three.Mesh( glassCoverHorizontal, green);\n let glassHorizontalCover2 = new Three.Mesh( glassCoverHorizontal, green);\n lowCoverDoor.position.set(-(0.6-0.59)/2,0,-0.05/2);\n middleCoverDoor1.position.set(-0.2,1.2/2 +0.7/2,0);\n middleCoverDoor2.position.set(0.2,1.2/2 +0.7/2,0);\n highCoverDoor.position.set(0,(0.5 +0.2)/2,-0.05/2);\n highDoor.position.set(0,(0.5 +0.2)/2,-0.05/2 +0.05/2);\n glass.position.set(-0.01/2,1.2/2 +0.5/2,0);\n middleDoor2.position.z =0.05/2;\n middleDoor1.position.set(0.005,0,0.05/2);\n borderCoverDoor1.position.set(-0.6/2,0.7/2,0);\n glassVerticalCover1.position.x = 0.2/2 +0.014/2;\n glassVerticalCover2.position.x =-0.2/2 -0.014/2;\n glassHorizontalCover1.position.y = 0.5/2 +0.014/2;\n glassHorizontalCover2.position.y =-0.5/2 -0.014/2;\n borderCoverDoor2.position.set(0.02/2,0,-0.01/2 );\n borderCoverDoor1.add(borderCoverDoor2);\n glass.add(highCoverDoor);\n glass.add(glassVerticalCover1);\n glass.add(glassVerticalCover2);\n glass.add(glassHorizontalCover1);\n glass.add(glassHorizontalCover2);\n glass.add(highCoverDoor);\n glass.add(highDoor);\n baseDoor.add(glass);\n middleCoverDoor1.add(middleDoor1);\n middleCoverDoor2.add(middleDoor2);\n lowCoverDoor.add(borderCoverDoor1);\n lowCoverDoor.add(middleCoverDoor1);\n lowCoverDoor.add(middleCoverDoor2);\n baseDoor.add(lowCoverDoor);\n door.add(baseDoor);\n door.scale.x = 1.3;\n return door;\n}\n\nexport default {\n name: 'panic door',\n prototype: 'holes',\n\n info: {\n tag: ['door'],\n title: 'panic door',\n description: 'iron door',\n image: require('./panicDoor.png')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 100,\n unit: 'cm'\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 215,\n unit: 'cm'\n }\n },\n thickness: {\n label: 'thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30,\n unit: 'cm'\n }\n },\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n flip_horizontal: {\n label: 'horizontal flip',\n type: 'checkbox',\n defaultValue: 'none',\n values: {\n 'none': 'none',\n 'yes': 'yes'\n }\n },\n flip_vertical: {\n label: 'vertical flip',\n type: 'checkbox',\n defaultValue: 'right',\n values: {\n 'right': 'right',\n 'left': 'left'\n }\n },\n },\n\n\n render2D: function (element, layer, scene) {\n\n const STYLE_HOLE_BASE = {stroke: '#ff0000', strokeWidth: '3px', fill: '#ff0000'};\n const STYLE_HOLE_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', fill: '#ff0000', cursor: 'move'};\n const STYLE_ARC_BASE = {stroke: '#ff0000', strokeWidth: '3px', strokeDasharray: '5,5', fill: 'none'};\n const STYLE_ARC_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', strokeDasharray: '5,5', fill: 'none', cursor: 'move'};\n\n let epsilon = 3;\n\n let flip = element.properties.get('flip_horizontal');\n let handleSide = element.properties.get('flip_vertical');\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let arcPath = `M${0},${0} A${holeWidth},${holeWidth} 0 0,1 ${holeWidth},${holeWidth}`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\n let length = element.properties.get('width').get('length');\n\n let scaleX, scaleY;\n let rotateAngle;\n let tX, tY;\n let pX1, pX2, pY1, pY2;\n\n flip ? flip_value = 'yes' : flip_value = 'none';\n handleSide ? handleSide_value = 'right' : handleSide_value = 'left';\n\n if(flip_value === 'yes') {\n scaleX = 1;\n if (handleSide_value === 'right') {\n tX = holeWidth;\n tY = -holeWidth;\n pX1 = -holeWidth;\n pY1 = 0;\n pX2 = -holeWidth;\n pY2 = holeWidth;\n rotateAngle = 180;\n scaleY = -1;\n }\n else {\n tX = 0;\n tY = -holeWidth;\n pX1 = 0;\n pY1 = 0;\n pX2 = 0;\n pY2 = -holeWidth;\n scaleY = 1;\n rotateAngle = 0;\n }\n }\n else if (flip_value === 'none') {\n scaleX = -1;\n if (handleSide_value === 'left') {\n tX = holeWidth;\n tY = 0;\n pX1 = 0;\n pY1 = 0;\n pX2 = 0;\n pY2 = -holeWidth;\n rotateAngle = -90;\n scaleY = -1;\n }\n else{\n tX = 0;\n tY = 0;\n pX1 = holeWidth;\n pY1 = 0;\n pX2 = holeWidth;\n pY2 = holeWidth;\n rotateAngle = 90;\n scaleY = 1;\n }\n }\n\n return (\n \n \n \n \n \n\n );\n },\n\n render3D: function (element, layer, scene) {\n\n let flip = element.properties.get('flip_horizontal');\n let handleSide = element.properties.get('flip_vertical');\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n let panicDoor = new Three.Object3D();\n panicDoor.add(makePanicDoor(handleSide).clone());\n\n if (element.selected) {\n let boundingBox = new Three.BoxHelper(panicDoor, 0x99c3fb);\n boundingBox.material.linewidth = 5;\n boundingBox.renderOrder = 1000;\n boundingBox.material.depthTest = false;\n panicDoor.add(boundingBox);\n }\n\n let valuePosition = new Three.Box3().setFromObject(panicDoor);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n if(flip)\n panicDoor.rotation.y += Math.PI;\n\n panicDoor.position.y+= newAltitude;\n panicDoor.scale.set(width / deltaX, height / deltaY, thickness / deltaZ);\n\n return Promise.resolve(panicDoor);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/panic-door-double/panicDoorDouble.png\";","import React from 'react';\nimport * as Three from 'three';\n\nconst black = new Three.MeshLambertMaterial({color : 0x000000});\nconst green = new Three.MeshLambertMaterial( {color : 0x348781});\nconst red = new Three.MeshLambertMaterial({color : 0xFF0000});\nconst turquoise = new Three.MeshLambertMaterial({color : 0x43C6DB,opacity :0.7,transparent: true});\nconst metalBlue = new Three.MeshLambertMaterial({color : 0xB7CEEC});\nconst darkGrey = new Three.MeshLambertMaterial({color : 0x313131});\nconst darkGrey2 = new Three.MeshLambertMaterial({color : 0x212121});\nconst metalBlueGrey = new Three.MeshLambertMaterial({color : 0x566D7E});\n\n\nfunction makePanicDoor() {\n\n let panicDoorDouble = new Three.Mesh();\n let doorLeft = makeDoorStructure();\n let doorRight = makeDoorStructure();\n let handle = makeHandle();\n let doorLeftPivot = makePivot();\n let doorRightPivot = makePivot();\n let safetyHandleLeft = makeSafetyHandle();\n let safetyHandleRight = makeSafetyHandle();\n let lock = makeLock();\n let doorLockLeft = makeDoorLock();\n let doorLockRight = makeDoorLock();\n lock.position.set(-0.05, -0.02, 0.03);\n handle.position.set(-0.47 / 2, 0.85 / 2, -0.03);\n doorLeftPivot.position.set(0.595 / 2, 0, -0.06 / 2);\n doorRightPivot.position.set(0.6 / 2, 0, 0.077 / 2);\n doorRight.rotation.y = Math.PI;\n doorRight.position.set(-0.35 / 2 - 0.084, 0, 0.0043);\n doorLeft.position.set(0.35 / 2 + 0.084, 0, -0.0043);\n safetyHandleLeft.position.set(0, 0.4, 0.06 / 2);\n safetyHandleRight.position.set(0, 0.4, -0.062 / 2);\n handle.add(lock);\n doorLeft.add(handle);\n doorLeft.add(safetyHandleLeft);\n doorRight.add(safetyHandleRight);\n doorLeft.add(doorLeftPivot);\n panicDoorDouble.add(doorLeft);\n doorRight.add(doorRightPivot);\n doorLeft.add(doorLockLeft);\n doorRight.add(doorLockRight);\n panicDoorDouble.add(doorRight);\n\n return panicDoorDouble\n}\n\nfunction makeDoorLock() {\n\n let block = new Three.Object3D();\n let DoorLockGeometry1 = new Three.CylinderGeometry(0.012, 0.012, 1.905, Math.round(32));\n let DoorLockGeometry2 = new Three.CylinderGeometry(0.007, 0.007, 1.907, Math.round(32));\n let DoorLock1 = new Three.Mesh(DoorLockGeometry1, metalBlue);\n let DoorLock2 = new Three.Mesh(DoorLockGeometry2, metalBlueGrey);\n block.position.set(-0.275, 0.7 / 2, 0);\n block.scale.x = 1 / 1.3;\n DoorLock1.add(DoorLock2);\n block.add(DoorLock1);\n\n return block;\n}\n\nfunction makeLock() {\n\n let mechanism = new Three.Object3D();\n let BaseGeometry = new Three.BoxGeometry(0.01, 0.1, 0.02);\n let FirstBlockGeometry = new Three.BoxGeometry(0.01, 0.02, 0.01);\n let SecondBlockGeometry = new Three.BoxGeometry(0.006, 0.04, 0.008);\n let base = new Three.Mesh(BaseGeometry, metalBlue);\n let FirstBlock = new Three.Mesh(FirstBlockGeometry, metalBlueGrey);\n let SecondBlock = new Three.Mesh(SecondBlockGeometry, metalBlueGrey);\n FirstBlock.position.set(-0.008 / 2, 0.03, 0);\n SecondBlock.position.y = -0.05;\n FirstBlock.add(SecondBlock);\n base.add(FirstBlock);\n mechanism.add(base);\n\n return mechanism;\n}\n\nfunction makeSafetyHandle() {\n\n let handle = new Three.Object3D();\n let handleSupportGeometry = new Three.BoxGeometry(0.5, 0.1, 0.005);\n let PushButtonGeometry = new Three.CylinderGeometry(0.04, 0.04, 0.48, Math.round(32 ));\n let PushButtonCoverGeometry = new Three.CylinderGeometry(0.042, 0.042, 0.01, Math.round(32 ));\n let handleSupport = new Three.Mesh(handleSupportGeometry, black);\n let pushButton = new Three.Mesh(PushButtonGeometry, red);\n let pushButtonCover1 = new Three.Mesh(PushButtonCoverGeometry, black);\n let pushButtonCover2 = new Three.Mesh(PushButtonCoverGeometry, black);\n handleSupport.position.z = 0.005 / 2;\n pushButton.rotation.z = Math.PI / 2;\n pushButtonCover1.position.y = 0.48 / 2 + 0.01 / 2;\n pushButtonCover2.position.y = -0.48 / 2 - 0.01 / 2;\n pushButton.add(pushButtonCover1);\n pushButton.add(pushButtonCover2);\n handleSupport.add(pushButton);\n handle.add(handleSupport);\n\n return handle;\n}\n\nfunction makePivot() {\n\n let DoorPivot = new Three.Object3D();\n let DownPivotGeometry = new Three.CylinderGeometry(0.009, 0.009, 0.04, Math.round(32 ));\n let UpPivotGeometry = new Three.CylinderGeometry(0.01, 0.01, 0.04, Math.round(32 ));\n let downPivot1 = new Three.Mesh(DownPivotGeometry, green);\n let upPivot1 = new Three.Mesh(UpPivotGeometry, green);\n let downPivot2 = new Three.Mesh(DownPivotGeometry, green);\n let upPivot2 = new Three.Mesh(UpPivotGeometry, green);\n downPivot1.position.y = -0.4;\n upPivot1.position.y = 0.04;\n downPivot2.position.y = 1;\n upPivot2.position.y = 0.04;\n downPivot2.add(upPivot2);\n downPivot1.add(upPivot1);\n DoorPivot.add(downPivot2);\n DoorPivot.add(downPivot1);\n\n return DoorPivot;\n}\n\nfunction makeHandle() {\n\n let handle = new Three.Object3D();\n let handleBase = makeHandleBase();\n let hilt = makeHilt();\n hilt.rotation.x = Math.PI / 2;\n hilt.position.set(0, 0.04, -0.03 / 2 - 0.01 / 2);\n handle.add(handleBase);\n handle.add(hilt);\n handle.scale.set(1.1, 1.1, 1.1);\n\n return handle;\n}\n\nfunction makeHilt() {\n\n let hilt = new Three.Object3D();\n let GeometryPiece1 = new Three.CylinderGeometry(0.01, 0.01, 0.03, Math.round(32 ));\n let GeometryPiece2 = new Three.SphereGeometry(0.01, Math.round(32 ), Math.round(32 ));\n let GeometryPiece3 = new Three.CylinderGeometry(0.01, 0.01, 0.07, Math.round(32 ));\n let piece1 = new Three.Mesh(GeometryPiece1, black);\n let piece2 = new Three.Mesh(GeometryPiece2, black);\n let piece3 = new Three.Mesh(GeometryPiece3, black);\n let piece4 = new Three.Mesh(GeometryPiece2, black);\n piece3.rotation.z = Math.PI / 2;\n piece3.position.x = 0.07 / 2;\n piece2.position.y = -0.03 / 2;\n piece4.position.y = -0.07 / 2;\n piece3.add(piece4);\n piece2.add(piece3);\n piece1.add(piece2);\n hilt.add(piece1);\n\n return hilt;\n}\n\nfunction makeHandleBase() {\n\n let base = new Three.Object3D();\n let BaseGeometry1 = new Three.BoxGeometry(0.038, 0.14, 0.01);\n let BaseGeometry2 = new Three.CylinderGeometry(0.023, 0.023, 0.01, Math.round(32 ));\n let lock = makeLockKey();\n let base1 = new Three.Mesh(BaseGeometry1, black);\n let base2 = new Three.Mesh(BaseGeometry2, black);\n lock.rotation.x = Math.PI / 2;\n lock.position.y = -0.03;\n base2.rotation.x = Math.PI / 2;\n base2.position.y = -0.033;\n base2.scale.z = 1.5;\n base1.add(lock);\n base1.add(base2);\n base.add(base1);\n\n return base;\n}\n\nfunction makeLockKey() {\n\n let lock = new Three.Object3D();\n let geometryLock1 = new Three.CylinderGeometry(0.005, 0.005, 0.02, Math.round(32 ));\n let geometryLock2 = new Three.BoxGeometry(0.008, 0.02, 0.02);\n let geometryLock3 = new Three.BoxGeometry(0.007, 0.0203, 0.0018);\n let lockPiece1 = new Three.Mesh(geometryLock1, metalBlue);\n let lockPiece2 = new Three.Mesh(geometryLock2, metalBlue);\n let lockPiece3 = new Three.Mesh(geometryLock3, metalBlueGrey);\n lockPiece2.position.z = 0.01;\n lockPiece1.add(lockPiece2);\n lockPiece1.add(lockPiece3);\n lock.add(lockPiece1);\n\n return lock;\n}\n\nfunction makeDoorStructure() {\n\n let door = new Three.Object3D();\n let lowBaseDoorGeometry = new Three.BoxGeometry(0.6,1.2,0.01);\n let middleBaseDoorGeometry = new Three.BoxGeometry(0.2,0.7,0.01);\n let highBaseDoorGeometry = new Three.BoxGeometry(0.2,0.2,0.01);\n let BorderCoverDoorGeometry1 = new Three.CylinderGeometry(0.005,0.005,1.9,Math.round(32));\n let BorderCoverDoorGeometry2 = new Three.BoxGeometry(0.03,1.9,0.01);\n let MiddleDoorGeometry2 = new Three.BoxGeometry(0.2,0.7,0.06);\n let MiddleDoorGeometry1 = new Three.BoxGeometry(0.19,0.7,0.06);\n let HighDoorGeometry = new Three.BoxGeometry(0.2,0.2,0.06);\n let glassGeometry = new Three.BoxGeometry(0.2,0.5,0.05);\n let LowDoorGeometry = new Three.BoxGeometry(0.59,1.2,0.06);\n let glassCoverVertical = new Three.BoxGeometry(0.01,0.52,0.064);\n let glassCoverHorizontal = new Three.BoxGeometry(0.224,0.01,0.064);\n let lowCoverDoor = new Three.Mesh( lowBaseDoorGeometry , green );\n let middleDoor1 = new Three.Mesh( MiddleDoorGeometry1, green);\n let middleDoor2 = new Three.Mesh( MiddleDoorGeometry2, green);\n let baseDoor = new Three.Mesh( LowDoorGeometry, green );\n let middleCoverDoor1 = new Three.Mesh( middleBaseDoorGeometry, green);\n let middleCoverDoor2 = new Three.Mesh( middleBaseDoorGeometry, green);\n let highCoverDoor = new Three.Mesh( highBaseDoorGeometry, green);\n let highDoor = new Three.Mesh( HighDoorGeometry, green);\n let borderCoverDoor1 = new Three.Mesh( BorderCoverDoorGeometry1, green);\n let borderCoverDoor2 = new Three.Mesh( BorderCoverDoorGeometry2, green);\n let glass = new Three.Mesh( glassGeometry, turquoise);\n let glassVerticalCover1 = new Three.Mesh( glassCoverVertical, green);\n let glassVerticalCover2 = new Three.Mesh( glassCoverVertical, green);\n let glassHorizontalCover1 = new Three.Mesh( glassCoverHorizontal, green);\n let glassHorizontalCover2 = new Three.Mesh( glassCoverHorizontal, green);\n lowCoverDoor.position.set(-(0.6-0.59)/2,0,-0.05/2);\n middleCoverDoor1.position.set(-0.2,1.2/2 +0.7/2,0);\n middleCoverDoor2.position.set(0.2,1.2/2 +0.7/2,0);\n highCoverDoor.position.set(0,(0.5 +0.2)/2,-0.05/2);\n highDoor.position.set(0,(0.5 +0.2)/2,-0.05/2 +0.05/2);\n glass.position.set(-0.01/2,1.2/2 +0.5/2,0);\n middleDoor2.position.z =0.05/2;\n middleDoor1.position.set(0.005,0,0.05/2);\n borderCoverDoor1.position.set(-0.6/2,0.7/2,0);\n glassVerticalCover1.position.x = 0.2/2 +0.014/2;\n glassVerticalCover2.position.x =-0.2/2 -0.014/2;\n glassHorizontalCover1.position.y = 0.5/2 +0.014/2;\n glassHorizontalCover2.position.y =-0.5/2 -0.014/2;\n borderCoverDoor2.position.set(0.02/2,0,-0.01/2 );\n borderCoverDoor1.add(borderCoverDoor2);\n glass.add(highCoverDoor);\n glass.add(glassVerticalCover1);\n glass.add(glassVerticalCover2);\n glass.add(glassHorizontalCover1);\n glass.add(glassHorizontalCover2);\n glass.add(highCoverDoor);\n glass.add(highDoor);\n baseDoor.add(glass);\n middleCoverDoor1.add(middleDoor1);\n middleCoverDoor2.add(middleDoor2);\n lowCoverDoor.add(borderCoverDoor1);\n lowCoverDoor.add(middleCoverDoor1);\n lowCoverDoor.add(middleCoverDoor2);\n baseDoor.add(lowCoverDoor);\n door.add(baseDoor);\n door.scale.x = 0.9;\n\n return door;\n}\n\nexport default {\n name: 'double panic door',\n prototype: 'holes',\n\n info: {\n tag: ['door'],\n title: 'double panic door',\n description: 'iron door',\n image: require('./panicDoorDouble.png')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 200,\n unit: 'cm'\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 215,\n unit: 'cm'\n }\n },\n thickness: {\n label: 'thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30,\n unit: 'cm'\n }\n },\n altitude: {\n label:'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n flip_horizontal: {\n label: 'flip',\n type: 'checkbox',\n defaultValue: false,\n values: {\n 'none': false,\n 'yes': true\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n const STYLE_HOLE_BASE = {stroke: '#ff0000', strokeWidth: '3px', fill: '#ff0000'};\n const STYLE_HOLE_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', fill: '#ff0000', cursor: 'move'};\n const STYLE_ARC_BASE = {stroke: '#ff0000', strokeWidth: '3px', strokeDasharray: '5,5', fill: 'none'};\n const STYLE_ARC_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', strokeDasharray: '5,5', fill: 'none', cursor: 'move'};\n\n let epsilon = 3;\n let flip = element.properties.get('flip_horizontal');\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let arcPath = `M${0},${0} A${holeWidth/2},${holeWidth/2} 0 0,1 ${holeWidth/2},${holeWidth/2}`;\n let arcPath2 =`M${0},${0} A${holeWidth/2},${holeWidth/2} 0 0,0 ${holeWidth/2},${holeWidth/2}`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\n let length = element.properties.get('width').get('length');\n\n\n if(flip){\n return (\n \n \n \n \n \n \n \n )\n }\n else {\n return (\n \n \n \n \n \n \n \n )\n }\n },\n\n render3D: function (element, layer, scene) {\n\n let flip = element.properties.get('flip_horizontal');\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n let panicDoorDouble = new Three.Object3D();\n panicDoorDouble.add(makePanicDoor().clone());\n\n let valuePosition = new Three.Box3().setFromObject(panicDoorDouble);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n if (element.selected) {\n let boundingBox = new Three.BoxHelper(panicDoorDouble, 0x99c3fb);\n boundingBox.material.linewidth = 5;\n boundingBox.renderOrder = 1000;\n boundingBox.material.depthTest = false;\n panicDoorDouble.add(boundingBox);\n }\n\n if(flip)\n panicDoorDouble.rotation.y+=Math.PI;\n\n panicDoorDouble.position.y+= newAltitude;\n panicDoorDouble.scale.set( width / deltaX, height / deltaY,thickness / deltaZ);\n\n return Promise.resolve(panicDoorDouble);\n\n }\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/gate/gate.jpg\";","import React from 'react';\nimport * as Three from 'three';\nimport path from 'path';\n\nexport default {\n name: 'gate',\n prototype: 'holes',\n\n info: {\n tag: ['gate'],\n title: 'gate',\n description: 'hole in the wall',\n image: require('./gate.jpg')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 80\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 215\n }\n },\n altitude: {\n label: 'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0\n }\n },\n thickness: {\n label: 'thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n const STYLE_HOLE_BASE = {stroke: '#000', strokeWidth: '3px', fill: '#000'};\n const STYLE_HOLE_SELECTED = {stroke: '#0096fd', strokeWidth: '4px', fill: '#0096fd', cursor: 'move'};\n const STYLE_ARC_BASE = {stroke: '#000', strokeWidth: '3px', strokeDasharray: '5,5', fill: 'none'};\n const STYLE_ARC_SELECTED = {\n stroke: '#0096fd',\n strokeWidth: '4px',\n strokeDasharray: '5,5',\n fill: 'none',\n cursor: 'move'\n };\n\n let epsilon = 3;\n\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let arcPath = `M${0},${0} A${0},${0} 0 0,1 ${holeWidth},${0}`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\n let length = element.properties.get('width').get('length');\n\n\n return (\n \n \n \n \n \n )\n },\n\n render3D: function (element, layer, scene) {\n\n let object = new Three.Object3D();\n return Promise.resolve(object);\n\n }\n\n}\n\n","module.exports = __webpack_public_path__ + \"catalog/holes/door/texture.jpg\";","module.exports = __webpack_public_path__ + \"catalog/holes/door/door.obj\";","module.exports = __webpack_public_path__ + \"catalog/holes/door/door.mtl\";","module.exports = __webpack_public_path__ + \"catalog/holes/door/door.png\";","/**\n * @author mrdoob / http://mrdoob.com/\n */\nvar THREE = window.THREE || require('three');\nlet OBJLoader;\nOBJLoader = (function () {\n // o object_name | g group_name\n var object_pattern = /^[og]\\s*(.+)?/;\n // mtllib file_reference\n var material_library_pattern = /^mtllib /;\n // usemtl material_name\n var material_use_pattern = /^usemtl /;\n function ParserState() {\n var state = {\n objects: [],\n object: {},\n vertices: [],\n normals: [],\n colors: [],\n uvs: [],\n materialLibraries: [],\n startObject: function (name, fromDeclaration) {\n // If the current object (initial from reset) is not from a g/o declaration in the parsed\n // file. We need to use it for the first parsed g/o to keep things in sync.\n if (this.object && this.object.fromDeclaration === false) {\n this.object.name = name;\n this.object.fromDeclaration = (fromDeclaration !== false);\n return;\n }\n var previousMaterial = (this.object && typeof this.object.currentMaterial === 'function' ? this.object.currentMaterial() : undefined);\n if (this.object && typeof this.object._finalize === 'function') {\n this.object._finalize(true);\n }\n this.object = {\n name: name || '',\n fromDeclaration: (fromDeclaration !== false),\n geometry: {\n vertices: [],\n normals: [],\n colors: [],\n uvs: []\n },\n materials: [],\n smooth: true,\n startMaterial: function (name, libraries) {\n var previous = this._finalize(false);\n // New usemtl declaration overwrites an inherited material, except if faces were declared\n // after the material, then it must be preserved for proper MultiMaterial continuation.\n if (previous && (previous.inherited || previous.groupCount <= 0)) {\n this.materials.splice(previous.index, 1);\n }\n var material = {\n index: this.materials.length,\n name: name || '',\n mtllib: (Array.isArray(libraries) && libraries.length > 0 ? libraries[libraries.length - 1] : ''),\n smooth: (previous !== undefined ? previous.smooth : this.smooth),\n groupStart: (previous !== undefined ? previous.groupEnd : 0),\n groupEnd: - 1,\n groupCount: - 1,\n inherited: false,\n clone: function (index) {\n var cloned = {\n index: (typeof index === 'number' ? index : this.index),\n name: this.name,\n mtllib: this.mtllib,\n smooth: this.smooth,\n groupStart: 0,\n groupEnd: - 1,\n groupCount: - 1,\n inherited: false\n };\n cloned.clone = this.clone.bind(cloned);\n return cloned;\n }\n };\n this.materials.push(material);\n return material;\n },\n currentMaterial: function () {\n if (this.materials.length > 0) {\n return this.materials[this.materials.length - 1];\n }\n return undefined;\n },\n _finalize: function (end) {\n var lastMultiMaterial = this.currentMaterial();\n if (lastMultiMaterial && lastMultiMaterial.groupEnd === - 1) {\n lastMultiMaterial.groupEnd = this.geometry.vertices.length / 3;\n lastMultiMaterial.groupCount = lastMultiMaterial.groupEnd - lastMultiMaterial.groupStart;\n lastMultiMaterial.inherited = false;\n }\n // Ignore objects tail materials if no face declarations followed them before a new o/g started.\n if (end && this.materials.length > 1) {\n for (var mi = this.materials.length - 1; mi >= 0; mi--) {\n if (this.materials[mi].groupCount <= 0) {\n this.materials.splice(mi, 1);\n }\n }\n }\n // Guarantee at least one empty material, this makes the creation later more straight forward.\n if (end && this.materials.length === 0) {\n this.materials.push({\n name: '',\n smooth: this.smooth\n });\n }\n return lastMultiMaterial;\n }\n };\n // Inherit previous objects material.\n // Spec tells us that a declared material must be set to all objects until a new material is declared.\n // If a usemtl declaration is encountered while this new object is being parsed, it will\n // overwrite the inherited material. Exception being that there was already face declarations\n // to the inherited material, then it will be preserved for proper MultiMaterial continuation.\n if (previousMaterial && previousMaterial.name && typeof previousMaterial.clone === 'function') {\n var declared = previousMaterial.clone(0);\n declared.inherited = true;\n this.object.materials.push(declared);\n }\n this.objects.push(this.object);\n },\n finalize: function () {\n if (this.object && typeof this.object._finalize === 'function') {\n this.object._finalize(true);\n }\n },\n parseVertexIndex: function (value, len) {\n var index = parseInt(value, 10);\n return (index >= 0 ? index - 1 : index + len / 3) * 3;\n },\n parseNormalIndex: function (value, len) {\n var index = parseInt(value, 10);\n return (index >= 0 ? index - 1 : index + len / 3) * 3;\n },\n parseUVIndex: function (value, len) {\n var index = parseInt(value, 10);\n return (index >= 0 ? index - 1 : index + len / 2) * 2;\n },\n addVertex: function (a, b, c) {\n var src = this.vertices;\n var dst = this.object.geometry.vertices;\n dst.push(src[a + 0], src[a + 1], src[a + 2]);\n dst.push(src[b + 0], src[b + 1], src[b + 2]);\n dst.push(src[c + 0], src[c + 1], src[c + 2]);\n },\n addVertexPoint: function (a) {\n var src = this.vertices;\n var dst = this.object.geometry.vertices;\n dst.push(src[a + 0], src[a + 1], src[a + 2]);\n },\n addVertexLine: function (a) {\n var src = this.vertices;\n var dst = this.object.geometry.vertices;\n dst.push(src[a + 0], src[a + 1], src[a + 2]);\n },\n addNormal: function (a, b, c) {\n var src = this.normals;\n var dst = this.object.geometry.normals;\n dst.push(src[a + 0], src[a + 1], src[a + 2]);\n dst.push(src[b + 0], src[b + 1], src[b + 2]);\n dst.push(src[c + 0], src[c + 1], src[c + 2]);\n },\n addColor: function (a, b, c) {\n var src = this.colors;\n var dst = this.object.geometry.colors;\n dst.push(src[a + 0], src[a + 1], src[a + 2]);\n dst.push(src[b + 0], src[b + 1], src[b + 2]);\n dst.push(src[c + 0], src[c + 1], src[c + 2]);\n },\n addUV: function (a, b, c) {\n var src = this.uvs;\n var dst = this.object.geometry.uvs;\n dst.push(src[a + 0], src[a + 1]);\n dst.push(src[b + 0], src[b + 1]);\n dst.push(src[c + 0], src[c + 1]);\n },\n addUVLine: function (a) {\n var src = this.uvs;\n var dst = this.object.geometry.uvs;\n dst.push(src[a + 0], src[a + 1]);\n },\n addFace: function (a, b, c, ua, ub, uc, na, nb, nc) {\n var vLen = this.vertices.length;\n var ia = this.parseVertexIndex(a, vLen);\n var ib = this.parseVertexIndex(b, vLen);\n var ic = this.parseVertexIndex(c, vLen);\n this.addVertex(ia, ib, ic);\n if (ua !== undefined && ua !== '') {\n var uvLen = this.uvs.length;\n ia = this.parseUVIndex(ua, uvLen);\n ib = this.parseUVIndex(ub, uvLen);\n ic = this.parseUVIndex(uc, uvLen);\n this.addUV(ia, ib, ic);\n }\n if (na !== undefined && na !== '') {\n // Normals are many times the same. If so, skip function call and parseInt.\n var nLen = this.normals.length;\n ia = this.parseNormalIndex(na, nLen);\n ib = na === nb ? ia : this.parseNormalIndex(nb, nLen);\n ic = na === nc ? ia : this.parseNormalIndex(nc, nLen);\n this.addNormal(ia, ib, ic);\n }\n if (this.colors.length > 0) {\n this.addColor(ia, ib, ic);\n }\n },\n addPointGeometry: function (vertices) {\n this.object.geometry.type = 'Points';\n var vLen = this.vertices.length;\n for (var vi = 0, l = vertices.length; vi < l; vi++) {\n this.addVertexPoint(this.parseVertexIndex(vertices[vi], vLen));\n }\n },\n addLineGeometry: function (vertices, uvs) {\n this.object.geometry.type = 'Line';\n var vLen = this.vertices.length;\n var uvLen = this.uvs.length;\n for (var vi = 0, l = vertices.length; vi < l; vi++) {\n this.addVertexLine(this.parseVertexIndex(vertices[vi], vLen));\n }\n for (var uvi = 0, l = uvs.length; uvi < l; uvi++) {\n this.addUVLine(this.parseUVIndex(uvs[uvi], uvLen));\n }\n }\n };\n state.startObject('', false);\n return state;\n }\n //\n function OBJLoader(manager) {\n this.manager = (manager !== undefined) ? manager : THREE.DefaultLoadingManager;\n this.materials = null;\n }\n OBJLoader.prototype = {\n constructor: OBJLoader,\n load: function (url, onLoad, onProgress, onError) {\n var scope = this;\n var loader = new THREE.FileLoader(scope.manager);\n loader.setPath(this.path);\n loader.load(url, function (text) {\n onLoad(scope.parse(text));\n }, onProgress, onError);\n },\n setPath: function (value) {\n this.path = value;\n },\n setMaterials: function (materials) {\n this.materials = materials;\n return this;\n },\n parse: function (text) {\n console.time('OBJLoader');\n var state = new ParserState();\n if (text.indexOf('\\r\\n') !== - 1) {\n // This is faster than String.split with regex that splits on both\n text = text.replace(/\\r\\n/g, '\\n');\n }\n if (text.indexOf('\\\\\\n') !== - 1) {\n // join lines separated by a line continuation character (\\)\n text = text.replace(/\\\\\\n/g, '');\n }\n var lines = text.split('\\n');\n var line = '', lineFirstChar = '';\n var lineLength = 0;\n var result = [];\n // Faster to just trim left side of the line. Use if available.\n var trimLeft = (typeof ''.trimLeft === 'function');\n for (var i = 0, l = lines.length; i < l; i++) {\n line = lines[i];\n line = trimLeft ? line.trimLeft() : line.trim();\n lineLength = line.length;\n if (lineLength === 0) continue;\n lineFirstChar = line.charAt(0);\n // @todo invoke passed in handler if any\n if (lineFirstChar === '#') continue;\n if (lineFirstChar === 'v') {\n var data = line.split(/\\s+/);\n switch (data[0]) {\n case 'v':\n state.vertices.push(\n parseFloat(data[1]),\n parseFloat(data[2]),\n parseFloat(data[3])\n );\n if (data.length === 8) {\n state.colors.push(\n parseFloat(data[4]),\n parseFloat(data[5]),\n parseFloat(data[6])\n );\n }\n break;\n case 'vn':\n state.normals.push(\n parseFloat(data[1]),\n parseFloat(data[2]),\n parseFloat(data[3])\n );\n break;\n case 'vt':\n state.uvs.push(\n parseFloat(data[1]),\n parseFloat(data[2])\n );\n break;\n }\n } else if (lineFirstChar === 'f') {\n var lineData = line.substr(1).trim();\n var vertexData = lineData.split(/\\s+/);\n var faceVertices = [];\n // Parse the face vertex data into an easy to work with format\n for (var j = 0, jl = vertexData.length; j < jl; j++) {\n var vertex = vertexData[j];\n if (vertex.length > 0) {\n var vertexParts = vertex.split('/');\n faceVertices.push(vertexParts);\n }\n }\n // Draw an edge between the first vertex and all subsequent vertices to form an n-gon\n var v1 = faceVertices[0];\n for (var j = 1, jl = faceVertices.length - 1; j < jl; j++) {\n var v2 = faceVertices[j];\n var v3 = faceVertices[j + 1];\n state.addFace(\n v1[0], v2[0], v3[0],\n v1[1], v2[1], v3[1],\n v1[2], v2[2], v3[2]\n );\n }\n } else if (lineFirstChar === 'l') {\n var lineParts = line.substring(1).trim().split(\" \");\n var lineVertices = [], lineUVs = [];\n if (line.indexOf(\"/\") === - 1) {\n lineVertices = lineParts;\n } else {\n for (var li = 0, llen = lineParts.length; li < llen; li++) {\n var parts = lineParts[li].split(\"/\");\n if (parts[0] !== \"\") lineVertices.push(parts[0]);\n if (parts[1] !== \"\") lineUVs.push(parts[1]);\n }\n }\n state.addLineGeometry(lineVertices, lineUVs);\n } else if (lineFirstChar === 'p') {\n var lineData = line.substr(1).trim();\n var pointData = lineData.split(\" \");\n state.addPointGeometry(pointData);\n } else if ((result = object_pattern.exec(line)) !== null) {\n // o object_name\n // or\n // g group_name\n // WORKAROUND: https://bugs.chromium.org/p/v8/issues/detail?id=2869\n // var name = result[ 0 ].substr( 1 ).trim();\n var name = (\" \" + result[0].substr(1).trim()).substr(1);\n state.startObject(name);\n } else if (material_use_pattern.test(line)) {\n // material\n state.object.startMaterial(line.substring(7).trim(), state.materialLibraries);\n } else if (material_library_pattern.test(line)) {\n // mtl file\n state.materialLibraries.push(line.substring(7).trim());\n } else if (lineFirstChar === 's') {\n result = line.split(' ');\n // smooth shading\n // @todo Handle files that have varying smooth values for a set of faces inside one geometry,\n // but does not define a usemtl for each face set.\n // This should be detected and a dummy material created (later MultiMaterial and geometry groups).\n // This requires some care to not create extra material on each smooth value for \"normal\" obj files.\n // where explicit usemtl defines geometry groups.\n // Example asset: examples/models/obj/cerberus/Cerberus.obj\n\t\t\t\t\t/*\n\t\t\t\t\t * http://paulbourke.net/dataformats/obj/\n\t\t\t\t\t * or\n\t\t\t\t\t * http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf\n\t\t\t\t\t *\n\t\t\t\t\t * From chapter \"Grouping\" Syntax explanation \"s group_number\":\n\t\t\t\t\t * \"group_number is the smoothing group number. To turn off smoothing groups, use a value of 0 or off.\n\t\t\t\t\t * Polygonal elements use group numbers to put elements in different smoothing groups. For free-form\n\t\t\t\t\t * surfaces, smoothing groups are either turned on or off; there is no difference between values greater\n\t\t\t\t\t * than 0.\"\n\t\t\t\t\t */\n if (result.length > 1) {\n var value = result[1].trim().toLowerCase();\n state.object.smooth = (value !== '0' && value !== 'off');\n } else {\n // ZBrush can produce \"s\" lines #11707\n state.object.smooth = true;\n }\n var material = state.object.currentMaterial();\n if (material) material.smooth = state.object.smooth;\n } else {\n // Handle null terminated files without exception\n if (line === '\\0') continue;\n throw new Error('THREE.OBJLoader: Unexpected line: \"' + line + '\"');\n }\n }\n state.finalize();\n var container = new THREE.Group();\n container.materialLibraries = [].concat(state.materialLibraries);\n for (var i = 0, l = state.objects.length; i < l; i++) {\n var object = state.objects[i];\n var geometry = object.geometry;\n var materials = object.materials;\n var isLine = (geometry.type === 'Line');\n var isPoints = (geometry.type === 'Points');\n var hasVertexColors = false;\n // Skip o/g line declarations that did not follow with any faces\n if (geometry.vertices.length === 0) continue;\n var buffergeometry = new THREE.BufferGeometry();\n buffergeometry.addAttribute('position', new THREE.Float32BufferAttribute(geometry.vertices, 3));\n if (geometry.normals.length > 0) {\n buffergeometry.addAttribute('normal', new THREE.Float32BufferAttribute(geometry.normals, 3));\n } else {\n buffergeometry.computeVertexNormals();\n }\n if (geometry.colors.length > 0) {\n hasVertexColors = true;\n buffergeometry.addAttribute('color', new THREE.Float32BufferAttribute(geometry.colors, 3));\n }\n if (geometry.uvs.length > 0) {\n buffergeometry.addAttribute('uv', new THREE.Float32BufferAttribute(geometry.uvs, 2));\n }\n // Create materials\n var createdMaterials = [];\n for (var mi = 0, miLen = materials.length; mi < miLen; mi++) {\n var sourceMaterial = materials[mi];\n var material = undefined;\n if (this.materials !== null) {\n material = this.materials.create(sourceMaterial.name);\n // mtl etc. loaders probably can't create line materials correctly, copy properties to a line material.\n if (isLine && material && !(material instanceof THREE.LineBasicMaterial)) {\n var materialLine = new THREE.LineBasicMaterial();\n materialLine.copy(material);\n materialLine.lights = false; // TOFIX\n material = materialLine;\n } else if (isPoints && material && !(material instanceof THREE.PointsMaterial)) {\n var materialPoints = new THREE.PointsMaterial({ size: 10, sizeAttenuation: false });\n materialLine.copy(material);\n material = materialPoints;\n }\n }\n if (!material) {\n if (isLine) {\n material = new THREE.LineBasicMaterial();\n } else if (isPoints) {\n material = new THREE.PointsMaterial({ size: 1, sizeAttenuation: false });\n } else {\n material = new THREE.MeshPhongMaterial();\n }\n material.name = sourceMaterial.name;\n }\n material.flatShading = sourceMaterial.smooth ? false : true;\n material.vertexColors = hasVertexColors ? THREE.VertexColors : THREE.NoColors;\n createdMaterials.push(material);\n }\n // Create mesh\n var mesh;\n if (createdMaterials.length > 1) {\n for (var mi = 0, miLen = materials.length; mi < miLen; mi++) {\n var sourceMaterial = materials[mi];\n buffergeometry.addGroup(sourceMaterial.groupStart, sourceMaterial.groupCount, mi);\n }\n if (isLine) {\n mesh = new THREE.LineSegments(buffergeometry, createdMaterials);\n } else if (isPoints) {\n mesh = new THREE.Points(buffergeometry, createdMaterials);\n } else {\n mesh = new THREE.Mesh(buffergeometry, createdMaterials);\n }\n } else {\n if (isLine) {\n mesh = new THREE.LineSegments(buffergeometry, createdMaterials[0]);\n } else if (isPoints) {\n mesh = new THREE.Points(buffergeometry, createdMaterials[0]);\n } else {\n mesh = new THREE.Mesh(buffergeometry, createdMaterials[0]);\n }\n }\n mesh.name = object.name;\n container.add(mesh);\n }\n console.timeEnd('OBJLoader');\n return container;\n }\n };\n return OBJLoader;\n})();\nmodule.exports = OBJLoader;\n","/**\n * Loads a Wavefront .mtl file specifying materials\n *\n * @author angelxuanchang\n */\n\nvar THREE = window.THREE || require('three');\nlet MTLLoader;\n\nMTLLoader = function( manager ) {\n\n\tthis.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;\n\n};\n\nObject.assign( MTLLoader.prototype, THREE.EventDispatcher.prototype, {\n\n\t/**\n\t * Loads and parses a MTL asset from a URL.\n\t *\n\t * @param {String} url - URL to the MTL file.\n\t * @param {Function} [onLoad] - Callback invoked with the loaded object.\n\t * @param {Function} [onProgress] - Callback for download progress.\n\t * @param {Function} [onError] - Callback for download errors.\n\t *\n\t * @see setPath setTexturePath\n\t *\n\t * @note In order for relative texture references to resolve correctly\n\t * you must call setPath and/or setTexturePath explicitly prior to load.\n\t */\n\tload: function ( url, onLoad, onProgress, onError ) {\n\n\t\tvar scope = this;\n\n\t\tvar loader = new THREE.FileLoader( this.manager );\n\t\tloader.setPath( this.path );\n\t\tloader.load( url, function ( text ) {\n\n\t\t\tonLoad( scope.parse( text ) );\n\n\t\t}, onProgress, onError );\n\n\t},\n\n\t/**\n\t * Set base path for resolving references.\n\t * If set this path will be prepended to each loaded and found reference.\n\t *\n\t * @see setTexturePath\n\t * @param {String} path\n\t *\n\t * @example\n\t * mtlLoader.setPath( 'assets/obj/' );\n\t * mtlLoader.load( 'my.mtl', ... );\n\t */\n\tsetPath: function ( path ) {\n\n\t\tthis.path = path;\n\n\t},\n\n\t/**\n\t * Set base path for resolving texture references.\n\t * If set this path will be prepended found texture reference.\n\t * If not set and setPath is, it will be used as texture base path.\n\t *\n\t * @see setPath\n\t * @param {String} path\n\t *\n\t * @example\n\t * mtlLoader.setPath( 'assets/obj/' );\n\t * mtlLoader.setTexturePath( 'assets/textures/' );\n\t * mtlLoader.load( 'my.mtl', ... );\n\t */\n\tsetTexturePath: function( path ) {\n\n\t\tthis.texturePath = path;\n\n\t},\n\n\tsetBaseUrl: function( path ) {\n\n\t\tconsole.warn( 'THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead.' );\n\n\t\tthis.setTexturePath( path );\n\n\t},\n\n\tsetCrossOrigin: function ( value ) {\n\n\t\tthis.crossOrigin = value;\n\n\t},\n\n\tsetMaterialOptions: function ( value ) {\n\n\t\tthis.materialOptions = value;\n\n\t},\n\n\t/**\n\t * Parses a MTL file.\n\t *\n\t * @param {String} text - Content of MTL file\n\t * @return {THREE.MTLLoader.MaterialCreator}\n\t *\n\t * @see setPath setTexturePath\n\t *\n\t * @note In order for relative texture references to resolve correctly\n\t * you must call setPath and/or setTexturePath explicitly prior to parse.\n\t */\n\tparse: function ( text ) {\n\n\t\tvar lines = text.split( '\\n' );\n\t\tvar info = {};\n\t\tvar delimiter_pattern = /\\s+/;\n\t\tvar materialsInfo = {};\n\n\t\tfor ( var i = 0; i < lines.length; i ++ ) {\n\n\t\t\tvar line = lines[ i ];\n\t\t\tline = line.trim();\n\n\t\t\tif ( line.length === 0 || line.charAt( 0 ) === '#' ) {\n\n\t\t\t\t// Blank line or comment ignore\n\t\t\t\tcontinue;\n\n\t\t\t}\n\n\t\t\tvar pos = line.indexOf( ' ' );\n\n\t\t\tvar key = ( pos >= 0 ) ? line.substring( 0, pos ) : line;\n\t\t\tkey = key.toLowerCase();\n\n\t\t\tvar value = ( pos >= 0 ) ? line.substring( pos + 1 ) : '';\n\t\t\tvalue = value.trim();\n\n\t\t\tif ( key === 'newmtl' ) {\n\n\t\t\t\t// New material\n\n\t\t\t\tinfo = { name: value };\n\t\t\t\tmaterialsInfo[ value ] = info;\n\n\t\t\t} else if ( info ) {\n\n\t\t\t\tif ( key === 'ka' || key === 'kd' || key === 'ks' ) {\n\n\t\t\t\t\tvar ss = value.split( delimiter_pattern, 3 );\n\t\t\t\t\tinfo[ key ] = [ parseFloat( ss[ 0 ] ), parseFloat( ss[ 1 ] ), parseFloat( ss[ 2 ] ) ];\n\n\t\t\t\t} else {\n\n\t\t\t\t\tinfo[ key ] = value;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tvar materialCreator = new MTLLoader.MaterialCreator( this.texturePath || this.path, this.materialOptions );\n\t\tmaterialCreator.setCrossOrigin( this.crossOrigin );\n\t\tmaterialCreator.setManager( this.manager );\n\t\tmaterialCreator.setMaterials( materialsInfo );\n\t\treturn materialCreator;\n\n\t}\n\n} );\n\n/**\n * Create a new THREE-MTLLoader.MaterialCreator\n * @param baseUrl - Url relative to which textures are loaded\n * @param options - Set of options on how to construct the materials\n * side: Which side to apply the material\n * THREE.FrontSide (default), THREE.BackSide, THREE.DoubleSide\n * wrap: What type of wrapping to apply for textures\n * THREE.RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping\n * normalizeRGB: RGBs need to be normalized to 0-1 from 0-255\n * Default: false, assumed to be already normalized\n * ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's\n * Default: false\n * @constructor\n */\n\nMTLLoader.MaterialCreator = function( baseUrl, options ) {\n\n\tthis.baseUrl = baseUrl || '';\n\tthis.options = options;\n\tthis.materialsInfo = {};\n\tthis.materials = {};\n\tthis.materialsArray = [];\n\tthis.nameLookup = {};\n\n\tthis.side = ( this.options && this.options.side ) ? this.options.side : THREE.FrontSide;\n\tthis.wrap = ( this.options && this.options.wrap ) ? this.options.wrap : THREE.RepeatWrapping;\n\n};\n\nMTLLoader.MaterialCreator.prototype = {\n\n\tconstructor: MTLLoader.MaterialCreator,\n\n\tsetCrossOrigin: function ( value ) {\n\n\t\tthis.crossOrigin = value;\n\n\t},\n\n\tsetManager: function ( value ) {\n\n\t\tthis.manager = value;\n\n\t},\n\n\tsetMaterials: function( materialsInfo ) {\n\n\t\tthis.materialsInfo = this.convert( materialsInfo );\n\t\tthis.materials = {};\n\t\tthis.materialsArray = [];\n\t\tthis.nameLookup = {};\n\n\t},\n\n\tconvert: function( materialsInfo ) {\n\n\t\tif ( ! this.options ) return materialsInfo;\n\n\t\tvar converted = {};\n\n\t\tfor ( var mn in materialsInfo ) {\n\n\t\t\t// Convert materials info into normalized form based on options\n\n\t\t\tvar mat = materialsInfo[ mn ];\n\n\t\t\tvar covmat = {};\n\n\t\t\tconverted[ mn ] = covmat;\n\n\t\t\tfor ( var prop in mat ) {\n\n\t\t\t\tvar save = true;\n\t\t\t\tvar value = mat[ prop ];\n\t\t\t\tvar lprop = prop.toLowerCase();\n\n\t\t\t\tswitch ( lprop ) {\n\n\t\t\t\t\tcase 'kd':\n\t\t\t\t\tcase 'ka':\n\t\t\t\t\tcase 'ks':\n\n\t\t\t\t\t\t// Diffuse color (color under white light) using RGB values\n\n\t\t\t\t\t\tif ( this.options && this.options.normalizeRGB ) {\n\n\t\t\t\t\t\t\tvalue = [ value[ 0 ] / 255, value[ 1 ] / 255, value[ 2 ] / 255 ];\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( this.options && this.options.ignoreZeroRGBs ) {\n\n\t\t\t\t\t\t\tif ( value[ 0 ] === 0 && value[ 1 ] === 0 && value[ 2 ] === 0 ) {\n\n\t\t\t\t\t\t\t\t// ignore\n\n\t\t\t\t\t\t\t\tsave = false;\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ( save ) {\n\n\t\t\t\t\tcovmat[ lprop ] = value;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn converted;\n\n\t},\n\n\tpreload: function () {\n\n\t\tfor ( var mn in this.materialsInfo ) {\n\n\t\t\tthis.create( mn );\n\n\t\t}\n\n\t},\n\n\tgetIndex: function( materialName ) {\n\n\t\treturn this.nameLookup[ materialName ];\n\n\t},\n\n\tgetAsArray: function() {\n\n\t\tvar index = 0;\n\n\t\tfor ( var mn in this.materialsInfo ) {\n\n\t\t\tthis.materialsArray[ index ] = this.create( mn );\n\t\t\tthis.nameLookup[ mn ] = index;\n\t\t\tindex ++;\n\n\t\t}\n\n\t\treturn this.materialsArray;\n\n\t},\n\n\tcreate: function ( materialName ) {\n\n\t\tif ( this.materials[ materialName ] === undefined ) {\n\n\t\t\tthis.createMaterial_( materialName );\n\n\t\t}\n\n\t\treturn this.materials[ materialName ];\n\n\t},\n\n\tcreateMaterial_: function ( materialName ) {\n\n\t\t// Create material\n\n\t\tvar mat = this.materialsInfo[ materialName ];\n\t\tvar params = {\n\n\t\t\tname: materialName,\n\t\t\tside: this.side\n\n\t\t};\n\n\t\tvar resolveURL = function ( baseUrl, url ) {\n\n\t\t\tif ( typeof url !== 'string' || url === '' )\n\t\t\t\treturn '';\n\n\t\t\t// Absolute URL\n\t\t\tif ( /^https?:\\/\\//i.test( url ) ) {\n\t\t\t\treturn url;\n\t\t\t}\n\n\t\t\treturn baseUrl + url;\n\t\t};\n\n\t\tfor ( var prop in mat ) {\n\n\t\t\tvar value = mat[ prop ];\n\n\t\t\tif ( value === '' ) continue;\n\n\t\t\tswitch ( prop.toLowerCase() ) {\n\n\t\t\t\t// Ns is material specular exponent\n\n\t\t\t\tcase 'kd':\n\n\t\t\t\t\t// Diffuse color (color under white light) using RGB values\n\n\t\t\t\t\tparams.color = new THREE.Color().fromArray( value );\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ks':\n\n\t\t\t\t\t// Specular color (color when light is reflected from shiny surface) using RGB values\n\t\t\t\t\tparams.specular = new THREE.Color().fromArray( value );\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'map_kd':\n\n\t\t\t\t\t// Diffuse texture map\n\n\t\t\t\t\tif ( params.map ) break; // Keep the first encountered texture\n\n\t\t\t\t\tvar texParams = this.getTextureParams( value, params );\n\n\t\t\t\t\tparams.map = this.loadTexture( resolveURL( this.baseUrl, texParams.url ) );\n\t\t\t\t\tparams.map.repeat.copy( texParams.scale );\n\t\t\t\t\tparams.map.offset.copy( texParams.offset );\n\n\t\t\t\t\tparams.map.wrapS = this.wrap;\n\t\t\t\t\tparams.map.wrapT = this.wrap;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'map_ks':\n\n\t\t\t\t\t// Specular map\n\n\t\t\t\t\tif ( params.specularMap ) break; // Keep the first encountered texture\n\n\t\t\t\t\tparams.specularMap = this.loadTexture( resolveURL( this.baseUrl, value ) );\n\t\t\t\t\tparams.specularMap.wrapS = this.wrap;\n\t\t\t\t\tparams.specularMap.wrapT = this.wrap;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ns':\n\n\t\t\t\t\t// The specular exponent (defines the focus of the specular highlight)\n\t\t\t\t\t// A high exponent results in a tight, concentrated highlight. Ns values normally range from 0 to 1000.\n\n\t\t\t\t\tparams.shininess = parseFloat( value );\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'd':\n\n\t\t\t\t\tif ( value < 1 ) {\n\n\t\t\t\t\t\tparams.opacity = value;\n\t\t\t\t\t\tparams.transparent = true;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'Tr':\n\n\t\t\t\t\tif ( value > 0 ) {\n\n\t\t\t\t\t\tparams.opacity = 1 - value;\n\t\t\t\t\t\tparams.transparent = true;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'map_bump':\n\t\t\t\tcase 'bump':\n\n\t\t\t\t\t// Bump texture map\n\n\t\t\t\t\tif ( params.bumpMap ) break; // Keep the first encountered texture\n\n\t\t\t\t\tvar texParams = this.getTextureParams( value, params );\n\n\t\t\t\t\tparams.bumpMap = this.loadTexture( resolveURL( this.baseUrl, texParams.url ) );\n\t\t\t\t\tparams.bumpMap.repeat.copy( texParams.scale );\n\t\t\t\t\tparams.bumpMap.offset.copy( texParams.offset );\n\n\t\t\t\t\tparams.bumpMap.wrapS = this.wrap;\n\t\t\t\t\tparams.bumpMap.wrapT = this.wrap;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t}\n\n\t\tthis.materials[ materialName ] = new THREE.MeshPhongMaterial( params );\n\t\treturn this.materials[ materialName ];\n\t},\n\n\tgetTextureParams: function( value, matParams ) {\n\n\t\tvar texParams = {\n\n\t\t\tscale: new THREE.Vector2( 1, 1 ),\n\t\t\toffset: new THREE.Vector2( 0, 0 ),\n\n\t\t };\n\n\t\tvar items = value.split(/\\s+/);\n\t\tvar pos;\n\n\t\tpos = items.indexOf('-bm');\n\t\tif (pos >= 0) {\n\n\t\t\tmatParams.bumpScale = parseFloat( items[pos+1] );\n\t\t\titems.splice( pos, 2 );\n\n\t\t}\n\n\t\tpos = items.indexOf('-s');\n\t\tif (pos >= 0) {\n\n\t\t\ttexParams.scale.set( parseFloat( items[pos+1] ), parseFloat( items[pos+2] ) );\n\t\t\titems.splice( pos, 4 ); // we expect 3 parameters here!\n\n\t\t}\n\n\t\tpos = items.indexOf('-o');\n\t\tif (pos >= 0) {\n\n\t\t\ttexParams.offset.set( parseFloat( items[pos+1] ), parseFloat( items[pos+2] ) );\n\t\t\titems.splice( pos, 4 ); // we expect 3 parameters here!\n\n\t\t}\n\n\t\ttexParams.url = items.join(' ').trim();\n\t\treturn texParams;\n\n\t},\n\n\tloadTexture: function ( url, mapping, onLoad, onProgress, onError ) {\n\n\t\tvar texture;\n\t\tvar loader = THREE.Loader.Handlers.get( url );\n\t\tvar manager = ( this.manager !== undefined ) ? this.manager : THREE.DefaultLoadingManager;\n\n\t\tif ( loader === null ) {\n\n\t\t\tloader = new THREE.TextureLoader( manager );\n\n\t\t}\n\n\t\tif ( loader.setCrossOrigin ) loader.setCrossOrigin( this.crossOrigin );\n\t\ttexture = loader.load( url, onLoad, onProgress, onError );\n\n\t\tif ( mapping !== undefined ) texture.mapping = mapping;\n\n\t\treturn texture;\n\n\t}\n\n};\n\nmodule.exports = MTLLoader;\n","import React from 'react';\nimport * as Three from 'three';\nimport {loadObjWithMaterial} from '../../utils/load-obj';\nimport path from 'path';\n\nlet cached3DDoor = null;\n\nconst STYLE_HOLE_BASE = {stroke: '#000', strokeWidth: '3px', fill: '#000'};\nconst STYLE_HOLE_SELECTED = {stroke: '#0096fd', strokeWidth: '4px', fill: '#0096fd', cursor: 'move'};\nconst STYLE_ARC_BASE = {stroke: '#000', strokeWidth: '3px', strokeDasharray: '5,5', fill: 'none'};\nconst STYLE_ARC_SELECTED = {stroke: '#0096fd', strokeWidth: '4px', strokeDasharray: '5,5', fill: 'none', cursor: 'move'};\nconst EPSILON = 3;\n\nexport default {\n name: 'door',\n prototype: 'holes',\n\n info: {\n title: 'door',\n tag: ['door'],\n description: 'Wooden door',\n image: require('./door.png')\n },\n\n properties: {\n width: {\n label: 'Width',\n type: 'length-measure',\n defaultValue: {\n length: 80\n }\n },\n height: {\n label: 'Height',\n type: 'length-measure',\n defaultValue: {\n length: 215\n }\n },\n altitude: {\n label: 'Altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0\n }\n },\n thickness: {\n label: 'Thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30\n }\n },\n flip_orizzontal: {\n label: 'flip orizzontale',\n type: 'checkbox',\n defaultValue: false,\n values: {\n 'none': false,\n 'yes': true\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n let flip = element.properties.get('flip_orizzontal');\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -EPSILON} L${holeWidth} ${-EPSILON} L${holeWidth} ${EPSILON} L${0} ${EPSILON} z`;\n let arcPath = `M${0},${0} A${holeWidth},${holeWidth} 0 0,1 ${holeWidth},${holeWidth}`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\n let length = element.properties.get('width').get('length');\n\n if(flip == false) {\n return (\n \n \n \n \n \n )\n }\n else{\n return (\n \n \n \n \n \n )\n }\n },\n\n render3D: function (element, layer, scene) {\n let onLoadItem = (object) => {\n let boundingBox = new Three.Box3().setFromObject(object);\n\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\n\n if (element.selected) {\n let box = new Three.BoxHelper(object, 0x99c3fb);\n box.material.linewidth = 2;\n box.material.depthTest = false;\n box.renderOrder = 1000;\n object.add(box);\n }\n\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n\n object.scale.set(width / initialWidth, height / initialHeight,\n thickness / initialThickness);\n\n return object;\n };\n\n if(cached3DDoor) {\n return Promise.resolve(onLoadItem(cached3DDoor.clone()));\n }\n\n let mtl = require('./door.mtl');\n let obj = require('./door.obj');\n let img = require('./texture.jpg');\n\n return loadObjWithMaterial(mtl, obj, path.dirname(img) + '/')\n .then(object => {\n cached3DDoor = object;\n return onLoadItem(cached3DDoor.clone())\n })\n\n }\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n * @return {null}\n */\nexport default function If({condition, style, children}) {\n return condition ? ( Array.isArray(children) ?
{children}
: children ) : null;\n}\n\nIf.propTypes = {\n condition: PropTypes.bool.isRequired,\n style: PropTypes.object\n};\n","module.exports = __webpack_public_path__ + \"catalog/holes/door-double/door_double.png\";","import React from 'react';\nimport * as Three from 'three';\n\nconst black = new Three.MeshLambertMaterial({color: 0x000000});\nconst metalBlue = new Three.MeshLambertMaterial({color: 0xB7CEEC});\nconst grey = new Three.MeshLambertMaterial({color: 0xD2B06A});\nconst darkGrey = new Three.MeshLambertMaterial({color:0xFFEFCE});\n\nconst boxMaterials = [grey, grey, grey, grey,darkGrey,darkGrey];\n\nfunction makeDoor(width,height,thickness){\n\n let door_double = new Three.Mesh();\n\n let LongDoorGeometry = new Three.BoxGeometry(.75*width,height,thickness);\n let longDoor = new Three.Mesh(LongDoorGeometry,boxMaterials);\n longDoor.position.x -= width*.25 ;\n door_double.add(longDoor);\n\n let ShortDoorGeometry = new Three.BoxGeometry(.25*width,height,thickness);\n let shortDoor = new Three.Mesh(ShortDoorGeometry,boxMaterials);\n shortDoor.position.x += width*0.25;\n shortDoor.position.z += thickness/10;\n door_double.add(shortDoor);\n\n let handle = makeHandle(width);\n handle.position.set(width/20,height/40,thickness/2+thickness/10);\n handle.rotation.z += Math.PI;\n handle.rotation.x += Math.PI/2;\n door_double.add(handle);\n\n let handleBase = makeHandleBase();\n handleBase.position.set(width/20,0,thickness/2);\n handleBase.rotation.x = 0;\n door_double.add(handleBase);\n\n let handle2 = makeHandle(width);\n handle2.position.set(width/20,height/40,-thickness/2-thickness/10);\n handle2.rotation.z += Math.PI;\n handle2.rotation.x -= Math.PI/2;\n door_double.add(handle2);\n\n let handleBase2 = makeHandleBase();\n handleBase2.position.set(width/20,0,-thickness/2);\n handleBase2.rotation.x = 0;\n door_double.add(handleBase2);\n\n return door_double\n}\n\n\nfunction makeHandle(width) {\n\n let handle = new Three.Object3D();\n let geometry_p1 = new Three.CylinderGeometry(width/100, width/100, width/32.5, Math.round(32));\n let geometry_p2 = new Three.SphereGeometry(width/100, Math.round(32), Math.round(32));\n let geometry_p3 = new Three.CylinderGeometry(width/100, width/100, width/14.5, Math.round(32));\n let p1 = new Three.Mesh(geometry_p1, black);\n let p2 = new Three.Mesh(geometry_p2, black);\n let p3 = new Three.Mesh(geometry_p3, black);\n let p4 = new Three.Mesh(geometry_p2, black);\n p3.rotation.z = Math.PI / 2;\n p3.position.x = width/14.5 / 2;\n p2.position.y = -width/32.5 / 2;\n p4.position.y = -width/14.5 / 2;\n p3.add(p4);\n p2.add(p3);\n p1.add(p2);\n handle.add(p1);\n\n return handle;\n}\n\nfunction makeHandleBase() {\n\n let handleBase = new Three.Object3D();\n let geometryBase1 = new Three.BoxGeometry(7.6, 28, 2);\n let geometryBase2 = new Three.CylinderGeometry(3.6, 3.6, 2, Math.round(32));\n let lock = makeLock();\n let handleBase1 = new Three.Mesh(geometryBase1, black);\n let handleBase2 = new Three.Mesh(geometryBase2, black);\n lock.rotation.x = Math.PI / 2;\n lock.position.y = -3;\n handleBase2.rotation.x = Math.PI / 2;\n handleBase2.position.y = -3.3;\n handleBase2.scale.z = 1.5;\n handleBase1.add(lock);\n handleBase1.add(handleBase2);\n handleBase.add(handleBase1);\n\n return handleBase;\n}\n\nfunction makeLock() {\n\n let lock = new Three.Object3D();\n let LockGeometry1 = new Three.CylinderGeometry(1.5, 1.5, 4, Math.round(32));\n let lockGeometry2 = new Three.BoxGeometry(1.6, 4, 4);\n let lockGeometry3 = new Three.BoxGeometry(1.4, 4.06, 0.36);\n let lock_p1 = new Three.Mesh(LockGeometry1, metalBlue);\n let lock_p2 = new Three.Mesh(lockGeometry2, metalBlue);\n let lock_p3 = new Three.Mesh(lockGeometry3, grey);\n lock_p2.position.z = 1;\n lock_p1.add(lock_p2);\n lock_p1.add(lock_p3);\n lock.add(lock_p1);\n\n return lock;\n}\n\nexport default {\n name: 'double door',\n prototype: 'holes',\n\n info: {\n tag: ['door'],\n title: 'double door',\n description: 'iron door',\n image: require('./door_double.png')\n },\n\n properties: {\n width: {\n label: 'width',\n type: 'length-measure',\n defaultValue: {\n length: 200,\n unit: 'cm'\n }\n },\n height: {\n label: 'height',\n type: 'length-measure',\n defaultValue: {\n length: 215,\n unit: 'cm'\n }\n },\n thickness: {\n label: 'thickness',\n type: 'length-measure',\n defaultValue: {\n length: 30,\n unit: 'cm'\n }\n },\n altitude: {\n label:'altitude',\n type: 'length-measure',\n defaultValue: {\n length: 0,\n unit: 'cm'\n }\n },\n flip_horizontal: {\n label: 'flip',\n type: 'checkbox',\n defaultValue: false,\n values: {\n 'none': false,\n 'yes': true\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n\n const STYLE_HOLE_BASE = {stroke: '#ff0000', strokeWidth: '3px', fill: '#ff0000'};\n const STYLE_HOLE_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', fill: '#ff0000', cursor: 'move'};\n const STYLE_ARC_BASE = {stroke: '#ff0000', strokeWidth: '3px', strokeDasharray: '5,5', fill: 'none'};\n const STYLE_ARC_SELECTED = {stroke: '#ff0000', strokeWidth: '4px', strokeDasharray: '5,5', fill: 'none', cursor: 'move'};\n\n let epsilon = 3;\n let flip = element.properties.get('flip_horizontal');\n let holeWidth = element.properties.get('width').get('length');\n let holePath = `M${0} ${ -epsilon} L${holeWidth} ${-epsilon} L${holeWidth} ${epsilon} L${0} ${epsilon} z`;\n let arcPath = `M${0},${0} A${holeWidth/4},${holeWidth/4} 0 0,1 ${holeWidth/4},${holeWidth/4}`;\n let arcPath2 =`M${0},${0} A${holeWidth/2+holeWidth/4},${holeWidth/2+holeWidth/4} 0 0,0 ${holeWidth/2+holeWidth/4},${holeWidth/2+holeWidth/4}`;\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\n let length = element.properties.get('width').get('length');\n\n\n if(flip){\n return (\n \n \n \n \n \n \n \n )\n }\n else {\n return (\n \n \n \n \n \n \n \n )\n }\n },\n\n render3D: function (element, layer, scene) {\n\n let flip = element.properties.get('flip_horizontal');\n let width = element.properties.get('width').get('length');\n let height = element.properties.get('height').get('length');\n let thickness = element.properties.get('thickness').get('length');\n let newAltitude = element.properties.get('altitude').get('length');\n\n let door_double = new Three.Object3D();\n door_double.add(makeDoor(width,height,thickness).clone(width,height,thickness));\n\n let valuePosition = new Three.Box3().setFromObject(door_double);\n\n let deltaX = Math.abs(valuePosition.max.x - valuePosition.min.x);\n let deltaY = Math.abs(valuePosition.max.y - valuePosition.min.y);\n let deltaZ = Math.abs(valuePosition.max.z - valuePosition.min.z);\n\n if (element.selected) {\n let bbox = new Three.BoxHelper(door_double, 0x99c3fb);\n bbox.material.linewidth = 5;\n bbox.renderOrder = 1000;\n bbox.material.depthTest = false;\n door_double.add(bbox);\n }\n\n if(flip) {\n door_double.rotation.y += Math.PI;\n door_double.position.x -= width/4;\n }\n\n door_double.position.y += newAltitude;\n door_double.position.x += width/8;\n door_double.scale.set( width / deltaX, height / deltaY,thickness / deltaZ);\n\n return Promise.resolve(door_double);\n\n }\n};\n\n","module.exports = __webpack_public_path__ + \"catalog/lines/wall/textures/painted-normal.jpg\";","module.exports = __webpack_public_path__ + \"catalog/lines/wall/textures/painted.jpg\";","module.exports = __webpack_public_path__ + \"catalog/lines/wall/textures/bricks-normal.jpg\";","module.exports = __webpack_public_path__ + \"catalog/lines/wall/textures/bricks.jpg\";","module.exports = __webpack_public_path__ + \"catalog/lines/wall/wall.png\";","import {ElementsFactories} from 'react-planner';\n\nconst info = {\n title: 'wall',\n tag: ['wall'],\n description: 'Wall with bricks or painted',\n image: require('./wall.png'),\n visibility: {\n catalog: true,\n layerElementsVisible: true\n }\n};\n\nconst textures = {\n bricks: {\n name: 'Bricks',\n uri: require('./textures/bricks.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n normal: {\n uri: require('./textures/bricks-normal.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n normalScaleX: 0.8,\n normalScaleY: 0.8\n }\n },\n painted: {\n name:'Painted',\n uri: require('./textures/painted.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n normal: {\n uri: require('./textures/painted-normal.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n normalScaleX: 0.4,\n normalScaleY: 0.4\n }\n },\n};\n\nexport default ElementsFactories.WallFactory('wall', info, textures);\n\n","module.exports = __webpack_public_path__ + \"catalog/areas/area/textures/grass.jpg\";","module.exports = __webpack_public_path__ + \"catalog/areas/area/textures/strand-porcelain.jpg\";","/** @description Determines the distance between two points\n * @param {number} x0 Vertex 0 x\n * @param {number} y0 Vertex 0 y\n * @param {number} x1 Vertex 1 x\n * @param {number} y1 Vertex 1 y\n * @return {number}\n */\nimport {toFixedFloat, fAbs} from './math.js';\nimport {EPSILON} from '../constants';\n\nexport function compareVertices(v0, v1) {\n return v0.x === v1.x ? v0.y - v1.y : v0.x - v1.x;\n}\n\nexport function minVertex(v0, v1) {\n return compareVertices(v0, v1) > 0 ? v1 : v0;\n}\n\nexport function maxVertex(v0, v1) {\n return compareVertices(v0, v1) > 0 ? v0 : v1;\n}\n\nexport function orderVertices(vertices) {\n return vertices.sort(compareVertices);\n}\n\nexport function pointsDistance(x0, y0, x1, y1) {\n let diff_x = x0 - x1;\n let diff_y = y0 - y1;\n\n return Math.sqrt((diff_x * diff_x) + (diff_y * diff_y));\n}\n\nexport function verticesDistance(v1, v2) {\n\n let {x: x0, y: y0} = v1;\n let {x: x1, y: y1} = v2;\n\n return pointsDistance(x0, y0, x1, y1);\n}\n\nexport function horizontalLine(y) {\n return {a: 0, b: 1, c: -y};\n}\n\nexport function verticalLine(x) {\n return {a: 1, b: 0, c: -x};\n}\n\nexport function linePassingThroughTwoPoints(x1, y1, x2, y2) {\n if (x1 === x2 && y1 == y2) throw new Error('Geometry error');\n if (x1 === x2) return verticalLine(x);\n if (y1 === y2) return horizontalLine(y1);\n\n return {\n a: y1 - y2,\n b: x2 - x1,\n c: y2 * x1 - x2 * y1\n };\n}\n\nexport function distancePointFromLine(a, b, c, x, y) {\n //https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line\n return fAbs(a * x + b * y + c) / Math.sqrt(a * a + b * b);\n}\n\nexport function closestPointFromLine(a, b, c, x, y) {\n //https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line\n let denom = a * a + b * b;\n return {\n x: (b * (b * x - a * y) - a * c) / denom,\n y: ((a * -b * x + a * y) - b * c) / denom,\n }\n}\n\n/** @description Get point of intersection between two lines using ax+by+c line's equation\n * @param {number} a x coefficent of first line\n * @param {number} b y coefficent of first line\n * @param {number} c costant of first line\n * @param {number} j x coefficent of second line\n * @param {number} k y coefficent of second line\n * @param {number} l costant of second line\n * @return {object} {x,y} point's coordinates\n */\nexport function twoLinesIntersection(a, b, c, j, k, l) {\n let angularCoefficientsDiff = (b * j - a * k);\n\n if (angularCoefficientsDiff === 0) return undefined; //no intersection\n\n let y = (a * l - c * j) / angularCoefficientsDiff;\n let x = (c * k - b * l) / angularCoefficientsDiff;\n return {x, y};\n}\n\nexport function twoLineSegmentsIntersection(p1, p2, p3, p4) {\n //https://github.com/psalaets/line-intersect/blob/master/lib/check-intersection.js\n\n let {x: x1, y: y1} = p1;\n let {x: x2, y: y2} = p2;\n let {x: x3, y: y3} = p3;\n let {x: x4, y: y4} = p4;\n\n let denom = ((y4 - y3) * (x2 - x1)) - ((x4 - x3) * (y2 - y1));\n let numA = ((x4 - x3) * (y1 - y3)) - ((y4 - y3) * (x1 - x3));\n let numB = ((x2 - x1) * (y1 - y3)) - ((y2 - y1) * (x1 - x3));\n\n if (fAbs(denom) <= EPSILON) {\n if (fAbs(numA) <= EPSILON && fAbs(numB) <= EPSILON) {\n\n let comparator = (pa, pb) => pa.x === pb.x ? pa.y - pb.y : pa.x - pb.x;\n let line0 = [p1, p2].sort(comparator);\n let line1 = [p3.toJS(), p4.toJS()].sort(comparator);\n\n let [lineSX, lineDX] = [line0, line1].sort((lineA, lineB) => comparator(lineA[0], lineB[0]));\n\n if (lineSX[1].x === lineDX[0].x) {\n return {type: (lineDX[0].y <= lineSX[1].y) ? 'colinear' : 'none'};\n } else {\n return {type: (lineDX[0].x <= lineSX[1].x) ? 'colinear' : 'none'};\n }\n }\n return {type: 'parallel'};\n }\n\n let uA = numA / denom;\n let uB = numB / denom;\n\n if (uA >= (0 - EPSILON) && uA <= (1 + EPSILON) && uB >= (0 - EPSILON) && uB <= (1 + EPSILON)) {\n let point = {\n x: x1 + (uA * (x2 - x1)),\n y: y1 + (uA * (y2 - y1))\n };\n return {type: 'intersecting', point};\n }\n\n return {type: 'none'};\n}\n\nexport function distancePointFromLineSegment(x1, y1, x2, y2, xp, yp) {\n //http://stackoverflow.com/a/6853926/1398836\n\n let A = xp - x1;\n let B = yp - y1;\n let C = x2 - x1;\n let D = y2 - y1;\n\n let dot = A * C + B * D;\n let len_sq = C * C + D * D;\n let param = -1;\n if (len_sq != 0) //in case of 0 length line\n param = dot / len_sq;\n\n let xx, yy;\n\n if (param < 0) {\n xx = x1;\n yy = y1;\n }\n else if (param > 1) {\n xx = x2;\n yy = y2;\n }\n else {\n xx = x1 + param * C;\n yy = y1 + param * D;\n }\n\n let dx = xp - xx;\n let dy = yp - yy;\n return Math.sqrt(dx * dx + dy * dy);\n}\n\n/**\n *\n * @param x1 {number} x for first vertex of the segment\n * @param y1 {number} y for first vertex of the segment\n * @param x2 {number} x for second vertex of the segment\n * @param y2 {number} y for second vertex of the segment\n * @param xp {number} x for point we want to verify\n * @param yp {number} y for point we want to verify\n * @param maxDistance {number} the epsilon value used for comparisons\n * @returns {boolean} true if the point lies on the line segment false otherwise\n */\nexport function isPointOnLineSegment(x1, y1, x2, y2, xp, yp, maxDistance = EPSILON) {\n return distancePointFromLineSegment(x1, y1, x2, y2, xp, yp) <= maxDistance;\n}\n\nexport function closestPointFromLineSegment(x1, y1, x2, y2, xp, yp) {\n if (x1 === x2) return {x: x1, y: yp};\n if (y1 === y2) return {x: xp, y: y1};\n\n let m = (y2 - y1) / (x2 - x1);\n let q = y1 - m * x1;\n\n let mi = -1 / m;\n let qi = yp - mi * xp;\n\n let x = (qi - q) / (m - mi);\n let y = (m * x + q);\n\n return {x, y};\n}\n\nexport function pointPositionOnLineSegment(x1, y1, x2, y2, xp, yp) {\n let length = pointsDistance(x1, y1, x2, y2);\n let distance = pointsDistance(x1, y1, xp, yp);\n\n let offset = distance / length;\n if (x1 > x2) offset = mapRange(offset, 0, 1, 1, 0);\n\n return offset;\n}\n\nexport function mapRange(value, low1, high1, low2, high2) {\n return low2 + (high2 - low2) * (value - low1) / (high1 - low1);\n}\n\nexport function angleBetweenTwoPointsAndOrigin(x1, y1, x2, y2) {\n return -(Math.atan2(y1 - y2, x2 - x1)) * 180 / Math.PI;\n}\n\nexport function angleBetweenTwoPoints(x1, y1, x2, y2) {\n return Math.atan2(y2 - y1, x2 - x1);\n}\n\nexport function absAngleBetweenTwoPoints(x1, y1, x2, y2) {\n return Math.atan2(Math.abs(y2 - y1), Math.abs(x2 - x1));\n}\n\nexport function samePoints({x: x1, y: y1}, {x: x2, y: y2}) {\n return fAbs(x1 - x2) <= EPSILON && fAbs(y1 - y2) <= EPSILON;\n}\n\n/** @description Extend line based on coordinates and new line length\n * @param {number} x1 Vertex 1 x\n * @param {number} y1 Vertex 1 y\n * @param {number} x2 Vertex 2 x\n * @param {number} y2 Vertex 2 y\n * @param {number} newDistance New line length\n * @return {object}\n */\nexport function extendLine(x1, y1, x2, y2, newDistance, precision = 6) {\n let rad = angleBetweenTwoPoints( x1, y1, x2, y2 );\n\n return {\n x: toFixedFloat(x1 + (Math.cos(rad) * newDistance), precision),\n y: toFixedFloat(y1 + (Math.sin(rad) * newDistance), precision),\n };\n}\n\nexport function roundVertex(vertex, precision = 6) {\n vertex.set('x', toFixedFloat(vertex.get('x'), precision));\n vertex.set('y', toFixedFloat(vertex.get('y'), precision));\n\n return vertex;\n}\n\n//https://github.com/MartyWallace/PolyK\nexport function ContainsPoint(polygon, pointX, pointY) {\n let n = polygon.length >> 1;\n\n let ax, lup;\n let ay = polygon[2 * n - 3] - pointY;\n let bx = polygon[2 * n - 2] - pointX;\n let by = polygon[2 * n - 1] - pointY;\n\n if (bx === 0 && by === 0) return false; // point on edge\n\n // let lup = by > ay;\n for (let ii = 0; ii < n; ii++) {\n ax = bx;\n ay = by;\n bx = polygon[2 * ii] - pointX;\n by = polygon[2 * ii + 1] - pointY;\n if (bx === 0 && by === 0) return false; // point on edge\n if (ay === by) continue;\n lup = by > ay;\n }\n\n let depth = 0;\n for (let i = 0; i < n; i++) {\n ax = bx;\n ay = by;\n bx = polygon[2 * i] - pointX;\n by = polygon[2 * i + 1] - pointY;\n if (ay < 0 && by < 0) continue; // both 'up' or both 'down'\n if (ay > 0 && by > 0) continue; // both 'up' or both 'down'\n if (ax < 0 && bx < 0) continue; // both points on the left\n\n if (ay === by && Math.min(ax, bx) < 0) return true;\n if (ay === by) continue;\n\n let lx = ax + (bx - ax) * (-ay) / (by - ay);\n if (lx === 0) return false; // point on edge\n if (lx > 0) depth++;\n if (ay === 0 && lup && by > ay) depth--; // hit vertex, both up\n if (ay === 0 && !lup && by < ay) depth--; // hit vertex, both down\n lup = by > ay;\n }\n return (depth & 1) === 1;\n}\n\nexport function cosWithThreshold(alpha, threshold) {\n let cos = Math.cos(alpha);\n return cos < threshold ? 0 : cos;\n}\n\nexport function sinWithThreshold(alpha, threshold) {\n let sin = Math.sin(alpha);\n return sin < threshold ? 0 : sin;\n}\n\nexport function midPoint( x1, y1, x2, y2 ) {\n return { x: (x1+x2)/2, y: (y1+y2)/2 };\n}\n\nexport function verticesMidPoint( verticesArray ) {\n let res = verticesArray.reduce( ( incr, vertex ) => { return { x: incr.x + vertex.x, y: incr.y + vertex.y } }, { x: 0, y: 0 });\n return { x: res.x / verticesArray.length, y: res.y / verticesArray.length };\n}\n\nexport function rotatePointAroundPoint( px, py, ox, oy, theta ) {\n\n let thetaRad = theta * Math.PI / 180;\n\n let cos = Math.cos( thetaRad );\n let sin = Math.sin( thetaRad );\n\n let deltaX = px - ox;\n let deltaY = py - oy;\n\n return {\n x: cos * deltaX - sin * deltaY + ox,\n y: sin * deltaX + cos * deltaY + oy\n };\n\n}\n","module.exports = __webpack_public_path__ + \"catalog/areas/area/textures/ceramic-tile.jpg\";","module.exports = __webpack_public_path__ + \"catalog/areas/area/textures/tile1.jpg\";","module.exports = __webpack_public_path__ + \"catalog/areas/area/textures/parquet.jpg\";","import {ElementsFactories} from 'react-planner';\n\nlet info = {\n title: 'area',\n tag: ['area'],\n description: 'Generic Room',\n image: ''\n};\n\nlet textures = {\n parquet: {\n name: 'Parquet',\n uri: require('./textures/parquet.jpg'),\n lengthRepeatScale: 0.004,\n heightRepeatScale: 0.004,\n },\n tile1: {\n name: 'Tile1',\n uri: require('./textures/tile1.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n },\n ceramic: {\n name:'Ceramic Tile',\n uri: require('./textures/ceramic-tile.jpg'),\n lengthRepeatScale: 0.02,\n heightRepeatScale: 0.02\n },\n strand_porcelain: {\n name:'Strand Porcelain Tile',\n uri: require('./textures/strand-porcelain.jpg'),\n lengthRepeatScale: 0.02,\n heightRepeatScale: 0.02\n },\n grass: {\n name: 'Grass',\n uri: require('./textures/grass.jpg'),\n lengthRepeatScale: 0.01,\n heightRepeatScale: 0.01,\n }\n};\n\nexport default ElementsFactories.AreaFactory('area', info, textures);\n","import {\n Shape,\n MeshPhongMaterial,\n ShapeGeometry,\n Box3,\n TextureLoader,\n BackSide,\n FrontSide,\n Object3D,\n Mesh,\n MeshBasicMaterial,\n RepeatWrapping,\n Vector2,\n DoubleSide\n} from 'three';\nimport * as SharedStyle from '../../shared-style';\n\n/**\n * Apply a texture to a wall face\n * @param material: The material of the face\n * @param texture: The texture to load\n * @param length: The lenght of the face\n * @param height: The height of the face\n */\nconst applyTexture = (material, texture, length, height) => {\n let loader = new TextureLoader();\n\n if (texture) {\n material.map = loader.load(texture.uri);\n material.needsUpdate = true;\n material.map.wrapS = RepeatWrapping;\n material.map.wrapT = RepeatWrapping;\n material.map.repeat.set(length * texture.lengthRepeatScale, height * texture.heightRepeatScale);\n\n if (texture.normal) {\n material.normalMap = loader.load(texture.normal.uri);\n material.normalScale = new Vector2(texture.normal.normalScaleX, texture.normal.normalScaleY);\n material.normalMap.wrapS = RepeatWrapping;\n material.normalMap.wrapT = RepeatWrapping;\n material.normalMap.repeat.set(length * texture.normal.lengthRepeatScale, height * texture.normal.heightRepeatScale);\n }\n }\n};\n\n/**\n * Function that assign UV coordinates to a geometry\n * @param geometry\n */\nconst assignUVs = (geometry) => {\n geometry.computeBoundingBox();\n\n let {min, max} = geometry.boundingBox;\n\n let offset = new Vector2(0 - min.x, 0 - min.y);\n let range = new Vector2(max.x - min.x, max.y - min.y);\n\n geometry.faceVertexUvs[0] = geometry.faces.map((face) => {\n\n let v1 = geometry.vertices[face.a];\n let v2 = geometry.vertices[face.b];\n let v3 = geometry.vertices[face.c];\n\n return [\n new Vector2((v1.x + offset.x) / range.x, (v1.y + offset.y) / range.y),\n new Vector2((v2.x + offset.x) / range.x, (v2.y + offset.y) / range.y),\n new Vector2((v3.x + offset.x) / range.x, (v3.y + offset.y) / range.y)\n ];\n\n });\n\n geometry.uvsNeedUpdate = true;\n};\n\nexport function createArea(element, layer, scene, textures) {\n let vertices = [];\n\n element.vertices.forEach(vertexID => {\n vertices.push(layer.vertices.get(vertexID));\n });\n\n let textureName = element.properties.get('texture');\n let color = element.properties.get('patternColor');\n\n if (element.selected) {\n color = SharedStyle.AREA_MESH_COLOR.selected;\n } else if (textureName && textureName !== 'none') {\n color = SharedStyle.AREA_MESH_COLOR.unselected;\n }\n\n let shape = new Shape();\n shape.moveTo(vertices[0].x, vertices[0].y);\n for (let i = 1; i < vertices.length; i++) {\n shape.lineTo(vertices[i].x, vertices[i].y);\n }\n\n let areaMaterial = new MeshPhongMaterial({side: DoubleSide, color});\n\n /* Create holes for the area */\n element.holes.forEach(holeID => {\n let holeCoords = [];\n layer.getIn(['areas', holeID, 'vertices']).forEach(vertexID => {\n let {x, y} = layer.getIn(['vertices', vertexID]);\n holeCoords.push([x, y]);\n });\n holeCoords = holeCoords.reverse();\n let holeShape = createShape(holeCoords);\n shape.holes.push(holeShape);\n });\n\n let shapeGeometry = new ShapeGeometry(shape);\n assignUVs(shapeGeometry);\n\n let boundingBox = new Box3().setFromObject(new Mesh(shapeGeometry, new MeshBasicMaterial()));\n\n let width = boundingBox.max.x - boundingBox.min.x;\n let height = boundingBox.max.y - boundingBox.min.y;\n\n let texture = textures[textureName];\n\n applyTexture(areaMaterial, texture, width, height);\n\n let area = new Mesh(shapeGeometry, areaMaterial);\n\n area.rotation.x -= Math.PI / 2;\n area.name = 'floor';\n\n return Promise.resolve(area);\n}\n\nexport function updatedArea( element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild ) {\n let noPerf = () => { selfDestroy(); return selfBuild(); };\n let floor = mesh.getObjectByName('floor');\n\n if( differences[0] == 'selected' ) {\n let color = element.selected ? SharedStyle.AREA_MESH_COLOR.selected : ( element.properties.get('patternColor') || SharedStyle.AREA_MESH_COLOR.unselected );\n floor.material.color.set( color );\n }\n else if( differences[0] == 'properties' ){\n if( differences[1] === 'texture' ) {\n return noPerf();\n }\n }\n else return noPerf();\n\n return Promise.resolve(mesh);\n}\n\n/**\n * This function will create a shape given a list of coordinates\n * @param shapeCoords\n * @returns {Shape}\n */\nconst createShape = (shapeCoords) => {\n let shape = new Shape();\n shape.moveTo(shapeCoords[0][0], shapeCoords[0][1]);\n for (let i = 1; i < shapeCoords.length; i++) {\n shape.lineTo(shapeCoords[i][0], shapeCoords[i][1]);\n }\n return shape;\n};\n","import React from 'react';\nimport { createArea, updatedArea } from './area-factory-3d';\nimport * as SharedStyle from '../../shared-style';\nimport Translator from '../../translator/translator';\n\nlet translator = new Translator();\n\nexport default function AreaFactory(name, info, textures) {\n\n let areaElement = {\n name,\n prototype: 'areas',\n info: {\n ...info,\n visibility: {\n catalog: false,\n layerElementsVisible: false\n }\n },\n properties: {\n patternColor: {\n label: translator.t('color'),\n type: 'color',\n defaultValue: SharedStyle.AREA_MESH_COLOR.unselected\n },\n thickness: {\n label: translator.t('thickness'),\n type: 'length-measure',\n defaultValue: {\n length: 0,\n }\n }\n },\n render2D: function (element, layer, scene) {\n let path = '';\n\n ///print area path\n element.vertices.forEach((vertexID, ind) => {\n let vertex = layer.vertices.get(vertexID);\n path += (ind ? 'L' : 'M') + vertex.x + ' ' + vertex.y + ' ';\n });\n\n //add holes\n element.holes.forEach(areaID => {\n let area = layer.areas.get(areaID);\n\n area.vertices.reverse().forEach((vertexID, ind) => {\n let vertex = layer.vertices.get(vertexID);\n path += (ind ? 'L' : 'M') + vertex.x + ' ' + vertex.y + ' ';\n });\n\n });\n\n let fill = element.selected ? SharedStyle.AREA_MESH_COLOR.selected : element.properties.get('patternColor');\n\n return ();\n },\n\n render3D: function (element, layer, scene) {\n return createArea(element, layer, scene, textures)\n },\n\n updateRender3D: (element, layer, scene, mesh, oldElement, differences, selfDestroy, selfBuild) => {\n return updatedArea(element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild);\n }\n\n };\n\n if (textures && textures !== {}) {\n\n let textureValues = { 'none': 'None' };\n\n for (let textureName in textures) {\n textureValues[textureName] = textures[textureName].name\n }\n\n areaElement.properties.texture = {\n label: translator.t('texture'),\n type: 'enum',\n defaultValue: 'none',\n values: textureValues\n };\n\n }\n\n return areaElement\n\n}\n","/*jshint esversion: 6 */\nimport * as THREE from 'three';\n\nconst EPSILON = 1e-5,\n COPLANAR = 0,\n FRONT = 1,\n BACK = 2,\n SPANNING = 3;\n\nexport default class ThreeBSP {\n constructor(geometry) {\n // Convert THREE.Geometry to ThreeBSP\n var i, _length_i,\n face, vertex, faceVertexUvs, uvs,\n polygon,\n polygons = [],\n tree;\n\n this.Polygon = Polygon;\n this.Vertex = Vertex;\n this.Node = Node;\n if (geometry instanceof THREE.Geometry) {\n this.matrix = new THREE.Matrix4();\n } else if (geometry instanceof THREE.Mesh) {\n // #todo: add hierarchy support\n geometry.updateMatrix();\n this.matrix = geometry.matrix.clone();\n geometry = geometry.geometry;\n } else if (geometry instanceof Node) {\n this.tree = geometry;\n this.matrix = new THREE.Matrix4();\n return this;\n } else {\n throw 'ThreeBSP: Given geometry is unsupported';\n }\n\n for (i = 0, _length_i = geometry.faces.length; i < _length_i; i++) {\n face = geometry.faces[i];\n faceVertexUvs = geometry.faceVertexUvs[0][i];\n polygon = new Polygon();\n\n if (face instanceof THREE.Face3) {\n vertex = geometry.vertices[face.a];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[0].x, faceVertexUvs[0].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[0], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n\n vertex = geometry.vertices[face.b];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[1].x, faceVertexUvs[1].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[1], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n\n vertex = geometry.vertices[face.c];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[2].x, faceVertexUvs[2].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[2], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n } else if (typeof THREE.Face4) {\n vertex = geometry.vertices[face.a];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[0].x, faceVertexUvs[0].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[0], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n\n vertex = geometry.vertices[face.b];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[1].x, faceVertexUvs[1].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[1], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n\n vertex = geometry.vertices[face.c];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[2].x, faceVertexUvs[2].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[2], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n\n vertex = geometry.vertices[face.d];\n uvs = faceVertexUvs ? new THREE.Vector2(faceVertexUvs[3].x, faceVertexUvs[3].y) : null;\n vertex = new Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[3], uvs);\n vertex.applyMatrix4(this.matrix);\n polygon.vertices.push(vertex);\n } else {\n throw 'Invalid face type at index ' + i;\n }\n\n polygon.calculateProperties();\n polygons.push(polygon);\n }\n\n this.tree = new Node(polygons);\n }\n\n subtract(other_tree) {\n var a = this.tree.clone(),\n b = other_tree.tree.clone();\n\n a.invert();\n a.clipTo(b);\n b.clipTo(a);\n b.invert();\n b.clipTo(a);\n b.invert();\n a.build(b.allPolygons());\n a.invert();\n a = new ThreeBSP(a);\n a.matrix = this.matrix;\n return a;\n }\n\n union(other_tree) {\n var a = this.tree.clone(),\n b = other_tree.tree.clone();\n\n a.clipTo(b);\n b.clipTo(a);\n b.invert();\n b.clipTo(a);\n b.invert();\n a.build(b.allPolygons());\n a = new ThreeBSP(a);\n a.matrix = this.matrix;\n return a;\n }\n\n intersect(other_tree) {\n var a = this.tree.clone(),\n b = other_tree.tree.clone();\n\n a.invert();\n b.clipTo(a);\n b.invert();\n a.clipTo(b);\n b.clipTo(a);\n a.build(b.allPolygons());\n a.invert();\n a = new ThreeBSP(a);\n a.matrix = this.matrix;\n return a;\n }\n\n toGeometry() {\n var i, j,\n matrix = new THREE.Matrix4().getInverse(this.matrix),\n geometry = new THREE.Geometry(),\n polygons = this.tree.allPolygons(),\n polygon_count = polygons.length,\n polygon, polygon_vertice_count,\n vertice_dict = {},\n vertex_idx_a, vertex_idx_b, vertex_idx_c,\n vertex, face,\n verticeUvs;\n\n for (i = 0; i < polygon_count; i++) {\n polygon = polygons[i];\n polygon_vertice_count = polygon.vertices.length;\n\n for (j = 2; j < polygon_vertice_count; j++) {\n verticeUvs = [];\n\n vertex = polygon.vertices[0];\n verticeUvs.push(new THREE.Vector2(vertex.uv.x, vertex.uv.y));\n vertex = new THREE.Vector3(vertex.x, vertex.y, vertex.z);\n vertex.applyMatrix4(matrix);\n\n if (typeof vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] !== 'undefined') {\n vertex_idx_a = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z];\n } else {\n geometry.vertices.push(vertex);\n vertex_idx_a = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] = geometry.vertices.length - 1;\n }\n\n vertex = polygon.vertices[j - 1];\n verticeUvs.push(new THREE.Vector2(vertex.uv.x, vertex.uv.y));\n vertex = new THREE.Vector3(vertex.x, vertex.y, vertex.z);\n vertex.applyMatrix4(matrix);\n if (typeof vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] !== 'undefined') {\n vertex_idx_b = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z];\n } else {\n geometry.vertices.push(vertex);\n vertex_idx_b = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] = geometry.vertices.length - 1;\n }\n\n vertex = polygon.vertices[j];\n verticeUvs.push(new THREE.Vector2(vertex.uv.x, vertex.uv.y));\n vertex = new THREE.Vector3(vertex.x, vertex.y, vertex.z);\n vertex.applyMatrix4(matrix);\n if (typeof vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] !== 'undefined') {\n vertex_idx_c = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z];\n } else {\n geometry.vertices.push(vertex);\n vertex_idx_c = vertice_dict[vertex.x + ',' + vertex.y + ',' + vertex.z] = geometry.vertices.length - 1;\n }\n\n face = new THREE.Face3(\n vertex_idx_a,\n vertex_idx_b,\n vertex_idx_c,\n new THREE.Vector3(polygon.normal.x, polygon.normal.y, polygon.normal.z)\n );\n\n geometry.faces.push(face);\n geometry.faceVertexUvs[0].push(verticeUvs);\n }\n\n }\n return geometry;\n }\n\n toMesh (material) {\n var geometry = this.toGeometry(),\n mesh = new THREE.Mesh(geometry, material);\n\n mesh.position.setFromMatrixPosition(this.matrix);\n mesh.rotation.setFromRotationMatrix(this.matrix);\n\n return mesh;\n }\n}\nclass Polygon {\n constructor(vertices, normal, w) {\n if (!( vertices instanceof Array )) {\n vertices = [];\n }\n\n this.vertices = vertices;\n if (vertices.length > 0) {\n this.calculateProperties();\n } else {\n this.normal = this.w = undefined;\n }\n }\n\n calculateProperties() {\n var a = this.vertices[0],\n b = this.vertices[1],\n c = this.vertices[2];\n\n this.normal = b.clone().subtract(a).cross(\n c.clone().subtract(a)\n ).normalize();\n\n this.w = this.normal.clone().dot(a);\n\n return this;\n }\n\n clone() {\n var i, vertice_count,\n polygon = new Polygon();\n\n for (i = 0, vertice_count = this.vertices.length; i < vertice_count; i++) {\n polygon.vertices.push(this.vertices[i].clone());\n }\n polygon.calculateProperties();\n\n return polygon;\n }\n\n flip() {\n var i, vertices = [];\n\n this.normal.multiplyScalar(-1);\n this.w *= -1;\n\n for (i = this.vertices.length - 1; i >= 0; i--) {\n vertices.push(this.vertices[i]);\n }\n this.vertices = vertices;\n\n return this;\n }\n\n classifyVertex(vertex) {\n var side_value = this.normal.dot(vertex) - this.w;\n\n if (side_value < -EPSILON) {\n return BACK;\n } else if (side_value > EPSILON) {\n return FRONT;\n } else {\n return COPLANAR;\n }\n }\n\n classifySide(polygon) {\n var i, vertex, classification,\n num_positive = 0,\n num_negative = 0,\n vertice_count = polygon.vertices.length;\n\n for (i = 0; i < vertice_count; i++) {\n vertex = polygon.vertices[i];\n classification = this.classifyVertex(vertex);\n if (classification === FRONT) {\n num_positive++;\n } else if (classification === BACK) {\n num_negative++;\n }\n }\n\n if (num_positive > 0 && num_negative === 0) {\n return FRONT;\n } else if (num_positive === 0 && num_negative > 0) {\n return BACK;\n } else if (num_positive === 0 && num_negative === 0) {\n return COPLANAR;\n } else {\n return SPANNING;\n }\n }\n\n splitPolygon(polygon, coplanar_front, coplanar_back, front, back) {\n var classification = this.classifySide(polygon);\n\n if (classification === COPLANAR) {\n\n ( this.normal.dot(polygon.normal) > 0 ? coplanar_front : coplanar_back ).push(polygon);\n\n } else if (classification === FRONT) {\n\n front.push(polygon);\n\n } else if (classification === BACK) {\n\n back.push(polygon);\n\n } else {\n\n var vertice_count,\n i, j, ti, tj, vi, vj,\n t, v,\n f = [],\n b = [];\n\n for (i = 0, vertice_count = polygon.vertices.length; i < vertice_count; i++) {\n\n j = (i + 1) % vertice_count;\n vi = polygon.vertices[i];\n vj = polygon.vertices[j];\n ti = this.classifyVertex(vi);\n tj = this.classifyVertex(vj);\n\n if (ti != BACK) f.push(vi);\n if (ti != FRONT) b.push(vi);\n if ((ti | tj) === SPANNING) {\n t = ( this.w - this.normal.dot(vi) ) / this.normal.dot(vj.clone().subtract(vi));\n v = vi.interpolate(vj, t);\n f.push(v);\n b.push(v);\n }\n }\n\n\n if (f.length >= 3) front.push(new Polygon(f).calculateProperties());\n if (b.length >= 3) back.push(new Polygon(b).calculateProperties());\n }\n }\n}\nclass Vertex {\n constructor(x, y, z, normal, uv) {\n this.x = x;\n this.y = y;\n this.z = z;\n this.normal = normal || new THREE.Vector3();\n this.uv = uv || new THREE.Vector2();\n }\n\n clone() {\n return new Vertex(this.x, this.y, this.z, this.normal.clone(), this.uv.clone());\n }\n\n add(vertex) {\n this.x += vertex.x;\n this.y += vertex.y;\n this.z += vertex.z;\n return this;\n }\n\n subtract(vertex) {\n this.x -= vertex.x;\n this.y -= vertex.y;\n this.z -= vertex.z;\n return this;\n }\n\n multiplyScalar(scalar) {\n this.x *= scalar;\n this.y *= scalar;\n this.z *= scalar;\n return this;\n }\n\n cross(vertex) {\n var x = this.x,\n y = this.y,\n z = this.z;\n\n this.x = y * vertex.z - z * vertex.y;\n this.y = z * vertex.x - x * vertex.z;\n this.z = x * vertex.y - y * vertex.x;\n\n return this;\n }\n\n normalize() {\n var length = Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\n this.x /= length;\n this.y /= length;\n this.z /= length;\n\n return this;\n }\n\n dot(vertex) {\n return this.x * vertex.x + this.y * vertex.y + this.z * vertex.z;\n }\n\n lerp(a, t) {\n this.add(\n a.clone().subtract(this).multiplyScalar(t)\n );\n\n this.normal.add(\n a.normal.clone().sub(this.normal).multiplyScalar(t)\n );\n\n this.uv.add(\n a.uv.clone().sub(this.uv).multiplyScalar(t)\n );\n\n return this;\n }\n\n interpolate(other, t) {\n return this.clone().lerp(other, t);\n }\n\n applyMatrix4(m) {\n\n // input: THREE.Matrix4 affine matrix\n\n var x = this.x, y = this.y, z = this.z;\n\n var e = m.elements;\n\n this.x = e[0] * x + e[4] * y + e[8] * z + e[12];\n this.y = e[1] * x + e[5] * y + e[9] * z + e[13];\n this.z = e[2] * x + e[6] * y + e[10] * z + e[14];\n\n return this;\n\n }\n}\nclass Node {\n constructor(polygons) {\n var i, polygon_count,\n front = [],\n back = [];\n\n this.polygons = [];\n this.front = this.back = undefined;\n\n if (!(polygons instanceof Array) || polygons.length === 0) return;\n\n this.divider = polygons[0].clone();\n\n for (i = 0, polygon_count = polygons.length; i < polygon_count; i++) {\n this.divider.splitPolygon(polygons[i], this.polygons, this.polygons, front, back);\n }\n\n if (front.length > 0) {\n this.front = new Node(front);\n }\n\n if (back.length > 0) {\n this.back = new Node(back);\n }\n }\n\n isConvex(polygons) {\n var i, j;\n for (i = 0; i < polygons.length; i++) {\n for (j = 0; j < polygons.length; j++) {\n if (i !== j && polygons[i].classifySide(polygons[j]) !== BACK) {\n return false;\n }\n }\n }\n return true;\n }\n\n build(polygons) {\n var i, polygon_count,\n front = [],\n back = [];\n\n if (!this.divider) {\n this.divider = polygons[0].clone();\n }\n\n for (i = 0, polygon_count = polygons.length; i < polygon_count; i++) {\n this.divider.splitPolygon(polygons[i], this.polygons, this.polygons, front, back);\n }\n\n if (front.length > 0) {\n if (!this.front) this.front = new Node();\n this.front.build(front);\n }\n\n if (back.length > 0) {\n if (!this.back) this.back = new Node();\n this.back.build(back);\n }\n }\n\n allPolygons() {\n var polygons = this.polygons.slice();\n if (this.front) polygons = polygons.concat(this.front.allPolygons());\n if (this.back) polygons = polygons.concat(this.back.allPolygons());\n return polygons;\n }\n\n clone() {\n var node = new Node();\n\n node.divider = this.divider.clone();\n node.polygons = this.polygons.map(function (polygon) {\n return polygon.clone();\n });\n node.front = this.front && this.front.clone();\n node.back = this.back && this.back.clone();\n\n return node;\n }\n\n invert() {\n var i, polygon_count, temp;\n\n for (i = 0, polygon_count = this.polygons.length; i < polygon_count; i++) {\n this.polygons[i].flip();\n }\n\n this.divider.flip();\n if (this.front) this.front.invert();\n if (this.back) this.back.invert();\n\n temp = this.front;\n this.front = this.back;\n this.back = temp;\n\n return this;\n }\n\n clipPolygons(polygons) {\n var i, polygon_count,\n front, back;\n\n if (!this.divider) return polygons.slice();\n\n front = [];\n back = [];\n\n for (i = 0, polygon_count = polygons.length; i < polygon_count; i++) {\n this.divider.splitPolygon(polygons[i], front, back, front, back);\n }\n\n if (this.front) front = this.front.clipPolygons(front);\n if (this.back) back = this.back.clipPolygons(back);\n else back = [];\n\n return front.concat(back);\n }\n\n clipTo(node) {\n this.polygons = node.clipPolygons(this.polygons);\n if (this.front) this.front.clipTo(node);\n if (this.back) this.back.clipTo(node);\n }\n}\n\nwindow.ThreeBSP = ThreeBSP;\n","import {\n TextureLoader,\n Mesh,\n RepeatWrapping,\n Vector2,\n BoxGeometry,\n MeshBasicMaterial,\n Group\n} from 'three';\n\nimport ThreeBSP from '../../utils/threeCSG.es6';\nimport {verticesDistance} from '../../utils/geometry';\nimport * as SharedStyle from '../../shared-style';\n\nconst halfPI = Math.PI / 2;\n\n/**\n * Apply a texture to a wall face\n * @param material: The material of the face\n * @param texture: The texture to load\n * @param length: The lenght of the face\n * @param height: The height of the face\n */\nconst applyTexture = (material, texture, length, height) => {\n let loader = new TextureLoader();\n\n if (texture) {\n material.map = loader.load(texture.uri);\n material.needsUpdate = true;\n material.map.wrapS = RepeatWrapping;\n material.map.wrapT = RepeatWrapping;\n material.map.repeat.set(length * texture.lengthRepeatScale, height * texture.heightRepeatScale);\n\n if (texture.normal) {\n material.normalMap = loader.load(texture.normal.uri);\n material.normalScale = new Vector2(texture.normal.normalScaleX, texture.normal.normalScaleY);\n material.normalMap.wrapS = RepeatWrapping;\n material.normalMap.wrapT = RepeatWrapping;\n material.normalMap.repeat.set(length * texture.normal.lengthRepeatScale, height * texture.normal.heightRepeatScale);\n }\n }\n};\n\nexport function buildWall(element, layer, scene, textures)\n{\n // Get the two vertices of the wall\n let vertex0 = layer.vertices.get(element.vertices.get(0));\n let vertex1 = layer.vertices.get(element.vertices.get(1));\n let inverted = false;\n\n // The first vertex is the smaller one\n if (vertex0.x > vertex1.x) {\n let app = vertex0;\n vertex0 = vertex1;\n vertex1 = app;\n inverted = true;\n }\n\n // Get height and thickness of the wall converting them into the current scene units\n let height = element.properties.getIn(['height', 'length']);\n let thickness = element.properties.getIn(['thickness', 'length']);\n let halfThickness = thickness / 2;\n let faceThickness = 0.2;\n let faceDistance = 1;\n\n let distance = verticesDistance( vertex0, vertex1 );\n let halfDistance = distance / 2;\n\n let soulMaterial = new MeshBasicMaterial( {color: ( element.selected ? SharedStyle.MESH_SELECTED : 0xD3D3D3 )} );\n let soul = new Mesh( new BoxGeometry(distance, height, thickness), soulMaterial );\n\n let alpha = Math.asin((vertex1.y - vertex0.y) / (distance));\n\n let sinAlpha = Math.sin(alpha);\n let cosAlpha = Math.cos(alpha);\n\n soul.position.y += height / 2;\n soul.position.x += halfDistance * cosAlpha;\n soul.position.z -= halfDistance * sinAlpha;\n\n soul.rotation.y = alpha;\n\n element.holes.forEach( holeID => {\n let holeData = layer.holes.get(holeID);\n\n let holeWidth = holeData.properties.getIn(['width', 'length']);\n let holeHeight = holeData.properties.getIn(['height', 'length']);\n let holeAltitude = holeData.properties.getIn(['altitude', 'length']);\n let offset = inverted ? 1 - holeData.offset : holeData.offset;\n let holeDistance = offset * distance;\n\n let holeGeometry = new BoxGeometry( holeWidth, holeHeight, thickness );\n let holeMesh = new Mesh( holeGeometry );\n\n holeMesh.position.y += holeHeight / 2 + holeAltitude;\n holeMesh.position.x += holeDistance * cosAlpha;\n holeMesh.position.z -= holeDistance * sinAlpha;\n\n holeMesh.rotation.y = alpha;\n\n let wallBSP = new ThreeBSP( soul );\n let holeBSP = new ThreeBSP( holeMesh );\n\n let wallWithHoleBSP = wallBSP.subtract( holeBSP );\n soul = wallWithHoleBSP.toMesh( soulMaterial );\n });\n\n soul.name = 'soul';\n\n let frontMaterial = new MeshBasicMaterial();\n let backMaterial = new MeshBasicMaterial();\n\n applyTexture(frontMaterial, textures[element.properties.get('textureB')], distance, height);\n applyTexture(backMaterial, textures[element.properties.get('textureA')], distance, height);\n\n let scaleFactor = faceThickness / thickness;\n let texturedFaceDistance = halfThickness + faceDistance;\n\n let frontFace = soul.clone();\n frontFace.material = frontMaterial;\n frontFace.scale.set( 1, 1, scaleFactor );\n frontFace.position.x += texturedFaceDistance * Math.cos(alpha - ( halfPI ) );\n frontFace.position.z -= texturedFaceDistance * Math.sin(alpha - ( halfPI ) );\n frontFace.name = 'frontFace';\n\n let backFace = soul.clone();\n backFace.material = backMaterial;\n backFace.scale.set( 1, 1, scaleFactor );\n backFace.position.x += texturedFaceDistance * Math.cos(alpha + ( halfPI ) );\n backFace.position.z -= texturedFaceDistance * Math.sin(alpha + ( halfPI ) );\n backFace.name = 'backFace';\n\n let merged = new Group();\n merged.add( soul, frontFace, backFace );\n\n return Promise.resolve( merged );\n}\n\nexport function updatedWall( element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild ) {\n let noPerf = () => { selfDestroy(); return selfBuild(); };\n\n let soul = mesh.getObjectByName('soul');\n let frontFace = mesh.getObjectByName('frontFace');\n let backFace = mesh.getObjectByName('backFace');\n\n if( differences[0] == 'selected' ) {\n soul.material = new MeshBasicMaterial( {color: ( element.selected ? SharedStyle.MESH_SELECTED : 0xD3D3D3 )} );\n }\n else if( differences[0] == 'properties' ){\n\n if( differences[1] == 'thickness' ){\n let newThickness = element.getIn(['properties', 'thickness', 'length']);\n let oldThickness = oldElement.getIn(['properties', 'thickness', 'length']);\n let halfNewThickness = newThickness / 2;\n let texturedFaceDistance = halfNewThickness + 1;\n let originalThickness = oldThickness / soul.scale.z;\n let alpha = soul.rotation.y;\n\n let xTemp = texturedFaceDistance * Math.cos(alpha - ( halfPI ) );\n let zTemp = texturedFaceDistance * Math.sin(alpha - ( halfPI ) );\n\n soul.scale.set( 1, 1, ( newThickness / originalThickness ) );\n\n frontFace.position.x = soul.position.x + ( xTemp );\n frontFace.position.z = soul.position.z + ( zTemp );\n\n backFace.position.x = soul.position.x - ( xTemp );\n backFace.position.z = soul.position.z - ( zTemp );\n }\n else return noPerf();\n }\n else return noPerf();\n\n return Promise.resolve(mesh);\n}\n","import React from 'react';\nimport { buildWall, updatedWall } from './wall-factory-3d';\nimport * as SharedStyle from '../../shared-style';\nimport * as Geometry from '../../utils/geometry';\nimport Translator from '../../translator/translator';\n\nconst epsilon = 20;\nconst STYLE_TEXT = { textAnchor: 'middle' };\nconst STYLE_LINE = { stroke: SharedStyle.LINE_MESH_COLOR.selected };\nconst STYLE_RECT = { strokeWidth: 1, stroke: SharedStyle.LINE_MESH_COLOR.unselected, fill: 'url(#diagonalFill)' };\nconst STYLE_RECT_SELECTED = { ...STYLE_RECT, stroke: SharedStyle.LINE_MESH_COLOR.selected };\n\nlet translator = new Translator();\n\nexport default function WallFactory(name, info, textures) {\n\n let wallElement = {\n name,\n prototype: 'lines',\n info,\n properties: {\n height: {\n label: translator.t('height'),\n type: 'length-measure',\n defaultValue: {\n length: 300,\n }\n },\n thickness: {\n label: translator.t('thickness'),\n type: 'length-measure',\n defaultValue: {\n length: 20\n }\n }\n },\n\n render2D: function (element, layer, scene) {\n let { x: x1, y: y1 } = layer.vertices.get(element.vertices.get(0));\n let { x: x2, y: y2 } = layer.vertices.get(element.vertices.get(1));\n\n let length = Geometry.pointsDistance(x1, y1, x2, y2);\n let length_5 = length / 5;\n\n let thickness = element.getIn(['properties', 'thickness', 'length']);\n let half_thickness = thickness / 2;\n let half_thickness_eps = half_thickness + epsilon;\n let char_height = 11;\n let extra_epsilon = 5;\n let textDistance = half_thickness + epsilon + extra_epsilon;\n\n return (element.selected) ?\n \n \n \n A\n B\n :\n \n },\n\n render3D: function (element, layer, scene) {\n return buildWall(element, layer, scene, textures);\n },\n\n updateRender3D: (element, layer, scene, mesh, oldElement, differences, selfDestroy, selfBuild) => {\n return updatedWall(element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild);\n }\n\n };\n\n if (textures && textures !== {}) {\n\n let textureValues = { 'none': 'None' };\n\n for (let textureName in textures) {\n textureValues[textureName] = textures[textureName].name;\n }\n\n wallElement.properties.textureA = {\n label: translator.t('texture') + ' A',\n type: 'enum',\n defaultValue: textureValues.bricks ? 'bricks' : 'none',\n values: textureValues\n };\n\n wallElement.properties.textureB = {\n label: translator.t('texture') + ' B',\n type: 'enum',\n defaultValue: textureValues.bricks ? 'bricks' : 'none',\n values: textureValues\n };\n\n }\n\n return wallElement;\n}\n","import WallFactory from './wall-factory';\nimport AreaFactory from './area-factory';\n\nexport {\n WallFactory,\n AreaFactory\n};\n\nexport default {\n WallFactory,\n AreaFactory\n};\n","import {Map, List, Record} from 'immutable';\nimport * as Geometry from './geometry';\n\nexport const SNAP_POINT = 'SNAP_POINT';\nexport const SNAP_LINE = 'SNAP_LINE';\nexport const SNAP_SEGMENT = 'SNAP_SEGMENT';\nexport const SNAP_GRID = 'SNAP_GRID';\nexport const SNAP_GUIDE = 'SNAP_GUIDE';\n\nexport const SNAP_MASK = new Map({\n SNAP_POINT : true,\n SNAP_LINE : true,\n SNAP_SEGMENT : true,\n SNAP_GRID : false,\n SNAP_GUIDE : true\n});\n\nclass PointSnap extends Record({\n type: 'point',\n x: -1, y: -1,\n radius: 1, priority: 1,\n related: new List()\n}) {\n nearestPoint(x, y) {\n return {\n x: this.x,\n y: this.y,\n distance: Geometry.pointsDistance(this.x, this.y, x, y)\n };\n }\n isNear(x,y,distance){ return ~(this.x - x) + 1 < distance && ~(this.y - y) + 1 < distance; }\n}\n\nclass LineSnap extends Record({\n type: 'line',\n a: -1, b: -1, c: -1,\n radius: 1, priority: 1,\n related: new List()\n}) {\n nearestPoint(x, y) {\n return {\n ...Geometry.closestPointFromLine(this.a, this.b, this.c, x, y),\n distance: Geometry.distancePointFromLine(this.a, this.b, this.c, x, y)\n };\n }\n isNear(x,y,distance){ return true; }\n}\n\nclass LineSegmentSnap extends Record({\n type: 'line-segment',\n x1: -1, y1: -1, x2: -1, y2: -1,\n radius: 1, priority: 1,\n related: new List()\n}) {\n nearestPoint(x, y) {\n return {\n ...Geometry.closestPointFromLineSegment(this.x1, this.y1, this.x2, this.y2, x, y),\n distance: Geometry.distancePointFromLineSegment(this.x1, this.y1, this.x2, this.y2, x, y)\n };\n }\n isNear(x,y,distance){ return true; }\n}\n\nclass GridSnap extends Record({\n type: 'grid',\n x: -1, y: -1,\n radius: 1, priority: 1,\n related: new List()\n}) {\n nearestPoint(x, y) {\n return {\n x: this.x,\n y: this.y,\n distance: Geometry.pointsDistance(this.x, this.y, x, y)\n };\n }\n isNear(x,y,distance){ return ~(this.x - x) + 1 < distance && ~(this.y - y) + 1 < distance; }\n}\n\nexport function nearestSnap(snapElements, x, y, snapMask) {\n\n let filter = {\n 'point': snapMask.get(SNAP_POINT),\n 'line': snapMask.get(SNAP_LINE),\n 'line-segment': snapMask.get(SNAP_SEGMENT),\n 'grid': snapMask.get(SNAP_GRID)\n };\n\n return snapElements\n .valueSeq()\n .filter( ( el ) => filter[el.type] && el.isNear(x,y, el.radius) )\n .map(snap => { return {snap, point: snap.nearestPoint(x, y)} })\n .filter(({snap: {radius}, point: {distance}}) => distance < radius)\n .min(\n (\n {snap: { priority : p1 }, point: { distance : d1 }},\n {snap: { priority : p2 }, point: { distance : d2 }}\n ) => p1 === p2 ? ( d1 < d2 ? -1 : 1 ) : ( p1 > p2 ? -1 : 1 )\n );\n}\n\nexport function addPointSnap(snapElements, x, y, radius, priority, related) {\n related = new List([related]);\n return snapElements.push(new PointSnap({x, y, radius, priority, related}));\n}\n\nexport function addLineSnap(snapElements, a, b, c, radius, priority, related) {\n related = new List([related]);\n\n return snapElements.withMutations(snapElements => {\n\n let alreadyPresent = snapElements.some(lineSnap =>\n lineSnap.type === 'line' &&\n a === lineSnap.a &&\n b === lineSnap.b &&\n c === lineSnap.c);\n if (alreadyPresent) return snapElements;\n\n let intersections = snapElements\n .valueSeq()\n .filter(snap => snap.type === 'line')\n .map(snap => Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, a, b, c))\n .filter(intersection => intersection !== undefined)\n .forEach(({x, y}) => addPointSnap(snapElements, x, y, 20, 40));\n\n snapElements.push(new LineSnap({a, b, c, radius, priority, related}));\n })\n}\n\nexport function addLineSegmentSnap(snapElements, x1, y1, x2, y2, radius, priority, related) {\n related = new List([related]);\n return snapElements.push(new LineSegmentSnap({x1, y1, x2, y2, radius, priority, related}));\n}\n\nexport function addGridSnap(snapElements, x, y, radius, priority, related) {\n related = new List([related]);\n return snapElements.push(new GridSnap({x, y, radius, priority, related}));\n}\n","import actions from '../actions/export';\n\nexport default function consoleDebugger() {\n\n return (store, stateExtractor) => {\n window.ReactPlanner = {\n ...actions,\n\n getStore() {\n return store;\n },\n\n getState() {\n return stateExtractor(store.getState())\n },\n\n do(actions, delay = 300) {\n actions = actions.reverse();\n let dispatch = store.dispatch;\n let dispatchAction = () => {\n console.info(`There are other ${actions.length} actions on stack`);\n if (actions.length === 0) return;\n dispatch(actions.pop());\n if (actions.length === 0) return;\n setTimeout(dispatchAction, delay);\n };\n setTimeout(dispatchAction, 0);\n }\n };\n\n console.groupCollapsed(\"ReactPlanner\");\n console.info(\"ReactPlanner is ready\");\n console.info(\"console.log(ReactPlanner)\");\n console.log(window.ReactPlanner);\n console.groupEnd();\n }\n}\n","import {\n MODE_IDLE,\n MODE_3D_FIRST_PERSON,\n MODE_3D_VIEW,\n MODE_SNAPPING,\n KEYBOARD_BUTTON_CODE\n} from '../constants';\n\nimport {\n rollback,\n undo,\n remove,\n toggleSnap,\n copyProperties,\n pasteProperties,\n setAlterateState\n} from '../actions/project-actions';\n\nexport default function keyboard() {\n\n return (store, stateExtractor) => {\n\n window.addEventListener('keydown', event => {\n\n let state = stateExtractor(store.getState());\n let mode = state.get('mode');\n\n switch (event.keyCode) {\n case KEYBOARD_BUTTON_CODE.BACKSPACE:\n case KEYBOARD_BUTTON_CODE.DELETE:\n {\n if ([MODE_IDLE, MODE_3D_FIRST_PERSON, MODE_3D_VIEW].includes(mode))\n store.dispatch(remove());\n break;\n }\n case KEYBOARD_BUTTON_CODE.ESC:\n {\n store.dispatch(rollback());\n break;\n }\n case KEYBOARD_BUTTON_CODE.Z:\n {\n if (event.getModifierState('Control') || event.getModifierState('Meta'))\n store.dispatch(undo());\n break;\n }\n case KEYBOARD_BUTTON_CODE.ALT:\n {\n if (MODE_SNAPPING.includes(mode))\n store.dispatch(toggleSnap(state.snapMask.merge({\n SNAP_POINT: false,\n SNAP_LINE: false,\n SNAP_SEGMENT: false,\n SNAP_GRID : false,\n SNAP_GUIDE : false,\n tempSnapConfiguartion: state.snapMask.toJS()\n })));\n break;\n }\n case KEYBOARD_BUTTON_CODE.C:\n {\n let selectedLayer = state.getIn(['scene', 'selectedLayer']);\n let selected = state.getIn(['scene', 'layers', selectedLayer, 'selected']);\n\n if ( ( mode === MODE_IDLE || mode === MODE_3D_VIEW ) && (selected.holes.size || selected.areas.size || selected.items.size || selected.lines.size)) {\n if (selected.holes.size) {\n let hole = state.getIn(['scene', 'layers', selectedLayer, 'holes', selected.holes.get(0)]);\n store.dispatch(copyProperties(hole.get('properties')));\n }\n else if (selected.areas.size) {\n let area = state.getIn(['scene', 'layers', selectedLayer, 'areas', selected.areas.get(0)]);\n store.dispatch(copyProperties(area.properties));\n }\n else if (selected.items.size) {\n let item = state.getIn(['scene', 'layers', selectedLayer, 'items', selected.items.get(0)]);\n store.dispatch(copyProperties(item.properties));\n }\n else if (selected.lines.size) {\n let line = state.getIn(['scene', 'layers', selectedLayer, 'lines', selected.lines.get(0)]);\n store.dispatch(copyProperties(line.properties));\n }\n }\n break;\n }\n case KEYBOARD_BUTTON_CODE.V:\n {\n store.dispatch(pasteProperties());\n break;\n }\n case KEYBOARD_BUTTON_CODE.CTRL:\n {\n store.dispatch(setAlterateState());\n break;\n }\n }\n\n });\n\n window.addEventListener('keyup', event => {\n\n let state = stateExtractor(store.getState());\n let mode = state.get('mode');\n\n switch (event.keyCode) {\n case KEYBOARD_BUTTON_CODE.ALT:\n {\n if (MODE_SNAPPING.includes(mode))\n store.dispatch(toggleSnap(state.snapMask.merge(state.snapMask.get('tempSnapConfiguartion'))));\n break;\n }\n case KEYBOARD_BUTTON_CODE.CTRL:\n {\n store.dispatch(setAlterateState());\n break;\n }\n }\n\n });\n\n }\n}\n","const localStorage = window.hasOwnProperty('localStorage') ? window.localStorage : false;\nimport { loadProject } from '../actions/project-actions';\n\nconst TIMEOUT_DELAY = 500;\n\nlet timeout = null;\n\nexport default function autosave(autosaveKey, delay) {\n\n return (store, stateExtractor) => {\n\n delay = delay || TIMEOUT_DELAY;\n\n if (!autosaveKey) return;\n if (!localStorage) return;\n\n //revert\n if (localStorage.getItem(autosaveKey) !== null) {\n let data = localStorage.getItem(autosaveKey);\n let json = JSON.parse(data);\n store.dispatch(loadProject(json));\n }\n\n //update\n store.subscribe(() => {\n if (timeout) clearTimeout(timeout);\n timeout = setTimeout(() => {\n let state = stateExtractor(store.getState());\n localStorage.setItem(autosaveKey, JSON.stringify(state.scene.toJS()));\n /*let scene = state.sceneHistory.last;\n if (scene) {\n let json = JSON.stringify(scene.toJS());\n localStorage.setItem(autosaveKey, json);\n }*/\n }, delay);\n });\n };\n}\n","import Autosave from './autosave';\nimport Keyboard from './keyboard';\nimport ConsoleDebugger from './console-debugger';\n\nexport {\n Autosave,\n Keyboard,\n ConsoleDebugger\n};\n\nexport default {\n Autosave,\n Keyboard,\n ConsoleDebugger\n};\n","module.exports = __webpack_public_path__ + \"e500b4871b2c21b97e6d25cac92f917d.css\";","var update = require(\"!../../node_modules/style-loader/lib/addStyleUrl.js\")(\n require(\"!!../../node_modules/file-loader/dist/cjs.js!./tabs.css\")\n, {\"hmr\":true});\nif(module.hot) {\n module.hot.accept(\"!!../../node_modules/file-loader/dist/cjs.js!./tabs.css\", function() {\n update(require(\"!!../../node_modules/file-loader/dist/cjs.js!./tabs.css\"));\n });\n\n module.hot.dispose(function() { update(); });\n}","import * as TabsStyle from './tabs.css';\n\nexport {\n TabsStyle\n};\n\nexport default {\n TabsStyle\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport If from '../../utils/react-if';\nimport FooterToggleButton from './footer-toggle-button';\nimport FooterContentButton from './footer-content-button';\nimport { SNAP_POINT, SNAP_LINE, SNAP_SEGMENT, SNAP_GRID, SNAP_GUIDE } from '../../utils/snap';\nimport { MODE_SNAPPING } from '../../constants';\nimport * as SharedStyle from '../../shared-style';\nimport { MdAddCircle, MdWarning } from 'react-icons/lib/md';\nimport { VERSION } from '../../version';\n\nconst footerBarStyle = {\n position: 'absolute',\n bottom: 0,\n lineHeight: '14px',\n fontSize: '12px',\n color: SharedStyle.COLORS.white,\n backgroundColor: SharedStyle.SECONDARY_COLOR.alt,\n padding: '3px 1em',\n margin: 0,\n boxSizing: 'border-box',\n cursor: 'default',\n userSelect: 'none',\n zIndex: '9001'\n};\n\nexport const leftTextStyle = {\n position: 'relative',\n borderRight: '1px solid #FFF',\n float: 'left',\n padding: '0 1em',\n display: 'inline-block'\n};\n\nexport const rightTextStyle = {\n position: 'relative',\n borderLeft: '1px solid #FFF',\n float: 'right',\n padding: '0 1em',\n display: 'inline-block'\n};\n\nconst coordStyle = {\n display: 'inline-block',\n width: '6em',\n margin: 0,\n padding: 0\n};\n\nconst appMessageStyle = { borderBottom: '1px solid #555', lineHeight: '1.5em' };\n\nexport default class FooterBar extends Component {\n constructor(props, context) {\n super(props, context);\n this.state = {};\n }\n\n render() {\n let { state: globalState, width, height } = this.props;\n let { translator, projectActions } = this.context;\n let { x, y } = globalState.get('mouse').toJS();\n let zoom = globalState.get('zoom');\n let mode = globalState.get('mode');\n\n let errors = globalState.get('errors').toArray();\n let errorsJsx = errors.map((err, ind) =>\n
[ {(new Date(err.date)).toLocaleString()} ] {err.error}
\n );\n let errorLableStyle = errors.length ? { color: SharedStyle.MATERIAL_COLORS[500].red } : {};\n let errorIconStyle = errors.length ? { transform: 'rotate(45deg)', color: SharedStyle.MATERIAL_COLORS[500].red } : { transform: 'rotate(45deg)' };\n\n let warnings = globalState.get('warnings').toArray();\n let warningsJsx = warnings.map((warn, ind) =>\n
[ {(new Date(warn.date)).toLocaleString()} ] {warn.warning}
\n );\n let warningLableStyle = warnings.length ? { color: SharedStyle.MATERIAL_COLORS[500].yellow } : {};\n let warningIconStyle = warningLableStyle;\n\n let updateSnapMask = (val) => projectActions.toggleSnap(globalState.snapMask.merge(val));\n\n return (\n
\n\n \n
\n
X : {x.toFixed(3)}
\n
Y : {y.toFixed(3)}
\n
\n\n
Zoom: {zoom.toFixed(3)}X
\n\n
\n { updateSnapMask({ SNAP_POINT: true }); }}\n toggleOff={() => { updateSnapMask({ SNAP_POINT: false }); }}\n text=\"Snap PT\"\n toggleState={globalState.snapMask.get(SNAP_POINT)}\n title={translator.t('Snap to Point')}\n />\n { updateSnapMask({ SNAP_LINE: true }); }}\n toggleOff={() => { updateSnapMask({ SNAP_LINE: false }); }}\n text=\"Snap LN\"\n toggleState={globalState.snapMask.get(SNAP_LINE)}\n title={translator.t('Snap to Line')}\n />\n { updateSnapMask({ SNAP_SEGMENT: true }); }}\n toggleOff={() => { updateSnapMask({ SNAP_SEGMENT: false }); }}\n text=\"Snap SEG\"\n toggleState={globalState.snapMask.get(SNAP_SEGMENT)}\n title={translator.t('Snap to Segment')}\n />\n { updateSnapMask({ SNAP_GRID: true }); }}\n toggleOff={() => { updateSnapMask({ SNAP_GRID: false }); }}\n text=\"Snap GRD\"\n toggleState={globalState.snapMask.get(SNAP_GRID)}\n title={translator.t('Snap to Grid')}\n />\n { updateSnapMask({ SNAP_GUIDE: true }); }}\n toggleOff={() => { updateSnapMask({ SNAP_GUIDE: false }); }}\n text=\"Snap GDE\"\n toggleState={globalState.snapMask.get(SNAP_GUIDE)}\n title={translator.t('Snap to Guide')}\n />\n
\n
\n\n {this.props.footerbarComponents.map((Component, index) => )}\n\n {\n this.props.softwareSignature ?\n \n {this.props.softwareSignature}\n
\n : null\n }\n\n
\n \n \n
\n\n \n );\n }\n}\n\nFooterBar.propTypes = {\n state: PropTypes.object.isRequired,\n footerbarComponents: PropTypes.array.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n softwareSignature: PropTypes.string\n};\n\nFooterBar.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n viewer2DActions: PropTypes.object.isRequired,\n viewer3DActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import FooterToggleButton from './footer-toggle-button';\nimport FooterContentButton from './footer-content-button';\nimport FooterBar from './footerbar';\n\nexport {\n FooterToggleButton,\n FooterContentButton,\n FooterBar\n};\n\nexport default {\n FooterToggleButton,\n FooterContentButton,\n FooterBar\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from './panel';\nimport * as SharedStyle from '../../shared-style';\nimport {TiPlus, TiDelete} from 'react-icons/lib/ti';\nimport {FaPencil, FaTrash, FaEye, FaChain, FaChainBroken} from 'react-icons/lib/fa';\nimport { Map } from 'immutable';\n\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../constants';\n\nconst VISIBILITY_MODE = {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n};\n\nconst styleEditButton = {\n marginLeft: '5px',\n border: '0px',\n background: 'none',\n color: SharedStyle.COLORS.white,\n fontSize: '14px',\n outline: '0px'\n};\n\nconst tablegroupStyle = {\n width: '100%',\n cursor: 'pointer',\n maxHeight: '20em',\n padding: '0 1em',\n marginLeft: '1px'\n};\n\nconst iconColStyle = {width: '2em', textAlign: 'center'};\nconst styleHoverColor = {color: SharedStyle.SECONDARY_COLOR.main};\nconst styleEditButtonHover = {...styleEditButton, ...styleHoverColor};\nconst styleAddLabel = {fontSize: '10px', marginLeft: '5px'};\nconst styleEyeVisible = {fontSize: '1.25em'};\nconst styleEyeHidden = {...styleEyeVisible, color: '#a5a1a1'};\nconst newLayerLableStyle = {fontSize: '1.3em', cursor: 'pointer', textAlign: 'center'};\nconst newLayerLableHoverStyle = {...newLayerLableStyle, ...styleHoverColor};\n\nexport default class PanelGroups extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n newEmptyHover: false,\n newSelectedHover: false\n };\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n return ( \n this.props.groups.hashCode() !== nextProps.groups.hashCode() ||\n this.props.layers.hashCode() !== nextProps.layers.hashCode() ||\n this.props.mode !== nextProps.mode\n );\n }\n\n render() {\n let { mode, groups, layers } = this.props;\n\n if (!VISIBILITY_MODE[ mode ]) return null;\n\n return (\n 0}>\n { groups.size ? \n \n \n \n \n \n \n \n \n {\n groups.entrySeq().map(([ groupID, group ]) => {\n\n let selectClick = e => this.context.groupsActions.selectGroup(groupID);\n\n let swapVisibility = e => {\n e.stopPropagation();\n this.context.groupsActions.setGroupProperties(groupID, new Map({visible: !group.get('visible')}));\n };\n\n let chainToGroup = e => {\n layers.forEach((layer) => {\n\n let layerID = layer.get('id');\n let layerElements = {\n 'lines': layer.get('lines'),\n 'items': layer.get('items'),\n 'holes': layer.get('holes'),\n 'areas': layer.get('areas')\n };\n\n for( let elementPrototype in layerElements )\n {\n let ElementList = layerElements[elementPrototype];\n ElementList.filter( el => el.get('selected') ).forEach( element => {\n this.context.groupsActions.addToGroup( groupID, layerID, elementPrototype, element.get('id') );\n });\n }\n });\n\n selectClick(e);\n };\n\n let isCurrentgroup = group.get('selected');\n let shouldHighlight = isCurrentgroup;\n let rowStyle = !shouldHighlight ? null : styleHoverColor;\n\n let dimension = group.get('elements').reduce( ( sum, layer ) => {\n return sum + layer.reduce( ( lSum, elProt ) => lSum + elProt.size, 0 );\n }, 0);\n\n return (\n \n \n \n \n \n \n \n \n );\n })\n }\n \n
{this.context.translator.t('Elements')}{this.context.translator.t('Name')}
\n \n \n \n \n this.context.groupsActions.removeGroup(groupID) }\n style={!shouldHighlight ? styleEditButton : styleEditButtonHover}\n />\n \n this.context.groupsActions.removeGroupAndDeleteElements(groupID) }\n style={!shouldHighlight ? styleEditButton : styleEditButtonHover}\n />\n \n { dimension }\n \n {group.get('name')}\n
: null }\n\n \n \n \n this.setState({newEmptyHover: true}) }\n onMouseOut={ () => this.setState({newEmptyHover: false}) }\n onClick={ e => this.context.groupsActions.addGroup() }\n >\n \n {this.context.translator.t('New Empty Group')}\n \n this.setState({newSelectedHover: true}) }\n onMouseOut={ () => this.setState({newSelectedHover: false}) }\n onClick={ e => this.context.groupsActions.addGroupFromSelected() }\n >\n \n {this.context.translator.t('New Group from selected')}\n \n \n \n
\n\n
\n )\n }\n\n}\n\nPanelGroups.propTypes = {\n mode: PropTypes.string.isRequired,\n groups: PropTypes.object.isRequired,\n layers: PropTypes.object.isRequired\n};\n\nPanelGroups.contextTypes = {\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n groupsActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from '../panel';\nimport {Seq} from 'immutable';\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../../constants';\nimport { FormSelect } from '../../../components/style/export';\nimport { Group } from '../../../class/export';\n\nconst tableStyle = { width: '100%' };\nconst firstTdStyle = { width: '6em' };\n\nexport default class PanelMultiElementsEditor extends Component {\n//export default function PanelMultiElementsEditor({state}, {projectActions, translator}) {\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n selectedGroupID: ''\n };\n }\n\n addSelectToGroup( state, groupID, layerID, selecteds ) {\n if( !groupID || groupID === '' || !selecteds || !selecteds.size ) return;\n\n console.log('need to be added to group', groupID, 'elements', selecteds );\n\n /*let selectedJs = selecteds.toJS();\n\n for( let lineID in selectedJs.lines ) Group.addElement( state, groupID, layerID, 'lines', lineID );*/\n\n }\n\n render() {\n\n let { mode } = this.props.state;\n\n if (![MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN,\n MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM,\n MODE_DRAGGING_LINE, MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE,\n MODE_ROTATING_ITEM, MODE_UPLOADING_IMAGE, MODE_FITTING_IMAGE].includes(mode)) return null;\n\n let groups = this.props.state.getIn(['scene', 'groups']);\n\n //TODO change in multi-layer check\n let selectedLayer = this.props.state.getIn(['scene', 'selectedLayer']);\n let selecteds = this.props.state.getIn(['scene', 'layers', selectedLayer, 'selected']);\n\n return (\n \n
\n

Multiselection tab

\n \n \n \n \n \n \n \n \n
Add to Group\n this.setState({'selectedGroupID': e.target.value}) }>\n \n {\n groups.entrySeq().map( ([ groupID, group ]) => )\n }\n \n {\n if( !this.state.selectedGroupID || this.state.selectedGroupID === '' || !selecteds || !selecteds.size ) return;\n\n let selectedJs = selecteds.toJS();\n\n for( let x = 0; x < selectedJs.lines.length; x++ )\n this.context.groupsActions.addToGroup( this.state.selectedGroupID, selectedLayer, 'lines', selectedJs.lines[x] );\n\n }}>+
\n
\n
\n );\n\n }\n}\n\nPanelMultiElementsEditor.propTypes = {\n state: PropTypes.object.isRequired,\n};\n\nPanelMultiElementsEditor.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n groupsActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired\n};\n","// ACTIONS project\nexport const NEW_PROJECT = 'NEW_PROJECT';\nexport const LOAD_PROJECT = 'LOAD_PROJECT';\nexport const SAVE_PROJECT = 'SAVE_PROJECT';\nexport const OPEN_CATALOG = 'OPEN_CATALOG';\nexport const SELECT_TOOL_EDIT = 'SELECT_TOOL_EDIT';\nexport const UNSELECT_ALL = 'UNSELECT_ALL';\nexport const SET_PROPERTIES = 'SET_PROPERTIES';\nexport const SET_ITEMS_ATTRIBUTES = 'SET_ITEMS_ATTRIBUTES';\nexport const SET_LINES_ATTRIBUTES = 'SET_LINES_ATTRIBUTES';\nexport const SET_HOLES_ATTRIBUTES = 'SET_HOLES_ATTRIBUTES';\nexport const REMOVE = 'REMOVE';\nexport const UNDO = 'UNDO';\nexport const ROLLBACK = 'ROLLBACK';\nexport const SET_PROJECT_PROPERTIES = 'SET_PROJECT_PROPERTIES';\nexport const OPEN_PROJECT_CONFIGURATOR = 'OPEN_PROJECT_CONFIGURATOR';\nexport const INIT_CATALOG = 'INIT_CATALOG';\nexport const UPDATE_MOUSE_COORDS = 'UPDATE_MOUSE_COORDS';\nexport const UPDATE_ZOOM_SCALE = 'UPDATE_ZOOM_SCALE';\nexport const TOGGLE_SNAP = 'TOGGLE_SNAP';\nexport const CHANGE_CATALOG_PAGE = 'CHANGE_CATALOG_PAGE';\nexport const GO_BACK_TO_CATALOG_PAGE = 'GO_BACK_TO_CATALOG_PAGE';\nexport const THROW_ERROR = 'THROW_ERROR';\nexport const THROW_WARNING = 'THROW_WARNING';\nexport const COPY_PROPERTIES = 'COPY_PROPERTIES';\nexport const PASTE_PROPERTIES = 'PASTE_PROPERTIES';\nexport const PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY = 'PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY';\nexport const ALTERATE_STATE = 'ALTERATE_STATE';\nexport const SET_MODE = 'SET_MODE';\nexport const ADD_HORIZONTAL_GUIDE = 'ADD_HORIZONTAL_GUIDE';\nexport const ADD_VERTICAL_GUIDE = 'ADD_VERTICAL_GUIDE';\nexport const ADD_CIRCULAR_GUIDE = 'ADD_CIRCULAR_GUIDE';\nexport const REMOVE_HORIZONTAL_GUIDE = 'REMOVE_HORIZONTAL_GUIDE';\nexport const REMOVE_VERTICAL_GUIDE = 'REMOVE_VERTICAL_GUIDE';\nexport const REMOVE_CIRCULAR_GUIDE = 'REMOVE_CIRCULAR_GUIDE';\n\n// ACTIONS viewer2D\nexport const SELECT_TOOL_ZOOM_IN = 'SELECT_TOOL_ZOOM_IN';\nexport const SELECT_TOOL_ZOOM_OUT = 'SELECT_TOOL_ZOOM_OUT';\nexport const SELECT_TOOL_PAN = 'SELECT_TOOL_PAN';\nexport const UPDATE_2D_CAMERA = 'UPDATE_2D_CAMERA';\n\n//ACTIONS viewer3D\nexport const SELECT_TOOL_3D_VIEW = 'SELECT_TOOL_3D_VIEW';\nexport const SELECT_TOOL_3D_FIRST_PERSON = 'SELECT_TOOL_3D_FIRST_PERSON';\n\n//ACTIONS items\nexport const SELECT_TOOL_DRAWING_ITEM = 'SELECT_TOOL_DRAWING_ITEM';\nexport const UPDATE_DRAWING_ITEM = 'UPDATE_DRAWING_ITEM';\nexport const END_DRAWING_ITEM = 'END_DRAWING_ITEM';\nexport const BEGIN_DRAGGING_ITEM = 'BEGIN_DRAGGING_ITEM';\nexport const UPDATE_DRAGGING_ITEM = 'UPDATE_DRAGGING_ITEM';\nexport const END_DRAGGING_ITEM = 'END_DRAGGING_ITEM';\nexport const BEGIN_ROTATING_ITEM = 'BEGIN_ROTATING_ITEM';\nexport const UPDATE_ROTATING_ITEM = 'UPDATE_ROTATING_ITEM';\nexport const END_ROTATING_ITEM = 'END_ROTATING_ITEM';\n\n//ACTIONS groups\nexport const ADD_GROUP = 'ADD_GROUP';\nexport const ADD_GROUP_FROM_SELECTED = 'ADD_GROUP_FROM_SELECTED';\nexport const SELECT_GROUP = 'SELECT_GROUP';\nexport const UNSELECT_GROUP = 'UNSELECT_GROUP';\nexport const ADD_TO_GROUP = 'ADD_TO_GROUP';\nexport const REMOVE_FROM_GROUP = 'REMOVE_FROM_GROUP';\nexport const SET_GROUP_PROPERTIES = 'SET_GROUP_PROPERTIES';\nexport const SET_GROUP_ATTRIBUTES = 'SET_GROUP_ATTRIBUTES';\nexport const SET_GROUP_BARYCENTER = 'SET_GROUP_BARYCENTER';\nexport const REMOVE_GROUP = 'REMOVE_GROUP';\nexport const REMOVE_GROUP_AND_DELETE_ELEMENTS = 'REMOVE_GROUP_AND_DELETE_ELEMENTS';\nexport const GROUP_TRANSLATE = 'GROUP_TRANSLATE';\nexport const GROUP_ROTATE = 'GROUP_ROTATE';\n\n//ACTION drawings\nexport const SELECT_HOLE = 'SELECT_HOLE';\nexport const SELECT_AREA = 'SELECT_AREA';\nexport const SELECT_ITEM = 'SELECT_ITEM';\nexport const SELECT_LINE = 'SELECT_LINE';\nexport const SELECT_TOOL_DRAWING_LINE = 'SELECT_TOOL_DRAWING_LINE';\nexport const BEGIN_DRAWING_LINE = 'BEGIN_DRAWING_LINE';\nexport const UPDATE_DRAWING_LINE = 'UPDATE_DRAWING_LINE';\nexport const END_DRAWING_LINE = 'END_DRAWING_LINE';\nexport const SELECT_TOOL_DRAWING_HOLE = 'SELECT_TOOL_DRAWING_HOLE';\nexport const UPDATE_DRAWING_HOLE = 'UPDATE_DRAWING_HOLE'; //SHOULD BE SLPITTED IN BEGIN_DRAWING_HOLE AND UPDATE_DRAWING_HOLE\nexport const END_DRAWING_HOLE = 'END_DRAWING_HOLE';\nexport const BEGIN_DRAGGING_LINE = 'BEGIN_DRAGGING_LINE';\nexport const UPDATE_DRAGGING_LINE = 'UPDATE_DRAGGING_LINE';\nexport const END_DRAGGING_LINE = 'END_DRAGGING_LINE';\nexport const SELECT_TOOL_UPLOAD_IMAGE = 'SELECT_TOOL_UPLOAD_IMAGE';\nexport const BEGIN_UPLOADING_IMAGE = 'BEGIN_UPLOADING_IMAGE';\nexport const END_UPLOADING_IMAGE = 'END_UPLOADING_IMAGE';\nexport const BEGIN_FITTING_IMAGE = 'BEGIN_FITTING_IMAGE';\nexport const END_FITTING_IMAGE = 'END_FITTING_IMAGE';\nexport const BEGIN_DRAGGING_HOLE = 'BEGIN_DRAGGING_HOLE';\nexport const UPDATE_DRAGGING_HOLE = 'UPDATE_DRAGGING_HOLE';\nexport const END_DRAGGING_HOLE = 'END_DRAGGING_HOLE';\n\n//ACTIONS vertices\nexport const BEGIN_DRAGGING_VERTEX = 'BEGIN_DRAGGING_VERTEX';\nexport const UPDATE_DRAGGING_VERTEX = 'UPDATE_DRAGGING_VERTEX';\nexport const END_DRAGGING_VERTEX = 'END_DRAGGING_VERTEX';\n\n//ACTIONS scene\nexport const SET_LAYER_PROPERTIES = 'SET_LAYER_PROPERTIES';\nexport const ADD_LAYER = 'ADD_LAYER';\nexport const SELECT_LAYER = 'SELECT_LAYER';\nexport const REMOVE_LAYER = 'REMOVE_LAYER';\n\n//GROUPING ACTIONS\nexport const PROJECT_ACTIONS = {\n NEW_PROJECT,\n LOAD_PROJECT,\n SAVE_PROJECT,\n OPEN_CATALOG,\n SELECT_TOOL_EDIT,\n UNSELECT_ALL,\n SET_PROPERTIES,\n SET_ITEMS_ATTRIBUTES,\n SET_LINES_ATTRIBUTES,\n SET_HOLES_ATTRIBUTES,\n REMOVE,\n UNDO,\n ROLLBACK,\n SET_PROJECT_PROPERTIES,\n OPEN_PROJECT_CONFIGURATOR,\n INIT_CATALOG,\n UPDATE_MOUSE_COORDS,\n UPDATE_ZOOM_SCALE,\n TOGGLE_SNAP,\n CHANGE_CATALOG_PAGE,\n GO_BACK_TO_CATALOG_PAGE,\n THROW_ERROR,\n THROW_WARNING,\n COPY_PROPERTIES,\n PASTE_PROPERTIES,\n PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,\n ALTERATE_STATE,\n SET_MODE,\n ADD_HORIZONTAL_GUIDE,\n ADD_VERTICAL_GUIDE,\n ADD_CIRCULAR_GUIDE,\n REMOVE_HORIZONTAL_GUIDE,\n REMOVE_VERTICAL_GUIDE,\n REMOVE_CIRCULAR_GUIDE\n};\n\nexport const VIEWER2D_ACTIONS = {\n SELECT_TOOL_ZOOM_IN,\n SELECT_TOOL_ZOOM_OUT,\n SELECT_TOOL_PAN,\n UPDATE_2D_CAMERA\n};\n\nexport const VIEWER3D_ACTIONS = {\n SELECT_TOOL_3D_VIEW,\n SELECT_TOOL_3D_FIRST_PERSON\n};\n\nexport const ITEMS_ACTIONS = {\n SELECT_ITEM,\n SELECT_TOOL_DRAWING_ITEM,\n UPDATE_DRAWING_ITEM,\n END_DRAWING_ITEM,\n BEGIN_DRAGGING_ITEM,\n UPDATE_DRAGGING_ITEM,\n END_DRAGGING_ITEM,\n BEGIN_ROTATING_ITEM,\n UPDATE_ROTATING_ITEM,\n END_ROTATING_ITEM\n};\n\nexport const HOLE_ACTIONS = {\n SELECT_HOLE,\n SELECT_TOOL_DRAWING_HOLE,\n UPDATE_DRAWING_HOLE,\n END_DRAWING_HOLE,\n BEGIN_DRAGGING_HOLE,\n UPDATE_DRAGGING_HOLE,\n END_DRAGGING_HOLE\n};\n\nexport const LINE_ACTIONS = {\n SELECT_LINE,\n SELECT_TOOL_DRAWING_LINE,\n BEGIN_DRAWING_LINE,\n UPDATE_DRAWING_LINE,\n END_DRAWING_LINE,\n BEGIN_DRAGGING_LINE,\n UPDATE_DRAGGING_LINE,\n END_DRAGGING_LINE\n};\n\nexport const AREA_ACTIONS = {\n SELECT_AREA\n};\n\nexport const GROUP_ACTIONS = {\n ADD_GROUP,\n ADD_GROUP_FROM_SELECTED,\n SELECT_GROUP,\n UNSELECT_GROUP,\n ADD_TO_GROUP,\n REMOVE_FROM_GROUP,\n SET_GROUP_PROPERTIES,\n SET_GROUP_ATTRIBUTES,\n SET_GROUP_BARYCENTER,\n REMOVE_GROUP,\n REMOVE_GROUP_AND_DELETE_ELEMENTS,\n GROUP_TRANSLATE,\n GROUP_ROTATE\n};\n\nexport const SCENE_ACTIONS = {\n ADD_LAYER,\n SET_LAYER_PROPERTIES,\n SELECT_LAYER,\n REMOVE_LAYER\n};\n\nexport const VERTEX_ACTIONS = {\n BEGIN_DRAGGING_VERTEX,\n UPDATE_DRAGGING_VERTEX,\n END_DRAGGING_VERTEX\n};\n\n//MODES\nexport const MODE_IDLE = 'MODE_IDLE';\nexport const MODE_2D_ZOOM_IN = 'MODE_2D_ZOOM_IN';\nexport const MODE_2D_ZOOM_OUT = 'MODE_2D_ZOOM_OUT';\nexport const MODE_2D_PAN = 'MODE_2D_PAN';\nexport const MODE_3D_VIEW = 'MODE_3D_VIEW';\nexport const MODE_3D_FIRST_PERSON = 'MODE_3D_FIRST_PERSON';\nexport const MODE_WAITING_DRAWING_LINE = 'MODE_WAITING_DRAWING_LINE';\nexport const MODE_DRAGGING_LINE = 'MODE_DRAGGING_LINE';\nexport const MODE_DRAGGING_VERTEX = 'MODE_DRAGGING_VERTEX';\nexport const MODE_DRAGGING_ITEM = 'MODE_DRAGGING_ITEM';\nexport const MODE_DRAGGING_HOLE = 'MODE_DRAGGING_HOLE';\nexport const MODE_DRAWING_LINE = 'MODE_DRAWING_LINE';\nexport const MODE_DRAWING_HOLE = 'MODE_DRAWING_HOLE';\nexport const MODE_DRAWING_ITEM = 'MODE_DRAWING_ITEM';\nexport const MODE_ROTATING_ITEM = 'MODE_ROTATING_ITEM';\nexport const MODE_UPLOADING_IMAGE = 'MODE_UPLOADING_IMAGE';\nexport const MODE_FITTING_IMAGE = 'MODE_FITTING_IMAGE';\nexport const MODE_VIEWING_CATALOG = 'MODE_VIEWING_CATALOG';\nexport const MODE_CONFIGURING_PROJECT = 'MODE_CONFIGURING_PROJECT';\n\n//Thinking about it...\n//https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n/*\nlet MODE_DEF = [\n 'IDLE',\n '2D_ZOOM_IN',\n '2D_ZOOM_OUT',\n '2D_PAN',\n '3D_VIEW',\n '3D_FIRST_PERSON',\n 'WAITING_DRAWING_LINE',\n 'DRAGGING_LINE',\n 'DRAGGING_VERTEX',\n 'DRAGGING_ITEM',\n 'DRAGGING_HOLE',\n 'DRAWING_LINE',\n 'DRAWING_HOLE',\n 'DRAWING_ITEM',\n 'ROTATING_ITEM',\n 'UPLOADING_IMAGE',\n 'FITTING_IMAGE',\n 'VIEWING_CATALOG',\n 'CONFIGURING_PROJECT',\n];\n\nexport const MODE = new Proxy( MODE_DEF, { get: (target, name) => { return target.indexOf(name) !== -1 ? name : null } } );\n*/\n\nexport const MODE_SNAPPING = [\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE,\n MODE_DRAWING_ITEM, MODE_DRAGGING_LINE, MODE_DRAGGING_VERTEX,\n MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE,\n MODE_UPLOADING_IMAGE, MODE_ROTATING_ITEM\n];\n\n//UNITS\nexport const UNIT_MILLIMETER = 'mm';\nexport const UNIT_CENTIMETER = 'cm';\nexport const UNIT_METER = 'm';\nexport const UNIT_INCH = 'in';\nexport const UNIT_FOOT = 'ft';\nexport const UNIT_MILE = 'mi';\n\nexport const UNITS_LENGTH = [\n UNIT_MILLIMETER,\n UNIT_CENTIMETER,\n UNIT_METER,\n UNIT_INCH,\n UNIT_FOOT,\n UNIT_MILE\n];\n\nexport const EPSILON = 1e-6;\n\nexport const KEYBOARD_BUTTON_CODE = {\n DELETE: 46,\n BACKSPACE: 8,\n ESC: 27,\n Z: 90,\n ALT: 18,\n C: 67,\n V: 86,\n CTRL: 17,\n ENTER: 13,\n TAB: 9\n};","import Viewer2D from './viewer2d';\nimport Vertex from './vertex';\nimport State from './state';\nimport Snap from './snap';\nimport Scene from './scene';\nimport Ruler from './ruler';\nimport Line from './line';\nimport Layer from './layer';\nimport Item from './item';\nimport Area from './area';\nimport Grids from './grids/grids';\nimport Group from './group';\nimport RulerX from './rulerX';\nimport RulerY from './rulerY';\n\nexport {\n Viewer2D,\n Vertex,\n State,\n Snap,\n Scene,\n Ruler,\n Line,\n Layer,\n Item,\n Area,\n Grids,\n Group,\n RulerX,\n RulerY\n};\n\nexport default {\n Viewer2D,\n Vertex,\n State,\n Snap,\n Scene,\n Ruler,\n Line,\n Layer,\n Item,\n Area,\n Grids,\n Group,\n RulerX,\n RulerY\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\n//http://www.cssportal.com/css-tooltip-generator/\n\nconst STYLE = {\n width: '30px',\n height: '30px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n marginBottom: '5px',\n fontSize: '25px',\n position: 'relative',\n cursor: 'pointer'\n};\n\nconst STYLE_TOOLTIP = {\n position: 'absolute',\n width: '140px',\n color: SharedStyle.COLORS.white,\n background: SharedStyle.COLORS.black,\n height: '30px',\n lineHeight: '30px',\n textAlign: 'center',\n visibility: 'visible',\n borderRadius: '6px',\n opacity: '0.8',\n left: '100%',\n top: '50%',\n marginTop: '-15px',\n marginLeft: '15px',\n zIndex: '999',\n fontSize: '12px'\n};\n\nconst STYLE_TOOLTIP_PIN = {\n position: 'absolute',\n top: '50%',\n right: '100%',\n marginTop: '-8px',\n width: '0',\n height: '0',\n borderRight: '8px solid #000000',\n borderTop: '8px solid transparent',\n borderBottom: '8px solid transparent'\n};\n\nexport default class ToolbarButton extends Component {\n\n constructor(props, context) {\n super(props, context);\n this.state = { active: false };\n }\n\n render() {\n let { state, props } = this;\n let color = props.active || state.active ? SharedStyle.SECONDARY_COLOR.icon : SharedStyle.PRIMARY_COLOR.icon;\n\n return (\n
this.setState({ active: true })}\n onMouseOut={event => this.setState({ active: false })}>\n
\n {props.children}\n
\n\n {\n state.active ?\n
\n \n {props.tooltip}\n
\n : null\n }\n\n
\n )\n }\n}\n\nToolbarButton.propTypes = {\n active: PropTypes.bool.isRequired,\n tooltip: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n};\n","// COLORS\nexport const COLORS = {\n white: '#FFF',\n black: '#000'\n};\n\nexport const MATERIAL_COLORS = {\n 500: {\n amber: '#FFC107',\n blue_grey: '#607D8B',\n blue: '#2196F3',\n brown: '#795548',\n cyan: '#00BCD4',\n deep_orange: '#FF5722',\n deep_purple: '#673AB7',\n green: '#4CAF50',\n grey: '#9E9E9E',\n indigo: '#3F51B5',\n light_blue: '#03A9F4',\n light_green: '#8BC34A',\n lime: '#CDDC39',\n orange: '#FF9800',\n pink: '#E91E63',\n purple: '#9C27B0',\n red: '#F44336',\n teal: '#009688',\n yellow: '#FFEB3B'\n }\n};\n\nexport const PRIMARY_COLOR = {\n main: '#28292D',\n alt: '#2E2F33',\n icon: '#C2C2C2',\n border: '1px solid #555',\n text_main: COLORS.white,\n text_alt: '#EBEBEB',\n input: '#55595C'\n};\n\nexport const SECONDARY_COLOR = {\n main: '#1CA6FC',\n alt: '#005FAF',\n icon: '#1CA6FC',\n border: '1px solid #FFF'\n};\n\nexport const MESH_SELECTED = '#99C3FB';\n\nexport const AREA_MESH_COLOR = {\n selected: MESH_SELECTED,\n unselected: '#F5F4F4'\n};\n\nexport const LINE_MESH_COLOR = {\n selected: MESH_SELECTED,\n unselected: '#8E9BA2'\n}","import EN from './en'\nimport IT from './it'\nimport RU from './ru'\n\nconst DEFAULT_LOCALE = 'en'\n\nexport default class Translator {\n constructor() {\n this.locale = null\n this.translations = {}\n\n this.registerTranslation('en', EN)\n this.registerTranslation('it', IT)\n this.registerTranslation('ru', RU)\n\n let locale = null\n let languages = Translator.getBrowserLanguages()\n for (let i = 0; i < languages.length; i++) {\n let lang = languages[i]\n if (this.translations.hasOwnProperty(lang)) {\n locale = lang\n break\n }\n }\n locale = locale ? locale : DEFAULT_LOCALE\n\n this.setLocale(locale)\n }\n\n t(phrase, ...params) {\n return this.translate(phrase, ...params)\n }\n\n translate(phrase, ...params) {\n let locale = this.locale\n\n let translation = this.translations[locale]\n if (!translation.hasOwnProperty(phrase)) {\n console.warn(`translation '${phrase}' not found in language '${locale}'`)\n return phrase\n }\n\n let translatedPhrase = translation[phrase]\n\n translatedPhrase = translatedPhrase.replace(/{(\\d+)}/g, function(match, number) {\n return typeof params[number] != 'undefined' ? params[number] : match\n })\n\n return translatedPhrase\n }\n\n setLocale(locale) {\n locale = locale.toLowerCase()\n\n if (this.translations.hasOwnProperty(locale)) {\n this.locale = locale\n } else {\n console.warn(`locale '${locale}' not available, switch to ${DEFAULT_LOCALE}`)\n this.locale = DEFAULT_LOCALE.toLowerCase()\n }\n }\n\n registerTranslation(locale, translations) {\n if (!this.translations.hasOwnProperty(locale)) {\n this.translations[locale] = translations\n } else {\n Object.assign(this.translations[locale], translations)\n }\n }\n\n static getBrowserLanguages() {\n return navigator.languages\n ? navigator.languages\n : [navigator.language || navigator.userLanguage]\n }\n}\n","import React, { Component } from 'react';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE_INPUT = {\n display: 'block',\n width: '100%',\n padding: '0 2px',\n fontSize: '13px',\n lineHeight: '1.25',\n color: SharedStyle.PRIMARY_COLOR.input,\n backgroundColor: SharedStyle.COLORS.white,\n backgroundImage: 'none',\n border: '1px solid rgba(0,0,0,.15)',\n outline: 'none',\n height: '30px',\n};\n\n\nexport default class FormTextInput extends Component {\n\n constructor(props) {\n super(props);\n this.state = { focus: false };\n }\n\n render() {\n let { style, ...rest } = this.props;\n\n let textInputStyle = { ...STYLE_INPUT, ...style };\n if (this.state.focus) textInputStyle.border = `1px solid ${SharedStyle.SECONDARY_COLOR.main}`;\n\n return this.setState({ focus: true })}\n onBlur={e => this.setState({ focus: false })}\n style={textInputStyle}\n type=\"text\"\n {...rest}\n />\n }\n}\n\nFormTextInput.defaultProps = {\n style: {}\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nconst BASE_STYLE = {\n display: \"inline-block\",\n fontWeight: \"400\",\n lineHeight: \"1.25\",\n textAlign: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n cursor: \"pointer\",\n WebkitUserSelect: \"none\",\n MozUserSelect: \"none\",\n MsUserSelect: \"none\",\n userSelect: \"none\",\n padding: \"5px 14px\",\n fontSize: \"14px\",\n color: SharedStyle.COLORS.black,\n fonWeight: \"400px\",\n transition: \"background-color 175ms ease, border 175ms ease\",\n outline: \"none\",\n borderRadius: \"2px\",\n borderWidth: \"1px\",\n borderType: \"solid\",\n width: '100%'\n};\n\nconst BASE_STYLE_SIZE = {\n small: {\n fontSize: \"12px\",\n padding: \"3px 8px\",\n },\n normal: {},\n large: {\n padding: \"8px 20px\",\n },\n};\n\nexport default class Button extends Component {\n\n constructor(props) {\n super(props);\n this.state = {hover: false};\n }\n\n render() {\n let {hover} = this.state;\n let {type, style: customStyle, styleHover: customStyleHover, children, size, ...rest} = this.props;\n let styleMerged = Object.assign({}, BASE_STYLE, BASE_STYLE_SIZE[size], hover ? customStyleHover : customStyle);\n\n return this.setState({hover: true})}\n onMouseLeave={e => this.setState({hover: false})}\n style={styleMerged}\n {...rest}>{children}\n }\n}\n\nButton.defaultProps = {\n type: \"button\",\n size: \"normal\",\n style: {\n backgroundColor: \"#e6e6e6\",\n borderColor: \"#adadad\",\n },\n styleHover: {\n backgroundColor: \"#d4d4d4\",\n borderColor: \"#8c8c8c\"\n },\n};\n\nButton.propTypes = {\n type: PropTypes.string,\n style: PropTypes.object,\n styleHover: PropTypes.object,\n size: PropTypes.oneOf(['large', 'normal', 'small']),\n};\n\n","import * as Three from 'three';\n\nfunction disposeGeometry(geometry) {\n geometry.dispose();\n}\n\nfunction disposeTexture(texture) {\n if (!texture) {\n return;\n }\n texture.dispose();\n}\n\nfunction disposeMultimaterial(material) {\n if (!(material instanceof Three.MultiMaterial)) {\n return;\n }\n material.materials.forEach(material => {\n disposeMaterial(material);\n });\n\n}\n\nfunction disposeMaterial(material) {\n if (!(material instanceof Three.Material)) {\n return;\n }\n\n disposeTexture(material.map);\n material.map = null;\n material.dispose();\n}\n\nfunction disposeMesh(mesh) {\n if (!(mesh instanceof Three.Mesh || mesh instanceof Three.BoxHelper || mesh instanceof Three.LineSegments)) {\n return;\n }\n disposeGeometry(mesh.geometry);\n disposeMultimaterial(mesh.material);\n disposeMaterial(mesh.material);\n\n mesh.geometry = null;\n mesh.material = null;\n}\n\nexport function disposeScene(scene3D) {\n scene3D.traverse(child => {\n disposeMesh(child);\n child = null;\n });\n}\n\nexport function disposeObject(object) {\n object.traverse(child => {\n disposeMesh(child);\n child = null;\n });\n}\n","import {\n NEW_PROJECT,\n LOAD_PROJECT,\n SAVE_PROJECT,\n OPEN_CATALOG,\n SELECT_TOOL_EDIT,\n UNSELECT_ALL,\n SET_PROPERTIES,\n SET_ITEMS_ATTRIBUTES,\n SET_LINES_ATTRIBUTES,\n SET_HOLES_ATTRIBUTES,\n REMOVE,\n UNDO,\n ROLLBACK,\n OPEN_PROJECT_CONFIGURATOR,\n SET_PROJECT_PROPERTIES,\n INIT_CATALOG,\n UPDATE_MOUSE_COORDS,\n UPDATE_ZOOM_SCALE,\n TOGGLE_SNAP,\n CHANGE_CATALOG_PAGE,\n GO_BACK_TO_CATALOG_PAGE,\n THROW_ERROR,\n THROW_WARNING,\n COPY_PROPERTIES,\n PASTE_PROPERTIES,\n PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,\n ALTERATE_STATE,\n SET_MODE,\n ADD_HORIZONTAL_GUIDE,\n ADD_VERTICAL_GUIDE,\n ADD_CIRCULAR_GUIDE,\n REMOVE_HORIZONTAL_GUIDE,\n REMOVE_VERTICAL_GUIDE,\n REMOVE_CIRCULAR_GUIDE\n} from '../constants';\n\nexport function loadProject(sceneJSON) {\n return {\n type: LOAD_PROJECT,\n sceneJSON\n };\n}\n\nexport function newProject() {\n return {\n type: NEW_PROJECT\n };\n}\n\nexport function saveProject() {\n return {\n type: SAVE_PROJECT\n };\n}\n\nexport function openCatalog() {\n return {\n type: OPEN_CATALOG\n };\n}\n\nexport function changeCatalogPage(newPage, oldPage) {\n return {\n type: CHANGE_CATALOG_PAGE,\n newPage,\n oldPage\n };\n}\n\nexport function goBackToCatalogPage(newPage) {\n return {\n type: GO_BACK_TO_CATALOG_PAGE,\n newPage\n };\n}\n\nexport function selectToolEdit() {\n return {\n type: SELECT_TOOL_EDIT\n };\n}\n\nexport function unselectAll() {\n return {\n type: UNSELECT_ALL\n };\n}\n\n\nexport function setProperties(properties) {\n return {\n type: SET_PROPERTIES,\n properties\n };\n}\n\nexport function setItemsAttributes(itemsAttributes) {\n\n itemsAttributes = itemsAttributes.set('rotation', parseFloat(itemsAttributes.get('rotation')));\n\n return {\n type: SET_ITEMS_ATTRIBUTES,\n itemsAttributes\n };\n}\n\nexport function setLinesAttributes(linesAttributes) {\n\n linesAttributes = linesAttributes.withMutations(attributes => {\n attributes.setIn(['vertexOne', 'x'], parseFloat(linesAttributes.getIn(['vertexOne', 'x'])));\n attributes.setIn(['vertexOne', 'y'], parseFloat(linesAttributes.getIn(['vertexOne', 'y'])));\n attributes.setIn(['vertexTwo', 'x'], parseFloat(linesAttributes.getIn(['vertexTwo', 'x'])));\n attributes.setIn(['vertexTwo', 'y'], parseFloat(linesAttributes.getIn(['vertexTwo', 'y'])));\n });\n\n return {\n type: SET_LINES_ATTRIBUTES,\n linesAttributes\n };\n}\n\nexport function setHolesAttributes(holesAttributes) {\n\n holesAttributes = holesAttributes.set('offset', parseFloat(holesAttributes.get('offset')));\n\n return {\n type: SET_HOLES_ATTRIBUTES,\n holesAttributes\n };\n}\n\nexport function remove() {\n return {\n type: REMOVE\n };\n}\n\nexport function undo() {\n return {\n type: UNDO\n };\n}\n\nexport function rollback() {\n return {\n type: ROLLBACK\n };\n}\n\nexport function openProjectConfigurator() {\n return {\n type: OPEN_PROJECT_CONFIGURATOR\n };\n}\n\nexport function setProjectProperties(properties) {\n return {\n type: SET_PROJECT_PROPERTIES,\n properties\n };\n}\n\nexport function initCatalog(catalog) {\n return {\n type: INIT_CATALOG,\n catalog\n };\n}\n\nexport function updateMouseCoord(coords = {x, y}) {\n return {\n type: UPDATE_MOUSE_COORDS,\n coords\n };\n}\n\nexport function updateZoomScale(scale) {\n return {\n type: UPDATE_ZOOM_SCALE,\n scale\n };\n}\n\nexport function toggleSnap(mask) {\n return {\n type: TOGGLE_SNAP,\n mask\n };\n}\n\nexport function throwError(error) {\n return {\n type: THROW_ERROR,\n error\n };\n}\n\nexport function throwWarning(warning) {\n return {\n type: THROW_WARNING,\n warning\n };\n}\n\nexport function copyProperties(properties) {\n return {\n type: COPY_PROPERTIES,\n properties\n };\n}\n\nexport function pasteProperties() {\n return {\n type: PASTE_PROPERTIES\n };\n}\n\nexport function pushLastSelectedCatalogElementToHistory( element ) {\n return {\n type: PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,\n element\n };\n}\n\nexport function setAlterateState() {\n return {\n type: ALTERATE_STATE\n };\n}\n\nexport function setMode( mode ) {\n return {\n type: SET_MODE,\n mode\n };\n}\n\nexport function addHorizontalGuide( coordinate ) {\n return {\n type: ADD_HORIZONTAL_GUIDE,\n coordinate\n };\n}\n\nexport function addVerticalGuide( coordinate ) {\n return {\n type: ADD_VERTICAL_GUIDE,\n coordinate\n };\n}\n\nexport function addCircularGuide( x, y, radius ) {\n return {\n type: ADD_CIRCULAR_GUIDE,\n x,\n y,\n radius\n };\n}\nexport function removeHorizontalGuide( guideID ) {\n return {\n type: REMOVE_HORIZONTAL_GUIDE,\n guideID\n };\n}\n\nexport function removeVerticalGuide( guideID ) {\n return {\n type: REMOVE_VERTICAL_GUIDE,\n guideID\n };\n}\n\nexport function removeCircularGuide( guideID ) {\n return {\n type: REMOVE_CIRCULAR_GUIDE,\n guideID\n };\n}","import * as projectActions from './project-actions';\nimport * as viewer2DActions from './viewer2d-actions';\nimport * as viewer3DActions from './viewer3d-actions';\nimport * as linesActions from './lines-actions';\nimport * as holesActions from './holes-actions';\nimport * as sceneActions from './scene-actions';\nimport * as verticesActions from './vertices-actions';\nimport * as itemsActions from './items-actions';\nimport * as areaActions from './area-actions';\nimport * as groupsActions from './groups-actions';\n\nexport {\n projectActions,\n viewer2DActions,\n viewer3DActions,\n linesActions,\n holesActions,\n sceneActions,\n verticesActions,\n itemsActions,\n areaActions,\n groupsActions\n};\n\nexport default {\n projectActions,\n viewer2DActions,\n viewer3DActions,\n linesActions,\n holesActions,\n sceneActions,\n verticesActions,\n itemsActions,\n areaActions,\n groupsActions\n};\n","/** @description Return float fixed to desired precision\n * @param {number} num Float to fix\n * @param {number} precision Desired precision, or 6 if not specified\n * @return {number}\n*/\nexport function toFixedFloat(num, precision = 6) {\n if (num && precision) {\n return parseFloat(parseFloat(num).toFixed(precision));\n }\n return 0;\n}\n\n/** @description Return absolute value of a number\n * @param {number} n Number of wich get value without sign\n * @return {number}\n*/\nexport const fAbs = n => { let x = n; (x < 0) && (x = ~x + 1); return x; };\n\n/** @description Multiply two matrices\n * @param {Array} m1 Matrix 1\n * @param {Array} m2 Matrix 2\n * @return {Array}\n*/\nexport const multiplyMatrices = (m1, m2) => {\n let result = [];\n for (let i = 0; i < m1.length; i++) {\n result[i] = [];\n for (let j = 0; j < m2[0].length; j++) {\n let sum = 0;\n for (let k = 0; k < m1[0].length; k++) {\n sum += m1[i][k] * m2[k][j];\n }\n result[i][j] = sum;\n }\n }\n return result;\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from './panel';\nimport * as SharedStyle from '../../shared-style';\nimport {TiPlus, TiDelete} from 'react-icons/lib/ti';\nimport {FaPencil, FaChainBroken, FaEye} from 'react-icons/lib/fa';\nimport { FormNumberInput, FormTextInput } from '../style/export';\nimport { Map } from 'immutable';\n\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../constants';\n\nconst VISIBILITY_MODE = {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n};\n\nconst tableStyle = { width: '100%' };\nconst firstTdStyle = { width: '6em' };\nconst inputStyle = { textAlign: 'left' };\nconst styleEditButton = {\n marginLeft: '5px',\n border: '0px',\n background: 'none',\n color: SharedStyle.COLORS.white,\n fontSize: '14px',\n outline: '0px'\n};\n\nconst tablegroupStyle = {\n width: '100%',\n cursor: 'pointer',\n maxHeight: '20em',\n marginLeft: '1px',\n marginTop: '1em'\n};\n\nconst iconColStyle = {width: '2em'};\n\nexport default class PanelGroupEditor extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {};\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n return true;\n }\n\n componentWillReceiveProps( nextProps, nextContext ) {\n }\n\n render() {\n if (!this.props.groupID || !VISIBILITY_MODE[this.props.state.mode]) return null;\n\n let group = this.props.state.getIn(['scene', 'groups', this.props.groupID]);\n let elements = group.get('elements');\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{this.context.translator.t('Name')}\n this.context.groupsActions.setGroupAttributes( this.props.groupID, new Map({ 'name': e.target.value }) ) }\n style={inputStyle}\n />\n
X\n this.context.groupsActions.groupTranslate( this.props.groupID, e.target.value, group.get('y') ) }\n style={inputStyle}\n state={this.props.state}\n precision={2}\n />\n
Y\n this.context.groupsActions.groupTranslate( this.props.groupID, group.get('x'), e.target.value ) }\n style={inputStyle}\n state={this.props.state}\n precision={2}\n />\n
{this.context.translator.t('Rotation')}\n this.context.groupsActions.groupRotate( this.props.groupID, e.target.value ) }\n style={inputStyle}\n state={this.props.state}\n precision={2}\n />\n
\n {\n elements.size ?\n
\n

{this.context.translator.t('Group\\'s Elements')}

\n \n \n \n \n \n \n \n \n \n \n {\n elements.entrySeq().map(([ layerID, layerElements ]) => {\n\n return layerElements.entrySeq().map(([elementPrototype, ElementList]) => {\n\n return ElementList.valueSeq().map( elementID => {\n let element = this.props.state.getIn(['scene', 'layers', layerID, elementPrototype, elementID]);\n\n return \n \n \n \n \n ;\n });\n });\n })\n }\n \n
{this.context.translator.t('Layer')}{this.context.translator.t('Prototype')}{this.context.translator.t('Name')}
\n this.context.groupsActions.removeFromGroup( this.props.groupID, layerID, elementPrototype, elementID ) }\n style={styleEditButton}\n />\n \n {layerID}\n \n {elementPrototype}\n \n {element.name}\n
\n
:\n null\n }\n
\n
\n );\n }\n\n}\n\nPanelGroupEditor.propTypes = {\n state: PropTypes.object.isRequired,\n groupID: PropTypes.string\n};\n\nPanelGroupEditor.contextTypes = {\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n groupsActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport PropertyLengthMeasure from '../../../../catalog/properties/property-lenght-measure';\nimport PropertyString from '../../../../catalog/properties/property-string';\n\nexport default function HoleAttributesEditor({element, onUpdate, attributeFormData, state, ...rest}, {translator}) {\n let name = attributeFormData.has('name') ? attributeFormData.get('name') : element.name;\n let offsetA = attributeFormData.has('offsetA') ? attributeFormData.get('offsetA') : element.offsetA;\n let offsetB = attributeFormData.has('offsetB') ? attributeFormData.get('offsetB') : element.offsetA;\n\n return
\n onUpdate('name', mapped)}\n configs={{label: 'Nome'}}\n state={state}\n {...rest}\n />\n onUpdate('offsetA', mapped)}\n configs={{label: 'Offset 1', min: 0, max: Infinity, precision: 2}}\n state={state}\n {...rest}\n />\n onUpdate('offsetB', mapped)}\n configs={{label: 'Offset 2', min: 0, max: Infinity, precision: 2}}\n state={state}\n {...rest}\n />\n
;\n}\n\nHoleAttributesEditor.propTypes = {\n element: PropTypes.object.isRequired,\n onUpdate: PropTypes.func.isRequired,\n attributeFormData: PropTypes.object.isRequired,\n state: PropTypes.object.isRequired\n};\n\nHoleAttributesEditor.contextTypes = {\n translator: PropTypes.object.isRequired,\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport { FormNumberInput, FormTextInput } from '../../../style/export';\nimport { PropertyLengthMeasure } from '../../../../catalog/properties/export';\n\nconst tableStyle = { width: '100%' };\nconst firstTdStyle = { width: '6em' };\nconst inputStyle = { textAlign: 'left' };\n\nexport default function LineAttributesEditor({element, onUpdate, attributeFormData, state, ...rest}, {translator}) {\n\n let name = attributeFormData.has('name') ? attributeFormData.get('name') : element.name;\n let vertexOne = attributeFormData.has('vertexOne') ? attributeFormData.get('vertexOne') : null;\n let vertexTwo = attributeFormData.has('vertexTwo') ? attributeFormData.get('vertexTwo') : null;\n let lineLength = attributeFormData.has('lineLength') ? attributeFormData.get('lineLength') : null;\n\n return (\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{translator.t('Name')}\n onUpdate('name', event.target.value)}\n style={inputStyle}\n />\n
X1\n onUpdate('vertexOne', {'x': event.target.value})}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
Y1\n onUpdate('vertexOne', {'y': event.target.value})}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
X2\n onUpdate('vertexTwo', {'x': event.target.value})}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
Y2\n onUpdate('vertexTwo', {'y': event.target.value})}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
\n onUpdate('lineLength', mapped)}\n configs={{label: translator.t('Length'), min: 0, max: Infinity, precision: 2}}\n state={state}\n />\n
\n );\n}\n\nLineAttributesEditor.propTypes = {\n element: PropTypes.object.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onValid: PropTypes.func,\n attributeFormData: PropTypes.object.isRequired,\n state: PropTypes.object.isRequired\n};\n\nLineAttributesEditor.contextTypes = {\n translator: PropTypes.object.isRequired,\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport FormNumberInput from '../../../style/form-number-input';\nimport FormTextInput from '../../../style/form-text-input';\n\nconst tableStyle = { width: '100%' };\nconst firstTdStyle = { width: '6em' };\nconst inputStyle = { textAlign: 'left' };\n\nexport default function ItemAttributesEditor({element, onUpdate, attributeFormData, state, ...rest}, {translator}) {\n let name = attributeFormData.has('name') ? attributeFormData.get('name') : element.name;\n let renderedX = attributeFormData.has('x') ? attributeFormData.get('x') : element.x;\n let renderedY = attributeFormData.has('y') ? attributeFormData.get('y') : element.y;\n let renderedR = attributeFormData.has('rotation') ? attributeFormData.get('rotation') : element.rotation;\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{translator.t('Name')}\n onUpdate('name', event.target.value)}\n style={inputStyle}\n />\n
X\n onUpdate('x', event.target.value)}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
Y\n onUpdate('y', event.target.value)}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
{translator.t('Rotation')}\n onUpdate('rotation', event.target.value)}\n style={inputStyle}\n state={state}\n precision={2}\n {...rest}\n />\n
\n );\n}\n\nItemAttributesEditor.propTypes = {\n element: PropTypes.object.isRequired,\n onUpdate: PropTypes.func.isRequired,\n attributeFormData: PropTypes.object.isRequired,\n state: PropTypes.object.isRequired\n};\n\nItemAttributesEditor.contextTypes = {\n translator: PropTypes.object.isRequired,\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport ItemAttributesEditor from './item-attributes-editor';\nimport LineAttributesEditor from './line-attributes-editor';\nimport HoleAttributesEditor from './hole-attributes-editor';\n\n\nexport default function AttributesEditor({element, onUpdate, onValid, attributeFormData, state, ...rest}) {\n\n switch (element.prototype) {\n case 'items':\n return ;\n case 'lines':\n return ;\n case 'holes':\n return ;\n case 'areas':\n return null;\n\n }\n\n return null;\n}\n\nAttributesEditor.propTypes = {\n element: PropTypes.object.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onValid: PropTypes.func,\n attributeFormData: PropTypes.object.isRequired,\n state: PropTypes.object.isRequired\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport {Map, fromJS} from 'immutable';\nimport AttributesEditor from './attributes-editor/attributes-editor';\nimport { GeometryUtils, MathUtils } from '../../../utils/export';\nimport * as SharedStyle from '../../../shared-style';\nimport convert from 'convert-units';\nimport {MdContentCopy, MdContentPaste} from 'react-icons/lib/md';\n\nconst PRECISION = 2;\n\nconst attrPorpSeparatorStyle = {\n margin: '0.5em 0.25em 0.5em 0',\n border: '2px solid ' + SharedStyle.SECONDARY_COLOR.alt,\n position:'relative',\n height:'2.5em',\n borderRadius:'2px'\n};\n\nconst headActionStyle = {\n position:'absolute',\n right:'0.5em',\n top:'0.5em'\n};\n\nconst iconHeadStyle = {\n float:'right',\n margin:'-3px 4px 0px 0px',\n padding:0,\n cursor:'pointer',\n fontSize:'1.4em'\n};\n\nexport default class ElementEditor extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n attributesFormData: this.initAttrData(this.props.element, this.props.layer, this.props.state),\n propertiesFormData: this.initPropData(this.props.element, this.props.layer, this.props.state)\n };\n\n this.updateAttribute = this.updateAttribute.bind(this);\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n if(\n this.state.attributesFormData.hashCode() !== nextState.attributesFormData.hashCode() ||\n this.state.propertiesFormData.hashCode() !== nextState.propertiesFormData.hashCode() ||\n this.props.state.clipboardProperties.hashCode() !== nextProps.state.clipboardProperties.hashCode()\n ) return true;\n\n return false;\n }\n\n componentWillReceiveProps({ element, layer, state }) {\n let { prototype, id } = element;\n let scene = this.props.state.get('scene');\n let selectedLayer = scene.getIn(['layers', scene.get('selectedLayer')]);\n let selected = selectedLayer.getIn([prototype, id]);\n\n if( selectedLayer.hashCode() !== layer.hashCode() ) this.setState({\n attributesFormData: this.initAttrData(element, layer, state),\n propertiesFormData: this.initPropData(element, layer, state)\n });\n }\n\n initAttrData(element, layer, state) {\n\n element = typeof element.misc === 'object' ? element.set('misc', new Map(element.misc)) : element;\n\n switch (element.prototype) {\n case 'items': {\n return new Map(element);\n }\n case 'lines': {\n let v_a = layer.vertices.get(element.vertices.get(0));\n let v_b = layer.vertices.get(element.vertices.get(1));\n\n let distance = GeometryUtils.pointsDistance(v_a.x, v_a.y, v_b.x, v_b.y);\n let _unit = element.misc.get('_unitLength') || this.context.catalog.unit;\n let _length = convert(distance).from(this.context.catalog.unit).to(_unit);\n\n return new Map({\n vertexOne: v_a,\n vertexTwo: v_b,\n lineLength: new Map({length: distance, _length, _unit}),\n });\n }\n case 'holes': {\n let line = layer.lines.get(element.line);\n let {x: x0, y: y0} = layer.vertices.get(line.vertices.get(0));\n let {x: x1, y: y1} = layer.vertices.get(line.vertices.get(1));\n let lineLength = GeometryUtils.pointsDistance(x0, y0, x1, y1);\n let startAt = lineLength * element.offset - element.properties.get('width').get('length') / 2;\n\n let _unitA = element.misc.get('_unitA') || this.context.catalog.unit;\n let _lengthA = convert(startAt).from(this.context.catalog.unit).to(_unitA);\n\n let endAt = lineLength - lineLength * element.offset - element.properties.get('width').get('length') / 2;\n let _unitB = element.misc.get('_unitB') || this.context.catalog.unit;\n let _lengthB = convert(endAt).from(this.context.catalog.unit).to(_unitB);\n\n return new Map({\n offset: element.offset,\n offsetA: new Map({\n length: MathUtils.toFixedFloat(startAt, PRECISION),\n _length: MathUtils.toFixedFloat(_lengthA, PRECISION),\n _unit: _unitA\n }),\n offsetB: new Map({\n length: MathUtils.toFixedFloat(endAt, PRECISION),\n _length: MathUtils.toFixedFloat(_lengthB, PRECISION),\n _unit: _unitB\n })\n });\n }\n case 'areas': {\n return new Map({});\n }\n default:\n return null;\n }\n\n\n }\n\n initPropData(element, layer, state) {\n let {catalog} = this.context;\n let catalogElement = catalog.getElement(element.type);\n\n let mapped = {};\n for (let name in catalogElement.properties) {\n mapped[name] = new Map({\n currentValue: element.properties.has(name) ? element.properties.get(name) : fromJS(catalogElement.properties[name].defaultValue),\n configs: catalogElement.properties[name]\n });\n }\n\n return new Map(mapped);\n }\n\n updateAttribute(attributeName, value) {\n\n let {attributesFormData} = this.state;\n\n switch (this.props.element.prototype) {\n case 'items': {\n attributesFormData = attributesFormData.set(attributeName, value);\n break;\n }\n case 'lines': {\n switch(attributeName)\n {\n case 'lineLength':\n {\n let v_0 = attributesFormData.get('vertexOne');\n let v_1 = attributesFormData.get('vertexTwo');\n\n let [v_a, v_b] = GeometryUtils.orderVertices([v_0, v_1]);\n\n let v_b_new = GeometryUtils.extendLine(v_a.x, v_a.y, v_b.x, v_b.y, value.get('length'), PRECISION);\n\n attributesFormData = attributesFormData.withMutations(attr => {\n attr.set(v_0 === v_a ? 'vertexTwo' : 'vertexOne', v_b.merge(v_b_new));\n attr.set('lineLength', value);\n });\n break;\n }\n case 'vertexOne':\n case 'vertexTwo':\n {\n attributesFormData = attributesFormData.withMutations(attr => {\n attr.set(attributeName, attr.get(attributeName).merge(value));\n\n let newDistance = GeometryUtils.verticesDistance(attr.get('vertexOne'), attr.get('vertexTwo'));\n\n attr.mergeIn(['lineLength'], attr.get('lineLength').merge({\n 'length': newDistance,\n '_length': convert(newDistance).from(this.context.catalog.unit).to(attr.get('lineLength').get('_unit'))\n }));\n });\n break;\n }\n default:\n {\n attributesFormData = attributesFormData.set(attributeName, value);\n break;\n }\n }\n break;\n }\n case 'holes': {\n switch( attributeName )\n {\n case 'offsetA':\n {\n let line = this.props.layer.lines.get(this.props.element.line);\n\n let orderedVertices = GeometryUtils.orderVertices([\n this.props.layer.vertices.get(line.vertices.get(0)),\n this.props.layer.vertices.get(line.vertices.get(1))\n ]);\n\n let [ {x: x0, y: y0}, {x: x1, y: y1} ] = orderedVertices;\n\n let alpha = GeometryUtils.angleBetweenTwoPoints(x0, y0, x1, y1);\n let lineLength = GeometryUtils.pointsDistance(x0, y0, x1, y1);\n let widthLength = this.props.element.properties.get('width').get('length');\n let halfWidthLength = widthLength / 2;\n\n let lengthValue = value.get('length');\n lengthValue = Math.max(lengthValue, 0);\n lengthValue = Math.min(lengthValue, lineLength - widthLength);\n\n let xp = (lengthValue + halfWidthLength) * Math.cos(alpha) + x0;\n let yp = (lengthValue + halfWidthLength) * Math.sin(alpha) + y0;\n\n let offset = GeometryUtils.pointPositionOnLineSegment(x0, y0, x1, y1, xp, yp);\n\n let endAt = MathUtils.toFixedFloat(lineLength - (lineLength * offset) - halfWidthLength, PRECISION);\n let offsetUnit = attributesFormData.getIn(['offsetB', '_unit']);\n\n let offsetB = new Map({\n length: endAt,\n _length: convert(endAt).from(this.context.catalog.unit).to(offsetUnit),\n _unit: offsetUnit\n });\n\n attributesFormData = attributesFormData.set('offsetB', offsetB).set('offset', offset);\n\n let offsetAttribute = new Map({\n length: MathUtils.toFixedFloat(lengthValue, PRECISION),\n _unit: value.get('_unit'),\n _length: MathUtils.toFixedFloat(convert(lengthValue).from(this.context.catalog.unit).to(value.get('_unit')), PRECISION)\n });\n\n attributesFormData = attributesFormData.set(attributeName, offsetAttribute);\n\n break;\n }\n case 'offsetB':\n {\n let line = this.props.layer.lines.get(this.props.element.line);\n\n let orderedVertices = GeometryUtils.orderVertices([\n this.props.layer.vertices.get(line.vertices.get(0)),\n this.props.layer.vertices.get(line.vertices.get(1))\n ]);\n\n let [ {x: x0, y: y0}, {x: x1, y: y1} ] = orderedVertices;\n\n let alpha = GeometryUtils.angleBetweenTwoPoints(x0, y0, x1, y1);\n let lineLength = GeometryUtils.pointsDistance(x0, y0, x1, y1);\n let widthLength = this.props.element.properties.get('width').get('length');\n let halfWidthLength = widthLength / 2;\n\n let lengthValue = value.get('length');\n lengthValue = Math.max(lengthValue, 0);\n lengthValue = Math.min(lengthValue, lineLength - widthLength);\n\n let xp = x1 - (lengthValue + halfWidthLength) * Math.cos(alpha);\n let yp = y1 - (lengthValue + halfWidthLength) * Math.sin(alpha);\n\n let offset = GeometryUtils.pointPositionOnLineSegment(x0, y0, x1, y1, xp, yp);\n\n let startAt = MathUtils.toFixedFloat((lineLength * offset) - halfWidthLength, PRECISION);\n let offsetUnit = attributesFormData.getIn(['offsetA', '_unit']);\n\n let offsetA = new Map({\n length: startAt,\n _length: convert(startAt).from(this.context.catalog.unit).to(offsetUnit),\n _unit: offsetUnit\n });\n\n attributesFormData = attributesFormData.set('offsetA', offsetA).set('offset', offset);\n\n let offsetAttribute = new Map({\n length: MathUtils.toFixedFloat(lengthValue, PRECISION),\n _unit: value.get('_unit'),\n _length: MathUtils.toFixedFloat(convert(lengthValue).from(this.context.catalog.unit).to(value.get('_unit')), PRECISION)\n });\n\n attributesFormData = attributesFormData.set(attributeName, offsetAttribute);\n\n break;\n }\n default:\n {\n attributesFormData = attributesFormData.set(attributeName, value);\n break;\n }\n };\n break;\n }\n default:\n break;\n }\n\n this.setState({attributesFormData});\n this.save({attributesFormData});\n }\n\n updateProperty(propertyName, value) {\n let {state: {propertiesFormData}} = this;\n propertiesFormData = propertiesFormData.setIn([propertyName, 'currentValue'], value);\n this.setState({propertiesFormData});\n this.save({propertiesFormData});\n }\n\n reset() {\n this.setState({propertiesFormData: this.initPropData(this.props.element, this.props.layer, this.props.state)});\n }\n\n save({propertiesFormData, attributesFormData}) {\n\n if( propertiesFormData ) {\n let properties = propertiesFormData.map(data => {\n return data.get('currentValue');\n });\n\n this.context.projectActions.setProperties(properties);\n }\n\n if( attributesFormData ) {\n switch (this.props.element.prototype) {\n case 'items': {\n this.context.projectActions.setItemsAttributes(attributesFormData);\n break;\n }\n case 'lines': {\n this.context.projectActions.setLinesAttributes(attributesFormData);\n break;\n }\n case 'holes': {\n this.context.projectActions.setHolesAttributes(attributesFormData);\n break;\n }\n }\n }\n }\n\n copyProperties( properties ) {\n this.context.projectActions.copyProperties( properties );\n }\n\n pasteProperties() {\n this.context.projectActions.pasteProperties();\n }\n\n render() {\n let {\n state: {propertiesFormData, attributesFormData},\n context: {projectActions, catalog, translator},\n props: {state: appState, element},\n } = this;\n\n return (\n
\n\n \n\n
\n
\n
this.copyProperties(element.properties) }>
\n {\n appState.get('clipboardProperties') && appState.get('clipboardProperties').size ?\n
this.pasteProperties() }>
: null\n }\n
\n
\n\n {propertiesFormData.entrySeq()\n .map(([propertyName, data]) => {\n\n let currentValue = data.get('currentValue'), configs = data.get('configs');\n\n let {Editor} = catalog.getPropertyType(configs.type);\n\n return this.updateProperty(propertyName, value)}\n state={appState}\n sourceElement={element}\n internalState={this.state}\n />\n })\n }\n\n
\n )\n }\n}\n\nElementEditor.propTypes = {\n state: PropTypes.object.isRequired,\n element: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired\n};\n\nElementEditor.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Panel from '../panel';\nimport {Seq} from 'immutable';\nimport {\n MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAGGING_LINE,\n MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE, MODE_FITTING_IMAGE, MODE_UPLOADING_IMAGE,\n MODE_ROTATING_ITEM\n} from '../../../constants';\nimport ElementEditor from './element-editor';\n\nexport default function PanelElementEditor({state}, {projectActions, translator}) {\n\n let {scene, mode} = state;\n\n if (![MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN,\n MODE_3D_VIEW, MODE_3D_FIRST_PERSON,\n MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM,\n MODE_DRAGGING_LINE, MODE_DRAGGING_VERTEX, MODE_DRAGGING_ITEM, MODE_DRAGGING_HOLE,\n MODE_ROTATING_ITEM, MODE_UPLOADING_IMAGE, MODE_FITTING_IMAGE].includes(mode)) return null;\n\n let componentRenderer = (element, layer) =>\n \n
\n \n
\n
;\n\n let layerRenderer = layer => Seq()\n .concat(layer.lines, layer.holes, layer.areas, layer.items)\n .filter(element => element.selected)\n .map(element => componentRenderer(element, layer))\n .valueSeq();\n\n return
{scene.layers.valueSeq().map(layerRenderer)}
\n\n}\n\nPanelElementEditor.propTypes = {\n state: PropTypes.object.isRequired,\n};\n\nPanelElementEditor.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport PanelElementEditor from './panel-element-editor/panel-element-editor';\nimport PanelGroupEditor from './panel-group-editor';\nimport PanelMultiElementsEditor from './panel-element-editor/panel-multi-elements-editor';\nimport PanelLayers from './panel-layers';\nimport PanelGuides from './panel-guides';\nimport PanelGroups from './panel-groups';\nimport PanelLayerElements from './panel-layer-elements';\nimport * as SharedStyle from '../../shared-style';\nimport If from '../../utils/react-if';\n\nconst STYLE = {\n backgroundColor: SharedStyle.PRIMARY_COLOR.main,\n display: 'block',\n overflowY: 'auto',\n overflowX: 'hidden',\n paddingBottom: '20px'\n};\n\nconst sortButtonsCb = (a, b) => {\n if (a.index === undefined || a.index === null) {\n a.index = Number.MAX_SAFE_INTEGER;\n }\n\n if (b.index === undefined || b.index === null) {\n b.index = Number.MAX_SAFE_INTEGER;\n }\n\n return a.index - b.index;\n};\n\nconst mapButtonsCb = (el, ind) => {el.dom};\n\nexport default function Sidebar({ state, width, height, sidebarComponents }) {\n\n let selectedLayer = state.getIn(['scene', 'selectedLayer']);\n\n //TODO change in multi-layer check\n let selected = state.getIn(['scene', 'layers', selectedLayer, 'selected']);\n\n let multiselected =\n selected.lines.size > 1 ||\n selected.items.size > 1 ||\n selected.holes.size > 1 ||\n selected.areas.size > 1 ||\n selected.lines.size + selected.items.size + selected.holes.size + selected.areas.size > 1;\n\n let selectedGroup = state.getIn(['scene', 'groups']).findEntry( g => g.get('selected') );\n\n let sorter = [\n { index: 0, condition: true, dom: },\n { index: 1, condition: true, dom: },\n { index: 2, condition: true, dom: },\n { index: 3, condition: true, dom: },\n { index: 4, condition: !multiselected, dom: },\n //{ index: 5, condition: multiselected, dom: },\n { index: 6, condition: !!selectedGroup, dom: }\n ];\n\n sorter = sorter.concat(sidebarComponents.map((Component, key) => {\n return Component.prototype ? //if is a react component\n {\n condition: true,\n dom: React.createElement(Component, { state, key })\n } :\n { //else is a sortable toolbar button\n index: Component.index,\n condition: Component.condition,\n dom: React.createElement(Component.dom, { state, key })\n };\n }));\n\n return (\n event.stopPropagation()}\n onKeyUp={event => event.stopPropagation()}\n className=\"sidebar\"\n >\n {sorter.sort(sortButtonsCb).map(mapButtonsCb)}\n \n );\n}\n\nSidebar.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n};\n","import Sidebar from './sidebar';\nimport Panel from './panel';\nimport PanelLayers from './panel-layers';\nimport PanelLayerElement from './panel-layer-elements';\nimport PanelGuides from './panel-guides';\n\nexport {\n Sidebar,\n Panel,\n PanelLayers,\n PanelLayerElement,\n PanelGuides\n};\n\nexport default {\n Sidebar,\n Panel,\n PanelLayers,\n PanelLayerElement,\n PanelGuides\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport {\n ContentTitle,\n ContentContainer,\n FormLabel,\n FormBlock,\n FormNumberInput,\n FormSubmitButton,\n CancelButton\n} from '../style/export';\n\nexport default class ProjectConfigurator extends Component {\n\n constructor(props, context) {\n super(props, context);\n\n let scene = props.state.scene;\n\n this.state = {\n dataWidth: scene.width,\n dataHeight: scene.height,\n };\n }\n\n onSubmit(event) {\n event.preventDefault();\n\n let {projectActions} = this.context;\n\n let {dataWidth, dataHeight} = this.state;\n dataWidth = parseInt(dataWidth);\n dataHeight = parseInt(dataHeight);\n if (dataWidth <= 100 || dataHeight <= 100) {\n alert('Scene size too small');\n } else {\n projectActions.setProjectProperties({width: dataWidth, height: dataHeight});\n }\n }\n\n\n render() {\n let {width, height} = this.props;\n let {dataWidth, dataHeight} = this.state;\n let {projectActions, translator} = this.context;\n\n return (\n \n {translator.t('Project config')}\n\n
this.onSubmit(e)}>\n \n {translator.t('width')}\n this.setState({dataWidth: e.target.value})}\n />\n \n\n \n {translator.t('height')}\n this.setState({dataHeight: e.target.value})}\n />\n \n\n \n \n \n \n \n \n \n
\n projectActions.rollback()}>{translator.t('Cancel')}\n \n {translator.t('Save')}\n
\n
\n
\n )\n }\n}\n\nProjectConfigurator.propTypes = {\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n state: PropTypes.object.isRequired,\n};\n\nProjectConfigurator.contextTypes = {\n projectActions: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport IconBefore from 'react-icons/lib/md/navigate-before';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE_BOX = {\n width: '14em',\n height: '14em',\n padding: '0.625em',\n background: '#f7f7f9',\n border: '1px solid #e1e1e8',\n margin: '0.3em',\n cursor: 'pointer',\n position: 'relative',\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\n borderRadius: '2px',\n transition: 'all .2s ease-in-out',\n WebkitTransition: 'all .2s ease-in-out'\n};\n\nconst STYLE_BOX_HOVER = {\n ...STYLE_BOX,\n background: SharedStyle.SECONDARY_COLOR.main\n};\n\nconst STYLE_BACK = {\n position: 'absolute',\n color: SharedStyle.COLORS.black,\n fontSize: '5em',\n width: '100%'\n};\n\nconst STYLE_BACK_HOVER = {\n ...STYLE_BACK,\n color: SharedStyle.SECONDARY_COLOR.main\n};\n\nconst CONTAINER_DIV = {\n background: SharedStyle.COLORS.white,\n marginBottom: '5px',\n border: 'solid 1px #e6e6e6',\n width: '100%',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n};\n\nexport default class CatalogTurnBackPageItem extends Component {\n\n constructor(props) {\n super(props);\n this.state = {hover: false};\n }\n\n changePage(newPage) {\n this.context.projectActions.goBackToCatalogPage(newPage)\n }\n\n render() {\n let page = this.props.page;\n let hover = this.state.hover;\n\n return (\n this.changePage(page.name)}\n onMouseEnter={e => this.setState({hover: true})}\n onMouseLeave={e => this.setState({hover: false})}\n >\n
\n \n
\n\n \n );\n }\n}\n\nCatalogTurnBackPageItem.propTypes = {\n page: PropTypes.object.isRequired\n};\n\nCatalogTurnBackPageItem.contextTypes = {\n projectActions: PropTypes.object.isRequired\n};\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport IconNext from 'react-icons/lib/md/navigate-next';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE_BOX = {\n width: '14em',\n height: '14em',\n padding: '0.625em',\n background: '#f7f7f9',\n border: '1px solid #e1e1e8',\n cursor: 'pointer',\n position: 'relative',\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\n borderRadius: '2px',\n transition: 'all .2s ease-in-out',\n WebkitTransition: 'all .2s ease-in-out',\n alignSelf: 'center',\n justifySelf: 'center',\n};\n\nconst STYLE_BOX_HOVER = {\n ...STYLE_BOX,\n background: SharedStyle.SECONDARY_COLOR.main\n};\n\nconst STYLE_TITLE = {\n width: '100%',\n position: 'absolute',\n textAlign: 'center',\n display: 'block',\n marginBottom: '.5em',\n padding:'1em',\n textTransform: 'capitalize',\n WebkitTransition: 'all .15s ease-in-out'\n};\n\nconst STYLE_TITLE_HOVERED = {\n ...STYLE_TITLE,\n fontSize: '1.4em',\n transform: 'translateY(-60px)',\n color:'rgb(28, 166, 252)',\n marginTop:'0.5em'\n};\n\nconst STYLE_NEXT_HOVER = {\n position: 'absolute',\n color: SharedStyle.SECONDARY_COLOR.main,\n fontSize: '5em',\n width: '100%',\n};\n\nconst CONTAINER_DIV = {\n background: SharedStyle.COLORS.white,\n marginBottom: '5px',\n border: 'solid 1px #EEE',\n width: '100%',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n};\n\nexport default class CatalogPageItem extends Component {\n\n constructor(props) {\n super(props);\n this.state = {hover: false};\n }\n\n changePage(newPage) {\n this.context.projectActions.changeCatalogPage(newPage, this.props.oldPage.name)\n }\n\n render() {\n let page = this.props.page;\n let hover = this.state.hover;\n\n return (\n this.changePage(page.name)}\n onMouseEnter={e => this.setState({hover: true})}\n onMouseLeave={e => this.setState({hover: false})}\n >\n {hover ?\n
\n {page.label}\n \n
\n :\n
\n {page.label}\n
}\n\n \n );\n }\n}\n\nCatalogPageItem.propTypes = {\n page: PropTypes.object.isRequired,\n oldPage: PropTypes.object.isRequired,\n};\n\nCatalogPageItem.contextTypes = {\n projectActions: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Arrow from 'react-icons/lib/md/keyboard-arrow-right';\nimport * as SharedStyle from '../../shared-style';\n\nconst breadcrumbStyle = {\n margin: '1.5em',\n display: 'flex'\n};\n\nconst breadcrumbTextStyle = {\n fontSize: '20px',\n cursor: 'pointer'\n};\n\nconst breadcrumbLastTextStyle = {\n ...breadcrumbTextStyle,\n fontWeight:'bolder',\n color:SharedStyle.SECONDARY_COLOR.main\n};\n\nconst breadcrumbTabStyle = {\n fill: SharedStyle.COLORS.black,\n fontSize: '24px',\n marginLeft: '10px',\n marginRight: '10px'\n};\n\nconst CatalogBreadcrumb = ({ names }) => {\n\n let labelNames = names.map((name, ind) => {\n\n let lastElement = ind === names.length - 1;\n\n return
\n
{name.name}
\n { !lastElement ? : null }\n
\n });\n\n return
{labelNames}
;\n};\n\nCatalogBreadcrumb.propTypes = {\n names: PropTypes.arrayOf(PropTypes.object).isRequired\n};\n\nexport default CatalogBreadcrumb;\n","import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport IconAdd from 'react-icons/lib/fa/plus-circle';\nimport {Seq} from 'immutable';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE_BOX = {\n width: '14em',\n height: '14em',\n padding: '0.625em',\n background: '#f7f7f9',\n border: '1px solid #e1e1e8',\n cursor: 'pointer',\n position: 'relative',\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\n borderRadius: '2px',\n transition: 'all .15s ease-in-out',\n WebkitTransition: 'all .15s ease-in-out',\n alignSelf: 'center',\n justifySelf: 'center',\n};\n\nconst STYLE_BOX_HOVER = {\n ...STYLE_BOX,\n background: SharedStyle.SECONDARY_COLOR.main\n};\n\nconst STYLE_TITLE = {\n width:'100%',\n textAlign:'center',\n display:'block',\n marginBottom:'.5em',\n textTransform: 'capitalize'\n};\n\nconst STYLE_TITLE_HOVER = {\n ...STYLE_TITLE,\n color:SharedStyle.COLORS.white\n};\n\nconst STYLE_IMAGE_CONTAINER = {\n width: '100%',\n height: '8em',\n position:'relative',\n overflow:'hidden',\n border: 'solid 1px #e6e6e6',\n padding:0,\n margin:0,\n marginBottom: '5px'\n};\n\nconst STYLE_IMAGE = {\n position:'absolute',\n background: '#222',\n width: '100%',\n height: '100%',\n backgroundSize: 'contain',\n backgroundPosition:'50% 50%',\n backgroundColor:SharedStyle.COLORS.white,\n backgroundRepeat:'no-repeat',\n transition: 'all .2s ease-in-out'\n};\n\nconst STYLE_IMAGE_HOVER = {\n ...STYLE_IMAGE,\n transform: 'scale(1.2)'\n};\n\nconst STYLE_PLUS_HOVER = {\n marginTop:'1.5em',\n color: SharedStyle.SECONDARY_COLOR.main,\n fontSize: '2em',\n opacity: '0.7',\n width: '100%'\n};\n\nconst STYLE_DESCRIPTION = {\n display: 'block',\n display: '-webkit-box',\n height: '2em',\n margin: '0 auto',\n fontSize: '0.75em',\n fontStyle:'italic',\n lineHeight: '1em',\n WebkitLineClamp: '2',\n WebkitBoxOrient: 'vertical',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n};\n\nconst STYLE_TAGS = {\n listStyle: 'none',\n margin: '0px',\n padding: '0px',\n fontSize: '11px',\n marginBottom: '3px'\n};\n\nconst STYLE_TAG = {\n display: 'inline-block',\n background: '#337ab7',\n color: SharedStyle.COLORS.white,\n padding: '1px 4px',\n marginRight: '3px',\n borderRadius: '3px'\n};\n\nexport default class CatalogItem extends Component {\n\n constructor(props) {\n super(props);\n this.state = {hover: false};\n }\n\n select() {\n let element = this.props.element;\n\n switch (element.prototype) {\n case 'lines':\n this.context.linesActions.selectToolDrawingLine(element.name);\n break;\n case 'items':\n this.context.itemsActions.selectToolDrawingItem(element.name);\n break;\n case 'holes':\n this.context.holesActions.selectToolDrawingHole(element.name);\n break;\n }\n\n this.context.projectActions.pushLastSelectedCatalogElementToHistory(element);\n }\n\n render() {\n let element = this.props.element;\n let hover = this.state.hover;\n\n return (\n this.select()}\n onMouseEnter={e => this.setState({hover: true})}\n onMouseLeave={e => this.setState({hover: false})}\n >\n {element.info.title}\n
\n
\n { hover ? : null }\n
\n
\n
    \n {element.info.tag.map((tag, index) =>
  • {tag}
  • )}\n
\n
{element.info.description}
\n \n );\n }\n}\n\nCatalogItem.propTypes = {\n element: PropTypes.object.isRequired,\n};\n\nCatalogItem.contextTypes = {\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport CatalogItem from './catalog-item';\nimport CatalogBreadcrumb from './catalog-breadcrumb';\nimport CatalogPageItem from './catalog-page-item';\nimport CatalogTurnBackPageItem from './catalog-turn-back-page-item';\nimport ContentContainer from '../style/content-container';\nimport ContentTitle from '../style/content-title';\nimport * as SharedStyle from '../../shared-style';\n\nconst containerStyle = {\n position: 'fixed',\n width:'calc( 100% - 51px)',\n height:'calc( 100% - 20px)',\n backgroundColor:'#FFF',\n padding:'1em',\n left:50,\n overflowY:'auto',\n overflowX:'hidden',\n zIndex:10\n};\n\nconst itemsStyle = {\n display: 'grid',\n gridTemplateColumns: 'repeat(auto-fit, minmax(14em, 1fr))',\n gridGap: '10px',\n marginTop: '1em'\n};\n\nconst searchContainer = {\n width: '100%',\n height: '3em',\n padding: '0.625em',\n background: '#f7f7f9',\n border: '1px solid #e1e1e8',\n cursor: 'pointer',\n position: 'relative',\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\n borderRadius: '2px',\n transition: 'all .2s ease-in-out',\n WebkitTransition: 'all .2s ease-in-out',\n marginBottom: '1em'\n};\n\nconst searchText = {\n width: '8em',\n display: 'inline-block'\n};\n\nconst searchInput = {\n width: 'calc( 100% - 10em )',\n height: '2em',\n margin: '0',\n padding: '0 1em',\n border: '1px solid #EEE'\n};\n\nconst historyContainer = {\n ...searchContainer,\n padding: '0.2em 0.625em'\n};\n\nconst historyElementStyle = {\n width: 'auto',\n height: '2em',\n lineHeight: '2em',\n textAlign:'center',\n borderRadius: '1em',\n display: 'inline-block',\n cursor: 'pointer',\n backgroundColor: SharedStyle.PRIMARY_COLOR.alt,\n color: SharedStyle.PRIMARY_COLOR.text_main,\n textTransform: 'capitalize',\n margin: '0.25em',\n padding: '0 1em'\n};\n\nexport default class CatalogList extends Component {\n\n constructor(props, context) {\n super(props);\n\n let page = props.state.catalog.page;\n let currentCategory = context.catalog.getCategory(page);\n let categoriesToDisplay = currentCategory.categories;\n let elementsToDisplay = currentCategory.elements.filter(element => element.info.visibility ? element.info.visibility.catalog : true );\n\n this.state = {\n categories: currentCategory.categories,\n elements: elementsToDisplay,\n matchString: '',\n matchedElements: []\n };\n }\n\n flattenCategories( categories ) {\n let toRet = [];\n\n for( let x = 0; x < categories.length; x++ )\n {\n let curr = categories[x];\n toRet = toRet.concat( curr.elements );\n if( curr.categories.length ) toRet = toRet.concat( this.flattenCategories ( curr.categories ) );\n }\n\n return toRet;\n }\n\n matcharray( text ) {\n\n let array = this.state.elements.concat( this.flattenCategories( this.state.categories ) );\n\n let filtered = [];\n\n if( text != '' ) {\n let regexp = new RegExp( text, 'i');\n for (let i = 0; i < array.length; i++) {\n if (regexp.test(array[i].info.title)) {\n filtered.push(array[i]);\n }\n }\n }\n\n this.setState({\n matchString: text,\n matchedElements: filtered\n });\n };\n\n select( element ) {\n\n switch (element.prototype) {\n case 'lines':\n this.context.linesActions.selectToolDrawingLine(element.name);\n break;\n case 'items':\n this.context.itemsActions.selectToolDrawingItem(element.name);\n break;\n case 'holes':\n this.context.holesActions.selectToolDrawingHole(element.name);\n break;\n }\n\n this.context.projectActions.pushLastSelectedCatalogElementToHistory(element);\n }\n\n render() {\n\n let page = this.props.state.catalog.page;\n let currentCategory = this.context.catalog.getCategory(page);\n let categoriesToDisplay = currentCategory.categories;\n let elementsToDisplay = currentCategory.elements.filter(element => element.info.visibility ? element.info.visibility.catalog : true );\n\n let breadcrumbComponent = null;\n\n if (page !== 'root') {\n\n let breadcrumbsNames = [];\n\n this.props.state.catalog.path.forEach(pathName => {\n breadcrumbsNames.push({\n name: this.context.catalog.getCategory(pathName).label,\n action: () => projectActions.goBackToCatalogPage(pathName)\n });\n });\n\n breadcrumbsNames.push({name: currentCategory.label, action: ''});\n\n breadcrumbComponent = ();\n }\n\n let pathSize = this.props.state.catalog.path.size;\n\n let turnBackButton = pathSize > 0 ? (\n ) : null;\n\n\n let selectedHistory = this.props.state.get('selectedElementsHistory');\n let selectedHistoryElements = selectedHistory.map( ( el, ind ) =>\n
this.select(el) }>{el.name}
\n );\n\n return (\n \n {this.context.translator.t('Catalog')}\n {breadcrumbComponent}\n
\n {this.context.translator.t('Search Element')}\n { this.matcharray( e.target.value ); } }/>\n
\n { selectedHistory.size ?\n
\n {this.context.translator.t('Last Selected')}\n {selectedHistoryElements}\n
:\n null\n }\n
\n {\n this.state.matchString === '' ? [\n turnBackButton,\n categoriesToDisplay.map(cat => ),\n elementsToDisplay.map(elem => )\n ] :\n this.state.matchedElements.map(elem => )\n }\n
\n
\n )\n }\n}\n\nCatalogList.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n style: PropTypes.object\n};\n\nCatalogList.contextTypes = {\n catalog: PropTypes.object.isRequired,\n translator: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired\n};\n","export function firstPersonOnKeyDown(event, moveForward, moveLeft, moveBackward, moveRight, canJump, velocity) {\n\n switch (event.keyCode) {\n\n case 38: // up\n case 87: // w\n moveForward = true;\n break;\n\n case 37: // left\n case 65: // a\n moveLeft = true;\n break;\n\n case 40: // down\n case 83: // s\n moveBackward = true;\n break;\n\n case 39: // right\n case 68: // d\n moveRight = true;\n break;\n\n case 32: // space\n if ( canJump === true ) velocity.y += 225;\n canJump = false;\n break;\n }\n\n return {moveForward, moveLeft, moveBackward, moveRight, canJump}\n}\n\nexport function firstPersonOnKeyUp(event, moveForward, moveLeft, moveBackward, moveRight, canJump) {\n\n switch (event.keyCode) {\n case 38: // up\n case 87: // w\n moveForward = false;\n break;\n\n case 37: // left\n case 65: // a\n moveLeft = false;\n break;\n\n case 40: // down\n case 83: // s\n moveBackward = false;\n break;\n\n case 39: // right\n case 68: // d\n moveRight = false;\n break;\n }\n return {moveForward, moveLeft, moveBackward, moveRight, canJump}\n}\n","/**\n * @author mrdoob / http://mrdoob.com/\n */\n\nlet THREE = window.THREE || require('three');\nlet PointerLockControls;\n\nmodule.exports = PointerLockControls = function ( camera ) {\n\n let scope = this;\n\n camera.rotation.set( 0, 0, 0 );\n\n let pitchObject = new THREE.Object3D();\n pitchObject.name = 'pitchObject';\n pitchObject.add( camera );\n\n let yawObject = new THREE.Object3D();\n yawObject.name = 'yawObject';\n yawObject.position.y = 10;\n yawObject.add( pitchObject );\n\n let PI_2 = Math.PI / 2;\n\n let onMouseMove = function ( event ) {\n\n if ( scope.enabled === false ) return;\n\n let movementX = event.movementX || event.mozMovementX || event.webkitMovementX || 0;\n let movementY = event.movementY || event.mozMovementY || event.webkitMovementY || 0;\n\n yawObject.rotation.y -= movementX * 0.002;\n pitchObject.rotation.x -= movementY * 0.002;\n\n pitchObject.rotation.x = Math.max( - PI_2, Math.min( PI_2, pitchObject.rotation.x ) );\n\n };\n\n this.dispose = function() {\n\n document.removeEventListener( 'mousemove', onMouseMove, false );\n\n };\n\n document.addEventListener( 'mousemove', onMouseMove, false );\n\n this.enabled = false;\n\n this.getObject = function () {\n\n return yawObject;\n\n };\n\n this.getDirection = function() {\n\n // assumes the camera itself is not rotated\n\n let direction = new THREE.Vector3( 0, 0, - 1 );\n let rotation = new THREE.Euler( 0, 0, 0, \"YXZ\" );\n\n return function( v ) {\n\n rotation.set( pitchObject.rotation.x, yawObject.rotation.y, 0 );\n\n v.copy( direction ).applyEuler( rotation );\n\n return v;\n\n };\n\n }();\n\n};\n","import PointerLockControls from './libs/pointer-lock-controls';\n\nexport function initPointerLock(camera, rendererElement) {\n\n let havePointerLock = 'pointerLockElement' in document || 'mozPointerLockElement' in document || 'webkitPointerLockElement' in document;\n\n let pointerlockchange = event => {\n controls.enabled = !controls.enabled;\n };\n\n let requestPointerLockEvent = event => {\n document.body.requestPointerLock = document.body.requestPointerLock ||\n document.body.mozRequestPointerLock ||\n document.body.webkitRequestPointerLock;\n document.body.requestPointerLock();\n };\n\n if (havePointerLock) {\n\n document.addEventListener('pointerlockchange', pointerlockchange, false);\n document.addEventListener('mozpointerlockchange', pointerlockchange, false);\n document.addEventListener('webkitpointerlockchange', pointerlockchange, false);\n rendererElement.addEventListener('click', requestPointerLockEvent);\n\n } else {\n console.log('Your browser doesn\\'t seem to support Pointer Lock API');\n }\n\n let controls = new PointerLockControls(camera);\n return {controls, pointerlockChangeEvent: pointerlockchange, requestPointerLockEvent};\n}\n\n\n/* Funzione per il calcolo delle collisioni con gli oggetti contenuti all'interno di un array.\n * L'idea è quella di utilizzare il ray casting. Per tenere conto del fatto che ci possiamo\n * muovere nelle quattro direzioni, applico una matrice di rotazione alla direzione verso la\n * quale l'oggetto del pointer lock è orientato. */\n\nfunction collision(controls, collisionArray) {\n\n let rotationMatrix;\n let cameraDirection = controls.getDirection(new THREE.Vector3(0, 0, 0)).clone();\n\n if (controls.moveForward()) {\n // Nothing to do!\n }\n else if (controls.moveBackward()) {\n rotationMatrix = new THREE.Matrix4();\n rotationMatrix.makeRotationY(180 * Math.PI / 180);\n }\n else if (controls.moveLeft()) {\n rotationMatrix = new THREE.Matrix4();\n rotationMatrix.makeRotationY(90 * Math.PI / 180);\n }\n else if (controls.moveRight()) {\n rotationMatrix = new THREE.Matrix4();\n rotationMatrix.makeRotationY((360 - 90) * Math.PI / 180);\n }\n else return;\n\n if (rotationMatrix !== undefined) {\n cameraDirection.applyMatrix4(rotationMatrix);\n }\n let rayCaster = new THREE.Raycaster(controls.getObject().position, cameraDirection.normalize());\n let intersects = rayCaster.intersectObjects(collisionArray, true);\n\n if ((intersects.length > 0 && intersects[0].distance < 10)) {\n return true;\n }\n\n return false;\n}\n\n\n/* Funzione meno raffinata per il calcolo delle collisioni.\n * In pratica viene definita una bounding geometry (in questo caso la skymap) e poi vengono fatti\n * partire una serie di raggi dall'object del controller fino ai vertici di questa geometria. Se uno di questi interseca\n * uno degli oggetti dei quali vogliamo controllare la collisione, allora la funzione restituirà il valore true */\n/*\n function collision(object, boundingGeometry, collisionArray ) {\n\n for (let vertexIndex = 0; vertexIndex < boundingGeometry.geometry.vertices.length; vertexIndex++)\t{\n let localVertex = boundingGeometry.geometry.vertices[vertexIndex].clone();\n let globalVertex = localVertex.applyMatrix4( object.matrix );\n let directionVector = globalVertex.sub( object.position );\n\n let ray = new THREE.Raycaster(object.position, directionVector.clone().normalize());\n let collisionResults = ray.intersectObjects(collisionArray, true);\n if (collisionResults.length > 0 && collisionResults[0].distance < directionVector.length() - 1293) {\n console.log(\"collisione: \",collisionResults[0].distance,\" \",directionVector.length()-1293);\n return true;\n }\n }\n return false;\n }\n */\n\n/* Questa funzione si occupa di determinare se il controllo si trova su un oggetto, in caso negativo cade verso il basso\n * (vedi esempio pointer lock) */\n\nfunction translateY(controls, ray, objects) {\n\n controls.isOnObject(false);\n ray.ray.origin.copy(controls.getObject().position);\n ray.ray.origin.y -= 10;\n let intersections = ray.intersectObjects(objects, true);\n if (intersections.length > 0) {\n let distance = intersections[0].distance;\n if (distance > 0 && distance < 10) {\n controls.isOnObject(true);\n }\n }\n\n}\n\n/* Queste funzioni bloccano o sbloccano il movimento del controller (utili in caso di collisione) */\n\nfunction lockDirection(controls) {\n if (controls.moveForward()) {\n controls.lockMoveForward(true);\n }\n else if (controls.moveBackward()) {\n controls.lockMoveBackward(true);\n }\n else if (controls.moveLeft()) {\n controls.lockMoveLeft(true);\n }\n else if (controls.moveRight()) {\n controls.lockMoveRight(true);\n }\n}\n\nfunction unlockAllDirection(controls) {\n controls.lockMoveForward(false);\n controls.lockMoveBackward(false);\n controls.lockMoveLeft(false);\n controls.lockMoveRight(false);\n}\n","\"use strict\";\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport * as Three from 'three';\nimport {parseData, updateScene} from './scene-creator';\nimport {disposeScene} from './three-memory-cleaner';\nimport diff from 'immutablediff';\nimport {initPointerLock} from \"./pointer-lock-navigation\";\nimport {firstPersonOnKeyDown, firstPersonOnKeyUp} from \"./libs/first-person-controls\";\nimport * as SharedStyle from '../../shared-style';\n\nexport default class Viewer3DFirstPerson extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.width = props.width;\n this.height = props.height;\n this.stopRendering = false;\n this.renderer = window.__threeRenderer || new Three.WebGLRenderer({preserveDrawingBuffer: true});\n window.__threeRenderer = this.renderer;\n }\n\n componentDidMount() {\n\n /** Variables for movement control **/\n let prevTime = performance.now();\n let velocity = new Three.Vector3();\n let direction = new Three.Vector3();\n let moveForward = false;\n let moveBackward = false;\n let moveLeft = false;\n let moveRight = false;\n let canJump = false;\n\n let {catalog} = this.context;\n\n let actions = {\n areaActions: this.context.areaActions,\n holesActions: this.context.holesActions,\n itemsActions: this.context.itemsActions,\n linesActions: this.context.linesActions,\n projectActions: this.context.projectActions\n };\n\n let {state} = this.props;\n let data = state.scene;\n let canvasWrapper = ReactDOM.findDOMNode(this.refs.canvasWrapper);\n\n let scene3D = new Three.Scene();\n\n // As I need to show the pointer above all scene objects, I use this workaround http://stackoverflow.com/a/13309722\n let sceneOnTop = new Three.Scene();\n\n //RENDERER\n this.renderer.setClearColor(new Three.Color(SharedStyle.COLORS.white));\n this.renderer.setSize(this.width, this.height);\n\n // LOAD DATA\n this.planData = parseData(data, actions, catalog);\n\n scene3D.add(this.planData.plan);\n\n // CAMERA\n let aspectRatio = this.width / this.height;\n let camera = new Three.PerspectiveCamera(45, aspectRatio, 0.1, 300000);\n\n sceneOnTop.add(camera); // The pointer is on the camera so I show it above all\n\n // Set position for the camera\n camera.position.set(0, 0, 0);\n camera.up = new Three.Vector3(0, 1, 0);\n\n // HELPER AXIS\n // let axisHelper = new Three.AxisHelper(100);\n // scene3D.add(axisHelper);\n\n // LIGHT\n let light = new Three.AmbientLight(0xafafaf); // soft white light\n scene3D.add(light);\n\n // Add another light\n let pointLight = new Three.PointLight(SharedStyle.COLORS.white, 0.4, 1000);\n pointLight.position.set(0, 0, 0);\n scene3D.add(pointLight);\n\n // POINTER LOCK\n\n document.body.requestPointerLock = document.body.requestPointerLock ||\n document.body.mozRequestPointerLock ||\n document.body.webkitRequestPointerLock;\n\n document.body.requestPointerLock();\n\n let {controls, pointerlockChangeEvent, requestPointerLockEvent} = initPointerLock(camera, this.renderer.domElement);\n this.controls = controls;\n this.pointerlockChangeListener = pointerlockChangeEvent;\n this.requestPointerLockEvent = requestPointerLockEvent;\n\n /* Set user initial position */\n let humanHeight = 170; // 170 cm\n\n let yInitialPosition = this.planData.boundingBox.min.y +\n (this.planData.boundingBox.min.y - this.planData.boundingBox.max.y) / 2 + humanHeight;\n this.controls.getObject().position.set(-50, yInitialPosition, -100);\n sceneOnTop.add(this.controls.getObject()); // Add the pointer lock controls to the scene that will be rendered on top\n\n // Add move controls on the page\n this.keyDownEvent = (event) => {\n let moveResult = firstPersonOnKeyDown(event, moveForward, moveLeft, moveBackward, moveRight, canJump, velocity);\n moveForward = moveResult.moveForward;\n moveLeft = moveResult.moveLeft;\n moveBackward = moveResult.moveBackward;\n moveRight = moveResult.moveRight;\n canJump = moveResult.canJump;\n };\n\n this.keyUpEvent = (event) => {\n let moveResult = firstPersonOnKeyUp(event, moveForward, moveLeft, moveBackward, moveRight, canJump);\n moveForward = moveResult.moveForward;\n moveLeft = moveResult.moveLeft;\n moveBackward = moveResult.moveBackward;\n moveRight = moveResult.moveRight;\n canJump = moveResult.canJump;\n };\n\n document.addEventListener('keydown', this.keyDownEvent);\n document.addEventListener('keyup', this.keyUpEvent);\n\n // Add a pointer to the scene\n\n let pointer = new Three.Object3D();\n pointer.name = 'pointer';\n\n let pointerMaterial = new Three.MeshBasicMaterial({depthTest: false, depthWrite: false, color: SharedStyle.COLORS.black});\n let pointerGeometry1 = new Three.Geometry();\n pointerGeometry1.vertices.push(new Three.Vector3(-10, 0, 0));\n pointerGeometry1.vertices.push(new Three.Vector3(10, 0, 0));\n\n let linePointer1 = new Three.Line(pointerGeometry1, pointerMaterial);\n linePointer1.position.z -= 100;\n\n let pointerGeometry2 = new Three.Geometry();\n pointerGeometry2.vertices.push(new Three.Vector3(0, 10, 0));\n pointerGeometry2.vertices.push(new Three.Vector3(0, -10, 0));\n\n let linePointer2 = new Three.Line(pointerGeometry2, pointerMaterial);\n linePointer2.renderDepth = 1e20;\n linePointer2.position.z -= 100;\n\n let pointerGeometry3 = new Three.Geometry();\n pointerGeometry3.vertices.push(new Three.Vector3(-1, 1, 0));\n pointerGeometry3.vertices.push(new Three.Vector3(1, 1, 0));\n pointerGeometry3.vertices.push(new Three.Vector3(1, -1, 0));\n pointerGeometry3.vertices.push(new Three.Vector3(-1, -1, 0));\n pointerGeometry3.vertices.push(new Three.Vector3(-1, 1, 0));\n\n let linePointer3 = new Three.Line(pointerGeometry3, pointerMaterial);\n linePointer3.position.z -= 100;\n\n pointer.add(linePointer1);\n pointer.add(linePointer2);\n pointer.add(linePointer3);\n\n camera.add(pointer); // Add the pointer to the camera\n\n\n // OBJECT PICKING\n let toIntersect = [this.planData.plan];\n\n let mouseVector = new Three.Vector2(0, 0);\n let raycaster = new Three.Raycaster();\n\n this.firstPersonMouseDown = (event) => {\n\n // First of all I check if controls are enabled\n\n if (this.controls.enabled) {\n event.preventDefault();\n\n /* Per avere la direzione da assegnare al raycaster, chiamo il metodo getDirection di PointerLockControls,\n * che restituisce una funzione che a sua volta prende un vettore, vi scrive i valori degli oggetti\n * pitch e yaw e lo restituisce */\n\n raycaster.setFromCamera(mouseVector, camera);\n\n let intersects = raycaster.intersectObjects(toIntersect, true);\n if (intersects.length > 0 && !(isNaN(intersects[0].distance))) {\n intersects[0].object.interact && intersects[0].object.interact();\n } else {\n this.context.projectActions.unselectAll();\n }\n }\n\n };\n\n document.addEventListener('mousedown', this.firstPersonMouseDown, false);\n\n this.renderer.domElement.style.display = 'block';\n\n // add the output of the renderer to the html element\n canvasWrapper.appendChild(this.renderer.domElement);\n this.renderer.autoClear = false;\n\n let render = () => {\n\n if (!this.stopRendering) {\n yInitialPosition = this.planData.boundingBox.min.y + humanHeight;\n\n let multiplier = 5;\n\n let time = performance.now();\n let delta = ( time - prevTime ) / 1000 * multiplier;\n\n velocity.x -= velocity.x * 10.0 * delta;\n velocity.z -= velocity.z * 10.0 * delta;\n velocity.y -= 9.8 * 100.0 * delta / multiplier; // 100.0 = mass\n\n direction.z = Number( moveForward ) - Number( moveBackward );\n direction.x = Number( moveLeft ) - Number( moveRight );\n direction.normalize(); // this ensures consistent movements in all directions\n\n if ( moveForward || moveBackward ) velocity.z -= direction.z * 400.0 * delta;\n if ( moveLeft || moveRight ) velocity.x -= direction.x * 400.0 * delta;\n\n this.controls.getObject().translateX(velocity.x * delta);\n this.controls.getObject().translateY(velocity.y * delta);\n this.controls.getObject().translateZ(velocity.z * delta);\n\n if ( this.controls.getObject().position.y < yInitialPosition ) {\n velocity.y = 0;\n this.controls.getObject().position.y = yInitialPosition;\n canJump = true;\n }\n\n prevTime = time;\n\n // Set light position\n let controlObjectPosition = this.controls.getObject().position;\n pointLight.position.set(controlObjectPosition.x, controlObjectPosition.y, controlObjectPosition.z);\n\n for (let elemID in this.planData.sceneGraph.LODs) {\n this.planData.sceneGraph.LODs[elemID].update(camera);\n }\n\n this.renderer.clear(); // clear buffers\n this.renderer.render(scene3D, camera); // render scene 1\n this.renderer.clearDepth(); // clear depth buffer\n this.renderer.render(sceneOnTop, camera); // render scene 2\n\n requestAnimationFrame(render);\n }\n };\n\n render();\n\n this.camera = camera;\n this.scene3D = scene3D;\n this.sceneOnTop = sceneOnTop;\n // this.planData = planData;\n }\n\n componentWillUnmount() {\n this.stopRendering = true;\n this.renderer.autoClear = true;\n document.removeEventListener('mousedown', this.firstPersonMouseDown);\n document.removeEventListener('keydown', this.keyDownEvent);\n document.removeEventListener('keyup', this.keyUpEvent);\n document.removeEventListener('pointerlockchange', this.pointerlockChangeEvent);\n document.removeEventListener('mozpointerlockchange', this.pointerlockChangeEvent);\n document.removeEventListener('webkitpointerlockchange', this.pointerlockChangeEvent);\n this.renderer.domElement.removeEventListener('click', this.requestPointerLockEvent);\n\n disposeScene(this.scene3D);\n\n this.scene3D.remove(this.planData.plan);\n\n this.scene3D = null;\n this.planData = null;\n this.renderer.renderLists.dispose();\n }\n\n componentWillReceiveProps(nextProps) {\n let {width, height} = nextProps;\n let {camera, renderer, scene3D, sceneOnTop, planData} = this;\n\n let actions = {\n areaActions: this.context.areaActions,\n holesActions: this.context.holesActions,\n itemsActions: this.context.itemsActions,\n linesActions: this.context.linesActions,\n projectActions: this.context.projectActions\n };\n\n this.width = width;\n this.height = height;\n\n camera.aspect = width / height;\n\n camera.updateProjectionMatrix();\n\n if (nextProps.scene !== this.props.state.scene) {\n let changedValues = diff(this.props.state.scene, nextProps.state.scene);\n updateScene(planData, nextProps.state.scene, this.props.state.scene, changedValues.toJS(), actions, this.context.catalog);\n }\n\n renderer.setSize(width, height);\n renderer.clear(); // clear buffers\n renderer.render(scene3D, camera); // render scene 1\n renderer.clearDepth(); // clear depth buffer\n renderer.render(sceneOnTop, camera); // render scene 2\n\n }\n\n render() {\n return React.createElement(\"div\", {\n ref: \"canvasWrapper\"\n });\n }\n}\n\nViewer3DFirstPerson.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n};\n\nViewer3DFirstPerson.contextTypes = {\n areaActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired,\n catalog: PropTypes.object\n};\n","/**\n * @author qiao / https://github.com/qiao\n * @author mrdoob / http://mrdoob.com\n * @author alteredq / http://alteredqualia.com/\n * @author WestLangley / http://github.com/WestLangley\n * @author erich666 / http://erichaines.com\n */\n\n// This set of controls performs orbiting, dollying (zooming), and panning.\n// Unlike TrackballControls, it maintains the \"up\" direction object.up (+Y by default).\n//\n// Orbit - left mouse / touch: one finger move\n// Zoom - middle mouse, or mousewheel / touch: two finger spread or squish\n// Pan - right mouse, or arrow keys / touch: three finter swipe\n\nlet THREE = window.THREE || require('three');\nlet OrbitControls;\n\nmodule.exports = OrbitControls = function (object, domElement) {\n\n this.object = object;\n\n this.domElement = ( domElement !== undefined ) ? domElement : document;\n\n // Set to false to disable this control\n this.enabled = true;\n\n // \"target\" sets the location of focus, where the object orbits around\n this.target = new THREE.Vector3();\n\n // How far you can dolly in and out ( PerspectiveCamera only )\n this.minDistance = 0;\n this.maxDistance = Infinity;\n\n // How far you can zoom in and out ( OrthographicCamera only )\n this.minZoom = 0;\n this.maxZoom = Infinity;\n\n // How far you can orbit vertically, upper and lower limits.\n // Range is 0 to Math.PI radians.\n this.minPolarAngle = 0; // radians\n this.maxPolarAngle = Math.PI; // radians\n\n // How far you can orbit horizontally, upper and lower limits.\n // If set, must be a sub-interval of the interval [ - Math.PI, Math.PI ].\n this.minAzimuthAngle = -Infinity; // radians\n this.maxAzimuthAngle = Infinity; // radians\n\n // Set to true to enable damping (inertia)\n // If damping is enabled, you must call controls.update() in your animation loop\n this.enableDamping = false;\n this.dampingFactor = 0.25;\n\n // This option actually enables dollying in and out; left as \"zoom\" for backwards compatibility.\n // Set to false to disable zooming\n this.enableZoom = true;\n this.zoomSpeed = 1.0;\n\n // Set to false to disable rotating\n this.enableRotate = true;\n this.rotateSpeed = 1.0;\n\n // Set to false to disable panning\n this.enablePan = true;\n this.keyPanSpeed = 7.0;\t// pixels moved per arrow key push\n\n // Set to true to automatically rotate around the target\n // If auto-rotate is enabled, you must call controls.update() in your animation loop\n this.autoRotate = false;\n this.autoRotateSpeed = 2.0; // 30 seconds per round when fps is 60\n\n // Set to false to disable use of the keys\n this.enableKeys = true;\n\n // The four arrow keys\n this.keys = {LEFT: 37, UP: 38, RIGHT: 39, BOTTOM: 40};\n\n // Mouse buttons\n this.mouseButtons = {ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: THREE.MOUSE.RIGHT};\n\n // for reset\n this.target0 = this.target.clone();\n this.position0 = this.object.position.clone();\n this.zoom0 = this.object.zoom;\n\n //\n // public methods\n //\n\n this.getPolarAngle = function () {\n\n return spherical.phi;\n\n };\n\n this.getAzimuthalAngle = function () {\n\n return spherical.theta;\n\n };\n\n this.reset = function () {\n\n scope.target.copy(scope.target0);\n scope.object.position.copy(scope.position0);\n scope.object.zoom = scope.zoom0;\n\n scope.object.updateProjectionMatrix();\n scope.dispatchEvent(changeEvent);\n\n scope.update();\n\n state = STATE.NONE;\n\n };\n\n // this method is exposed, but perhaps it would be better if we can make it private...\n this.update = function () {\n\n let offset = new THREE.Vector3();\n\n // so camera.up is the orbit axis\n let quat = new THREE.Quaternion().setFromUnitVectors(object.up, new THREE.Vector3(0, 1, 0));\n let quatInverse = quat.clone().inverse();\n\n let lastPosition = new THREE.Vector3();\n let lastQuaternion = new THREE.Quaternion();\n\n return function update() {\n\n let position = scope.object.position;\n\n offset.copy(position).sub(scope.target);\n\n // rotate offset to \"y-axis-is-up\" space\n offset.applyQuaternion(quat);\n\n // angle from z-axis around y-axis\n spherical.setFromVector3(offset);\n\n if (scope.autoRotate && state === STATE.NONE) {\n\n rotateLeft(getAutoRotationAngle());\n\n }\n\n spherical.theta += sphericalDelta.theta;\n spherical.phi += sphericalDelta.phi;\n\n // restrict theta to be between desired limits\n spherical.theta = Math.max(scope.minAzimuthAngle, Math.min(scope.maxAzimuthAngle, spherical.theta));\n\n // restrict phi to be between desired limits\n spherical.phi = Math.max(scope.minPolarAngle, Math.min(scope.maxPolarAngle, spherical.phi));\n\n spherical.makeSafe();\n\n\n spherical.radius *= scale;\n\n // restrict radius to be between desired limits\n spherical.radius = Math.max(scope.minDistance, Math.min(scope.maxDistance, spherical.radius));\n\n // move target to panned location\n scope.target.add(panOffset);\n\n offset.setFromSpherical(spherical);\n\n // rotate offset back to \"camera-up-vector-is-up\" space\n offset.applyQuaternion(quatInverse);\n\n position.copy(scope.target).add(offset);\n\n scope.object.lookAt(scope.target);\n\n if (scope.enableDamping === true) {\n\n sphericalDelta.theta *= ( 1 - scope.dampingFactor );\n sphericalDelta.phi *= ( 1 - scope.dampingFactor );\n\n } else {\n\n sphericalDelta.set(0, 0, 0);\n\n }\n\n scale = 1;\n panOffset.set(0, 0, 0);\n\n // update condition is:\n // min(camera displacement, camera rotation in radians)^2 > EPS\n // using small-angle approximation cos(x/2) = 1 - x^2 / 8\n\n if (zoomChanged ||\n lastPosition.distanceToSquared(scope.object.position) > EPS ||\n 8 * ( 1 - lastQuaternion.dot(scope.object.quaternion) ) > EPS) {\n\n scope.dispatchEvent(changeEvent);\n\n lastPosition.copy(scope.object.position);\n lastQuaternion.copy(scope.object.quaternion);\n zoomChanged = false;\n\n return true;\n\n }\n\n return false;\n\n };\n\n }();\n\n this.dispose = function () {\n\n scope.domElement.removeEventListener('contextmenu', onContextMenu, false);\n scope.domElement.removeEventListener('mousedown', onMouseDown, false);\n scope.domElement.removeEventListener('wheel', onMouseWheel, false);\n\n scope.domElement.removeEventListener('touchstart', onTouchStart, false);\n scope.domElement.removeEventListener('touchend', onTouchEnd, false);\n scope.domElement.removeEventListener('touchmove', onTouchMove, false);\n\n document.removeEventListener('mousemove', onMouseMove, false);\n document.removeEventListener('mouseup', onMouseUp, false);\n\n window.removeEventListener('keydown', onKeyDown, false);\n\n //scope.dispatchEvent( { type: 'dispose' } ); // should this be added here?\n\n };\n\n //\n // internals\n //\n\n let scope = this;\n\n let changeEvent = {type: 'change'};\n let startEvent = {type: 'start'};\n let endEvent = {type: 'end'};\n\n let STATE = {NONE: -1, ROTATE: 0, DOLLY: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_DOLLY: 4, TOUCH_PAN: 5};\n\n let state = STATE.NONE;\n\n let EPS = 0.000001;\n\n // current position in spherical coordinates\n let spherical = new THREE.Spherical();\n let sphericalDelta = new THREE.Spherical();\n\n let scale = 1;\n let panOffset = new THREE.Vector3();\n let zoomChanged = false;\n\n let rotateStart = new THREE.Vector2();\n let rotateEnd = new THREE.Vector2();\n let rotateDelta = new THREE.Vector2();\n\n let panStart = new THREE.Vector2();\n let panEnd = new THREE.Vector2();\n let panDelta = new THREE.Vector2();\n\n let dollyStart = new THREE.Vector2();\n let dollyEnd = new THREE.Vector2();\n let dollyDelta = new THREE.Vector2();\n\n function getAutoRotationAngle() {\n\n return 2 * Math.PI / 60 / 60 * scope.autoRotateSpeed;\n\n }\n\n function getZoomScale() {\n\n return Math.pow(0.95, scope.zoomSpeed);\n\n }\n\n function rotateLeft(angle) {\n\n sphericalDelta.theta -= angle;\n\n }\n\n function rotateUp(angle) {\n\n sphericalDelta.phi -= angle;\n\n }\n\n let panLeft = function () {\n\n let v = new THREE.Vector3();\n\n return function panLeft(distance, objectMatrix) {\n\n v.setFromMatrixColumn(objectMatrix, 0); // get X column of objectMatrix\n v.multiplyScalar(-distance);\n\n panOffset.add(v);\n\n };\n\n }();\n\n let panUp = function () {\n\n let v = new THREE.Vector3();\n\n return function panUp(distance, objectMatrix) {\n\n v.setFromMatrixColumn(objectMatrix, 1); // get Y column of objectMatrix\n v.multiplyScalar(distance);\n\n panOffset.add(v);\n\n };\n\n }();\n\n // deltaX and deltaY are in pixels; right and down are positive\n let pan = function () {\n\n let offset = new THREE.Vector3();\n\n return function pan(deltaX, deltaY) {\n\n let element = scope.domElement === document ? scope.domElement.body : scope.domElement;\n\n if (scope.object instanceof THREE.PerspectiveCamera) {\n\n // perspective\n let position = scope.object.position;\n offset.copy(position).sub(scope.target);\n let targetDistance = offset.length();\n\n // half of the fov is center to top of screen\n targetDistance *= Math.tan(( scope.object.fov / 2 ) * Math.PI / 180.0);\n\n // we actually don't use screenWidth, since perspective camera is fixed to screen height\n panLeft(2 * deltaX * targetDistance / element.clientHeight, scope.object.matrix);\n panUp(2 * deltaY * targetDistance / element.clientHeight, scope.object.matrix);\n\n } else if (scope.object instanceof THREE.OrthographicCamera) {\n\n // orthographic\n panLeft(deltaX * ( scope.object.right - scope.object.left ) / scope.object.zoom / element.clientWidth, scope.object.matrix);\n panUp(deltaY * ( scope.object.top - scope.object.bottom ) / scope.object.zoom / element.clientHeight, scope.object.matrix);\n\n } else {\n\n // camera neither orthographic nor perspective\n console.warn('WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.');\n scope.enablePan = false;\n\n }\n\n };\n\n }();\n\n function dollyIn(dollyScale) {\n\n if (scope.object instanceof THREE.PerspectiveCamera) {\n\n scale /= dollyScale;\n\n } else if (scope.object instanceof THREE.OrthographicCamera) {\n\n scope.object.zoom = Math.max(scope.minZoom, Math.min(scope.maxZoom, scope.object.zoom * dollyScale));\n scope.object.updateProjectionMatrix();\n zoomChanged = true;\n\n } else {\n\n console.warn('WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.');\n scope.enableZoom = false;\n\n }\n\n }\n\n function dollyOut(dollyScale) {\n\n if (scope.object instanceof THREE.PerspectiveCamera) {\n\n scale *= dollyScale;\n\n } else if (scope.object instanceof THREE.OrthographicCamera) {\n\n scope.object.zoom = Math.max(scope.minZoom, Math.min(scope.maxZoom, scope.object.zoom / dollyScale));\n scope.object.updateProjectionMatrix();\n zoomChanged = true;\n\n } else {\n\n console.warn('WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.');\n scope.enableZoom = false;\n\n }\n\n }\n\n //\n // event callbacks - update the object state\n //\n\n function handleMouseDownRotate(event) {\n\n rotateStart.set(event.clientX, event.clientY);\n\n }\n\n function handleMouseDownDolly(event) {\n\n dollyStart.set(event.clientX, event.clientY);\n\n }\n\n function handleMouseDownPan(event) {\n\n panStart.set(event.clientX, event.clientY);\n\n }\n\n function handleMouseMoveRotate(event) {\n\n rotateEnd.set(event.clientX, event.clientY);\n rotateDelta.subVectors(rotateEnd, rotateStart);\n\n let element = scope.domElement === document ? scope.domElement.body : scope.domElement;\n\n // rotating across whole screen goes 360 degrees around\n rotateLeft(2 * Math.PI * rotateDelta.x / element.clientWidth * scope.rotateSpeed);\n\n // rotating up and down along whole screen attempts to go 360, but limited to 180\n rotateUp(2 * Math.PI * rotateDelta.y / element.clientHeight * scope.rotateSpeed);\n\n rotateStart.copy(rotateEnd);\n\n scope.update();\n\n }\n\n function handleMouseMoveDolly(event) {\n\n dollyEnd.set(event.clientX, event.clientY);\n\n dollyDelta.subVectors(dollyEnd, dollyStart);\n\n if (dollyDelta.y > 0) {\n\n dollyIn(getZoomScale());\n\n } else if (dollyDelta.y < 0) {\n\n dollyOut(getZoomScale());\n\n }\n\n dollyStart.copy(dollyEnd);\n\n scope.update();\n\n }\n\n function handleMouseMovePan(event) {\n\n panEnd.set(event.clientX, event.clientY);\n\n panDelta.subVectors(panEnd, panStart);\n\n pan(panDelta.x, panDelta.y);\n\n panStart.copy(panEnd);\n\n scope.update();\n\n }\n\n function handleMouseUp(event) {}\n\n function handleMouseWheel(event) {\n\n if (event.deltaY < 0) {\n\n dollyOut(getZoomScale());\n\n } else if (event.deltaY > 0) {\n\n dollyIn(getZoomScale());\n\n }\n\n scope.update();\n\n }\n\n function handleKeyDown(event) {\n\n switch (event.keyCode) {\n\n case scope.keys.UP:\n pan(0, scope.keyPanSpeed);\n scope.update();\n break;\n\n case scope.keys.BOTTOM:\n pan(0, -scope.keyPanSpeed);\n scope.update();\n break;\n\n case scope.keys.LEFT:\n pan(scope.keyPanSpeed, 0);\n scope.update();\n break;\n\n case scope.keys.RIGHT:\n pan(-scope.keyPanSpeed, 0);\n scope.update();\n break;\n\n }\n\n }\n\n function handleTouchStartRotate(event) {\n rotateStart.set(event.touches[0].pageX, event.touches[0].pageY);\n }\n\n function handleTouchStartDolly(event) {\n let dx = event.touches[0].pageX - event.touches[1].pageX;\n let dy = event.touches[0].pageY - event.touches[1].pageY;\n\n let distance = Math.sqrt(dx * dx + dy * dy);\n\n dollyStart.set(0, distance);\n }\n\n function handleTouchStartPan(event) {\n panStart.set(event.touches[0].pageX, event.touches[0].pageY);\n }\n\n function handleTouchMoveRotate(event) {\n rotateEnd.set(event.touches[0].pageX, event.touches[0].pageY);\n rotateDelta.subVectors(rotateEnd, rotateStart);\n\n let element = scope.domElement === document ? scope.domElement.body : scope.domElement;\n\n // rotating across whole screen goes 360 degrees around\n rotateLeft(2 * Math.PI * rotateDelta.x / element.clientWidth * scope.rotateSpeed);\n\n // rotating up and down along whole screen attempts to go 360, but limited to 180\n rotateUp(2 * Math.PI * rotateDelta.y / element.clientHeight * scope.rotateSpeed);\n\n rotateStart.copy(rotateEnd);\n\n scope.update();\n }\n\n function handleTouchMoveDolly(event) {\n let dx = event.touches[0].pageX - event.touches[1].pageX;\n let dy = event.touches[0].pageY - event.touches[1].pageY;\n\n let distance = Math.sqrt(dx * dx + dy * dy);\n\n dollyEnd.set(0, distance);\n\n dollyDelta.subVectors(dollyEnd, dollyStart);\n\n if (dollyDelta.y > 0) {\n\n dollyOut(getZoomScale());\n\n } else if (dollyDelta.y < 0) {\n\n dollyIn(getZoomScale());\n\n }\n\n dollyStart.copy(dollyEnd);\n\n scope.update();\n }\n\n function handleTouchMovePan(event) {\n panEnd.set(event.touches[0].pageX, event.touches[0].pageY);\n\n panDelta.subVectors(panEnd, panStart);\n\n pan(panDelta.x, panDelta.y);\n\n panStart.copy(panEnd);\n\n scope.update();\n }\n\n function handleTouchEnd(event) {}\n\n //\n // event handlers - FSM: listen for events and reset state\n //\n\n function onMouseDown(event) {\n if (scope.enabled === false) return;\n\n event.preventDefault();\n\n if (event.button === scope.mouseButtons.ORBIT) {\n\n if (scope.enableRotate === false) return;\n\n handleMouseDownRotate(event);\n\n state = STATE.ROTATE;\n\n } else if (event.button === scope.mouseButtons.ZOOM) {\n\n if (scope.enableZoom === false) return;\n\n handleMouseDownDolly(event);\n\n state = STATE.DOLLY;\n\n } else if (event.button === scope.mouseButtons.PAN) {\n\n if (scope.enablePan === false) return;\n\n handleMouseDownPan(event);\n\n state = STATE.PAN;\n\n }\n\n if (state !== STATE.NONE) {\n\n document.addEventListener('mousemove', onMouseMove, false);\n document.addEventListener('mouseup', onMouseUp, false);\n\n scope.dispatchEvent(startEvent);\n\n }\n }\n\n function onMouseMove(event) {\n\n if (scope.enabled === false) return;\n\n if (state === STATE.ROTATE) {\n\n if (scope.enableRotate === false) return;\n\n handleMouseMoveRotate(event);\n\n } else if (state === STATE.DOLLY) {\n\n if (scope.enableZoom === false) return;\n\n handleMouseMoveDolly(event);\n\n } else if (state === STATE.PAN) {\n\n if (scope.enablePan === false) return;\n\n handleMouseMovePan(event);\n\n }\n\n }\n\n function onMouseUp(event) {\n\n if (scope.enabled === false) return;\n\n handleMouseUp(event);\n\n document.removeEventListener('mousemove', onMouseMove, false);\n document.removeEventListener('mouseup', onMouseUp, false);\n\n scope.dispatchEvent(endEvent);\n\n state = STATE.NONE;\n\n }\n\n function onMouseWheel(event) {\n\n if (scope.enabled === false || scope.enableZoom === false || ( state !== STATE.NONE && state !== STATE.ROTATE )) return;\n\n event.stopPropagation();\n\n handleMouseWheel(event);\n\n scope.dispatchEvent(startEvent); // not sure why these are here...\n scope.dispatchEvent(endEvent);\n\n }\n\n function onKeyDown(event) {\n\n if (scope.enabled === false || scope.enableKeys === false || scope.enablePan === false) return;\n\n handleKeyDown(event);\n\n }\n\n function onTouchStart(event) {\n\n if (scope.enabled === false) return;\n\n switch (event.touches.length) {\n\n case 1:\t// one-fingered touch: rotate\n\n if (scope.enableRotate === false) return;\n\n handleTouchStartRotate(event);\n\n state = STATE.TOUCH_ROTATE;\n\n break;\n\n case 2:\t// two-fingered touch: dolly\n\n if (scope.enableZoom === false) return;\n\n handleTouchStartDolly(event);\n\n state = STATE.TOUCH_DOLLY;\n\n break;\n\n case 3: // three-fingered touch: pan\n\n if (scope.enablePan === false) return;\n\n handleTouchStartPan(event);\n\n state = STATE.TOUCH_PAN;\n\n break;\n\n default:\n\n state = STATE.NONE;\n\n }\n\n if (state !== STATE.NONE) {\n\n scope.dispatchEvent(startEvent);\n\n }\n\n }\n\n function onTouchMove(event) {\n\n if (scope.enabled === false) return;\n\n event.stopPropagation();\n\n switch (event.touches.length) {\n\n case 1: // one-fingered touch: rotate\n\n if (scope.enableRotate === false) return;\n if (state !== STATE.TOUCH_ROTATE) return; // is this needed?...\n\n handleTouchMoveRotate(event);\n\n break;\n\n case 2: // two-fingered touch: dolly\n\n if (scope.enableZoom === false) return;\n if (state !== STATE.TOUCH_DOLLY) return; // is this needed?...\n\n handleTouchMoveDolly(event);\n\n break;\n\n case 3: // three-fingered touch: pan\n\n if (scope.enablePan === false) return;\n if (state !== STATE.TOUCH_PAN) return; // is this needed?...\n\n handleTouchMovePan(event);\n\n break;\n\n default:\n\n state = STATE.NONE;\n\n }\n\n }\n\n function onTouchEnd(event) {\n\n if (scope.enabled === false) return;\n\n handleTouchEnd(event);\n\n scope.dispatchEvent(endEvent);\n\n state = STATE.NONE;\n\n }\n\n function onContextMenu(event) { event.preventDefault(); }\n\n scope.domElement.addEventListener('contextmenu', onContextMenu, false);\n\n scope.domElement.addEventListener('mousedown', onMouseDown, false);\n scope.domElement.addEventListener('wheel', onMouseWheel, { passive: true });\n\n scope.domElement.addEventListener('touchstart', onTouchStart, { passive: true });\n scope.domElement.addEventListener('touchend', onTouchEnd, { passive: true });\n scope.domElement.addEventListener('touchmove', onTouchMove, { passive: true });\n\n window.addEventListener('keydown', onKeyDown, { passive: true });\n\n // force an update at start\n\n this.update();\n\n};\n\nOrbitControls.prototype = Object.create(THREE.EventDispatcher.prototype);\nOrbitControls.prototype.constructor = OrbitControls;\n\nObject.defineProperties(OrbitControls.prototype, {\n\n center: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .center has been renamed to .target');\n return this.target;\n\n }\n\n },\n\n // backward compatibility\n\n noZoom: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.');\n return !this.enableZoom;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.');\n this.enableZoom = !value;\n\n }\n\n },\n\n noRotate: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.');\n return !this.enableRotate;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.');\n this.enableRotate = !value;\n\n }\n\n },\n\n noPan: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.');\n return !this.enablePan;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.');\n this.enablePan = !value;\n\n }\n\n },\n\n noKeys: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.');\n return !this.enableKeys;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.');\n this.enableKeys = !value;\n\n }\n\n },\n\n staticMoving: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.');\n return !this.enableDamping;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.');\n this.enableDamping = !value;\n\n }\n\n },\n\n dynamicDampingFactor: {\n\n get: function () {\n\n console.warn('THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.');\n return this.dampingFactor;\n\n },\n\n set: function (value) {\n\n console.warn('THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.');\n this.dampingFactor = value;\n\n }\n\n }\n\n});\n","import * as Three from 'three';\nimport { List } from 'immutable';\nimport { COLORS } from '../../../shared-style';\n\nexport default function (width, height, grid, font) {\n let step = grid.properties.get('step');\n let colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');\n\n let streak = new Three.Object3D();\n streak.name = 'streak';\n\n let counter = 0;\n\n for (let i = 0; i <= width; i += step) {\n\n let geometry = new Three.Geometry();\n geometry.vertices.push(new Three.Vector3(i, 0, 0));\n geometry.vertices.push(new Three.Vector3(i, 0, -height));\n let color = colors.get(counter % colors.size);\n let material = new Three.LineBasicMaterial({ color });\n\n if (counter % 5 == 0) {\n let shape = new Three.TextGeometry(('' + (counter * step)), {\n size: 16,\n height: 1,\n font: font\n });\n\n let wrapper = new Three.MeshBasicMaterial({ color: COLORS.black });\n let words = new Three.Mesh(shape, wrapper);\n\n words.rotation.x -= Math.PI / 2;\n words.position.set(i - 20, 0, 50);\n streak.add(words);\n }\n\n streak.add(new Three.LineSegments(geometry, material));\n counter++;\n }\n return streak;\n}\n","import * as Three from 'three';\nimport { List } from 'immutable';\nimport { COLORS } from '../../../shared-style';\n\nexport default function (width, height, grid, font) {\n let step = grid.properties.get('step');\n let colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');\n\n let streak = new Three.Object3D();\n streak.name = 'streak';\n let counter = 0;\n\n for (let i = 0; i <= height; i += step) {\n\n let geometry = new Three.Geometry();\n geometry.vertices.push(new Three.Vector3(0, 0, -i));\n geometry.vertices.push(new Three.Vector3(width, 0, -i));\n let color = colors.get(counter % colors.size);\n let material = new Three.LineBasicMaterial({ color });\n\n if (counter % 5 == 0) {\n let shape = new Three.TextGeometry(('' + (counter * step)), {\n size: 16,\n height: 1,\n font\n });\n\n let wrapper = new Three.MeshBasicMaterial({ color: COLORS.black });\n let words = new Three.Mesh(shape, wrapper);\n\n words.rotation.x -= Math.PI / 2;\n words.position.set(-90, 0, -i);\n streak.add(words);\n }\n\n streak.add(new Three.LineSegments(geometry, material));\n counter++;\n }\n return streak;\n}\n","export const HELVETIKER = {\"glyphs\":{\"ο\":{\"x_min\":0,\"x_max\":712,\"ha\":815,\"o\":\"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 \"},\"S\":{\"x_min\":0,\"x_max\":788,\"ha\":890,\"o\":\"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 \"},\"¦\":{\"x_min\":343,\"x_max\":449,\"ha\":792,\"o\":\"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 \"},\"/\":{\"x_min\":183.25,\"x_max\":608.328125,\"ha\":792,\"o\":\"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 \"},\"Τ\":{\"x_min\":-0.4375,\"x_max\":777.453125,\"ha\":839,\"o\":\"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 \"},\"y\":{\"x_min\":0,\"x_max\":684.78125,\"ha\":771,\"o\":\"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 \"},\"Π\":{\"x_min\":0,\"x_max\":803,\"ha\":917,\"o\":\"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 \"},\"ΐ\":{\"x_min\":-111,\"x_max\":339,\"ha\":361,\"o\":\"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 \"},\"g\":{\"x_min\":0,\"x_max\":686,\"ha\":838,\"o\":\"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 \"},\"²\":{\"x_min\":0,\"x_max\":442,\"ha\":539,\"o\":\"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 \"},\"–\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 \"},\"Κ\":{\"x_min\":0,\"x_max\":819.5625,\"ha\":893,\"o\":\"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 \"},\"ƒ\":{\"x_min\":-46.265625,\"x_max\":392,\"ha\":513,\"o\":\"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 \"},\"e\":{\"x_min\":0,\"x_max\":714,\"ha\":813,\"o\":\"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 \"},\"ό\":{\"x_min\":0,\"x_max\":712,\"ha\":815,\"o\":\"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 \"},\"J\":{\"x_min\":0,\"x_max\":588,\"ha\":699,\"o\":\"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 \"},\"»\":{\"x_min\":-1,\"x_max\":503,\"ha\":601,\"o\":\"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 \"},\"©\":{\"x_min\":-3,\"x_max\":1008,\"ha\":1106,\"o\":\"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 \"},\"ώ\":{\"x_min\":0,\"x_max\":922,\"ha\":1030,\"o\":\"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 \"},\"^\":{\"x_min\":193.0625,\"x_max\":598.609375,\"ha\":792,\"o\":\"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 \"},\"«\":{\"x_min\":0,\"x_max\":507.203125,\"ha\":604,\"o\":\"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 \"},\"D\":{\"x_min\":0,\"x_max\":828,\"ha\":935,\"o\":\"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 \"},\"∙\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 \"},\"ÿ\":{\"x_min\":0,\"x_max\":47,\"ha\":125,\"o\":\"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 \"},\"w\":{\"x_min\":0,\"x_max\":1009.71875,\"ha\":1100,\"o\":\"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 \"},\"$\":{\"x_min\":0,\"x_max\":700,\"ha\":793,\"o\":\"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 \"},\"\\\\\":{\"x_min\":-0.015625,\"x_max\":425.0625,\"ha\":522,\"o\":\"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 \"},\"µ\":{\"x_min\":0,\"x_max\":697.21875,\"ha\":747,\"o\":\"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 \"},\"Ι\":{\"x_min\":42,\"x_max\":181,\"ha\":297,\"o\":\"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 \"},\"Ύ\":{\"x_min\":0,\"x_max\":1144.5,\"ha\":1214,\"o\":\"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"’\":{\"x_min\":0,\"x_max\":139,\"ha\":236,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 \"},\"Ν\":{\"x_min\":0,\"x_max\":801,\"ha\":915,\"o\":\"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 \"},\"-\":{\"x_min\":8.71875,\"x_max\":350.390625,\"ha\":478,\"o\":\"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 \"},\"Q\":{\"x_min\":0,\"x_max\":968,\"ha\":1072,\"o\":\"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 \"},\"ς\":{\"x_min\":1,\"x_max\":676.28125,\"ha\":740,\"o\":\"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 \"},\"M\":{\"x_min\":0,\"x_max\":954,\"ha\":1067,\"o\":\"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 \"},\"Ψ\":{\"x_min\":0,\"x_max\":1006,\"ha\":1094,\"o\":\"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 \"},\"C\":{\"x_min\":0,\"x_max\":886,\"ha\":944,\"o\":\"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 \"},\"!\":{\"x_min\":0,\"x_max\":138,\"ha\":236,\"o\":\"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 \"},\"{\":{\"x_min\":0,\"x_max\":480.5625,\"ha\":578,\"o\":\"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 \"},\"X\":{\"x_min\":-0.015625,\"x_max\":854.15625,\"ha\":940,\"o\":\"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 \"},\"#\":{\"x_min\":0,\"x_max\":963.890625,\"ha\":1061,\"o\":\"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 \"},\"ι\":{\"x_min\":42,\"x_max\":284,\"ha\":361,\"o\":\"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 \"},\"Ά\":{\"x_min\":0,\"x_max\":906.953125,\"ha\":982,\"o\":\"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 \"},\")\":{\"x_min\":0,\"x_max\":318,\"ha\":415,\"o\":\"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 \"},\"ε\":{\"x_min\":0,\"x_max\":634.71875,\"ha\":714,\"o\":\"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 \"},\"Δ\":{\"x_min\":0,\"x_max\":952.78125,\"ha\":1028,\"o\":\"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 \"},\"}\":{\"x_min\":0,\"x_max\":481,\"ha\":578,\"o\":\"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 \"},\"‰\":{\"x_min\":-3,\"x_max\":1672,\"ha\":1821,\"o\":\"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 \"},\"a\":{\"x_min\":0,\"x_max\":698.609375,\"ha\":794,\"o\":\"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 \"},\"—\":{\"x_min\":0,\"x_max\":941.671875,\"ha\":1039,\"o\":\"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 \"},\"=\":{\"x_min\":8.71875,\"x_max\":780.953125,\"ha\":792,\"o\":\"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 \"},\"N\":{\"x_min\":0,\"x_max\":801,\"ha\":914,\"o\":\"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 \"},\"ρ\":{\"x_min\":0,\"x_max\":712,\"ha\":797,\"o\":\"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 \"},\"2\":{\"x_min\":59,\"x_max\":731,\"ha\":792,\"o\":\"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 \"},\"¯\":{\"x_min\":0,\"x_max\":941.671875,\"ha\":938,\"o\":\"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 \"},\"Z\":{\"x_min\":0,\"x_max\":779,\"ha\":849,\"o\":\"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 \"},\"u\":{\"x_min\":0,\"x_max\":617,\"ha\":729,\"o\":\"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 \"},\"k\":{\"x_min\":0,\"x_max\":612.484375,\"ha\":697,\"o\":\"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 \"},\"Η\":{\"x_min\":0,\"x_max\":803,\"ha\":917,\"o\":\"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 \"},\"Α\":{\"x_min\":0,\"x_max\":906.953125,\"ha\":985,\"o\":\"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 \"},\"s\":{\"x_min\":0,\"x_max\":604,\"ha\":697,\"o\":\"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 \"},\"B\":{\"x_min\":0,\"x_max\":778,\"ha\":876,\"o\":\"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 \"},\"…\":{\"x_min\":0,\"x_max\":614,\"ha\":708,\"o\":\"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 \"},\"?\":{\"x_min\":0,\"x_max\":607,\"ha\":704,\"o\":\"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 \"},\"H\":{\"x_min\":0,\"x_max\":803,\"ha\":915,\"o\":\"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 \"},\"ν\":{\"x_min\":0,\"x_max\":675,\"ha\":761,\"o\":\"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 \"},\"c\":{\"x_min\":1,\"x_max\":701.390625,\"ha\":775,\"o\":\"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 \"},\"¶\":{\"x_min\":0,\"x_max\":566.671875,\"ha\":678,\"o\":\"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 \"},\"β\":{\"x_min\":0,\"x_max\":660,\"ha\":745,\"o\":\"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 \"},\"Μ\":{\"x_min\":0,\"x_max\":954,\"ha\":1068,\"o\":\"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 \"},\"Ό\":{\"x_min\":0.109375,\"x_max\":1120,\"ha\":1217,\"o\":\"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"Ή\":{\"x_min\":0,\"x_max\":1158,\"ha\":1275,\"o\":\"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"•\":{\"x_min\":0,\"x_max\":663.890625,\"ha\":775,\"o\":\"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 \"},\"¥\":{\"x_min\":0.1875,\"x_max\":819.546875,\"ha\":886,\"o\":\"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 \"},\"(\":{\"x_min\":0,\"x_max\":318.0625,\"ha\":415,\"o\":\"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 \"},\"U\":{\"x_min\":0,\"x_max\":796,\"ha\":904,\"o\":\"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 \"},\"γ\":{\"x_min\":0.5,\"x_max\":744.953125,\"ha\":822,\"o\":\"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 \"},\"α\":{\"x_min\":0,\"x_max\":765.5625,\"ha\":809,\"o\":\"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 \"},\"F\":{\"x_min\":0,\"x_max\":683.328125,\"ha\":717,\"o\":\"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 \"},\"­\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 \"},\":\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 \"},\"Χ\":{\"x_min\":0,\"x_max\":854.171875,\"ha\":935,\"o\":\"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 \"},\"*\":{\"x_min\":116,\"x_max\":674,\"ha\":792,\"o\":\"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 \"},\"†\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 \"},\"°\":{\"x_min\":0,\"x_max\":347,\"ha\":444,\"o\":\"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 \"},\"V\":{\"x_min\":0,\"x_max\":862.71875,\"ha\":940,\"o\":\"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 \"},\"Ξ\":{\"x_min\":0,\"x_max\":734.71875,\"ha\":763,\"o\":\"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 \"},\" \":{\"x_min\":0,\"x_max\":0,\"ha\":853},\"Ϋ\":{\"x_min\":0.328125,\"x_max\":819.515625,\"ha\":889,\"o\":\"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 \"},\"0\":{\"x_min\":73,\"x_max\":715,\"ha\":792,\"o\":\"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 \"},\"”\":{\"x_min\":0,\"x_max\":347,\"ha\":454,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 \"},\"@\":{\"x_min\":0,\"x_max\":1260,\"ha\":1357,\"o\":\"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 \"},\"Ί\":{\"x_min\":0,\"x_max\":499,\"ha\":613,\"o\":\"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 \"},\"i\":{\"x_min\":14,\"x_max\":136,\"ha\":275,\"o\":\"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 \"},\"Β\":{\"x_min\":0,\"x_max\":778,\"ha\":877,\"o\":\"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 \"},\"υ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 \"},\"]\":{\"x_min\":0,\"x_max\":275,\"ha\":372,\"o\":\"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 \"},\"m\":{\"x_min\":0,\"x_max\":1019,\"ha\":1128,\"o\":\"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 \"},\"χ\":{\"x_min\":8.328125,\"x_max\":780.5625,\"ha\":815,\"o\":\"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 \"},\"8\":{\"x_min\":55,\"x_max\":736,\"ha\":792,\"o\":\"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 \"},\"ί\":{\"x_min\":42,\"x_max\":326.71875,\"ha\":361,\"o\":\"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 \"},\"Ζ\":{\"x_min\":0,\"x_max\":779.171875,\"ha\":850,\"o\":\"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 \"},\"R\":{\"x_min\":0,\"x_max\":781.953125,\"ha\":907,\"o\":\"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 \"},\"o\":{\"x_min\":0,\"x_max\":713,\"ha\":821,\"o\":\"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 \"},\"5\":{\"x_min\":54.171875,\"x_max\":738,\"ha\":792,\"o\":\"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 \"},\"7\":{\"x_min\":58.71875,\"x_max\":730.953125,\"ha\":792,\"o\":\"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 \"},\"K\":{\"x_min\":0,\"x_max\":819.46875,\"ha\":906,\"o\":\"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 \"},\",\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 \"},\"d\":{\"x_min\":0,\"x_max\":683,\"ha\":796,\"o\":\"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 \"},\"¨\":{\"x_min\":-109,\"x_max\":247,\"ha\":232,\"o\":\"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 \"},\"E\":{\"x_min\":0,\"x_max\":736.109375,\"ha\":789,\"o\":\"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 \"},\"Y\":{\"x_min\":0,\"x_max\":820,\"ha\":886,\"o\":\"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 \"},\"\\\"\":{\"x_min\":0,\"x_max\":299,\"ha\":396,\"o\":\"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 \"},\"‹\":{\"x_min\":17.984375,\"x_max\":773.609375,\"ha\":792,\"o\":\"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 \"},\"„\":{\"x_min\":0,\"x_max\":364,\"ha\":467,\"o\":\"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 \"},\"δ\":{\"x_min\":1,\"x_max\":710,\"ha\":810,\"o\":\"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 \"},\"έ\":{\"x_min\":0,\"x_max\":634.71875,\"ha\":714,\"o\":\"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 \"},\"ω\":{\"x_min\":0,\"x_max\":922,\"ha\":1031,\"o\":\"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 \"},\"´\":{\"x_min\":0,\"x_max\":96,\"ha\":251,\"o\":\"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 \"},\"±\":{\"x_min\":11,\"x_max\":781,\"ha\":792,\"o\":\"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 \"},\"|\":{\"x_min\":343,\"x_max\":449,\"ha\":792,\"o\":\"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 \"},\"ϋ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 \"},\"§\":{\"x_min\":0,\"x_max\":593,\"ha\":690,\"o\":\"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 \"},\"b\":{\"x_min\":0,\"x_max\":685,\"ha\":783,\"o\":\"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 \"},\"q\":{\"x_min\":0,\"x_max\":683,\"ha\":876,\"o\":\"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 \"},\"Ω\":{\"x_min\":-0.171875,\"x_max\":969.5625,\"ha\":1068,\"o\":\"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 \"},\"ύ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 \"},\"z\":{\"x_min\":-0.015625,\"x_max\":613.890625,\"ha\":697,\"o\":\"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 \"},\"™\":{\"x_min\":0,\"x_max\":894,\"ha\":1000,\"o\":\"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 \"},\"ή\":{\"x_min\":0.78125,\"x_max\":697,\"ha\":810,\"o\":\"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 \"},\"Θ\":{\"x_min\":0,\"x_max\":960,\"ha\":1056,\"o\":\"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 \"},\"®\":{\"x_min\":-3,\"x_max\":1008,\"ha\":1106,\"o\":\"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 \"},\"~\":{\"x_min\":0,\"x_max\":833,\"ha\":931,\"o\":\"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 \"},\"Ε\":{\"x_min\":0,\"x_max\":736.21875,\"ha\":778,\"o\":\"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 \"},\"³\":{\"x_min\":0,\"x_max\":450,\"ha\":547,\"o\":\"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 \"},\"[\":{\"x_min\":0,\"x_max\":273.609375,\"ha\":371,\"o\":\"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 \"},\"L\":{\"x_min\":0,\"x_max\":645.828125,\"ha\":696,\"o\":\"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 \"},\"σ\":{\"x_min\":0,\"x_max\":803.390625,\"ha\":894,\"o\":\"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 \"},\"ζ\":{\"x_min\":0,\"x_max\":573,\"ha\":642,\"o\":\"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 \"},\"θ\":{\"x_min\":0,\"x_max\":674,\"ha\":778,\"o\":\"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 \"},\"Ο\":{\"x_min\":0,\"x_max\":958,\"ha\":1054,\"o\":\"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 \"},\"Γ\":{\"x_min\":0,\"x_max\":705.28125,\"ha\":749,\"o\":\"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 \"},\" \":{\"x_min\":0,\"x_max\":0,\"ha\":375},\"%\":{\"x_min\":-3,\"x_max\":1089,\"ha\":1186,\"o\":\"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 \"},\"P\":{\"x_min\":0,\"x_max\":726,\"ha\":806,\"o\":\"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 \"},\"Έ\":{\"x_min\":0,\"x_max\":1078.21875,\"ha\":1118,\"o\":\"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 \"},\"Ώ\":{\"x_min\":0.125,\"x_max\":1136.546875,\"ha\":1235,\"o\":\"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 \"},\"_\":{\"x_min\":0,\"x_max\":705.5625,\"ha\":803,\"o\":\"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 \"},\"Ϊ\":{\"x_min\":-110,\"x_max\":246,\"ha\":275,\"o\":\"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 \"},\"+\":{\"x_min\":23,\"x_max\":768,\"ha\":792,\"o\":\"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 \"},\"½\":{\"x_min\":0,\"x_max\":1050,\"ha\":1149,\"o\":\"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 \"},\"Ρ\":{\"x_min\":0,\"x_max\":720,\"ha\":783,\"o\":\"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 \"},\"'\":{\"x_min\":0,\"x_max\":139,\"ha\":236,\"o\":\"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 \"},\"ª\":{\"x_min\":0,\"x_max\":350,\"ha\":397,\"o\":\"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 \"},\"΅\":{\"x_min\":0,\"x_max\":450,\"ha\":553,\"o\":\"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 \"},\"T\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 \"},\"Φ\":{\"x_min\":0,\"x_max\":915,\"ha\":997,\"o\":\"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 \"},\"⁋\":{\"x_min\":0,\"x_max\":0,\"ha\":694},\"j\":{\"x_min\":-77.78125,\"x_max\":167,\"ha\":349,\"o\":\"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 \"},\"Σ\":{\"x_min\":0,\"x_max\":756.953125,\"ha\":819,\"o\":\"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 \"},\"1\":{\"x_min\":215.671875,\"x_max\":574,\"ha\":792,\"o\":\"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 \"},\"›\":{\"x_min\":18.0625,\"x_max\":774,\"ha\":792,\"o\":\"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 \"},\"<\":{\"x_min\":17.984375,\"x_max\":773.609375,\"ha\":792,\"o\":\"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 \"},\"£\":{\"x_min\":0,\"x_max\":704.484375,\"ha\":801,\"o\":\"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 \"},\"t\":{\"x_min\":0,\"x_max\":367,\"ha\":458,\"o\":\"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 \"},\"¬\":{\"x_min\":0,\"x_max\":706,\"ha\":803,\"o\":\"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 \"},\"λ\":{\"x_min\":0,\"x_max\":750,\"ha\":803,\"o\":\"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 \"},\"W\":{\"x_min\":0,\"x_max\":1263.890625,\"ha\":1351,\"o\":\"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 \"},\">\":{\"x_min\":18.0625,\"x_max\":774,\"ha\":792,\"o\":\"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 \"},\"v\":{\"x_min\":0,\"x_max\":675.15625,\"ha\":761,\"o\":\"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 \"},\"τ\":{\"x_min\":0.28125,\"x_max\":644.5,\"ha\":703,\"o\":\"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 \"},\"ξ\":{\"x_min\":0,\"x_max\":624.9375,\"ha\":699,\"o\":\"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 \"},\"&\":{\"x_min\":-3,\"x_max\":894.25,\"ha\":992,\"o\":\"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 \"},\"Λ\":{\"x_min\":0,\"x_max\":862.5,\"ha\":942,\"o\":\"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 \"},\"I\":{\"x_min\":41,\"x_max\":180,\"ha\":293,\"o\":\"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 \"},\"G\":{\"x_min\":0,\"x_max\":921,\"ha\":1011,\"o\":\"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 \"},\"ΰ\":{\"x_min\":0,\"x_max\":617,\"ha\":725,\"o\":\"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 \"},\"`\":{\"x_min\":0,\"x_max\":138.890625,\"ha\":236,\"o\":\"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 \"},\"·\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 \"},\"Υ\":{\"x_min\":0.328125,\"x_max\":819.515625,\"ha\":889,\"o\":\"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 \"},\"r\":{\"x_min\":0,\"x_max\":355.5625,\"ha\":432,\"o\":\"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 \"},\"x\":{\"x_min\":0,\"x_max\":675,\"ha\":764,\"o\":\"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 \"},\"μ\":{\"x_min\":0,\"x_max\":696.609375,\"ha\":747,\"o\":\"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 \"},\"h\":{\"x_min\":0,\"x_max\":615,\"ha\":724,\"o\":\"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 \"},\".\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 \"},\"φ\":{\"x_min\":-2,\"x_max\":878,\"ha\":974,\"o\":\"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 \"},\";\":{\"x_min\":0,\"x_max\":142,\"ha\":239,\"o\":\"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 \"},\"f\":{\"x_min\":0,\"x_max\":378,\"ha\":472,\"o\":\"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 \"},\"“\":{\"x_min\":1,\"x_max\":348.21875,\"ha\":454,\"o\":\"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 \"},\"A\":{\"x_min\":0.03125,\"x_max\":906.953125,\"ha\":1008,\"o\":\"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 \"},\"6\":{\"x_min\":53,\"x_max\":739,\"ha\":792,\"o\":\"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 \"},\"‘\":{\"x_min\":1,\"x_max\":139.890625,\"ha\":236,\"o\":\"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 \"},\"ϊ\":{\"x_min\":-70,\"x_max\":283,\"ha\":361,\"o\":\"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 \"},\"π\":{\"x_min\":-0.21875,\"x_max\":773.21875,\"ha\":857,\"o\":\"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 \"},\"ά\":{\"x_min\":0,\"x_max\":765.5625,\"ha\":809,\"o\":\"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 \"},\"O\":{\"x_min\":0,\"x_max\":958,\"ha\":1057,\"o\":\"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 \"},\"n\":{\"x_min\":0,\"x_max\":615,\"ha\":724,\"o\":\"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 \"},\"3\":{\"x_min\":54,\"x_max\":737,\"ha\":792,\"o\":\"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 \"},\"9\":{\"x_min\":53,\"x_max\":739,\"ha\":792,\"o\":\"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 \"},\"l\":{\"x_min\":41,\"x_max\":166,\"ha\":279,\"o\":\"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 \"},\"¤\":{\"x_min\":40.09375,\"x_max\":728.796875,\"ha\":825,\"o\":\"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 \"},\"κ\":{\"x_min\":0,\"x_max\":632.328125,\"ha\":679,\"o\":\"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 \"},\"4\":{\"x_min\":48,\"x_max\":742.453125,\"ha\":792,\"o\":\"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 \"},\"p\":{\"x_min\":0,\"x_max\":685,\"ha\":786,\"o\":\"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 \"},\"‡\":{\"x_min\":0,\"x_max\":777,\"ha\":835,\"o\":\"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 \"},\"ψ\":{\"x_min\":0,\"x_max\":808,\"ha\":907,\"o\":\"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 \"},\"η\":{\"x_min\":0.78125,\"x_max\":697,\"ha\":810,\"o\":\"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 \"}},\"cssFontWeight\":\"normal\",\"ascender\":1189,\"underlinePosition\":-100,\"cssFontStyle\":\"normal\",\"boundingBox\":{\"yMin\":-334,\"xMin\":-111,\"yMax\":1189,\"xMax\":1672},\"resolution\":1000,\"original_font_information\":{\"postscript_name\":\"Helvetiker-Regular\",\"version_string\":\"Version 1.00 2004 initial release\",\"vendor_url\":\"http://www.magenta.gr/\",\"full_font_name\":\"Helvetiker\",\"font_family_name\":\"Helvetiker\",\"copyright\":\"Copyright (c) Μagenta ltd, 2004\",\"description\":\"\",\"trademark\":\"\",\"designer\":\"\",\"designer_url\":\"\",\"unique_font_identifier\":\"Μagenta ltd:Helvetiker:22-10-104\",\"license_url\":\"http://www.ellak.gr/fonts/MgOpen/license.html\",\"license_description\":\"Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\\r\\n\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license (\\\"Fonts\\\") and associated documentation files (the \\\"Font Software\\\"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \\r\\n\\r\\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\\r\\n\\r\\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word \\\"MgOpen\\\", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\\r\\n\\r\\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the \\\"MgOpen\\\" name.\\r\\n\\r\\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \\r\\n\\r\\nTHE FONT SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.\",\"manufacturer_name\":\"Μagenta ltd\",\"font_sub_family_name\":\"Regular\"},\"descender\":-334,\"familyName\":\"Helvetiker\",\"lineHeight\":1522,\"underlineThickness\":50}\n","import * as Three from 'three';\nimport { HELVETIKER } from './libs/helvetiker_regular.typeface.js';\nimport gridHorizontalStreak from './grids/grid-horizontal-streak';\nimport gridVerticalStreak from './grids/grid-vertical-streak';\n\nexport default function createGrid(scene) {\n\n let gridMesh = new Three.Object3D();\n gridMesh.name = 'grid';\n let fontLoader = new Three.FontLoader();\n let font = fontLoader.parse(HELVETIKER); // For measures\n let { grids, width, height } = scene;\n\n grids.forEach(grid => {\n switch (grid.type) {\n case 'horizontal-streak':\n gridMesh.add(gridHorizontalStreak(width, height, grid, font));\n break;\n case 'vertical-streak':\n gridMesh.add(gridVerticalStreak(width, height, grid, font));\n break;\n }\n });\n\n gridMesh.position.y = -1;\n return gridMesh;\n}\n","'use strict';\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport * as Three from 'three';\nimport { parseData, updateScene } from './scene-creator';\nimport { disposeScene } from './three-memory-cleaner';\nimport OrbitControls from './libs/orbit-controls';\nimport diff from 'immutablediff';\nimport * as SharedStyle from '../../shared-style';\n\nexport default class Scene3DViewer extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.lastMousePosition = {};\n this.width = props.width;\n this.height = props.height;\n this.renderingID = 0;\n\n this.renderer = window.__threeRenderer || new Three.WebGLRenderer({ preserveDrawingBuffer: true });\n window.__threeRenderer = this.renderer;\n }\n\n componentDidMount() {\n\n let actions = {\n areaActions: this.context.areaActions,\n holesActions: this.context.holesActions,\n itemsActions: this.context.itemsActions,\n linesActions: this.context.linesActions,\n projectActions: this.context.projectActions\n };\n\n let { state } = this.props;\n let data = state.scene;\n let canvasWrapper = ReactDOM.findDOMNode(this.refs.canvasWrapper);\n\n let scene3D = new Three.Scene();\n\n //RENDERER\n this.renderer.setClearColor(new Three.Color(SharedStyle.COLORS.white));\n this.renderer.setSize(this.width, this.height);\n\n // LOAD DATA\n let planData = parseData(data, actions, this.context.catalog);\n\n scene3D.add(planData.plan);\n scene3D.add(planData.grid);\n\n let aspectRatio = this.width / this.height;\n let camera = new Three.PerspectiveCamera(45, aspectRatio, 1, 300000);\n\n scene3D.add(camera);\n\n // Set position for the camera\n let cameraPositionX = -(planData.boundingBox.max.x - planData.boundingBox.min.x) / 2;\n let cameraPositionY = (planData.boundingBox.max.y - planData.boundingBox.min.y) / 2 * 10;\n let cameraPositionZ = (planData.boundingBox.max.z - planData.boundingBox.min.z) / 2;\n\n camera.position.set(cameraPositionX, cameraPositionY, cameraPositionZ);\n camera.up = new Three.Vector3(0, 1, 0);\n\n // HELPER AXIS\n // let axisHelper = new Three.AxisHelper(100);\n // scene3D.add(axisHelper);\n\n // LIGHT\n let light = new Three.AmbientLight(0xafafaf); // soft white light\n scene3D.add(light);\n\n // Add another light\n\n let spotLight1 = new Three.SpotLight(SharedStyle.COLORS.white, 0.30);\n spotLight1.position.set(cameraPositionX, cameraPositionY, cameraPositionZ);\n scene3D.add(spotLight1);\n\n // OBJECT PICKING\n let toIntersect = [planData.plan];\n let mouse = new Three.Vector2();\n let raycaster = new Three.Raycaster();\n\n this.mouseDownEvent = (event) => {\n this.lastMousePosition.x = event.offsetX / this.width * 2 - 1;\n this.lastMousePosition.y = -event.offsetY / this.height * 2 + 1;\n };\n\n this.mouseUpEvent = (event) => {\n event.preventDefault();\n\n mouse.x = (event.offsetX / this.width) * 2 - 1;\n mouse.y = -(event.offsetY / this.height) * 2 + 1;\n\n if (Math.abs(mouse.x - this.lastMousePosition.x) <= 0.02 && Math.abs(mouse.y - this.lastMousePosition.y) <= 0.02) {\n\n raycaster.setFromCamera(mouse, camera);\n let intersects = raycaster.intersectObjects(toIntersect, true);\n\n if (intersects.length > 0 && !(isNaN(intersects[0].distance))) {\n intersects[0].object.interact && intersects[0].object.interact();\n } else {\n this.context.projectActions.unselectAll();\n }\n }\n };\n\n this.renderer.domElement.addEventListener('mousedown', this.mouseDownEvent);\n this.renderer.domElement.addEventListener('mouseup', this.mouseUpEvent);\n this.renderer.domElement.style.display = 'block';\n\n // add the output of the renderer to the html element\n canvasWrapper.appendChild(this.renderer.domElement);\n\n // create orbit controls\n let orbitController = new OrbitControls(camera, this.renderer.domElement);\n let spotLightTarget = new Three.Object3D();\n spotLightTarget.name = 'spotLightTarget';\n spotLightTarget.position.set(orbitController.target.x, orbitController.target.y, orbitController.target.z);\n scene3D.add(spotLightTarget);\n spotLight1.target = spotLightTarget;\n\n let render = () => {\n orbitController.update();\n spotLight1.position.set(camera.position.x, camera.position.y, camera.position.z);\n spotLightTarget.position.set(orbitController.target.x, orbitController.target.y, orbitController.target.z);\n camera.updateMatrix();\n camera.updateMatrixWorld();\n\n for (let elemID in planData.sceneGraph.LODs) {\n planData.sceneGraph.LODs[elemID].update(camera);\n }\n\n this.renderer.render(scene3D, camera);\n this.renderingID = requestAnimationFrame(render);\n };\n\n render();\n\n this.orbitControls = orbitController;\n this.camera = camera;\n this.scene3D = scene3D;\n this.planData = planData;\n }\n\n componentWillUnmount() {\n cancelAnimationFrame(this.renderingID);\n\n this.orbitControls.dispose();\n\n this.renderer.domElement.removeEventListener('mousedown', this.mouseDownEvent);\n this.renderer.domElement.removeEventListener('mouseup', this.mouseUpEvent);\n\n disposeScene(this.scene3D);\n this.scene3D.remove(this.planData.plan);\n this.scene3D.remove(this.planData.grid);\n\n this.scene3D = null;\n this.planData = null;\n this.camera = null;\n this.orbitControls = null;\n this.renderer.renderLists.dispose();\n }\n\n componentWillReceiveProps(nextProps) {\n let { width, height } = nextProps;\n\n let actions = {\n areaActions: this.context.areaActions,\n holesActions: this.context.holesActions,\n itemsActions: this.context.itemsActions,\n linesActions: this.context.linesActions,\n projectActions: this.context.projectActions\n };\n\n this.width = width;\n this.height = height;\n\n this.camera.aspect = width / height;\n\n this.camera.updateProjectionMatrix();\n\n if (nextProps.state.scene !== this.props.state.scene) {\n let changedValues = diff(this.props.state.scene, nextProps.state.scene);\n updateScene(this.planData, nextProps.state.scene, this.props.state.scene, changedValues.toJS(), actions, this.context.catalog);\n }\n\n this.renderer.setSize(width, height);\n }\n\n render() {\n return React.createElement('div', { ref: 'canvasWrapper' });\n }\n}\n\nScene3DViewer.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n};\n\nScene3DViewer.contextTypes = {\n areaActions: PropTypes.object.isRequired,\n holesActions: PropTypes.object.isRequired,\n itemsActions: PropTypes.object.isRequired,\n linesActions: PropTypes.object.isRequired,\n projectActions: PropTypes.object.isRequired,\n catalog: PropTypes.object\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nexport default class RulerY extends Component {\n\n constructor(props, context) {\n super(props, context);\n }\n\n render() {\n\n let elementH = this.props.unitPixelSize * this.props.zoom;\n\n let elementStyle = {\n width: '8px',\n borderBottom: '1px solid ' + this.props.fontColor,\n paddingBottom: '0.2em',\n fontSize: '10px',\n height: elementH,\n textOrientation: 'upright',\n writingMode: 'vertical-lr',\n letterSpacing: '-2px',\n textAlign: 'right'\n };\n\n let insideElementsStyle = {\n height: '20%',\n width: '100%',\n textOrientation: 'upright',\n writingMode: 'vertical-lr',\n display: 'inline-block',\n letterSpacing: '-2px',\n textAlign: 'right'\n };\n\n let rulerStyle = {\n backgroundColor: this.props.backgroundColor,\n height: this.props.height,\n width: '100%',\n color: this.props.fontColor\n }\n\n let markerStyle = {\n position: 'absolute',\n top: this.props.zeroTopPosition - (this.props.mouseY * this.props.zoom) - 6.5,\n left: 8,\n width: 0,\n height: 0,\n borderTop: '5px solid transparent',\n borderBottom: '5px solid transparent',\n borderLeft: '8px solid ' + this.props.markerColor,\n zIndex: 9001\n };\n\n let rulerContainer = {\n position: 'absolute',\n width: '100%',\n display: 'grid',\n gridRowGap: '0',\n gridColumnGap: '0',\n gridTemplateColumns: '100%',\n grdAutoRows: `${elementH}px`,\n paddingLeft: '5px'\n };\n\n let positiveRulerContainer = {\n ...rulerContainer,\n top: this.props.zeroTopPosition - (this.props.positiveUnitsNumber * elementH),\n height: (this.props.positiveUnitsNumber * elementH)\n };\n\n let negativeRulerContainer = {\n ...rulerContainer,\n top: this.props.zeroTopPosition + (this.props.negativeUnitsNumber * elementH),\n height: (this.props.negativeUnitsNumber * elementH)\n };\n\n let positiveDomElements = [];\n\n if (elementH <= 200) {\n for (let x = 1; x <= this.props.positiveUnitsNumber; x++) {\n positiveDomElements.push(\n
\n {elementH > 30 ? ((this.props.positiveUnitsNumber - x) * 100) : ''}\n
\n );\n }\n }\n else if (elementH > 200) {\n for (let x = 1; x <= this.props.positiveUnitsNumber; x++) {\n let val = (this.props.positiveUnitsNumber - x) * 100;\n positiveDomElements.push(\n
\n
{val + (4 * 20)}
\n
{val + (3 * 20)}
\n
{val + (2 * 20)}
\n
{val + (1 * 20)}
\n
{val}
\n
\n );\n }\n }\n\n return
\n
\n
\n
{positiveDomElements}
\n
;\n }\n\n}\n\nRulerY.propTypes = {\n unitPixelSize: PropTypes.number.isRequired,\n zoom: PropTypes.number.isRequired,\n mouseY: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n zeroTopPosition: PropTypes.number.isRequired,\n backgroundColor: PropTypes.string,\n fontColor: PropTypes.string,\n markerColor: PropTypes.string\n};\n\nRulerY.defaultProps = {\n positiveUnitsNumber: 50,\n negativeUnitsNumber: 50,\n backgroundColor: SharedStyle.PRIMARY_COLOR.main,\n fontColor: SharedStyle.COLORS.white,\n markerColor: SharedStyle.SECONDARY_COLOR.main\n}\n\nRulerY.contextTypes = {\n translator: PropTypes.object.isRequired\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nexport default class RulerX extends Component {\n\n constructor(props, context) {\n super(props, context);\n }\n\n render() {\n\n let elementW = this.props.unitPixelSize * this.props.zoom;\n\n let elementStyle = {\n display: 'inline-block',\n width: elementW,\n position: 'relative',\n borderLeft: '1px solid ' + this.props.fontColor,\n paddingLeft: '0.2em',\n fontSize: '10px',\n height: '100%'\n };\n\n let insideElementsStyle = {\n width: '20%',\n display: 'inline-block',\n margin: 0,\n padding: 0\n };\n\n let rulerStyle = {\n backgroundColor: this.props.backgroundColor,\n position: 'relative',\n width: this.props.width,\n height: '100%',\n color: this.props.fontColor\n }\n\n let markerStyle = {\n position: 'absolute',\n left: this.props.zeroLeftPosition + (this.props.mouseX * this.props.zoom) - 6.5,\n top: 8,\n width: 0,\n height: 0,\n borderLeft: '5px solid transparent',\n borderRight: '5px solid transparent',\n borderTop: '8px solid ' + this.props.markerColor,\n zIndex: 9001\n };\n\n let rulerContainer = {\n position: 'absolute',\n height: '10px',\n top: '4px',\n display: 'grid',\n gridRowGap: '0',\n gridColumnGap: '0',\n gridTemplateRows: '100%',\n grdAutoColumns: `${elementW}px`\n };\n\n let positiveRulerContainer = {\n ...rulerContainer,\n width: (this.props.positiveUnitsNumber * elementW),\n left: this.props.zeroLeftPosition\n };\n\n let negativeRulerContainer = {\n ...rulerContainer,\n width: (this.props.negativeUnitsNumber * elementW),\n left: this.props.zeroLeftPosition - (this.props.negativeUnitsNumber * elementW)\n };\n\n let positiveDomElements = [];\n\n if (elementW <= 200) {\n for (let x = 0; x < this.props.positiveUnitsNumber; x++) {\n positiveDomElements.push(\n
\n {elementW > 30 ? (x * 100) : ''}\n
\n );\n }\n }\n else if (elementW > 200) {\n for (let x = 0; x < this.props.positiveUnitsNumber; x++) {\n let val = x * 100;\n positiveDomElements.push(\n
\n
{val}
\n
{val + (1 * 20)}
\n
{val + (2 * 20)}
\n
{val + (3 * 20)}
\n
{val + (4 * 20)}
\n
\n );\n }\n }\n\n return
\n
\n
\n
{positiveDomElements}
\n
;\n }\n\n}\n\nRulerX.propTypes = {\n unitPixelSize: PropTypes.number.isRequired,\n positiveUnitsNumber: PropTypes.number,\n negativeUnitsNumber: PropTypes.number,\n zoom: PropTypes.number.isRequired,\n mouseX: PropTypes.number.isRequired,\n width: PropTypes.number.isRequired,\n zeroLeftPosition: PropTypes.number.isRequired,\n backgroundColor: PropTypes.string,\n fontColor: PropTypes.string,\n markerColor: PropTypes.string\n};\n\nRulerX.defaultProps = {\n positiveUnitsNumber: 50,\n negativeUnitsNumber: 50,\n backgroundColor: SharedStyle.PRIMARY_COLOR.main,\n fontColor: SharedStyle.COLORS.white,\n markerColor: SharedStyle.SECONDARY_COLOR.main\n}\n\nRulerX.contextTypes = {\n translator: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport If from '../../utils/react-if';\nimport * as sharedStyles from '../../shared-style';\n\nconst cx = 0;\nconst cy = 0;\nconst radius = 5;\n\nconst STYLE_CIRCLE = {\n fill: sharedStyles.MATERIAL_COLORS[500].orange,\n stroke: sharedStyles.MATERIAL_COLORS[500].orange,\n cursor: 'default'\n};\n\nexport default function Group({ layer, group, scene, catalog }, {translator}) {\n return (\n \n \n \n \n {translator.t('Group\\'s Barycenter')}\n \n \n \n \n )\n}\n\nGroup.propTypes = {\n group: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired,\n scene: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n\nGroup.contextTypes = {\n translator: PropTypes.object.isRequired\n};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {List} from 'immutable';\n\nexport default function GridVerticalStreak({width, height, grid}) {\n let step = grid.properties.get('step');\n let colors;\n\n if (grid.properties.has('color')) {\n colors = new List([grid.properties.get('color')]);\n } else {\n colors = grid.properties.get('colors');\n }\n\n let rendered = [];\n let i = 0;\n for (let x = 0; x <= width; x += step) {\n let color = colors.get(i % colors.size);\n i++;\n rendered.push();\n }\n\n return ({rendered});\n}\n\nGridVerticalStreak.propTypes = {\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n grid: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {List} from 'immutable';\n\nexport default function GridHorizontalStreak({width, height, grid}) {\n let step = grid.properties.get('step');\n let colors;\n\n if (grid.properties.has('color')) {\n colors = new List([grid.properties.get('color')]);\n } else {\n colors = grid.properties.get('colors');\n }\n\n let rendered = [];\n let i = 0;\n for (let y = 0; y <= height; y += step) {\n let color = colors.get(i % colors.size);\n i++;\n rendered.push();\n }\n\n return ({rendered});\n}\n\nGridHorizontalStreak.propTypes = {\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n grid: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport GridHorizontalStreak from './grid-horizontal-streak';\nimport GridVerticalStreak from './grid-vertical-streak';\n\nexport default function Grids({scene}) {\n\n let {width, height, grids} = scene;\n\n let renderedGrids = grids.entrySeq().map(([gridID, grid]) => {\n switch (grid.type) {\n case 'horizontal-streak':\n return ();\n\n case 'vertical-streak':\n return ();\n\n default:\n console.warn(`grid ${grid.type} not allowed`);\n }\n }).toList();\n\n return ({renderedGrids});\n}\n\nGrids.propTypes = {\n scene: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport polylabel from 'polylabel';\nimport areapolygon from 'area-polygon';\n\nconst STYLE_TEXT = {\n textAnchor: 'middle',\n fontSize: '12px',\n fontFamily: '\"Courier New\", Courier, monospace',\n pointerEvents: 'none',\n fontWeight: 'bold',\n\n //http://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css\n WebkitTouchCallout: 'none', /* iOS Safari */\n WebkitUserSelect: 'none', /* Chrome/Safari/Opera */\n MozUserSelect: 'none', /* Firefox */\n MsUserSelect: 'none', /* Internet Explorer/Edge */\n userSelect: 'none'\n};\n\n\nexport default function Area({layer, area, catalog}) {\n\n let rendered = catalog.getElement(area.type).render2D(area, layer);\n\n let renderedAreaSize = null;\n\n if (area.selected) {\n let polygon = area.vertices.toArray().map(vertexID => {\n let {x, y} = layer.vertices.get(vertexID);\n return [x, y];\n });\n\n let polygonWithHoles = polygon;\n\n area.holes.forEach(holeID => {\n\n let polygonHole = layer.areas.get(holeID).vertices.toArray().map(vertexID => {\n let {x, y} = layer.vertices.get(vertexID);\n return [x, y];\n });\n\n polygonWithHoles = polygonWithHoles.concat(polygonHole.reverse());\n });\n\n let center = polylabel([polygonWithHoles], 1.0);\n let areaSize = areapolygon(polygon, false);\n\n //subtract holes area\n area.holes.forEach(areaID => {\n let hole = layer.areas.get(areaID);\n let holePolygon = hole.vertices.toArray().map(vertexID => {\n let {x, y} = layer.vertices.get(vertexID);\n return [x, y];\n });\n areaSize -= areapolygon(holePolygon, false);\n });\n\n renderedAreaSize = (\n \n {(areaSize / 10000).toFixed(2)} m{String.fromCharCode(0xb2)}\n \n )\n }\n\n return (\n \n {rendered}\n {renderedAreaSize}\n \n )\n\n}\n\nArea.propTypes = {\n area: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n\n\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport If from '../../utils/react-if';\n\nconst STYLE_LINE = {\n fill: \"#0096fd\",\n stroke: \"#0096fd\"\n};\n\nconst STYLE_CIRCLE = {\n fill: \"#0096fd\",\n stroke: \"#0096fd\",\n cursor: \"ew-resize\"\n};\n\nconst STYLE_CIRCLE2 = {\n fill: \"none\",\n stroke: \"#0096fd\",\n cursor: \"ew-resize\"\n};\n\nexport default function Item({layer, item, scene, catalog}) {\n\n let {x, y, rotation} = item;\n\n let renderedItem = catalog.getElement(item.type).render2D(item, layer, scene);\n\n return (\n \n\n {renderedItem}\n \n \n \n \n \n \n \n )\n}\n\nItem.propTypes = {\n item: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired,\n scene: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n Line,\n Area,\n Vertex,\n Item,\n Group\n} from './export';\n\nexport default function Layer({ layer, scene, catalog }) {\n\n let { unit, groups } = scene;\n let { lines, areas, vertices, holes, id: layerID, items, opacity } = layer;\n\n return (\n \n {\n areas.valueSeq().map(area =>\n )\n }\n {\n lines.valueSeq().map(line =>\n )\n }\n {\n items.valueSeq().map(item =>\n )\n }\n {\n vertices\n .valueSeq()\n .filter(v => v.selected)\n .map(vertex => )\n }\n {\n groups\n .valueSeq()\n .filter(g => g.hasIn(['elements', layerID]) && g.get('selected'))\n .map(group => )\n }\n \n );\n\n}\n\nLayer.propTypes = {\n layer: PropTypes.object.isRequired,\n scene: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {GeometryUtils} from '../../utils/export';\nimport Ruler from './ruler';\n\nexport default function Line({line, layer, scene, catalog}) {\n\n let vertex0 = layer.vertices.get(line.vertices.get(0));\n let vertex1 = layer.vertices.get(line.vertices.get(1));\n\n if (vertex0.id === vertex1.id || GeometryUtils.samePoints(vertex0, vertex1)) return null; //avoid 0-length lines\n\n let {x: x1, y: y1} = vertex0;\n let {x: x2, y: y2} = vertex1;\n\n if (x1 > x2) {\n ({x: x1, y: y1} = vertex1);\n ({x: x2, y: y2} = vertex0);\n }\n\n let length = GeometryUtils.pointsDistance(x1, y1, x2, y2);\n let angle = GeometryUtils.angleBetweenTwoPointsAndOrigin(x1, y1, x2, y2);\n\n let renderedHoles = line.holes.map(holeID => {\n let hole = layer.holes.get(holeID);\n let startAt = length * hole.offset;\n let renderedHole = catalog.getElement(hole.type).render2D(hole, layer, scene);\n\n return (\n \n {renderedHole}\n \n );\n });\n\n let thickness = line.getIn(['properties', 'thickness', 'length']);\n let half_thickness = thickness / 2;\n\n let renderedLine = catalog.getElement(line.type).render2D(line, layer);\n let renderedRuler = line.selected ?\n : null;\n\n return (\n \n {renderedRuler}\n {renderedLine}\n {renderedHoles}\n \n );\n\n}\n\nLine.propTypes = {\n line: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired,\n scene: PropTypes.object.isRequired,\n catalog: PropTypes.object.isRequired,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as SharedStyle from '../../shared-style';\n\nconst STYLE = {fill: \"#0096fd\", stroke: SharedStyle.COLORS.white, cursor: \"move\"};\n\nexport default function Vertex({vertex, layer}) {\n\n let {x, y} = vertex;\n\n return (\n \n \n \n );\n}\n\nVertex.propTypes = {\n vertex: PropTypes.object.isRequired,\n layer: PropTypes.object.isRequired,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Viewer2D from './viewer2d/viewer2d';\nimport Viewer3D from './viewer3d/viewer3d';\nimport Viewer3DFirstPerson from './viewer3d/viewer3d-first-person';\nimport CatalogList from './catalog-view/catalog-list';\nimport ProjectConfigurator from './configurator/project-configurator';\n\nimport * as constants from '../constants';\n\nexport default function Content({width, height, state, customContents}) {\n let mode = state.get('mode');\n\n switch (mode) {\n case constants.MODE_3D_VIEW:\n return ;\n\n case constants.MODE_3D_FIRST_PERSON:\n return ;\n\n case constants.MODE_VIEWING_CATALOG:\n return ;\n\n case constants.MODE_IDLE:\n case constants.MODE_2D_ZOOM_IN:\n case constants.MODE_2D_ZOOM_OUT:\n case constants.MODE_2D_PAN:\n case constants.MODE_WAITING_DRAWING_LINE:\n case constants.MODE_DRAGGING_LINE:\n case constants.MODE_DRAGGING_VERTEX:\n case constants.MODE_DRAGGING_ITEM:\n case constants.MODE_DRAWING_LINE:\n case constants.MODE_DRAWING_HOLE:\n case constants.MODE_DRAWING_ITEM:\n case constants.MODE_DRAGGING_HOLE:\n case constants.MODE_ROTATING_ITEM:\n return ;\n\n case constants.MODE_CONFIGURING_PROJECT:\n return ;\n\n default:\n if (customContents.hasOwnProperty(mode)) {\n let CustomContent = customContents[mode];\n return \n } else {\n throw new Error(`Mode ${mode} doesn't have a mapped content`);\n }\n }\n}\n\nContent.propTypes = {\n state: PropTypes.object.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n};\n","module.exports = __webpack_public_path__ + \"catalog/items/teaching-post/wood.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/school-desk/wood.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/school-desk-double/wood.jpg\";","module.exports = __webpack_public_path__ + \"catalog/items/bookcase/wood.jpg\";","// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\nexport const VERSION = '2.0.2';"],"sourceRoot":""} \ No newline at end of file diff --git a/demo/dist/index.html b/demo/dist/index.html index 1bb6b4bb..755a17e6 100644 --- a/demo/dist/index.html +++ b/demo/dist/index.html @@ -28,5 +28,5 @@ alt="Fork me on GitHub" data-canonical- src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"/> - + diff --git a/es/class/line.js b/es/class/line.js index 1fad36d1..ff03aebd 100644 --- a/es/class/line.js +++ b/es/class/line.js @@ -140,7 +140,8 @@ var Line = function () { //add splitted lines to the original line's group var lineGroups = state.getIn(['scene', 'groups']).filter(function (group) { - return group.getIn(['elements', layerID, 'lines']).contains(lineID); + var lines = group.getIn(['elements', layerID, 'lines']); + return lines && lines.contains(lineID); }); lineGroups.forEach(function (group) { @@ -593,7 +594,8 @@ var Line = function () { var lineGroups = state //get groups membership if present .getIn(['scene', 'groups']).filter(function (group) { - return group.getIn(['elements', layerID, 'lines']).contains(lineID); + var lines = group.getIn(['elements', layerID, 'lines']); + return lines && lines.contains(lineID); }); state = Layer.mergeEqualsVertices(state, layerID, line.vertices.get(0)).updatedState; diff --git a/es/class/vertex.js b/es/class/vertex.js index d5d1b52a..873e56ab 100644 --- a/es/class/vertex.js +++ b/es/class/vertex.js @@ -198,7 +198,8 @@ var Vertex = function () { var lineProps = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'properties']); var lineGroups = reducedState //get groups membership if present .getIn(['scene', 'groups']).filter(function (group) { - return group.getIn(['elements', layerID, 'lines']).contains(lineID); + var lines = group.getIn(['elements', layerID, 'lines']); + return lines && lines.contains(lineID); }); reducedState = Layer.removeZeroLengthLines(reducedState, layerID).updatedState; diff --git a/es/styles/tabs.css b/es/styles/tabs.css new file mode 100644 index 00000000..9ea1b94e --- /dev/null +++ b/es/styles/tabs.css @@ -0,0 +1,30 @@ +.react-tabs__tab-list { + border-bottom: 1px solid #aaa; + margin: 0 0 10px; + padding: 0; +} + +.react-tabs__tab { + display: inline-block; + border: 1px solid transparent; + border-bottom: none; + bottom: -1px; + position: relative; + list-style: none; + padding: 6px 12px; + cursor: pointer; +} + +.react-tabs__tab--selected, .react-tabs__tab:focus { + border-color: #aaa; + color: #1CA6FC; + outline: none; +} + +.react-tabs__tab-panel { + display: none; +} + +.react-tabs__tab-panel--selected { + display: block; +} \ No newline at end of file diff --git a/lib/class/line.js b/lib/class/line.js index e21ea986..e2038c9e 100644 --- a/lib/class/line.js +++ b/lib/class/line.js @@ -150,7 +150,8 @@ var Line = function () { //add splitted lines to the original line's group var lineGroups = state.getIn(['scene', 'groups']).filter(function (group) { - return group.getIn(['elements', layerID, 'lines']).contains(lineID); + var lines = group.getIn(['elements', layerID, 'lines']); + return lines && lines.contains(lineID); }); lineGroups.forEach(function (group) { @@ -603,7 +604,8 @@ var Line = function () { var lineGroups = state //get groups membership if present .getIn(['scene', 'groups']).filter(function (group) { - return group.getIn(['elements', layerID, 'lines']).contains(lineID); + var lines = group.getIn(['elements', layerID, 'lines']); + return lines && lines.contains(lineID); }); state = _export.Layer.mergeEqualsVertices(state, layerID, line.vertices.get(0)).updatedState; diff --git a/lib/class/vertex.js b/lib/class/vertex.js index 6e971c41..e23552d3 100644 --- a/lib/class/vertex.js +++ b/lib/class/vertex.js @@ -209,7 +209,8 @@ var Vertex = function () { var lineProps = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID, 'properties']); var lineGroups = reducedState //get groups membership if present .getIn(['scene', 'groups']).filter(function (group) { - return group.getIn(['elements', layerID, 'lines']).contains(lineID); + var lines = group.getIn(['elements', layerID, 'lines']); + return lines && lines.contains(lineID); }); reducedState = _export2.Layer.removeZeroLengthLines(reducedState, layerID).updatedState;