12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- 'use strict';
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- define([], function () {
- var APISpec = function () {
- function APISpec() {
- _classCallCheck(this, APISpec);
- }
- APISpec.prototype.getAPISpec = function getAPISpec() {
- if (!this.apiSpec) {
- this.apiSpec = {
- name: 'visDefinition API',
- events: {
- propagationInfo: {
- info: {
- id: this.getId(),
- type: this.getType()
- },
- callStack: {
- name: 'getByType',
- params: [this.getType()]
- }
- },
- actions: {
- refresh: {
- type: 'refresh',
- getEventName: function getEventName() {
- return 'definition';
- },
- getUndoActions: function getUndoActions() {
- return [{ name: 'refresh' }];
- }
- }
- }
- }
- };
- }
- return this.apiSpec;
- };
- return APISpec;
- }();
- return APISpec;
- });
|