-
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
30 changed files
with
867 additions
and
29 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
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,34 @@ | ||
import inherits from 'inherits'; | ||
|
||
import BaseViewer from '../base/NavigatedViewer'; | ||
|
||
import { commonModdleExtensions, commonModules } from './util/commonModules'; | ||
|
||
|
||
/** | ||
* | ||
* @param {Object} options | ||
*/ | ||
export default function NavigatedViewer(options = {}) { | ||
|
||
options = { | ||
...options, | ||
moddleExtensions: { | ||
...commonModdleExtensions, | ||
...options.moddleExtensions | ||
} | ||
}; | ||
|
||
BaseViewer.call(this, options); | ||
} | ||
|
||
inherits(NavigatedViewer, BaseViewer); | ||
|
||
NavigatedViewer.prototype._camundaCloudModules = [ | ||
...commonModules | ||
]; | ||
|
||
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,34 @@ | ||
import inherits from 'inherits'; | ||
|
||
import BaseViewer from '../base/Viewer'; | ||
|
||
import { commonModdleExtensions, commonModules } from './util/commonModules'; | ||
|
||
|
||
/** | ||
* | ||
* @param {Object} options | ||
*/ | ||
export default function Viewer(options = {}) { | ||
|
||
options = { | ||
...options, | ||
moddleExtensions: { | ||
...commonModdleExtensions, | ||
...options.moddleExtensions | ||
} | ||
}; | ||
|
||
BaseViewer.call(this, options); | ||
} | ||
|
||
inherits(Viewer, BaseViewer); | ||
|
||
Viewer.prototype._camundaCloudModules = [ | ||
...commonModules | ||
]; | ||
|
||
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,14 @@ | ||
import iconRendererModule from '@bpmn-io/element-templates-icons-renderer'; | ||
|
||
import drilldownModule from '../features/drilldown'; | ||
|
||
import zeebeModdle from 'zeebe-bpmn-moddle/resources/zeebe.json'; | ||
|
||
export const commonModules = [ | ||
drilldownModule, | ||
iconRendererModule | ||
]; | ||
|
||
export const commonModdleExtensions = { | ||
zeebe: zeebeModdle | ||
}; |
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,25 @@ | ||
import inherits from 'inherits'; | ||
|
||
import BaseViewer from '../base/NavigatedViewer'; | ||
|
||
import { commonModdleExtensions } from './util/commonModules'; | ||
|
||
|
||
/** | ||
* | ||
* @param {Object} options | ||
*/ | ||
export default function NavigatedViewer(options = {}) { | ||
|
||
options = { | ||
...options, | ||
moddleExtensions: { | ||
...commonModdleExtensions, | ||
...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 { commonModdleExtensions } from './util/commonModules'; | ||
|
||
/** | ||
* | ||
* @param {Object} options | ||
*/ | ||
export default function Viewer(options = {}) { | ||
|
||
options = { | ||
...options, | ||
moddleExtensions: { | ||
...commonModdleExtensions, | ||
...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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import camundaModdle from 'camunda-bpmn-moddle/resources/camunda.json'; | ||
|
||
export const commonModules = []; | ||
|
||
export const commonModdleExtensions = { | ||
camunda: camundaModdle | ||
}; |
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
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-navigated-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-navigated-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'; |
Oops, something went wrong.