Socket
Book a DemoInstallSign in
Socket

@holmescloude/itde-keyframe-path

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@holmescloude/itde-keyframe-path

`itde-keyframe-path` 是一个用于管理和播放关键帧路径的模块。它允许在iTwin查看器中创建、加载和播放预定义的视图路径,从而实现流畅的动画导航体验。

0.0.5
latest
npmnpm
Version published
Weekly downloads
7
-53.33%
Maintainers
1
Weekly downloads
 
Created
Source

itde-keyframe-path

简介

itde-keyframe-path 是一个用于管理和播放关键帧路径的模块。它允许在iTwin查看器中创建、加载和播放预定义的视图路径,从而实现流畅的动画导航体验。

功能

  • 加载和播放预定义的关键帧路径
  • 逐个加载关键帧视图
  • 控制动画播放(开始/停止)
  • 设置路径间隔时间
  • 支持线性缓动功能

使用方法

预设要加载的关键帧路径

KeyframePathManager.activePath = this.keyframePath;

加载关键帧

// 通过索引加载特定关键帧
await KeyframePathManager.loadKeyFrameByIndex(viewport, index, time);

播放关键帧路径

// 播放整个关键帧路径
await KeyframePathManager.playKeyframePath((currentFrameIndex) => {
    // 当前帧索引的回调
    console.log(`当前帧: ${currentFrameIndex}`);
});

停止播放

// 停止当前路径播放
KeyframePathManager.stopKeyframePath();

清除当前路径

// 清除当前活动路径及所有状态
KeyframePathManager.clear();

依赖项

  • @itwin/core-frontend
  • @itwin/core-common
  • itde-saved-views

注意事项

  • 使用前确保已选择视图
  • 仅支持检查点连接
  • 播放过程中可以随时停止

许可证

[许可证信息]

FAQs

Package last updated on 11 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.