@i3yun/viewer.markupdiv
TypeScript icon, indicating that this package has built-in type declarations

2022.2.2 • Public • Published

🚀 markup-div

在三维模型上添加信息标签

简介

每个标签都分成三部分,热点指示、偏移连接线、内容框。

插件提供接口<src\extensions\Sippreep.Extensions.Markup.d.ts>

使用方法

加载插件

使用.add()添加一个标签,拥有默认值

更改标签属性值,即时生效

(如果大量更改属性值,推荐在更改前使用beginUpdate(),更改后调用endUpdate()使之一次刷新全部)

测试举例

b=test.add() b.anchor = 1517 b.content = <img src="https://timgsa.baidu.com/timg?image&amp;quality=80&amp;size=b9999_10000&amp;sec=1597655646761&amp;di=a41b3c78ecc5b7bd505cf8a7cbb63356&amp;imgtype=0&amp;src=http%3A%2F%2Fa3.att.hudong.com%2F14%2F75%2F01300000164186121366756803686.jpg" width="906.66666666667" height="680" style="top: 54px;left: 191px;width: 104px;heig: 76px;height: 76px;or: pointer;" log-rightclick="p=5.102" title="点击查看源网页">

Readme

Keywords

none

Package Sidebar

Install

npm i @i3yun/viewer.markupdiv

Weekly Downloads

1

Version

2022.2.2

License

ISC

Unpacked Size

293 kB

Total Files

8

Last publish

Collaborators

  • lyon_en
  • c253406143