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

@qinxiaoyu/maotu

v0.0.27

Published

基于 vue3 的 web 组态引擎库

Readme

maotu-webtopo

基于 vue3 的 web 组态引擎库

探索将已有 svg 文件转为自由缩放图形库的解决方案,也可用作低代码大屏项目开发

说明

此开源版本的代码源自于 maotu 插件版 0.3.1 版本,与插件版的差异请查阅插件版的 readme。

使用文档

请参考:http://mt.yaolm.top

声明

maotu-webtopo 使用了 LGPL-3.0 协议。这意味着:

  • 您可以将 maotu-webtopo 作为库链接到您的商业项目,而无需开源您的整个项目。
  • 如果您修改了 maotu-webtopo核心库代码,并分发了修改后的版本,您必须按照 LGPL-3.0 协议的要求,开源您所做的修改。
  • 如果您仅仅是将maotu-webtopo 作为库链接到你的项目,而没有修改或分发它的源代码,那么你的项目无需开源。

详细的 LGPL-3.0 许可证文本请查阅 https://www.gnu.org/licenses/lgpl-3.0.html

如何构建插件并使用

构建库:

  1. 使用 pnpm run lib 命令构建 maotu-webtopo,生成 dist 文件夹。

使用库:

  1. 推荐使用 pnpm 安装:

    pnpm i maotu  # 前提是你已经发布到了 npm

如果选择手动复制,请继续参考以下步骤

  1. dist 文件夹中的以下文件复制到你的项目:

    • dist/maotu.es.js:库的入口文件。
    • dist/style.css:库的样式文件。
    • dist/src : 库的ts类型定义。
    • 将这些文件放到你项目中的合适位置。例如,你可以创建一个 src/lib/maotu 目录,并将它们复制到这里。
  2. 确保你的项目可以访问到 style.css 文件。可以通过在入口文件或组件中引入的方式来实现。

在项目中使用示例:

<script setup lang="ts">
import { MtEdit } from "@/lib/maotu/maotu.es" // 替换为你的实际路径
import "@/lib/maotu/style.css"  // 替换为你的实际路径
</script>

<template>
  <div class="w-1/1 h-100vh">
    <mt-edit ref="MtEditRef" />
  </div>
</template>

<style scoped></style>

鸣谢

maotu的部分逻辑实现参考了以下大佬的文章

幽月之格-可拖拽、缩放、旋转组件实现细节

woai3c-一个低代码(可视化拖拽)教学项目