Skip to content

Commit 6c87954

Browse files
committed
[css-paint-api] Maybe visualOverflow rect?
1 parent c808936 commit 6c87954

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-paint-api/README_V2.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
```js
22
registerPainter('something', class extends ElementPainter {
3+
visualOverflow(geometry, styleMap) {
4+
return {
5+
// Size of overflow.
6+
};
7+
}
8+
39
drawBackground(ctx, geometry, styleMap) {
410
ctx.save();
511
ctx.globalAlpha = 0.5; // Local to just the background layer, are there other canvas ctx params which

0 commit comments

Comments
 (0)