Lines Matching refs:rect
49 private rect: Rect = new Rect(0, 0, 0, 0);
158 this.rect.width = this.canvas!.width;
159 this.rect.height = (this._maxDepth + 1) * depthHeight + scaleHeight;
160 this.canvas!.style.height = `${this.rect!.height}px`;
161 this.canvas!.height = Math.ceil(this.rect!.height);
337 this.canvas.style.height = `${this.rect!.height}px`;
343 this.canvas.height = Math.ceil(this.rect!.height);
347 this.rect.width === 0 ||
350 newWidth! > this.rect.width
352 this.rect.width = this.canvas!.width;
391 const sizeRatio = this.canvas!.width / this.rect.width; // scale ratio
446 setFuncFrame(children, this.rect, this.total, this._mode);
636 let deltaWidth = this.rect!.width * scaleRatio;
640 newWidth = this.rect!.width + deltaWidth;
641 const sizeRatio = this.canvas!.width / this.rect.width; // max scale
662 deltaWidth = newWidth - this.rect!.width;
665 newWidth = this.rect!.width - deltaWidth;
670 deltaWidth = this.rect!.width - newWidth;
673 if (newWidth === this.rect.width) {
690 const translationValue = (deltaWidth * (this.canvasX - this.xPoint)) / this.rect.width;
696 this.rect!.width = newWidth;
724 if (this.rect.width + this.xPoint < this.canvas!.width) {
725 this.xPoint = this.canvas!.width - this.rect.width;
727 this.rootNode.frame!.width = this.rect.width;
745 this.rect.width = this.canvas!.clientWidth;
749 this.rootNode.frame!.width = this.rect.width = this.canvas.clientWidth;