标记便签改为金色(与 logo 同色)、缩小 padding
This commit is contained in:
@@ -39,7 +39,7 @@ function sphericalAreaKm2(polys) {
|
||||
|
||||
// 生成便签 canvas:黄底圆角 + 左侧箭头 + 黑色加粗文字(整张图,箭头尖端指向坐标)
|
||||
function makeStickyNote(text, fontSize, selected = false) {
|
||||
const padX = 14, padY = 8, radius = 8, arrowW = 12, arrowH = 16, S = 2; // S: 2x 超采样
|
||||
const padX = 10, padY = 6, radius = 8, arrowW = 12, arrowH = 16, S = 2; // S: 2x 超采样
|
||||
const font = `bold ${fontSize}px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif`;
|
||||
const m = document.createElement('canvas');
|
||||
const mctx = m.getContext('2d');
|
||||
@@ -73,7 +73,7 @@ function makeStickyNote(text, fontSize, selected = false) {
|
||||
ctx.arcTo(arrowW, h, arrowW, h - radius, radius); // 左下圆角
|
||||
ctx.lineTo(arrowW, h / 2 + arrowH / 2); // 左边缘下部
|
||||
ctx.closePath(); // 闭合回箭头尖端
|
||||
ctx.fillStyle = '#FFF9A6';
|
||||
ctx.fillStyle = '#e0c46a';
|
||||
ctx.fill();
|
||||
|
||||
// 选中时加黑边
|
||||
|
||||
Reference in New Issue
Block a user