Skip to content

Visualize Your Ideas With Code

45.6 KB
Raw Blame

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

3.16.0 (2024-05-16)

Bug Fixes

Features

3.15.2 (2024-04-02)

Bug Fixes

3.15.1 (2024-03-21)

Bug Fixes

3.15.0 (2024-03-21)

Features

3.14.1 (2024-02-06)

Bug Fixes

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

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

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

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)

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

  • prevent consumePromises from halting (#657) (363a189)

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

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.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

3.2.0 (2023-03-10)

Features

3.1.0 (2023-03-07)

Bug Fixes

Features

3.0.0 (2023-02-27)

Bug Fixes

Code Refactoring

Features

BREAKING CHANGES

  • multiple name changes

To avoid collisions, names of certain classes have changed:

  • Text => Txt
  • Image => Img
  • Rect (type) => BBox

Cache related methods of Node have changed:

  • getCacheRect => getCacheBBox
  • cacheRect => cacheBBox
  • fullCacheRect => fullCacheBBox

The CodeBlock property has changed:

  • CodeBlock.selectionOpacity => CodeBlock.unselectedOpacity
  • makeProject no 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.5.0 (2023-02-20)

Bug Fixes

Features

2.4.0 (2023-02-18)

Bug Fixes

  • core: playback speed is reset after saving with faulty code (#204). (#339) (6771e5e)

Features

2.3.0 (2023-02-11)

Features

  • core: add debug helper 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

Features

2.0.0 (2023-02-04)

Bug Fixes

Features

Reverts

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: