vuexyz

Creative coding composables for Vue 3
1,140
Install
npm install vuexyz
Latest Version:1.3.168
Vue:3
License:MIT
Last Updated:Aug 21, 2024
Links: npm
Maintainer: marchantweb

VueXYZ

cover.png

npm package npm downloads

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.

Related Packages

@vt7/vue2-composables

Vue2 composables

592 1
@shopware/composables

Shopware Frontends composables for Vue

141,216 230
@tb-dev/vue

Vue utilities

12,617
@alis-build/vue-ideate

Vue 3 composables and components to help integrate Alis Ideate into your product...

2,053 0
@oiij/auto-router

Vue Router utilities and composables for Vue 3

1,394 1

Version History

Version Released Vue License
1.3.168 ^3.4.19 MIT
1.3.167 ^3.4.19 MIT
1.3.160 ^3.4.19 MIT
1.3.150 ^3.4.19 MIT
1.3.145 ^3.4.19 MIT