playdough
v0.8.1
Published
Simple SVG library for interactive projects
Downloads
4
Readme
PlaydoughJS
Simple SVG library for interactive projects
See examples folder.
Importing
URL
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/main.js"></script>
const { Playdough } = PlaydoughJS
NPM
npm install playdough
import { Playdough } from 'playdough'
Philosophy
- The value of a framework is in the projects that have been made with it, not in the library.
- Maximize visual expression power.
- Focus on SVG’s unique strengths, not replicating canvas.
- Focus on the browser as an SVG presentation medium.
- The raw XML of the SVG is irrelevant. What matters is graphic output and performance.
- Embrace flatness and depth illusions over precise 3D methods.
- Animations are important.
- Interactivity is important. However, state management features are complex, therefore they should have a strict focus on visuality.
- Opinionated defaults and abstractions help reduce decision-making fatigue from the application developer.
- Explicit definitions might look slightly ugly sometimes, but ultimately they give flexibility for advanced use, and feeling of authority for light use.
- There is always a balance between modular and integrated approaches. The right answer is what is fun to use.