Scrawl Canvas Versions Save

Responsive, interactive and more accessible HTML5 canvas elements. Scrawl-canvas is a JavaScript library designed to make using the HTML5 canvas element easier, and more fun

v8.9.9

1 year ago

Breaking changes:

None

New functionality:

None

Improvements:

None

Bugfixes:

  • Fix issues in package.json - main attribute was pointing at the wrong file

Full Changelog: https://github.com/KaliedaRik/Scrawl-canvas/compare/v8.9.8...v8.9.9

v8.9.8

1 year ago

Breaking changes:

None

New functionality:

None

Improvements:

None

Bugfixes:

  • Fix issues in package.json causing bundle failure (Rollup)
  • Fix bug in /factory/filter.js which was erroring in Rollup build

Full Changelog: https://github.com/KaliedaRik/Scrawl-canvas/compare/v8.9.7...v8.9.8

v8.9.7

1 year ago

Breaking changes:

None

New functionality:

Simplified SC Library management by introducing a new library.purge(string) function

  • When combined with recommended name-spacing strategies (place the namespace string at the start of the names of all objects created for that namespace), this function will clear all objects starting with the namespace String from the library by triggering their kill() functionality.
  • Tested in updated demos Canvas-043 and Canvas-046
  • Demos Canvas-001 to Canvas-030 updated to demonstrate the recommended name-spacing strategy

Improvements:

  • Added a new ordered dithering option to the reducePalette filter
  • Expanded the RandomNoise filter so that it can randomize pixels based on the bluenoise and ordered pseudo-random number arrays
  • Added a new demo Filters-028 to test stencil (background) filter functionality

Bugfixes:

  • Small bug that was causing errors if an animated sprite was not played immediately after its creation - fixed
  • Small bug in the Picture entity kill functionality which was also deleting the Picture's Asset (when not requested) - fixed
  • 2 Dependabot security PRs merged

Security

Changelog

Full Changelog: https://github.com/KaliedaRik/Scrawl-canvas/compare/v8.9.6...v8.9.7

v8.9.6

1 year ago

Breaking changes:

None

New functionality:

None

Improvements:

None

Bugfixes:

  • Fix issues affecting package.json

Full Changelog: https://github.com/KaliedaRik/Scrawl-canvas/compare/v8.9.5...v8.9.6

v8.9.5

1 year ago

Breaking changes:

Minor breaking changes to the Reduce Palette filter

New functionality:

None

Improvements:

  • Updated package.json to include "type": "module" attribute

Bugfixes:

  • Minor fixes to the Reduce Palette filter

Full Changelog: https://github.com/KaliedaRik/Scrawl-canvas/compare/v8.9.4...v8.9.5

v8.9.4

1 year ago

Breaking changes:

None

New functionality:

None

Improvements:

  • New color spaces support: OKLAB, OKLCH

Bugfixes:

  • Minor demo updates to accommodate new color spaces

Full Changelog: https://github.com/KaliedaRik/Scrawl-canvas/compare/v8.9.3...v8.9.4

v8.9.3

1 year ago

Breaking changes:

None

New functionality:

  • New tiles filter
  • New newsprint filter
  • New compound filter demos

Improvements:

  • New noTarget attribute for makeRender factory. By default, render objects created with no target Canvas/Stack wrappers will use the SC default clear/compile/show functions to render all Canvas/Stack elements on the page. Setting the noTarget attribute to true will prevent this happening.

Bugfixes:

  • Fix bugs in the blend and compose filters
  • Fix Group.getArtefact()
  • Fix Cell Display cycle rendering to remove unnecessary function calls

Full Changelog: https://github.com/KaliedaRik/Scrawl-canvas/compare/v8.9.2...v8.9.3

v8.9.2

1 year ago

Breaking changes:

None

New functionality:

Artefact attribute order now split into new processingOrder and stampOrder attributes. Artefacts that are used by other artefacts for positional data, and thus need to be calculated first, but also need to display over the top of those other artefacts, can split their ordering values accordingly. Setting order (which is now a pseudo-attribute) will set both new attributes to the supplied value. Getting order will return the stampOrder value

Improvements:

The reduce-palette and corrode filters have been rewritten to make them more efficient, and faster

Bugfixes:

None

Full Changelog: https://github.com/KaliedaRik/Scrawl-canvas/compare/v8.9.1...v8.9.2

v8.9.1

1 year ago

Breaking changes:

None

New functionality:

New makeKeyboardZone to improve the developer experience of adding keyboard events to Canvas and Stack wrappers and their DOM elements

Improvements:

Extended the functionality of makeDragZone so multiple drag zones set on a Canvas or Stack wrapper can be ordered by priority. Shift + mouse drag-drop events are now supported

Bugfixes:

Fixed some minor bugs surrounding accessibility.

Full Changelog: https://github.com/KaliedaRik/Scrawl-canvas/compare/v8.9.0...v8.9.1

v8.9.0

2 years ago

Scrawl-canvas v8.9.0

Breaking changes:

Scrawl-canvas will no longer process all <canvas> elements that it discovers on first run. Instead elements must be specifically marked with an attribute - data-scrawl-canvas - if they are to be processed by the library. This is to prevent the library interfering with <canvas> elements required by third party libraries (eg: Chart.js), or added to the page by third party libraries during page load (eg: PixiJS).

In a similar vein, the attribute data-stack changes to data-scrawl-stack.

New functionality:

None

Improvements:

None

Bugfixes:

Fixed some Safari-specific bugs; some limitations imposed on Safari (eg: memoizing filters) have been lifted.

Full Changelog: https://github.com/KaliedaRik/Scrawl-canvas/compare/v8.8.2...v8.9.0