Skip to content

Conversation

@tbouffard
Copy link
Member

@tbouffard tbouffard commented Jan 20, 2022

Summary

This replicates what mxgraph examples previously provided: the source code directly accessible within the example.
It allows copy/paste for reuse in user applications and should improve the adoption.
The code used to manage the controls is easily identifiable and can help highlight certain parts of the example (ContextMenu, RubberBand, ...).

Also bump storybook from 6.4.0 to 6.4.13.

Description for the changelog

Storybook examples let see the example source code for easier reuse.

Other info

storybook_source-addon_in_action.mp4

Possible Alternatives

@tbouffard tbouffard added the enhancement New feature or request label Jan 20, 2022
This replicates what mxgraph examples previously provided: the source code
directly accessible within the example.
It allows copy/paste for reuse in user applications and should improve the
adoption.
The code used to manage the controls is easily identifiable and can help highlight
certain parts of the example (ContextMenu, RubberBand, ...).

Also bump storybook from 6.4.0 to 6.4.13.
@tbouffard tbouffard force-pushed the chore/display_story_source_in_UI branch from 3876416 to 39a2862 Compare January 21, 2022 09:39
@tbouffard tbouffard marked this pull request as ready for review January 21, 2022 09:40
@tbouffard tbouffard requested review from junsikshim and mcyph January 21, 2022 09:41
@mcyph
Copy link
Collaborator

mcyph commented Jan 22, 2022

I was searching for a while whether adding source previews was possible, just must not have been looking hard enough - this will be a significant improvement.

@tbouffard tbouffard merged commit a2a718b into development Jan 25, 2022
@tbouffard tbouffard deleted the chore/display_story_source_in_UI branch January 25, 2022 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants