-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use playwright to screenshot (#1603)
* chore: use playwright to screenshot * chore: use snapshots generated on ci * chore: always upload snapshots * chore: update snapshots from ci * chore: always upload snapshots * chore: always upload snapshots * chore: always upload snapshots * chore: always upload snapshots * chore: always upload snapshots * chore: always upload snapshots * chore: always upload snapshots * chore: always upload snapshots
- Loading branch information
Showing
69 changed files
with
1,453 additions
and
4,174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,4 +83,5 @@ packages/**/*/__node__tests__/*.png | |
# ignore bundleviz stats.html | ||
stats.html | ||
|
||
*.diff.png | ||
*-actual.png | ||
*-diff.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { Polygon } from '../../../packages/g'; | ||
|
||
export async function polygon(context) { | ||
const { canvas } = context; | ||
await canvas.ready; | ||
|
||
const polygon = new Polygon({ | ||
style: { | ||
points: [ | ||
[10, 10], | ||
[10, 30], | ||
[30, 30], | ||
], | ||
stroke: 'red', | ||
lineWidth: 6, | ||
}, | ||
}); | ||
canvas.appendChild(polygon); | ||
|
||
// dashed | ||
const polyline2 = polygon.cloneNode(); | ||
polyline2.style.lineDash = [2]; | ||
polyline2.translate(30, 0); | ||
canvas.appendChild(polyline2); | ||
|
||
// lineCap | ||
const polyline3 = polygon.cloneNode(); | ||
polyline3.style.lineCap = 'round'; | ||
polyline3.translate(60, 0); | ||
canvas.appendChild(polyline3); | ||
const polyline4 = polygon.cloneNode(); | ||
polyline4.style.lineCap = 'square'; | ||
polyline4.translate(90, 0); | ||
canvas.appendChild(polyline4); | ||
|
||
// lineJoin | ||
const polyline5 = polygon.cloneNode(); | ||
polyline5.style.lineJoin = 'round'; | ||
polyline5.translate(120, 0); | ||
canvas.appendChild(polyline5); | ||
|
||
const polyline6 = polygon.cloneNode(); | ||
polyline6.style.lineJoin = 'miter'; // "bevel" | "miter" | "round"; | ||
polyline6.translate(150, 0); | ||
canvas.appendChild(polyline6); | ||
} |
Oops, something went wrong.