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
Updated famous-flex-global.js + various improvements/fixes
New:
- Added option
overscroll
to ScrollController/FlexScrollView for disabling overscroll behaviour. - Added
cells
option to CollectionLayout and deprecated GridLayout. - Added
.get
function for getting a renderable by its id or index. - Added
.replace
function for replacing a renderable in the datasource.
Improvements:
context.set
now returns the data that was set (for convenience).- Added css-linting to the grunt build script.
- Added
removeSpec
argument to.removeAll
. - Prevent reflow when using
.insert(id)
to set a renderable which was already at that id.
Fixed:
- Updated global
dist/famous-flex-global.js
to work properly with browserify (IjzerenHein -> renamed to famousflex) - Fixed background in TabBarLayout not correctly calculated when top/bottom margins are used.
- Fixed
scrollend
event not emitted whenalwaysLayout
is enabled. - Fixed various linting & style errors/warnings.
- Fixed issue with renderables not animating according to
removeSpec
when removed from LayoutController. - Fixed
.ensureVisible
function which always caused a big visual hickup. - Fixed exception in
.remove
when a ViewSequence was used as datasource. - Fixed
.insert
which did not always return the chainable this class.
Small API changes DatePicker + TabBar widgets
Changes:
- This release introduces a small change to the API of the DatePicker & TabBar widgets. Options
renderables
andcreateRenderable
have been merged to create a simpler and easier to API for enabling renderables and using custom renderables.
apologies for these API changes, but better earlier than later while adoption is low
Refactored DateTime picker according to new widget guidelines
Changes:
- DatePicker now uses predefined css-styles + it was refactored to follow new widget guidelines
- DatePicker tutorial has been moved to 'famous-flex-datepicker' repository
Fixed:
- #51 Fixed issue with mouse-events causing the scrolling restrictions example from the FlexScrollView to no longer work
Added TabBar widget + TabBarLayout
New:
- Added new TabBar widget + tutorial.
- Added new TabBarLayout layout.
Improvements:
- Documentation has been updated to latest jsdoc2md
Fixed:
- Fixed
npm run-script global-no-famous
script for generating a global .js file
Added DatePicker, WheelLayout, ProportionalLayout & VirtualViewSequence + some improvements and fixes
New:
- Added new DatePicker widget + tutorial.
- Added new WheelLayout layout (slot-machine layout).
- Added new ProportionalLayout layout (similar to stock famo.us FlexibleLayout class).
- Added support for virtual (infinite) view-sequences which use a factory-delegate and can re-use renderables.
- Added
PaginationMode
option to support both Page-based and Scroll-based pagination (see FlexScrollView tuorial).
Improvements:
- Added
renderNode
property to event-data ofpagechange
event. - Added
normalize
parameter to thegetSpec
function (for normalizing the align/origin into to the transform x/y translation).
Fixes:
- Fixed a brief scrolling velocity that sometimes occurred after releasing a finger white not moving it.
- Prevent scale, rotate & skew from "flowing" when scrolling using ScrollController or FlexScrollView.
- Fixed small layouting issue in the prev-renderables of CollectionLayout.
- #42: Fixed setting the layout-options using
setOptions
.
v0.1.5
New features:
- Added ability to LayoutController to use the size of the child renderables to calculate its own size, by specifying
true
in the size option:
var layoutController = new LayoutController({
layout: ListLayout,
size: [undefined, true], // <-- calculate height based on child renderables
dataSource: [
new Surface({content: 'any content<br><br>', size: [undefined, true]});
new Surface({content: 'test', size: [undefined, 100]});
]
});
...
// getSize now returns the cumulative height of the child renderables
var size = layoutController.getSize();
// E.g. for adding to a scrollview
var scrollView = new FlexScrollView();
scrollView.push(layoutController);
scrollView.push(layoutController2);
Fixes:
- Fixed exception in
getSpec
when it was called before any content had been rendered - When resizing, the true-size of Surfaces was not always calculated correctly
v0.1.4
New features:
- Added
.swap
function for swapping two renderables - Added
ensureVisible
function to ensure that a renderable is full visible - Added
scroll
event which is emitted for every render-cycle that the view is scrolled - Added
pagechage
event which is emitted when the visible page changes - Added
reflowOnResize
option to prevent reflowing while resizing - Added
container
option for specifying customer container options whenuseContainer
is enabled - Added events-section to the FlexScrollView tutorial
Improvements:
- Various minor performance improvements to reduce DOM activity
- Use of browsify shims (global-no-famous.template.js)
- Also pipe events to the
_eventOutput
whenautoPipeEvents
is enabled
Fixes:
- Fixed
ScrollController.getSpec
which threw an exception - Fixed unintentional scrolling when inserting before the top-most item
- Fixed touch-gesture scrolling issues when both
autoPipeEvents
anduseContainer
were enabled - Fixed size of true-size renderables which was not always updated in some cases
- Fixed no redraw occurring after changing the
alignment
option
Fixed `FlexScrollView.showPullToRefresh` + added `preallocateNodes` option
v0.1.3 Small pull to refresh tutorial fix
Pull to refresh + advanced scrollview effects
New features: (see FlexScrollView tutorial)
- Pull to refresh
- Leading & trailing scrollview linking
- Added margin & spacing to ListLayout
- Added '.push()' and '.removeAll()' to LayoutController
- Added 'layoutAlways' option for forcing the layout option to be called every render cycle
- Added 'autoPipeEvents' option for automatically piping events to the scrollview when adding to the datasource
Changes:
- Renamed 'ScrollView' to 'FlexScrollView'
- Split layout-option 'gutter' into 'margins' & 'spacing' (GridLayout & CollectionLayout)
- Deprecated 'TableLayout' (functionality was merged with ListLayout)
- Various fixes & minor improvements
Performance + bug-fixes release (+ preliminary pull to refresh support)
v0.1.1 Bump to v0.1.1 (many performance improvements + fixes + preliminary p…