pptx-angular-viewer 1.5.3 → 1.7.0
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 +9 -0
- package/README.md +36 -18
- package/fesm2022/pptx-angular-viewer.mjs +857 -15
- package/fesm2022/pptx-angular-viewer.mjs.map +1 -1
- package/package.json +2 -2
- package/pptx-angular-viewer.css +1 -1
- package/types/pptx-angular-viewer.d.ts +170 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
5
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
6
|
|
|
7
|
+
## [1.6.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-angular-viewer@1.6.0) - 2026-07-05
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **core,cli:** Add react, angular, vue to npm keywords (by @ChristopherVR) ([528ec61](https://github.com/ChristopherVR/pptx-viewer/commit/528ec6182bb77c07444dd0e93560b65e604b9524))
|
|
12
|
+
- **shared:** Progressive imperative API for all viewer bindings (by @ChristopherVR) ([877339d](https://github.com/ChristopherVR/pptx-viewer/commit/877339d05b486d697f2d04d01b3fd954e3c54746))
|
|
13
|
+
|
|
14
|
+
## [1.5.3](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-angular-viewer@1.5.3) - 2026-07-04
|
|
15
|
+
|
|
7
16
|
## [1.5.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-angular-viewer@1.5.2) - 2026-07-04
|
|
8
17
|
|
|
9
18
|
## [1.5.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-angular-viewer@1.5.1) - 2026-07-04
|
package/README.md
CHANGED
|
@@ -143,17 +143,41 @@ async save() {
|
|
|
143
143
|
|
|
144
144
|
### Outputs
|
|
145
145
|
|
|
146
|
-
| Output | Payload | Description
|
|
147
|
-
| ------------------- | ------------ |
|
|
148
|
-
| `activeSlideChange` | `number` | Emits the active slide index on navigation.
|
|
149
|
-
| `dirtyChange` | `boolean` | Emits `true`/`false` when the dirty state changes.
|
|
150
|
-
| `contentChange` | `Uint8Array` | Emits updated bytes after any editing change.
|
|
146
|
+
| Output | Payload | Description |
|
|
147
|
+
| ------------------- | ------------ | -------------------------------------------------------------------- |
|
|
148
|
+
| `activeSlideChange` | `number` | Emits the active slide index on navigation. |
|
|
149
|
+
| `dirtyChange` | `boolean` | Emits `true`/`false` when the dirty state changes. |
|
|
150
|
+
| `contentChange` | `Uint8Array` | Emits updated bytes after any editing change. |
|
|
151
|
+
| `modeChange` | `string` | Emits the new mode (`'preview'`, `'edit'`, `'present'`, `'master'`). |
|
|
152
|
+
| `zoomChange` | `number` | Emits the new zoom level (1 = 100%). |
|
|
153
|
+
| `selectionChange` | `string[]` | Emits the selected element IDs when selection changes. |
|
|
154
|
+
| `slideCountChange` | `number` | Emits the total slide count when slides change. |
|
|
151
155
|
|
|
152
156
|
### Methods
|
|
153
157
|
|
|
154
|
-
| Method
|
|
155
|
-
|
|
|
156
|
-
| `getContent()`
|
|
158
|
+
| Method | Returns | Description |
|
|
159
|
+
| ------------------------- | --------------------- | ---------------------------------------------- |
|
|
160
|
+
| `getContent()` | `Promise<Uint8Array>` | Serialise the current presentation to `.pptx`. |
|
|
161
|
+
| `goTo(index)` | `void` | Navigate to a slide by zero-based index. |
|
|
162
|
+
| `goPrev()` | `void` | Navigate to the previous slide. |
|
|
163
|
+
| `goNext()` | `void` | Navigate to the next slide. |
|
|
164
|
+
| `undo()` | `void` | Undo the last editing action. |
|
|
165
|
+
| `redo()` | `void` | Redo the last undone action. |
|
|
166
|
+
| `canUndo()` | `boolean` | Whether an undo action is available. |
|
|
167
|
+
| `canRedo()` | `boolean` | Whether a redo action is available. |
|
|
168
|
+
| `getZoom()` | `number` | Get the current zoom level. |
|
|
169
|
+
| `setZoom(level)` | `void` | Set the zoom level (clamped to 0.2 - 3.0). |
|
|
170
|
+
| `zoomIn()` | `void` | Zoom in by one step. |
|
|
171
|
+
| `zoomOut()` | `void` | Zoom out by one step. |
|
|
172
|
+
| `zoomReset()` | `void` | Reset zoom to 100%. |
|
|
173
|
+
| `getMode()` | `string` | Get the current viewer mode. |
|
|
174
|
+
| `setMode(mode)` | `void` | Switch mode programmatically. |
|
|
175
|
+
| `getActiveSlideIndex()` | `number` | Get the zero-based active slide index. |
|
|
176
|
+
| `getSlideCount()` | `number` | Get the total number of slides. |
|
|
177
|
+
| `isDirty()` | `boolean` | Whether the document has unsaved changes. |
|
|
178
|
+
| `getSelectedElementIds()` | `string[]` | Get IDs of currently selected elements. |
|
|
179
|
+
| `selectElements(ids)` | `void` | Programmatically select elements by ID. |
|
|
180
|
+
| `clearSelection()` | `void` | Clear the current selection. |
|
|
157
181
|
|
|
158
182
|
### Exported components & helpers
|
|
159
183
|
|
|
@@ -180,18 +204,12 @@ Unlike React/Vue, `translationsEn`, `keyToLabel`, and the `TranslationKey` type
|
|
|
180
204
|
|
|
181
205
|
## Limitations
|
|
182
206
|
|
|
183
|
-
The Angular package has reached functional parity with the React package: all 11
|
|
184
|
-
element types render; the full Tailwind 4 Office ribbon is wired; editing
|
|
185
|
-
(including slide master/layout template editing), presentation, export,
|
|
186
|
-
collaboration, comments, and mobile chrome all work. The remaining items are
|
|
187
|
-
polish/cosmetic, not behavioural gaps:
|
|
188
|
-
|
|
189
|
-
- **Pixel-level cosmetic differences** - Some toolbar controls are not pixel-
|
|
190
|
-
identical to their React counterparts (spacing, split-button affordances,
|
|
191
|
-
dropdown chrome).
|
|
192
207
|
- **3D models need the Three.js peer** - GLB/GLTF models render interactively when
|
|
193
208
|
the optional `three` peer dependency is installed, and fall back to their poster
|
|
194
|
-
image otherwise
|
|
209
|
+
image otherwise.
|
|
210
|
+
- **CSS-rendering approximations** - A handful of effects (`backdrop-filter`, path
|
|
211
|
+
gradients) are approximated on screen, and a few effects flatten in raster
|
|
212
|
+
export; see the root README's Limitations for details.
|
|
195
213
|
|
|
196
214
|
The `pptx-viewer-core` engine parses all element data, so you can access it from
|
|
197
215
|
the model even where the UI does not expose it yet.
|