Skip to content

Commit

Permalink
Merge v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpassos authored Jan 6, 2023
2 parents b3b9505 + dd5d276 commit 7412689
Show file tree
Hide file tree
Showing 11 changed files with 2,211 additions and 172 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
## 1.0.6

- `PCanvas`:
- Constructor: added parameter `initialPixels`.
- Added method `setPixels`.
- Added support for `clip` and `subClip`.
- Added `transform`: new `PcanvasTransform` class.
- Added `saveState`, `restoreState` and `callWithGuardedState`.
- `elements` now is unmmodifiable.
- `PCanvasPixels`:
- New constructor `PCanvasPixels.fromBytes`.
- Added `setPixel`, `setPixelFrom`, `setPixelsLineFrom`, `setPixelsColumnFrom` and `setPixelsRectFrom`.
- Added `putPixels`, `copyRectangle` and `copyRect`.
- Added `toPCanvas`, `toPNG` and `toDataUrl`.
- New `PCanvasElementContainer`:
- New `PCanvasPanel2D` and `PRectangleElement`.
- `PRectangle`:
- Added `intersectsRectangle`, `intersects` and `intersection`.
- Added `containsRectangle`, `contains`, `containsPoint` and `containsXY`.
- Added `transform`.
- image: ^4.0.7
- test: ^1.22.1
- collection: ^1.16.0

## 1.0.5

- Add support to stroke/fill circles.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![pub package](https://img.shields.io/pub/v/pcanvas.svg?logo=dart&logoColor=00b9fc)](https://pub.dev/packages/pcanvas)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![CI](https://img.shields.io/github/workflow/status/gmpassos/pcanvas/Dart%20CI/master?logo=github-actions&logoColor=white)](https://github.com/gmpassos/pcanvas/actions)
[![Dart CI](https://github.com/gmpassos/pcanvas/actions/workflows/dart.yml/badge.svg?branch=master)](https://github.com/gmpassos/pcanvas/actions/workflows/dart.yml)
[![GitHub Tag](https://img.shields.io/github/v/tag/gmpassos/pcanvas?logo=git&logoColor=white)](https://github.com/gmpassos/pcanvas/releases)
[![New Commits](https://img.shields.io/github/commits-since/gmpassos/pcanvas/latest?logo=git&logoColor=white)](https://github.com/gmpassos/pcanvas/network)
[![Last Commits](https://img.shields.io/github/last-commit/gmpassos/pcanvas?logo=git&logoColor=white)](https://github.com/gmpassos/pcanvas/commits/master)
Expand Down
7 changes: 7 additions & 0 deletions dart_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

tags:
# Slow tests.
slow:
timeout: 180s

platforms: [vm, chrome]
Loading

0 comments on commit 7412689

Please sign in to comment.