@objectifthunes/three-book 0.5.2 → 0.5.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.
package/dist/index.d.ts CHANGED
@@ -27,6 +27,6 @@ export { TextOverlayContent } from './TextOverlayContent';
27
27
  export type { TextOverlayContentOptions } from './TextOverlayContent';
28
28
  export { SpreadContent, getSpreadPairs } from './SpreadContent';
29
29
  export type { SpreadContentOptions } from './SpreadContent';
30
- export { drawImageWithFit, createPageTexture, computeDefaultImageRect, loadImage, PX_PER_UNIT } from './textureUtils';
30
+ export { drawImageWithFit, createPageCanvas, createPageTexture, computeDefaultImageRect, loadImage, PX_PER_UNIT } from './textureUtils';
31
31
  export type { ImageFitMode, ImageRect, LoadedImage } from './textureUtils';
32
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE1E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEzE,OAAO,EAAE,QAAQ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,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE3F,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAG5D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxI,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -1013,7 +1013,7 @@ function mt(r, t, e, s, i) {
1013
1013
  function _t(r, t, e, s, i) {
1014
1014
  r.push(t), r.push(e), r.push(s), r.push(e), r.push(i), r.push(s);
1015
1015
  }
1016
- const Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1016
+ const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1017
1017
  __proto__: null,
1018
1018
  addBorders: jt,
1019
1019
  addFrontAndBackFaces: Qt,
@@ -2022,7 +2022,7 @@ class Me {
2022
2022
  }
2023
2023
  }
2024
2024
  const $t = Object.freeze(new c.Vector4(1, 1, 0, 0));
2025
- class Oe {
2025
+ class Ze {
2026
2026
  constructor() {
2027
2027
  this.m_BookContent = null, this.m_IsActive = !1, this.onActiveChangedCallback = null;
2028
2028
  }
@@ -2075,7 +2075,7 @@ class Et {
2075
2075
  setActive(t) {
2076
2076
  }
2077
2077
  }
2078
- class Ze {
2078
+ class Ue {
2079
2079
  constructor() {
2080
2080
  this.m_Direction = j.LeftToRight, this.m_Covers = [null, null, null, null], this.m_Pages = [null, null, null, null, null, null, null, null], this.m_Book = null, this._cachedCovers = null, this._cachedPages = null;
2081
2081
  }
@@ -2182,7 +2182,7 @@ class Ze {
2182
2182
  return !this.isCoverPaperSideIndex(t);
2183
2183
  }
2184
2184
  }
2185
- class Ue {
2185
+ class Ee {
2186
2186
  constructor(t, e) {
2187
2187
  this.enabled = !0, this.m_Raycaster = new c.Raycaster(), this.m_Mouse = new c.Vector2(), this.m_SelectedBook = null, this.m_IsPointerDown = !1, this.m_OnPointerDown = (s) => {
2188
2188
  var n;
@@ -2721,7 +2721,7 @@ class ze {
2721
2721
  return this.mesh;
2722
2722
  }
2723
2723
  }
2724
- class Ee extends ye {
2724
+ class Le extends ye {
2725
2725
  constructor() {
2726
2726
  super(...arguments), this.quality = 3, this.stapleSetup = new Ie();
2727
2727
  }
@@ -2813,7 +2813,7 @@ function Jt(r, t) {
2813
2813
  function te(r, t) {
2814
2814
  t.x !== void 0 && (r.x = t.x), t.y !== void 0 && (r.y = t.y), t.width !== void 0 && (r.width = t.width), t.text !== void 0 && (r.text = t.text), t.fontFamily !== void 0 && (r.fontFamily = t.fontFamily), t.fontSize !== void 0 && (r.fontSize = t.fontSize), t.fontWeight !== void 0 && (r.fontWeight = t.fontWeight), t.fontStyle !== void 0 && (r.fontStyle = t.fontStyle), t.color !== void 0 && (r.color = t.color), t.lineHeight !== void 0 && (r.lineHeight = t.lineHeight), t.textAlign !== void 0 && (r.textAlign = t.textAlign), t.opacity !== void 0 && (r.opacity = t.opacity), t.shadowColor !== void 0 && (r.shadowColor = t.shadowColor), t.shadowBlur !== void 0 && (r.shadowBlur = t.shadowBlur);
2815
2815
  }
2816
- class Le {
2816
+ class Ne {
2817
2817
  constructor(t) {
2818
2818
  this.texts = [], this._textureST = new c.Vector4(1, 1, 0, 0), this._dirty = !0;
2819
2819
  const e = (t == null ? void 0 : t.width) ?? 512, s = (t == null ? void 0 : t.height) ?? 512;
@@ -2907,13 +2907,13 @@ class Xt {
2907
2907
  setActive(t) {
2908
2908
  }
2909
2909
  }
2910
- function Ne(r) {
2910
+ function Xe(r) {
2911
2911
  const t = [];
2912
2912
  for (let e = 1; e + 1 < r; e += 2)
2913
2913
  t.push(e);
2914
2914
  return t;
2915
2915
  }
2916
- class Xe {
2916
+ class We {
2917
2917
  constructor(t) {
2918
2918
  this.texts = [], this._dirty = !0, this.pageWidth = (t == null ? void 0 : t.pageWidth) ?? 512, this.pageHeight = (t == null ? void 0 : t.pageHeight) ?? 512, this.canvas = document.createElement("canvas"), this.canvas.width = this.pageWidth * 2, this.canvas.height = this.pageHeight;
2919
2919
  const e = this.canvas.getContext("2d");
@@ -2987,7 +2987,7 @@ function He(r, t, e, s, i, n, h) {
2987
2987
  const u = h === "contain" ? Math.min(i / a, n / o) : Math.max(i / a, n / o), l = a * u, m = o * u;
2988
2988
  r.drawImage(t, e + (i - l) * 0.5, s + (n - m) * 0.5, l, m);
2989
2989
  }
2990
- function We(r, t, e, s, i) {
2990
+ function Ge(r, t, e, s, i) {
2991
2991
  const n = i ? 0 : Math.round(Math.min(t, e) * 0.11), h = n, a = n, o = t - n * 2, u = e - n * 2, l = r.naturalWidth || r.width, m = r.naturalHeight || r.height;
2992
2992
  if (s === "fill" || l <= 0 || m <= 0)
2993
2993
  return { x: h, y: a, width: o, height: u };
@@ -2999,7 +2999,7 @@ function We(r, t, e, s, i) {
2999
2999
  height: _
3000
3000
  };
3001
3001
  }
3002
- function Ge(r, t, e, s, i, n, h, a) {
3002
+ function Fe(r, t, e, s, i, n, h, a) {
3003
3003
  const o = n ? Math.round(n * Wt) : 512, u = h ? Math.round(h * Wt) : 512, l = document.createElement("canvas");
3004
3004
  l.width = o, l.height = u;
3005
3005
  const m = l.getContext("2d");
@@ -3007,18 +3007,21 @@ function Ge(r, t, e, s, i, n, h, a) {
3007
3007
  if (a)
3008
3008
  m.drawImage(e, a.x, a.y, a.width, a.height);
3009
3009
  else {
3010
- const d = i ? 0 : Math.round(Math.min(o, u) * 0.11);
3011
- He(m, e, d, d, o - d * 2, u - d * 2, s);
3010
+ const f = i ? 0 : Math.round(Math.min(o, u) * 0.11);
3011
+ He(m, e, f, f, o - f * 2, u - f * 2, s);
3012
3012
  }
3013
3013
  else {
3014
3014
  m.fillStyle = "#333";
3015
- const d = Math.round(Math.min(o, u) * 0.094);
3016
- m.font = `bold ${d}px Arial`, m.textAlign = "center", m.textBaseline = "middle", m.fillText(t, o / 2, u / 2);
3015
+ const f = Math.round(Math.min(o, u) * 0.094);
3016
+ m.font = `bold ${f}px Arial`, m.textAlign = "center", m.textBaseline = "middle", m.fillText(t, o / 2, u / 2);
3017
3017
  }
3018
- const f = new c.CanvasTexture(l);
3019
- return f.colorSpace = c.SRGBColorSpace, f;
3018
+ return l;
3019
+ }
3020
+ function je(r, t, e, s, i, n, h, a) {
3021
+ const o = Fe(r, t, e, s, i, n, h, a), u = new c.CanvasTexture(o);
3022
+ return u.colorSpace = c.SRGBColorSpace, u;
3020
3023
  }
3021
- async function je(r) {
3024
+ async function qe(r) {
3022
3025
  if (!r) return null;
3023
3026
  const t = URL.createObjectURL(r), e = new Image();
3024
3027
  e.decoding = "async", e.src = t;
@@ -3041,21 +3044,21 @@ export {
3041
3044
  Ct as Book,
3042
3045
  ye as BookBinding,
3043
3046
  Ce as BookBound,
3044
- Ze as BookContent,
3047
+ Ue as BookContent,
3045
3048
  j as BookDirection,
3046
3049
  xe as BookHeightException,
3047
- Ue as BookPointerInteraction,
3050
+ Ee as BookPointerInteraction,
3048
3051
  _e as BookRenderer,
3049
3052
  wt as Cylinder,
3050
3053
  ce as MeshFactory,
3051
3054
  Wt as PX_PER_UNIT,
3052
- Oe as PageContent,
3055
+ Ze as PageContent,
3053
3056
  oe as Paper,
3054
3057
  Tt as PaperBorder,
3055
3058
  zt as PaperMaterialData,
3056
3059
  Ot as PaperMeshData,
3057
3060
  de as PaperMeshDataPool,
3058
- Fe as PaperMeshUtility,
3061
+ Oe as PaperMeshUtility,
3059
3062
  ht as PaperNode,
3060
3063
  le as PaperNodeMargin,
3061
3064
  Me as PaperPattern,
@@ -3063,16 +3066,17 @@ export {
3063
3066
  rt as PaperSetup,
3064
3067
  gt as PaperUVMargin,
3065
3068
  ue as RendererFactory,
3066
- Xe as SpreadContent,
3069
+ We as SpreadContent,
3067
3070
  Et as SpritePageContent2,
3068
- Ee as StapleBookBinding,
3071
+ Le as StapleBookBinding,
3069
3072
  Ve as StapleBookBound,
3070
3073
  Ie as StapleSetup,
3071
3074
  Kt as TextBlock,
3072
- Le as TextOverlayContent,
3073
- We as computeDefaultImageRect,
3074
- Ge as createPageTexture,
3075
+ Ne as TextOverlayContent,
3076
+ Ge as computeDefaultImageRect,
3077
+ Fe as createPageCanvas,
3078
+ je as createPageTexture,
3075
3079
  He as drawImageWithFit,
3076
- Ne as getSpreadPairs,
3077
- je as loadImage
3080
+ Xe as getSpreadPairs,
3081
+ qe as loadImage
3078
3082
  };
@@ -36,7 +36,11 @@ export declare function drawImageWithFit(ctx: CanvasRenderingContext2D, image: H
36
36
  */
37
37
  export declare function computeDefaultImageRect(image: HTMLImageElement, canvasWidth: number, canvasHeight: number, fitMode: ImageFitMode, fullBleed: boolean): ImageRect;
38
38
  /**
39
- * Creates a `THREE.CanvasTexture` suitable for use as a book page.
39
+ * Creates an `HTMLCanvasElement` with page content drawn onto it.
40
+ *
41
+ * Use this instead of `createPageTexture` when you only need the canvas
42
+ * (e.g. as the `source` for a TextOverlayContent) — avoids creating a
43
+ * THREE.Texture wrapper that would need separate disposal.
40
44
  *
41
45
  * When `pageWidth` and `pageHeight` are given the canvas matches the page
42
46
  * aspect ratio (256 px per world unit). Otherwise defaults to 512×512.
@@ -46,6 +50,14 @@ export declare function computeDefaultImageRect(image: HTMLImageElement, canvasW
46
50
  * or at the exact `imageRect` position if supplied.
47
51
  * - Otherwise, renders `label` as centred text (useful for debugging).
48
52
  */
53
+ export declare function createPageCanvas(color: string, label: string, image: HTMLImageElement | null, fitMode: ImageFitMode, fullBleed: boolean, pageWidth?: number, pageHeight?: number, imageRect?: ImageRect | null): HTMLCanvasElement;
54
+ /**
55
+ * Creates a `THREE.CanvasTexture` suitable for use as a book page.
56
+ *
57
+ * Wraps `createPageCanvas` in a THREE.CanvasTexture. If you only need the
58
+ * canvas (e.g. for TextOverlayContent.source), use `createPageCanvas` instead
59
+ * to avoid an extra texture allocation.
60
+ */
49
61
  export declare function createPageTexture(color: string, label: string, image: HTMLImageElement | null, fitMode: ImageFitMode, fullBleed: boolean, pageWidth?: number, pageHeight?: number, imageRect?: ImageRect | null): THREE.Texture;
50
62
  /**
51
63
  * Loads a `File` into an `HTMLImageElement` and returns both the element
@@ -1 +1 @@
1
- {"version":3,"file":"textureUtils.d.ts","sourceRoot":"","sources":["../src/textureUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,wDAAwD;AACxD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAExD,8DAA8D;AAC9D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,gBAAgB,CAAC;IACxB,gFAAgF;IAChF,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,uDAAuD;AACvD,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAID,gFAAgF;AAChF,eAAO,MAAM,WAAW,MAAM,CAAC;AAI/B;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9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GAAG,SAAS,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAmB1F"}
package/package.json CHANGED
@@ -1,30 +1,31 @@
1
- {
2
- "name": "@objectifthunes/three-book",
3
- "version": "0.5.2",
4
- "type": "module",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "import": "./dist/index.js",
10
- "types": "./dist/index.d.ts"
11
- }
12
- },
13
- "files": [
14
- "dist"
15
- ],
16
- "peerDependencies": {
17
- "three": ">=0.150.0"
18
- },
19
- "devDependencies": {
20
- "three": "^0.172.0",
21
- "@types/three": "^0.172.0",
22
- "typescript": "^5.7.0",
23
- "vite": "^6.0.0",
24
- "vite-plugin-dts": "^4.0.0"
25
- },
26
- "scripts": {
27
- "build": "vite build && tsc --emitDeclarationOnly",
28
- "typecheck": "tsc --noEmit"
29
- }
30
- }
1
+ {
2
+ "name": "@objectifthunes/three-book",
3
+ "version": "0.5.4",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/index.js",
10
+ "types": "./dist/index.d.ts"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "scripts": {
17
+ "build": "vite build && tsc --emitDeclarationOnly",
18
+ "typecheck": "tsc --noEmit",
19
+ "prepack": "pnpm run build"
20
+ },
21
+ "peerDependencies": {
22
+ "three": ">=0.150.0"
23
+ },
24
+ "devDependencies": {
25
+ "three": "^0.172.0",
26
+ "@types/three": "^0.172.0",
27
+ "typescript": "^5.7.0",
28
+ "vite": "^6.0.0",
29
+ "vite-plugin-dts": "^4.0.0"
30
+ }
31
+ }