You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we could deal with flex-type elements, and be able to toggle there visibility with a simple show('flex'). Or with a combined use with hide(), store the initial display value in p5.Element memory and re-use it when calling show() on same element.
Most appropriate sub-area of p5.js?
Accessibility
Color
Core/Environment/Rendering
Data
DOM
Events
Image
IO
Math
Typography
Utilities
WebGL
Build process
Unit testing
Internationalization
Friendly errors
Other (specify if possible)
Feature request details
p5.Element.prototype.show=function(value='block'){// List of valid CSS display valuesconstvalidDisplayValues=['block','inline','inline-block','flex','inline-flex','grid','inline-grid','table','table-row','table-cell','contents','list-item','none','initial','inherit','unset','run-in','ruby','ruby-base','ruby-text','ruby-base-container','ruby-text-container'];if(validDisplayValues.includes(value)){this.elt.style.display=value;}else{console.error(`Invalid value for displaying element: "${value}"`);}returnthis;};
The text was updated successfully, but these errors were encountered:
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!
Increasing access
we could deal with flex-type elements, and be able to toggle there visibility with a simple show('flex'). Or with a combined use with hide(), store the initial display value in p5.Element memory and re-use it when calling show() on same element.
Most appropriate sub-area of p5.js?
Feature request details
The text was updated successfully, but these errors were encountered: