Files
powerpoint-toolbox/docs/powerpoint-toolbox-uml-index.md
T
schihei 89989c04e9
CI / build (push) Canceled after 0s
Modernize platform, structure, and UX
Phase 3:
- Declare PowerPointApi 1.5 and replace template manifest values
- Remove the dead command pipeline and the tracked Babel/polyfill setup
- Extract constants, status/settings contexts, PowerPoint services, and an error boundary
- Build with ES2020 and strict TypeScript; hash production assets and drop prod source maps
- Add Vitest tests, CI, LICENSE, Node 20 pinning, and prune unused dependencies
- Correct the README, user guide, developer guide, and audit notes

Phase 4:
- Add a persisted 16:9/4:3 slide size setting used by all layout tools
- Add dark mode with Office/system theme detection
- Make sections collapsible and move to accessible Fluent controls
- Announce status through aria-live and add semantic status icons
- Add a progress counter with cooperative cancellation and a Stop button
- Update the tracked dependency tree for the pruned packages
2026-11-25 12:01:40 +01:00

2.7 KiB

PowerPoint Toolbox UML Diagrams

This document serves as an index for the UML diagrams created for the PowerPoint toolbox add-in repository.

Note: These diagrams were created before the v1.2.0 context/service refactoring. They remain useful as a high-level overview, but the current source tree (and docs/DEVELOPERS.md) is authoritative.

Available Diagrams

  1. Component Relationships - Shows the relationships between React components and their interactions.

  2. Project Structure - Illustrates the file and directory organization of the repository.

  3. Data Flow - Demonstrates the flow of data and interactions between components and the PowerPoint API.

Repository Overview

The PowerPoint toolbox add-in is a Microsoft Office add-in built with React and TypeScript that provides various tools for enhancing PowerPoint presentations. The add-in is structured as follows:

Key Technologies

  • React: For building the user interface
  • TypeScript: For type-safe JavaScript development
  • Office JS API: For interacting with PowerPoint
  • Fluent UI: For consistent Microsoft-style UI components
  • Webpack: For bundling and building the application

Architecture Highlights

  • Component-Based Structure: The application is organized into reusable UI components
  • Context API for State Management: StatusContext (status/progress/cancellation) and SettingsContext (slide size)
  • Service Layer: Batched PowerPoint operations and pure helpers live in src/taskpane/services/
  • Unidirectional Data Flow: Data flows from user interaction through services to PowerPoint and back
  • Centralized Error Handling: Errors are reported through the Status Context and an error boundary

Main Features

The add-in provides tools for:

  • Matching sizes and properties between shapes
  • Rounding image corners
  • Swapping positions of shapes
  • Inserting title slides
  • Adding confidential markings and draft watermarks
  • Managing progress bars
  • Aligning shapes
  • Managing grid guidelines

How to View the Diagrams

Each diagram is contained in a separate Markdown file with embedded Mermaid syntax. To view the diagrams:

  1. Open the desired diagram file in a Markdown viewer that supports Mermaid diagrams (such as GitHub, VS Code with the Mermaid extension, or any Mermaid-compatible viewer).

  2. The diagrams will render automatically in compatible viewers.

Diagram Types

  • Class Diagrams: Used for component relationships and project structure
  • Sequence Diagrams: Used for data flow and interaction patterns
  • Flowcharts: Used for component communication patterns