baiten3d 0.1.2 → 0.1.4

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.
@@ -4,6 +4,8 @@ export interface NewspaperClippingModalProps {
4
4
  readonly publication: ComposedPublication;
5
5
  readonly edition: ComposedEdition | null;
6
6
  readonly article: Article | null;
7
+ /** paginateBy: "h2" 等で分割されたページ片を表示している場合の全文記事(切替ボタン表示用) */
8
+ readonly fullArticle?: Article | null;
7
9
  readonly assetBase: string;
8
10
  readonly onClose: () => void;
9
11
  readonly onFigureClick: (event: MouseEvent<HTMLElement>, articleTitle: string) => void;
@@ -16,4 +18,4 @@ export interface NewspaperClippingModalProps {
16
18
  * 本物の新聞紙からハサミで切り抜いたようなギザギザ紙端と古紙テクスチャの上で
17
19
  * 最後まで快適に熟読できる。横組み/縦書き(正立英数字)をワンクリックで切替可能。
18
20
  */
19
- export declare function NewspaperClippingModal({ publication, edition, article, assetBase, onClose, onFigureClick, onFigureKeyDown, }: NewspaperClippingModalProps): JSX.Element | null;
21
+ export declare function NewspaperClippingModal({ publication, edition, article, fullArticle, assetBase, onClose, onFigureClick, onFigureKeyDown, }: NewspaperClippingModalProps): JSX.Element | null;
@@ -0,0 +1,34 @@
1
+ import { type JSX, type ReactNode } from "react";
2
+ export interface PageTurn3DOverlayProps {
3
+ /** 物理めくり方向: next = 左→右へめくる / prev = 右→左へめくる */
4
+ readonly direction: "next" | "prev";
5
+ /** 単面モード(モバイル)か見開き2面モード(PC)か */
6
+ readonly singlePage?: boolean;
7
+ /** モバイル単面時の進行方向: forward = 現在面がめくれ去る / backward = 前面がめくれ戻る */
8
+ readonly singlePageFlow?: "forward" | "backward";
9
+ /** 紙質プロファイル(新聞=古紙ベース・柔らかな陰影 / 雑誌=白上質紙・軽快な陰影) */
10
+ readonly surface?: "newsprint" | "magazine";
11
+ /** 紙地ベース色(静止紙面プレートの色味と揃える) */
12
+ readonly paperTint: string;
13
+ /** めくるシートの表面(実DOM) */
14
+ readonly frontContent: ReactNode;
15
+ /** めくるシートの裏面(実DOM。PC見開き時の着地側ページ) */
16
+ readonly backContent?: ReactNode;
17
+ /** めくり元ページのスクロール位置(雑誌の長文ページ内スクロールを引き継ぐ) */
18
+ readonly frontScrollTop?: number;
19
+ readonly frontScrollLeft?: number;
20
+ /** 静的プレビュー固定進行度(0..1、通常アニメーション時は未指定) */
21
+ readonly staticProgress?: number;
22
+ /** アニメーション完了コールバック */
23
+ readonly onComplete: () => void;
24
+ }
25
+ /**
26
+ * 実DOMを表・裏へ直接載せるゼロ遅延 CSS 3D ページめくりオーバーレイ。
27
+ *
28
+ * - html-to-image 撮影や WebGL 初期化を一切挟まず、操作直後の次フレームでめくりを開始する。
29
+ * - PC見開きでは前半(0°→90°:表面)と後半(-90°→0°:裏面)を中央90°の垂直通過点で
30
+ * 幾何学的に連続リレーする 2 半面構造とすることで、ブラウザの backface-visibility 実装差や
31
+ * 鏡反転・透け・Z-fighting を構造的にゼロにする。
32
+ * - 開始(0%)と終了(100%)で陰影を 0 へ収束させ、色味ズレ・先切り替わり/後切り替わりを防ぐ。
33
+ */
34
+ export declare function PageTurn3DOverlay({ direction, singlePage, singlePageFlow, surface, paperTint, frontContent, backContent, frontScrollTop, frontScrollLeft, staticProgress, onComplete, }: PageTurn3DOverlayProps): JSX.Element;
@@ -1 +1 @@
1
- export { c as ArchiveIndexView, r as MagazineViewer, n as NewspaperViewer, t as NewsstandView } from "../../react-D1PVmQQw.js";
1
+ export { c as ArchiveIndexView, r as MagazineViewer, n as NewspaperViewer, t as NewsstandView } from "../../react-Db-pHQmz.js";