@dasl/tile-loader 3.1.0 → 3.2.0
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 +818 -34
- package/dist/at.d.ts +126 -12
- package/dist/at.d.ts.map +1 -1
- package/dist/at.js +574 -90
- package/dist/at.js.map +1 -1
- package/dist/car.d.ts +21 -2
- package/dist/car.d.ts.map +1 -1
- package/dist/car.js +78 -15
- package/dist/car.js.map +1 -1
- package/dist/content-scheme.d.ts +17 -3
- package/dist/content-scheme.d.ts.map +1 -1
- package/dist/content-scheme.js +32 -6
- package/dist/content-scheme.js.map +1 -1
- package/dist/guard.d.ts +242 -0
- package/dist/guard.d.ts.map +1 -0
- package/dist/guard.js +956 -0
- package/dist/guard.js.map +1 -0
- package/dist/index.d.ts +247 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +746 -51
- package/dist/index.js.map +1 -1
- package/dist/lib/cid.d.ts +25 -0
- package/dist/lib/cid.d.ts.map +1 -0
- package/dist/lib/cid.js +65 -0
- package/dist/lib/cid.js.map +1 -0
- package/dist/lib/defaults.d.ts +8 -0
- package/dist/lib/defaults.d.ts.map +1 -0
- package/dist/lib/defaults.js +14 -0
- package/dist/lib/defaults.js.map +1 -0
- package/dist/lib/destinations.d.ts +25 -0
- package/dist/lib/destinations.d.ts.map +1 -0
- package/dist/lib/destinations.js +94 -0
- package/dist/lib/destinations.js.map +1 -0
- package/dist/lib/drisl.d.ts +10 -0
- package/dist/lib/drisl.d.ts.map +1 -0
- package/dist/lib/drisl.js +169 -0
- package/dist/lib/drisl.js.map +1 -0
- package/dist/lib/errors.d.ts +80 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +44 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/fetching.d.ts +24 -0
- package/dist/lib/fetching.d.ts.map +1 -0
- package/dist/lib/fetching.js +135 -0
- package/dist/lib/fetching.js.map +1 -0
- package/dist/lib/limits.d.ts +34 -0
- package/dist/lib/limits.d.ts.map +1 -0
- package/dist/lib/limits.js +33 -0
- package/dist/lib/limits.js.map +1 -0
- package/dist/lib/pointer.d.ts +83 -0
- package/dist/lib/pointer.d.ts.map +1 -0
- package/dist/lib/pointer.js +244 -0
- package/dist/lib/pointer.js.map +1 -0
- package/dist/link.d.ts +110 -13
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +336 -43
- package/dist/link.js.map +1 -1
- package/dist/memory.d.ts +1 -0
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +5 -0
- package/dist/memory.js.map +1 -1
- package/dist/mount.d.ts +54 -0
- package/dist/mount.d.ts.map +1 -0
- package/dist/mount.js +286 -0
- package/dist/mount.js.map +1 -0
- package/dist/size.d.ts +43 -2
- package/dist/size.d.ts.map +1 -1
- package/dist/size.js +296 -15
- package/dist/size.js.map +1 -1
- package/package.json +13 -3
- package/src/at.ts +582 -84
- package/src/car.ts +75 -16
- package/src/content-scheme.ts +38 -7
- package/src/guard.ts +1013 -0
- package/src/index.ts +837 -52
- package/src/lib/cid.ts +65 -0
- package/src/lib/defaults.ts +12 -0
- package/src/lib/destinations.ts +79 -0
- package/src/lib/drisl.ts +160 -0
- package/src/lib/errors.ts +111 -0
- package/src/lib/fetching.ts +138 -0
- package/src/lib/limits.ts +61 -0
- package/src/lib/pointer.ts +290 -0
- package/src/link.ts +365 -48
- package/src/memory.ts +5 -0
- package/src/mount.ts +356 -0
- package/src/size.ts +304 -16
package/dist/size.js
CHANGED
|
@@ -12,11 +12,22 @@
|
|
|
12
12
|
// rules are `resolveSize` in @dasl/tile-lexicon, the same for every context,
|
|
13
13
|
// with the floor no tile goes under.
|
|
14
14
|
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
15
|
+
// How big is the context's to decide, and so is when. A frame that changes
|
|
16
|
+
// size moves the page around it: what was under the user's pointer is
|
|
17
|
+
// somewhere else, and something else is there. A tile chooses the moment it
|
|
18
|
+
// asks, so a size is only applied where it moves nothing under the pointer,
|
|
19
|
+
// and waits until it can be (see "The gate" below).
|
|
20
|
+
//
|
|
21
|
+
// A host that lays the frame out itself passes a function as `apply`, and
|
|
22
|
+
// sizes its own box with what that is called with; the tile is still told
|
|
23
|
+
// its real size whenever the frame's box changes. (`apply: false` leaves the
|
|
24
|
+
// box, and the moment, to the host altogether: it has every request in
|
|
25
|
+
// `onRequest`, and nothing is held for it.) The width is the context's by
|
|
26
|
+
// default (the frame keeps the width its layout gives it): `width: 'tile'`
|
|
27
|
+
// hands that over too.
|
|
19
28
|
import { effectiveLimits, resolveSize } from '@dasl/tile-lexicon';
|
|
29
|
+
import { withDefaults } from './lib/defaults.js';
|
|
30
|
+
import { shield, watchPointer } from './lib/pointer.js';
|
|
20
31
|
/** The tiles protocol this module speaks. */
|
|
21
32
|
export const SIZE_PROTOCOL = 'size';
|
|
22
33
|
/** What a frame is given before anything is known or laid out. */
|
|
@@ -27,16 +38,34 @@ const SETTLE_MS = 100;
|
|
|
27
38
|
// How long a host that sizes its own box gets to do it before the tile is
|
|
28
39
|
// answered with what there is.
|
|
29
40
|
const HOST_APPLIES_MS = 250;
|
|
41
|
+
/** The gate's numbers where a host gives none. */
|
|
42
|
+
export const SIZE_GATE = Object.freeze({
|
|
43
|
+
margin: 24,
|
|
44
|
+
intervalMs: 250,
|
|
45
|
+
burst: 8,
|
|
46
|
+
refillMs: 3000,
|
|
47
|
+
shieldMs: 700,
|
|
48
|
+
dwellMs: 900,
|
|
49
|
+
stickyMs: 4000,
|
|
50
|
+
retryMs: 1000,
|
|
51
|
+
decideMs: 150,
|
|
52
|
+
});
|
|
30
53
|
const positive = (v) => (typeof v === 'number' && Number.isFinite(v) && v > 0 ? v : undefined);
|
|
54
|
+
const now = () => performance.now();
|
|
31
55
|
/** Negotiates the size of a rendered tile's frame with the tile. */
|
|
32
56
|
export function tileSize(tile, frame, options = {}) {
|
|
33
|
-
|
|
57
|
+
// Who puts a size on the frame's box: we do (the default); the host does,
|
|
58
|
+
// when we say (a function); or the host does, when it likes (`false`).
|
|
59
|
+
const hostApplies = typeof options.apply === 'function' ? options.apply : undefined;
|
|
60
|
+
const apply = options.apply !== false && !hostApplies;
|
|
34
61
|
const tileWidth = options.width === 'tile';
|
|
35
62
|
const sizing = tile.manifest?.sizing;
|
|
36
63
|
let limits = options.limits ?? {};
|
|
37
64
|
// What the tile has asked for so far, kept so that a change of limits can
|
|
38
65
|
// be settled again against its wishes.
|
|
39
66
|
const wish = {};
|
|
67
|
+
// The wishes in force: those of the last move that was made.
|
|
68
|
+
let granted = {};
|
|
40
69
|
let current = { ...DEFAULT_SIZE };
|
|
41
70
|
let told = '';
|
|
42
71
|
let reported = ''; // the last size the host was told of
|
|
@@ -50,12 +79,14 @@ export function tileSize(tile, frame, options = {}) {
|
|
|
50
79
|
const r = frame.getBoundingClientRect?.();
|
|
51
80
|
return r && r.width > 0 && r.height > 0 ? { width: Math.round(r.width), height: Math.round(r.height) } : undefined;
|
|
52
81
|
};
|
|
53
|
-
const settle = () => resolveSize({
|
|
54
|
-
want: tileWidth ?
|
|
82
|
+
const settle = (want = wish) => resolveSize({
|
|
83
|
+
want: tileWidth ? want : { height: want.height },
|
|
55
84
|
sizing: tileWidth ? sizing : { ...sizing, width: undefined, minWidth: undefined, maxWidth: undefined },
|
|
56
85
|
limits,
|
|
57
86
|
fallback: box() ?? current,
|
|
58
87
|
});
|
|
88
|
+
// The frame's box is in whole pixels; what a tile asks for need not be.
|
|
89
|
+
const same = (a, b) => Math.round(a.height) === Math.round(b.height) && (!tileWidth || Math.round(a.width) === Math.round(b.width));
|
|
59
90
|
const grant = (id) => {
|
|
60
91
|
if (stopped)
|
|
61
92
|
return; // a move's timer can still fire after stop()
|
|
@@ -90,32 +121,273 @@ export function tileSize(tile, frame, options = {}) {
|
|
|
90
121
|
});
|
|
91
122
|
const put = (size) => {
|
|
92
123
|
current = size;
|
|
124
|
+
if (hostApplies) {
|
|
125
|
+
// A host whose own code fails must not leave the tile waiting for ever
|
|
126
|
+
// for a move that was made.
|
|
127
|
+
try {
|
|
128
|
+
hostApplies(size);
|
|
129
|
+
}
|
|
130
|
+
catch (err) {
|
|
131
|
+
console.error('Could not apply a tile\'s size:', err);
|
|
132
|
+
}
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
93
135
|
if (!apply)
|
|
94
136
|
return;
|
|
95
137
|
frame.style.height = `${size.height}px`;
|
|
96
138
|
if (tileWidth)
|
|
97
139
|
frame.style.width = `${size.width}px`;
|
|
98
140
|
};
|
|
141
|
+
// A move was made: the requests it was for hear what came of it.
|
|
142
|
+
const made = (ids) => {
|
|
143
|
+
if (apply)
|
|
144
|
+
return answer(ids);
|
|
145
|
+
// The host resizes its box. Each move's requests get their own time
|
|
146
|
+
// for that; the observer may answer them sooner.
|
|
147
|
+
moved.push(...ids);
|
|
148
|
+
setTimeout(() => answer(take(ids)), HOST_APPLIES_MS);
|
|
149
|
+
};
|
|
150
|
+
// --- The gate
|
|
151
|
+
// A tile never moves what the pointer is over, and never slides itself
|
|
152
|
+
// under it.
|
|
153
|
+
//
|
|
154
|
+
// - A change of height moves everything below the frame's shorter edge
|
|
155
|
+
// (the old one for a growth, the new one for a shrink). While a mouse is
|
|
156
|
+
// there, or may be, the change waits, and is made once the mouse is
|
|
157
|
+
// somewhere it does not move. A mouse inside the frame may be in the
|
|
158
|
+
// strip a shrink gives up, so a shrink waits for it to leave; a growth
|
|
159
|
+
// does not move it, and goes ahead.
|
|
160
|
+
// - The strip a growth gains is the tile arriving where the page was: it
|
|
161
|
+
// takes no press for a moment, so that one that was on its way to the
|
|
162
|
+
// page does not land in the tile.
|
|
163
|
+
// - A finger gives no warning. For a user without a pointer that hovers
|
|
164
|
+
// the change is made, and everything from the moved edge down takes no
|
|
165
|
+
// press for a moment; the strip a shrink gave up, where the tile may
|
|
166
|
+
// have had its user tapping, until it has taken one tap (or `stickyMs`).
|
|
167
|
+
// Where a screen takes fingers as well as a mouse, what a change moved
|
|
168
|
+
// takes no press for a moment wherever the mouse is: the finger that
|
|
169
|
+
// taps in the tile is never seen.
|
|
170
|
+
// - A change of width may move the frame's whole row: it is treated as a
|
|
171
|
+
// change from the frame's top edge down.
|
|
172
|
+
// - At most one change per `intervalMs`, and a budget of them: `burst` to
|
|
173
|
+
// start with, one more every `refillMs`.
|
|
174
|
+
//
|
|
175
|
+
// What the context decides itself (its limits, a size it asks for) is not
|
|
176
|
+
// the tile's to time, and is done at once.
|
|
177
|
+
const doc = frame.ownerDocument;
|
|
178
|
+
const win = doc?.defaultView;
|
|
179
|
+
const gate = options.apply !== false && win ? withDefaults(SIZE_GATE, options.gate) : undefined;
|
|
180
|
+
const pointer = gate ? watchPointer(doc) : undefined;
|
|
181
|
+
// The one move that is before the gate, and the wishes it would put in force.
|
|
182
|
+
let pending;
|
|
183
|
+
const asked = []; // the requests that wait to hear what comes of it
|
|
184
|
+
let deciding = false; // it has not been made or held yet: what is asked meanwhile is gathered
|
|
185
|
+
let queued = false; // and something was
|
|
186
|
+
let considering;
|
|
187
|
+
let retry;
|
|
188
|
+
let retryAt = 0;
|
|
189
|
+
let tokens = gate?.burst ?? 0;
|
|
190
|
+
let refilled = now();
|
|
191
|
+
let lastMove = -Infinity;
|
|
192
|
+
const shields = new Set();
|
|
193
|
+
const rect = () => frame.getBoundingClientRect();
|
|
194
|
+
// Whether the pointer, where the page last saw it, is on what moves when
|
|
195
|
+
// the frame's box changes from `edge` (a client y) down.
|
|
196
|
+
const inZone = (edge, g) => {
|
|
197
|
+
const p = pointer.state;
|
|
198
|
+
const c = options.column?.getBoundingClientRect?.();
|
|
199
|
+
const [left, right] = c ? [c.left, c.right] : [-Infinity, Infinity];
|
|
200
|
+
const other = pointer.frame;
|
|
201
|
+
if (p.kind === 'frame' && other && other !== frame) {
|
|
202
|
+
// Somewhere inside another frame: on what moves if any of that frame is.
|
|
203
|
+
const r = other.getBoundingClientRect();
|
|
204
|
+
return r.bottom >= edge - g.margin && r.right >= left && r.left <= right;
|
|
205
|
+
}
|
|
206
|
+
return p.y >= edge - g.margin && p.x >= left && p.x <= right;
|
|
207
|
+
};
|
|
208
|
+
const cover = (g, area, sticky = false) => {
|
|
209
|
+
const s = shield(doc, area, { ms: g.shieldMs, dwellMs: g.dwellMs, maxMs: g.stickyMs, sticky, follow: frame });
|
|
210
|
+
shields.add(s);
|
|
211
|
+
for (const old of shields)
|
|
212
|
+
if (old.gone)
|
|
213
|
+
shields.delete(old);
|
|
214
|
+
};
|
|
215
|
+
// Looks at the move again in `ms`, or sooner if that was already the plan.
|
|
216
|
+
const later = (ms) => {
|
|
217
|
+
if (stopped)
|
|
218
|
+
return;
|
|
219
|
+
const at = now() + ms;
|
|
220
|
+
if (retry && retryAt <= at)
|
|
221
|
+
return;
|
|
222
|
+
if (retry)
|
|
223
|
+
clearTimeout(retry);
|
|
224
|
+
retryAt = at;
|
|
225
|
+
retry = setTimeout(() => { retry = undefined; consider(); }, ms);
|
|
226
|
+
};
|
|
227
|
+
// The move before the gate has its answer, for now: made, or held. What
|
|
228
|
+
// was asked while it had none gets its turn.
|
|
229
|
+
const decided = () => {
|
|
230
|
+
if (!deciding)
|
|
231
|
+
return;
|
|
232
|
+
deciding = false;
|
|
233
|
+
if (queued) {
|
|
234
|
+
queued = false;
|
|
235
|
+
move();
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
// Held: its requests hear the size the tile still has, and the move stays
|
|
239
|
+
// before the gate.
|
|
240
|
+
const hold = () => {
|
|
241
|
+
answer(asked.splice(0));
|
|
242
|
+
decided();
|
|
243
|
+
};
|
|
244
|
+
function attempt() {
|
|
245
|
+
const g = gate;
|
|
246
|
+
if (stopped || !pending || !g)
|
|
247
|
+
return;
|
|
248
|
+
const from = box() ?? current;
|
|
249
|
+
const to = pending.size;
|
|
250
|
+
const t = now();
|
|
251
|
+
if (same(from, to)) {
|
|
252
|
+
granted = pending.want;
|
|
253
|
+
pending = undefined;
|
|
254
|
+
current = from;
|
|
255
|
+
made(asked.splice(0));
|
|
256
|
+
return decided();
|
|
257
|
+
}
|
|
258
|
+
const earned = Math.floor((t - refilled) / g.refillMs);
|
|
259
|
+
if (earned > 0) {
|
|
260
|
+
tokens = Math.min(g.burst, tokens + earned);
|
|
261
|
+
refilled += earned * g.refillMs;
|
|
262
|
+
}
|
|
263
|
+
if (t - lastMove < g.intervalMs)
|
|
264
|
+
return later(g.intervalMs - (t - lastMove));
|
|
265
|
+
if (tokens < 1) {
|
|
266
|
+
hold();
|
|
267
|
+
return later(g.refillMs - (t - refilled) + 5);
|
|
268
|
+
}
|
|
269
|
+
const gains = to.height > from.height || (tileWidth && to.width > from.width);
|
|
270
|
+
const loses = to.height < from.height || (tileWidth && to.width < from.width);
|
|
271
|
+
// How far down the frame nothing changes.
|
|
272
|
+
const low = tileWidth && to.width !== from.width ? 0 : Math.min(from.height, to.height);
|
|
273
|
+
const p = pointer.state;
|
|
274
|
+
// What takes no press for a moment once the change is made: the strip the
|
|
275
|
+
// tile gains, or everything from the moved edge down.
|
|
276
|
+
let guard;
|
|
277
|
+
let sticky = false;
|
|
278
|
+
if (!pointer.hovers || p.kind === 'none') {
|
|
279
|
+
// A finger: no warning, and the tile may have had it tapping.
|
|
280
|
+
guard = 'below';
|
|
281
|
+
sticky = true;
|
|
282
|
+
}
|
|
283
|
+
else if (p.kind === 'unknown')
|
|
284
|
+
guard = 'below'; // a mouse that has not moved since the page loaded: nothing to wait for
|
|
285
|
+
else if (p.kind !== 'away' && (pointer.inside(frame) ? loses : inZone(rect().top + low, g))) {
|
|
286
|
+
hold();
|
|
287
|
+
// And again when the pointer moves on (see `onPointer`). A frame that
|
|
288
|
+
// is out of the document has nothing left to move.
|
|
289
|
+
if (frame.isConnected)
|
|
290
|
+
later(g.retryMs);
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
// The mouse is where the change moves nothing. On a screen that takes
|
|
294
|
+
// fingers as well, one may be on its way into the tile all the same,
|
|
295
|
+
// and the page will not be told.
|
|
296
|
+
else if (pointer.fingers)
|
|
297
|
+
guard = 'below';
|
|
298
|
+
else if (gains)
|
|
299
|
+
guard = 'strip';
|
|
300
|
+
tokens--;
|
|
301
|
+
lastMove = t;
|
|
302
|
+
granted = pending.want;
|
|
303
|
+
pending = undefined;
|
|
304
|
+
put(to);
|
|
305
|
+
if (guard === 'strip') {
|
|
306
|
+
cover(g, () => { const b = rect(); return { left: b.left, top: b.top + low, width: b.width, height: b.height - low }; });
|
|
307
|
+
}
|
|
308
|
+
else if (guard === 'below') {
|
|
309
|
+
cover(g, () => { const y = Math.max(0, rect().top + low); return { left: 0, top: y, width: win.innerWidth, height: win.innerHeight - y }; });
|
|
310
|
+
// The strip the tile gave up is where it had its user tapping: the page
|
|
311
|
+
// that slides into it takes no tap until one has been swallowed there.
|
|
312
|
+
if (sticky && loses) {
|
|
313
|
+
cover(g, () => {
|
|
314
|
+
const b = rect();
|
|
315
|
+
return low ? { left: b.left, top: b.top + to.height, width: b.width, height: from.height - to.height } : { left: 0, top: b.top, width: win.innerWidth, height: Math.max(from.height, to.height) };
|
|
316
|
+
}, true);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
made(asked.splice(0));
|
|
320
|
+
decided();
|
|
321
|
+
}
|
|
322
|
+
// Pointer moves reach the page aligned to its frames, while a tile's request
|
|
323
|
+
// is an ordinary message: it can get here before the page has been told
|
|
324
|
+
// that the pointer came in over the tile, or left it. So nothing is decided
|
|
325
|
+
// on the spot, but once the next frame's input has been dispatched.
|
|
326
|
+
const consider = () => {
|
|
327
|
+
if (considering || stopped || !pending || !gate || !win)
|
|
328
|
+
return;
|
|
329
|
+
const mine = considering = {};
|
|
330
|
+
const run = () => {
|
|
331
|
+
if (considering !== mine)
|
|
332
|
+
return;
|
|
333
|
+
considering = undefined;
|
|
334
|
+
attempt();
|
|
335
|
+
};
|
|
336
|
+
if (typeof win.requestAnimationFrame === 'function')
|
|
337
|
+
win.requestAnimationFrame(() => win.requestAnimationFrame(run));
|
|
338
|
+
setTimeout(run, gate.decideMs); // a page that is not drawing still decides
|
|
339
|
+
};
|
|
340
|
+
// A change that is held is made as soon as the pointer is somewhere it
|
|
341
|
+
// does not move.
|
|
342
|
+
const onPointer = () => { if (pending)
|
|
343
|
+
consider(); };
|
|
344
|
+
const offPointer = pointer?.onChange(onPointer);
|
|
345
|
+
// What the context decides is done at once. Only the wishes already in
|
|
346
|
+
// force are settled with it: what the tile has asked for since waits its
|
|
347
|
+
// turn at the gate.
|
|
348
|
+
const enforce = () => {
|
|
349
|
+
if (!gate || stopped)
|
|
350
|
+
return;
|
|
351
|
+
const size = settle(granted);
|
|
352
|
+
if (pending)
|
|
353
|
+
pending.size = settle(pending.want);
|
|
354
|
+
if (same(size, box() ?? current))
|
|
355
|
+
return;
|
|
356
|
+
put(size);
|
|
357
|
+
made([]);
|
|
358
|
+
};
|
|
99
359
|
// At most one move per SETTLE_MS: the first at once, the rest together. The
|
|
100
360
|
// requests gathered into one move are applied as one (for each dimension the
|
|
101
361
|
// last value asked for, which is what `wish` holds), and every one of them
|
|
102
362
|
// is answered, by its own id, with the size that came of it: no request is
|
|
103
|
-
// left waiting because a later one overtook it.
|
|
363
|
+
// left waiting because a later one overtook it. "At once" is as soon as the
|
|
364
|
+
// gate has decided; what is asked before it has is gathered too.
|
|
104
365
|
const move = () => {
|
|
105
366
|
const go = () => {
|
|
106
367
|
timer = undefined;
|
|
107
368
|
lastApplied = Date.now();
|
|
108
|
-
put(settle());
|
|
109
369
|
const ids = waiting.splice(0);
|
|
110
|
-
if (
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
370
|
+
if (!gate) {
|
|
371
|
+
put(settle());
|
|
372
|
+
return made(ids);
|
|
373
|
+
}
|
|
374
|
+
pending = { size: settle(), want: { ...wish } };
|
|
375
|
+
asked.push(...ids);
|
|
376
|
+
deciding = true;
|
|
377
|
+
// The wait starts with this request, whatever was under way for the
|
|
378
|
+
// move it replaces.
|
|
379
|
+
considering = undefined;
|
|
380
|
+
if (retry)
|
|
381
|
+
clearTimeout(retry);
|
|
382
|
+
retry = undefined;
|
|
383
|
+
consider();
|
|
116
384
|
};
|
|
117
385
|
if (timer || stopped)
|
|
118
386
|
return;
|
|
387
|
+
if (deciding) {
|
|
388
|
+
queued = true;
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
119
391
|
const since = Date.now() - lastApplied;
|
|
120
392
|
if (since >= SETTLE_MS)
|
|
121
393
|
go();
|
|
@@ -158,11 +430,16 @@ export function tileSize(tile, frame, options = {}) {
|
|
|
158
430
|
get limits() { return effectiveLimits(limits); },
|
|
159
431
|
setLimits(next) {
|
|
160
432
|
limits = next ?? {};
|
|
433
|
+
enforce();
|
|
161
434
|
move();
|
|
162
435
|
},
|
|
163
436
|
request(want) {
|
|
164
437
|
Object.assign(wish, want);
|
|
438
|
+
Object.assign(granted, want);
|
|
439
|
+
if (pending)
|
|
440
|
+
Object.assign(pending.want, want);
|
|
165
441
|
const resolved = settle();
|
|
442
|
+
enforce();
|
|
166
443
|
move();
|
|
167
444
|
return resolved;
|
|
168
445
|
},
|
|
@@ -170,8 +447,12 @@ export function tileSize(tile, frame, options = {}) {
|
|
|
170
447
|
stopped = true;
|
|
171
448
|
tile.removeEventListener('protocol', onProtocol);
|
|
172
449
|
observer?.disconnect();
|
|
450
|
+
offPointer?.();
|
|
173
451
|
if (timer)
|
|
174
452
|
clearTimeout(timer);
|
|
453
|
+
if (retry)
|
|
454
|
+
clearTimeout(retry);
|
|
455
|
+
shields.forEach(s => s.remove());
|
|
175
456
|
},
|
|
176
457
|
};
|
|
177
458
|
}
|
package/dist/size.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"size.js","sourceRoot":"","sources":["../src/size.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,mEAAmE;AACnE,EAAE;AACF,uDAAuD;AACvD,wCAAwC;AACxC,0EAA0E;AAC1E,EAAE;AACF,wEAAwE;AACxE,4EAA4E;AAC5E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gBAAE,YAAY,CAAC,KAAK,CAAC,CAAC;YAC/B,IAAI,KAAK;gBAAE,YAAY,CAAC,KAAK,CAAC,CAAC;YAC/B,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACnC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dasl/tile-loader",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.2.0",
|
|
5
5
|
"description": "Browser architecture for safely loading DASL tiles (mothership, shuttle, worker)",
|
|
6
6
|
"author": "Robin Berjon <robin@berjon.com>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -41,11 +41,21 @@
|
|
|
41
41
|
"import": "./dist/link.js",
|
|
42
42
|
"default": "./dist/link.js"
|
|
43
43
|
},
|
|
44
|
+
"./guard": {
|
|
45
|
+
"types": "./dist/guard.d.ts",
|
|
46
|
+
"import": "./dist/guard.js",
|
|
47
|
+
"default": "./dist/guard.js"
|
|
48
|
+
},
|
|
44
49
|
"./memory": {
|
|
45
50
|
"types": "./dist/memory.d.ts",
|
|
46
51
|
"import": "./dist/memory.js",
|
|
47
52
|
"default": "./dist/memory.js"
|
|
48
53
|
},
|
|
54
|
+
"./mount": {
|
|
55
|
+
"types": "./dist/mount.d.ts",
|
|
56
|
+
"import": "./dist/mount.js",
|
|
57
|
+
"default": "./dist/mount.js"
|
|
58
|
+
},
|
|
49
59
|
"./content-scheme": {
|
|
50
60
|
"types": "./dist/content-scheme.d.ts",
|
|
51
61
|
"import": "./dist/content-scheme.js",
|
|
@@ -77,9 +87,9 @@
|
|
|
77
87
|
"mocha": "^11.7.6"
|
|
78
88
|
},
|
|
79
89
|
"dependencies": {
|
|
80
|
-
"@atcute/car": "^6.
|
|
90
|
+
"@atcute/car": "^6.1.1",
|
|
81
91
|
"@atcute/cid": "^2.4.1",
|
|
82
|
-
"@dasl/tile-lexicon": "^3.
|
|
92
|
+
"@dasl/tile-lexicon": "^3.2.0",
|
|
83
93
|
"jszip": "^3.10.1",
|
|
84
94
|
"mime": "^4.1.0",
|
|
85
95
|
"smol-toml": "^1.6.1"
|