mirror of
https://github.com/konvajs/konva.git
synced 2025-11-24 08:46:44 +08:00
5.1 KiB
5.1 KiB
Change Log
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
[Not released][Not released]
Added
- RGBA filter. Thanks to @codefo
Fixed
- Correct calculation in
getClientRectmethod ofKonva.LineandKonva.Container. - Correct
toObject()behaviour for node with attrs with extended native prototypes - Fixed bug for caching where buffer canvas is required
Changed
- Dragging now works much better. If your pointer is out of stage content dragging will still continue.
Konva.Node.createnot works with objects.Konva.Tweennow supports tweening points to state with different length
[0.9.5][2015-05-28]
Fixed
todon't throw error if noonFinishcallback- HDPI support for desktop
- Fix bug when filters are not correct for HDPI
- Fix bug when hit area is not correct for HDPI
- Fix bug for incorrect
getClientRectcalculation - Repair fill gradient for text
Changed
- context wrapper is more capable with native context.
So you can use
context.fillStyleproperty in yoursceneFuncwithout accessing native context. toDataURLnow handle pixelRatio. you can passconfig.pixelRatioargument- Correct
clone()for custom nodes FastLayernow can have transformsstage.toDataURL()method now works in synchronous way. Socallbackargument is not required.container.find(selector)method now have validation step. So if you forgot to add#or.you will see a warning message in the console.
Added
- new
Konva.Image.fromURLmethod
Deprecated
fillRed,fillGreen,fillBlue,fillAlphaare deprecated. Usefillinstead.strokeRed,strokeGreen,strokeBlue,strokeAlphaare deprecated. Usestrokeinstead.shadowRed,shadowGreen,shadowBlue,shadowAlphaare deprecated. Useshadowinstead.dashArrayis deprecated. Usedashinstead.drawFuncis deprecated. UsesceneFuncinstead.drawHitFuncis deprecated. UsehitFuncinstead.rotateDegis deprecated. Userotateinstead.
[0.9.0][2015-02-27]
Fixed
- cache algorithm has A LOT OF updates.
Changed
scalenow affectshadowOffset- performance optimization (remove some unnecessary draws)
- more expected drawing when shape has opacity, stroke and shadow
- HDPI for caching.
- Cache should work much better. Now you don't need to pass bounding box {x,y,width,height} to
cachemethod for all buildin Konva shapes. (only for your customKonva.Shapeinstance). Tweennow supports color properties (fill,stroke,shadowColor)
Added
- new methods for working with node's name:
addName,removeName,hasName. - new
perfectDrawEnabledproperty for shape. See http://konvajs.github.io/docs/performance/Disable_Perfect_Draw.html - new
shadowForStrokeEnabledproperty for shape. See http://konvajs.github.io/docs/performance/All_Performance_Tips.html - new
getClientRectmethod. - new
tomethod for every nodes for shorter tweening
[0.8.0] - 2015-02-04
- Bug Fixes
- fixed when browser is crashing on pointer events fixed
- optimized
getIntersectionfunction
- Enhancements
container.findOne()method- new
strokeHitEnabledproperty. Useful for performance optimizations - typescript definitions. see
/resources/konva.d.ts
Rebranding release 2015-01-28
Differents from last official KineticJS release
-
Bug Fixes
strokeScaleEnabled = falseis disabled for text as I can not find way to implement thisstrokeScaleEnabled = falsefor Line now create correct hit graph- working "this-example" as name for nodes
- Konva.Text() with no config don't throws exception
- Konva.Line() with no config don't throws exception
- Correct stage resizing with
FastLayer batchDrawmethod forFastLayer- Correct mouseover/mouseout/mouseenter/mouseleave events for groups
- cache node before adding to layer
intersectsfunction now works for shapes with shadow
-
Enhancements
cornerRadiusof Rect is limited bywidth/2andheight/2blackis default fill for text- true class extending. Now
rect instanceOf Konva.Shapewill return true - while dragging you can redraw layer that is not under drag. hit graph will be updated in this case
- now you can move object that is dragging into another layer.
- new
frameOffsetsattribute forKonva.Sprite - much better dragging performance
browserifysupport- applying opacity to cached node
- remove all events with
node.off() - mouse dragging only with left button
- opacity now affect cached shapes
- Label corner radius
- smart changing
width,height,radiusattrs for circle, start, ellipse, ring. mousewheelsupport. Thanks @vmichnowicz- new Arrow plugin
- multiple names:
node.name('foo bar'); container.find('.foo');(thanks @mattslocum) Container.findOne()