-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #4
- Loading branch information
Showing
25 changed files
with
836 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import NavigatedViewer from 'bpmn-js/lib/NavigatedViewer'; | ||
|
||
export default NavigatedViewer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Viewer from 'bpmn-js/lib/Viewer'; | ||
|
||
export default Viewer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import inherits from 'inherits'; | ||
|
||
import BaseViewer from '../base/NavigatedViewer'; | ||
|
||
import iconRendererModule from '@bpmn-io/element-templates-icons-renderer'; | ||
|
||
import drilldownModule from './features/drilldown'; | ||
|
||
import zeebeModdle from 'zeebe-bpmn-moddle/resources/zeebe.json'; | ||
|
||
|
||
/** | ||
* | ||
* @param {Object} options | ||
*/ | ||
export default function NavigatedViewer(options = {}) { | ||
|
||
options = { | ||
...options, | ||
moddleExtensions: { | ||
zeebe: zeebeModdle, | ||
...options.moddleExtensions | ||
} | ||
}; | ||
|
||
BaseViewer.call(this, options); | ||
} | ||
|
||
inherits(NavigatedViewer, BaseViewer); | ||
|
||
NavigatedViewer.prototype._camundaCloudModules = [ | ||
drilldownModule, | ||
iconRendererModule | ||
]; | ||
|
||
NavigatedViewer.prototype._modules = [].concat( | ||
BaseViewer.prototype._modules, | ||
NavigatedViewer.prototype._camundaCloudModules | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import inherits from 'inherits'; | ||
|
||
import BaseViewer from '../base/Viewer'; | ||
|
||
import iconRendererModule from '@bpmn-io/element-templates-icons-renderer'; | ||
|
||
import drilldownModule from './features/drilldown'; | ||
|
||
import zeebeModdle from 'zeebe-bpmn-moddle/resources/zeebe.json'; | ||
|
||
|
||
/** | ||
* | ||
* @param {Object} options | ||
*/ | ||
export default function Viewer(options = {}) { | ||
|
||
options = { | ||
...options, | ||
moddleExtensions: { | ||
zeebe: zeebeModdle, | ||
...options.moddleExtensions | ||
} | ||
}; | ||
|
||
BaseViewer.call(this, options); | ||
} | ||
|
||
inherits(Viewer, BaseViewer); | ||
|
||
Viewer.prototype._camundaCloudModules = [ | ||
drilldownModule, | ||
iconRendererModule | ||
]; | ||
|
||
Viewer.prototype._modules = [].concat( | ||
BaseViewer.prototype._modules, | ||
Viewer.prototype._camundaCloudModules | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import inherits from 'inherits'; | ||
|
||
import BaseViewer from '../base/NavigatedViewer'; | ||
|
||
import camundaModdle from 'camunda-bpmn-moddle/resources/camunda.json'; | ||
|
||
|
||
/** | ||
* | ||
* @param {Object} options | ||
*/ | ||
export default function NavigatedViewer(options = {}) { | ||
|
||
options = { | ||
...options, | ||
moddleExtensions: { | ||
camunda: camundaModdle, | ||
...options.moddleExtensions | ||
} | ||
}; | ||
|
||
BaseViewer.call(this, options); | ||
} | ||
|
||
inherits(NavigatedViewer, BaseViewer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import inherits from 'inherits'; | ||
|
||
import BaseViewer from '../base/Viewer'; | ||
|
||
import camundaModdle from 'camunda-bpmn-moddle/resources/camunda.json'; | ||
|
||
/** | ||
* | ||
* @param {Object} options | ||
*/ | ||
export default function Viewer(options = {}) { | ||
|
||
options = { | ||
...options, | ||
moddleExtensions: { | ||
camunda: camundaModdle, | ||
...options.moddleExtensions | ||
} | ||
}; | ||
|
||
BaseViewer.call(this, options); | ||
} | ||
|
||
inherits(Viewer, BaseViewer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import './diagram-js.css'; | ||
@import './bpmn-js.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import './diagram-js.css'; | ||
@import './bpmn-js.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './base-viewer.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './base-viewer.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './base-viewer.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './base-viewer.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.