
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
vue3-transform-dom
Advanced tools
一个基于Vue3的可以缩放和拖动dom元素的组件
npm install vue3-transform-dom --save
属性名 | 说明 | 类型 | 默认值 |
---|---|---|---|
width | 宽 | number | - |
height | 高 | number | - |
disableMove | 是否禁止移动 | boolean | false |
disableScale | 是否禁止缩放 | boolean | false |
scaleStep | 宽 | number | 0.1 |
minWH | dom被缩小到的最小的宽高尺寸 | number | 1 |
maxWH | dom被放大到的最大的宽高尺寸 | number | Infinity |
limitInWindow | 是否限制数据始终有区域位于窗口内部 | boolean | false |
limitSize | 显示在窗口内部的最小值 | number | 100 |
{
/**
* @see {https://www.npmjs.com/package/transfer-to-window}
*/
transfer2window: TransferTowindow;
}
/**
* 获取鼠标相对于el的坐标
*/
getPosition(e: MouseEvent): { x: number, y: number }
/**
* 强制刷新
*/
forceFresh()
/**
* 中心缩放
* @param zoomOut 放大
*/
zoomByCenter(zoomOut: boolean)
transfer2window
参考transfer-to-window<template>
<transform-dom :width="1024" :height="1024">
<div class="inner">
inner dom
</div>
</transform-dom>
</template>
FAQs
A component based on vue3 that can scale and drag dom...
We found that vue3-transform-dom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.