123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- '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 Business Analytics (C) Copyright IBM Corp. 2019
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- /**
- * @class LiveWidgetInternal
- * @hideconstructor
- * @classdesc Implements LiveWidgetInternalAPI
- */
- define(['../../../../lib/@waca/dashboard-common/dist/core/APIFactory', './api/LiveWidgetInternalAPI'], function (APIFactory, LiveWidgetInternalAPI) {
- var LiveWidgetInternal = function () {
- function LiveWidgetInternal(options) {
- _classCallCheck(this, LiveWidgetInternal);
- this.widget = options.widget;
- }
- LiveWidgetInternal.prototype.getAPI = function getAPI() {
- if (!this.api) {
- this.api = APIFactory.createAPI(this, [LiveWidgetInternalAPI]);
- }
- return this.api;
- };
- LiveWidgetInternal.prototype.getWidget = function getWidget() {
- return this.widget;
- };
- LiveWidgetInternal.prototype.getVisView = function getVisView() {
- return this.widget.getCurrentVis();
- };
- LiveWidgetInternal.prototype.getPropertySupport = function getPropertySupport() {
- return this.widget.visModelManager.propertySupport;
- };
- return LiveWidgetInternal;
- }();
- return LiveWidgetInternal;
- });
- //# sourceMappingURL=LiveWidgetInternal.js.map
|