日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

【D3】transition API

發(fā)布時間:2023/11/27 生活经验 47 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【D3】transition API 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

摘要:

  動畫類API

一、API 使用

1. 1 d3.ease

?

1.2 d3.timer

Start a custom animation timer, invoking the specified?function?repeatedly until it returns true. There is no way to cancel the timer after it starts, so make sure your timer function returns true when done!

動畫開始動作,知道方法返回true 才會停止。 動畫開始后不能手動停止,只能方法返回true 才會停止。

An optional numeric?delay?in milliseconds may be specified when the given?function?should only be invoked after a delay. The delay is relative to the specified?time?in milliseconds since UNIX epoch; if?time?is not specified, it defaults to?Date.now.

可以設(shè)置動畫延遲時間,延時單位為毫秒。延遲是和指定的時間相關(guān),如果沒制定時間,默認為當前時間。

You may use?delay?and?time?to specify relative and absolute moments in time when the?function?should start being invoked. For example, a calendar notification might be coded as:

可以使用延遲和時間指定動畫開始的確切時間。例如,日歷提醒可以如下編碼:

d3.timer(notify, -4 * 1000 * 60 * 60, +new Date(2012, 09, 29)); // four hours before midnight October 29 (months are zero-based)

Note that if d3.timer is called within the callback of another timer, the new timer will be invoked immediately at the end of the current frame (if active as determined by the specified?delay?and?time), rather than waiting until the next frame.

可以看到d3.timer 是在另一時刻被調(diào)用,新計時器將立刻被觸發(fā) (如果指定動作的延遲和時間),而不是等待下一幀。

?

1.3 d3.interpolate

?

轉(zhuǎn)載于:https://www.cnblogs.com/huxiaoyun90/p/4562550.html

總結(jié)

以上是生活随笔為你收集整理的【D3】transition API的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。