pcanvas 1.1.0 pcanvas: ^1.1.0 copied to clipboard
A portable canvas that can work in many platforms (Flutter, Web, Desktop, in-memory Image).
1.1.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
(usef 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
1.0.7 #
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
1.0.6 #
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
1.0.5 #
- Add support to stroke/fill circles.
1.0.4 #
PCanvasBitmap
:- Support for
bold
anditalic
. - Enable text anti-aliasing.
- Support for
1.0.3 #
- Fix
PColorRGB.a
.
1.0.2 #
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.
1.0.1 #
- Added interface
WithDimension
toPDimension
andPCanvas
. - Added
PCanvas.info
. - README.md: added usage example.
1.0.0 #
- Initial version.