pptx-angular-viewer 1.1.62 → 1.1.63
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 +6 -0
- package/README.md +1 -2
- package/fesm2022/pptx-angular-viewer.mjs +23 -28
- package/fesm2022/pptx-angular-viewer.mjs.map +1 -1
- package/package.json +1 -1
- package/types/pptx-angular-viewer.d.ts +17 -21
package/package.json
CHANGED
|
@@ -2951,10 +2951,9 @@ declare class IsMobileService {
|
|
|
2951
2951
|
* Provide it at the component level so its lifetime tracks the host viewer:
|
|
2952
2952
|
* `@Component({ providers: [LoadContentService] })`.
|
|
2953
2953
|
*
|
|
2954
|
-
*
|
|
2955
|
-
*
|
|
2956
|
-
*
|
|
2957
|
-
* the corresponding features are ported.
|
|
2954
|
+
* Originally the viewer-first subset of the React hook; the extra pieces of
|
|
2955
|
+
* presentation metadata (sections, custom shows, embedded fonts, digital
|
|
2956
|
+
* signatures, …) were added alongside the corresponding features.
|
|
2958
2957
|
*/
|
|
2959
2958
|
declare class LoadContentService {
|
|
2960
2959
|
/** Parsed slides (with image Blob URLs patched in). */
|
|
@@ -3355,7 +3354,8 @@ declare function buildDuotoneFilter(element: PptxElement): DuotoneFilterDef | un
|
|
|
3355
3354
|
* and paint text boxes, basic preset shapes, images, and image/gradient fills
|
|
3356
3355
|
* (the latter via the parser's prebuilt CSS gradient string). Advanced visuals
|
|
3357
3356
|
* (the structured gradient builder, pattern fills, custom geometry clip-paths,
|
|
3358
|
-
* shadows, 3D, image effects, text warp) are
|
|
3357
|
+
* shadows, 3D, image effects, text warp) are handled by the shared render
|
|
3358
|
+
* modules (`pptx-viewer-shared`) consumed from the renderer components.
|
|
3359
3359
|
*
|
|
3360
3360
|
* Long term the *logic* here is a shared-extraction candidate; only the
|
|
3361
3361
|
* return type (CSS map shape) differs per framework, so a future refactor
|
|
@@ -3882,10 +3882,9 @@ declare class ViewerFormatPainterService {
|
|
|
3882
3882
|
* and Vue `PowerPointViewer.vue`.
|
|
3883
3883
|
*
|
|
3884
3884
|
* Top-level orchestrator that loads `.pptx` bytes and renders the slides with
|
|
3885
|
-
* navigation and zoom
|
|
3886
|
-
*
|
|
3887
|
-
*
|
|
3888
|
-
* per-area status live in `packages/angular/PORTING.md`.
|
|
3885
|
+
* navigation and zoom, composing the full editor (toolbar, inspector panels,
|
|
3886
|
+
* dialogs, presentation mode, collaboration, export) like its React and Vue
|
|
3887
|
+
* counterparts.
|
|
3889
3888
|
*
|
|
3890
3889
|
* Conventions vs. React/Vue:
|
|
3891
3890
|
* - React `forwardRef` handle / Vue `defineExpose` → public {@link getContent}
|
|
@@ -4361,8 +4360,8 @@ interface RulerGuide {
|
|
|
4361
4360
|
* Renders the active slide as a fixed-size stage scaled by `zoom`, with each
|
|
4362
4361
|
* element absolutely positioned. When `editable`, supports click-to-select
|
|
4363
4362
|
* (event delegation), selection outlines, and pointer drag-to-move / resize
|
|
4364
|
-
* handles
|
|
4365
|
-
*
|
|
4363
|
+
* handles, plus the rulers, grid, guides, marquee, and collaboration
|
|
4364
|
+
* overlays.
|
|
4366
4365
|
*/
|
|
4367
4366
|
declare class SlideCanvasComponent {
|
|
4368
4367
|
readonly slide: _angular_core.InputSignal<PptxSlide | undefined>;
|
|
@@ -4833,8 +4832,7 @@ interface Paragraph {
|
|
|
4833
4832
|
* ElementRendererComponent: Angular port of the React `ElementRenderer.tsx`
|
|
4834
4833
|
* and the Vue `ElementRenderer.vue`.
|
|
4835
4834
|
*
|
|
4836
|
-
* Renders a single slide element by its `type` discriminant
|
|
4837
|
-
* subset):
|
|
4835
|
+
* Renders a single slide element by its `type` discriminant:
|
|
4838
4836
|
* - `text` / `shape` → positioned box with fill/stroke + rich text + effects
|
|
4839
4837
|
* - `connector` → SVG straight/bent/curved connector
|
|
4840
4838
|
* - `chart` → inline-SVG chart (bar/line/area/pie/scatter)
|
|
@@ -4842,14 +4840,13 @@ interface Paragraph {
|
|
|
4842
4840
|
* - `smartArt` → SVG drawing-shapes / node-text fallback
|
|
4843
4841
|
* - `ink` → SVG ink strokes
|
|
4844
4842
|
* - `ole` → embedded-object preview / icon
|
|
4845
|
-
* - `model3d` →
|
|
4843
|
+
* - `model3d` → interactive three.js scene when the optional
|
|
4844
|
+
* `three` peer is present, else poster / placeholder
|
|
4846
4845
|
* - `zoom` → slide/section zoom thumbnail
|
|
4847
4846
|
* - `picture` / `image` → `<img>`
|
|
4848
4847
|
* - `media` → native `<video>`/`<audio>` playback, poster fallback
|
|
4849
4848
|
* - `group` → recursive children (self-referencing selector)
|
|
4850
|
-
* - everything else → labelled placeholder (
|
|
4851
|
-
*
|
|
4852
|
-
* Interaction (selection, resize, inline editing) is not yet ported.
|
|
4849
|
+
* - everything else → labelled placeholder (defensive fallback)
|
|
4853
4850
|
*/
|
|
4854
4851
|
declare class ElementRendererComponent {
|
|
4855
4852
|
readonly element: _angular_core.InputSignal<PptxElement>;
|
|
@@ -4962,7 +4959,7 @@ declare class ElementRendererComponent {
|
|
|
4962
4959
|
* Compound (double/triple) lines render as parallel strands and line caps map
|
|
4963
4960
|
* from `a:ln/@cap`; both derive from the shared connector geometry.
|
|
4964
4961
|
*
|
|
4965
|
-
* Not yet ported (TODO
|
|
4962
|
+
* Not yet ported (TODO): line shadows/glow.
|
|
4966
4963
|
*/
|
|
4967
4964
|
declare class ConnectorRendererComponent {
|
|
4968
4965
|
readonly element: _angular_core.InputSignal<PptxElement>;
|
|
@@ -5073,7 +5070,7 @@ declare class ChartRendererComponent {
|
|
|
5073
5070
|
* its text directly on the diagram. Everything that can be expressed as a pure
|
|
5074
5071
|
* function lives here so it can be unit-tested in plain vitest (the Angular
|
|
5075
5072
|
* package's vitest setup has no Angular compiler, so component/TestBed tests are
|
|
5076
|
-
* not available
|
|
5073
|
+
* not available). The component
|
|
5077
5074
|
* (`smart-art-renderer.component.ts`) stays thin: it owns only the edit-state
|
|
5078
5075
|
* signal, the positioned `<textarea>`, and the call into the existing commit
|
|
5079
5076
|
* path (`EditorStateService.updateElement`, the same channel the inspector's
|
|
@@ -5288,7 +5285,7 @@ interface InkStroke {
|
|
|
5288
5285
|
* radii follow the per-point pressure, matching React's `renderInk`. Strokes
|
|
5289
5286
|
* without pressure variation degrade to a plain constant-width `<path>`.
|
|
5290
5287
|
*
|
|
5291
|
-
* Not ported (TODO
|
|
5288
|
+
* Not ported (TODO): ink replay animation and the
|
|
5292
5289
|
* highlighter/eraser tool blend modes.
|
|
5293
5290
|
*
|
|
5294
5291
|
* All non-trivial pure computation lives in `ink-renderer-helpers.ts` (no
|
|
@@ -5916,7 +5913,6 @@ declare class PresentationOverlayComponent implements OnInit {
|
|
|
5916
5913
|
* Escape or clicking the ✕ button emits `closed`.
|
|
5917
5914
|
*
|
|
5918
5915
|
* Viewer-first scope: no drag-reorder, no context menu, no section grouping.
|
|
5919
|
-
* Those features are tracked in PORTING.md.
|
|
5920
5916
|
*
|
|
5921
5917
|
* Usage:
|
|
5922
5918
|
* ```html
|