@aiquants/spreadsheet 0.17.3 → 0.18.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.
@@ -59,6 +59,7 @@
59
59
  --_aqsp-reference-fill: var(--aqsp-reference-fill, rgb(22 163 74 / 0.08));
60
60
  --_aqsp-fill-preview: var(--aqsp-fill-preview, #16a24a);
61
61
  --_aqsp-divider-color: var(--aqsp-divider-color, #858e9d);
62
+ --_aqsp-frame-color: var(--aqsp-frame-color, #1f2937);
62
63
  --_aqsp-popover-shadow: var(--aqsp-popover-shadow, 0 1px 2px rgb(0 0 0 / 0.08), 0 8px 24px rgb(0 0 0 / 0.14));
63
64
  --_aqsp-note-tip-surface: var(--aqsp-note-tip-surface, #fffbeb);
64
65
  --_aqsp-note-tip-border: var(--aqsp-note-tip-border, #f59e0b);
@@ -369,6 +370,10 @@
369
370
  position: absolute;
370
371
  overflow: hidden;
371
372
  pointer-events: none;
373
+ /* 中の印はどれも左上を原点とする物理の px で置く。右から左のページでも、左右が過剰制約になった印 (象限の遠い端より先で始まり
374
+ 遠い端に付く外枠など) が left でなく right を捨てて象限の外に留まるよう、象限の向きを左から右に固める。象限は線と塗りだけを
375
+ 持ち、文字のシンクは象限の外にあるので、入力の向きは変わらない */
376
+ direction: ltr;
372
377
  }
373
378
 
374
379
  /*
@@ -387,6 +392,49 @@
387
392
  mix-blend-mode: multiply;
388
393
  }
389
394
 
395
+ /*
396
+ * 枠のある象限の帯の切り抜き (v0.18): 象限の最初の子で、層が描くセルの大きさ (layersFor の heal が書く)。帯の遠い側の片は層の
397
+ * 切り抜きで端を切る作りのため、表より広い箱では表の外まで延びる。帯の組をこの中に入れ、最後に描くセルで止める (fill より下)
398
+ */
399
+ .aqsp-band-clip {
400
+ position: absolute;
401
+ top: 0;
402
+ left: 0;
403
+ overflow: hidden;
404
+ pointer-events: none;
405
+ }
406
+
407
+ /*
408
+ * 範囲の外枠 (v0.18 の frame)。範囲のセルの外周のすぐ内側に描き (border-box)、セルの線と同じくズームの包みの中で倍率ごと縮む
409
+ * (焦点の印と凍結の分割線と違い、目印でなく表の絵の一部)。象限ごとに分割線の後・選んだセルの枠の前に置くので、分割線と帯の端を
410
+ * 覆い、焦点の印には覆われない。位置と大きさは placeFrame が書き、範囲が先へ続く辺 (別の象限・スクロールで外れた側) は
411
+ * data-aqsp-frame-open が開く。太さは分割線の太さと同じく別名を作らず、使う所で読む。既定の色は文字の既定と同じ墨で、
412
+ * 白とも見出しの地とも 3:1 を大きく超える (WCAG 1.4.11 — designTokens の試験が計算する)
413
+ */
414
+ .aqsp-frame {
415
+ position: absolute;
416
+ top: 0;
417
+ left: 0;
418
+ box-sizing: border-box;
419
+ border: var(--aqsp-frame-width, 2px) solid var(--_aqsp-frame-color);
420
+ }
421
+
422
+ .aqsp-frame[data-aqsp-frame-open~="top"] {
423
+ border-top-style: none;
424
+ }
425
+
426
+ .aqsp-frame[data-aqsp-frame-open~="right"] {
427
+ border-right-style: none;
428
+ }
429
+
430
+ .aqsp-frame[data-aqsp-frame-open~="bottom"] {
431
+ border-bottom-style: none;
432
+ }
433
+
434
+ .aqsp-frame[data-aqsp-frame-open~="left"] {
435
+ border-left-style: none;
436
+ }
437
+
390
438
  /*
391
439
  * 選んだセルの枠 (キーボードの焦点の見え方。WCAG 2.4.13): ズームの包みの中で倍率ごと縮むため、太さを倍率で割り、整数の px へ
392
440
  * 切り上げる。ブラウザは border の太さを整数の px へ切り捨てるので、割っただけでは 3 px を下回る段がある (2 倍で 1 px = 見た目 2 px)。