pcanvas 1.0.7 pcanvas: ^1.0.7 copied to clipboard
A portable canvas that can work in many platforms (Flutter, Web, Desktop, in-memory Image).
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.