@guihz/trading-vue-editor-tes 0.0.271 → 0.0.273

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ x0.version="2.30.1",G3(Re),x0.fn=W0,x0.min=kA,x0.max=wA,x0.now=PA,x0.utc=Xn,x0.u
38
38
  `);let q="";const m=(n==null?void 0:n.ruleType)==="VarMultiple";z.length>1?q=`${z[0]}
39
39
  let ${i} = ${m?`(${z[1]}) || []`:z[1]}
40
40
  `:q=`let ${i} = ${m?`(${b}) || []`:b}`;const g={code:q,varNames:i.replace(/[\[\]]/g,"").split(", "),depends:this._getDepends(s)};return this._codesCol[this._blockCount].push(g),q}_getDepends(e){const n=[];for(const[r,i]of this._dependsObj[e])(i.scope||0)>this._blockCount||n.push(i);return delete this._dependsObj[e],n}_parserForToStatement(e,n=!1){let{numerical:r,block:i,name:s,type:b}=e;const[z,q,m]=r,g=this._isInLoop;this._isInLoop=!0;const y=`$start${this._count+1}`;g||(this._count+=1);const E=`$$count${this._count}`,w=`$forTo${this._blockCount}`,x=`$$toCount${this._count}`;n||(this._dependsObj[w]=new Map);const h=this._parserSingleExpression(z),A=this._parserSingleExpression(q),d=m?this._parserSingleExpression(m):"",v=this._parserBlockLine(i,n,!1,!0);We.includes(s)&&(s=`$${s}`);const L=`var ${y} = Date.now()
41
- let ${x} = ${A}
41
+ var ${x} = ${A}
42
42
  `,S=`for (let ${s}=${h};${this._prefixNameVar}.compareDataHandle(${s})>=${x}; ${s}-=(${d||"1"})){
43
43
  if (Date.now() - ${y} > 500) {
44
44
  throw new Error('${O0.loopRuntimeErr}')