Changeset 0c6b92a for imaps-frontend/node_modules/konva/lib/shapes/Label.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/konva/lib/shapes/Label.js
rd565449 r0c6b92a 7 7 const Validators_1 = require("../Validators"); 8 8 const Global_1 = require("../Global"); 9 varATTR_CHANGE_LIST = [9 const ATTR_CHANGE_LIST = [ 10 10 'fontFamily', 11 11 'fontSize', … … 35 35 } 36 36 _addListeners(text) { 37 varthat = this, n;38 varfunc = function () {37 let that = this, n; 38 const func = function () { 39 39 that._sync(); 40 40 }; … … 50 50 } 51 51 _sync() { 52 vartext = 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; 53 53 if (text && tag) { 54 54 width = text.width(); … … 95 95 class Tag extends Shape_1.Shape { 96 96 _sceneFunc(context) { 97 varwidth = 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(); 98 98 let topLeft = 0; 99 99 let topRight = 0; … … 147 147 } 148 148 getSelfRect() { 149 varx = 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(); 150 150 if (direction === UP) { 151 151 y -= pointerHeight;
Note:
See TracChangeset
for help on using the changeset viewer.