Skip to content

Commit

Permalink
Added clip path to stage rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Jun 2, 2024
1 parent 2a54cae commit a5d3c11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
We'll note all notable changes in this file, including bug fixes, enhancements, and all closed issues.
Dates are in `YYYY-MM-DD` format and versions are in [semantic versioning](http://semver.org/) format.

## 0.9.396 2024-06-01
## 0.9.396 2024-06-02

### Added

- `Scene` now supports shapes.
- Conflict resolution for duplicate names.
- Fixed `Stage` documentation examples.

### Fixed

- Added clip path to stage rendering.

## 0.9.395 2024-05-18

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions src/components/output/GroupView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
$: empty = group.isEmpty();
$: console.log(clip?.toSVGPath(0, 0));
$: layout = group.getLayout(context);
// Filter out groups that are behind the focus
Expand Down Expand Up @@ -95,6 +97,7 @@
},
viewport,
)}
style:clip-path={clip ? clip.toCSSClip() : null}
>
<slot />
{#each ordered as [child, childPlace] (child.getName())}
Expand Down

0 comments on commit a5d3c11

Please sign in to comment.