feat(image-annotate): v1.14.0 文字可以选字体(黑 / 宋 / 楷 / 圆,系统字体族)
用户问「文字工具能不能选字体、难度大不大、性能要求高不高」。结论:能,核心只差 fontOf() 里硬编码的 'sans-serif',难度和性能都不是障碍 —— 真正的约束在字体文件怎么来。 实现(只做系统字体族,不做内置字体文件): - text.js 新增 TEXT_FONTS(sans 黑体 / serif 宋体 / kai 楷体 / round 圆体),每个是一串 跨平台候选栈:macOS 命中苹方/宋体,Windows 命中雅黑/宋体,全不命中退通用 sans-serif/serif。 - fontOf() 改为 weight + size + fontStackOf(t);fontKeyOf() 把 undefined / 脏值收敛回 sans, 防止非法字符串进 ctx.font 让整串失效、静默退回浏览器默认(画面上看不出报错,极难排查)。 - 状态加 S.textFamily,对象加 fontFamily 字段;写回复用 TEXT_STYLE_STATE_KEY 一条路径, 快照 cloneVectors 深拷贝天然带上,撤销/导出无需额外适配。 - 选项栏加「字体」下拉:唯一走 change 而非 click 的文字样式控件。 - 输入框同步字体族与字重,不会「输入时黑体、确认后宋体」。 为什么不做内置字体(三条硬约束): 1. 宿主 CSP 是 default-src 'self',font-src 回落它,第三方字体 CDN 会被直接拒绝; 2. CJK 字体本机宋体 2.3MB / 楷体 2.2MB / 苹方全字重 64MB,插件产物只有 392KB; 3. Web 字体异步,没 ready 就 measureText 会量出 fallback 宽度,选中框与字形错位、导出画错。 实测(1000²,30 个文字对象各一张整图画布):首次 13.2–42.1ms,热重绘 0.1–0.2ms —— 换字体只在首次多一次字形光栅化,之后走缓存,比现状还略快。中文全角等宽,换字体不改字宽 (10 字 48px 在 6 种字体下都是 480px),所以版面不跳动。另记既有开销:每对象一张整图画布, 1000² 3.8MB / 4000² 61MB,20 个对象在 4000² 上约 1.2GB(与字体无关)。 回归:harness 192 → 197(新增 5 条,含脏值收敛、中文宽度不变、撤销);validate 9/9; 真站 e2e 补 2 条字体断言。
This commit is contained in:
1 parent
546999fdf9
commit
244fc9c2b2
12 files changed
+317
-11
No files matched your search
@@ -9,7 +9,7 @@
|
||||
var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
id: 'image-annotate',
|
||||
name: '标注 / 修图',
|
||||
version: '1.13.1',
|
||||
version: '1.14.0',
|
||||
apiVersion: 1,
|
||||
capabilities: ['commands', 'nodeActions', 'canvas', 'canvasWrite'],
|
||||
settings: {
|
||||
@@ -49,9 +49,36 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
const w = t && t.fontWeight;
|
||||
return w == null || w === "" ? "bold" : String(w);
|
||||
}
|
||||
var TEXT_FONTS = {
|
||||
sans: {
|
||||
label: "黑体",
|
||||
stack: '"PingFang SC", "Microsoft YaHei", "Heiti SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", sans-serif'
|
||||
},
|
||||
serif: {
|
||||
label: "宋体",
|
||||
stack: '"Songti SC", "SimSun", "STSong", "Source Han Serif SC", "Noto Serif SC", serif'
|
||||
},
|
||||
kai: {
|
||||
label: "楷体",
|
||||
stack: '"Kaiti SC", "KaiTi", "STKaiti", "AR PL UKai CN", "Noto Serif SC", serif'
|
||||
},
|
||||
round: {
|
||||
label: "圆体",
|
||||
stack: '"Yuanti SC", "YouYuan", "STYuanti", "PingFang SC", sans-serif'
|
||||
}
|
||||
};
|
||||
var TEXT_FONT_KEYS = ["sans", "serif", "kai", "round"];
|
||||
var TEXT_FONT_DEFAULT = "sans";
|
||||
function fontKeyOf(t) {
|
||||
const k = t && t.fontFamily;
|
||||
return TEXT_FONTS[k] ? k : TEXT_FONT_DEFAULT;
|
||||
}
|
||||
function fontStackOf(t) {
|
||||
return TEXT_FONTS[fontKeyOf(t)].stack;
|
||||
}
|
||||
function fontOf(t) {
|
||||
const size = Math.max(4, Number(t && t.fontSize) || 32);
|
||||
return weightOf(t) + " " + size + "px sans-serif";
|
||||
return weightOf(t) + " " + size + "px " + fontStackOf(t);
|
||||
}
|
||||
function textMetrics(t) {
|
||||
const ctx = measureCtx();
|
||||
@@ -139,6 +166,9 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
const s = src || {};
|
||||
return {
|
||||
fontWeight: weightOf(s),
|
||||
// 字体 key 过一遍收敛:外部传进来不认识的字符串不会进 ctx.font(脏值会让整个
|
||||
// 字体串失效、静默退回浏览器默认,文件本身看不出问题,极难排查)
|
||||
fontFamily: fontKeyOf(s),
|
||||
align: alignOf(s),
|
||||
lineHeight: Number(s.lineHeight) || TEXT_LINE_HEIGHT,
|
||||
strokeWidth: Math.max(0, Number(s.strokeWidth) || 0),
|
||||
@@ -203,6 +233,8 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
// ---- v1.9 文字样式:这套是「新建文字」的默认值,每段文字自己存一份 ----
|
||||
textWeight: "bold",
|
||||
// bold | normal | 900
|
||||
textFamily: "sans",
|
||||
// v1.14 字体预设 key:sans 黑体 | serif 宋体 | kai 楷体 | round 圆体
|
||||
textAlign: "left",
|
||||
// left | center | right(多行时各行按块宽对齐)
|
||||
textLineHeight: 1.25,
|
||||
@@ -1739,6 +1771,9 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
input.value = "";
|
||||
S.textEditingId = null;
|
||||
}
|
||||
const styleSrc = layer || { fontFamily: S.textFamily, fontWeight: S.textWeight };
|
||||
input.style.fontFamily = fontStackOf(styleSrc);
|
||||
input.style.fontWeight = weightOf(styleSrc);
|
||||
input.focus();
|
||||
input.select();
|
||||
input.dataset.x = x;
|
||||
@@ -1792,6 +1827,7 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
// 样式一次性随默认值落进对象:老对象没有这些字段,text.js 会各自回退到等价默认值
|
||||
...newTextStyle({
|
||||
fontWeight: S.textWeight,
|
||||
fontFamily: S.textFamily,
|
||||
align: S.textAlign,
|
||||
lineHeight: S.textLineHeight,
|
||||
strokeWidth: S.textStrokeWidth,
|
||||
@@ -5069,6 +5105,7 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
var SHAPE_NAMES = { rect: "矩形", circle: "圆形", arrow: "箭头", pen: "钢笔路径" };
|
||||
var TEXT_STYLE_STATE_KEY = {
|
||||
fontWeight: "textWeight",
|
||||
fontFamily: "textFamily",
|
||||
align: "textAlign",
|
||||
lineHeight: "textLineHeight",
|
||||
strokeWidth: "textStrokeWidth",
|
||||
@@ -5083,6 +5120,8 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
};
|
||||
return {
|
||||
fontWeight: String(pick("fontWeight", "textWeight", "bold")),
|
||||
// 字体走 fontKeyOf 收敛:老对象没有 fontFamily,或存了不认识的 key,都落回默认黑体
|
||||
fontFamily: fontKeyOf({ fontFamily: pick("fontFamily", "textFamily", "sans") }),
|
||||
align: pick("align", "textAlign", "left"),
|
||||
lineHeight: Number(pick("lineHeight", "textLineHeight", TEXT_LINE_HEIGHT)) || TEXT_LINE_HEIGHT,
|
||||
strokeWidth: Math.max(0, Number(pick("strokeWidth", "textStrokeWidth", TEXT_DEFAULTS.strokeWidth)) || 0),
|
||||
@@ -5097,6 +5136,8 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
const wBtn = (val, label, title) => `<button class="iwb-opt-btn${v.fontWeight === val ? " active" : ""}" data-opt-text="fontWeight" data-value="${val}" title="${title}">${label}</button>`;
|
||||
const aBtn = (val, label, title) => `<button class="iwb-opt-btn${v.align === val ? " active" : ""}" data-opt-text="align" data-value="${val}" title="${title}">${label}</button>`;
|
||||
return `<span class="iwb-opt-sep"></span>
|
||||
<span class="iwb-opt-label">字体</span>
|
||||
<select class="iwb-opt-select" data-opt-text="fontFamily" title="字体:改选中的这段文字,同时作为下一段新文字的默认字体">${TEXT_FONT_KEYS.map((k) => `<option value="${k}"${v.fontFamily === k ? " selected" : ""}>${TEXT_FONTS[k].label}</option>`).join("")}</select>
|
||||
<span class="iwb-opt-label">字重</span>${wBtn("normal", "常规", "常规字重")}${wBtn("bold", "粗", "粗体(默认)")}${wBtn("900", "特粗", "特粗,封面标题用")}
|
||||
<span class="iwb-opt-label">对齐</span>${aBtn("left", "左", "多行时按左缘对齐")}${aBtn("center", "中", "多行时居中")}${aBtn("right", "右", "多行时按右缘对齐")}
|
||||
<span class="iwb-opt-label">行距</span>
|
||||
@@ -5304,6 +5345,7 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
if (!stateKey) return;
|
||||
let value = raw;
|
||||
if (key === "bgFill") value = raw === true || raw === 1 || raw === "1" || raw === "true";
|
||||
else if (key === "fontFamily") value = fontKeyOf({ fontFamily: raw });
|
||||
else if (key === "lineHeight") value = clamp(Number(raw) || 125, 80, 300) / 100;
|
||||
else if (key === "strokeWidth") value = clamp(Number(raw) || 0, 0, 40);
|
||||
else if (key === "strokeColor" || key === "bgColor") value = String(raw || TEXT_DEFAULTS.bgColor).toLowerCase();
|
||||
@@ -5639,6 +5681,13 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
setOptionFromControl(e.target, false);
|
||||
});
|
||||
body.addEventListener("change", (e) => {
|
||||
const textSel = e.target && e.target.closest ? e.target.closest("select[data-opt-text]") : null;
|
||||
if (textSel) {
|
||||
e.stopPropagation();
|
||||
applyTextStyle(textSel.dataset.optText, textSel.value, true);
|
||||
syncOptionBar();
|
||||
return;
|
||||
}
|
||||
const colorEl = nativeColorOf(e.target);
|
||||
if (colorEl) {
|
||||
e.stopPropagation();
|
||||
@@ -8086,6 +8135,7 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
fontSize: t.fontSize,
|
||||
color: t.color,
|
||||
fontWeight: t.fontWeight,
|
||||
fontFamily: t.fontFamily,
|
||||
align: t.align,
|
||||
lineHeight: t.lineHeight,
|
||||
strokeWidth: t.strokeWidth,
|
||||
@@ -8103,6 +8153,7 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
recentColors: (S.recentColors || []).slice(),
|
||||
textDefaults: {
|
||||
weight: S.textWeight,
|
||||
family: S.textFamily,
|
||||
align: S.textAlign,
|
||||
lineHeight: S.textLineHeight,
|
||||
strokeWidth: S.textStrokeWidth,
|
||||
@@ -8214,7 +8265,7 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
};
|
||||
|
||||
// image-annotate/plugin/editor.css
|
||||
var editor_default = '/* IWB 鲜艺抠图节点 - 注入样式 */\n\n/* 抠图按钮 */\n.iwb-cutout-btn {\n cursor: pointer;\n opacity: 0.7;\n transition: opacity 0.15s, transform 0.15s;\n}\n\n.iwb-cutout-btn:hover {\n opacity: 1;\n transform: scale(1.15);\n}\n\n.iwb-cutout-btn svg {\n width: 14px;\n height: 14px;\n display: block;\n}\n\n/* 正在处理中的按钮状态 */\n.iwb-cutout-btn.processing {\n animation: iwb-cutout-pulse 1s infinite;\n pointer-events: none;\n}\n\n@keyframes iwb-cutout-pulse {\n 0%, 100% { opacity: 0.4; }\n 50% { opacity: 1; }\n}\n\n/* 全屏遮罩 */\n.iwb-cutout-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.25);\n display: none;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n gap: 12px;\n z-index: 999999;\n pointer-events: all;\n backdrop-filter: blur(2px);\n}\n\n/* 自定义按钮提示(挂在 body,最高层级,不会被图片遮挡) */\n#iwb-cutout-tip {\n position: fixed;\n z-index: 2147483647;\n background: rgba(30, 30, 46, 0.95);\n color: #fff;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n line-height: 1.5;\n white-space: nowrap;\n pointer-events: none;\n display: none;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);\n border: 1px solid rgba(255, 255, 255, 0.14);\n font-family: system-ui, -apple-system, "Segoe UI", sans-serif;\n max-width: 320px;\n white-space: normal;\n word-break: break-all;\n}\n\n/* 加载动画 */\n.iwb-cutout-spinner {\n width: 48px;\n height: 48px;\n border: 4px solid rgba(255, 255, 255, 0.3);\n border-top-color: #e8a735;\n border-radius: 50%;\n animation: iwb-cutout-spin 0.8s linear infinite;\n}\n\n@keyframes iwb-cutout-spin {\n to { transform: rotate(360deg); }\n}\n\n/* 遮罩文字 */\n.iwb-cutout-text {\n color: #fff;\n font-size: 14px;\n font-weight: 500;\n text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);\n background: rgba(0, 0, 0, 0.6);\n padding: 8px 16px;\n border-radius: 6px;\n}\n\n/* Toast 提示 */\n.iwb-cutout-toast {\n position: fixed;\n bottom: 24px;\n left: 50%;\n transform: translateX(-50%);\n padding: 10px 20px;\n border-radius: 8px;\n font-size: 13px;\n font-weight: 500;\n z-index: 999999;\n transition: opacity 0.3s;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n display: none;\n max-width: 400px;\n}\n\n.iwb-cutout-toast-success {\n background: #1a7f37;\n color: #fff;\n}\n\n.iwb-cutout-toast-error {\n background: #cf222e;\n color: #fff;\n}\n\n.iwb-cutout-toast-info {\n background: #1f6feb;\n color: #fff;\n}\n\n/* 白底按钮 */\n.iwb-whitebg-btn {\n cursor: pointer;\n opacity: 0.7;\n transition: opacity 0.15s, transform 0.15s;\n}\n.iwb-whitebg-btn:hover { opacity: 1; transform: scale(1.15); }\n.iwb-whitebg-btn svg { width: 14px; height: 14px; display: block; }\n.iwb-whitebg-btn.processing { animation: iwb-cutout-pulse 1s infinite; pointer-events: none; }\n\n/* 编辑按钮 */\n.iwb-editor-btn-icon {\n cursor: pointer;\n opacity: 0.7;\n transition: opacity 0.15s, transform 0.15s;\n}\n.iwb-editor-btn-icon:hover { opacity: 1; transform: scale(1.15); }\n.iwb-editor-btn-icon svg { width: 14px; height: 14px; display: block; }\n\n/* ==================== 图片编辑器 ==================== */\n\n.iwb-editor-overlay {\n position: fixed;\n top: 0; left: 0;\n width: 100%; height: 100%;\n background: rgba(0, 0, 0, 0.6);\n display: none;\n align-items: center;\n justify-content: center;\n z-index: 999998;\n backdrop-filter: blur(3px);\n}\n\n.iwb-editor-modal {\n background: #1e1e2e;\n border-radius: 0;\n box-shadow: none;\n display: flex;\n flex-direction: column;\n width: 100vw;\n height: 100vh;\n max-width: none;\n max-height: none;\n overflow: visible;\n}\n\n/* 新增:主区域(画布 + 图层面板)flex 布局 */\n.iwb-editor-main {\n display: flex;\n flex: 1 1 auto;\n min-height: 0;\n overflow: visible;\n}\n\n.iwb-editor-header {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 16px;\n background: #181825;\n border-bottom: 1px solid #313244;\n flex-wrap: nowrap;\n}\n.iwb-editor-header > .iwb-editor-tools {\n position: absolute;\n left: 12px;\n top: 68px;\n width: 44px;\n flex-direction: column;\n padding: 6px;\n background: #181825;\n border: 1px solid #313244;\n border-radius: 8px;\n z-index: 20;\n}\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action { position: static; }\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action[data-action="undo"],\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action[data-action="redo"],\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action[data-action="reset"],\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action[data-action="restore"] {\n position: absolute;\n top: -54px;\n left: auto;\n}\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action[data-action="undo"] { right: 154px; }\n.iwb-editor-header > .iwb-edLine truncated
|
||||
var editor_default = '/* IWB 鲜艺抠图节点 - 注入样式 */\n\n/* 抠图按钮 */\n.iwb-cutout-btn {\n cursor: pointer;\n opacity: 0.7;\n transition: opacity 0.15s, transform 0.15s;\n}\n\n.iwb-cutout-btn:hover {\n opacity: 1;\n transform: scale(1.15);\n}\n\n.iwb-cutout-btn svg {\n width: 14px;\n height: 14px;\n display: block;\n}\n\n/* 正在处理中的按钮状态 */\n.iwb-cutout-btn.processing {\n animation: iwb-cutout-pulse 1s infinite;\n pointer-events: none;\n}\n\n@keyframes iwb-cutout-pulse {\n 0%, 100% { opacity: 0.4; }\n 50% { opacity: 1; }\n}\n\n/* 全屏遮罩 */\n.iwb-cutout-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.25);\n display: none;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n gap: 12px;\n z-index: 999999;\n pointer-events: all;\n backdrop-filter: blur(2px);\n}\n\n/* 自定义按钮提示(挂在 body,最高层级,不会被图片遮挡) */\n#iwb-cutout-tip {\n position: fixed;\n z-index: 2147483647;\n background: rgba(30, 30, 46, 0.95);\n color: #fff;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n line-height: 1.5;\n white-space: nowrap;\n pointer-events: none;\n display: none;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);\n border: 1px solid rgba(255, 255, 255, 0.14);\n font-family: system-ui, -apple-system, "Segoe UI", sans-serif;\n max-width: 320px;\n white-space: normal;\n word-break: break-all;\n}\n\n/* 加载动画 */\n.iwb-cutout-spinner {\n width: 48px;\n height: 48px;\n border: 4px solid rgba(255, 255, 255, 0.3);\n border-top-color: #e8a735;\n border-radius: 50%;\n animation: iwb-cutout-spin 0.8s linear infinite;\n}\n\n@keyframes iwb-cutout-spin {\n to { transform: rotate(360deg); }\n}\n\n/* 遮罩文字 */\n.iwb-cutout-text {\n color: #fff;\n font-size: 14px;\n font-weight: 500;\n text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);\n background: rgba(0, 0, 0, 0.6);\n padding: 8px 16px;\n border-radius: 6px;\n}\n\n/* Toast 提示 */\n.iwb-cutout-toast {\n position: fixed;\n bottom: 24px;\n left: 50%;\n transform: translateX(-50%);\n padding: 10px 20px;\n border-radius: 8px;\n font-size: 13px;\n font-weight: 500;\n z-index: 999999;\n transition: opacity 0.3s;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n display: none;\n max-width: 400px;\n}\n\n.iwb-cutout-toast-success {\n background: #1a7f37;\n color: #fff;\n}\n\n.iwb-cutout-toast-error {\n background: #cf222e;\n color: #fff;\n}\n\n.iwb-cutout-toast-info {\n background: #1f6feb;\n color: #fff;\n}\n\n/* 白底按钮 */\n.iwb-whitebg-btn {\n cursor: pointer;\n opacity: 0.7;\n transition: opacity 0.15s, transform 0.15s;\n}\n.iwb-whitebg-btn:hover { opacity: 1; transform: scale(1.15); }\n.iwb-whitebg-btn svg { width: 14px; height: 14px; display: block; }\n.iwb-whitebg-btn.processing { animation: iwb-cutout-pulse 1s infinite; pointer-events: none; }\n\n/* 编辑按钮 */\n.iwb-editor-btn-icon {\n cursor: pointer;\n opacity: 0.7;\n transition: opacity 0.15s, transform 0.15s;\n}\n.iwb-editor-btn-icon:hover { opacity: 1; transform: scale(1.15); }\n.iwb-editor-btn-icon svg { width: 14px; height: 14px; display: block; }\n\n/* ==================== 图片编辑器 ==================== */\n\n.iwb-editor-overlay {\n position: fixed;\n top: 0; left: 0;\n width: 100%; height: 100%;\n background: rgba(0, 0, 0, 0.6);\n display: none;\n align-items: center;\n justify-content: center;\n z-index: 999998;\n backdrop-filter: blur(3px);\n}\n\n.iwb-editor-modal {\n background: #1e1e2e;\n border-radius: 0;\n box-shadow: none;\n display: flex;\n flex-direction: column;\n width: 100vw;\n height: 100vh;\n max-width: none;\n max-height: none;\n overflow: visible;\n}\n\n/* 新增:主区域(画布 + 图层面板)flex 布局 */\n.iwb-editor-main {\n display: flex;\n flex: 1 1 auto;\n min-height: 0;\n overflow: visible;\n}\n\n.iwb-editor-header {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 16px;\n background: #181825;\n border-bottom: 1px solid #313244;\n flex-wrap: nowrap;\n}\n.iwb-editor-header > .iwb-editor-tools {\n position: absolute;\n left: 12px;\n top: 68px;\n width: 44px;\n flex-direction: column;\n padding: 6px;\n background: #181825;\n border: 1px solid #313244;\n border-radius: 8px;\n z-index: 20;\n}\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action { position: static; }\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action[data-action="undo"],\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action[data-action="redo"],\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action[data-action="reset"],\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action[data-action="restore"] {\n position: absolute;\n top: -54px;\n left: auto;\n}\n.iwb-editor-header > .iwb-editor-tools .iwb-editor-action[data-action="undo"] { right: 154px; }\n.iwb-editor-header > .iwb-edLine truncated
|
||||
|
||||
// image-annotate/plugin/glue.js
|
||||
function createGlue(ctx, css) {
|
||||
|
||||
Reference in new issue
Block a user