Comments (3)
@zxuanhong We'd need to implement this in a proper way across all DMN editors, or are you interested in a DRD only solution?
DRD is fairly straight forward; just copy what we got in the BPMN rendering department. The other editors are probably easier to override via CSS?
from dmn-js.
@nikku Only DRD.
Table are easy to change colors with css, but DRD is cumbersome
- table is easy with css.
![image](https://private-user-images.githubusercontent.com/62740686/240978546-286e895c-f2c2-499c-b049-7f8583ecff68.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA1NzMyMTAsIm5iZiI6MTcxMDU3MjkxMCwicGF0aCI6Ii82Mjc0MDY4Ni8yNDA5Nzg1NDYtMjg2ZTg5NWMtZjJjMi00OTljLWIwNDktN2Y4NTgzZWNmZjY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE2VDA3MDgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzODM5NGZjMjU0MjM2ODU0MmIxY2YzZGMzZjdlNjIzMjAzYWJiYmVmOTRiNWIyODFhZWEwMGM3YzU1OWFmNTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZW4NAjjWzNzdOhPlkKPXsNRV_TVKRPR43lsJ7bEuAtM)
![image](https://private-user-images.githubusercontent.com/62740686/240978476-bef228c6-a75a-45a4-95c0-5f04c438bae4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA1NzMyMTAsIm5iZiI6MTcxMDU3MjkxMCwicGF0aCI6Ii82Mjc0MDY4Ni8yNDA5Nzg0NzYtYmVmMjI4YzYtYTc1YS00NWE0LTk1YzAtNWYwNGM0MzhiYWU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE2VDA3MDgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIwMDVmOWZiZDdkZWIwYmU1NDY2OTZkNDNhNTNhOTQwZmVlZjY5ZGNhNzJhYTcwODA3ODMzM2I3Yjc4ZTAyOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jEgbog7UoEGg4Z21H6lORTXV1Bsyx0mtMqrNuCXcRUQ)
from dmn-js.
@zxuanhong It looks like the drd
editor already supports this:
// in dmn-js
const modeler = new DmnModeler({
drd: {
drdRenderer: {
defaultFillColor: '#ffd700',
defaultStrokeColor: '#0057b8',
defaultLabelColor: '#0057b8'
}
}
});
Please check this comment.
If there is anything else you need, please raise your voice.
from dmn-js.
Related Issues (20)
- The translation did not take effect. HOT 2
- Embed FEEL editor in Input expressions in the table header HOT 1
- `Escape` Should Blur FEEL Editor Without Closing Context Menu HOT 1
- Embed FEEL editor in Table cells HOT 1
- Quotation marks should not be required in string input HOT 4
- Support DMN diagram accessibility HOT 8
- Embed FEEL editor in Literal expression editor
- Implement variable suggestions HOT 1
- FEEL editor in literal expression does not save value HOT 1
- In Firefox, you need to click literal expression editor first line to focus HOT 2
- Literal Expression view should not leave available space empty HOT 2
- Certain dmn-js ui labels are not translatable
- Selection lines follow element shape
- Adjust Lables and Titles HOT 1
- The bundled distro hangs on drill-down to literal expression HOT 4
- Drop callback-style APIs (removed with `[email protected]`)
- Drop transpilation HOT 3
- DMN elements - Scrollable region must have keyboard access HOT 14
- Implement BKM as literal expression HOT 4
- Display BKM in autosuggestions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dmn-js.