文件名称:get-single-axis-scale-from-info:计算单轴上任意位置的缩放比例大小和位置
文件大小:6KB
文件格式:ZIP
更新时间:2024-05-26 16:42:54
JavaScript
从信息中获取单轴刻度 计算单个轴上任意位置上缩放比例的大小和位置。 这适用于从顶部或左侧进行计算的任何系统,例如浏览器的dom! 安装 如果尚未下载node,请从下载并安装。 npm install get-single-axis-scale-from-info --save 用法 // require module var getSingleAxisScaleFromInfo = require ( 'get-single-axis-scale-from-info' ) ; getSingleAxisScaleFromInfo ( { from : 8 , // scale from position scale : 2 , // amount to scale size : 4 , // current size position : 0 // current pos
【文件预览】:
get-single-axis-scale-from-info-master
----.travis.yml(60B)
----example.es6(265B)
----package.json(2KB)
----test.es6(1KB)
----index.es6(248B)
----LICENSE(747B)
----CONTRIBUTING.md(3KB)
----.npmignore(49B)
----.gitignore(70B)
----README.md(2KB)