| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- "use strict";
- var __rest = (this && this.__rest) || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
- t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
- t[p[i]] = s[p[i]];
- }
- return t;
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.Mark = void 0;
- // @todo Move this to runtime.
- const Mark = () => {
- return (options) => {
- const { width, height, paddingLeft, paddingRight, paddingTop, paddingBottom, padding, inset, insetLeft, insetTop, insetRight, insetBottom, margin, marginLeft, marginBottom, marginTop, marginRight, data, coordinate, theme, component, interaction, x, y, key, frame, title, labelTransform, parentKey, clip, viewStyle } = options, mark = __rest(options, ["width", "height", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "padding", "inset", "insetLeft", "insetTop", "insetRight", "insetBottom", "margin", "marginLeft", "marginBottom", "marginTop", "marginRight", "data", "coordinate", "theme", "component", "interaction", "x", "y", "key", "frame", "title", "labelTransform", "parentKey", "clip", "viewStyle"]);
- return [
- {
- type: 'standardView',
- x,
- y,
- key,
- width,
- height,
- padding,
- paddingLeft,
- paddingRight,
- paddingTop,
- inset,
- insetLeft,
- insetTop,
- insetRight,
- insetBottom,
- paddingBottom,
- theme,
- coordinate,
- component,
- interaction,
- frame,
- title,
- labelTransform,
- margin,
- marginLeft,
- marginBottom,
- marginTop,
- marginRight,
- parentKey,
- clip,
- style: viewStyle,
- marks: [Object.assign(Object.assign({}, mark), { key: `${key}-0`, data })],
- },
- ];
- };
- };
- exports.Mark = Mark;
- exports.Mark.props = {};
- //# sourceMappingURL=mark.js.map
|