react-canvas-ticker
Advanced tools
Comparing version
@@ -339,2 +339,5 @@ import React from 'react'; | ||
var rect = _this.elementRef.current.getBoundingClientRect(); | ||
var tempHeight = rect.bottom - rect.y; | ||
rect.width = Math.sqrt(tempHeight * tempHeight + rect.width * rect.width); | ||
if (rect.width === 0) return; | ||
@@ -341,0 +344,0 @@ |
@@ -343,2 +343,5 @@ 'use strict'; | ||
var rect = _this.elementRef.current.getBoundingClientRect(); | ||
var tempHeight = rect.bottom - rect.y; | ||
rect.width = Math.sqrt(tempHeight * tempHeight + rect.width * rect.width); | ||
if (rect.width === 0) return; | ||
@@ -345,0 +348,0 @@ |
{ | ||
"name": "react-canvas-ticker", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Fork from react-ticker", | ||
@@ -5,0 +5,0 @@ "author": "https://github.com/TimHsueh-ui", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
97306
0.89%1207
0.33%