Gathering detailed insights and metrics for dmn-js-properties-panel
Gathering detailed insights and metrics for dmn-js-properties-panel
Gathering detailed insights and metrics for dmn-js-properties-panel
Gathering detailed insights and metrics for dmn-js-properties-panel
npm install dmn-js-properties-panel
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
11 Stars
296 Commits
14 Forks
8 Watching
4 Branches
17 Contributors
Updated on 20 Nov 2024
Minified
Minified + Gzipped
JavaScript (99.32%)
CSS (0.68%)
Cumulative downloads
Total Downloads
Last day
-8.2%
763
Compared to previous day
Last week
20.4%
4,217
Compared to previous week
Last month
26.5%
16,993
Compared to previous month
Last year
13.5%
167,630
Compared to previous year
3
42
This is properties panel extension for dmn-js.
The properties panel allows users to edit invisible DMN properties in a convenient way.
Some of the features are:
Provide two HTML elements, one for the properties panel and one for the DMN diagram:
1<div class="modeler"> 2 <div id="canvas"></div> 3 <div id="properties"></div> 4</div>
Bootstrap dmn-js with the properties panel, and a properties provider:
1import DmnModeler from 'dmn-js/lib/Modeler'; 2 3import { 4 DmnPropertiesPanelModule, 5 DmnPropertiesProviderModule, 6} from 'dmn-js-properties-panel'; 7 8var dmnModeler = new DmnModeler({ 9 drd: { 10 propertiesPanel: { 11 parent: '#properties' 12 }, 13 additionalModules: [ 14 DmnPropertiesPanelModule, 15 DmnPropertiesProviderModule 16 ] 17 }, 18 container: '#canvas' 19});
You may attach or detach the properties panel dynamically to any element on the page, too:
1var propertiesPanel = dmnJS.get('propertiesPanel'); 2 3// detach the panel 4propertiesPanel.detach(); 5 6// attach it to some other element 7propertiesPanel.attachTo('#other-properties');
In order to be able to edit Camunda related properties, use the camunda properties provider.
In addition, you need to define the camunda
namespace via camunda-dmn-moddle.
1import DmnModeler from 'dmn-js/lib/Modeler'; 2import { 3 DmnPropertiesPanelModule, 4 DmnPropertiesProviderModule, 5 CamundaPropertiesProviderModule 6} from 'dmn-js-properties-panel'; 7 8 9// use Camunda properties provider 10import CamundaPropertiesProvider from 'src/provider/camunda'; 11 12// a descriptor that defines Camunda related DMN 1.1 XML extensions 13import camundaModdleDescriptor from 'camunda-dmn-moddle/resources/camunda'; 14 15var dmnModeler = new DmnModeler({ 16 drd: { 17 propertiesPanel: { 18 parent: '#properties' 19 }, 20 additionalModules: [ 21 DmnPropertiesPanelModule, 22 DmnPropertiesProviderModule, 23 CamundaPropertiesProviderModule 24 ] 25 }, 26 container: '#canvas' 27 // make camunda prefix known for import, editing and export 28 moddleExtensions: { 29 camunda: camundaModdleDescriptor 30 } 31}); 32 33...
1npm install 2 3export TEST_BROWSERS=Chrome 4npm run all
MIT
The latest stable version of the package.
Stable Version
1
0/10
Summary
Cross-Site Scripting in dmn-js-properties-panel
Affected Versions
< 0.3.0
Patched Versions
0.3.0
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 1/13 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More