github CrazyTim/spin-wheel 5.0.0

latest release: 5.0.1
2 months ago

Breaking

  • Change image properties to accept a HTMLImageElement instead of a url. This has many benefits:

    • Less code to ship, test, and maintain.
    • Simpler to use from a developer's perspective.
    • More obvious that the images should be pre-loaded.
    • There are too many use cases to support pre-loading images (for example, we need to provide a callback for when all images have loaded).
    • Closes #19.
  • Fix: rename offset properties to x and y instead of w and h

  • Fix: set label width correctly when itemLabelAlign == 'center'. Previously it was impossible to increase the label size past a certain point. This will cause "centered" labels to be larger than before.

Other

  • Fix: adjust the label's debug bounding box depending on itemLabelAlign
  • Fix: set label max width correctly when itemLabelAlign == 'center' (previously it was impossible to increase the label size past a certain point)
  • Feat: draw label anchor point when in debug mode
  • Improve validation for Wheel.itemLabelAlign
  • Don't draw debug drag points (this is only useful when testing the dragging functionality. Its not really useful for developers to see this, and its annoying in the playground)
  • Playground: adjust playground font size on small viewport
  • Playground: auto-size the right panel
  • Playground: show the hex value of the selected color
  • Playground and themes: hide wheel during page load

Don't miss a new spin-wheel release

NewReleases is sending notifications on new releases.