Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html引用umd包的形式,如何引用插件呢? #3859

Closed
POKEZHANG opened this issue Aug 17, 2023 · 3 comments
Closed

html引用umd包的形式,如何引用插件呢? #3859

POKEZHANG opened this issue Aug 17, 2023 · 3 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@POKEZHANG
Copy link

问题描述

我现在是html引用的umd包
但是那些插件都是通过npm下载的,我应该如何使用呢?

重现链接

暂无

重现步骤

无需重现

预期行为

我希望html可以引用插件的包

平台

  • 操作系统: [Windows.]
  • 网页浏览器: [Chrome]
  • X6 版本: [2.11.1 ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Aug 17, 2023

👋 @POKEZHANG

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@NewByVector
Copy link
Contributor

引入后直接通过全局变量访问,比如 Selection 插件:

const selection = new X6PluginSelection({})

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Sep 7, 2023
@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 12, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Oct 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

2 participants