Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Tweak controls in embed #315

Merged
merged 4 commits into from
Nov 17, 2021
Merged

Tweak controls in embed #315

merged 4 commits into from
Nov 17, 2021

Conversation

farskid
Copy link
Collaborator

@farskid farskid commented Nov 17, 2021

This PR:

  • Adds initial scale meta tag to scale viz on the entire viewport on mobile view
  • Tweak canvas controls in embed mode
    • RESET and Fit To View are now available in all embed modes
    • Zoom in and out buttons are only available if controls and Zoom are both enabled
    • Hand tool (pan button) is only available if controls and pan are both enabled
    • Reset canvas button and Help button are no longer available in embed mode

Default:

image

Zoom enabled

image

Pan enabled

image

- RESET and Fit To View are now available in all embed modes
- Zoom in and out buttons are only available if controls and zoom are both enabled
- Hand tool (pan button) is only available if controls and pan are both enabled
- Reset canvas button and Help button are no longer available in embed mode
@changeset-bot
Copy link

changeset-bot bot commented Nov 17, 2021

🦋 Changeset detected

Latest commit: bc3d17c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
xstate-viz-app Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 17, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/statelyai/xstate-viz/BYo1n6C5a2GqtqLXVztu9MAD8jFB
✅ Preview: https://xstate-viz-git-farskid-tweak-controls-in-embed-statelyai.vercel.app

Copy link
Contributor

@laurakalbag laurakalbag left a comment

Choose a reason for hiding this comment

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

I have nothing much helpful to add to this except YAY

@farskid farskid self-assigned this Nov 17, 2021
@farskid farskid merged commit f98ce3f into dev Nov 17, 2021
@farskid farskid deleted the farskid/tweak-controls-in-embed branch November 17, 2021 20:06
@github-actions github-actions bot mentioned this pull request Nov 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants