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/Arrow.js

    rd565449 r0c6b92a  
    1010    _sceneFunc(ctx) {
    1111        super._sceneFunc(ctx);
    12         var PI2 = Math.PI * 2;
    13         var points = this.points();
    14         var tp = points;
    15         var fromTension = 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;
    1616        if (fromTension) {
    1717            tp = this.getTensionPoints();
    1818        }
    19         var length = this.pointerLength();
    20         var n = points.length;
    21         var dx, dy;
     19        const length = this.pointerLength();
     20        const n = points.length;
     21        let dx, dy;
    2222        if (fromTension) {
    2323            const lp = [
     
    3838            dy = points[n - 1] - points[n - 3];
    3939        }
    40         var radians = (Math.atan2(dy, dx) + PI2) % PI2;
    41         var width = this.pointerWidth();
     40        const radians = (Math.atan2(dy, dx) + PI2) % PI2;
     41        const width = this.pointerWidth();
    4242        if (this.pointerAtEnding()) {
    4343            ctx.save();
     
    7474    }
    7575    __fillStroke(ctx) {
    76         var isDashEnabled = this.dashEnabled();
     76        const isDashEnabled = this.dashEnabled();
    7777        if (isDashEnabled) {
    7878            this.attrs.dashEnabled = false;
Note: See TracChangeset for help on using the changeset viewer.