This repository has been archived by the owner on Dec 2, 2021. It is now read-only.
Releases: IjzerenHein/famous-flex
Releases · IjzerenHein/famous-flex
v0.3.9: Merge pull request #130 from IjzerenHein/develop
Fixes:
- Fixed bug in FlexScrollView tutorial (
_createSection
function). - Fixed occasional scroll hick up when inserting a true-size renderable into a bottom-aligned scroll-view.
- Fixed
AnimationController.show(..)
which didn't always show the new renderable when the old one was still being hidden. - Fixed LinkedListViewSequence which was missing from the global dist files.
- Fixed missing
assert
symbol in LinkedListViewSequence when using the global dist.
v0.3.8: Merge pull request #127 from IjzerenHein/develop
Invalid release, don't use
v0.3.7: Merge pull request #127 from IjzerenHein/develop
Improvements:
- Added support for clicking/tapping on date/time entries in the DatePicker widget.
Fixes:
- ScrollController and FlexScrollView now only process paginated fast swipes when they are in the configured direction.
- Fixed incorrect initial values for DatePicker widget (happened when initial values were different from the current system date/time).
- Fixed DatePicker.Component.FullDay not returning the correct month/year when scrolling to another month or year.
CoverLayout & LinkedListViewSequence
New:
- Added new layout: CoverLayout (thanks to @manualoverdijk / Bizboard) !
- BREAKING CHANGE: Added all new LinkedListViewSequence class to replace the stock famo.us ViewSequence class. ViewSequence has various known issues when inserting/removing/moving items which causes "ViewSequence corruptions". The new LinkedListViewSequence class resolves all these issues. ScrollController and FlexScrollView automatically create a LinkedListViewSequence data-source when you push items to it, or when an Array is passed as a data-source. If you're explicitly using ViewSequence from your code, replace it with LinkedListViewSequence and pass that to FlexScrollView.
Improvements:
- Improved performance in ScrollController when pagination was used. Elements are now added/removed to and from the DOM before and after the paginated-scrolling, fixing any hickups that could occur during the scroll itself.
- Added size argument to ListLayout itemSize callback.
Fixes:
- Fixed rare bug where
ScrollController.ensureVisible
didn't always scroll the item into view (physics-engine remained a sleep).
v0.3.5
New:
- Added ScrollController option
scrollPhysicsEngine
for setting the velocity-cap for the scroll particle. - Added ability to AnimationController to render (add to DOM) a new view, and but wait for a promise before starting the animation. This makes it possible to let javascript/DOM do its work before starting the animation, which can otherwise be yanky.
- Added option
keepHiddenViewsInDOMCount
to AnimationController. Using this option can improve performance as the browser doesn't need to add/remove DOM elements when showing or hiding.
Fixes:
- Fixed CollectionLayout sometimes wrapping to next line too early when options.cells was used.
- Fixed small glitches in CollectionLayout when margins & spacing were used.
- Added warning to ListLayout when options.spacing is non-numeric.
Fixed bower package + AnimationController hide callback fix
Fixes:
- Fixed bower package not working as of v0.3.3.
- Fixed AnimationController hide callback not called when previously 'halt -> hide -> show' was performed.
NavBarLayout, AnimationController impr + misc
New:
- Added
backIcon
and 'backItem' renderables to the NavBarLayout. - Added
.get
to LayoutDockHelper for getting the in-user left/top/right/bottom bounds. - Extended
AnimationController.halt(..)
with argument to halt at a specific animation-frame. - Added
.abort()
to AnimationController for cancelling (and reversing) an active show/hide animation. - Added
zIncrement
option to NavBarLayout. - Added ability to specify
true
orundefined
sizes in thecells
option of CollectionLayout.
Changes:
- Renamed
Thresshold
options toThreshold
(when old name is used a warning is generated). - Updated
zIncrement
option on TabBarLayout to 2 (to fix chrome 43 z-translate bug)
Fixes:
- Fixed true-size renderables wrapped inside RenderNode not always resizing correctly.
- Fixed faulty transfer animations with true-size renderables in AnimationController.
- Fixed transferable animations not always running perfectly in parallel with the main AnimationController show/hide animation.
- Fixed exception in
.get()
of LayoutController when a string-id was provided but dataSource was a array/viewSequence. - Added missing
deamdify
dev dependency. - Fixed flow-animations being triggered when
noAnimation=true
is used. - Fixed show callback not executed when same renderable is shown in AnimationController.
TabBarController + updated /dist + improvements & fixes
New:
- Added new TabBarController widget.
- Adde new dist files:
famous-flex-global.js
,famous-flex-global.min.js
,famous-flex.js
andfamous-flex.min.js
. - Added new
swipestart
,swipeupdate
andswipeend
events to ScrollController/FlexScrollView.
Improvements:
- Added support for using
{animation: null}
to disable animations in AnimationController. - Show mouse-cursor for clickable TabBar items (widgets/styles.css)
- Added
suppressWarnings
option to CollectionLayout. - ScrollController/FlexScrollView now uses the more accurate timestamp from the touch/move events when possible.
Fixes:
- Fixed AnimationController not always removing view from render-tree after it was hidden.
- Added missing
oldItem
property to thetabchange
event of the TabBar widget.
AnimationController + minor improvements + fixes
New
- Added AnimationController.
- Added
.getEnergy
to ScrollController/FlexScrollView. - Added
noAnimation
argument to.replace
. - Added
endState
argument to.getSpec
for getting the flowing end-state.
Fixes
- Fixed
getFirstVisibleItem
returning no item or the wrong item in some scenarios. - Fixed
pagination
not always activated in some scenarios. - Fixed bounds-detection bug which could cause strange effects when pulling the scrollview beyond its edge.
- Fixed boundary scroll issue in ListLayout when
spacing
was used. - Fixed wrong section-header displayed in ListLayout in rare circumstances.
- Fixed undefined
FlexScrollView.Bounds
andFlexScrollView.PaginationMode
. - Fixed exception in
.remove
when array datasource in used (accidentally introduced in v0.3.0). - Fixed ViewSequence corruption when using
.insert
and an index that matches the number of nodes in the ViewSequence (workaround for Famous/famous#689)
Removed
- Removed
visibleItemThresshold
option (no longer necessary due to more solid getFirstVisibleItem impl.)
v0.3.x, springOptions, getAbsolutePosition, noAnimation + misc
New:
- Updated versioning strategy so that the major/minor version (v0.3) matches the compatible famo.us version (v0.3.5).
- Added
.getAbsolutePosition
to FlexScrollView. - Added
.move
function. - Added
noAnimation
argument to all.goToXX
functions. - Added
flowOptions.properties
for controlling which properties (size, translate, etc...) are flowable. - Added
.resetFlowState
function for immediately going to the last laid out end-state. - Added
zIncrement
option to TabBarLayout.
Improvements:
- Renamed
nodeSpring
toflowOptions.spring
(nodeSpring
still works but logs a warning). - Moved
insertSpec
andremoveSpec
insideflowOptions
(logs a warning when used outsideflowOptions
). - Event property
.scrollOffset
now contains the absolute scrolling position. - Updated
.remove
so that it returns the removed renderable. - Added integrity checks for detecting corrupted ViewSequences.
- Various updates to FlexScrollView tutorial.
Fixed:
- Fixed exception that could occur after calling
.remove
. - Fixed exception when calling
.getSpec
from thelayoutend
event (event was fired too early). - Fixed true-size not always re-evaluated after the content of a surface has been changed.
- Fixed some non-smooth flowing animations in LayoutController when
flow=true
andreflowOnResize=true
. - Fixed reflow from happening when hiding and reshowing a LayoutController.
- Fixed rare node-transform initialisation issue when flow-mode is disabled.
- Fixed rare exception in
.releaseScrollForce
when no first or last visible item existed. - Using
headerSize=0
in HeaderFooterLayout incorrectly causes the size from the renderable to be used. - Fixed various typos in documentation.