Releases: art-emini/SpacerJS
Releases · art-emini/SpacerJS
2.1.0
- Added event parameter in examples for on
- Added transform(cssValue) which sets the transform value in css
- Added rotate(cssValue) which sets the rotatation in valid transform css
- Added state as a returned object which tracks metadata state
- Added removeMetaProp(metaKey) which removes a metaproperty
- Added deleteMeta() which removes all meta propertys
- Added return fn object where custom methods are stored
- Added _appendCustom(key, func) which appends a custom function to _().fn
- Added ESModules normal and minified
- Added offset() which returns the top and left coordinate
- Added shell scripts
2.0.0
- Added minified version
- Added ability for selector to be an element
- Added _.__.nodelist returned instead of an array
-
- Changed return value to be methods
- Added first(node?) which gets the first child as a node or HTMLElement
- Added last(node?) which gets the first child as a node or HTMLElement
- Added at(indexBased1) gets a child at a 1 based index
- Added each(callback(node, index)) which loops through a node list
- Added trigger(event) which triggers an event
- Documented all parameters
- Allow elements to be allowed in appendTo
- Added size() which return the clientBoundingRect
- Added prepend(element) which prepends an element at the start of itself
- Added prependTo(parent) which prepends itself to the start of the parent
- Added prependList(list) which prepends a list of elements to itself's start
- Added randomChild() which returns a randomChild element
- Added fadeIn() and fadeOut() with param intensity
- Added animate(property, value, time) which animates a css property with transitions
- Rebuilt docs
1.3.0
- Changed on()
- * Event parameter can now have multiple events seperated by a space
-
- Callback parameter can now be a function or an array of functions
- Added parent() which return the parentElement
- Added more meta options
-
- Added hoverClass
-
- Added activeClass
- Added hover, unhover, active, and unactive functions to use the correct meta class
- Added css() which returns the computed css
- Added empty() which removes all empty child nodes
- Added removeChildren() which removes all child nodes
1.2.0
1.2.0
-
Changed Methods
- Changed iHtml => html
- Changed iText => text
-
New Methods
- Chainable
- Added setMeta(obj)
- Added show()
- Added hide()
- Added on(event, cb)
- Added addClass(className)
- Added removeClass(className)
- Added dbclick()
- Added sleep(ms): Promise
- Added keydown(cb) listener
- Added keyup(cb) listener
- Added debug(...args) which console logs args
- Non-Chainable
- Added children(): NodeList of ChildNodes
- Chainable
-
New Returns
- myElement.meta
-
Misc
- Rebuilt docs
- Updated examples
- Changed .gitignore
- Updated Readme.md
- Updated package.json
- Rebuilt src
- Prettified test.html
- Updated test.js