Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github May 24, 2021

Bumps konva from 7.2.5 to 8.0.1.

Changelog

Sourced from konva's changelog.

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

8.0.0

This is a very large release! The long term of Konva API is to make it simpler and faster. So when possible I am trying to optimize the code and remove unpopular/confusing API methods.

BREAKING:

  • Konva.Collection is removed. container.children is a simple array now. container.find() will returns an array instead of Konva.Collection() instance. Konva.Collection was confusing for many users. Also it was slow and worked with a bit of magic. So I decided to get rif of it. Now we are going to use good old arrays.
// old code:
group.find('Shape').visible(false);
// new code:
group.find('Shape').forEach((shape) => shape.visible(false));

  • argument selector is removed from node.getIntersection(pos) API. I don't think you even knew about it.
  • Konva.Util.extend is removed.

New features:

  • All updates on canvas will do automatic redraw with layer.batchDraw(). This features is configurable with Konva.autoDrawEnabled property. Konva will automatically redraw layer when you change any property, remove or add nodes, do caching. So you don't need to call layer.draw() or layer.batchDraw() in most of the cases.
  • New method layer.getNativeCanvasElement()
  • new flipEnabled property for Konva.Transformer
  • new node.isClientRectOnScreen() method
  • Added Konva.Util.degToRad and Konva.Util.radToDeg
  • Added node.getRelativePointerPosition()

Changes and fixes:

  • Full migration to ES modules package (!), commonjs code is removed.
  • konva-node is merged into konva npm package. One package works for both environments.
  • Full event system rewrite. Much better pointer evens support.
  • Fix TextPath recalculations on fontSize change
  • Better typescript support. Now every module has its own *.d.ts file.
  • Removed Konva.UA, Konva._parseUA (it was used for old browser detection)
  • Fixed Arrow head position when an arrow has tension
  • textPath.getKerning() is removed
  • Fix a command parsing for Konva.Path
  • Fix fill pattern for Konva.Text when the pattern has an offset or rotation
  • Konva.names and Konva.ids are removed
  • Konva.captureTouchEventsEnabled is renamed to Konva.capturePointerEventsEnabled
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [konva](https://github.com/konvajs/konva) from 7.2.5 to 8.0.1.
- [Release notes](https://github.com/konvajs/konva/releases)
- [Changelog](https://github.com/konvajs/konva/blob/master/CHANGELOG.md)
- [Commits](konvajs/konva@7.2.5...8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant