Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 49 additions & 133 deletions docs/assets/contributing/en/sourcecode/10.2-global-morphing-animation.md

Large diffs are not rendered by default.

230 changes: 72 additions & 158 deletions docs/assets/contributing/zh/sourcecode/10.2-global-morphing-animation.md

Large diffs are not rendered by default.

230 changes: 72 additions & 158 deletions docs/assets/contributing/zh/sourcesode/10.2-global-morphing-animation.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion docs/assets/examples/en/storytelling/bar-to-pie.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ We often use different chart types for different visualization purposes. The sam
* import { registerMorph } from '@visactor/vchart';
*
* registerMorph();
*
* 自2.0.0开始,全局形变动画默认开启,不再需要手动注册
*/
VCHART_MODULE.registerMorph();
VCHART_MODULE.registerMorph && VCHART_MODULE.registerMorph();
const pieSpec = {
type: 'pie',
data: [
Expand Down
4 changes: 3 additions & 1 deletion docs/assets/examples/en/storytelling/bar-to-scatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ Global animation enhances the observer's tracking of data changes in certain sce
* import { registerMorph } from '@visactor/vchart';
*
* registerMorph();
*
* 自2.0.0开始,全局形变动画默认开启,不再需要手动注册
*/
VCHART_MODULE.registerMorph();
VCHART_MODULE.registerMorph && VCHART_MODULE.registerMorph();
function calculateAverage(data, dim) {
let total = 0;
for (let i = 0; i < data.length; i++) {
Expand Down
4 changes: 3 additions & 1 deletion docs/assets/examples/zh/storytelling/bar-to-pie.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ option: pieChart#animationUpdate
* import { registerMorph } from '@visactor/vchart';
*
* registerMorph();
*
* 自2.0.0开始,全局形变动画默认开启,不再需要手动注册
*/
VCHART_MODULE.registerMorph();
VCHART_MODULE.registerMorph && VCHART_MODULE.registerMorph();

const pieSpec = {
type: 'pie',
Expand Down
4 changes: 3 additions & 1 deletion docs/assets/examples/zh/storytelling/bar-to-scatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ option: commonChart#series-bar.animationUpdate
* import { registerMorph } from '@visactor/vchart';
*
* registerMorph();
*
* 自2.0.0开始,全局形变动画默认开启,不再需要手动注册
*/
VCHART_MODULE.registerMorph();
VCHART_MODULE.registerMorph && VCHART_MODULE.registerMorph();

function calculateAverage(data, dim) {
let total = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ A one-to-one animation is the transition animation between two different shapes.
* import { registerMorph } from '@visactor/vchart';
*
* registerMorph();
*
* Since version 2.0.0, global morph animations are enabled by default, and manual registration is no longer needed.
*/

VCHART_MODULE.registerMorph();
VCHART_MODULE.registerMorph && VCHART_MODULE.registerMorph();

const pieSpec = {
type: 'pie',
Expand Down Expand Up @@ -200,9 +202,11 @@ A one-to-many animation is the transition animation from one graphical element t
* import { registerMorph } from '@visactor/vchart';
*
* registerMorph();
*
* Since version 2.0.0, global morph animations are enabled by default, and manual registration is no longer needed.
*/

VCHART_MODULE.registerMorph();
VCHART_MODULE.registerMorph && VCHART_MODULE.registerMorph();
function calculateAverage(data, dim) {
let total = 0;
for (let i = 0; i < data.length; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ VChart 提供了各个系列间相关切换的形变动画。在你通过 `updat
* import { registerMorph } from '@visactor/vchart';
*
* registerMorph();
*
* 自2.0.0开始,全局形变动画默认开启,不再需要手动注册
*/

VCHART_MODULE.registerMorph();
VCHART_MODULE.registerMorph && VCHART_MODULE.registerMorph();

const pieSpec = {
type: 'pie',
Expand Down Expand Up @@ -200,9 +202,11 @@ setInterval(() => {
* import { registerMorph } from '@visactor/vchart';
*
* registerMorph();
*
* 自2.0.0开始,全局形变动画默认开启,不再需要手动注册
*/

VCHART_MODULE.registerMorph();
VCHART_MODULE.registerMorph && VCHART_MODULE.registerMorph();

function calculateAverage(data, dim) {
let total = 0;
Expand Down
Loading