| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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;
- };
- // @todo Move this to runtime.
- export 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 })],
- },
- ];
- };
- };
- Mark.props = {};
- //# sourceMappingURL=mark.js.map
|