'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /* *+------------------------------------------------------------------------+ *| Licensed Materials - Property of IBM *| IBM Cognos Products: BI Dashboard *| (C) Copyright IBM Corp. 2020 *| *| US Government Users Restricted Rights - Use, duplication or disclosure *| restricted by GSA ADP Schedule Contract with IBM Corp. *+------------------------------------------------------------------------+ */ /** * Shape helper class **/ define([], function () { var ShapeUtils = function () { function ShapeUtils() { _classCallCheck(this, ShapeUtils); } /** * Add a shape widget to the given content * @param {object} content - content * @param {object} options - options.shapeModel object - the model of a shape * @param {object} transactionToken */ ShapeUtils.addShapeWidgetToContent = function addShapeWidgetToContent(content, options, transactionToken) { var oShapeModel = options.shapeModel; content.setPropertyValue('value.graphic.fillColor', oShapeModel.fillColor, transactionToken); content.setPropertyValue('value.graphic.borderColor', oShapeModel.borderColor, transactionToken); content.setPropertyValue('value.graphic.content', oShapeModel.content, transactionToken); }; return ShapeUtils; }(); return ShapeUtils; }); //# sourceMappingURL=ShapeUtils.js.map