UNPKG

@spidunno/motion-canvas-graphing

Version:

Render expressions onto a graph (along with various other math utilities). Graphing powered by Desmos. ## Installation `npm install @spidunno/motion-canvas-graphing` ## Example All math components must be descendants of a `MathSpace` component. The `MathS

20 lines (18 loc) 508 B
import {defineConfig} from 'vite'; import motionCanvas from '@motion-canvas/vite-plugin'; import tsconfigPaths from 'vite-tsconfig-paths'; import path from 'node:path'; export default defineConfig({ plugins: [ tsconfigPaths(), motionCanvas({ project: ['./test/src/project.ts'], }), ], resolve: { alias: { '@motion-canvas/core': path.resolve('./node_modules/@motion-canvas/core'), '@motion-canvas/2d': path.resolve('./node_modules/@motion-canvas/2d'), }, }, });