UNPKG

force-graph-vis

Version:

基于D3.js的知识图谱可视化解决方案

41 lines (35 loc) 720 B
// 模拟器 declare namespace Simulation { /** * @function initSimulation * @description 初始化力学模拟器 */ interface initSimulation { (): void; } /** * @function startSimulation * @description 启动力学模拟器 */ interface startSimulation { (): void; } /** * @function stopSimulation * @description 停止力学模拟器 */ interface stopSimulation { (): void; } /** * @function ticked * @description 每次ticked执行绘制 */ interface ticked { (): void; } type tickNum = number; // tick次数 type tickTimeStart = number; // tick开始时间 type simulation = any; // 模拟器对象 } export default Simulation;