| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.getPrimitiveAttributes = exports.isPrimitiveAttribute = exports.PRIMILTIVE_ATTRIBUTES = void 0;
- exports.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',
- ];
- function isPrimitiveAttribute(key) {
- return exports.PRIMILTIVE_ATTRIBUTES.includes(key);
- }
- exports.isPrimitiveAttribute = isPrimitiveAttribute;
- function getPrimitiveAttributes(attributes) {
- var object = {};
- for (var key in attributes) {
- if (isPrimitiveAttribute(key))
- object[key] = attributes[key];
- }
- return object;
- }
- exports.getPrimitiveAttributes = getPrimitiveAttributes;
- //# sourceMappingURL=primitive.js.map
|