
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
tinyjs-plugin-ninepatch
Advanced tools
九宫格
https://qingyangmoke.github.io/tinyjs-plugin-ninepatch/demo/
推荐作为依赖使用
npm install tinyjs-plugin-ninepatch --save也可以直接引用线上cdn地址,注意要使用最新的版本号,例如:
https://gw.alipayobjects.com/as/g/tiny-plugins/tinyjs-plugin-ninepatch/0.2.3/index.debug.js
https://gw.alipayobjects.com/as/g/tiny-plugins/tinyjs-plugin-ninepatch/0.2.3/index.js
首先当然是要引入,推荐NPM方式,当然你也可以下载独立版本,先从几个例子入手吧!
引用 Tiny.js 源码
<script src="https://gw.alipayobjects.com/as/g/tiny/tiny/1.1.5/tiny.js"></script>
var sprite = new Tiny.NinePatch.Sprite(
Tiny.Loader.resources['rect'].texture,
100,
100,
[30, 31, 40, 41]
);
九宫格定义: scale9Grid=[30,31,50,41]
表示的含义为 [30:区域1 的宽度值,
31:区域1 的高度值,
40:区域2 的宽度值 ,
41:区域4 的高度值]
------------—
| 1 | 2 | 3 |
-------------
| 4 | 5 | 6 |
-------------
| 7 | 8 | 9 |
-------------
Tiny.js: LinkFAQs
Tinyjs 九宫格图
We found that tinyjs-plugin-ninepatch demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.