- Simplified line strip rendering;
TransparentLineStrip
andOpaqueLineStrip
are deprecated.
- Renamed
Grid.info
andOrthoAxis.info
toGrid.computed
andOrthoAxis.computed
respectively. - Added support for using multiple draw calls per primitive. If you've been
using a custom primitive, you'll need to do the following:
- Rename your
command
function tocommands
. - Return a
Record<string, DrawCommand>
fromcommands
, where the string is a name you give each command. The exported type aliasNamedDrawCommands
resolves to this type. - Update your primitive's
render
function to accept aNamedDrawCommands
and use the names you provided to find theDrawCommand
you need.
- Rename your
- Added the
TransparentLineStrip
primitive that allows rendering line strips with alpha and avoids the overlap artifacts present inLineStrip
. - Added the
OpaqueLineStrip
primitive and a deprecation warning when usingLineStrip
.
(#44)
- Refactored all resources from the "create" pattern to classes instantiated
with
new
. E.g.,createLineStrip(...)
is nownew LineStrip(...)
. (#42)
- Fixed the blending so that compositing with the webpage looks correct. While technically a bugfix, we can't be sure people haven't come to rely on the previous blending, so this is a zero-based major version bump. (#41)
- Cartesian and polar coordinate systems now allow their scopes to be garbage collected, removing a memory leak. This requires that a CandyGraph object be provided upon creation. (#37)
- Fix an error when trying to create text that contains chars that are not encoded in the given font (#31)
- Removed the memory management mechanics around
retain()
. All renderables are now retained by default. Renderables that go out of scope will be garbage collected, or one may call their associateddispose()
functions to perform an immediate manual cleanup. (#26)