Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/konva/lib/shapes/RegularPolygon.js
rd565449 r0c6b92a 11 11 context.beginPath(); 12 12 context.moveTo(points[0].x, points[0].y); 13 for ( varn = 1; n < points.length; n++) {13 for (let n = 1; n < points.length; n++) { 14 14 context.lineTo(points[n].x, points[n].y); 15 15 } … … 21 21 const radius = this.attrs.radius || 0; 22 22 const points = []; 23 for ( varn = 0; n < sides; n++) {23 for (let n = 0; n < sides; n++) { 24 24 points.push({ 25 25 x: radius * Math.sin((n * 2 * Math.PI) / sides), … … 31 31 getSelfRect() { 32 32 const points = this._getPoints(); 33 varminX = points[0].x;34 varmaxX = points[0].y;35 varminY = points[0].x;36 varmaxY = points[0].y;33 let minX = points[0].x; 34 let maxX = points[0].y; 35 let minY = points[0].x; 36 let maxY = points[0].y; 37 37 points.forEach((point) => { 38 38 minX = Math.min(minX, point.x);
Note:
See TracChangeset
for help on using the changeset viewer.