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

    rd565449 r0c6b92a  
    77const Validators_1 = require("../Validators");
    88const Global_1 = require("../Global");
    9 var ATTR_CHANGE_LIST = [
     9const ATTR_CHANGE_LIST = [
    1010    'fontFamily',
    1111    'fontSize',
     
    3535    }
    3636    _addListeners(text) {
    37         var that = this, n;
    38         var func = function () {
     37        let that = this, n;
     38        const func = function () {
    3939            that._sync();
    4040        };
     
    5050    }
    5151    _sync() {
    52         var text = this.getText(), tag = this.getTag(), width, height, pointerDirection, pointerWidth, x, y, pointerHeight;
     52        let text = this.getText(), tag = this.getTag(), width, height, pointerDirection, pointerWidth, x, y, pointerHeight;
    5353        if (text && tag) {
    5454            width = text.width();
     
    9595class Tag extends Shape_1.Shape {
    9696    _sceneFunc(context) {
    97         var width = this.width(), height = this.height(), pointerDirection = this.pointerDirection(), pointerWidth = this.pointerWidth(), pointerHeight = this.pointerHeight(), cornerRadius = this.cornerRadius();
     97        const width = this.width(), height = this.height(), pointerDirection = this.pointerDirection(), pointerWidth = this.pointerWidth(), pointerHeight = this.pointerHeight(), cornerRadius = this.cornerRadius();
    9898        let topLeft = 0;
    9999        let topRight = 0;
     
    147147    }
    148148    getSelfRect() {
    149         var x = 0, y = 0, pointerWidth = this.pointerWidth(), pointerHeight = this.pointerHeight(), direction = this.pointerDirection(), width = this.width(), height = this.height();
     149        let x = 0, y = 0, pointerWidth = this.pointerWidth(), pointerHeight = this.pointerHeight(), direction = this.pointerDirection(), width = this.width(), height = this.height();
    150150        if (direction === UP) {
    151151            y -= pointerHeight;
Note: See TracChangeset for help on using the changeset viewer.