(v: number | string | undefined)
| 109 | } |
| 110 | |
| 111 | function num(v: number | string | undefined): number | null { |
| 112 | if (typeof v === "number") return v; |
| 113 | if (typeof v === "string") { |
| 114 | const n = Number.parseFloat(v); |
| 115 | return Number.isFinite(n) ? n : null; |
| 116 | } |
| 117 | return null; |
| 118 | } |
| 119 | |
| 120 | function isPositionTween(anim: GsapAnimation): boolean { |
| 121 | if (anim.propertyGroup === "position") return true; |
no outgoing calls
no test coverage detected