-
addFrameTask
(phases)
{FrameTaskHandle}
static
參數:
類型 說明 phases PhaseCallbacks幀的每個階段的回調。
返回:
類型 說明 FrameTaskHandle 刪除、暫停或恢複幀任務的句柄。 例子:
// Animate the scene view camera heading in every frame let handle = scheduling.addFrameTask({ update: function() { let camera = view.camera.clone(); camera.heading += 0.2; view.camera = camera; } }); // Remove frame task as soon as the user starts navigating in the view reactiveUtils.whenOnce(() => view.navigating, () => handle.remove());
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/core/scheduling"], (scheduling) => { /* code goes here */ });
ESM:
import * as scheduling from "@arcgis/core/core/scheduling";
對象:
esri/core/scheduling
自從:用於 JavaScript 4.7 的 ArcGIS API
用法說明
scheduling.addFrameTask
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS scheduling.schedule用法及代碼示例
- JavaScript ArcGIS scaleRange.scaleRange用法及代碼示例
- JavaScript ArcGIS symbolUtils.getDisplayedColor用法及代碼示例
- JavaScript string.replace()用法及代碼示例
- JavaScript ArcGIS symbolUtils.getDisplayedSymbol用法及代碼示例
- JavaScript ArcGIS size.createAgeRenderer用法及代碼示例
- JavaScript ArcGIS size.cloneScheme用法及代碼示例
- JavaScript ArcGIS sql.parseWhereClause用法及代碼示例
- JavaScript ArcGIS size.createContinuousRenderer用法及代碼示例
- JavaScript ArcGIS serviceArea.solve用法及代碼示例
- JavaScript setInterval()用法及代碼示例
- JavaScript ArcGIS size.getSchemes用法及代碼示例
- JavaScript ArcGIS size.createClassBreaksRenderer用法及代碼示例
- JavaScript ArcGIS sizeRange.sizeRange用法及代碼示例
- JavaScript ArcGIS symbolUtils.renderPreviewHTML用法及代碼示例
- JavaScript ArcGIS symbolUtils.renderColorRampPreviewHTML用法及代碼示例
- JavaScript ArcGIS size.createVisualVariables用法及代碼示例
- JavaScript ArcGIS summaryStatisticsForAge.summaryStatisticsForAge用法及代碼示例
- JavaScript string.anchor()用法及代碼示例
- JavaScript ArcGIS summaryStatistics.summaryStatistics用法及代碼示例
- JavaScript ArcGIS SceneView double-click事件用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.overlaps用法及代碼示例
- JavaScript ArcGIS Expand.when用法及代碼示例
- JavaScript ArcGIS Sublayer.JoinTableDataSource用法及代碼示例
- JavaScript ArcGIS FillSymbol3DLayer.outline用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 scheduling.addFrameTask。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。