All Downloads are FREE. Search and download functionalities are using the official Maven repository.

netty-server-ui.v1.js.729.ed3a0f55.js Maven / Gradle / Ivy

The newest version!
/*! For license information please see 729.ed3a0f55.js.LICENSE.txt */
(self.webpackChunkwu_smart_agent_network=self.webpackChunkwu_smart_agent_network||[]).push([[729],{85729:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>g});var i=r(66252),n=r(87482),o=r.n(n),s=r(2262),a=function(t){return(0,i.dD)("data-v-3e778cc6"),t=t(),(0,i.Cn)(),t},h={class:"ve_404"},c=(0,i.uE)('
',9),d={class:"error"},p=a((function(){return(0,i._)("div",{class:"error__title"},"404",-1)})),u=a((function(){return(0,i._)("div",{class:"error__subtitle"},"🐱🐱🐱(⓿_⓿)🐱🐱🐱",-1)})),l=a((function(){return(0,i._)("div",{class:"error__description"},"看来你是迷路了......",-1)})),f=a((function(){return(0,i._)("button",{class:"error__button error__button--active"}," 回到首页 ",-1)})),y={class:"astronaut"};const v={__name:"Common",setup:function(t){var e=(0,s.iH)(null),r=null;(0,i.bv)((function(){n()}));var n=function(){if(e.value&&e.value.parentNode){e.value.width=e.value.parentNode.clientWidth,e.value.height=e.value.parentNode.clientHeight;var t="#fe9642",i="#FFF8E7",n="#7f3f98",s="#563795",a="#fbc715",h=new(o().Illustration)({element:e.value,dragRotate:!0,zoom:.65}),c=new(o().RoundedRect)({addTo:h,width:200,height:220,color:"white",fill:!0,cornerRadius:16,stroke:60});new(o().RoundedRect)({addTo:c,width:180,height:310,color:t,fill:!0,cornerRadius:24,stroke:120,translate:{z:-85,y:-60}});var d=new(o().RoundedRect)({addTo:c,height:30,width:28,stroke:60,fill:!0,color:s,translate:{x:-140,y:-64},cornerRadius:.05});new(o().RoundedRect)({addTo:d,height:120,width:12,stroke:60,fill:!0,color:i,translate:{y:120},cornerRadius:.05});var p=new(o().Shape)({addTo:d,path:[{x:-20},{x:20}],stroke:32,color:n,translate:{y:210}});p.copy({color:s,translate:{y:230}}),new(o().RoundedRect)({addTo:p,height:32,width:22,translate:{x:-8,y:60},fill:!0,color:a,stroke:30}),new(o().RoundedRect)({addTo:p,height:24,width:0,translate:{x:24,y:50},fill:!0,color:t,stroke:20}),d.copyGraph({translate:{x:140,y:-64},rotate:{y:o().TAU/2}});var u=new(o().RoundedRect)({addTo:c,height:160,width:28,stroke:60,fill:!0,color:i,translate:{x:-56,y:230},cornerRadius:.05});new(o().Shape)({addTo:u,path:[{x:-28},{x:28}],stroke:32,color:n,translate:{y:100}}).copy({color:s,translate:{y:124}}),new(o().RoundedRect)({addTo:u,width:96,height:24,stroke:40,fill:!0,color:a,translate:{x:-24,y:170},cornerRadius:24}),u.copyGraph({translate:{x:56,y:230},rotate:{y:o().TAU/2}});var l=new(o().RoundedRect)({addTo:c,width:216,height:180,depth:40,cornerRadius:80,stroke:60,color:i,fill:!0,translate:{y:-300}}),f=new(o().RoundedRect)({addTo:l,width:210,height:165,cornerRadius:64,color:"#131e38",fill:!0,backface:!1,translate:{z:20}});new(o().Rect)({addTo:f,width:48,height:2,stroke:10,translate:{x:24,y:-24,z:10},color:"white",backface:!1}),new(o().RoundedRect)({addTo:l,width:36,height:72,cornerRadius:80,stroke:20,color:t,fill:!0,translate:{x:-140}}).copy({translate:{x:140}}),new(o().Shape)({addTo:l,path:[{x:-110},{x:110}],translate:{y:120},stroke:40,color:n}).copy({translate:{y:160},color:s});var y=new(o().Shape)({addTo:c,path:[{x:-20},{x:20}],stroke:10,translate:{x:200,z:200},color:a});y.copy({translate:{x:320,y:200,z:-400},color:a}),y.copy({translate:{x:-220,y:300,z:-400},color:"white"}),y.copy({translate:{x:-100,y:400,z:-280},color:n}),y.copy({translate:{x:50,y:-60,z:150},color:t}),y.copy({translate:{x:-250,y:80,z:300},color:n}),y.copy({translate:{x:-350,y:-280,z:175},color:s}),y.copy({translate:{x:250,y:-380,z:-175},color:"white"}),h.updateRenderGraph(),function t(){h.rotate.y+=.005,h.rotate.x+=.005,h.rotate.z+=.005,h.updateRenderGraph(),r=requestAnimationFrame(t)}()}else console.log("cav.value.parentNode is null"+e.value)};return(0,i.Ah)((function(){cancelAnimationFrame(r),r=null})),function(t,r){var o=(0,i.up)("router-link"),s=(0,i.Q2)("resize");return(0,i.wg)(),(0,i.iD)("div",h,[c,(0,i.WI)(t.$slots,"default",{},(function(){return[(0,i._)("div",d,[p,u,l,(0,i.Wm)(o,{to:"/"},{default:(0,i.w5)((function(){return[f]})),_:1})])]})),(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",y,[(0,i._)("canvas",{ref_key:"cav",ref:e},null,512)])),[[s,{resize:n}]])])}}};const g=(0,r(48118).Z)(v,[["__scopeId","data-v-3e778cc6"]])},51190:function(t,e,r){!function(e,i){if(t.exports)t.exports=i(r(24718),r(58251),r(91852),r(78813));else{var n=e.Zdog;n.Anchor=i(n,n.Vector,n.CanvasRenderer,n.SvgRenderer)}}(this,(function(t,e,r,i){var n=t.TAU,o={x:1,y:1,z:1};function s(t){this.create(t||{})}return s.prototype.create=function(r){this.children=[],t.extend(this,this.constructor.defaults),this.setOptions(r),this.translate=new e(r.translate),this.rotate=new e(r.rotate),this.scale=new e(o).multiply(this.scale),this.origin=new e,this.renderOrigin=new e,this.addTo&&this.addTo.addChild(this)},s.defaults={},s.optionKeys=Object.keys(s.defaults).concat(["rotate","translate","scale","addTo"]),s.prototype.setOptions=function(t){var e=this.constructor.optionKeys;for(var r in t)-1!=e.indexOf(r)&&(this[r]=t[r])},s.prototype.addChild=function(t){-1==this.children.indexOf(t)&&(t.remove(),t.addTo=this,this.children.push(t))},s.prototype.removeChild=function(t){var e=this.children.indexOf(t);-1!=e&&this.children.splice(e,1)},s.prototype.remove=function(){this.addTo&&this.addTo.removeChild(this)},s.prototype.update=function(){this.reset(),this.children.forEach((function(t){t.update()})),this.transform(this.translate,this.rotate,this.scale)},s.prototype.reset=function(){this.renderOrigin.set(this.origin)},s.prototype.transform=function(t,e,r){this.renderOrigin.transform(t,e,r),this.children.forEach((function(i){i.transform(t,e,r)}))},s.prototype.updateGraph=function(){this.update(),this.updateFlatGraph(),this.flatGraph.forEach((function(t){t.updateSortValue()})),this.flatGraph.sort(s.shapeSorter)},s.shapeSorter=function(t,e){return t.sortValue-e.sortValue},Object.defineProperty(s.prototype,"flatGraph",{get:function(){return this._flatGraph||this.updateFlatGraph(),this._flatGraph},set:function(t){this._flatGraph=t}}),s.prototype.updateFlatGraph=function(){this.flatGraph=this.getFlatGraph()},s.prototype.getFlatGraph=function(){var t=[this];return this.addChildFlatGraph(t)},s.prototype.addChildFlatGraph=function(t){return this.children.forEach((function(e){var r=e.getFlatGraph();Array.prototype.push.apply(t,r)})),t},s.prototype.updateSortValue=function(){this.sortValue=this.renderOrigin.z},s.prototype.render=function(){},s.prototype.renderGraphCanvas=function(t){if(!t)throw new Error("ctx is "+t+". Canvas context required for render. Check .renderGraphCanvas( ctx ).");this.flatGraph.forEach((function(e){e.render(t,r)}))},s.prototype.renderGraphSvg=function(t){if(!t)throw new Error("svg is "+t+". SVG required for render. Check .renderGraphSvg( svg ).");this.flatGraph.forEach((function(e){e.render(t,i)}))},s.prototype.copy=function(e){var r={};return this.constructor.optionKeys.forEach((function(t){r[t]=this[t]}),this),t.extend(r,e),new(0,this.constructor)(r)},s.prototype.copyGraph=function(t){var e=this.copy(t);return this.children.forEach((function(t){t.copyGraph({addTo:e})})),e},s.prototype.normalizeRotate=function(){this.rotate.x=t.modulo(this.rotate.x,n),this.rotate.y=t.modulo(this.rotate.y,n),this.rotate.z=t.modulo(this.rotate.z,n)},s.subclass=function e(r){return function(i){function n(t){this.create(t||{})}return n.prototype=Object.create(r.prototype),n.prototype.constructor=n,n.defaults=t.extend({},r.defaults),t.extend(n.defaults,i),n.optionKeys=r.optionKeys.slice(0),Object.keys(n.defaults).forEach((function(t){1!=!n.optionKeys.indexOf(t)&&n.optionKeys.push(t)})),n.subclass=e(n),n}}(s),s}))},24718:function(t){var e,r;e=this,r=function(){var t={};t.TAU=2*Math.PI,t.extend=function(t,e){for(var r in e)t[r]=e[r];return t},t.lerp=function(t,e,r){return(e-t)*r+t},t.modulo=function(t,e){return(t%e+e)%e};var e={2:function(t){return t*t},3:function(t){return t*t*t},4:function(t){return t*t*t*t},5:function(t){return t*t*t*t*t}};return t.easeInOut=function(t,r){if(1==r)return t;var i=(t=Math.max(0,Math.min(1,t)))<.5,n=i?t:1-t,o=(e[r]||e[2])(n/=.5);return o/=2,i?o:1-o},t},t.exports?t.exports=r():e.Zdog=r()},74627:function(t,e,r){!function(e,i){if(t.exports)t.exports=i(r(24718),r(51190),r(9340),r(58584));else{var n=e.Zdog;n.Box=i(n,n.Anchor,n.Shape,n.Rect)}}(this,(function(t,e,r,i){var n=i.subclass();n.prototype.copyGraph=function(){};var o=t.TAU,s=["frontFace","rearFace","leftFace","rightFace","topFace","bottomFace"],a=t.extend({},r.defaults);delete a.path,s.forEach((function(t){a[t]=!0})),t.extend(a,{width:1,height:1,depth:1,fill:!0});var h=e.subclass(a);h.prototype.create=function(t){e.prototype.create.call(this,t),this.updatePath(),this.fill=this.fill},h.prototype.updatePath=function(){s.forEach((function(t){this[t]=this[t]}),this)},s.forEach((function(t){var e="_"+t;Object.defineProperty(h.prototype,t,{get:function(){return this[e]},set:function(r){this[e]=r,this.setFace(t,r)}})})),h.prototype.setFace=function(t,e){var r=t+"Rect",i=this[r];if(e){var o=this.getFaceOptions(t);o.color="string"==typeof e?e:this.color,i?i.setOptions(o):i=this[r]=new n(o),i.updatePath(),this.addChild(i)}else this.removeChild(i)},h.prototype.getFaceOptions=function(t){return{frontFace:{width:this.width,height:this.height,translate:{z:this.depth/2}},rearFace:{width:this.width,height:this.height,translate:{z:-this.depth/2},rotate:{y:o/2}},leftFace:{width:this.depth,height:this.height,translate:{x:-this.width/2},rotate:{y:-o/4}},rightFace:{width:this.depth,height:this.height,translate:{x:this.width/2},rotate:{y:o/4}},topFace:{width:this.width,height:this.depth,translate:{y:-this.height/2},rotate:{x:-o/4}},bottomFace:{width:this.width,height:this.depth,translate:{y:this.height/2},rotate:{x:o/4}}}[t]};return["color","stroke","fill","backface","front","visible"].forEach((function(t){var e="_"+t;Object.defineProperty(h.prototype,t,{get:function(){return this[e]},set:function(r){this[e]=r,s.forEach((function(e){var i=this[e+"Rect"],n="string"==typeof this[e];i&&!("color"==t&&n)&&(i[t]=r)}),this)}})})),h}))},91852:function(t){var e,r;e=this,r=function(){var t={isCanvas:!0,begin:function(t){t.beginPath()},move:function(t,e,r){t.moveTo(r.x,r.y)},line:function(t,e,r){t.lineTo(r.x,r.y)},bezier:function(t,e,r,i,n){t.bezierCurveTo(r.x,r.y,i.x,i.y,n.x,n.y)},closePath:function(t){t.closePath()},setPath:function(){},renderPath:function(e,r,i,n){this.begin(e,r),i.forEach((function(i){i.render(e,r,t)})),n&&this.closePath(e,r)},stroke:function(t,e,r,i,n){r&&(t.strokeStyle=i,t.lineWidth=n,t.stroke())},fill:function(t,e,r,i){r&&(t.fillStyle=i,t.fill())},end:function(){}};return t},t.exports?t.exports=r():e.Zdog.CanvasRenderer=r()},42534:function(t,e,r){!function(e,i){if(t.exports)t.exports=i(r(24718),r(58251),r(64935),r(51190),r(41789));else{var n=e.Zdog;n.Cone=i(n,n.Vector,n.PathCommand,n.Anchor,n.Ellipse)}}(this,(function(t,e,r,i,n){var o=n.subclass({length:1,fill:!0}),s=t.TAU;o.prototype.create=function(){n.prototype.create.apply(this,arguments),this.apex=new i({addTo:this,translate:{z:this.length}}),this.renderApex=new e,this.renderCentroid=new e,this.tangentA=new e,this.tangentB=new e,this.surfacePathCommands=[new r("move",[{}]),new r("line",[{}]),new r("line",[{}])]},o.prototype.updateSortValue=function(){this.renderCentroid.set(this.renderOrigin).lerp(this.apex.renderOrigin,1/3),this.sortValue=this.renderCentroid.z},o.prototype.render=function(t,e){this.renderConeSurface(t,e),n.prototype.render.apply(this,arguments)},o.prototype.renderConeSurface=function(t,e){if(this.visible){this.renderApex.set(this.apex.renderOrigin).subtract(this.renderOrigin);var r=this.renderNormal.magnitude(),i=this.renderApex.magnitude2d(),n=this.renderNormal.magnitude2d(),o=Math.acos(n/r),a=Math.sin(o),h=this.diameter/2*r;if(h*a1&&this.path.push({arc:[{x:t,y:e},{x:0,y:e}]}),this.quarters>2&&this.path.push({arc:[{x:-t,y:e},{x:-t,y:0}]}),this.quarters>3&&this.path.push({arc:[{x:-t,y:-e},{x:0,y:-e}]})},e}))},4671:function(t,e,r){!function(e,i){if(t.exports)t.exports=i(r(51190));else{var n=e.Zdog;n.Group=i(n.Anchor)}}(this,(function(t){var e=t.subclass({updateSort:!1,visible:!0});return e.prototype.updateSortValue=function(){var e=0;this.flatGraph.forEach((function(t){t.updateSortValue(),e+=t.sortValue})),this.sortValue=e/this.flatGraph.length,this.updateSort&&this.flatGraph.sort(t.shapeSorter)},e.prototype.render=function(t,e){this.visible&&this.flatGraph.forEach((function(r){r.render(t,e)}))},e.prototype.updateFlatGraph=function(){this.flatGraph=this.addChildFlatGraph([])},e.prototype.getFlatGraph=function(){return[this]},e}))},61581:function(t,e,r){!function(e,i){if(t.exports)t.exports=i(r(24718),r(58251),r(51190),r(41789));else{var n=e.Zdog;n.Hemisphere=i(n,n.Vector,n.Anchor,n.Ellipse)}}(this,(function(t,e,r,i){var n=i.subclass({fill:!0}),o=t.TAU;n.prototype.create=function(){i.prototype.create.apply(this,arguments),this.apex=new r({addTo:this,translate:{z:this.diameter/2}}),this.renderCentroid=new e},n.prototype.updateSortValue=function(){this.renderCentroid.set(this.renderOrigin).lerp(this.apex.renderOrigin,3/8),this.sortValue=this.renderCentroid.z},n.prototype.render=function(t,e){this.renderDome(t,e),i.prototype.render.apply(this,arguments)},n.prototype.renderDome=function(t,e){if(this.visible){var r=this.getDomeRenderElement(t,e),i=Math.atan2(this.renderNormal.y,this.renderNormal.x),n=this.diameter/2*this.renderNormal.magnitude(),s=this.renderOrigin.x,a=this.renderOrigin.y;if(e.isCanvas){var h=i+o/4,c=i-o/4;t.beginPath(),t.arc(s,a,n,h,c)}else e.isSvg&&(i=(i-o/4)/o*360,this.domeSvgElement.setAttribute("d","M "+-n+",0 A "+n+","+n+" 0 0 1 "+n+",0"),this.domeSvgElement.setAttribute("transform","translate("+s+","+a+" ) rotate("+i+")"));e.stroke(t,r,this.stroke,this.color,this.getLineWidth()),e.fill(t,r,this.fill,this.color),e.end(t,r)}};return n.prototype.getDomeRenderElement=function(t,e){if(e.isSvg)return this.domeSvgElement||(this.domeSvgElement=document.createElementNS("http://www.w3.org/2000/svg","path"),this.domeSvgElement.setAttribute("stroke-linecap","round"),this.domeSvgElement.setAttribute("stroke-linejoin","round")),this.domeSvgElement},n}))},93173:function(t,e,r){!function(e,i){if(t.exports)t.exports=i(r(24718),r(51190),r(75309));else{var n=e.Zdog;n.Illustration=i(n,n.Anchor,n.Dragger)}}(this,(function(t,e,r){function i(){}var n=t.TAU,o=e.subclass({element:void 0,centered:!0,zoom:1,dragRotate:!1,resize:!1,onPrerender:i,onDragStart:i,onDragMove:i,onDragEnd:i,onResize:i});return t.extend(o.prototype,r.prototype),o.prototype.create=function(t){e.prototype.create.call(this,t),r.prototype.create.call(this,t),this.setElement(this.element),this.setDragRotate(this.dragRotate),this.setResize(this.resize)},o.prototype.setElement=function(t){if(!(t=this.getQueryElement(t)))throw new Error("Zdog.Illustration element required. Set to "+t);var e=t.nodeName.toLowerCase();"canvas"==e?this.setCanvas(t):"svg"==e&&this.setSvg(t)},o.prototype.setSize=function(t,e){t=Math.round(t),e=Math.round(e),this.isCanvas?this.setSizeCanvas(t,e):this.isSvg&&this.setSizeSvg(t,e)},o.prototype.setResize=function(t){this.resize=t,this.resizeListener||(this.resizeListener=this.onWindowResize.bind(this)),t?(window.addEventListener("resize",this.resizeListener),this.onWindowResize()):window.removeEventListener("resize",this.resizeListener)},o.prototype.onWindowResize=function(){this.setMeasuredSize(),this.onResize(this.width,this.height)},o.prototype.setMeasuredSize=function(){var t,e;if("fullscreen"==this.resize)t=window.innerWidth,e=window.innerHeight;else{var r=this.element.getBoundingClientRect();t=r.width,e=r.height}this.setSize(t,e)},o.prototype.renderGraph=function(t){this.isCanvas?this.renderGraphCanvas(t):this.isSvg&&this.renderGraphSvg(t)},o.prototype.updateRenderGraph=function(t){this.updateGraph(),this.renderGraph(t)},o.prototype.setCanvas=function(t){this.element=t,this.isCanvas=!0,this.ctx=this.element.getContext("2d"),this.setSizeCanvas(t.width,t.height)},o.prototype.setSizeCanvas=function(t,e){this.width=t,this.height=e;var r=this.pixelRatio=window.devicePixelRatio||1;this.element.width=this.canvasWidth=t*r,this.element.height=this.canvasHeight=e*r,r>1&&!this.resize&&(this.element.style.width=t+"px",this.element.style.height=e+"px")},o.prototype.renderGraphCanvas=function(t){t=t||this,this.prerenderCanvas(),e.prototype.renderGraphCanvas.call(t,this.ctx),this.postrenderCanvas()},o.prototype.prerenderCanvas=function(){var t=this.ctx;if(t.lineCap="round",t.lineJoin="round",t.clearRect(0,0,this.canvasWidth,this.canvasHeight),t.save(),this.centered){var e=this.width/2*this.pixelRatio,r=this.height/2*this.pixelRatio;t.translate(e,r)}var i=this.pixelRatio*this.zoom;t.scale(i,i),this.onPrerender(t)},o.prototype.postrenderCanvas=function(){this.ctx.restore()},o.prototype.setSvg=function(t){this.element=t,this.isSvg=!0,this.pixelRatio=1;var e=t.getAttribute("width"),r=t.getAttribute("height");this.setSizeSvg(e,r)},o.prototype.setSizeSvg=function(t,e){this.width=t,this.height=e;var r=t/this.zoom,i=e/this.zoom,n=this.centered?-r/2:0,o=this.centered?-i/2:0;this.element.setAttribute("viewBox",n+" "+o+" "+r+" "+i),this.resize?(this.element.removeAttribute("width"),this.element.removeAttribute("height")):(this.element.setAttribute("width",t),this.element.setAttribute("height",e))},o.prototype.renderGraphSvg=function(t){t=t||this,function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}(this.element),this.onPrerender(this.element),e.prototype.renderGraphSvg.call(t,this.element)},o.prototype.setDragRotate=function(t){t&&(!0===t&&(t=this),this.dragRotate=t,this.bindDrag(this.element))},o.prototype.dragStart=function(){this.dragStartRX=this.dragRotate.rotate.x,this.dragStartRY=this.dragRotate.rotate.y,r.prototype.dragStart.apply(this,arguments)},o.prototype.dragMove=function(t,e){var i=e.pageX-this.dragStartX,o=e.pageY-this.dragStartY,s=Math.min(this.width,this.height),a=i/s*n,h=o/s*n;this.dragRotate.rotate.x=this.dragStartRX-h,this.dragRotate.rotate.y=this.dragStartRY-a,r.prototype.dragMove.apply(this,arguments)},o}))},87482:function(t,e,r){var i,n,o,s,a,h,c,d,p,u,l,f,y,v,g,m,x,w,S,R,b,C;s=this,t.exports?t.exports=(a=r(24718),h=r(91852),c=r(78813),d=r(58251),p=r(51190),u=r(75309),l=r(93173),f=r(64935),y=r(9340),v=r(4671),g=r(58584),m=r(87523),x=r(41789),w=r(34248),S=r(61581),R=r(39401),b=r(42534),C=r(74627),a.CanvasRenderer=h,a.SvgRenderer=c,a.Vector=d,a.Anchor=p,a.Dragger=u,a.Illustration=l,a.PathCommand=f,a.Shape=y,a.Group=v,a.Rect=g,a.RoundedRect=m,a.Ellipse=x,a.Polygon=w,a.Hemisphere=S,a.Cylinder=R,a.Cone=b,a.Box=C,a):(n=[],i=s.Zdog,void 0===(o="function"==typeof i?i.apply(e,n):i)||(t.exports=o))},64935:function(t,e,r){!function(e,i){if(t.exports)t.exports=i(r(58251));else{var n=e.Zdog;n.PathCommand=i(n.Vector)}}(this,(function(t){function e(e,n,o){this.method=e,this.points=n.map(r),this.renderPoints=n.map(i),this.previousPoint=o,this.endRenderPoint=this.renderPoints[this.renderPoints.length-1],"arc"==e&&(this.controlPoints=[new t,new t])}function r(e){return e instanceof t?e:new t(e)}function i(e){return new t(e)}e.prototype.reset=function(){var t=this.points;this.renderPoints.forEach((function(e,r){var i=t[r];e.set(i)}))},e.prototype.transform=function(t,e,r){this.renderPoints.forEach((function(i){i.transform(t,e,r)}))},e.prototype.render=function(t,e,r){return this[this.method](t,e,r)},e.prototype.move=function(t,e,r){return r.move(t,e,this.renderPoints[0])},e.prototype.line=function(t,e,r){return r.line(t,e,this.renderPoints[0])},e.prototype.bezier=function(t,e,r){var i=this.renderPoints[0],n=this.renderPoints[1],o=this.renderPoints[2];return r.bezier(t,e,i,n,o)};var n=9/16;return e.prototype.arc=function(t,e,r){var i=this.previousPoint,o=this.renderPoints[0],s=this.renderPoints[1],a=this.controlPoints[0],h=this.controlPoints[1];return a.set(i).lerp(o,n),h.set(s).lerp(o,n),r.bezier(t,e,a,h,s)},e}))},34248:function(t,e,r){!function(e,i){if(t.exports)t.exports=i(r(24718),r(9340));else{var n=e.Zdog;n.Polygon=i(n,n.Shape)}}(this,(function(t,e){var r=e.subclass({sides:3,radius:.5}),i=t.TAU;return r.prototype.setPath=function(){this.path=[];for(var t=0;t2&&e.isSame(r)&&(t-=1);for(var i=0,n=0;n0,this.backface||!this.isFacingBack)){if(!e)throw new Error("Zdog renderer required. Set to "+e);var i=1==r;e.isCanvas&&i?this.renderCanvasDot(t,e):this.renderPath(t,e)}};var s=t.TAU;n.prototype.renderCanvasDot=function(t){var e=this.getLineWidth();if(e){t.fillStyle=this.getRenderColor();var r=this.pathCommands[0].endRenderPoint;t.beginPath();var i=e/2;t.arc(r.x,r.y,i,0,s),t.fill()}},n.prototype.getLineWidth=function(){return this.stroke?1==this.stroke?1:this.stroke:0},n.prototype.getRenderColor=function(){return"string"==typeof this.backface&&this.isFacingBack?this.backface:this.color},n.prototype.renderPath=function(t,e){var r=this.getRenderElement(t,e),i=!(2==this.pathCommands.length&&"line"==this.pathCommands[1].method)&&this.closed,n=this.getRenderColor();e.renderPath(t,r,this.pathCommands,i),e.stroke(t,r,this.stroke,n,this.getLineWidth()),e.fill(t,r,this.fill,n),e.end(t,r)};return n.prototype.getRenderElement=function(t,e){if(e.isSvg)return this.svgElement||(this.svgElement=document.createElementNS("http://www.w3.org/2000/svg","path"),this.svgElement.setAttribute("stroke-linecap","round"),this.svgElement.setAttribute("stroke-linejoin","round")),this.svgElement},n}))},78813:function(t){var e,r;e=this,r=function(){var t={isSvg:!0},e=t.round=function(t){return Math.round(1e3*t)/1e3};function r(t){return e(t.x)+","+e(t.y)+" "}return t.begin=function(){},t.move=function(t,e,i){return"M"+r(i)},t.line=function(t,e,i){return"L"+r(i)},t.bezier=function(t,e,i,n,o){return"C"+r(i)+r(n)+r(o)},t.closePath=function(){return"Z"},t.setPath=function(t,e,r){e.setAttribute("d",r)},t.renderPath=function(e,r,i,n){var o="";i.forEach((function(i){o+=i.render(e,r,t)})),n&&(o+=this.closePath(e,r)),this.setPath(e,r,o)},t.stroke=function(t,e,r,i,n){r&&(e.setAttribute("stroke",i),e.setAttribute("stroke-width",n))},t.fill=function(t,e,r,i){var n=r?i:"none";e.setAttribute("fill",n)},t.end=function(t,e){t.appendChild(e)},t},t.exports?t.exports=r():e.Zdog.SvgRenderer=r()},58251:function(t,e,r){!function(e,i){if(t.exports)t.exports=i(r(24718));else{var n=e.Zdog;n.Vector=i(n)}}(this,(function(t){function e(t){this.set(t)}var r=t.TAU;function i(t,e,i,n){if(e&&e%r!=0){var o=Math.cos(e),s=Math.sin(e),a=t[i],h=t[n];t[i]=a*o-h*s,t[n]=h*o+a*s}}function n(t){return Math.abs(t-1)<1e-8?1:Math.sqrt(t)}return e.prototype.set=function(t){return this.x=t&&t.x||0,this.y=t&&t.y||0,this.z=t&&t.z||0,this},e.prototype.write=function(t){return t?(this.x=null!=t.x?t.x:this.x,this.y=null!=t.y?t.y:this.y,this.z=null!=t.z?t.z:this.z,this):this},e.prototype.rotate=function(t){if(t)return this.rotateZ(t.z),this.rotateY(t.y),this.rotateX(t.x),this},e.prototype.rotateZ=function(t){i(this,t,"x","y")},e.prototype.rotateX=function(t){i(this,t,"y","z")},e.prototype.rotateY=function(t){i(this,t,"x","z")},e.prototype.isSame=function(t){return!!t&&(this.x===t.x&&this.y===t.y&&this.z===t.z)},e.prototype.add=function(t){return t?(this.x+=t.x||0,this.y+=t.y||0,this.z+=t.z||0,this):this},e.prototype.subtract=function(t){return t?(this.x-=t.x||0,this.y-=t.y||0,this.z-=t.z||0,this):this},e.prototype.multiply=function(t){return null==t||("number"==typeof t?(this.x*=t,this.y*=t,this.z*=t):(this.x*=null!=t.x?t.x:1,this.y*=null!=t.y?t.y:1,this.z*=null!=t.z?t.z:1)),this},e.prototype.transform=function(t,e,r){return this.multiply(r),this.rotate(e),this.add(t),this},e.prototype.lerp=function(e,r){return this.x=t.lerp(this.x,e.x||0,r),this.y=t.lerp(this.y,e.y||0,r),this.z=t.lerp(this.z,e.z||0,r),this},e.prototype.magnitude=function(){return n(this.x*this.x+this.y*this.y+this.z*this.z)},e.prototype.magnitude2d=function(){return n(this.x*this.x+this.y*this.y)},e.prototype.copy=function(){return new e(this)},e}))}}]);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy