Skip to content

Images, physics and platform motion ​

These integrations have been experimental since Mavis RC.12. This checkout uses Jolt RC.22 in the NativeScript, Web and desktop renderers and in generated projects. Keep all Mavis packages at the same version and rebuild native applications after upgrading. The @rafaelaugusto/jolt-native plugin is optional.

Prism, Glyph and Orbit share their Vue source across Web and NativeScript. Passage demonstrates Web router integration.

APIWebiOSAndroid
particles, confettiJolt canvasNative emitterNative emitter
blurCSS filterNative materialNative content blur; backend dependent
glassCSS backdrop filter; solid fallbackOpaque fallbackOpaque fallback
material="glass" on bars and the speed dialBackdrop filter or solid surfaceLiquid Glass on iOS 26+, blur on earlier versionsSolid theme surface
shapeSVGNative pathsNative paths
drawing (bounded batch)One SVG path per itemOne native surfaceOne native surface
gradientText on MTextCSS text clip; plain text if forced colorsGlyph maskGlyph mask
liquid on MImageJolt image effectNative image effectUnsupported
imageEffectLoaded image; backend/CORS dependentNative effect or static fallbackNative effect or static fallback
symbolEffect on MIconGlyph artworksystemName SF SymbolUnsupported; regular glyph remains
MIcon replaceJolt swap of a decorative layerSF Symbol content transitionImmediate swap
Region physicsWorldBounded circle physicsBounded circle physicsBounded circle physics
followKeyboard, region onKeyboardVirtualKeyboard or estimated visual viewportNative keyboardNative keyboard
MSheetDedicated Jolt bottom sheetExisting native bottom sheetExisting native bottom sheet
MDialog interactiveOpt-in Jolt modalExisting in-page modalExisting in-page modal
useSharedNavigation, MBox sharedTagJolt overlay across two routesJolt overlay in the FrameJolt overlay in the Frame
relateMotionGesturesJolt recognizer arbitrationJolt recognizer arbitrationJolt recognizer arbitration

Owned surfaces ​

Use markRaw(createMotionSurface()) and a component's motionSurface prop. surface.use(motion => { ... }) owns resources created during setup and later actions using that scoped motion. Removing, replacing or deactivating the presentation disposes them, unless the surface is retained. No Mavis solver or frame loop is added.

ts
const stop = surface.use((motion) => {
  motion.particles({ source: 'top', rate: 24, colors: ['#4262c4', '#b83670'] })
  const paint = motion.blur({ amount: 0, radius: 18 })
  paint.animate(0.7, { type: 'spring', duration: 700 })
})
// Stop the recipe while keeping its component.
stop()

Decorations expose supported and idempotent dispose(). Blur exposes a backend snapshot; shape supports path morphing and stroke ranges with compatible path commands. Backend rendering is not pixel-identical. Keep meaningful text and controls outside decorative blur/particle surfaces.

Particles and confetti ​

particles() emits inside the surface: on Web a bounded 2D canvas fills the element, is clipped to its radius, follows resizes on the next frame and never takes input; on native the emitter belongs to the view's own layer. Controls placed inside a particle surface stay clickable, as Prism's Make a wish shows. Omit duration for continuous emission; with duration the emitter stops and lets live particles expire.

confetti() is a finite burst. Its origin is the surface's centre when you call it; later scrolling does not move it. Web draws it on a fixed, inert layer over the viewport, iOS and Android over the window, so it is not clipped by the surface. Reduced motion suppresses the burst on all three renderers. Starting a new burst releases the earlier burst handle. A continuous emitter on the same surface remains independent. Always keep the meaningful outcome in your own state, as Prism's Celebrated n× line does, and do not rely on the decoration. No component emits particles by default; MConfetti, MParticleField and FilePicker's celebrate are opt-in. Web particles run on the JavaScript thread through Jolt's frame loop and native emitters on the platform renderer, so heavy rates cost differently on each.

Glass ​

ts
const stop = pane.use((motion) => {
  const glass = motion.glass({
    amount: 0.85,
    radius: 22,
    tint: 'rgba(24, 20, 48, 0.36)',
    fallbackColor: '#221C3D',
  })
  // In an action: glass.animate(0.25, { type: 'spring', duration: 650 })
  console.log(glass.snapshot().backend)
})

glass() puts a backdrop behind the surface's own content, which stays sharp and interactive. Amount runs from 0 to 1, radius from 1 to 64; both renderers reject other values the same way. On Web it is a CSS backdrop filter with a translucent tint. Under forced colours, reduced transparency or a browser without backdrop filtering it becomes a solid fallbackColor, and snapshot() reports backend: 'solid' with the reason. On iOS and Android a declared MBox paints the opaque fallbackColor behind its children. Its snapshot reports backend: 'solid' and reason: 'unsupported'. The native Liquid Glass container has a separate view hierarchy. supports('glass') reports whether the existing surface can filter its backdrop. For content blur, iOS uses a system material. Android requires API 31+ and a hardware-accelerated view. Call supports('blur') after attachment to inspect that capability.

The glass owns its surface's background. Declare it on an MBox without backgroundColor; both renderers refuse a surface that already paints one, because Vue rewrites inline styles on every update and would take the background back. One glass per surface; blur and glass use separate surfaces. Disposal, replacement, KeepAlive deactivation and navigation restore the previous inline style. This is not UIKit Liquid Glass on the Web: there is no fusion or refraction between panels.

Bar and speed dial material ​

Set material="glass" on MAppBar, MTabBar or MSpeedDial. To opt in once for all three, set chromeMaterial in the theme. A component can override that choice with material="solid".

ts
const trails = defineTheme({ name: 'trails', chromeMaterial: 'glass' })

On iOS 26 and later, build the app with the iOS 26 SDK or newer to include the Liquid Glass types. With those types present, the bars use UIKit’s material. The trigger and actions share one container and separate as the dial opens. Earlier iOS versions use system blur. Android, macOS and Windows use the solid theme surface.

On the Web, browsers with backdrop filtering show the theme’s translucent tint over the content. Higher contrast or reduced transparency restores the solid surface. Both accessibility preferences also take precedence on iOS. Keep ancestor opacity at 1 when animating the screen. The surface.supports('glass') query still describes the effect on an existing box.

Open Field notes and scroll the photographs beneath the bars. The moon button switches the theme.

iOS 26.2 · Liquid Glass

iOS 17.5 · system blur

Android · solid surface

Recorded surface effects ​

Prism keeps its wish button active during emission, displays the result of a celebration, changes blur and glass intensity, morphs an outline and commits a decoded image after seeking the dissolve.

iPhone 17 Pro simulator, iOS 26.2. The probe activates the catalog controls. Glass uses the opaque fallback.

Android API 36 emulator. The probe activates the catalog controls. Glass uses the opaque fallback.

Chromium. Automated mouse clicks. Glass uses the CSS backdrop filter.

Glyphs: text paint, drawings and icons ​

Glyph puts the three together: a heading painted through its letters, icons that answer state, and strokes that survive a cached tab.

Text gradient and sheen ​

ts
const stop = title.use((motion) => {
  const paint = motion.gradientText({
    colors: ['#B83670', '#4262C4', '#B8862E'],
    angle: 20,
    sheen: { width: 0.28 },
  })
  paint.play({ type: 'tween', duration: 1300 })
})

Declare the surface on an MText with an explicit text prop. The paint uses the text itself: on Web the original text node clipped by a CSS gradient, so selection, find-in-page and the single accessible name are unchanged; on NativeScript a mask of the label's own glyphs, including wrapped lines. Rich, slotted or interactive text is rejected, as with animateText. Two to eight colors; play() sweeps the sheen once and the static gradient stays when it ends, is stopped or under reduced motion. supported is false when the renderer keeps ordinary text, for example under forced colors on Web; the text then uses its theme color. Call refresh() after a font or layout change the renderer cannot observe. Browsers repaint text clipping themselves, while native redraws the glyph mask, so a sheen can differ slightly in edge softness.

MAnimatedText takes the same object as an opt-in gradient prop. The entrance owns the letters while it runs; the gradient takes over when it lands, sweeps its sheen once and is released before a replay, so the two never paint the same glyphs.

Drawing batches ​

ts
const stop = sky.use((motion) => {
  const drawing = motion.drawing({
    viewBox: [0, 0, 320, 180],
    styles: { star: { fill: '#F6DBED' }, line: { stroke: '#8E7CC3', strokeWidth: 0.7 } },
    items: [
      { id: 'vega', style: 'star', kind: 'circle', cx: 40, cy: 30, radius: 2 },
      { id: 'lyra', style: 'line', kind: 'path', d: 'M40 30 L90 60' },
    ],
  })
  // Later, by id: drawing.update([{ id: 'vega', style: 'star', kind: 'circle', cx: 44, cy: 31, radius: 2 }])
})

A drawing is decorative, retained geometry on one surface: circles, rectangles and paths with shared styles. update() replaces items by id and keeps their order; set() replaces items and/or styles after validating the whole next drawing. Updates are immediate, not sampled animations: animate the surface itself for whole-drawing motion. A drawing holds at most 1,024 items and 64 styles. Past that, Mavis throws a RangeError instead of drawing part of your data; summarize the data or split it across surfaces. On native the whole batch is one view; on Web it is still one SVG path per item, so it saves nothing in the DOM. Charts keep their own SVG and native views, interpolation, selection and data table: no measurement yet shows a batch is faster for them, so it is not their default.

Retained drawings ​

ts
const outline = markRaw(createMotionSurface({ lifetime: 'retained' }))

By default a surface's resources end when its view leaves, including a KeepAlive cache. A retained surface keeps its shapes, drawings and paint while a cached view or covered page is away: they pause when it leaves, including a shape's playback, and resume when it returns. A resource you paused yourself stays paused. Only unmount, or replacing the surface or its view, disposes them, once. A drawing stays drawn while the view is away, and edits you make meanwhile apply when it returns. Jolt Web also releases a detached view's background gradient and text gradient: Mavis repaints them from their last values when the view returns (a running gradient animation lands on its target, a text sheen does not replay), and one you paused stays paused. Other values a retained Web surface set on itself, such as a scale, start from rest again; on NativeScript they are kept. The lifetime is read when the component mounts. A retained drawing adds no frame loop.

Icon replacement ​

vue
<m-icon
  :name="subscribed ? 'bell' : 'bell-off'"
  :systemName="subscribed ? 'bell' : 'bell.slash'"
  replace
  :motionSurface="bell"
  :label="subscribed ? 'Notifications on' : 'Notifications off'"
/>

With replace and a motionSurface, a change of name (or of systemName on iOS) plays Jolt's symbol replacement instead of an instant swap. The name, label and state stay yours and change at once; the artwork always ends on the current name, also after rapid changes, cancellation or reduced motion (which swaps immediately). Web replaces only a decorative layer inside the icon; iOS runs the SF Symbol content transition; Android and glyph icons swap at once. One effect owns an icon at a time, so a replacement cancels a running bounce or pulse; give a repeating effect its own icon. bounce, pulse, held scale (until stop()) and variableColor (one layer per Mavis glyph on Web) work as before. An icon inside a pressed MButton keeps its own effect while the button keeps its press. Toggle replace while the icon is mounted to change how its next artwork update appears.

Images and their model ​

Declare motionSurface on MImage, then wait for the surface's availability. It binds the decoded image after loading, not the aspect-ratio wrapper. imageEffect() returns a promise because a dissolve destination must load first.

vue
<MImage v-model:src="source" :motionSurface="photo" alt="Coastal study" :aspectRatio="4 / 3" />
ts
const operation = await motion.imageEffect('dissolve', { to: nextSource, paused: true })
operation.progress = 0.5
operation.resume()
const committed = await operation.finished

Forward completion emits update:src; the app must accept it to commit the model. Rejected updates restore the previous image and resolve false. Cancellation, replacement, stale loading and reverse completion do not commit the destination. Finite effects provide pause/resume, seek, reverse and finish; pointer-driven distortion has different playback capabilities. Reduced motion or an unsupported rendering backend may settle immediately. Web destinations need appropriate CORS/CSP permission. No request-abort guarantee is made for image decoding.

Pixel effects own the image while they run. Do not run them on an image that ImageViewer is zooming: the viewer uses its own photo element, and Jolt refuses a second owner of the same target. Pointer distortion sets touch-action: none and captures the pointer only while it runs; stopping, finishing or disposing restores the authored touch style and releases capture. Prefer fit="cover" or "contain" without extra transforms on the image itself. A cross-origin destination needs CORS headers and an img-src/connect-src CSP that allows it; otherwise decoding rejects and the model keeps its current source.

Changing the fit or measured size of a Web MImage cancels its active raster playback. The native renderer remeasures the image after a resize and cancels on a stretch-mode change. The app accepts the newest dissolve request. If a previous dissolve finishes while its replacement is decoding, its playback resolves false and the model keeps the last accepted image.

liquid() also requires a loaded MImage. Android reports unsupported. MIcon keeps its existing portable name; optional systemName="heart.fill" selects an iOS system image for symbol effects. supports('symbol') reflects the actual artwork available at the time of the call.

Keyboard and circle physics ​

region.onKeyboard(callback) reports visibility, height, backend and accuracy. Web visual-viewport information is an estimate, not proof that a keyboard is present. Native observation starts with accuracy unavailable until an event arrives. Use motion.followKeyboard({ offset: 12 }) on a dedicated untranslated composer, and let the scope release it. An observer inside a KeepAlive view is released while the view is away and attached again, once, when it returns; it reports the keyboard as it is then. Observation does not pause while the page is hidden; it simply receives no events.

A scrolling MScreen and an MSheet already keep the focused editor clear of the keyboard on both renderers, so an MComposer with followKeyboard inside them stays put instead of moving twice; use following for a composer overlaid on a non-scrolling screen. height is the keyboard's bottom coverage, so it can be 0 while visible is true, as with a floating iPad keyboard or a browser that resized its layout viewport. Web duration is 0 and its backend is virtual-keyboard (exact) or visual-viewport (estimated); a desktop browser without a software keyboard reports hidden and 0. Disposing the observer, unmounting its region or leaving the route removes its viewport listeners. On iPhone Simulator, focusing an editor in Safari reported 337 CSS px of bottom coverage. Chrome with Gboard on the Android emulator reported 376 CSS px. Both returned to 0 on dismissal and retained the draft. In iPad Air 11-inch Simulator (iOS 26.2), landscape Safari reported 422 CSS px for the docked keyboard. A floating 320 × 225.5 keyboard left the estimated coverage at 0 and visibility at hidden in both orientations. After dismissal, a pinch to 1.68× kept coverage at 0 and preserved the text. Chrome also received typing, Backspace and a correction from an emulated USB keyboard that Android identified as external. The draft kept focus, coverage stayed at 0 and the visual viewport stayed at 782.48 CSS px. These checks used simulated devices. Open the scroll and keyboard check.

await region.physicsWorld(bodies, options) waits for native layout and rejects stale presentations. Each body names a distinct motion surface, a radius and a center. Use 1–16 square direct children sized to the circle diameter, inside an untransformed host and ancestors. Do not attach competing gestures or transform animations. The controller offers impulse, reset, pause/resume, attachments, springs, snaps and a diagnostic snapshot. Jolt owns collision solving, native input, timing and reduced-motion behavior. A body replacement disposes its world.

Orbit physics recordings ​

Orbit measures the circles before installing its world. If a body changes presentation while layout is pending, the old request ends and releases its resources.

iOS 26.2 simulator. Pause, impulse and remount of the native circle stage.
Android emulator. Pause, impulse and remount of the native circle stage.
Chromium. Impulse, pause, resume and reset.

Sheets, dialogs and navigation ​

MSheet Web now delegates content snaps, drag, nested scrolling and keyboard placement to Jolt. Its handle is keyboard accessible. Focus trapping, labels and the controlled open model remain Mavis responsibilities. A non-dismissible Web sheet closes immediately for an application request because Jolt ignores programmatic dismiss() when dismissal is disabled.

MDialog's optional interactive prop enables the Jolt Web presentation and a downward gesture on its title. Close requests still respect dismissible, loading and the app's controlled state, and add the swipe reason. NativeScript keeps the existing accessible in-page modal; this prop does not convert it to a UIKit/Core modal.

Dialog close requests from the interactive gesture are synchronized once: a short drag returns to open without a model update, and a vetoed swipe (the app keeps open) settles back with focus still trapped. A locked or loading dialog ignores the gesture. An external dialog.close() is reported as escape, and parking the page in KeepAlive closes the dialog with navigation and restores page scrolling. A form submission with method="dialog" follows the same controlled close path. If the app vetoes it or locks dismissal, MDialog restores the top layer, focus and input. On NativeScript, Jolt drags the in-page panel by its title. See the native and browser recordings.

Shared navigation between routes ​

Give the picture on both screens the same sharedTag on an MBox, then route through useSharedNavigation(). The same shared screen code runs on Web and NativeScript. Voyage flies a destination card into its detail page and back.

vue
<MBox :sharedTag="`trip-${trip.id}`" :height="132" radius="lg" :backgroundColor="trip.sky" />
ts
const shared = useSharedNavigation()
const flight = shared.navigate({
  tag: `trip-${trip.id}`,
  // Pass options to a NativeScript router; Vue Router ignores them.
  navigate: (options) => router.push(`/trips/${trip.id}`, options),
})
const { status, navigated, committed } = await flight.finished
  • The route callback runs exactly once. navigated says it ran; committed says it resolved without rejecting, returning false or a router failure before the result. A cancelled flight waits for a route that was already running; cancelling never rolls a route back.
  • A second request while one is flying resolves unavailable / busy without calling its route. A rejected route reports failed / navigation-error; a route that does not settle within navigationTimeout (default 3000 ms, createMavis({ sharedNavigation })) reports navigation-timeout and is not counted as committed.
  • When no flight can start (SSR, no native Frame, a missing source, reduced motion), the route still runs and the destination is intact; the result says unavailable and why.
  • Web: one Jolt runtime per application flies a static copy above both routes, so the source page can unmount during the route; the document body contains both screens. NativeScript: one Jolt controller per Frame, with sharedTransitionTag on each page; keep one tag per page. Do not put sharedTag on an MBox that also has motionSurface; wrap the animated one.
  • Live media, form controls and SVG are copied as static snapshots. Browser history buttons and system back are not part of the flight; only routes started through navigate() fly. Passage's edge-drag return (scope.interactiveNavigation() through useMavisWebMotion) remains a Web-only recipe.

Interactive return in Voyage ​

Voyage declares a motion region on the detail picture. The same card key identifies one MBox :sharedTag on each route. A short pull springs the picture back. A longer pull requests a return to the keyed card. The same action is available from the Back button and its keyboard activation. Modified clicks on the source card keep their browser meaning.

ts
const entry = shared.entry({
  tag: item.tag,
  region: pictureRegion,
  axis: 'y',
  canBegin: () => !editorBusy.value,
  back: ({ signal, ...transition }) => (signal.aborted ? false : router.back(transition)),
  realize: ({ key, signal }) => collection.showItem(key, { signal }),
})
await entry.open(({ signal, ...transition }) =>
  signal.aborted ? false : router.push(item.href, transition),
)

Use a dedicated non-editable region. With axis: 'x' the browser listens at its leading edge. With 'y' it follows the picture. NativeScript delegates eligible system back to Jolt and uses the declared picture for vertical return. Android predictive progress depends on OS and host support. Browser history stays with the router.

The app owns route commitment. A guard may return false or reject to leave the detail usable. Pass the native transition to the router. Honor abort signals in async guards and keyed realization. Resolve a virtualized item from current data before its surface is looked up. A missing item can still return to the collection. Call entry.cancel() to interrupt work and dispose() when the route owner is replaced. Avoid sharing a live editor, media player or SVG subtree as a snapshot.

iPhone Simulator. A short pull stays on the detail. A longer pull returns to the destinations.

Android emulator. The picture keeps the first drag, then the longer pull reopens the collection.

Chromium. Keyboard activation opens the card. Dragging the picture cancels and then commits the return.

Gesture relations ​

relateMotionGestures() declares, before contact begins, how two live surface.drag() handles share one touch: waitFor (this drag starts only after the other fails), block (this drag preempts the other) or simultaneous. Jolt arbitrates; the relation ends with either drag or its presentation, and a remounted screen relates its new drags again. Two drags, one touch shows both directions of a nested wait.

iPhone Simulator. Two contacts zoom the photo while the sheet stays at the same height. Replacing the photo restores the initial framing.

Android emulator. Two contacts zoom the photo while the sheet stays at the same height. Replacing the photo restores the initial framing.

Chromium. Two contacts zoom the photo while the sheet stays at the same height. Replacing the photo restores the initial framing.

ts
const tray = trayMotion.drag({ axis: 'x', snap: { x: [0] } })
const card = cardMotion.drag({ axis: 'x', snap: { x: [0] } })
const link = relateMotionGestures([{ gesture: tray, other: card, relation: 'waitFor' }])

Components relate through gesture slots. createMotionGesture() returns a slot; pass it to the gesture prop of MSheet (its drag), MImage with zoom above 1 (its pan and pinch), MCarousel (its swipe), MSwipeActions (its swipe) or MSortableList (its long press). The component fills the slot with its own Jolt recognizer while it is mounted and empties it when the recognizer goes away. A relation between slots connects once both are filled and reconnects by itself when a component replaces its recognizer: a reopened sheet, a new photo, the next carousel slide, a remounted screen. A stale recognizer never clears its replacement, and a relation requested during a contact waits for that contact to end. kind and otherKind pick one recognizer of a component that has several. relation.connected says whether the renderer currently holds it. Dispose the relation with the screen that declared it.

ts
const sheet = createMotionGesture()
const photo = createMotionGesture()
const link = relateMotionGestures([
  // At minimum scale the photo's pan fails, so a downward drag moves the sheet.
  { gesture: sheet, other: photo, relation: 'waitFor', otherKind: 'pan' },
  // A pinch always wins over the sheet.
  { gesture: photo, kind: 'pinch', other: sheet, relation: 'block' },
])
vue
<MSheet v-model:open="open" title="Above the clouds" :gesture="sheet">
  <MImage :src="photo" alt="A ridge above the clouds" :zoom="3" :gesture="photo" />
</MSheet>

A zoomable MImage owns its photo's transform: motionSurface and the reveal animation step aside while zoom is above 1, and passing both zoom and motionSurface is an error. The same page shows a carousel of trip cards and a checklist whose rows swipe inside a SortableList, with the long press declared to block the row swipe.

Jolt's limits apply:

  • Drag refuses a transformed ancestor, so a nested drag must not move while its container is translated (use waitFor, not simultaneous, for nested drags).
  • On the Web a drag starts on a button or link inside the dragged element only when the drag passes fromPress: true. MCarousel does, so a slide that is an interactive MCard swipes from anywhere on it; once the pointer passes the movement slop the press is cancelled and its click is not delivered. NativeScript already admits these presses.
  • System back and predictive back are not relation endpoints; Mavis keeps routing them.

Gravity, haptics and sensors are experimental. Field shows all three in one shared screen on Web, iOS and Android, and Gallery shows the Web-only gallery recipes.

Gravity ​

motion.animate({ y: 196 }, { type: 'gravity', acceleration: 1800, restitution: 0.55 }) uses Jolt's finite compiler on Web and native, with no Mavis physics loop. Gravity takes x/y on a surface, or a numeric value through animateValue, with one landing point; Field drives the ball with y and its shadow with a value bound to scale and opacity, so both land together. Duration comes from physics: duration, ease, bounce, opacity/scale and multi-segment frames are rejected before any current motion is interrupted. A signed velocity tosses; leaving it out inherits the current velocity, so a redirect in the air keeps its speed. Pause, resume, progress, stop, reduced motion, press feedback on the same component and presentation cleanup (remount, KeepAlive, route change) all apply. Shared-layout transitions stay spring/tween.

Haptics ​

Haptics are opt-in and silent by default. A finite animation can carry a cue, haptic: 'light' or { style: 'medium', times: [0.5, 1] }, which follows Jolt's playback clock: a stopped, replaced or seeked animation does not replay an old cue. For a tap outside an animation, call motion.haptic('light' | 'medium' | 'heavy') from the action that should be felt, usually the click of an accepted press, so a disabled, loading or cancelled press stays silent. It returns { backend, status }:

backendWhere
native-impactiOS impact feedback generator, Android view haptic feedback
vibrationWeb navigator.vibrate, a short duration hint (10, 20 or 30 ms)
noneNo haptic API

status is requested (accepted, never proof of tactile output, and a Web duration is not a native intensity), disabled (reduced motion), blocked (page or app not active, no user activation yet, or the platform refused) or unavailable. The user's system settings can still silence a requested tap. requestMavisWebHaptic(region, style) remains for Web-only code.

Sensors ​

ts
const rotation = motion.sensor('rotation')
const gravity = motion.sensor('gravity', { coordinates: 'interface' })
motion.bind({
  rotate: rotation.z.to([-Math.PI, Math.PI], [-180, 180]),
  x: gravity.x.to([-9.81, 9.81], [-56, 56]),
})
// In a user click/tap, before awaiting anything:
void rotation.requestPermission()
void gravity.requestPermission()
KindUnitValues
rotationradRelative angles x/y/z plus a Hamilton quaternion (xyzw); recenter()
gravitym/s²Downward gravity; a flat, face-up phone reads z ≈ −9.81
accelerationm/s²Proper acceleration; the same phone reads z ≈ +9.81
linearAccelerationm/s²Acceleration without gravity
gyroscoperad/sAngular velocity
magneticFieldµTField vector, not a compass heading

sensor.unit and snapshot().unit name the unit. Each sensor starts only while something is bound to it, and Jolt shares one acquisition between kinds; Mavis adds no polling and no per-reading application state. coordinates: 'interface' (default) follows the screen's rotation, 'device' keeps the device axes. On the Web, gravity needs both linear and total acceleration from the browser and is never derived from total acceleration alone, and magneticField reports unavailable, which leaves its bindings at their static value. Native permission returns not-required, which is not a claim that hardware exists. Web needs a secure context and prompts only from the explicit action. available turns true only after a valid reading, never because an API exists.

sensor.replay(samples, { manual }) plays 2 to 10000 explicitly synthetic samples (quaternions for rotation, xyz vectors otherwise, optional orientation) through that sensor only; other sensors keep their device input. While it plays, status is replaying, and snapshot().sampleSource stays replay for the retained values, so a replay is never reported as a device reading and never grants permission. manual: true waits for advanceTo(ms), and pause/play/stop work on both renderers; an automatic replay follows the platform clock. Field's Play a sample tilt uses an automatic replay so the scene can be explored without sensors.

Sensors pause under reduced motion by default (reducedMotion: 'continue' keeps them). Background, pause/resume, ref replacement, KeepAlive, route changes and a late permission answer after disposal release or ignore exactly what that presentation owned. An emulator, an injected event or a replay is not evidence of physical sensor data; real browser delivery on a physical device is still being validated upstream in Jolt #385.

Shared screens use motion.glass() (above). Gallery uses the Web-only scope.glass() through useMavisWebMotion, with a solid fallback under forced colors, reduced transparency or missing support. Child controls remain interactive. This is CSS backdrop filtering, not native Liquid Glass. sharedNavigationEntry() and resolveListTarget() restore the current keyed thumbnail after paging/reordering; deletion focuses a collection heading. Zoom/dismiss uses Jolt's zoomable(). Route callbacks check abort signals before committing; the app owns history. Passage also exposes interactiveNavigation() for edge drag and button return. These Web recipes do not add a native Frame or glass component adapter.

Web bar chart comparison ​

We compared the production SVG plot used by MChart with a decorative bar layer using surface.drawing(). Both use chartGeometry, a 600 × 200 px plot, identical data and whole-plot updates. Six warmups preceded 30 measured updates at 14, 128 and 576 bars per browser. The table shows the 576-bar case.

BrowserDescendants, SVG / batchMedian update time, SVG / batch
Chromium678 / 5843.5 / 6.8 ms
Firefox678 / 5845 / 124 ms
WebKit678 / 5845 / 13 ms

Update time includes data preparation and submitting changes through the next Vue flush. Counts cover the plot subtree, including the SVG interaction targets. The candidate is decorative. The existing SVG had lower update time at 576 bars in all three runs. Physical Android comparison remains open. The chart keeps its current Web and native renderers. Run node test/performance/drawing-bars/run.mjs for all densities and animation callback intervals.

At 576 bars the native plot contained 582 descendants and the decorative batch contained one. On the iOS 26.2 simulator, median update submission took 19.520 ms for the plot and 10.509 ms for the batch. On the Android 16 emulator it took 56.137 and 46.789 ms respectively. Both ran the debug catalog. Animation callback intervals are recorded separately. CPU utilization, allocations and GPU-presented frames were outside this measurement. Build the catalog with --env.chartBarsCheck and run node scripts/check-native-chart-bars.mjs <ios|android> <device> to reproduce.

Components for NativeScript and Web. Starting with Vue.