@glassly/miniapp 0.3.5-dev.753 → 0.3.5-dev.756
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 +14 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -370,6 +370,20 @@ Path coordinates are local to `box.x/y`; `scale` uniformly scales them (0–8,
|
|
|
370
370
|
quantized to 1/256). `box.w/h` describe layout bounds and do not stretch the path
|
|
371
371
|
or clip its curves. Source coordinates must fit signed Q4 (−2048 to 2047.9375).
|
|
372
372
|
|
|
373
|
+
## Enter and exit transitions
|
|
374
|
+
|
|
375
|
+
Use a stable element `id` with `transition: {durationMs, enter: {dx, dy}}`
|
|
376
|
+
to move a new element from an offset at ink 0 into its box. Use
|
|
377
|
+
`transition: {durationMs, exit: {dx, dy}}` to move an existing element to
|
|
378
|
+
the offset while fading it to ink 0. Offsets are canvas pixels and default
|
|
379
|
+
to zero for a fade without movement.
|
|
380
|
+
|
|
381
|
+
Keep an exiting element in the scene until `durationMs` has elapsed, then
|
|
382
|
+
remove it. Omitting it removes it immediately. Devices without animation
|
|
383
|
+
show entering elements immediately and omit exiting ones; an exiting element
|
|
384
|
+
that was never shown is skipped. Phone and browser mirrors preview both.
|
|
385
|
+
See [the display guide](../../../sdk/docs/display.md#entering-and-leaving).
|
|
386
|
+
|
|
373
387
|
## Depth and cards on top
|
|
374
388
|
|
|
375
389
|
Every element takes an optional `depth` (−16..16 canvas px): a stereo disparity
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glassly/miniapp",
|
|
3
|
-
"version": "0.3.5-dev.
|
|
3
|
+
"version": "0.3.5-dev.756",
|
|
4
4
|
"description": "SDK for building Glassly local miniapps (browser/WebView)",
|
|
5
5
|
"author": "Glassly Labs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@glassly/cloud-protocol": "0.3.5-dev.
|
|
76
|
+
"@glassly/cloud-protocol": "0.3.5-dev.756",
|
|
77
77
|
"eventemitter3": "^5.0.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|