vireglass 3.1.0 → 3.1.1
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 +3 -2
- package/dist/dom.cjs +2 -2
- package/dist/dom.cjs.map +1 -1
- package/dist/dom.d.cts +2 -1
- package/dist/dom.d.ts +2 -1
- package/dist/dom.js +2 -2
- package/dist/dom.js.map +1 -1
- package/package.json +1 -1
- package/src/dom/index.ts +5 -3
package/README.md
CHANGED
|
@@ -171,12 +171,13 @@ box. The body, rim, shadow and custom properties still update every frame. A cha
|
|
|
171
171
|
shapes passed to `setMorph`, of `setAppear` or of the system accessibility settings rebuilds the map
|
|
172
172
|
at reduced resolution and shows it in place, where the browser decodes lazily only once it has been
|
|
173
173
|
decoded. `setInterim(false)` does one full-resolution rebuild and one probe (with a supplied
|
|
174
|
-
`sample` it does not probe). Repeating
|
|
174
|
+
`sample` it does not probe). Repeating `setInterim(false)` is a no-op.
|
|
175
175
|
|
|
176
176
|
Always pair `setInterim(true)` with `setInterim(false)`. As a safety net an element that gets no call
|
|
177
177
|
at all for 2 seconds (no resize, morph, appear or update) leaves interim by itself, exactly as
|
|
178
178
|
`setInterim(false)` would, so a morph that never reported landing cannot leave the glass on a
|
|
179
|
-
stretched map. A pause longer than that in the middle of a morph ends interim early.
|
|
179
|
+
stretched map. A pause longer than that in the middle of a morph ends interim early. A gesture held
|
|
180
|
+
still sends no geometry, so a host that keeps a drag or a press open longer than that calls `setInterim(true)` again while it lasts: each call restarts the 2 seconds.
|
|
180
181
|
|
|
181
182
|
`renderStats()` returns `{ probes, fullBakes, reducedBakes, filterSwaps }`, counted since the last
|
|
182
183
|
`resetRenderStats()`. Every map counts: a rebuild with a spectral edge is two full bakes, one for
|
package/dist/dom.cjs
CHANGED
|
@@ -2332,13 +2332,13 @@ function attachGlass(el, opts = {}) {
|
|
|
2332
2332
|
apply();
|
|
2333
2333
|
},
|
|
2334
2334
|
setInterim(on) {
|
|
2335
|
-
if (destroyed
|
|
2335
|
+
if (destroyed) return;
|
|
2336
2336
|
if (on) {
|
|
2337
2337
|
interim = true;
|
|
2338
2338
|
keepInterim();
|
|
2339
2339
|
return;
|
|
2340
2340
|
}
|
|
2341
|
-
leaveInterim();
|
|
2341
|
+
if (interim) leaveInterim();
|
|
2342
2342
|
},
|
|
2343
2343
|
setSample(next) {
|
|
2344
2344
|
supplied = next ?? void 0;
|