We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137e4b0 commit 6fe8623Copy full SHA for 6fe8623
packages/canvas/container/src/container.ts
@@ -468,9 +468,12 @@ const setSelectRect = (
468
469
const getElementDurationTime = (elementId?: string) => {
470
const element = elementId ? querySelectById(elementId) : getDocument().body
471
+ let delayTime = 50
472
+ if (!element) {
473
+ return delayTime
474
+ }
475
const transitionDuration = window.getComputedStyle(element).getPropertyValue('transition-duration')
476
const transitionDelay = window.getComputedStyle(element).getPropertyValue('transition-delay')
- let delayTime = 0
477
const getMaxMillisecondNumber = (arr: string[]) => {
478
const millisecondNumber = arr.map((item) => {
479
const unit = item.slice(-2)
0 commit comments