| 3244 | ? snapshotManagedWindowRectOption(options.rect.from) |
| 3245 | : undefined, |
| 3246 | to: snapshotManagedWindowRectOption(options.rect.to), |
| 3247 | duration: Math.max(1, Math.floor(options.rect.duration)), |
| 3248 | easing: serializeManagedWindowEasing(options.rect.easing), |
| 3249 | mode: options.rect.mode ?? "override", |
| 3250 | } |
| 3251 | : undefined, |
| 3252 | offset: options.offset |
| 3253 | ? { |
| 3254 | from: options.offset.from |
| 3255 | ? snapshotManagedWindowPointOption(options.offset.from) |
| 3256 | : undefined, |
| 3257 | to: snapshotManagedWindowPointOption(options.offset.to), |
| 3258 | duration: Math.max(1, Math.floor(options.offset.duration)), |
| 3259 | easing: serializeManagedWindowEasing(options.offset.easing), |
| 3260 | mode: options.offset.mode ?? "add", |
| 3261 | } |
| 3262 | : undefined, |
| 3263 | opacity: options.opacity |
| 3264 | ? { |
| 3265 | from: |
| 3266 | options.opacity.from === undefined |
| 3267 | ? undefined |
| 3268 | : read(options.opacity.from), |
| 3269 | to: read(options.opacity.to), |
| 3270 | duration: Math.max(1, Math.floor(options.opacity.duration)), |
| 3271 | easing: serializeManagedWindowEasing(options.opacity.easing), |
| 3272 | mode: options.opacity.mode ?? "multiply", |
| 3273 | } |
| 3274 | : undefined, |
| 3275 | }; |
| 3276 | } |
| 3277 | |
| 3278 | function snapshotManagedWindowRectOption( |