flipbookengine 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/CHANGELOG.md +33 -20
- package/COMMERCIAL_LICENSE.md +45 -45
- package/LICENSE +661 -661
- package/README.md +34 -32
- package/THIRD-PARTY-NOTICES.md +117 -117
- package/TRADEMARK_POLICY.md +50 -50
- package/dist/adapters/PageFlipAdapter.d.ts +1 -0
- package/dist/core/LayoutManager.d.ts +3 -1
- package/dist/{engine-BuVkDIh-.js → engine-7jWE07Zq.js} +652 -637
- package/dist/engine-7jWE07Zq.js.map +1 -0
- package/dist/engine.d.ts +4 -1
- package/dist/flipbook-engine.iife.js +30 -30
- package/dist/flipbook-engine.iife.js.map +1 -1
- package/dist/flipbook-engine.js +1 -1
- package/dist/flipbook-engine.react.js +1 -1
- package/dist/flipbook-engine.react.js.map +1 -1
- package/dist/flipbook-engine.vue.js +1 -1
- package/dist/flipbook-engine.vue.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/state/store.d.ts +1 -0
- package/package.json +2 -2
- package/react/package.json +5 -5
- package/vue/package.json +5 -5
- package/dist/engine-BuVkDIh-.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# FlipbookEngine
|
|
2
2
|
|
|
3
|
+
> **Release notice:** `flipbookengine@0.5.3` is a valid published release. Upgrade to `0.5.4` or later for lifecycle, locale, and PDF render error-handling fixes. The post-tag source regression was corrected before the 0.5.4 release.
|
|
4
|
+
|
|
3
5
|
[](https://www.npmjs.com/package/flipbookengine)
|
|
4
6
|
[](https://github.com/Bizeka/flipbook-engine/blob/main/LICENSE)
|
|
5
7
|
[](https://www.npmjs.com/package/flipbookengine)
|
|
@@ -62,7 +64,7 @@ Passing `pages` remains optional. When omitted, FlipbookEngine creates the page
|
|
|
62
64
|
Use the ESM build with an import map for PDF.js. The worker must be served from a URL your site permits in its Content Security Policy.
|
|
63
65
|
|
|
64
66
|
```html
|
|
65
|
-
<link rel="stylesheet" href="https://unpkg.com/flipbookengine@0.5.
|
|
67
|
+
<link rel="stylesheet" href="https://unpkg.com/flipbookengine@0.5.4/dist/flipbook-engine.css" />
|
|
66
68
|
<div id="viewer" style="width: 100%; height: 600px;"></div>
|
|
67
69
|
|
|
68
70
|
<script type="importmap">
|
|
@@ -73,7 +75,7 @@ Use the ESM build with an import map for PDF.js. The worker must be served from
|
|
|
73
75
|
}
|
|
74
76
|
</script>
|
|
75
77
|
<script type="module">
|
|
76
|
-
import { FlipbookEngine } from 'https://unpkg.com/flipbookengine@0.5.
|
|
78
|
+
import { FlipbookEngine } from 'https://unpkg.com/flipbookengine@0.5.4/dist/flipbook-engine.js';
|
|
77
79
|
|
|
78
80
|
const engine = new FlipbookEngine('#viewer', {
|
|
79
81
|
pdfWorkerSrc: 'https://unpkg.com/pdfjs-dist@5.4.530/build/pdf.worker.min.mjs'
|
|
@@ -143,7 +145,7 @@ Upgrading from 0.3.x to 0.4.0 keeps the public engine methods intact. The releas
|
|
|
143
145
|
|
|
144
146
|
For 0.5.0 behavior, see the [0.5.0 migration guide](./docs/migration-0.5.0.md). PDF-backed viewers now render on demand; callers should use `progress` and `error` events for rendering telemetry.
|
|
145
147
|
|
|
146
|
-
|
|
148
|
+
|
|
147
149
|
## Public API Reference
|
|
148
150
|
|
|
149
151
|
The `FlipbookEngine` class exposes the following public methods:
|
|
@@ -157,8 +159,8 @@ The `FlipbookEngine` class exposes the following public methods:
|
|
|
157
159
|
- **`setSingleMode(isSingle: boolean)`**: Programmatically toggles between single-page mode (`true`) and double-page spread mode (`false`).
|
|
158
160
|
- **`toggleFullscreen()`**: Programmatically toggles fullscreen mode.
|
|
159
161
|
- **`updateOptions(options: Partial<FlipbookEngineOptions>)`**: Updates instance options at runtime.
|
|
160
|
-
- **`setLocale(locale: string, messages?: PartialFlipbookMessages)`**: Updates the locale programmatically.
|
|
161
|
-
- **`destroy(
|
|
162
|
+
- **`setLocale(locale: string, messages?: PartialFlipbookMessages | Record<string, PartialFlipbookMessages>)`**: Updates the locale programmatically and optionally overrides messages for that locale.
|
|
163
|
+
- **`destroy(keepContainer = false)`**: Tears down the instance and listeners; when `true`, keeps the container markup for an immediate reinitialization.
|
|
162
164
|
|
|
163
165
|
### Subscribing to Events
|
|
164
166
|
|
|
@@ -237,33 +239,33 @@ When choosing a flipbook library, here is how we compare to other solutions:
|
|
|
237
239
|
A special thanks to the incredible team behind **[Serenity](https://github.com/serenity-is/serenity)**. FlipbookEngine's reactive UI layer is powered by **[domwise](https://github.com/serenity-is/serenity/tree/master/packages/domwise)**. Coupled with `@preact/signals-core`, this keeps the UI update path small without requiring a traditional Virtual DOM runtime.
|
|
238
240
|
|
|
239
241
|
---
|
|
240
|
-
## Roadmap
|
|
241
|
-
|
|
242
|
-
FlipbookEngine has two complementary targets: an AGPL open-source viewer package and a separate closed-source commercial backend edition.
|
|
243
|
-
|
|
244
|
-
### Open-source v1.0.0 (AGPL viewer)
|
|
245
|
-
|
|
246
|
-
The npm package remains an embeddable, framework-agnostic PDF viewer. The open-source v1.0.0 target focuses on client-side reader capabilities:
|
|
247
|
-
|
|
248
|
-
- **Table of Contents (Index):** Interactive navigation to chapters or product categories.
|
|
249
|
-
- **Page Notes & Annotations:** Reader notes and bookmarks stored by the host application.
|
|
250
|
-
- **Full-Text PDF Search:** Client-side text extraction and highlighting without blocking the viewer.
|
|
251
|
-
- **Interactive Hotspots & Pop-ups:** Custom overlays for media, galleries, and commerce links.
|
|
252
|
-
- **Deep Linking & Social Share:** URLs that address specific pages or spreads.
|
|
253
|
-
|
|
254
|
-
The open-source viewer continues to use PDF.js as an external npm dependency and does not require a backend renderer.
|
|
255
|
-
|
|
256
|
-
### Commercial edition (closed-source backend)
|
|
257
|
-
|
|
258
|
-
The commercial roadmap is separate from the AGPL package and is intended for a separate backend project. It will provide licensed server-side capabilities, including:
|
|
259
|
-
|
|
260
|
-
- **Backend PDF rendering:** Secure, server-side rendering and caching for protected documents and high-volume workloads.
|
|
261
|
-
- **Protected partial downloads:** Server-generated page selections and authorization-aware download policies.
|
|
262
|
-
- **AI-assisted document features:** Backend indexing, catalog search, and Chat with Docs integrations.
|
|
263
|
-
- **Enterprise identity and provenance:** OIDC, auditability, tenant controls, and deployment integration.
|
|
264
|
-
|
|
265
|
-
These backend renderer and enterprise features will not be included in the public `flipbookengine` npm package; they will be delivered under the commercial license.
|
|
266
|
-
|
|
242
|
+
## Roadmap
|
|
243
|
+
|
|
244
|
+
FlipbookEngine has two complementary targets: an AGPL open-source viewer package and a separate closed-source commercial backend edition.
|
|
245
|
+
|
|
246
|
+
### Open-source v1.0.0 (AGPL viewer)
|
|
247
|
+
|
|
248
|
+
The npm package remains an embeddable, framework-agnostic PDF viewer. The open-source v1.0.0 target focuses on client-side reader capabilities:
|
|
249
|
+
|
|
250
|
+
- **Table of Contents (Index):** Interactive navigation to chapters or product categories.
|
|
251
|
+
- **Page Notes & Annotations:** Reader notes and bookmarks stored by the host application.
|
|
252
|
+
- **Full-Text PDF Search:** Client-side text extraction and highlighting without blocking the viewer.
|
|
253
|
+
- **Interactive Hotspots & Pop-ups:** Custom overlays for media, galleries, and commerce links.
|
|
254
|
+
- **Deep Linking & Social Share:** URLs that address specific pages or spreads.
|
|
255
|
+
|
|
256
|
+
The open-source viewer continues to use PDF.js as an external npm dependency and does not require a backend renderer.
|
|
257
|
+
|
|
258
|
+
### Commercial edition (closed-source backend)
|
|
259
|
+
|
|
260
|
+
The commercial roadmap is separate from the AGPL package and is intended for a separate backend project. It will provide licensed server-side capabilities, including:
|
|
261
|
+
|
|
262
|
+
- **Backend PDF rendering:** Secure, server-side rendering and caching for protected documents and high-volume workloads.
|
|
263
|
+
- **Protected partial downloads:** Server-generated page selections and authorization-aware download policies.
|
|
264
|
+
- **AI-assisted document features:** Backend indexing, catalog search, and Chat with Docs integrations.
|
|
265
|
+
- **Enterprise identity and provenance:** OIDC, auditability, tenant controls, and deployment integration.
|
|
266
|
+
|
|
267
|
+
These backend renderer and enterprise features will not be included in the public `flipbookengine` npm package; they will be delivered under the commercial license.
|
|
268
|
+
|
|
267
269
|
---
|
|
268
270
|
|
|
269
271
|
## Licensing
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
# Third-Party Notices
|
|
2
|
-
|
|
3
|
-
This file contains the licenses of the third-party libraries used in the FlipbookEngine project.
|
|
4
|
-
|
|
5
|
-
## Runtime Dependencies
|
|
6
|
-
|
|
7
|
-
### 1. PDF.js (pdfjs-dist)
|
|
8
|
-
- **Website:** https://mozilla.github.io/pdf.js/
|
|
9
|
-
- **Repository:** https://github.com/mozilla/pdf.js
|
|
10
|
-
- **License:** Apache License 2.0
|
|
11
|
-
|
|
12
|
-
```text
|
|
13
|
-
Copyright 2012 Mozilla Foundation
|
|
14
|
-
|
|
15
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
16
|
-
you may not use this file except in compliance with the License.
|
|
17
|
-
You may obtain a copy of the License at
|
|
18
|
-
|
|
19
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
-
|
|
21
|
-
Unless required by applicable law or agreed to in writing, software
|
|
22
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
23
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24
|
-
See the License for the specific language governing permissions and
|
|
25
|
-
limitations under the License.
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
### 2. page-flip
|
|
31
|
-
- **Website:** https://nodlik.github.io/StPageFlip/
|
|
32
|
-
- **Repository:** https://github.com/Nodlik/StPageFlip
|
|
33
|
-
- **License:** MIT License
|
|
34
|
-
|
|
35
|
-
```text
|
|
36
|
-
The MIT License (MIT)
|
|
37
|
-
Copyright (c) 2020 Oleg
|
|
38
|
-
|
|
39
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
40
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
41
|
-
the Software without restriction, including without limitation the rights to
|
|
42
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
43
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
44
|
-
subject to the following conditions:
|
|
45
|
-
|
|
46
|
-
The above copyright notice and this permission notice shall be included in all
|
|
47
|
-
copies or substantial portions of the Software.
|
|
48
|
-
|
|
49
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
50
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
51
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
52
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
53
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
54
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
### 3. @preact/signals-core
|
|
60
|
-
- **Repository:** https://github.com/preactjs/signals
|
|
61
|
-
- **License:** MIT License
|
|
62
|
-
|
|
63
|
-
```text
|
|
64
|
-
The MIT License (MIT)
|
|
65
|
-
Copyright (c) 2022-present Preact Team
|
|
66
|
-
|
|
67
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
68
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
69
|
-
the Software without restriction, including without limitation the rights to
|
|
70
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
71
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
72
|
-
subject to the following conditions:
|
|
73
|
-
|
|
74
|
-
The above copyright notice and this permission notice shall be included in all
|
|
75
|
-
copies or substantial portions of the Software.
|
|
76
|
-
|
|
77
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
78
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
79
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
80
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
81
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
82
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
### 4. @serenity-is/domwise
|
|
88
|
-
- **Repository:** https://github.com/serenity-is/serenity
|
|
89
|
-
- **License:** MIT License
|
|
90
|
-
|
|
91
|
-
```text
|
|
92
|
-
The MIT License (MIT)
|
|
93
|
-
Copyright (c) Serenity.is
|
|
94
|
-
|
|
95
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
96
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
97
|
-
the Software without restriction, including without limitation the rights to
|
|
98
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
99
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
100
|
-
subject to the following conditions:
|
|
101
|
-
|
|
102
|
-
The above copyright notice and this permission notice shall be included in all
|
|
103
|
-
copies or substantial portions of the Software.
|
|
104
|
-
|
|
105
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
106
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
107
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
108
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
109
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
110
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Development Dependencies
|
|
116
|
-
|
|
117
|
-
Development dependencies such as `vite`, `typescript`, and their respective plugins are licensed under the MIT License. These tools are used during the build process and are not distributed as part of the compiled FlipbookEngine bundle.
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
This file contains the licenses of the third-party libraries used in the FlipbookEngine project.
|
|
4
|
+
|
|
5
|
+
## Runtime Dependencies
|
|
6
|
+
|
|
7
|
+
### 1. PDF.js (pdfjs-dist)
|
|
8
|
+
- **Website:** https://mozilla.github.io/pdf.js/
|
|
9
|
+
- **Repository:** https://github.com/mozilla/pdf.js
|
|
10
|
+
- **License:** Apache License 2.0
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
Copyright 2012 Mozilla Foundation
|
|
14
|
+
|
|
15
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
16
|
+
you may not use this file except in compliance with the License.
|
|
17
|
+
You may obtain a copy of the License at
|
|
18
|
+
|
|
19
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
+
|
|
21
|
+
Unless required by applicable law or agreed to in writing, software
|
|
22
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
23
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24
|
+
See the License for the specific language governing permissions and
|
|
25
|
+
limitations under the License.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
### 2. page-flip
|
|
31
|
+
- **Website:** https://nodlik.github.io/StPageFlip/
|
|
32
|
+
- **Repository:** https://github.com/Nodlik/StPageFlip
|
|
33
|
+
- **License:** MIT License
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
The MIT License (MIT)
|
|
37
|
+
Copyright (c) 2020 Oleg
|
|
38
|
+
|
|
39
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
40
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
41
|
+
the Software without restriction, including without limitation the rights to
|
|
42
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
43
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
44
|
+
subject to the following conditions:
|
|
45
|
+
|
|
46
|
+
The above copyright notice and this permission notice shall be included in all
|
|
47
|
+
copies or substantial portions of the Software.
|
|
48
|
+
|
|
49
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
50
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
51
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
52
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
53
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
54
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
### 3. @preact/signals-core
|
|
60
|
+
- **Repository:** https://github.com/preactjs/signals
|
|
61
|
+
- **License:** MIT License
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
The MIT License (MIT)
|
|
65
|
+
Copyright (c) 2022-present Preact Team
|
|
66
|
+
|
|
67
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
68
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
69
|
+
the Software without restriction, including without limitation the rights to
|
|
70
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
71
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
72
|
+
subject to the following conditions:
|
|
73
|
+
|
|
74
|
+
The above copyright notice and this permission notice shall be included in all
|
|
75
|
+
copies or substantial portions of the Software.
|
|
76
|
+
|
|
77
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
78
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
79
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
80
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
81
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
82
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
### 4. @serenity-is/domwise
|
|
88
|
+
- **Repository:** https://github.com/serenity-is/serenity
|
|
89
|
+
- **License:** MIT License
|
|
90
|
+
|
|
91
|
+
```text
|
|
92
|
+
The MIT License (MIT)
|
|
93
|
+
Copyright (c) Serenity.is
|
|
94
|
+
|
|
95
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
96
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
97
|
+
the Software without restriction, including without limitation the rights to
|
|
98
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
99
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
100
|
+
subject to the following conditions:
|
|
101
|
+
|
|
102
|
+
The above copyright notice and this permission notice shall be included in all
|
|
103
|
+
copies or substantial portions of the Software.
|
|
104
|
+
|
|
105
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
106
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
107
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
108
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
109
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
110
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Development Dependencies
|
|
116
|
+
|
|
117
|
+
Development dependencies such as `vite`, `typescript`, and their respective plugins are licensed under the MIT License. These tools are used during the build process and are not distributed as part of the compiled FlipbookEngine bundle.
|
package/TRADEMARK_POLICY.md
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
# FlipbookEngine Trademark Policy
|
|
2
|
-
|
|
3
|
-
This policy governs use of the FlipbookEngine name, logos, and brand assets.
|
|
4
|
-
|
|
5
|
-
## Covered Marks
|
|
6
|
-
|
|
7
|
-
The following are treated as protected brand assets:
|
|
8
|
-
|
|
9
|
-
- FlipbookEngine
|
|
10
|
-
- FlipbookEngine logos
|
|
11
|
-
- any official product lockups, icons, and visual identity files distributed with the project
|
|
12
|
-
|
|
13
|
-
## What the Open Source License Does Not Grant
|
|
14
|
-
|
|
15
|
-
The AGPL license applies to source code, not to trademark rights.
|
|
16
|
-
|
|
17
|
-
Using the FlipbookEngine code does not automatically grant permission to:
|
|
18
|
-
|
|
19
|
-
- present your product as the official FlipbookEngine product
|
|
20
|
-
- use FlipbookEngine logos in your own branding
|
|
21
|
-
- imply sponsorship, certification, or endorsement
|
|
22
|
-
- register confusingly similar names, domains, or product marks
|
|
23
|
-
|
|
24
|
-
## Allowed Uses
|
|
25
|
-
|
|
26
|
-
Unless otherwise stated, you may:
|
|
27
|
-
|
|
28
|
-
- refer to FlipbookEngine by name in factual descriptions
|
|
29
|
-
- state that your project uses or is powered by FlipbookEngine
|
|
30
|
-
- link to the official project and documentation
|
|
31
|
-
|
|
32
|
-
## Uses That Require Permission
|
|
33
|
-
|
|
34
|
-
You must get permission before:
|
|
35
|
-
|
|
36
|
-
- using official logos in a product UI or marketing page
|
|
37
|
-
- using FlipbookEngine as part of your own product or company name
|
|
38
|
-
- presenting your fork as the official project
|
|
39
|
-
- using the marks in paid advertising or marketplace listings
|
|
40
|
-
|
|
41
|
-
## Open Source Attribution
|
|
42
|
-
|
|
43
|
-
Attribution is appreciated in open source projects, but trademark permission is still separate from code licensing.
|
|
44
|
-
|
|
45
|
-
## Contact
|
|
46
|
-
|
|
47
|
-
Trademark and brand permission inquiries:
|
|
48
|
-
|
|
49
|
-
- murat.dogan@hotmail.com.tr
|
|
50
|
-
|
|
1
|
+
# FlipbookEngine Trademark Policy
|
|
2
|
+
|
|
3
|
+
This policy governs use of the FlipbookEngine name, logos, and brand assets.
|
|
4
|
+
|
|
5
|
+
## Covered Marks
|
|
6
|
+
|
|
7
|
+
The following are treated as protected brand assets:
|
|
8
|
+
|
|
9
|
+
- FlipbookEngine
|
|
10
|
+
- FlipbookEngine logos
|
|
11
|
+
- any official product lockups, icons, and visual identity files distributed with the project
|
|
12
|
+
|
|
13
|
+
## What the Open Source License Does Not Grant
|
|
14
|
+
|
|
15
|
+
The AGPL license applies to source code, not to trademark rights.
|
|
16
|
+
|
|
17
|
+
Using the FlipbookEngine code does not automatically grant permission to:
|
|
18
|
+
|
|
19
|
+
- present your product as the official FlipbookEngine product
|
|
20
|
+
- use FlipbookEngine logos in your own branding
|
|
21
|
+
- imply sponsorship, certification, or endorsement
|
|
22
|
+
- register confusingly similar names, domains, or product marks
|
|
23
|
+
|
|
24
|
+
## Allowed Uses
|
|
25
|
+
|
|
26
|
+
Unless otherwise stated, you may:
|
|
27
|
+
|
|
28
|
+
- refer to FlipbookEngine by name in factual descriptions
|
|
29
|
+
- state that your project uses or is powered by FlipbookEngine
|
|
30
|
+
- link to the official project and documentation
|
|
31
|
+
|
|
32
|
+
## Uses That Require Permission
|
|
33
|
+
|
|
34
|
+
You must get permission before:
|
|
35
|
+
|
|
36
|
+
- using official logos in a product UI or marketing page
|
|
37
|
+
- using FlipbookEngine as part of your own product or company name
|
|
38
|
+
- presenting your fork as the official project
|
|
39
|
+
- using the marks in paid advertising or marketplace listings
|
|
40
|
+
|
|
41
|
+
## Open Source Attribution
|
|
42
|
+
|
|
43
|
+
Attribution is appreciated in open source projects, but trademark permission is still separate from code licensing.
|
|
44
|
+
|
|
45
|
+
## Contact
|
|
46
|
+
|
|
47
|
+
Trademark and brand permission inquiries:
|
|
48
|
+
|
|
49
|
+
- murat.dogan@hotmail.com.tr
|
|
50
|
+
|
|
@@ -13,6 +13,7 @@ export declare class PageFlipAdapter {
|
|
|
13
13
|
private audioUnlockHandler;
|
|
14
14
|
private isLibraryFlipping;
|
|
15
15
|
private autoPlayTimer;
|
|
16
|
+
private layoutUpdateTimer;
|
|
16
17
|
constructor(bookContainer: HTMLElement, options: FlipbookEngineOptions, store: FlipbookStore);
|
|
17
18
|
private unlockAudio;
|
|
18
19
|
init(viewportWidth: number, viewportHeight: number): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlipbookStore } from '../state/store';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @license FlipbookEngine v0.
|
|
4
|
+
* @license FlipbookEngine v0.5.4
|
|
5
5
|
* Copyright (c) 2026 Murat Dogan
|
|
6
6
|
*
|
|
7
7
|
* This source code is dual-licensed under the AGPLv3 and a Commercial License.
|
|
@@ -23,6 +23,7 @@ export declare class LayoutManager {
|
|
|
23
23
|
private orientationMediaQuery;
|
|
24
24
|
private orientationChangeHandler;
|
|
25
25
|
private unsubs;
|
|
26
|
+
private updateTimer;
|
|
26
27
|
onResizeCallback?: () => void;
|
|
27
28
|
constructor(pageViewport: {
|
|
28
29
|
width: number;
|
|
@@ -34,4 +35,5 @@ export declare class LayoutManager {
|
|
|
34
35
|
private setupOrientationMedia;
|
|
35
36
|
updateBookAspectRatio(): void;
|
|
36
37
|
destroy(): void;
|
|
38
|
+
private scheduleAspectRatioUpdate;
|
|
37
39
|
}
|