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

Make legend box component #72

Closed
jonasdeluna opened this issue Jun 19, 2024 · 0 comments · Fixed by #82
Closed

Make legend box component #72

jonasdeluna opened this issue Jun 19, 2024 · 0 comments · Fixed by #82
Assignees

Comments

@jonasdeluna
Copy link
Member

No description provided.

@amaliejvik amaliejvik changed the title Legend box where you can specify values Make legend box component Jun 27, 2024
@amaliejvik amaliejvik self-assigned this Jun 27, 2024
amaliejvik added a commit that referenced this issue Jun 27, 2024
- Plots get names starting from f and following the alphabet
- Plots get colors from a default list that cycles
- Some styling

Related to #72
amaliejvik added a commit that referenced this issue Jun 28, 2024
amaliejvik added a commit that referenced this issue Jul 1, 2024
- Add getName() function on Component class, which returns its ClassName if not defined to something else in the component itself and an empty string if component.name is not defined either
- Components can have a displayText() function, which defines which text should be present in LegendBox
- In the LegendBox, each row consists of <dot of plot color | black dot> + <component.name>. If displayText exists on component, this is displayed after <component.name> (ex. function expression for plots and coordinates for point)
- Add emitter for Point, such that LegendBox updates when point is dragged around

Related to #72
amaliejvik added a commit that referenced this issue Jul 1, 2024
amaliejvik added a commit that referenced this issue Jul 2, 2024
amaliejvik added a commit that referenced this issue Jul 2, 2024
amaliejvik added a commit that referenced this issue Jul 3, 2024
… on these variables in the legendBox

(A draft that works, code must still be refined)

Related to #72
amaliejvik added a commit that referenced this issue Jul 3, 2024
amaliejvik added a commit that referenced this issue Jul 3, 2024
@amaliejvik amaliejvik linked a pull request Jul 3, 2024 that will close this issue
amaliejvik added a commit that referenced this issue Jul 3, 2024
* Beginning of LegendBox
- Plots get names starting from f and following the alphabet
- Plots get colors from a default list that cycles
- Some styling

Related to #72

* Add expand-collapse function and HideFromLegendBox function

Related to #72

* Move Plot-funcName logic out of Core.ts and into Plot.ts

* Add possibility for having update() function on GuiComponents as well

* LegendBox updates if a plot is dynamic (moves)

Related to #72

* Make expand-collide button work together with dynamic function names

* Make LegendBox size adjust based upon how many plots it holds

Related to #72

* Generalize legend box

- Add getName() function on Component class, which returns its ClassName if not defined to something else in the component itself and an empty string if component.name is not defined either
- Components can have a displayText() function, which defines which text should be present in LegendBox
- In the LegendBox, each row consists of <dot of plot color | black dot> + <component.name>. If displayText exists on component, this is displayed after <component.name> (ex. function expression for plots and coordinates for point)
- Add emitter for Point, such that LegendBox updates when point is dragged around

Related to #72

* Add name to all Component classes

Related to #72

* Add name to Fraction

Related to #72

* Add hover-functionality for LegendBox and Components

Related to #72

* Add support for different types of icons in LegendBox and a color-fix

Related to #72

* Just some testing

* Another color fix

* Add functionality for having state variables and latex-text dependent on these variables in the legendBox
(A draft that works, code must still be refined)

Related to #72

* Generalize State.ts

Related to #72

* Hover on Points bux-fix

* Refactoring/clean-up of code

Related to #72

* Further generalization of State.ts and a Style fix

* Final clean-up

* Final color-fix for Plot

* Fix of some type declarations

* Formatting fix

* fix prettier
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 a pull request may close this issue.

2 participants