Skip to content
This repository was archived by the owner on Mar 25, 2022. It is now read-only.

Update dependency konva to v8#64

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/konva-8.x
Open

Update dependency konva to v8#64
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/konva-8.x

Conversation

@renovate

@renovate renovate Bot commented May 21, 2021

Copy link
Copy Markdown
Contributor

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
konva (source) ^7.0.0 -> ^8.0.0 age adoption passing confidence

Release Notes

konvajs/konva

v8.3.5

Compare Source

  • Quick fix for toCanvas() and toDataURL() size calculation.

v8.3.4

Compare Source

  • Fix characters positions calculations on fontFamily changes in TextPath.
  • Remove rounding in node.getClientRect() results
  • Fix event object on transformstart event.

v8.3.3

Compare Source

  • Fix justify align for text with several paragraphs.

v8.3.2

Compare Source

  • Remove source maps for webpack builds

v8.3.1

Compare Source

  • Fix dbltap event in Safari
  • A bit faster node.moveToTop() when node is already on top
  • Better client rect calculations for Konva.Arc shape.

v8.3.0

Compare Source

  • new transformer.anchorDragBoundFunc method.

v8.2.4

Compare Source

  • Fix not working Konva.Transformer when several transformers were used

v8.2.3

Compare Source

v8.2.2

Compare Source

  • Fix Konva.Arrow rendering when it has two pointers

v8.2.1

Compare Source

  • Fix package.json exports.

v8.2.0

Compare Source

  • Restore build in CommonJS. const Konva = require('konva/cmj').default;
  • Fix arrow rendering when dash is used
  • Fix dbltap trigger when multi-touch is used

v8.1.4

Compare Source

  • Fix dblclick event when cancelBubble is used.

v8.1.3

Compare Source

  • Fix fillPattern cache invalidation on shapes

v8.1.2

Compare Source

  • Fix memory leak for Konva.Image

v8.1.1

Compare Source

  • Fix Konva.Transformer dragging draw when shouldOverdrawWholeArea = true.
  • Fix auto redraw when container.removeChildren() or container.destroyChildren() are used

v8.1.0

Compare Source

  • New property useSingleNodeRotation for Konva.Transformer.

v8.0.4

Compare Source

  • Fix fill pattern updates on fillPatternX and fillPatternY changes.

v8.0.3

Compare Source

v8.0.2

Compare Source

  • Fix some transform caches
  • Fix cache with hidden shapes

v8.0.1

Compare Source

  • Some typescript fixes

v8.0.0

Compare Source

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

v7.2.5

Compare Source

  • Fix transform update on letterSpacing change of Konva.Text

v7.2.4

Compare Source

  • Fix wrong mouseleave trigger for Konva.Stage

v7.2.3

Compare Source

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

v7.2.2

Compare Source

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

v7.2.1

Compare Source

  • 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

v7.2.0

Compare Source

  • 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.

v7.1.9

Compare Source

  • Fix autodrawing for Konva.Transformer when it is on a different layer
  • Fix Konva.RegularPolygon size calculations.

v7.1.8

Compare Source

  • Fix incorrect rendering of TextPath in some cases. (again)

v7.1.7

Compare Source

  • Fix incorrect rendering of TextPath in some cases.

v7.1.6

Compare Source

  • Fix for correct image/dataURL/canvas exports for Konva.Stage.

v7.1.5

Compare Source

  • Performance fixes for dragging many nodes with Konva.Transformer.
  • Documentation updates

v7.1.4

Compare Source

  • Perf fixes
  • Change events trigger flow, so adding new events INSIDE event callback will work correctly.
  • Fix double dragend, dragstart, dragmove triggers on Konva.Transformer

v7.1.3

Compare Source

  • Text rendering fixes

v7.1.2

Compare Source

  • fix ellipses behavior for Konva.Text.
  • fix scaled fill pattern for text.

v7.1.1

Compare Source

  • fixes for dragstart event when Konva.Transformer is used. dragstart event will have correct native evt reference
  • Better unicode support in Konva.Text and Konva.TextPath. Emoji should work better now 👍

v7.1.0

Compare Source

  • Multi row support for ellipsis config for Konva.Text
  • Better Konva.Transfomer behavior when single attached node is programmatically rotated.

v7.0.7

Compare Source

  • fixes for dragstart event when Konva.Transformer is used. dragstart will not bubble from transformer.
  • string and fill properties validation can accept CanvasGradient as valid value

v7.0.6

Compare Source

  • Better performance for stage dragging

v7.0.5

Compare Source

  • Fixes for node.cache() function.

v7.0.4

Compare Source

  • Add onUpdate callbacks to Konva.Tween configuration and node.to() method.
  • Up to 6x faster initializations of objects, like const shape = new Konva.Shape().

v7.0.3

Compare Source

  • Fix wring dragend trigger on draggable property change inside click
  • Fix incorrect text rendering with letterSpacing !== 0
  • Typescript fixes

v7.0.2

Compare Source

  • Fix wrong trigger dbltap and click on mobile

v7.0.1

Compare Source

  • Fixes for different font families support.
  • Fixes for Konva.Transformer positions
  • Types fixes for better Typescript support

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants