UNPKG

intentful

Version:

Create Custom Skills with less headache

32 lines (31 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AVGGraphic = void 0; class AVGGraphic { constructor(props) { this.props = props; } toJSON() { return this.model(); } model() { var _a; return { data: this.props.description, description: this.props.description, height: this.props.height, items: (_a = this.props.items) === null || _a === void 0 ? void 0 : _a.map((item) => item.model()), parameters: this.props.parameters, resources: this.props.resources, scaleTypeHeight: this.props.scaleTypeHeight, scaleTypeWidth: this.props.scaleTypeWidth, styles: this.props.styles, type: 'AVG', version: '1.2', viewportHeight: this.props.viewportHeight, viewportWidth: this.props.viewportWidth, width: this.props.width }; } } exports.AVGGraphic = AVGGraphic;