Changeset 0c6b92a for imaps-frontend/node_modules/konva/lib/shapes/Arrow.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/konva/lib/shapes/Arrow.js
rd565449 r0c6b92a 10 10 _sceneFunc(ctx) { 11 11 super._sceneFunc(ctx); 12 varPI2 = Math.PI * 2;13 varpoints = this.points();14 vartp = points;15 varfromTension = this.tension() !== 0 && points.length > 4;12 const PI2 = Math.PI * 2; 13 const points = this.points(); 14 let tp = points; 15 const fromTension = this.tension() !== 0 && points.length > 4; 16 16 if (fromTension) { 17 17 tp = this.getTensionPoints(); 18 18 } 19 varlength = this.pointerLength();20 varn = points.length;21 vardx, dy;19 const length = this.pointerLength(); 20 const n = points.length; 21 let dx, dy; 22 22 if (fromTension) { 23 23 const lp = [ … … 38 38 dy = points[n - 1] - points[n - 3]; 39 39 } 40 varradians = (Math.atan2(dy, dx) + PI2) % PI2;41 varwidth = this.pointerWidth();40 const radians = (Math.atan2(dy, dx) + PI2) % PI2; 41 const width = this.pointerWidth(); 42 42 if (this.pointerAtEnding()) { 43 43 ctx.save(); … … 74 74 } 75 75 __fillStroke(ctx) { 76 varisDashEnabled = this.dashEnabled();76 const isDashEnabled = this.dashEnabled(); 77 77 if (isDashEnabled) { 78 78 this.attrs.dashEnabled = false;
Note:
See TracChangeset
for help on using the changeset viewer.