export var PRIMILTIVE_ATTRIBUTES = [ '$el', 'anchor', 'cx', 'cy', 'd', 'defX', 'defY', 'dx', 'dy', 'fill', 'fillOpacity', 'filter', 'fontFamily', 'fontSize', 'fontStyle', 'fontVariant', 'fontWeight', 'height', 'img', 'increasedLineWidthForHitTesting', 'innerHTML', 'isBillboard', 'isClosed', 'isOverflowing', 'leading', 'letterSpacing', 'lineDash', 'lineHeight', 'lineWidth', 'markerEnd', 'markerEndOffset', 'markerMid', 'markerStart', 'markerStartOffset', 'maxLines', 'metrics', 'miterLimit', 'offsetX', 'offsetY', 'opacity', 'path', 'points', 'r', 'radius', 'rx', 'ry', 'shadowColor', 'src', 'stroke', 'strokeOpacity', 'text', 'textAlign', 'textBaseline', 'textDecorationColor', 'textDecorationLine', 'textDecorationStyle', 'textOverflow', 'textPath', 'textPathSide', 'textPathStartOffset', 'transform', 'transformOrigin', 'visibility', 'width', 'wordWrap', 'wordWrapWidth', 'x', 'x1', 'x2', 'y', 'y1', 'y2', 'z1', 'z2', 'zIndex', ]; export function isPrimitiveAttribute(key) { return PRIMILTIVE_ATTRIBUTES.includes(key); } export function getPrimitiveAttributes(attributes) { var object = {}; for (var key in attributes) { if (isPrimitiveAttribute(key)) object[key] = attributes[key]; } return object; } //# sourceMappingURL=primitive.js.map