New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

konva

Package Overview
Dependencies
Maintainers
1
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

konva - npm Package Versions

1
22

8.0.0

Diff

Changelog

Source

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.
  • All "content" events from Konva.Stage are removed. E.g. instead of contentMousemove just use mousemove event.

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 events 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
lavrton
published 8.0.0-2 •

lavrton
published 8.0.0-1 •

lavrton
published 8.0.0-0 •

lavrton
published 7.2.5 •

Changelog

Source

7.2.5

  • Fix transform update on letterSpacing change of Konva.Text
lavrton
published 7.2.4 •

Changelog

Source

7.2.4

  • Fix wrong mouseleave trigger for Konva.Stage
lavrton
published 7.2.3 •

Changelog

Source

7.2.3

  • Fix transformer rotation when parent of a node is rotated too.
lavrton
published 7.2.2 •

Changelog

Source

7.2.2

  • Fix wrong size calculations for Konva.Line with tension
  • Fix shape.intersects() behavior when a node is dragged
  • Fix ellipsis rendering for Konva.Text
lavrton
published 7.2.1 •

Changelog

Source

7.2.1

  • Fix correct rendering of Konva.Label when heigh of text is changed
  • Fix correct transformstart and transformend events when several nodes are attached with Konva.Transformer
lavrton
published 7.2.0 •

Changelog

Source

7.2.0

  • New property fillAfterStrokeEnabled for Konva.Shape. See API docs for more information.
  • Fix for Konva.Transformer when it may fail to draw.
  • Fix rendering of TextPath one more time.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc