starting with version 1.2.0 will be guided changelog. Dates formated with european format DD.MM.YYYY
Rewrited internal communication, now components uses events system to talk each other. It was caused by the need to adding events like: mouseover, click etc. to menu slices, in effect external api was changed for more user friendly.
Changes
- (breaking change) From now oMenu doesn't open automaticly with
contextmenuevent. It needs to be provided by the user, then we call on instance returned by external apiopen(ev, dynamicOptions)to open menu. - onOpen, onClose, onEndCloseAnimation (breaking change) callbacks has removed. If you want pass dynamic options
when menu opens, put them in second parameter of
openmethod mentioned before. - on new method has come to api, it works exactly like well
known equivalents from other libraries. Accepts two params - string with
event name and callback function. Callback functions gets in first param
oMenu special Event class instance. Below list of all available events:
sliceClicksliceEntersliceLeaveopenMenucloseMenuhideAnimationEndshowAnimationEnd
- while onOpen callback and automatic open on event has been removed, automatic close on event stays, because it is very common behavior which changes very rarely or even never
- (breaking change) Slices
valueproperty has renamed todata. Data property should be use to identify which slice has emited event, and to transfer additional data. It can be everything, oMenu don't care about data passed indataproperty. Property value is delivered with oMenu Event instance inonmethod, Event is passed as first param to each callback function used withon. - build system updated to webpack 4, which resulted in error in
library used by oMenu to manage svg elemnts (svg.js). Lib not support
new ES5 ability to set constructor function
thisto undefined rather than reference it to global object (likewindowin browser) when it is called withoutnewkeyword. I sent pull request and issue, you can see it here - positioningMode (breaking change) new option available in menu
settings. Tells menu how to positioning on page, takes two possible
values:
relativeToParent- default menu behavior will be similar to css absolute element (menu) positionig in relative parent (menu parent element)relativeToScreen- menu behavior will be similar to cssposition: fixed