provides a color picker as a service for other packages.
uses the simple-color-picker
package.json
{"otherStuff": "otherData","consumedServices": {"color-picker": {"versions": {"^0.0.1": "consumeColorPicker"}}}}
your package:
#in main moduleconsumeColorPicker: (colorPicker) =>@colorPicker = colorPicker#where you want to use it@colorPicker {x:x,y:y, color: oldColor}, (newColor) ->#do something with new color#newColor will be undefined on cancel and false on "uncolor"unless newColor? # not canceledif newColor#has a colorelse#uncolor was selected
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.