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
- core: fix incorrect rollup ordering (4743b92)
3.17.0 (2024-08-13)
Bug Fixes
- 2d: support tweening emojis (#1085) (4a01a3a), closes #1066
- core: force valid chroma-js version (#1086) (6edcce3)
3.16.0 (2024-05-16)
Bug Fixes
Features
- mathematical operations for vector signals (#1030) (c5b02d1), closes #967
- signal effects (#1043) (00fa967), closes #945
3.15.2 (2024-04-02)
Bug Fixes
- 2d: fix transition scaling (#1017) (bccf8a9)
- core: reset playback state on presentation abort (#1016) (511231b)
3.15.1 (2024-03-21)
Bug Fixes
3.15.0 (2024-03-21)
Features
- 2d: code bounding box helpers (#948) (0ffd56f)
- core: add waitTransition (#983) (27f24e1)
- core: improve loop function (#952) (66c18bb)
- core: improve matrix to opengl conversion (#984) (2fadc88)
- core: improve Vector2 class (#985) (11ef7ea)
- core: spawn function (#951) (51d8cf0)
- improve error logs (#953) (3b528cc)
- new Code node (#946) (26e55a3)
3.14.1 (2024-02-06)
Bug Fixes
- improper cloning of custom fields (#925) (4981da7)
- limit fps to positive numbers (#937) (c7c0c67), closes #936
3.14.0 (2024-02-04)
Bug Fixes
Features
3.13.0 (2024-01-10)
Note: Version bump only for package @motion-canvas/core
3.12.1 (2023-12-31)
Bug Fixes
3.12.0 (2023-12-31)
Bug Fixes
Features
- 2d: nested Txt nodes (#861) (f2786d0), closes #540
- 2d: support tweening in applyState (#859) (b7ed2e2)
- add audio volume control through arrow keys (#856) (8b86fd4)
- add experimental features (#876) (498d387)
- core: add static properties to Vector2 corresponding to Origins (#855) (9bbd249), closes #844
- core: allow getting real size of scenes (#889) (3a6a672)
- core: allow ordering of scenes during transition (#832) (7a62b59), closes #369
- core: seek to beginning of timeline in disable loop mode (#823) (3595646), closes #822
- improve image error handling (#847) (db09d53)
- introduce editor plugins (#879) (2b72007)
- ui: small improvements (#833) (f44400c)
- ui: timeline scrubbing (#862) (211b9a4), closes #286
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)
Bug Fixes
Features
- core: hot module replacement for audio (#793) (d40c1a8)
- core: support Origin in slideTransition (#801) (0a3df28)
- ui: estimate remaining rendering time (#795) (1a46148), closes #784
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)
Bug Fixes
Features
- 2d: add Path component (#700) (2128b6b)
- add coordinates to preview (#737) (330c1f9)
- core: accept PossibleMatrix2D when transforming bbox (#770) (ae05282)
- core: add rotate and polarLerp methods to vector (#756) (a18bac3)
- core: helper methods for references (#775) (3255add)
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)
Bug Fixes
Features
- application settings (#697) (54016f5), closes #167
- core: add
gaussfunction toRandom(#709) (d7de3d5) - export everything from entry points (#710) (3c885d9)
- new plugin hooks (#723) (9a2b5ab)
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)
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)
Bug Fixes
Features
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.6.1 (2023-05-08)
Bug Fixes
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.6.0 (2023-05-08)
Bug Fixes
- core: clear DependencyContext promises once resolved (#617) (97b68da)
- core: fix snapshots (#638) (437cc5e)
Features
- 2d: add fromDegrees method to Vector2 (#622) (e78b9d5)
- add DEG2RAD and RAD2DEG constants (#630) (01801e8)
- core: add
loopForfunction (#650) (a42eb52) - core: add
loopUntilfunction (#624) (b7aa4b5) - core: add helper method for arc lerps (#640) (bc304d2)
- core: improve
SignalGeneratorchaining (#651) (de72f1f), closes #480 - core: thread pausing (#639) (c0aab58)
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
- auto meta fields (#565) (645af6d)
- core: expand Vector2 type (#579) (010bba5)
- plugin architecture (#564) (1c375b8)
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.3.4 (2023-03-19)
Bug Fixes
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)
- core: preserve custom fields in meta files (#534) (2e3e22e)
- core: tree shaking (#523) (65fec78)
- docs: fiddle editor (#542) (3c68fef)
- update vite from v3 to v4 (#495) (c409eee), closes #197
3.2.0 (2023-03-10)
Features
- display current package versions (#501) (2972f67)
- use PossibleVector2 in Vector2 methods (#478) (8ccb44a)
- world space cache (#498) (633e9e1), closes #342
3.1.0 (2023-03-07)
Bug Fixes
- core: fix playback state (#471) (1c259d0)
- core: fix relative time (#461) (8d4946e)
- support multiple async players (#450) (d7ec469), closes #434
Features
- core: add intersects method to BBox (#485) (604b0e7)
- core: presentation mode (#486) (c4f2e48)
- navigate to slide source (#490) (b5ae4bf)
3.0.0 (2023-02-27)
Bug Fixes
- core: clear semi-transparent backgrounds (#424) (1ebff1c), closes #423
- core: fix Vector2.exactlyEquals (#437) (028d264)
- core: render only within the range (#436) (36ccebe)
Code Refactoring
Features
BREAKING CHANGES
- multiple name changes
To avoid collisions, names of certain classes have changed:
Text => TxtImage => ImgRect (type) => BBox
Cache related methods of Node have changed:
getCacheRect => getCacheBBoxcacheRect => cacheBBoxfullCacheRect => fullCacheBBox
The CodeBlock property has changed:
CodeBlock.selectionOpacity => CodeBlock.unselectedOpacity
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
- 2d: add save and restore methods to nodes (#406) (870e194)
- vite-plugin: add CORS Proxy (#357) (a3c5822), closes #338
2.5.0 (2023-02-20)
Bug Fixes
- 2d: handle floating point errors in acos (#381) (5bca8fd)
- plug memory leaks (#385) (de0af00)
- support color to null tweening (#387) (02e9f22)
Features
- core: add fadeTransition (#384) (a248785)
- core: add spring interpolation (#356) (1463b15)
- core: add step parameter to range function (#373) (923209a)
2.4.0 (2023-02-18)
Bug Fixes
Features
- 2d: add default computed values for signals (#259) (18f61a6)
- core: add Matrix2D type (#340) (66b41e6)
- core: error double event name (#341) (053b2a6)
2.3.0 (2023-02-11)
Features
- core: add
debughelper function (#293) (b870873) - core: additional easing functions (#274) (f81ce43)
- core: disallow tweening to/from undefined values (#257) (d4bb791)
2.2.0 (2023-02-09)
Features
2.1.0 (2023-02-07)
Bug Fixes
- core: fix looping (#217) (a38e1a7), closes #178
- fix compound property setter (#218) (6cd1b95), closes #208 #210
Features
2.0.0 (2023-02-04)
Bug Fixes
- core: add missing type references (#41) (325c244)
- core: keep falsy values with deepTween (#45) (93c934f)
- empty time events crashing (a1c53de)
- fix scaffolding (#93) (95c55ed)
- fix tsdoc comments (#21) (4b6cb66), closes #18
- previous scene being rendered twice (#97) (90205bd)
- support hmr when navigating (370ea16)
- use correct scene sizes (#146) (f279638)
Features
- 2d: improve property declarations (27e7d26)
- 2d: improve Rect corner radius (#120) (b471fe0)
- add advanced caching (#69) (2a644c9)
- add base class for shapes (#67) (d38c172)
- add basic logger (#88) (3d82e86), closes #17
- add basic transform to Node class (#83) (9e114c8)
- add cloning (#80) (47d7a0f)
- add CodeBlock component based on code-fns to 2D (#78) (ad346f1)
- add default renderer (#63) (9255490), closes #56 #58
- add deprecation support (#130) (da0e104)
- add docs to monorepo (#22) (129d557)
- add E2E testing (#101) (6398c54), closes #42
- add Grid node (e1f83da)
- add inspection (#82) (4d7f2ae)
- add markdown logs (#138) (e42447a)
- add node spawners (#149) (da18a4e)
- add polyline (#84) (4ceaf84)
- add random number generator (#116) (d505312), closes #14
- add rendering again (#43) (c10d3db)
- add reparent helper (80b95a9)
- add scaffolding package (#36) (266a561), closes #30
- add Text and Image components (#70) (85c7dcd)
- add video node (#86) (f4aa654)
- added file type and quality options to rendering panel (#50) (bee71ef), closes #24
- better naming conventions (#62) (a9d764f)
- core: add configurable line numbers (#44) (831334c), closes #12
- core: switch to vitest (#99) (762eeb0), closes #48
- detect circular signal dependencies (#129) (6fcdb41)
- editor improvements (#121) (e8b32ce)
- extract konva to separate package (#60) (4ecad3c)
- implement absolute scale setter (842079a)
- improve async signals (#156) (db27b9d)
- introduce basic caching (#68) (6420d36)
- make exporting concurrent (4f9ef8d)
- make scenes independent of names (#53) (417617e), closes #25
- merge properties and signals (#124) (da3ba83)
- minor improvements (403c7c2)
- minor improvements (#77) (7c6e584)
- navigate to scene and node source (#144) (86d495d)
- new animator (#91) (d85f2f8)
- open time events in editor (#87) (74b781d)
- signal error handling (#89) (472ac65)
- simplify size access further (#66) (9091a5e)
- support for multiple projects (#57) (573752d), closes #141414
- support multiple players (#128) (24f75cf)
- switch to monorepo (6c8d190), closes #23 #86 #49
- switch to signals (#64) (d22d237)
- switch to Vite (#28) (65b9133), closes #141414 #13
- turn Layout into node (#75) (cdf8dc0)
- unify core types (#71) (9c5853d)
- unify references and signals (#137) (063aede)
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
- change names of timing and interpolation functions
TweenFunction is now called InterpolationFunction. Individual functions are
now called [type]Lerp instead of [type]Tween. For instance: colorTween is
now colorLerp.
InterpolationFunction is now called TimingFunction. This name is better
aligned with the CSS spec.
- 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: