1.3.168 β€’ Published 10 months ago

vuexyz v1.3.168

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

VueXYZ

cover.png

VueXYZ is a collection of Vue 3 composables for creative coding.

VueXYZ is a collection of Vue composables for creative coding. Unlike other creative coding libraries that simplify rendering to a canvas, VueXYZ doesn't render anything for you. Instead, the composables return reactive data that you can use as you see fit.

You may decide to take the data and render it to canvas or SVG, or you might use it to drive animations, or anything else. You could chain multiple composables together to create complex shapes or compounded effects. The choice is yours.

Documentation: https://vuexyz.org

πŸš€ Features

  • πŸ’Ž Composables for 2D primitives like circles, triangles, pentagons, etc.
  • ✨ Additional non-polygonal primitives like arcs, bΓ©zier curves, etc.
  • πŸ“ Composables return reactive data for vertices, edges, faces, etc.
  • πŸ– Helpers for rendering primitives to SVG, canvas and Three/Tres
  • πŸŽ›οΈ Utility methods for performing calculations on primitive data.
  • πŸ”₯ Built for the Vue 3 Composition API.
  • ⚑ Fully tree shakeable: Only use the composables you care about.
  • πŸ“’ Type strong with TypeScript.
  • 🎨 Detailed documentation & interactive demos for all primitives.

Example Usage

const { vertices, edges, faces } = useTriangle({ sideLength: 100})

// vertices: [ { x, y, z }, { x, y, z }, { x, y, z } ... ]

πŸ“¦ Install

Install VueXYZ with just a single line in your project:

npm install vuexyz

Links


πŸ“„ License

Copyright (c) 2024 Simon Le Marchant (Marchant Web, LLC.)

VueXYZ is licensed under the MIT License. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

1.3.168

10 months ago

1.3.167

12 months ago

1.3.145

12 months ago

1.3.160

12 months ago

1.3.150

12 months ago

1.3.143

1 year ago

1.3.121

1 year ago

1.3.128

1 year ago

1.3.130

1 year ago

1.3.105

1 year ago

1.3.84

1 year ago

0.2.142

1 year ago

0.2.141

1 year ago

0.2.140

1 year ago

0.2.138

1 year ago

0.2.136

1 year ago