123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.EVENTS = exports.SVG_ATTR_MAP = exports.SHAPE_TO_TAGS = void 0;
- exports.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',
- };
- exports.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',
- };
- exports.EVENTS = [
- 'click',
- 'mousedown',
- 'mouseup',
- 'dblclick',
- 'contextmenu',
- 'mouseenter',
- 'mouseleave',
- 'mouseover',
- 'mouseout',
- 'mousemove',
- 'wheel',
- ];
- //# sourceMappingURL=constant.js.map
|