import{__awaiter as n,__generator as t}from"tslib";import i from"../core/Instance";import*as r from"@msign/angularis";var e=function(){function e(n){this.t=-250,this.i=n}return e.prototype.o=function(n){var t=this;return function(){return n.u=t.t,n}},e.prototype.s=function(i,e,o,u){return n(this,void 0,void 0,(function(){var n,s,c,a,f,h;return t(this,(function(t){switch(t.label){case 0:return n=this.i,s=new r.h({l:[new r.m(new r.v(o.x,o.y,o.z),0)],p:1,g:r.I.C}),e.W=s,[4,e.j];case 1:for(t.k(),r.A.q(e.root.transform,r.A.B)||(c=r.A.D(e.root.transform,new r.v),a=r.v.u(c,i),s.F=r.A.G(new r.v(0,0,a))),f=0;f<s.length;++f)h=s.get(f),n.entities.add({position:i,H:{dimensions:new r.J(600,600),K:r.I.C.L(0),H:new r.M(this.o(h),!1),outline:!1,outlineColor:r.I.N}});return this.O(u),[2]}}))}))},e.prototype.O=function(r){return n(this,void 0,void 0,(function(){return t(this,(function(n){switch(n.label){case 0:return this.t=r,[4,i.P()];case 1:return[4,n.k().R(100)];case 2:return n.k(),[2]}}))}))},e.prototype.S=function(i){return n(this,void 0,void 0,(function(){return t(this,(function(n){return this.i.entities.T(),i.W&&i.W.T(),this.t=0,[2]}))}))},e}();export default e;