npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vt-logicflow-designer/space-air-plugin

v0.1.1

Published

LiteFlow Designer 业务节点插件 —— 空域(无人机 / 卫星通信 / 激光通信)节点

Readme

@vt-logicflow-designer/space-air-plugin

LiteFlow Designer 的空域业务节点插件:为画布内核注册无人机、卫星通信、 激光通信等业务节点(含节点视图、属性面板、默认数据)。

npm version

安装

npm i @vt-logicflow-designer/space-air-plugin

⚠️ 本包必须与 @vt-logicflow-designer/core(内核)一起使用。 内核被声明为 peerDependency:内核的节点注册表 nodeMap 是模块级单例, 插件与内核必须共享同一模块实例,否则插件注册的节点不会出现在画布上(且不报错)。

使用

// 副作用导入:执行即完成业务节点注册
import '@vt-logicflow-designer/space-air-plugin';

// 插件样式(可选)
import '@vt-logicflow-designer/space-air-plugin/style';

// 也可引用插件导出的枚举与配置
import { SpaceNodeEnum, BIZ_NODE_CONFIG } from '@vt-logicflow-designer/space-air-plugin';

节点类型

| 枚举 | 含义 | 枚举 | 含义 | |------|------|------|------| | DRONE_RTN | 无人机返航 | SATCOM_ON | 卫星通信启用 | | DRONE_HOV | 无人机悬停 | SATCOM_OFF | 卫星通信关闭 | | DRONE_PARAM | 无人机参数变更 | SATCOM_PARAM | 卫星通信参数变更 | | LASCOM_ON | 激光通信启用 | LASCOM_OFF | 激光通信关闭 | | LASCOM_PARAM | 激光通信参数变更 | | |

扩展自己的业务插件

内核包公开了完整的插件开发基座,业务插件无需改动内核代码:

import {
  registerPluginNodes,      // 注册节点元数据
  registerNodeLFShapeMap,   // 业务 type → LogicFlow 视图类型
  batchRegisterNodeItem,    // 注册画布节点视图
  registerNodeProps,        // 注册属性面板组件
  CardNode,                 // 可复用的卡片节点视图基座
  NodeModel                 // 可复用的节点模型基类
} from '@vt-logicflow-designer/core';

// ⚠️ 建议加防重复注册标记(开发态 HMR 会重复执行插件入口)
if (!globalThis.__FLOW_PLUGIN_MY__) {
  registerPluginNodes(...);
  registerNodeLFShapeMap(...);
  batchRegisterNodeItem(...);
  registerNodeProps(...);
  globalThis.__FLOW_PLUGIN_MY__ = true;
}

文档

License

Apache-2.0