-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: fixed and responsive tracks #99
Conversation
docs/fixed-responsive.mdx
Outdated
## Fixed size | ||
|
||
A Gosling visualization can have a fixed size by setting the `width` and `height` properties. The tracks will have a fixed size regardless of the screen size. | ||
|
||
When the `width` and `height` properties are set in the root of the spec, all tracks will have this height and width unless they are overridden in the track specification. | ||
|
||
```javascript | ||
{ | ||
// highlight-start | ||
width: 800, | ||
height: 200, | ||
// highlight-end | ||
// ... rest of the Gosling spec | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we move this section down and bring the "Responsive size" up? I think it will better reflect the general interest of users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested minor changes. Otherwise, this looks awesome!
Co-authored-by: SEHI L'YI <sehilyi@gmail.com>
Adds documentation for track sizes (fixed or responsive).