demoman 0.7.0 → 0.7.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.
@@ -884,15 +884,28 @@
884
884
  // Vue scoped styles
885
885
  /^_ngcontent-/i,
886
886
  // Angular
887
- /^:r[0-9a-z]*:$/i,
888
- // React useId
887
+ // React useId — 18 `:r1:`, 19.0 `«r1»`, 19.1 `_r_1_` — anywhere, since
888
+ // libraries wrap it (react-aria: `react-aria544548995-_r_2_`).
889
+ /:r[0-9a-z]*:|«r[0-9a-z]*»|(?:^|[^a-z0-9])_r_[0-9a-z]+_/i,
889
890
  // A bare hash: hex, and mixed — pure digits are a plausible authored id.
890
891
  /^(?=[a-f0-9]*[0-9])(?=[a-f0-9]*[a-f])[a-f0-9]{8,}$/i
891
892
  ];
892
893
  function isAuthoredIdentifier(value) {
893
894
  if (value.length === 0)
894
895
  return false;
895
- return !GENERATED.some((re) => re.test(value));
896
+ return !GENERATED.some((re) => re.test(value)) && !isGuidLike(value);
897
+ }
898
+ function isGuidLike(value) {
899
+ const kinds = Array.from(value).filter((c) => c !== "-" && c !== "_").map((c) => /[a-z]/.test(c) ? "lower" : /[A-Z]/.test(c) ? "upper" : /[0-9]/.test(c) ? "digit" : "other");
900
+ if (kinds.length < 16)
901
+ return false;
902
+ const switched = kinds.map((k, i) => i > 0 && k !== kinds[i - 1] && !(kinds[i - 1] === "upper" && k === "lower"));
903
+ for (let i = 0; i + 21 <= Math.max(kinds.length, 21); i++) {
904
+ const inWindow = switched.slice(i + 1, i + 21).filter(Boolean).length;
905
+ if (inWindow >= 5)
906
+ return true;
907
+ }
908
+ return false;
896
909
  }
897
910
  function readStableId(el) {
898
911
  for (const attr of STABLE_ID_ATTRS) {
@@ -15362,7 +15362,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15362
15362
  type: { cursorTravels: true, approach: "nearest" },
15363
15363
  moveTo: { cursorTravels: true, approach: "nearest" },
15364
15364
  scrollTo: { cursorTravels: false, approach: "landing" },
15365
- waitFor: { cursorTravels: false, approach: "none" }
15365
+ waitFor: { cursorTravels: false, approach: "none" },
15366
+ drag: { cursorTravels: true, approach: "nearest" }
15366
15367
  };
15367
15368
 
15368
15369
  // ../../packages/compositor/dist/bundle.js
@@ -15405,7 +15406,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15405
15406
  var AnchorRectSchema = external_exports.object({
15406
15407
  actionId: external_exports.string().min(1),
15407
15408
  anchorId: external_exports.string().min(1),
15408
- rect: RectSchema
15409
+ rect: RectSchema,
15410
+ /** A drag's end, measured with its start; absent for every other verb. */
15411
+ end: RectSchema.optional()
15412
+ });
15413
+ var HeldPressSchema = external_exports.object({
15414
+ actionId: external_exports.string().min(1),
15415
+ pressMs: external_exports.number().nonnegative(),
15416
+ releaseMs: external_exports.number().nonnegative()
15409
15417
  });
15410
15418
  var ViewportTransformSchema = external_exports.object({
15411
15419
  sourceTimeMs: external_exports.number().nonnegative(),
@@ -15448,7 +15456,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15448
15456
  /** The typed text; null for every verb that types nothing, and for a
15449
15457
  * redacted field whose value was never recorded. */
15450
15458
  text: external_exports.string().nullable(),
15451
- cut: external_exports.boolean()
15459
+ cut: external_exports.boolean().optional()
15452
15460
  });
15453
15461
  var DegradationSchema = external_exports.object({
15454
15462
  startMs: external_exports.number().nonnegative(),
@@ -15523,7 +15531,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15523
15531
  // `buildLaneModel` turns a nonzero count into a capture-lane clip and a
15524
15532
  // lane-label chip under this name. Named here so the two surfaces share
15525
15533
  // one word for one condition.
15526
- "pacingUnplaced"
15534
+ "pacingUnplaced",
15535
+ // A drag whose press and release both arrived and that changed nothing
15536
+ // on screen: no native drag began and the pixels between its ends were
15537
+ // the same after as before. The page ignored it, so the step is listed
15538
+ // as diverged rather than read as done (2026-10-21).
15539
+ "notDragged",
15540
+ // A native drag's picture could not be drawn in the page (the element
15541
+ // the page named for it was gone, or copying it threw). The drag still
15542
+ // ran; the film shows the card jump to its drop instead of travelling.
15543
+ "dragPictureMissing"
15527
15544
  ]),
15528
15545
  note: external_exports.string()
15529
15546
  });
@@ -15579,6 +15596,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15579
15596
  // written without this field, and they are all still readable.
15580
15597
  cursorGaps: external_exports.array(CursorGapSchema).default([]),
15581
15598
  anchorRects: external_exports.array(AnchorRectSchema),
15599
+ // Optional, and absent is none: only a run with a drag writes any.
15600
+ heldPresses: external_exports.array(HeldPressSchema).optional(),
15582
15601
  // Optional, and absent is identity: every bundle written before
15583
15602
  // 2026-10-11 carries none, and identity is what they were drawn as.
15584
15603
  // See `ViewportTransformSchema`.
@@ -15729,7 +15748,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15729
15748
  });
15730
15749
 
15731
15750
  // ../../packages/scene-schema/dist/document.js
15732
- var CURRENT_SCHEMA_VERSION = 10;
15751
+ var CURRENT_SCHEMA_VERSION = 12;
15733
15752
  var Rect = external_exports.object({
15734
15753
  x: external_exports.number(),
15735
15754
  y: external_exports.number(),
@@ -15900,17 +15919,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15900
15919
  kind: external_exports.literal("waitFor"),
15901
15920
  condition: external_exports.enum(["visible", "hidden", "loaded"]).optional()
15902
15921
  });
15922
+ var Spot = external_exports.object({
15923
+ x: external_exports.number().min(0).max(1),
15924
+ y: external_exports.number().min(0).max(1)
15925
+ });
15926
+ var Drag = external_exports.object({
15927
+ ...actionBase,
15928
+ kind: external_exports.literal("drag"),
15929
+ /** Null when the end was an offset, which names no element. */
15930
+ toAnchorId: external_exports.string().min(1).nullable(),
15931
+ toRect: Rect.optional(),
15932
+ fromAt: Spot.optional(),
15933
+ /** Where it pressed when the walk chose the spot itself — a native
15934
+ * range's thumb, where a press at the centre would jump its value — as a
15935
+ * spot in `rect`. Absent: `fromAt`, else the centre. Never written back
15936
+ * into a script: a re-run reads the thumb afresh. */
15937
+ pressedAt: Spot.optional(),
15938
+ to: external_exports.union([
15939
+ external_exports.object({ at: Spot.optional() }).strict(),
15940
+ external_exports.object({ by: external_exports.object({ x: external_exports.number(), y: external_exports.number() }) }).strict()
15941
+ ])
15942
+ });
15903
15943
  var Action = external_exports.discriminatedUnion("kind", [
15904
15944
  MoveTo,
15905
15945
  Click,
15906
15946
  TypeAction,
15907
15947
  ScrollTo,
15908
- WaitFor
15948
+ WaitFor,
15949
+ Drag
15909
15950
  ]);
15910
15951
  var MarkerSchema2 = external_exports.object({
15911
15952
  actionId: external_exports.string().min(1),
15912
15953
  offsetMs: external_exports.number()
15913
15954
  });
15955
+ var SourcePointSchema = external_exports.object({
15956
+ actionId: external_exports.string().min(1),
15957
+ sourceOffsetMs: external_exports.number()
15958
+ });
15914
15959
  var Point = external_exports.object({ x: external_exports.number(), y: external_exports.number() });
15915
15960
  var CameraEvent = external_exports.object({
15916
15961
  id: external_exports.string().min(1),
@@ -15947,12 +15992,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15947
15992
  named.push(["afterActionId", skip.afterActionId]);
15948
15993
  return named;
15949
15994
  }
15950
- var Replacement = external_exports.object({
15951
- id: external_exports.string().min(1),
15952
- targetAnchorId: external_exports.string().min(1).nullable(),
15953
- find: external_exports.string().nullable(),
15954
- replace: external_exports.string()
15955
- });
15956
15995
  var Mask = external_exports.object({
15957
15996
  id: external_exports.string().min(1),
15958
15997
  rect: Rect,
@@ -15972,12 +16011,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15972
16011
  afterActionId: external_exports.string().min(1),
15973
16012
  durationMs: external_exports.number().nonnegative()
15974
16013
  });
15975
- var Cut = external_exports.object({
15976
- id: external_exports.string().min(1),
15977
- actionId: external_exports.string().min(1),
15978
- /** The author chose to keep a jump rather than have export rebuild it. */
15979
- keepJump: external_exports.literal(true).optional()
15980
- });
15981
16014
  var NetworkEntry = external_exports.object({
15982
16015
  id: external_exports.string().min(1),
15983
16016
  method: external_exports.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]),
@@ -16187,11 +16220,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16187
16220
  /** See `ZoomSkipped`. */
16188
16221
  zoomsSkipped: external_exports.array(ZoomSkipped).optional(),
16189
16222
  edits: external_exports.object({
16190
- replacements: external_exports.array(Replacement),
16191
16223
  masks: external_exports.array(Mask),
16192
16224
  holds: external_exports.array(Hold),
16193
16225
  gaps: external_exports.array(Gap).default([]),
16194
- cuts: external_exports.array(Cut).default([]),
16226
+ /** Where the author split the clip. A split alone removes nothing. */
16227
+ splits: external_exports.array(external_exports.object({ id: external_exports.string().min(1), at: SourcePointSchema })).default([]),
16228
+ /**
16229
+ * Stretches of the frames the author removed. A null side is that end
16230
+ * of the take. Its edits stay in the document; what it removes is
16231
+ * resolved against the frames by the compositor.
16232
+ */
16233
+ removed: external_exports.array(external_exports.object({
16234
+ id: external_exports.string().min(1),
16235
+ start: SourcePointSchema.nullable(),
16236
+ end: SourcePointSchema.nullable()
16237
+ })).default([]),
16195
16238
  /**
16196
16239
  * A cut on the OUTPUT axis, never on the action log: a step outside
16197
16240
  * the trim still exists and a Rebuild still performs it (that is what
@@ -16242,19 +16285,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16242
16285
  unique(doc.edits.holds, "hold", ["edits", "holds"]);
16243
16286
  unique(doc.edits.gaps, "gap", ["edits", "gaps"]);
16244
16287
  unique(doc.edits.gaps.map((g) => ({ id: g.afterActionId })), "gap for an action", ["edits", "gaps"]);
16245
- unique(doc.edits.cuts, "cut", ["edits", "cuts"]);
16246
- unique(doc.edits.cuts.map((c) => ({ id: c.actionId })), "cut for an action", ["edits", "cuts"]);
16288
+ unique(doc.edits.splits, "split", ["edits", "splits"]);
16289
+ unique(doc.edits.removed, "removed piece", ["edits", "removed"]);
16247
16290
  const anchorIds = new Set(doc.anchors.map((a) => a.id));
16248
16291
  const actionIds = new Set(doc.actions.map((a) => a.id));
16249
- doc.edits.cuts.forEach((c, i) => {
16250
- if (!actionIds.has(c.actionId)) {
16251
- ctx.addIssue({
16252
- code: "custom",
16253
- message: `unknown action "${c.actionId}"`,
16254
- path: ["edits", "cuts", i, "actionId"]
16255
- });
16256
- }
16257
- });
16258
16292
  doc.actions.forEach((a, i) => {
16259
16293
  if (a.anchorId !== null && !anchorIds.has(a.anchorId)) {
16260
16294
  ctx.addIssue({
@@ -16344,24 +16378,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16344
16378
  });
16345
16379
  }
16346
16380
  }
16347
- doc.edits.replacements.forEach((r, i) => {
16348
- if (r.targetAnchorId !== null && !anchorIds.has(r.targetAnchorId)) {
16381
+ doc.edits.holds.forEach((h, i) => {
16382
+ if (!actionIds.has(h.marker.actionId)) {
16349
16383
  ctx.addIssue({
16350
16384
  code: "custom",
16351
- message: `unknown anchor "${r.targetAnchorId}"`,
16352
- path: ["edits", "replacements", i, "targetAnchorId"]
16385
+ message: `unknown action "${h.marker.actionId}"`,
16386
+ path: ["edits", "holds", i, "marker", "actionId"]
16353
16387
  });
16354
16388
  }
16355
16389
  });
16356
- doc.edits.holds.forEach((h, i) => {
16357
- if (!actionIds.has(h.marker.actionId)) {
16390
+ (doc.edits.splits ?? []).forEach((split, i) => {
16391
+ if (!actionIds.has(split.at.actionId)) {
16358
16392
  ctx.addIssue({
16359
16393
  code: "custom",
16360
- message: `unknown action "${h.marker.actionId}"`,
16361
- path: ["edits", "holds", i, "marker", "actionId"]
16394
+ message: `unknown action "${split.at.actionId}"`,
16395
+ path: ["edits", "splits", i, "at", "actionId"]
16362
16396
  });
16363
16397
  }
16364
16398
  });
16399
+ (doc.edits.removed ?? []).forEach((range, i) => {
16400
+ for (const side of ["start", "end"]) {
16401
+ const point = range[side];
16402
+ if (point !== null && !actionIds.has(point.actionId)) {
16403
+ ctx.addIssue({
16404
+ code: "custom",
16405
+ message: `unknown action "${point.actionId}"`,
16406
+ path: ["edits", "removed", i, side, "actionId"]
16407
+ });
16408
+ }
16409
+ }
16410
+ });
16365
16411
  doc.edits.gaps.forEach((g, i) => {
16366
16412
  if (!actionIds.has(g.afterActionId)) {
16367
16413
  ctx.addIssue({
@@ -16379,6 +16425,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16379
16425
  var SCRIPT_VERSION_MOTION = 3;
16380
16426
  var SCRIPT_VERSION_DEVICE = 4;
16381
16427
  var SCRIPT_VERSION_ACCOUNT = 5;
16428
+ var SCRIPT_VERSION_DRAG = 6;
16382
16429
  var ACCOUNT_NAME = /^[a-z0-9][a-z0-9_-]{0,63}$/;
16383
16430
  var ACCOUNT_NAME_RULE = 'lower-case letters, digits, "-" and "_", starting with a letter or digit, at most 64 characters';
16384
16431
  var ScriptTargetSchema = external_exports.union([
@@ -16388,6 +16435,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16388
16435
  external_exports.object({ treePath: external_exports.string().min(1) }).strict()
16389
16436
  ]);
16390
16437
  var RecordedSchema = external_exports.string().min(1).optional();
16438
+ var DragSpotSchema = external_exports.object({ x: external_exports.number().min(0).max(1), y: external_exports.number().min(0).max(1) }).strict();
16439
+ var DragFromSchema = external_exports.object({ on: ScriptTargetSchema, at: DragSpotSchema.optional() }).strict();
16440
+ var DragToSchema = external_exports.union([
16441
+ DragFromSchema,
16442
+ external_exports.object({
16443
+ by: external_exports.object({ x: external_exports.number().finite(), y: external_exports.number().finite() }).strict()
16444
+ }).strict()
16445
+ ]);
16391
16446
  var ScriptStepSchema = external_exports.discriminatedUnion("do", [
16392
16447
  external_exports.object({
16393
16448
  do: external_exports.literal("click"),
@@ -16438,6 +16493,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16438
16493
  until: external_exports.enum(["visible", "hidden"]),
16439
16494
  recorded: RecordedSchema
16440
16495
  }).strict(),
16496
+ external_exports.object({
16497
+ do: external_exports.literal("drag"),
16498
+ from: DragFromSchema,
16499
+ to: DragToSchema,
16500
+ recorded: RecordedSchema
16501
+ }).strict(),
16441
16502
  external_exports.object({ do: external_exports.literal("waitForLoad"), recorded: RecordedSchema }).strict(),
16442
16503
  external_exports.object({ do: external_exports.literal("pause"), ms: external_exports.number().positive() }).strict()
16443
16504
  ]);
@@ -16447,6 +16508,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16447
16508
  hover: true,
16448
16509
  scrollTo: true,
16449
16510
  waitFor: true,
16511
+ drag: true,
16450
16512
  waitForLoad: true,
16451
16513
  pause: false
16452
16514
  };
@@ -16459,7 +16521,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16459
16521
  SCRIPT_VERSION_KIT,
16460
16522
  SCRIPT_VERSION_MOTION,
16461
16523
  SCRIPT_VERSION_DEVICE,
16462
- SCRIPT_VERSION_ACCOUNT
16524
+ SCRIPT_VERSION_ACCOUNT,
16525
+ SCRIPT_VERSION_DRAG
16463
16526
  ]),
16464
16527
  name: external_exports.string().min(1),
16465
16528
  target: external_exports.url(),
@@ -16535,17 +16598,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16535
16598
  if (script.device !== void 0 && script.scriptVersion < SCRIPT_VERSION_DEVICE) {
16536
16599
  ctx.addIssue({
16537
16600
  code: "custom",
16538
- message: `a script that names device declares scriptVersion ${SCRIPT_VERSION_DEVICE}: a build from before devices would drop it and film the desktop`,
16601
+ message: `a script that names device declares scriptVersion ${SCRIPT_VERSION_DEVICE}: a build from before devices would drop it and record the desktop`,
16539
16602
  path: ["scriptVersion"]
16540
16603
  });
16541
16604
  }
16542
16605
  if (script.account !== void 0 && script.scriptVersion < SCRIPT_VERSION_ACCOUNT) {
16543
16606
  ctx.addIssue({
16544
16607
  code: "custom",
16545
- message: `a script that names account declares scriptVersion ${SCRIPT_VERSION_ACCOUNT}: a build from before accounts would drop it and film as whoever is signed in`,
16608
+ message: `a script that names account declares scriptVersion ${SCRIPT_VERSION_ACCOUNT}: a build from before accounts would drop it and record as whoever is signed in`,
16546
16609
  path: ["scriptVersion"]
16547
16610
  });
16548
16611
  }
16612
+ script.steps.forEach((step, index) => {
16613
+ if (step.do !== "drag")
16614
+ return;
16615
+ if (script.scriptVersion < SCRIPT_VERSION_DRAG) {
16616
+ ctx.addIssue({
16617
+ code: "custom",
16618
+ message: `a script that uses drag declares scriptVersion ${SCRIPT_VERSION_DRAG}: a build from before drag would refuse the step`,
16619
+ path: ["scriptVersion"]
16620
+ });
16621
+ }
16622
+ const nowhere = "by" in step.to ? step.to.by.x === 0 && step.to.by.y === 0 : JSON.stringify(step.to.on) === JSON.stringify(step.from.on) && (step.to.at?.x ?? 0.5) === (step.from.at?.x ?? 0.5) && (step.to.at?.y ?? 0.5) === (step.from.at?.y ?? 0.5);
16623
+ if (nowhere) {
16624
+ ctx.addIssue({
16625
+ code: "custom",
16626
+ message: `step ${index + 1} is a drag that starts and ends at the same point: give \`to\` another target, spot or offset, or make it a click`,
16627
+ path: ["steps", index, "to"]
16628
+ });
16629
+ }
16630
+ });
16549
16631
  script.steps.forEach((step, index) => {
16550
16632
  if (step.do !== "type" || !/\{secret:/.test(step.text))
16551
16633
  return;
@@ -16594,7 +16676,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16594
16676
  stiffness: lerp(8, 5.5, smoothness),
16595
16677
  zoomInMs: lerp(1e3, 1600, smoothness),
16596
16678
  zoomOutMs: lerp(700, 1150, smoothness),
16597
- followPanMs: lerp(500, 900, smoothness)
16679
+ followRatePerS: lerp(13, 7, smoothness)
16598
16680
  };
16599
16681
  }
16600
16682
  var DEFAULT_TIMINGS = motionTimings(MOTION_DEFAULTS.smoothness);
@@ -16685,42 +16767,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16685
16767
  }
16686
16768
  };
16687
16769
 
16688
- // ../../packages/compositor/dist/render/draw-cursor.js
16689
- var CURSOR_UPRIGHT = Object.freeze({
16690
- press: 1,
16691
- angleRad: 0
16692
- });
16693
- var ARROW = [
16694
- { x: 0, y: 0 },
16695
- { x: 0, y: 0.75 },
16696
- { x: 0.19, y: 0.58 },
16697
- { x: 0.31, y: 0.87 },
16698
- { x: 0.45, y: 0.81 },
16699
- { x: 0.33, y: 0.53 },
16700
- { x: 0.56, y: 0.52 }
16701
- ];
16702
- var TOUCH_RADIUS = 0.42;
16703
- var CURSOR_ART = {
16704
- light: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
16705
- dark: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
16706
- touch: {
16707
- height: 40,
16708
- hotspot: { x: 0.5, y: 0.5 },
16709
- ink: {
16710
- min: { x: 0.5 - TOUCH_RADIUS, y: 0.5 - TOUCH_RADIUS },
16711
- max: { x: 0.5 + TOUCH_RADIUS, y: 0.5 + TOUCH_RADIUS }
16712
- }
16713
- }
16714
- };
16715
- function bounds(points) {
16716
- const xs = points.map((p) => p.x);
16717
- const ys = points.map((p) => p.y);
16718
- return {
16719
- min: { x: Math.min(...xs), y: Math.min(...ys) },
16720
- max: { x: Math.max(...xs), y: Math.max(...ys) }
16721
- };
16722
- }
16723
-
16724
16770
  // ../../node_modules/.pnpm/mediabunny@1.55.2/node_modules/mediabunny/dist/modules/src/misc.js
16725
16771
  function assert2(x) {
16726
16772
  if (!x) {
@@ -26499,6 +26545,42 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
26499
26545
  };
26500
26546
  }
26501
26547
 
26548
+ // ../../packages/compositor/dist/render/draw-cursor.js
26549
+ var CURSOR_UPRIGHT = Object.freeze({
26550
+ press: 1,
26551
+ angleRad: 0
26552
+ });
26553
+ var ARROW = [
26554
+ { x: 0, y: 0 },
26555
+ { x: 0, y: 0.75 },
26556
+ { x: 0.19, y: 0.58 },
26557
+ { x: 0.31, y: 0.87 },
26558
+ { x: 0.45, y: 0.81 },
26559
+ { x: 0.33, y: 0.53 },
26560
+ { x: 0.56, y: 0.52 }
26561
+ ];
26562
+ var TOUCH_RADIUS = 0.42;
26563
+ var CURSOR_ART = {
26564
+ light: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
26565
+ dark: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
26566
+ touch: {
26567
+ height: 40,
26568
+ hotspot: { x: 0.5, y: 0.5 },
26569
+ ink: {
26570
+ min: { x: 0.5 - TOUCH_RADIUS, y: 0.5 - TOUCH_RADIUS },
26571
+ max: { x: 0.5 + TOUCH_RADIUS, y: 0.5 + TOUCH_RADIUS }
26572
+ }
26573
+ }
26574
+ };
26575
+ function bounds(points) {
26576
+ const xs = points.map((p) => p.x);
26577
+ const ys = points.map((p) => p.y);
26578
+ return {
26579
+ min: { x: Math.min(...xs), y: Math.min(...ys) },
26580
+ max: { x: Math.max(...xs), y: Math.max(...ys) }
26581
+ };
26582
+ }
26583
+
26502
26584
  // ../../packages/compositor/dist/render/cursor-pose.js
26503
26585
  var TILT_MAX_RAD = 15 * Math.PI / 180;
26504
26586
  var TILT_VELOCITY_MS = 16;