Visualize Your Ideas With Code
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.17.2 (2024-12-14)
Bug Fixes
3.17.0 (2024-08-13)
Features
3.15.1 (2024-03-21)
Bug Fixes
3.14.1 (2024-02-06)
Bug Fixes
3.14.0 (2024-02-04)
Features
3.13.0 (2024-01-10)
Note: Version bump only for package @motion-canvas/vite-plugin
3.12.3 (2024-01-04)
Note: Version bump only for package @motion-canvas/vite-plugin
3.12.2 (2023-12-31)
Bug Fixes
3.12.1 (2023-12-31)
Bug Fixes
3.12.0 (2023-12-31)
Bug Fixes
- exclude preact from optimizations (#894) (15687cc)
- vite-plugin: create empty output directory if not exist (#787) (20cceef)
- vite-plugin: handle unusual characters in file names (#821) (1e57497), closes #764
Features
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.11.0 (2023-10-13)
Features
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.10.0 (2023-07-23)
Note: Version bump only for package @motion-canvas/vite-plugin
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.9.0 (2023-05-29)
Features
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.8.0 (2023-05-13)
Bug Fixes
Features
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.7.0 (2023-05-10)
Features
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.4.0 (2023-03-28)
Features
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.3.0 (2023-03-18)
Bug Fixes
Features
- add option to group output by scenes (#477) (9934593)
- update vite from v3 to v4 (#495) (c409eee), closes #197
3.2.0 (2023-03-10)
Features
3.1.0 (2023-03-07)
Note: Version bump only for package @motion-canvas/vite-plugin
3.0.0 (2023-02-27)
Features
BREAKING CHANGES
makeProjectno longer accepts some settings.
Settings such as background and audioOffset are now stored in the project
meta file.
2.6.0 (2023-02-24)
Features
2.4.0 (2023-02-18)
Bug Fixes
2.2.0 (2023-02-09)
Note: Version bump only for package @motion-canvas/vite-plugin
2.1.0 (2023-02-07)
Bug Fixes
2.0.0 (2023-02-04)
Code Refactoring
- remove legacy package (6a84120)
Features
- add markdown logs (#138) (e42447a)
- add rendering again (#43) (c10d3db)
- add scaffolding package (#36) (266a561), closes #30
- detect circular signal dependencies (#129) (6fcdb41)
- extract konva to separate package (#60) (4ecad3c)
- make exporting concurrent (4f9ef8d)
- make scenes independent of names (#53) (417617e), closes #25
- navigate to scene and node source (#144) (86d495d)
- support for multiple projects (#57) (573752d), closes #141414
- support multiple players (#128) (24f75cf)
- switch to Vite (#28) (65b9133), closes #141414 #13
- vite-plugin: improve audio handling (#154) (482f144)
Reverts
- "ci(release): 9.1.3 [skip ci]" (62953a6)
- ci(release): 1.0.1 [skip ci] (#175) (161a046)
- ci(release): 2.0.0 [skip ci] (#176) (551096b)
BREAKING CHANGES
- remove legacy package
- change to import paths
See the migration guide for more info.
- change the way scenes are imported
Scene files no longer need to follow the pattern: [name].scene.tsx. When
importing scenes in the project file, a dedicated ?scene query param should be
used:
import example from './scenes/example?scene';
export default new Project({
name: 'project',
scenes: [example],
});
- change the overall structure of a project
vite and @motion-canvas/vite-plugin packages are now required to build a
project:
npm i -D vite @motion-canvas/vite-plugin
The following vite.config.ts file needs to be created in the root of the
project:
import {defineConfig} from 'vite';
import motionCanvas from '@motion-canvas/vite-plugin';
export default defineConfig({
plugins: [motionCanvas()],
});
Types exposed by Motion Canvas are no longer global. An additional
motion-canvas.d.ts file needs to be created in the src directory:
/// <reference types="@motion-canvas/core/project" />
Finally, the bootstrap function no longer exists. Project files should export
an instance of the Project class instead:
import {Project} from '@motion-canvas/core/lib';
import example from './scenes/example.scene';
export default new Project({
name: 'project',
scenes: [example],
// same options as in bootstrap() are available: