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)
Note: Version bump only for package @motion-canvas/2d
3.17.1 (2024-08-17)
Bug Fixes
3.17.0 (2024-08-13)
Bug Fixes
- 2d: fix line tweening (#1075) (5c707c1), closes #1070
- 2d: fix stack overflow for Code (#1084) (0275101), closes #1056
- 2d: fix text alignment (#1061) (dd066c6)
- 2d: prevent invalid cache sizes (#1083) (19c26cf), closes #1033
Features
3.16.0 (2024-05-16)
Bug Fixes
- 2d: fix Code size calculation (#1025) (696fbad), closes #1024
- 2d: fix layout gap prop type (#1039) (944b48f), closes #1032
- 2d: fix shader destination uv (#1026) (b591c41), closes #1013
Features
- 2d: access vertex data of Polygons (#1045) (6bfc25f), closes #1041
- 2d: add camera node (#1019) (4ca346b)
- mathematical operations for vector signals (#1030) (c5b02d1), closes #967
3.15.2 (2024-04-02)
Note: Version bump only for package @motion-canvas/2d
3.15.1 (2024-03-21)
Note: Version bump only for package @motion-canvas/2d
3.15.0 (2024-03-21)
Bug Fixes
- 2d: fix code animations (#998) (d4e1c9a)
- 2d: fix spline warning for reactive points (#981) (d426508), closes #979
- 2d: respect offset in absolute positions (#987) (491080d)
- account for italic fonts in cache (#968) (abb0906), closes #934
Features
- 2d: add withDefaults helper (#982) (6bd072a)
- 2d: code bounding box helpers (#948) (0ffd56f)
- 2d: code range helpers (#947) (044c9ac)
- 2d: improve Code node (#989) (6e7aaf0)
- 2d: make Code not experimental (#1000) (aa871a1)
- 2d: make Polygon extend Curve (#961) (739c9fc)
- 2d: respect view's cache padding (#986) (6b2dab3)
- 2d: retain reactivity in code transitions (#990) (7ccc1c3)
- 2d: simplify highlighters (#1002) (8656336)
- 2d: support letter spacing in Code (#955) (2a87c37)
- 2d: universal getter for cardinal points (#988) (f7e53ec)
- improve error logs (#953) (3b528cc)
- new Code node (#946) (26e55a3)
3.14.2 (2024-02-08)
Note: Version bump only for package @motion-canvas/2d
3.14.1 (2024-02-06)
Bug Fixes
3.14.0 (2024-02-04)
Features
3.13.0 (2024-01-10)
Bug Fixes
Features
- ui: custom inspectors (#913) (6c54424)
- ui: scene graph (#909) (bf85c5b)
- ui: scene graph icons (#914) (e92ddef)
3.12.4 (2024-01-05)
Bug Fixes
Reverts
3.12.3 (2024-01-04)
Bug Fixes
- 2d: prevent src warnings in Icon and Latex (#899) (5eebab7)
- 2d: stop mutating children (#903) (f9552a8)
- ui: remember state of custom tabs (#900) (eac45b8)
3.12.1 (2023-12-31)
Note: Version bump only for package @motion-canvas/2d
3.12.0 (2023-12-31)
Bug Fixes
- 2d: account for offset in cardinal points (#883) (24da258), closes #882
- 2d: add missing middle property (#891) (61e2e96)
- 2d: calculate Txt cache bbox from contents (#836) (33e1a12), closes #465
- 2d: fix line jitter under certain conditions (#863) (fb110a2)
- 2d: fix tweening cardinal points (#829) (cc16737)
- support legacy imports again (#868) (77c4e2e)
Features
- 2d: add playbackRate signal to Video component (#831) (5902b82), closes #711
- 2d: add querying helpers (#852) (614de6b)
- 2d: clamp opacity value between 0 and 1 (#835) (c54b2f8), closes #830
- 2d: nested Txt nodes (#861) (f2786d0), closes #540
- 2d: support tweening in applyState (#859) (b7ed2e2)
- 2d: support tweening Line points (#853) (4bf37d7)
- better children and spawners (#858) (9b5c23d)
- improve image error handling (#847) (db09d53)
- introduce editor plugins (#879) (2b72007)
- ui: add custom presentation overlays (#884) (4696d3c), closes #825
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
- 2d: add missing Curve properties to Circle (#805) (38c7900)
- 2d: point arrow heads in correct direction (#792) (52ed52e), closes #783
Features
- 2d: add line counter for CodeBlock (#802) (c3f9676)
- 2d: add skew property (#803) (eff7c7b)
- 2d: add SVG component (#763) (8eadc11)
- 2d: warn about missing image source (#817) (6dcdb5f)
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.10.1 (2023-07-25)
Bug Fixes
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)
Features
- 2d: add Path component (#700) (2128b6b)
- 2d: add start and end signals to Grid node (#761) (e37ea80)
- 2d: always clip images and videos (#773) (3938c59)
- 2d: immediate restore (#736) (634d51d)
- 2d: make Circle extend Curve (#771) (4c8cf19)
- 2d: make Rect extend Curve (#759) (9810212)
- add coordinates to preview (#737) (330c1f9)
- add middle cardinal point (#758) (b036eaf)
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
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
- 2d: correctly support external image urls (#678) (a08556b), closes #677
- 2d: ignore children with disabled layout (#669) (b98c462), closes #580
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)
Note: Version bump only for package @motion-canvas/2d
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.6.2 (2023-05-09)
Bug Fixes
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
- 2d: correctly append Txt nodes to view (#644) (24bb51a)
- 2d: fix cyclic dependency in cardinal points (#645) (def23f9)
Features
- 2d: add arcLength helper methods to Curve (#627) (3c7546e)
- 2d: add cardinal points (#636) (2136a25), closes #391
- 2d: add completion property for curves (#635) (6577d6d)
- 2d: add Ray node (#628) (649447c)
- 2d: support HMR for images (#641) (cf17520)
- add DEG2RAD and RAD2DEG constants (#630) (01801e8)
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.5.1 (2023-04-08)
Bug Fixes
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.5.0 (2023-04-06)
Bug Fixes
- 2d: calculate arrow orientations for curves correctly (#597) (1626811)
- 2d: smoothly play videos when presenting (#600) (294fe6a), closes #578
- 2d: wait for reused async resources (#599) (280e065), closes #593
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)
Bug Fixes
- 2d: clone size correctly (#562) (cdd3df1), closes #559
- 2d: fix CodeBlock types (#563) (25160fa), closes #560
Features
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.3 (2023-03-18)
Bug Fixes
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.3.2 (2023-03-18)
Bug Fixes
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.3.1 (2023-03-18)
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
- 2d: better error handling (#524) (b7475ba)
- 2d: fix Txt decorators (#526) (25b30ed)
- 2d: textWrap not working in Firefox (#541) (f10e057), closes #517
- restrict size of cache canvas (#544) (49ec554)
Features
3.2.0 (2023-03-10)
Bug Fixes
Features
- 2d: add Polygon component (#463) (15adb3e), closes #455
- world space cache (#498) (633e9e1), closes #342
3.1.0 (2023-03-07)
Bug Fixes
- 2d: fix cache bbox for lines (#467) (9fd1444), closes #466
- 2d: fix letterSpacing (#448) (bb5ffc4), closes #447
- support multiple async players (#450) (d7ec469), closes #434
Features
3.0.2 (2023-02-27)
Bug Fixes
3.0.0 (2023-02-27)
Bug Fixes
- 2d: fix initial value of endOffset (#433) (9fe82b3)
- 2d: textDirection property for RTL/LTR text (#404) (f240b1b)
Code Refactoring
Features
Reverts
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)
Bug Fixes
Features
- 2d: add Icon Component (#306) (3479631), closes #305
- 2d: add save and restore methods to nodes (#406) (870e194)
- 2d: add z-index property to nodes (#398) (4280af3)
- add missing flexbox properties (#405) (4e78b4b)
- upgrade code-fns for new theme options and lazy loading (#401) (8965ab1), closes #396 #322
- vite-plugin: add CORS Proxy (#357) (a3c5822), closes #338
2.5.0 (2023-02-20)
Bug Fixes
- 2d: fix signal initialization (#382) (ea36e79)
- 2d: handle floating point errors in acos (#381) (5bca8fd)
- plug memory leaks (#385) (de0af00)
- support color to null tweening (#387) (02e9f22)
Features
2.4.0 (2023-02-18)
Bug Fixes
- 2d: fix Gradient and Pattern signals (#376) (6e0dc8a)
- 2d: fix layout calculation for nodes not explicitly added to view (#331) (528e2d5)
- 2d: format whitespaces according to HTML (#372) (83fb565), closes #370
- typo on codeblock remove comments (#368) (2025adc)
Features
- 2d: add default computed values for signals (#259) (18f61a6)
- 2d: add moveBelow, moveAbove and moveTo methods to Node (#365) (16752a3)
- 2d: unify layout properties (#355) (3cae97e), closes #352
2.3.0 (2023-02-11)
Bug Fixes
Features
- 2d: add antialiased signal to Shape (#282) (7c6905d)
- 2d: add LaTeX component (#228) (4c26d2a)
- 2d: add smooth corners and sharpness to rect (#310) (f7fbefd)
- added a theme property to the CodeBlock component (#279) (fe34fa8)
2.2.0 (2023-02-09)
Features
2.1.0 (2023-02-07)
Bug Fixes
- 2d: fix font ligatures in CodeBlock (#231) (11ee3fe)
- 2d: fix Line cache (#232) (a953b64), closes #205
- 2d: handle lines with no points (#233) (8108474), closes #212
- 2d: improve Rect radius (#221) (3437e42), closes #207
- 2d: stop code highlighting from jumping (#230) (67ef1c4)
- fix compound property setter (#218) (6cd1b95), closes #208 #210
2.0.0 (2023-02-04)
Bug Fixes
- 2d: add missing shape export (#111) (02a1fa7)
- 2d: fix import order (#94) (bcc0bcf), closes #76
- 2d: fix Line overview crashing (#142) (6bd5fd9)
- 2d: some signal setters not returning owners (#143) (09ab7f9)
- 2d: switch iframes to ShadowDOM (#90) (86176be)
- fix scaffolding (#93) (95c55ed)
- previous scene being rendered twice (#97) (90205bd)
- use correct scene sizes (#146) (f279638)
Code Refactoring
- remove legacy package (6a84120)
Features
- 2d: add methods for rearranging children (#81) (63f6c1a)
- 2d: add option for preformatted text (#147) (989be53)
- 2d: code selection and modification (#163) (e8e884a)
- 2d: construct lines using signals (#133) (2968a24)
- 2d: improve property declarations (27e7d26)
- 2d: improve Rect corner radius (#120) (b471fe0)
- 2d: simplify layout prop (c24cb12)
- 2d: unify desired sizes (#118) (401a799)
- 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 Grid node (e1f83da)
- add inspection (#82) (4d7f2ae)
- add markdown logs (#138) (e42447a)
- add missing layout props (#72) (f808a56)
- add node spawners (#149) (da18a4e)
- add polyline (#84) (4ceaf84)
- add random number generator (#116) (d505312), closes #14
- add reparent helper (80b95a9)
- add Text and Image components (#70) (85c7dcd)
- add video node (#86) (f4aa654)
- better dependencies between packages (#152) (a0a37b3)
- better dependencies between packages (#153) (59a73d4)
- core: switch to vitest (#99) (762eeb0), closes #48
- filter reordering (#119) (2398d0f)
- implement absolute scale setter (842079a)
- improve async signals (#156) (db27b9d)
- introduce basic caching (#68) (6420d36)
- 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)
- signal error handling (#89) (472ac65)
- simplify size access (#65) (3315e64)
- simplify size access further (#66) (9091a5e)
- switch to signals (#64) (d22d237)
- turn Layout into node (#75) (cdf8dc0)
- unify core types (#71) (9c5853d)
- unify references and signals (#137) (063aede)
Reverts
BREAKING CHANGES
- remove legacy package