-
GShape
:- Added
scaled(double scale)
;
- Added
-
collection: ^1.18.0
-
dio: ^5.7.0
-
image: ^4.3.0
-
xml: ^6.4.2
-
lints: ^3.0.0
-
test: ^1.25.8
-
dependency_validator: ^3.2.3
-
coverage: ^1.10.0
-
PCanvasEvent
:- Added
preventDefault
- Added
-
PCanvasClickEvent
:- Added
copyWith
andcopyWith
.
- Added
-
PCanvasKeyEvent
:- Added
copyWith
.
- Added
-
PColor
: added support to HSV. -
PCanvasPainter
:- Added
onClickMove
. - Added
dispatchOnClick...
anddispatchOnKey...
.
- Added
-
Added
PCanvasCursor
. -
PCanvas
:- Added
setCursor
andgetCursor
. - Added
requestRepaintDelayed
,isPaintRequested
,getElement
andelementsLength
. - Added
onPaint
. - Added
preventEventDefault
.
- Added
-
Added
DynamicDimension
,DynamicPosition
-
Added
CubicCurveTo
. -
PCanvasElement
:- Now implements
WithJson
. - Added
onClick...
andonKey...
.
- Now implements
-
Added
PCanvasGridPanel2D
andPCanvasBackgroundGradient
. -
New
PGraphic
,Graphic
,GPanel
,GRectangle
,GLine
,GSvg
andGSVGPath
. -
PCanvasHTML
:- Fix
checkDimension
: avoid a loop of dimension modifications and checks. - Fix
set subClip
. _drawPath
: add support toCubicCurveTo
(used byGSVG
).
- Fix
-
sdk: '>=3.0.0 <4.0.0'
-
collection: ^1.17.1
-
dio: ^5.1.2
-
image: ^4.0.17
-
path_parsing: ^1.0.1
-
xml: ^6.3.0
-
lints: ^2.1.0
-
test: ^1.24.2
-
coverage: ^1.6.3
PCanvasPainter
:- Added
zIndex
to define the painter layer. Previously was fixed to0
.
- Added
- Added
PCanvasFactory
:- Allows extra platform dependent implementations:
pixelsToPNG
andpixelsToDataUrl
- Allows extra platform dependent implementations:
PCanvasBitmap.toPNG
:- Ensure
singleFrame: true
- Ensure
PCanvas
:- Constructor: added parameter
initialPixels
. - Added method
setPixels
. - Added support for
clip
andsubClip
. - Added
transform
: newPcanvasTransform
class. - Added
saveState
,restoreState
andcallWithGuardedState
. elements
now is unmmodifiable.
- Constructor: added parameter
PCanvasPixels
:- New constructor
PCanvasPixels.fromBytes
. - Added
setPixel
,setPixelFrom
,setPixelsLineFrom
,setPixelsColumnFrom
andsetPixelsRectFrom
. - Added
putPixels
,copyRectangle
andcopyRect
. - Added
toPCanvas
,toPNG
andtoDataUrl
.
- New constructor
- New
PCanvasElementContainer
:- New
PCanvasPanel2D
andPRectangleElement
.
- New
PRectangle
:- Added
intersectsRectangle
,intersects
andintersection
. - Added
containsRectangle
,contains
,containsPoint
andcontainsXY
. - Added
transform
.
- Added
- image: ^4.0.7
- test: ^1.22.1
- collection: ^1.16.0
- Add support to stroke/fill circles.
PCanvasBitmap
:- Support for
bold
anditalic
. - Enable text anti-aliasing.
- Support for
- Fix
PColorRGB.a
.
PCanvasEvent
now is abstract:PCanvasClickEvent
: for mouse and touch events.PCanvasKeyEvent
: for keyboatd events.
PCanvasPainter
:- Added support to key events
PCanvas
:- Added support to fill gradient operations.
- Added
PCanvasElement
- Base class for personalized canvas elements.
- Added interface
WithDimension
toPDimension
andPCanvas
. - Added
PCanvas.info
. - README.md: added usage example.
- Initial version.