Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unlimited Polygon] Fix for creating concave polygons. #2009

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

catandthemachines
Copy link
Member

@catandthemachines catandthemachines commented Dec 14, 2024

Summary:

Moving the Polygon component lower in the stack to ensure the rect component is on top. This is necessary to allow users to draw a polygon that is concaved, because the Polyline blocks the click events.

Screen.Recording.2024-12-13.at.4.06.39.PM.mov

Issue: LEMS-2679

Test plan:

Go to: http://localhost:6006/?path=/story/perseus-widgets-interactive-graph--unlimited-polygon-with-mafs.
Draw a polygon that is concave and notice it should allow you to draw it.

Copy link
Contributor

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (0e366f1) and published it to npm. You
can install it using the tag PR2009.

Example:

yarn add @khanacademy/perseus@PR2009

If you are working in Khan Academy's webapp, you can run:

./dev/tools/bump_perseus_version.sh -t PR2009

Copy link
Contributor

github-actions bot commented Dec 14, 2024

Size Change: -7 B (0%)

Total Size: 1.27 MB

Filename Size Change
packages/perseus/dist/es/index.js 416 kB -7 B (0%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 39 kB
packages/keypad-context/dist/es/index.js 760 B
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/index.js 77.9 kB
packages/math-input/dist/es/strings.js 1.79 kB
packages/perseus-core/dist/es/index.js 1.48 kB
packages/perseus-editor/dist/es/index.js 688 kB
packages/perseus-linter/dist/es/index.js 22.2 kB
packages/perseus/dist/es/strings.js 4.12 kB
packages/pure-markdown/dist/es/index.js 3.66 kB
packages/simple-markdown/dist/es/index.js 12.5 kB

compressed-size-action

Copy link
Contributor

@nishasy nishasy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice!! Glad this was an easy fix!

@catandthemachines catandthemachines merged commit b09d19b into main Dec 16, 2024
13 checks passed
@catandthemachines catandthemachines deleted the catjohnson/fix-concave-polygon branch December 16, 2024 16:48
somewhatabstract added a commit that referenced this pull request Dec 16, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @khanacademy/[email protected]

### Patch Changes

- [#2014](#2014)
[`763d2d0f1`](763d2d0)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Migrate off deprecated ID generation APIs


- [#2009](#2009)
[`b09d19b7b`](b09d19b)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
Fixing bug in creating concave shapes in unlimited polygons.


- [#1978](#1978)
[`81632c326`](81632c3)
Thanks [@nishasy](https://github.com/nishasy)! - [Polygon] Remove
duplicate points when determining if a polygon can be closed


- [#1999](#1999)
[`278527b08`](278527b)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
Fixing open polygon scoring issues within exercises and editors.

## @khanacademy/[email protected]

### Patch Changes

- [#2014](#2014)
[`763d2d0f1`](763d2d0)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Migrate off deprecated ID generation APIs


- [#1978](#1978)
[`81632c326`](81632c3)
Thanks [@nishasy](https://github.com/nishasy)! - [Polygon] Remove
duplicate points when determining if a polygon can be closed


- [#1999](#1999)
[`278527b08`](278527b)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
Fixing open polygon scoring issues within exercises and editors.

- Updated dependencies
\[[`763d2d0f1`](763d2d0),
[`b09d19b7b`](b09d19b),
[`81632c326`](81632c3),
[`278527b08`](278527b)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2014](#2014)
[`763d2d0f1`](763d2d0)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Migrate off deprecated ID generation APIs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants