Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/konva/lib/shapes/RegularPolygon.js

    rd565449 r0c6b92a  
    1111        context.beginPath();
    1212        context.moveTo(points[0].x, points[0].y);
    13         for (var n = 1; n < points.length; n++) {
     13        for (let n = 1; n < points.length; n++) {
    1414            context.lineTo(points[n].x, points[n].y);
    1515        }
     
    2121        const radius = this.attrs.radius || 0;
    2222        const points = [];
    23         for (var n = 0; n < sides; n++) {
     23        for (let n = 0; n < sides; n++) {
    2424            points.push({
    2525                x: radius * Math.sin((n * 2 * Math.PI) / sides),
     
    3131    getSelfRect() {
    3232        const points = this._getPoints();
    33         var minX = points[0].x;
    34         var maxX = points[0].y;
    35         var minY = points[0].x;
    36         var maxY = 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;
    3737        points.forEach((point) => {
    3838            minX = Math.min(minX, point.x);
Note: See TracChangeset for help on using the changeset viewer.