Skip to content

Visualize Your Ideas With Code

2.4 KB
Raw Blame
---
slug: version-2.6.0
title: Motion Canvas v2.6.0
authors: aarthificial
---

import IssueGroup from '@site/src/components/Release/IssueGroup';
import Issue from '@site/src/components/Release/Issue';
import Link from '@docusaurus/Link';
import CodeBlock from '@theme/CodeBlock';

<IssueGroup type={'feat'}>
  <Issue user={'ksassnowski'} pr={406}>
    You can now{' '}
    <Link to="/docs/tweening#saving-and-restoring-states">
      store the state of a node
    </Link>{' '}
    and restore it at a later point.
  </Issue>
  <Issue user={'Ross-Esmond'} pr={401}>
    <del>
      <Link to="/docs/code-block">
        <code>CodeBlock</code>
      </Link>{' '}
      is now exported together with other nodes. An improved theme system with
      the new{' '}
      <Link>
        <code>stockTheme</code>
      </Link>{' '}
      property lets you use VS Code themes (powered by{' '}
      <Link to="https://shiki.matsu.io/">Shiki</Link>)
    </del>
  </Issue>
  <Issue user={'aarthificial'} pr={405}>
    New{' '}
    <Link to="/api/2d/components/Layout#alignContent">
      <code>alignContent</code>
    </Link>{' '}
    and{' '}
    <Link to="/api/2d/components/Layout#alignItems">
      <code>alignItems</code>
    </Link>
    Flexbox properties.
  </Issue>
  <Issue user={'ksassnowski'} pr={398}>
    New{' '}
    <Link to="/api/2d/components/Node#zIndex">
      <code>zIndex</code>
    </Link>{' '}
    property allows you to change the rendering order of child nodes, without
    rearranging the hierarchy.
  </Issue>
  <Issue user={'WaldemarLehner'} pr={306}>
    New{' '}
    <Link to="/api/2d/components/Icon">
      <code>Icon</code>
    </Link>{' '}
    node:
    <CodeBlock language={'tsx'} className="margin-top--sm margin-bottom--sm">
      {`<Icon icon={"mdi:typewriter"} size={200} color="white" />`}
    </CodeBlock>
    Check out <Link to="https://icones.js.org/collection/all">Icônes</Link> for
    the list of all possible icons.
  </Issue>
  <Issue user={'WaldemarLehner'} pr={357}>
    Images can now be loaded from the internet. For images with incompatible
    CORS headers, a new <Link to="/docs/configuration#proxy">CORS Proxy</Link>{' '}
    can be enabled.
  </Issue>
  <Issue user={'aarthificial'} pr={410}>
    New look for the release blog.
  </Issue>
</IssueGroup>
<hr />
<IssueGroup type={'fix'}>
  <Issue user={'aarthificial'} pr={407}>
    Handle division by zero in lines
  </Issue>
</IssueGroup>