extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
39 lines (34 loc) • 1.01 kB
JavaScript
/**
* This example shows how one can use staggered D3 transitions with various
* easings to animate from one dataset to another. The datasets in this case
* are real function values at fixed intervals. Try removing the transition
* delay, thus eliminating stagger to see how the transition becomes a lot
* less interesting.
*/
Ext.define('KitchenSink.view.d3.custom.svg.Transitions', {
extend: 'Ext.panel.Panel',
xtype: 'd3-view-transitions',
controller: 'transitions',
requires: [
'Ext.d3.svg.Svg'
],
// <example>
// Content between example tags is omitted from code preview.
otherContent: [
{
type: 'Controller',
path: 'modern/src/view/d3/custom/svg/TransitionsController.js'
}
],
// </example>
cls: 'card1',
layout: 'fit',
shadow: true,
items: {
xtype: 'd3',
listeners: {
scenesetup: 'onSceneSetup',
sceneresize: 'onSceneResize'
}
}
});