Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fccb9ae69e |
No files matched your search
@@ -234,6 +234,22 @@ P 下双击 = 结束当前路径(`commitPenPath`),不再进节点编辑。
|
|||||||
- 文字 / 形状 / 钢笔会被直接栅格化进结果层(PS 合并矢量层也是这个结果)。
|
- 文字 / 形状 / 钢笔会被直接栅格化进结果层(PS 合并矢量层也是这个结果)。
|
||||||
- 结果层落回「原最低参与层」的位置,`assignLayerZ` 重新连续编号,不产生重复 z。
|
- 结果层落回「原最低参与层」的位置,`assignLayerZ` 重新连续编号,不产生重复 z。
|
||||||
|
|
||||||
|
## v1.8.1:修复 SRI 加载失败(发布通道改内容寻址)
|
||||||
|
|
||||||
|
v1.8.0 上线后线上报「脚本完整性校验失败(integrity 不符或加载失败)」,插件直接不可用。
|
||||||
|
|
||||||
|
原因不在插件代码,在发布通道:`scripts/plugins-publish.sh` 用的是**固定文件名**
|
||||||
|
`plugin-image-annotate.js`,而清单里的 `integrity` 随内容每次变化。
|
||||||
|
客户端只要还留着旧字节(浏览器磁盘/内存缓存、中间代理),新 integrity 就对不上 ⇒ SRI 判失败。
|
||||||
|
`no-cache + ETag` 的语义只是「可缓存但须回源校验」,管不住已经骗到手的旧副本。
|
||||||
|
|
||||||
|
修法:文件名改为内容寻址 `plugin-image-annotate.<sha256前12位>.js`,与 `plugins-publish.mjs`
|
||||||
|
的 `storedNameOf` 对齐。内容变 ⇒ 文件名变 ⇒ 新版本必然是新 URL,SRI 必中;
|
||||||
|
同时命中 Functions 的 `IMMUTABLE_JS_RE`,拿到 `public, max-age=31536000, immutable`,
|
||||||
|
355KB 的产物不必每次 304 回源协商。
|
||||||
|
|
||||||
|
插件本体代码与 v1.8.0 逐字相同,`src/index.js` 只有 manifest 里的版本号不同。
|
||||||
|
|
||||||
## v1.8:快速效果可调参数
|
## v1.8:快速效果可调参数
|
||||||
|
|
||||||
v1.4 的六个效果都是一键定死强度:「马赛克」在 800px 图上固定 13px 块,挡不住手机号;
|
v1.4 的六个效果都是一键定死强度:「马赛克」在 800px 图上固定 13px 块,挡不住手机号;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@iwb-plugin/image-annotate",
|
"name": "@iwb-plugin/image-annotate",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.8.0",
|
"version": "1.8.1",
|
||||||
"description": "IWB 插件:图片标注 / 修图(编辑器移植自 iwb-plaus 扩展,纯 Canvas 2D)",
|
"description": "IWB 插件:图片标注 / 修图(编辑器移植自 iwb-plaus 扩展,纯 Canvas 2D)",
|
||||||
"ibwPlugin": {
|
"ibwPlugin": {
|
||||||
"id": "image-annotate",
|
"id": "image-annotate",
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
var __IWB_ANNOTATE_MANIFEST__ = {
|
var __IWB_ANNOTATE_MANIFEST__ = {
|
||||||
id: 'image-annotate',
|
id: 'image-annotate',
|
||||||
name: '标注 / 修图',
|
name: '标注 / 修图',
|
||||||
version: '1.8.0',
|
version: '1.8.1',
|
||||||
apiVersion: 1,
|
apiVersion: 1,
|
||||||
capabilities: ['commands', 'nodeActions', 'canvas', 'canvasWrite'],
|
capabilities: ['commands', 'nodeActions', 'canvas', 'canvasWrite'],
|
||||||
settings: {
|
settings: {
|
||||||
|
|||||||
Reference in new issue
Block a user