@rafaelaugusto/jolt 0.1.0-beta.4 → 0.1.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +134 -4
- package/dist/animate.d.ts +7 -4
- package/dist/animate.d.ts.map +1 -1
- package/dist/animate.js +58 -13
- package/dist/animate.js.map +1 -1
- package/dist/config.d.ts +22 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +34 -0
- package/dist/config.js.map +1 -0
- package/dist/decoration.d.ts +18 -0
- package/dist/decoration.d.ts.map +1 -0
- package/dist/decoration.js +155 -0
- package/dist/decoration.js.map +1 -0
- package/dist/driver/android-color.d.ts +3 -0
- package/dist/driver/android-color.d.ts.map +1 -1
- package/dist/driver/android-color.js +20 -18
- package/dist/driver/android-color.js.map +1 -1
- package/dist/driver/android-decoration.d.ts +22 -0
- package/dist/driver/android-decoration.d.ts.map +1 -0
- package/dist/driver/android-decoration.js +139 -0
- package/dist/driver/android-decoration.js.map +1 -0
- package/dist/driver/android-playback.d.ts +13 -0
- package/dist/driver/android-playback.d.ts.map +1 -0
- package/dist/driver/android-playback.js +141 -0
- package/dist/driver/android-playback.js.map +1 -0
- package/dist/driver/android.d.ts.map +1 -1
- package/dist/driver/android.js +30 -36
- package/dist/driver/android.js.map +1 -1
- package/dist/driver/index.d.ts +9 -0
- package/dist/driver/index.d.ts.map +1 -1
- package/dist/driver/index.js.map +1 -1
- package/dist/driver/ios-color.d.ts +2 -0
- package/dist/driver/ios-color.d.ts.map +1 -1
- package/dist/driver/ios-color.js +19 -8
- package/dist/driver/ios-color.js.map +1 -1
- package/dist/driver/ios-decoration.d.ts +17 -0
- package/dist/driver/ios-decoration.d.ts.map +1 -0
- package/dist/driver/ios-decoration.js +271 -0
- package/dist/driver/ios-decoration.js.map +1 -0
- package/dist/driver/ios-playback.d.ts +10 -0
- package/dist/driver/ios-playback.d.ts.map +1 -0
- package/dist/driver/ios-playback.js +47 -0
- package/dist/driver/ios-playback.js.map +1 -0
- package/dist/driver/ios-shadow.d.ts +6 -0
- package/dist/driver/ios-shadow.d.ts.map +1 -0
- package/dist/driver/ios-shadow.js +52 -0
- package/dist/driver/ios-shadow.js.map +1 -0
- package/dist/driver/ios.d.ts.map +1 -1
- package/dist/driver/ios.js +76 -40
- package/dist/driver/ios.js.map +1 -1
- package/dist/engine.d.ts +64 -3
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +243 -19
- package/dist/engine.js.map +1 -1
- package/dist/haptics.d.ts +4 -1
- package/dist/haptics.d.ts.map +1 -1
- package/dist/haptics.js +27 -3
- package/dist/haptics.js.map +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/items.d.ts +20 -0
- package/dist/items.d.ts.map +1 -0
- package/dist/items.js +109 -0
- package/dist/items.js.map +1 -0
- package/dist/keyboard.d.ts +17 -0
- package/dist/keyboard.d.ts.map +1 -0
- package/dist/keyboard.js +116 -0
- package/dist/keyboard.js.map +1 -0
- package/dist/label.d.ts +7 -0
- package/dist/label.d.ts.map +1 -0
- package/dist/label.js +60 -0
- package/dist/label.js.map +1 -0
- package/dist/liquid.d.ts.map +1 -1
- package/dist/liquid.js +2 -1
- package/dist/liquid.js.map +1 -1
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +2 -1
- package/dist/loader.js.map +1 -1
- package/dist/particles.d.ts.map +1 -1
- package/dist/particles.js +4 -3
- package/dist/particles.js.map +1 -1
- package/dist/path.d.ts +12 -0
- package/dist/path.d.ts.map +1 -0
- package/dist/path.js +90 -0
- package/dist/path.js.map +1 -0
- package/dist/playback-group.d.ts +6 -0
- package/dist/playback-group.d.ts.map +1 -0
- package/dist/playback-group.js +141 -0
- package/dist/playback-group.js.map +1 -0
- package/dist/playback.d.ts +25 -0
- package/dist/playback.d.ts.map +1 -0
- package/dist/playback.js +35 -0
- package/dist/playback.js.map +1 -0
- package/dist/press.d.ts.map +1 -1
- package/dist/press.js +3 -3
- package/dist/press.js.map +1 -1
- package/dist/properties.d.ts +2 -1
- package/dist/properties.d.ts.map +1 -1
- package/dist/properties.js +14 -1
- package/dist/properties.js.map +1 -1
- package/dist/reveal.d.ts.map +1 -1
- package/dist/reveal.js +3 -2
- package/dist/reveal.js.map +1 -1
- package/dist/roll-diff.d.ts +22 -0
- package/dist/roll-diff.d.ts.map +1 -0
- package/dist/roll-diff.js +36 -0
- package/dist/roll-diff.js.map +1 -0
- package/dist/roll.d.ts +29 -0
- package/dist/roll.d.ts.map +1 -0
- package/dist/roll.js +442 -0
- package/dist/roll.js.map +1 -0
- package/dist/scroll-linked.d.ts +10 -0
- package/dist/scroll-linked.d.ts.map +1 -0
- package/dist/scroll-linked.js +58 -0
- package/dist/scroll-linked.js.map +1 -0
- package/dist/sequence.d.ts +10 -5
- package/dist/sequence.d.ts.map +1 -1
- package/dist/sequence.js +208 -14
- package/dist/sequence.js.map +1 -1
- package/dist/shimmer.d.ts.map +1 -1
- package/dist/shimmer.js +2 -1
- package/dist/shimmer.js.map +1 -1
- package/dist/svg-path.d.ts +14 -0
- package/dist/svg-path.d.ts.map +1 -0
- package/dist/svg-path.js +281 -0
- package/dist/svg-path.js.map +1 -0
- package/dist/symbol-effect.d.ts.map +1 -1
- package/dist/symbol-effect.js +4 -3
- package/dist/symbol-effect.js.map +1 -1
- package/dist/text-layout.d.ts +8 -0
- package/dist/text-layout.d.ts.map +1 -1
- package/dist/text-layout.js +8 -2
- package/dist/text-layout.js.map +1 -1
- package/dist/text.d.ts +1 -1
- package/dist/text.d.ts.map +1 -1
- package/dist/text.js +60 -64
- package/dist/text.js.map +1 -1
- package/dist/track.d.ts +2 -0
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +72 -16
- package/dist/track.js.map +1 -1
- package/dist/transition.d.ts.map +1 -1
- package/dist/transition.js +4 -1
- package/dist/transition.js.map +1 -1
- package/dist/types.d.ts +22 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/vue/index.d.ts +89 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/dist/vue/index.js +134 -0
- package/dist/vue/index.js.map +1 -0
- package/package.json +15 -3
- package/platforms/android/java/org/rafaelaugusto/jolt/ColorTarget.java +2 -2
- package/platforms/android/java/org/rafaelaugusto/jolt/DecorationTarget.java +154 -0
- package/platforms/android/java/org/rafaelaugusto/jolt/KeyboardFollower.java +91 -0
- package/platforms/android/java/org/rafaelaugusto/jolt/NumberRoll.java +190 -0
- package/platforms/android/java/org/rafaelaugusto/jolt/TextReveal.java +180 -0
- package/platforms/android/proguard-rules.pro +7 -0
- package/src/android-plugin.d.ts +64 -0
- package/src/animate.ts +96 -33
- package/src/config.ts +46 -0
- package/src/decoration.ts +180 -0
- package/src/driver/android-color.ts +22 -20
- package/src/driver/android-decoration.ts +182 -0
- package/src/driver/android-playback.ts +157 -0
- package/src/driver/android.ts +57 -43
- package/src/driver/index.ts +15 -0
- package/src/driver/ios-color.ts +19 -10
- package/src/driver/ios-decoration.ts +332 -0
- package/src/driver/ios-playback.ts +51 -0
- package/src/driver/ios-shadow.ts +50 -0
- package/src/driver/ios.ts +87 -46
- package/src/engine.ts +267 -22
- package/src/haptics.ts +25 -2
- package/src/index.ts +12 -1
- package/src/items.ts +140 -0
- package/src/keyboard.ts +132 -0
- package/src/label.ts +76 -0
- package/src/liquid.ts +2 -1
- package/src/loader.ts +2 -1
- package/src/particles.ts +4 -4
- package/src/path.ts +124 -0
- package/src/playback-group.ts +143 -0
- package/src/playback.ts +62 -0
- package/src/press.ts +3 -5
- package/src/properties.ts +18 -2
- package/src/reveal.ts +3 -3
- package/src/roll-diff.ts +57 -0
- package/src/roll.ts +515 -0
- package/src/scroll-linked.ts +73 -0
- package/src/sequence.ts +204 -14
- package/src/shimmer.ts +2 -1
- package/src/svg-path.ts +355 -0
- package/src/symbol-effect.ts +4 -3
- package/src/text-layout.ts +14 -2
- package/src/text.ts +62 -81
- package/src/track.ts +98 -25
- package/src/transition.ts +4 -1
- package/src/types.ts +23 -1
- package/src/vue/index.ts +189 -0
package/README.md
CHANGED
|
@@ -35,13 +35,18 @@ Jolt computes the motion once, in JavaScript, when the animation starts, and han
|
|
|
35
35
|
|
|
36
36
|
- [25 presets](#presets) to enter, exit and draw attention: `fadeInUp`, `popIn`, `shake`, `heartbeat`...
|
|
37
37
|
- [Springs](#springs) described by feel (`bouncy`), by `bounce` and `duration`, or by stiffness, damping and mass.
|
|
38
|
+
- [Corners, borders and shadows](#corners-borders-and-shadows) with native playback and selective stopping.
|
|
39
|
+
- [Motion paths](#motion-along-a-path) with optional tangent orientation on iOS and Android.
|
|
38
40
|
- [Colors](#colors) for backgrounds, borders and text, interpolated in OKLab on iOS and Android.
|
|
39
41
|
- [Decay](#decay) from a release velocity, with optional snap points.
|
|
40
42
|
- [Keyframes and tweens](#tweens) with an easing per segment and exact keyframe times.
|
|
41
43
|
- [Stagger](#several-views) across several views, from the first, the last or the center.
|
|
42
|
-
- [
|
|
44
|
+
- [List rows](#list-rows) that play an entrance as they scroll into view, every time or once per item.
|
|
45
|
+
- [Sequences](#sequences) with overlapping arrivals, shared starts and absolute timeline positions.
|
|
43
46
|
- [Press effects](#press) that follow the finger and let go when a scroll takes over.
|
|
44
|
-
- [
|
|
47
|
+
- [Vue directives and a transition component](#vue) from the optional `@rafaelaugusto/jolt/vue` entry.
|
|
48
|
+
- [Text entrances](#text) by letter or word on iOS and Android, preserving the Label’s layout and accessibility.
|
|
49
|
+
- [Rolling numbers](#rolling-numbers) that slide only the changed digits in and out, on iOS and Android.
|
|
45
50
|
- [SF Symbol effects](#sf-symbols) and animated icon replacement on iOS 17+.
|
|
46
51
|
- [Shimmer](#shimmer) for loading placeholders on iOS.
|
|
47
52
|
- [Liquid images](#liquid-images) with native texture deformation on iOS.
|
|
@@ -49,6 +54,10 @@ Jolt computes the motion once, in JavaScript, when the animation starts, and han
|
|
|
49
54
|
- [Circular reveal](#circular-reveal) to show or hide content from a point on iOS.
|
|
50
55
|
- [Haptics](#haptics) at arrival or at marked points in an animation on iOS.
|
|
51
56
|
- [Particles and confetti](#particles-and-confetti) on iOS.
|
|
57
|
+
- [Scroll-linked animations](#scroll-linked-animations) for parallax and collapsing headers.
|
|
58
|
+
- [Keyboard following](#follow-the-keyboard) for composers that rise with the keyboard, at its speed and curve.
|
|
59
|
+
- [Playback controls](#pause-play-and-scrub) to pause, continue and scrub a finite timeline.
|
|
60
|
+
- [Time scale and reduced motion](#time-scale-and-reduced-motion): slow everything down while tuning, and follow the platform's reduced-motion setting by default.
|
|
52
61
|
- [Interruptions](#interrupting-and-stopping) that pick up the value and velocity on screen, with no jump.
|
|
53
62
|
- [Native playback](#how-it-works): Core Animation on iOS, `ObjectAnimator` on Android, nothing in JavaScript while it plays.
|
|
54
63
|
|
|
@@ -113,6 +122,44 @@ const open = () => animate(card.value, 'popIn')
|
|
|
113
122
|
|
|
114
123
|
A view that isn't loaded yet takes its first absolute keyframe right away and plays once it's on screen. Calling `animate(title, 'fadeInUp')` in `onMounted` doesn't flash the title before it fades in. Relative animations leave the view's values alone until it loads.
|
|
115
124
|
|
|
125
|
+
## Vue
|
|
126
|
+
|
|
127
|
+
```vue
|
|
128
|
+
<script setup lang="ts">
|
|
129
|
+
import { JoltTransition, vAnimate, vPress } from '@rafaelaugusto/jolt/vue'
|
|
130
|
+
</script>
|
|
131
|
+
|
|
132
|
+
<template>
|
|
133
|
+
<Label v-animate="'fadeInUp'" text="Hello" />
|
|
134
|
+
<GridLayout v-press="{ scale: 0.95 }" />
|
|
135
|
+
<JoltTransition enter="popIn" leave="fadeOut">
|
|
136
|
+
<Label v-if="saved" text="Saved" />
|
|
137
|
+
</JoltTransition>
|
|
138
|
+
</template>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
`@rafaelaugusto/jolt/vue` is a separate entry point for NativeScript-Vue 3, so the core stays framework free. `v-animate` plays when the element mounts and again when its value changes, `v-press` is `press()` for templates, and `JoltTransition` wraps Vue's `BaseTransition` so a view can animate out before `v-if` removes it. Register everything with `app.use(Jolt)` or import what a component needs. See the [Vue guide](https://jolt.rafaelaugusto.dev/guide/vue).
|
|
142
|
+
|
|
143
|
+
## Motion along a path
|
|
144
|
+
|
|
145
|
+
```ts
|
|
146
|
+
animate(
|
|
147
|
+
plane,
|
|
148
|
+
{ path: 'M0 0 C80 -120 200 -120 280 0', orient: true },
|
|
149
|
+
{ duration: 1200, ease: 'linear' },
|
|
150
|
+
)
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
SVG coordinates are translations in DIPs. `orient: true` aligns artwork facing +X with the forward tangent. One shared progression drives native `x`, `y` and optional `rotate` tracks, with arc-length sampling, tweens, springs, delay, repeats, stagger, relative offsets and playback controls. Paths own those coordinates; use a `path` transition override to time them together. Parsing and sampling happen once; no JavaScript runs per frame. See the [path guide](https://jolt.rafaelaugusto.dev/guide/paths) for SVG commands, orientation and geometry limits.
|
|
154
|
+
|
|
155
|
+
## Corners, borders and shadows
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
animate(card, { borderRadius: 40, borderWidth: 6 }, { duration: 800 })
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Uniform circular borders work on iOS and Android. On iOS, configure one outer `boxShadow` and animate `shadowOpacity`, `shadowRadius` (half Core's CSS blur radius), `shadowOffsetX` and `shadowOffsetY`. On Android, animate `elevation` and `translationZ` for native shadows. Dimensions use DIPs; interruption, springs, repeats and selective stop work as usual. Border width animates the stroke while content uses the final layout. Clip paths, nonuniform geometry and Android radius changes with CSS shadows are rejected. Rebuild Android after upgrading. See the [guide and platform limits](https://jolt.rafaelaugusto.dev/guide/decorations).
|
|
162
|
+
|
|
116
163
|
## Colors
|
|
117
164
|
|
|
118
165
|
```ts
|
|
@@ -265,6 +312,15 @@ animate(tiles, 'popIn', { stagger: { each: 30, from: 'center' } })
|
|
|
265
312
|
|
|
266
313
|
`from` is `'first'` (the default), `'last'`, `'center'` or an index.
|
|
267
314
|
|
|
315
|
+
## List rows
|
|
316
|
+
|
|
317
|
+
```ts
|
|
318
|
+
const unlink = animateItems(listView, 'fadeInUp')
|
|
319
|
+
animateItems(listView, 'fadeInUp', { once: true })
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
Each row of a `ListView` plays the entrance as the list hands it out. Rows are recycled while you scroll, so a row reused for another item starts the entrance again, or settles at the end values when that item was already shown and `once` is set. Items are tracked by object identity, or by index for primitives. The return value removes the effect and settles every row; unloading the list does the same. See the [list guide](https://jolt.rafaelaugusto.dev/guide/lists) for CollectionView and sectioned lists.
|
|
323
|
+
|
|
268
324
|
## Sequences
|
|
269
325
|
|
|
270
326
|
```ts
|
|
@@ -279,6 +335,19 @@ Each step takes the same arguments as `animate`, or is a function that starts an
|
|
|
279
335
|
|
|
280
336
|
Views in later steps take their first absolute keyframe when the sequence starts, so the title above stays hidden until its turn instead of showing up and disappearing. Relative steps and `null` keyframes wait until their step starts to read the current value.
|
|
281
337
|
|
|
338
|
+
Use `at` to change the timing:
|
|
339
|
+
|
|
340
|
+
```ts
|
|
341
|
+
sequence([
|
|
342
|
+
[logo, 'popIn'],
|
|
343
|
+
[title, 'fadeInUp', { at: '-150' }],
|
|
344
|
+
[buttons, 'fadeIn', { at: '<' }],
|
|
345
|
+
[footer, 'fadeIn', { at: 900 }],
|
|
346
|
+
])
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
A signed string offsets the previous arrival (`'-150'` before, `'+100'` after), `'<'` shares its activation, and a number selects absolute milliseconds. Each step's own delay still applies. Negative offsets use loaded tracks' spring/stagger arrival forecasts; absolute steps are independent. `stop()` cancels future launches and stops every started step. Position timers respect Android animator duration scale. JavaScript runs at step boundaries, so blocked JS can delay a launch. See [timelines](https://jolt.rafaelaugusto.dev/guide/sequences) for callback forecasts, interruption and loading behavior.
|
|
350
|
+
|
|
282
351
|
## Press
|
|
283
352
|
|
|
284
353
|
```ts
|
|
@@ -357,7 +426,17 @@ await animateText(title)
|
|
|
357
426
|
await animateText(title, { by: 'word', stagger: 100 })
|
|
358
427
|
```
|
|
359
428
|
|
|
360
|
-
Reveal
|
|
429
|
+
Reveal a Label letter by letter or a word at a time. On iOS, TextKit keeps the complete text layout, including wrapped lines, attributed styles and composed emoji, and Core Animation plays temporary glyph images. On Android, spans that only affect drawing fade and lift each piece under one native animator, keeping the TextView's text, line breaks and truncation. The original Label remains the single accessibility element. Stop restores the full text; Reduce Motion and Android's Remove animations skip the entrance. Rebuild Android apps after upgrading to include the native class. See the [text guide](https://jolt.rafaelaugusto.dev/guide/text) for options and limits.
|
|
430
|
+
|
|
431
|
+
## Rolling numbers
|
|
432
|
+
|
|
433
|
+
```ts
|
|
434
|
+
import { rollTo } from '@rafaelaugusto/jolt'
|
|
435
|
+
|
|
436
|
+
await rollTo(balance, 1249.9, { format: (value) => value.toFixed(2) })
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
Change a Label's number and only the digits that differ roll: each one slides out while its replacement slides in on a spring. Positions align on the units digit, so `99` becomes `100` by rolling two digits and adding one. The label holds the final text from the first frame; glyph layers on iOS and a native span animator on Android do the drawing, and tabular figures keep the width stable. Rebuild Android after upgrading. See the [rolling numbers guide](https://jolt.rafaelaugusto.dev/guide/rolling) for options and limits.
|
|
361
440
|
|
|
362
441
|
## Haptics
|
|
363
442
|
|
|
@@ -380,6 +459,55 @@ stopSnow() // remove the emitter and its particles
|
|
|
380
459
|
|
|
381
460
|
Confetti bursts into the target's window and cleans itself up. `particles()` adds an emitter to the view for snow, sparks, bubbles or other effects. Both use Core Animation without JavaScript per frame, respect Reduce Motion and stop on unload. iOS only for now. See the [particles guide](https://jolt.rafaelaugusto.dev/guide/particles).
|
|
382
461
|
|
|
462
|
+
## Scroll-linked animations
|
|
463
|
+
|
|
464
|
+
```ts
|
|
465
|
+
import { scrollLinked } from '@rafaelaugusto/jolt'
|
|
466
|
+
|
|
467
|
+
const unlink = scrollLinked(
|
|
468
|
+
scrollView,
|
|
469
|
+
header,
|
|
470
|
+
{ y: [0, -60], opacity: [1, 0] },
|
|
471
|
+
{ range: [0, 120] },
|
|
472
|
+
)
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
A paused native animation follows the ScrollView offset in DIPs, with linear interpolation and clamped progress. Scrolling backward restores earlier frames. Use `axis: 'x'` for horizontal scrolling; descending ranges reverse the mapping. `unlink()` freezes the current frame and removes the binding; unloading either view also cleans it up. Scroll events update progress through JavaScript, so this binding needs the main thread to remain available. See the [guide](https://jolt.rafaelaugusto.dev/guide/scroll-linked).
|
|
476
|
+
|
|
477
|
+
## Follow the keyboard
|
|
478
|
+
|
|
479
|
+
```ts
|
|
480
|
+
import { followKeyboard } from '@rafaelaugusto/jolt'
|
|
481
|
+
|
|
482
|
+
const release = followKeyboard(composer)
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
The view rises by exactly the distance the keyboard would cover it, with the keyboard's own duration and curve, and settles back when it hides. On iOS the keyboard notifications drive a `UIView` animation; on Android 11+ a native `WindowInsetsAnimation` callback moves the view on every frame, with and without `adjustResize`. The view's `translateY` is written so later animations start from the position on screen. Rebuild Android after upgrading. See the [guide](https://jolt.rafaelaugusto.dev/guide/keyboard).
|
|
486
|
+
|
|
487
|
+
## Pause, play and scrub
|
|
488
|
+
|
|
489
|
+
```ts
|
|
490
|
+
const animation = animate(card, 'flipInY')
|
|
491
|
+
animation.pause()
|
|
492
|
+
animation.progress = 0.4
|
|
493
|
+
animation.play()
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
`animate()` and `decay()` return a `PlaybackAnimation` with `pause()`, `play()`, `progress`, `paused` and `duration`. Progress runs from 0 to 1 across delays, repeats and stagger. It preserves the paused/playing state; a paused endpoint can scrub backward. Other animations on the same view keep moving. Infinite loops support pause/play but reject progress. Completed and stopped handles remain terminal. Sequence and effect handles keep their existing controls. See [playback](https://jolt.rafaelaugusto.dev/guide/playback) for lifecycle, haptics and gesture examples.
|
|
497
|
+
|
|
498
|
+
## Time scale and reduced motion
|
|
499
|
+
|
|
500
|
+
```ts
|
|
501
|
+
import { configure } from '@rafaelaugusto/jolt'
|
|
502
|
+
|
|
503
|
+
configure({ timeScale: 0.2 }) // everything five times slower
|
|
504
|
+
configure({ reducedMotion: 'always' }) // transforms jump, opacity still fades
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
Tuning a spring at full speed is guesswork. The scale applies to every engine animation started after the call, on iOS and Android alike: durations, delays, stagger, sequence positions and spring time stretch together, keyframes stay dense, and an interruption still picks up the value and velocity on screen. Native loops such as shimmer and loaders keep their own timing.
|
|
508
|
+
|
|
509
|
+
With Reduce Motion on iOS or Remove animations on Android, translations, scale, rotation, paths, decorations and decay jump to their end values while opacity and colors still animate. `'user'` is the default; `'always'` and `'never'` override the platform for the whole library. See the [guide](https://jolt.rafaelaugusto.dev/guide/configure).
|
|
510
|
+
|
|
383
511
|
## Interrupting and stopping
|
|
384
512
|
|
|
385
513
|
Starting an animation on a property that's already animating takes it over: the new one starts from the value on screen, with the same velocity, so a card can change its mind halfway without a jump. Other properties of the previous animation keep going.
|
|
@@ -411,13 +539,15 @@ Solid [colors](#colors) use CGColor keyframes on iOS and int keyframes through a
|
|
|
411
539
|
|
|
412
540
|
Before playing, the final values are set on the NativeScript view, like `view.animate()` does, so `view.translateX` already holds the target while the animation runs. Stopping writes back the values on screen.
|
|
413
541
|
|
|
542
|
+
Native playback does not isolate Android View animations from a blocked UI thread. Main-runtime JavaScript shares that thread, and `withLayer()` only caches drawing. Move suitable CPU work to a Worker and keep view updates small. See the [busy JavaScript guide](https://jolt.rafaelaugusto.dev/guide/android-performance) and [Android diagnostic](./benchmarks/android-busy.md).
|
|
543
|
+
|
|
414
544
|
On Android, opacity animations temporarily cache hardware-accelerated containers with children in a hardware layer. Jolt waits for the fade to start and restores the layer on completion, stop, replacement or unload. Existing app-configured layers are preserved; empty, unmeasured and larger-than-screen containers are skipped. See the [fade-layer benchmark](./benchmarks/android-fade.md) for measurement and memory tradeoffs.
|
|
415
545
|
|
|
416
546
|
Each running property remembers its curve and start time. On Android, interruptions read the displayed value and the animator's current play time, so inherited velocity follows the system's animator duration scale. Early spring arrivals use a native timing marker with completion callbacks only; other sequences advance on native completion. Delays, repeats and disabled animations follow the same platform clock, without JavaScript running per frame.
|
|
417
547
|
|
|
418
548
|
## Not there yet
|
|
419
549
|
|
|
420
|
-
- `animate()`
|
|
550
|
+
- `animate()` supports transforms, opacity, colors, uniform corners and borders, and platform shadows. Size and layout changes ([#21](https://github.com/rafaelaugustos/jolt/issues/21)) aren't animated yet.
|
|
421
551
|
- Gesture tracking and drag constraints are next ([#23](https://github.com/rafaelaugustos/jolt/issues/23)); `decay()` supplies the motion after release.
|
|
422
552
|
- No layout or shared element transitions ([#21](https://github.com/rafaelaugustos/jolt/issues/21), [#24](https://github.com/rafaelaugustos/jolt/issues/24)).
|
|
423
553
|
|
package/dist/animate.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { PlaybackAnimation } from './playback.js';
|
|
1
2
|
import { View } from '@nativescript/core';
|
|
2
3
|
import { type Animation } from './engine.js';
|
|
3
4
|
import { type PresetName } from './presets.js';
|
|
4
5
|
import { type Property } from './properties.js';
|
|
5
6
|
import { type SpringName } from './transition.js';
|
|
6
|
-
import type { AnimateOptions, DecayOptions, DecayVelocity, Keyframes, Target } from './types.js';
|
|
7
|
+
import type { AnimateOptions, DecayOptions, DecayVelocity, Keyframes, KeyframeProperty, Target } from './types.js';
|
|
7
8
|
/**
|
|
8
9
|
* Animates one view, or several. Takes keyframes or the name of a preset,
|
|
9
10
|
* and a transition or the name of a spring.
|
|
@@ -14,15 +15,17 @@ import type { AnimateOptions, DecayOptions, DecayVelocity, Keyframes, Target } f
|
|
|
14
15
|
* animate(rows, 'fadeInUp', { stagger: 40 })
|
|
15
16
|
* ```
|
|
16
17
|
*/
|
|
17
|
-
export declare function animate(target: Target | readonly Target[], animation: Keyframes | PresetName, options?: AnimateOptions | SpringName):
|
|
18
|
+
export declare function animate(target: Target | readonly Target[], animation: Keyframes | PresetName, options?: AnimateOptions | SpringName): PlaybackAnimation;
|
|
18
19
|
/** Starts at the current translation and slows down from a velocity in DIPs per second. */
|
|
19
|
-
export declare function decay(target: Target | readonly Target[], velocity: DecayVelocity, options?: DecayOptions):
|
|
20
|
+
export declare function decay(target: Target | readonly Target[], velocity: DecayVelocity, options?: DecayOptions): PlaybackAnimation;
|
|
20
21
|
/** Stops all or selected properties at their current values. `scale` stops both axes. */
|
|
21
|
-
export declare function stop(target: Target | readonly Target[], properties?: readonly
|
|
22
|
+
export declare function stop(target: Target | readonly Target[], properties?: readonly KeyframeProperty[]): void;
|
|
22
23
|
/** Plays several animations as one: finished once they all are, and stopped together. */
|
|
23
24
|
export declare function group(animations: readonly Animation[]): Animation;
|
|
24
25
|
export declare function toView(target: Target): View;
|
|
25
26
|
export declare function toViews(target: Target | readonly Target[]): View[];
|
|
26
27
|
/** Each property the animation touches, with the value it starts from when it sets one. */
|
|
27
28
|
export declare function startingValues(animation: Keyframes | PresetName, options?: AnimateOptions | SpringName): Map<Property, number | null>;
|
|
29
|
+
/** Each property the animation touches, with the value it leaves behind when that is known up front. */
|
|
30
|
+
export declare function endingValues(animation: Keyframes | PresetName, options?: AnimateOptions | SpringName): Map<Property, number | null>;
|
|
28
31
|
//# sourceMappingURL=animate.d.ts.map
|
package/dist/animate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animate.d.ts","sourceRoot":"","sources":["../src/animate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"animate.d.ts","sourceRoot":"","sources":["../src/animate.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEtD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAQzC,OAAO,EAKL,KAAK,SAAS,EAEf,MAAM,aAAa,CAAA;AACpB,OAAO,EAAa,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzD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 @@
|
|
|
1
|
+
import { isDecorationProperty, validateDecorationTarget, validateDecorationFrames, } from './decoration.js';
|
|
2
|
+
import { playbackGroup } from './playback-group.js';
|
|
3
|
+
import { preparePath } from './path.js';
|
|
1
4
|
import { View } from '@nativescript/core';
|
|
2
5
|
import { isColorProperty, parseColor, validateColorTarget, } from './color.js';
|
|
3
6
|
import { DEFAULT_FRICTION, solveDecay } from './decay.js';
|
|
@@ -17,21 +20,26 @@ import { hasCurve, mergeTransitions, resolveTransition, springs, } from './trans
|
|
|
17
20
|
* ```
|
|
18
21
|
*/
|
|
19
22
|
export function animate(target, animation, options) {
|
|
20
|
-
const { keyframes, base, overrides, stagger, relative, haptic } = prepare(animation, options);
|
|
23
|
+
const { keyframes, base, overrides, stagger, relative, haptic, path } = prepare(animation, options);
|
|
21
24
|
const feedback = resolveHaptic(haptic);
|
|
22
25
|
if (!isList(target)) {
|
|
23
26
|
const view = toView(target);
|
|
24
27
|
for (const property of Object.keys(keyframes))
|
|
25
28
|
if (isColorProperty(property))
|
|
26
29
|
validateColorTarget(view, property);
|
|
27
|
-
|
|
30
|
+
else if (isDecorationProperty(property))
|
|
31
|
+
validateDecorationTarget(view, property);
|
|
32
|
+
return new ViewAnimation(view, plan(keyframes, base, overrides, 0, relative, path), feedback);
|
|
28
33
|
}
|
|
29
34
|
const views = target.map(toView);
|
|
30
35
|
for (const view of views)
|
|
31
36
|
for (const property of Object.keys(keyframes))
|
|
32
37
|
if (isColorProperty(property))
|
|
33
38
|
validateColorTarget(view, property);
|
|
34
|
-
|
|
39
|
+
else if (isDecorationProperty(property))
|
|
40
|
+
validateDecorationTarget(view, property);
|
|
41
|
+
const plans = views.map((_, index) => plan(keyframes, base, overrides, staggerDelay(stagger, index, views.length), relative, path));
|
|
42
|
+
return playbackGroup(views.map((view, index) => new ViewAnimation(view, plans[index], feedback, true)));
|
|
35
43
|
}
|
|
36
44
|
/** Starts at the current translation and slows down from a velocity in DIPs per second. */
|
|
37
45
|
export function decay(target, velocity, options = {}) {
|
|
@@ -93,8 +101,8 @@ export function decay(target, velocity, options = {}) {
|
|
|
93
101
|
});
|
|
94
102
|
const views = toViews(target);
|
|
95
103
|
if (plans.length === 0)
|
|
96
|
-
return
|
|
97
|
-
return
|
|
104
|
+
return playbackGroup([]);
|
|
105
|
+
return playbackGroup(views.map((view) => new ViewAnimation(view, plans, undefined, true)));
|
|
98
106
|
}
|
|
99
107
|
/** Stops all or selected properties at their current values. `scale` stops both axes. */
|
|
100
108
|
export function stop(target, properties) {
|
|
@@ -129,6 +137,13 @@ function isList(target) {
|
|
|
129
137
|
return Array.isArray(target);
|
|
130
138
|
}
|
|
131
139
|
function prepare(animation, options) {
|
|
140
|
+
const prepared = resolveAnimation(animation, options);
|
|
141
|
+
return {
|
|
142
|
+
...prepared,
|
|
143
|
+
path: preparePath(prepared.keyframes, prepared.base, prepared.overrides),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function resolveAnimation(animation, options) {
|
|
132
147
|
const user = normalize(options);
|
|
133
148
|
if (typeof animation !== 'string')
|
|
134
149
|
return { keyframes: animation, ...user };
|
|
@@ -176,7 +191,7 @@ function normalize(options) {
|
|
|
176
191
|
relative = value;
|
|
177
192
|
else if (key === 'haptic')
|
|
178
193
|
haptic = value;
|
|
179
|
-
else if (key === 'scale' || isProperty(key)) {
|
|
194
|
+
else if (key === 'path' || key === 'scale' || isProperty(key)) {
|
|
180
195
|
overrides[key] = typeof value === 'string' ? spring(value) : value;
|
|
181
196
|
}
|
|
182
197
|
else
|
|
@@ -184,8 +199,20 @@ function normalize(options) {
|
|
|
184
199
|
}
|
|
185
200
|
return { base, overrides, stagger, relative, haptic };
|
|
186
201
|
}
|
|
187
|
-
function plan(keyframes, base, overrides, offset, relative = false) {
|
|
188
|
-
return expand(keyframes).map(([property, frames]) => {
|
|
202
|
+
function plan(keyframes, base, overrides, offset, relative = false, path) {
|
|
203
|
+
return expand(keyframes, path).map(([property, frames]) => {
|
|
204
|
+
if (path?.properties.includes(property)) {
|
|
205
|
+
if (!Number.isFinite(path.transition.delay + offset) ||
|
|
206
|
+
path.transition.delay + offset < 0)
|
|
207
|
+
throw new RangeError('Path delays, including stagger, must be finite and nonnegative.');
|
|
208
|
+
return {
|
|
209
|
+
property,
|
|
210
|
+
keyframes: frames,
|
|
211
|
+
transition: { ...path.transition, delay: path.transition.delay + offset },
|
|
212
|
+
relative,
|
|
213
|
+
path,
|
|
214
|
+
};
|
|
215
|
+
}
|
|
189
216
|
const override = overrides[property] ?? (property.startsWith('scale') ? overrides.scale : undefined);
|
|
190
217
|
const transition = resolveTransition(override ? mergeTransitions(base, override) : base, property, frames.length);
|
|
191
218
|
transition.delay += offset;
|
|
@@ -194,18 +221,29 @@ function plan(keyframes, base, overrides, offset, relative = false) {
|
|
|
194
221
|
}
|
|
195
222
|
/** Each property the animation touches, with the value it starts from when it sets one. */
|
|
196
223
|
export function startingValues(animation, options) {
|
|
197
|
-
const { keyframes, relative } = prepare(animation, options);
|
|
224
|
+
const { keyframes, relative, path } = prepare(animation, options);
|
|
198
225
|
if (!keyframes)
|
|
199
226
|
throw new Error(`Unknown preset "${animation}".`);
|
|
200
|
-
return new Map(expand(keyframes).map(([property, [first]]) => [
|
|
227
|
+
return new Map(expand(keyframes, path).map(([property, [first]]) => [
|
|
201
228
|
property,
|
|
202
229
|
relative && !isColorProperty(property) ? null : first,
|
|
203
230
|
]));
|
|
204
231
|
}
|
|
205
|
-
|
|
232
|
+
/** Each property the animation touches, with the value it leaves behind when that is known up front. */
|
|
233
|
+
export function endingValues(animation, options) {
|
|
234
|
+
const { keyframes, base, overrides, relative, path } = prepare(animation, options);
|
|
235
|
+
return new Map(plan(keyframes, base, overrides, 0, relative, path).map(({ property, keyframes: frames, transition, path: owned }) => {
|
|
236
|
+
const finite = Number.isFinite(transition.repeat);
|
|
237
|
+
const backwards = transition.reverse && finite && transition.repeat % 2 === 1;
|
|
238
|
+
const unknown = owned !== undefined || (relative && !isColorProperty(property));
|
|
239
|
+
const frame = !finite || backwards ? frames[0] : frames.at(-1);
|
|
240
|
+
return [property, unknown ? null : frame];
|
|
241
|
+
}));
|
|
242
|
+
}
|
|
243
|
+
function expand(keyframes, path) {
|
|
206
244
|
const expanded = [];
|
|
207
245
|
for (const [key, value] of Object.entries(keyframes)) {
|
|
208
|
-
if (value === undefined)
|
|
246
|
+
if (value === undefined || key === 'path' || key === 'orient')
|
|
209
247
|
continue;
|
|
210
248
|
if (key !== 'scale' && !isProperty(key))
|
|
211
249
|
throw new Error(`Can't animate "${key}".`);
|
|
@@ -213,9 +251,14 @@ function expand(keyframes) {
|
|
|
213
251
|
for (const property of properties) {
|
|
214
252
|
if (key === 'scale' && keyframes[property] !== undefined)
|
|
215
253
|
continue;
|
|
216
|
-
expanded.push([
|
|
254
|
+
expanded.push([
|
|
255
|
+
property,
|
|
256
|
+
toKeyframes(property, value),
|
|
257
|
+
]);
|
|
217
258
|
}
|
|
218
259
|
}
|
|
260
|
+
for (const [property, value] of path?.starts ?? [])
|
|
261
|
+
expanded.push([property, [value, value]]);
|
|
219
262
|
return expanded;
|
|
220
263
|
}
|
|
221
264
|
function toKeyframes(property, value) {
|
|
@@ -236,6 +279,8 @@ function toKeyframes(property, value) {
|
|
|
236
279
|
frames.some((frame) => frame !== null && !Number.isFinite(frame))) {
|
|
237
280
|
throw new Error(`Invalid keyframes for "${property}": ${JSON.stringify(value)}.`);
|
|
238
281
|
}
|
|
282
|
+
if (isDecorationProperty(property))
|
|
283
|
+
validateDecorationFrames(property, frames);
|
|
239
284
|
return frames;
|
|
240
285
|
}
|
|
241
286
|
function staggerDelay(stagger, index, count) {
|
package/dist/animate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animate.js","sourceRoot":"","sources":["../src/animate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AACzC,OAAO,EACL,eAAe,EACf,UAAU,EACV,mBAAmB,GAEpB,MAAM,YAA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f,CAAC;AAED,SAAS,YAAY,CAAC,OAA2B,EAAE,KAAa,EAAE,KAAa;IAC7E,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,CAAC,CAAA;IACnC,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,EAAE,GAC5B,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAA;IAC3D,MAAM,MAAM,GACV,IAAI,KAAK,OAAO;QACd,CAAC,CAAC,CAAC;QACH,CAAC,CAAC,IAAI,KAAK,MAAM;YACf,CAAC,CAAC,KAAK,GAAG,CAAC;YACX,CAAC,CAAC,IAAI,KAAK,QAAQ;gBACjB,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC;gBACjB,CAAC,CAAC,IAAI,CAAA;IACd,OAAO,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,MAAM,CAAC,CAAA;AACxC,CAAC;AAED,SAAS,MAAM,CAAC,IAAgB;IAC9B,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAChC,IAAI,CAAC,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,IAAI,IAAI,CAAC,CAAA;IAC7D,OAAO,UAAU,CAAA;AACnB,CAAC"}
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface JoltConfig {
|
|
2
|
+
/** Playback speed for every engine animation. `0.2` plays everything five times slower. */
|
|
3
|
+
timeScale?: number;
|
|
4
|
+
/**
|
|
5
|
+
* When transforms, paths, decorations and decay jump to their end instead of animating.
|
|
6
|
+
* `user` follows the platform setting. Opacity and colors still animate.
|
|
7
|
+
*/
|
|
8
|
+
reducedMotion?: 'user' | 'always' | 'never';
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Global settings, applied to animations that start after the call.
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* configure({ timeScale: 0.2 }) // tune a spring in slow motion
|
|
15
|
+
* configure({ reducedMotion: 'always' }) // check the reduced layout
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function configure(options: JoltConfig): void;
|
|
19
|
+
export declare function timeScale(): number;
|
|
20
|
+
/** Whether motion is reduced right now. `user` asks the platform each time. */
|
|
21
|
+
export declare function reducedMotion(): boolean;
|
|
22
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,2FAA2F;IAC3F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;CAC5C;AAKD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAYnD;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,IAAI,OAAO,CAGvC"}
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getDriver } from './driver/index.js';
|
|
2
|
+
const settings = { timeScale: 1, reducedMotion: 'user' };
|
|
3
|
+
const preferences = ['user', 'always', 'never'];
|
|
4
|
+
/**
|
|
5
|
+
* Global settings, applied to animations that start after the call.
|
|
6
|
+
*
|
|
7
|
+
* ```ts
|
|
8
|
+
* configure({ timeScale: 0.2 }) // tune a spring in slow motion
|
|
9
|
+
* configure({ reducedMotion: 'always' }) // check the reduced layout
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export function configure(options) {
|
|
13
|
+
if (options === null || typeof options !== 'object')
|
|
14
|
+
throw new TypeError('configure() takes an options object.');
|
|
15
|
+
const { timeScale, reducedMotion } = options;
|
|
16
|
+
if (timeScale !== undefined && (!Number.isFinite(timeScale) || timeScale <= 0))
|
|
17
|
+
throw new RangeError(`Time scale must be a positive finite number, got ${timeScale}.`);
|
|
18
|
+
if (reducedMotion !== undefined && !preferences.includes(reducedMotion))
|
|
19
|
+
throw new TypeError(`Reduced motion must be 'user', 'always' or 'never', got ${String(reducedMotion)}.`);
|
|
20
|
+
if (timeScale !== undefined)
|
|
21
|
+
settings.timeScale = timeScale;
|
|
22
|
+
if (reducedMotion !== undefined)
|
|
23
|
+
settings.reducedMotion = reducedMotion;
|
|
24
|
+
}
|
|
25
|
+
export function timeScale() {
|
|
26
|
+
return settings.timeScale;
|
|
27
|
+
}
|
|
28
|
+
/** Whether motion is reduced right now. `user` asks the platform each time. */
|
|
29
|
+
export function reducedMotion() {
|
|
30
|
+
if (settings.reducedMotion === 'user')
|
|
31
|
+
return getDriver().reducedMotion?.() ?? false;
|
|
32
|
+
return settings.reducedMotion === 'always';
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAY7C,MAAM,QAAQ,GAAyB,EAAE,SAAS,EAAE,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,CAAA;AAC9E,MAAM,WAAW,GAA2C,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;AAEvF;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CAAC,OAAmB;IAC3C,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ;QACjD,MAAM,IAAI,SAAS,CAAC,sCAAsC,CAAC,CAAA;IAC7D,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,OAAO,CAAA;IAC5C,IAAI,SAAS,KAAK,SAAS,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,SAAS,IAAI,CAAC,CAAC;QAC5E,MAAM,IAAI,UAAU,CAAC,oDAAoD,SAAS,GAAG,CAAC,CAAA;IACxF,IAAI,aAAa,KAAK,SAAS,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC;QACrE,MAAM,IAAI,SAAS,CACjB,2DAA2D,MAAM,CAAC,aAAa,CAAC,GAAG,CACpF,CAAA;IACH,IAAI,SAAS,KAAK,SAAS;QAAE,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3D,IAAI,aAAa,KAAK,SAAS;QAAE,QAAQ,CAAC,aAAa,GAAG,aAAa,CAAA;AACzE,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,QAAQ,CAAC,SAAS,CAAA;AAC3B,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,aAAa;IAC3B,IAAI,QAAQ,CAAC,aAAa,KAAK,MAAM;QAAE,OAAO,SAAS,EAAE,CAAC,aAAa,EAAE,EAAE,IAAI,KAAK,CAAA;IACpF,OAAO,QAAQ,CAAC,aAAa,KAAK,QAAQ,CAAA;AAC5C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type View } from '@nativescript/core';
|
|
2
|
+
type Shadow = Exclude<View['boxShadow'], string>[number];
|
|
3
|
+
export type DecorationProperty = 'borderRadius' | 'borderWidth' | 'shadowOpacity' | 'shadowRadius' | 'shadowOffsetX' | 'shadowOffsetY' | 'elevation' | 'translationZ';
|
|
4
|
+
export declare const decorationProperties: readonly DecorationProperty[];
|
|
5
|
+
export declare const radiusKeys: readonly ['borderTopLeftRadius', 'borderTopRightRadius', 'borderBottomRightRadius', 'borderBottomLeftRadius'];
|
|
6
|
+
export declare const widthKeys: readonly ['borderTopWidth', 'borderRightWidth', 'borderBottomWidth', 'borderLeftWidth'];
|
|
7
|
+
export declare const isWritingDecoration: (view: View) => boolean;
|
|
8
|
+
export declare const isDecorationProperty: (key: string) => key is DecorationProperty;
|
|
9
|
+
/** Core lengths may be numbers, px strings or parsed { value, unit } lengths. */
|
|
10
|
+
export declare function dip(value: unknown): number;
|
|
11
|
+
export declare function singleShadow(view: View): Shadow;
|
|
12
|
+
export declare function validateDecorationTarget(view: View, property: DecorationProperty): void;
|
|
13
|
+
export declare function validateDecorationFrames(property: DecorationProperty, frames: readonly (number | null)[]): void;
|
|
14
|
+
export declare function clampDecoration(property: DecorationProperty, value: number): number;
|
|
15
|
+
export declare function readDecoration(view: View, property: DecorationProperty): number;
|
|
16
|
+
export declare function writeDecoration(view: View, property: DecorationProperty, raw: number): void;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=decoration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decoration.d.ts","sourceRoot":"","sources":["../src/decoration.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAEvE,KAAK,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AACxD,MAAM,MAAM,kBAAkB,GAC1B,cAAc,GACd,aAAa,GACb,eAAe,GACf,cAAc,GACd,eAAe,GACf,eAAe,GACf,WAAW,GACX,cAAc,CAAA;AAElB,eAAO,MAAM,oBAAoB,EAAE,SAAS,kBAAkB,EAS7D,CAAA;AACD,eAAO,MAAM,UAAU,YACrB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,CAChB,CAAA;AACV,eAAO,MAAM,SAAS,YACpB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,CACT,CAAA;AAEV,eAAO,MAAM,mBAAmB,SAAU,IAAI,YAAsB,CAAA;AACpE,eAAO,MAAM,oBAAoB,QAAS,MAAM,KAAG,GAAG,IAAI,kBACA,CAAA;AAE1D,iFAAiF;AACjF,wBAAgB,GAAG,CA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