Files
lan-manager/web/node_modules/@antv/g-svg/esm/constant.js
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

66 lines
1.4 KiB
JavaScript

export var SHAPE_TO_TAGS = {
rect: 'path',
circle: 'circle',
line: 'line',
path: 'path',
marker: 'path',
text: 'text',
polyline: 'polyline',
polygon: 'polygon',
image: 'image',
ellipse: 'ellipse',
dom: 'foreignObject',
};
export var SVG_ATTR_MAP = {
opacity: 'opacity',
fillStyle: 'fill',
fill: 'fill',
fillOpacity: 'fill-opacity',
strokeStyle: 'stroke',
strokeOpacity: 'stroke-opacity',
stroke: 'stroke',
x: 'x',
y: 'y',
r: 'r',
rx: 'rx',
ry: 'ry',
width: 'width',
height: 'height',
x1: 'x1',
x2: 'x2',
y1: 'y1',
y2: 'y2',
lineCap: 'stroke-linecap',
lineJoin: 'stroke-linejoin',
lineWidth: 'stroke-width',
lineDash: 'stroke-dasharray',
lineDashOffset: 'stroke-dashoffset',
miterLimit: 'stroke-miterlimit',
font: 'font',
fontSize: 'font-size',
fontStyle: 'font-style',
fontVariant: 'font-variant',
fontWeight: 'font-weight',
fontFamily: 'font-family',
startArrow: 'marker-start',
endArrow: 'marker-end',
path: 'd',
class: 'class',
id: 'id',
style: 'style',
preserveAspectRatio: 'preserveAspectRatio',
};
export var EVENTS = [
'click',
'mousedown',
'mouseup',
'dblclick',
'contextmenu',
'mouseenter',
'mouseleave',
'mouseover',
'mouseout',
'mousemove',
'wheel',
];
//# sourceMappingURL=constant.js.map