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

feat: added props trackOneRender, support user deliver custom element… #240

Open
wants to merge 111 commits into
base: master
Choose a base branch
from

Conversation

itenl
Copy link

@itenl itenl commented Jul 27, 2021

Added props trackOneRender

image

ptomasroos and others added 27 commits February 7, 2020 12:22
* Removed getDerivedState -> componentDidUpdate

* Fixed comparison

Recreate in the case props has changed not the props vs the local state
* add types

* remove unused leftDiff

* add customLabel to types

* add enableLabel type
* Update README.md

* Update README.md

* Update README.md
)

* fix(marker): offset markers on opposite directions

* docs(readme): update markerOffset description
The fact that this function is still returning a position when value is undefined was causing me an issue in single slider mode as under some conditions (after changing min and max values) it was setting positionTwo equal to max.
I think it's better it returns undefined when value is undefined
Cleaned up indentations while keeping original code style
* Fix ptomasroos#45

* Fix ptomasroos#45 for any value of snapped prop and centralise prettier config

* bugfix: add default value to markerSize
…roos#200)

* Fix ptomasroos#45

* Fix ptomasroos#45 for any value of snapped prop and centralise prettier config

* bugfix: add default value to markerSize

* doc: README.md updated
* fix: Reenable allowOverlap for large sliders

If your slider goes from, let's say, 0 to 10:
- `this.optionsArray = [0, 1, ... 10];` => its length is 11
- however, `this.props.sliderLength` should only be divided by 10 (representing the 10 sections `0-1`, `1-2`, ..., `9-10`)

The fix is then simply to replace L56 by
`    this.stepLength = this.props.sliderLength / (this.optionsArray.length - 1);`

* docs: Explicit the unit used by minMarkerOverlapDistance for more clarity

One could think it was about steps
* feat: Allow expressing overlap distance without re-computing stepLength

* refactor: Suggest reducing number of ternary conditions
* * Adding so its possible to show steps
  - Show step labels
  - Show step marks on the track
  - Customizable step labels, prefix and suffix styling et.
  - Customizable styling for step container, step label and step markers
* Adding smooth-snapped

* Added docs
@itenl itenl force-pushed the feat-add-props-trackOneRender branch from edcc127 to 63e7b4a Compare August 27, 2021 14:08
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 this pull request may close these issues.