update
This commit is contained in:
103
ebpm-process-modeler/bpmn-js/colors/ColorContextPadProvider.js
Normal file
103
ebpm-process-modeler/bpmn-js/colors/ColorContextPadProvider.js
Normal file
@@ -0,0 +1,103 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
function ColorContextPadProvider(contextPad, popupMenu, canvas) {
|
||||
|
||||
this._contextPad = contextPad;
|
||||
this._popupMenu = popupMenu;
|
||||
this._canvas = canvas;
|
||||
contextPad.registerProvider(this);
|
||||
}
|
||||
|
||||
|
||||
ColorContextPadProvider.$inject = [
|
||||
'contextPad',
|
||||
'popupMenu',
|
||||
'canvas'
|
||||
];
|
||||
module.exports = ColorContextPadProvider;
|
||||
|
||||
|
||||
ColorContextPadProvider.prototype.getContextPadEntries = function(element) {
|
||||
var self = this;
|
||||
var actions = {
|
||||
'3': {
|
||||
group: 'e',
|
||||
className: 'bpmn-icon-screw-wrench',
|
||||
title: '设置颜色',
|
||||
action: {
|
||||
click: function(event, element) {
|
||||
// close any existing popup
|
||||
self._popupMenu.close();
|
||||
|
||||
// create new color-picker popup
|
||||
var colorPicker = _popupMenuCreate(self._popupMenu,'color-picker', element);
|
||||
|
||||
// get start popup draw start position
|
||||
var opts = getStartPosition(self._canvas, self._contextPad, element);
|
||||
|
||||
// or fallback to current cursor position
|
||||
opts.cursor = {
|
||||
x: event.x,
|
||||
y: event.y
|
||||
};
|
||||
|
||||
// open color picker submenu popup
|
||||
colorPicker.open(element,'color-picker',opts);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// return actions;
|
||||
};
|
||||
|
||||
|
||||
function _popupMenuCreate(_this,id,element){
|
||||
var provider = _this._providers[id];
|
||||
|
||||
if (!provider) {
|
||||
throw new Error('Provider is not registered: ' + id);
|
||||
}
|
||||
|
||||
if (!element) {
|
||||
throw new Error('Element is missing');
|
||||
}
|
||||
|
||||
var current = _this._current = {
|
||||
provider: provider,
|
||||
className: id,
|
||||
element: element
|
||||
};
|
||||
|
||||
if (provider.getHeaderEntries) {
|
||||
current.headerEntries = provider.getHeaderEntries(element);
|
||||
}
|
||||
|
||||
current.entries = provider.getEntries(element);
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
// helpers //////////////////////
|
||||
|
||||
function getStartPosition(canvas, contextPad, element) {
|
||||
|
||||
var Y_OFFSET = 5;
|
||||
|
||||
var diagramContainer = canvas.getContainer(),
|
||||
pad = contextPad.getPad(element).html;
|
||||
|
||||
var diagramRect = diagramContainer.getBoundingClientRect(),
|
||||
padRect = pad.getBoundingClientRect();
|
||||
|
||||
var top = padRect.top - diagramRect.top;
|
||||
var left = padRect.left - diagramRect.left;
|
||||
|
||||
var pos = {
|
||||
x: left,
|
||||
y: top + padRect.height + Y_OFFSET
|
||||
};
|
||||
|
||||
return pos;
|
||||
}
|
||||
97
ebpm-process-modeler/bpmn-js/colors/ColorPopupProvider.js
Normal file
97
ebpm-process-modeler/bpmn-js/colors/ColorPopupProvider.js
Normal file
@@ -0,0 +1,97 @@
|
||||
'use strict';
|
||||
|
||||
var getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;
|
||||
|
||||
|
||||
function PopupMenuProvider(popupMenu, modeling) {
|
||||
this._popupMenu = popupMenu;
|
||||
this._modeling = modeling;
|
||||
|
||||
this._popupMenu.registerProvider('color-picker', this);
|
||||
}
|
||||
|
||||
|
||||
PopupMenuProvider.$inject = [
|
||||
'popupMenu',
|
||||
'modeling'
|
||||
];
|
||||
module.exports = PopupMenuProvider;
|
||||
|
||||
|
||||
PopupMenuProvider.prototype.getEntries = function(element) {
|
||||
var self = this;
|
||||
|
||||
var colors = [
|
||||
{
|
||||
label: '红色',
|
||||
hex: 'ff0000'
|
||||
}, {
|
||||
label: '橙色',
|
||||
hex: 'ff7f00'
|
||||
}, {
|
||||
label: '黄色',
|
||||
hex: 'ffff00'
|
||||
}, {
|
||||
label: '绿色',
|
||||
hex: '00ff00'
|
||||
}, {
|
||||
label: '蓝色',
|
||||
hex: '0000ff'
|
||||
}, {
|
||||
label: '青色',
|
||||
hex: '4b0082'
|
||||
}, {
|
||||
label: '紫色',
|
||||
hex: '9400d3'
|
||||
}
|
||||
];
|
||||
|
||||
var entries = colors.map(function(color) {
|
||||
return {
|
||||
label: color.label,
|
||||
id: color.label.toLowerCase() + '-color',
|
||||
className: 'color-icon-' + color.hex,
|
||||
action: createAction(self._modeling, element, '#' + color.hex)
|
||||
};
|
||||
});
|
||||
return entries;
|
||||
};
|
||||
|
||||
|
||||
PopupMenuProvider.prototype.getHeaderEntries = function(element) {
|
||||
return [
|
||||
{
|
||||
label: '还原',
|
||||
id: 'clear-color',
|
||||
className: 'color-icon-clear',
|
||||
action: createAction(this._modeling, element)
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
function createAction(modeling, element, newColor) {
|
||||
// set hex value to an element
|
||||
return function() {
|
||||
var bo = getBusinessObject(element);
|
||||
var di = bo.di;
|
||||
|
||||
var currentColor = di.get('color:background-color');
|
||||
|
||||
console.log('Replacing colors from/to: ', currentColor, newColor);
|
||||
|
||||
var ns = (
|
||||
newColor ?
|
||||
'http://www.omg.org/spec/BPMN/non-normative/color/1.0' :
|
||||
undefined
|
||||
);
|
||||
|
||||
modeling.updateProperties(element, {
|
||||
di: {
|
||||
'xmlns:color': ns,
|
||||
'color:background-color': newColor
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
}
|
||||
66
ebpm-process-modeler/bpmn-js/colors/ColorRenderer.js
Normal file
66
ebpm-process-modeler/bpmn-js/colors/ColorRenderer.js
Normal file
@@ -0,0 +1,66 @@
|
||||
|
||||
var inherits = require('inherits');
|
||||
var getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;
|
||||
import BpmnRenderer from 'bpmn-js/lib/draw/BpmnRenderer';
|
||||
//import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
|
||||
var svgAttr = require('tiny-svg/lib/attr');
|
||||
|
||||
|
||||
export default function ColorRenderer(injector, eventBus) {
|
||||
// set higher priority then a default 1000 for an existing BpmnRenderer
|
||||
var callPriority = 2000;
|
||||
|
||||
//
|
||||
//BaseRenderer.call(this, eventBus, 2000);
|
||||
injector.invoke(BpmnRenderer, this);
|
||||
var self = this;
|
||||
|
||||
eventBus.on([ 'render.shape' ], callPriority, function(evt, context) {
|
||||
var element = context.element,
|
||||
visuals = context.gfx;
|
||||
|
||||
// call default implementation
|
||||
var shape = self.drawShape(visuals, element);
|
||||
// 2D shape with default white color
|
||||
var businessObject = getBusinessObject(element);
|
||||
if(businessObject.$type == "bpmn:SequenceFlow"){
|
||||
svgAttr(shape, {
|
||||
fill: getBackgroundColor(element) || '#000000'
|
||||
});
|
||||
}else{
|
||||
svgAttr(shape, {
|
||||
fill: getBackgroundColor(element) || '#ffffff'
|
||||
});
|
||||
}
|
||||
// make sure default renderer is not called anymore
|
||||
return shape;
|
||||
});
|
||||
|
||||
eventBus.on([ 'render.connection' ], callPriority, function(evt, context) {
|
||||
var element = context.element,
|
||||
visuals = context.gfx;
|
||||
|
||||
// call default implementation
|
||||
var shape = self.drawConnection(visuals, element);
|
||||
|
||||
// line shape with default black color
|
||||
svgAttr(shape, {
|
||||
stroke: getBackgroundColor(element) || '#000000'
|
||||
});
|
||||
|
||||
// make sure default renderer is not called anymore
|
||||
return shape;
|
||||
});
|
||||
}
|
||||
|
||||
inherits(ColorRenderer, BpmnRenderer);
|
||||
ColorRenderer.$inject = [ 'injector', 'eventBus' ];
|
||||
//module.exports = ColorRenderer;
|
||||
|
||||
|
||||
|
||||
|
||||
function getBackgroundColor(element) {
|
||||
var bo = getBusinessObject(element);
|
||||
return bo.di.get('color:background-color');
|
||||
}
|
||||
69
ebpm-process-modeler/bpmn-js/colors/color-picker.css
Normal file
69
ebpm-process-modeler/bpmn-js/colors/color-picker.css
Normal file
@@ -0,0 +1,69 @@
|
||||
/* COLOR PICKER */
|
||||
|
||||
/* context pad */
|
||||
.djs-context-pad .entry {
|
||||
background-color: rgba(255, 255, 255, 0.6);
|
||||
box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
.bpmn-icon-color:before {
|
||||
content: '🖌';
|
||||
}
|
||||
|
||||
/* color popup menu */
|
||||
[class^="color-icon-"]:before,
|
||||
[class*=" color-icon-"]:before {
|
||||
display: inline-block;
|
||||
content: '';
|
||||
width: 1.5em;
|
||||
height: 0.6em;
|
||||
border-radius: 0.5em;
|
||||
border: 0.03em solid black;
|
||||
}
|
||||
|
||||
.djs-popup-header .entry.color-icon-clear {
|
||||
margin-left: 5px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.djs-popup-header .entry.color-icon-clear > span {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.color-icon-clear:before {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.color-icon-ff0000:before {
|
||||
background-color: #ff0000;
|
||||
}
|
||||
|
||||
.color-icon-ff7f00:before {
|
||||
background-color: #ff7f00;
|
||||
}
|
||||
|
||||
.color-icon-ffff00:before {
|
||||
background-color: #ffff00;
|
||||
}
|
||||
|
||||
.color-icon-00ff00:before {
|
||||
background-color: #00ff00;
|
||||
}
|
||||
|
||||
.color-icon-0000ff:before {
|
||||
background-color: #0000ff;
|
||||
}
|
||||
|
||||
.color-icon-4b0082:before {
|
||||
background-color: #4b0082;
|
||||
}
|
||||
|
||||
.color-icon-9400d3:before {
|
||||
background-color: #9400d3;
|
||||
}
|
||||
|
||||
/* transparancy for shapes with colors */
|
||||
.color-transparancy {
|
||||
fill-opacity: 0.50;
|
||||
}
|
||||
|
||||
12
ebpm-process-modeler/bpmn-js/colors/index.js
Normal file
12
ebpm-process-modeler/bpmn-js/colors/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
module.exports = {
|
||||
__init__: [
|
||||
'colorContextPadProvider',
|
||||
'colorPopupProvider'
|
||||
],
|
||||
colorContextPadProvider: [ 'type', require('./ColorContextPadProvider') ],
|
||||
|
||||
colorPopupProvider: [ 'type', require('./ColorPopupProvider') ]
|
||||
};
|
||||
107
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/css/bpmn-codes.css
vendored
Normal file
107
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/css/bpmn-codes.css
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
|
||||
.bpmn-icon-screw-wrench:before { content: '\e800'; } /* '' */
|
||||
.bpmn-icon-trash:before { content: '\e801'; } /* '' */
|
||||
.bpmn-icon-conditional-flow:before { content: '\e802'; } /* '' */
|
||||
.bpmn-icon-default-flow:before { content: '\e803'; } /* '' */
|
||||
.bpmn-icon-gateway-parallel:before { content: '\e804'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-cancel:before { content: '\e805'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\e806'; } /* '' */
|
||||
.bpmn-icon-start-event-compensation:before { content: '\e807'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\e808'; } /* '' */
|
||||
.bpmn-icon-loop-marker:before { content: '\e809'; } /* '' */
|
||||
.bpmn-icon-parallel-mi-marker:before { content: '\e80a'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-signal:before { content: '\e80b'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\e80c'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\e80d'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-compensation:before { content: '\e80e'; } /* '' */
|
||||
.bpmn-icon-gateway-xor:before { content: '\e80f'; } /* '' */
|
||||
.bpmn-icon-connection:before { content: '\e810'; } /* '' */
|
||||
.bpmn-icon-end-event-cancel:before { content: '\e811'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-condition:before { content: '\e812'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\e813'; } /* '' */
|
||||
.bpmn-icon-start-event-condition:before { content: '\e814'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-timer:before { content: '\e815'; } /* '' */
|
||||
.bpmn-icon-sequential-mi-marker:before { content: '\e816'; } /* '' */
|
||||
.bpmn-icon-user-task:before { content: '\e817'; } /* '' */
|
||||
.bpmn-icon-business-rule:before { content: '\e818'; } /* '' */
|
||||
.bpmn-icon-sub-process-marker:before { content: '\e819'; } /* '' */
|
||||
.bpmn-icon-start-event-parallel-multiple:before { content: '\e81a'; } /* '' */
|
||||
.bpmn-icon-start-event-error:before { content: '\e81b'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-signal:before { content: '\e81c'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-error:before { content: '\e81d'; } /* '' */
|
||||
.bpmn-icon-end-event-compensation:before { content: '\e81e'; } /* '' */
|
||||
.bpmn-icon-subprocess-collapsed:before { content: '\e81f'; } /* '' */
|
||||
.bpmn-icon-subprocess-expanded:before { content: '\e820'; } /* '' */
|
||||
.bpmn-icon-task:before { content: '\e821'; } /* '' */
|
||||
.bpmn-icon-end-event-error:before { content: '\e822'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-escalation:before { content: '\e823'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-timer:before { content: '\e824'; } /* '' */
|
||||
.bpmn-icon-start-event-escalation:before { content: '\e825'; } /* '' */
|
||||
.bpmn-icon-start-event-signal:before { content: '\e826'; } /* '' */
|
||||
.bpmn-icon-business-rule-task:before { content: '\e827'; } /* '' */
|
||||
.bpmn-icon-manual:before { content: '\e828'; } /* '' */
|
||||
.bpmn-icon-receive:before { content: '\e829'; } /* '' */
|
||||
.bpmn-icon-call-activity:before { content: '\e82a'; } /* '' */
|
||||
.bpmn-icon-start-event-timer:before { content: '\e82b'; } /* '' */
|
||||
.bpmn-icon-start-event-message:before { content: '\e82c'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-none:before { content: '\e82d'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-link:before { content: '\e82e'; } /* '' */
|
||||
.bpmn-icon-end-event-escalation:before { content: '\e82f'; } /* '' */
|
||||
.bpmn-icon-text-annotation:before { content: '\e830'; } /* '' */
|
||||
.bpmn-icon-bpmn-io:before { content: '\e831'; } /* '' */
|
||||
.bpmn-icon-gateway-complex:before { content: '\e832'; } /* '' */
|
||||
.bpmn-icon-gateway-eventbased:before { content: '\e833'; } /* '' */
|
||||
.bpmn-icon-gateway-none:before { content: '\e834'; } /* '' */
|
||||
.bpmn-icon-gateway-or:before { content: '\e835'; } /* '' */
|
||||
.bpmn-icon-end-event-terminate:before { content: '\e836'; } /* '' */
|
||||
.bpmn-icon-end-event-signal:before { content: '\e837'; } /* '' */
|
||||
.bpmn-icon-end-event-none:before { content: '\e838'; } /* '' */
|
||||
.bpmn-icon-end-event-multiple:before { content: '\e839'; } /* '' */
|
||||
.bpmn-icon-end-event-message:before { content: '\e83a'; } /* '' */
|
||||
.bpmn-icon-end-event-link:before { content: '\e83b'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-message:before { content: '\e83c'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-compensation:before { content: '\e83d'; } /* '' */
|
||||
.bpmn-icon-start-event-multiple:before { content: '\e83e'; } /* '' */
|
||||
.bpmn-icon-script:before { content: '\e83f'; } /* '' */
|
||||
.bpmn-icon-manual-task:before { content: '\e840'; } /* '' */
|
||||
.bpmn-icon-send:before { content: '\e841'; } /* '' */
|
||||
.bpmn-icon-service:before { content: '\e842'; } /* '' */
|
||||
.bpmn-icon-receive-task:before { content: '\e843'; } /* '' */
|
||||
.bpmn-icon-user:before { content: '\e844'; } /* '' */
|
||||
.bpmn-icon-start-event-none:before { content: '\e845'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-escalation:before { content: '\e846'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-multiple:before { content: '\e847'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\e848'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-link:before { content: '\e849'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-condition:before { content: '\e84a'; } /* '' */
|
||||
.bpmn-icon-data-object:before { content: '\e84b'; } /* '' */
|
||||
.bpmn-icon-script-task:before { content: '\e84c'; } /* '' */
|
||||
.bpmn-icon-send-task:before { content: '\e84d'; } /* '' */
|
||||
.bpmn-icon-data-store:before { content: '\e84e'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-escalation:before { content: '\e84f'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-message:before { content: '\e850'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\e851'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\e852'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-multiple:before { content: '\e853'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-message:before { content: '\e854'; } /* '' */
|
||||
.bpmn-icon-ad-hoc-marker:before { content: '\e855'; } /* '' */
|
||||
.bpmn-icon-service-task:before { content: '\e856'; } /* '' */
|
||||
.bpmn-icon-task-none:before { content: '\e857'; } /* '' */
|
||||
.bpmn-icon-compensation-marker:before { content: '\e858'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-multiple:before { content: '\e859'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-signal:before { content: '\e85a'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\e85b'; } /* '' */
|
||||
.bpmn-icon-participant:before { content: '\e85c'; } /* '' */
|
||||
.bpmn-icon-event-subprocess-expanded:before { content: '\e85d'; } /* '' */
|
||||
.bpmn-icon-lane-insert-below:before { content: '\e85e'; } /* '' */
|
||||
.bpmn-icon-space-tool:before { content: '\e85f'; } /* '' */
|
||||
.bpmn-icon-connection-multi:before { content: '\e860'; } /* '' */
|
||||
.bpmn-icon-lane:before { content: '\e861'; } /* '' */
|
||||
.bpmn-icon-lasso-tool:before { content: '\e862'; } /* '' */
|
||||
.bpmn-icon-lane-insert-above:before { content: '\e863'; } /* '' */
|
||||
.bpmn-icon-lane-divide-three:before { content: '\e864'; } /* '' */
|
||||
.bpmn-icon-lane-divide-two:before { content: '\e865'; } /* '' */
|
||||
.bpmn-icon-data-input:before { content: '\e866'; } /* '' */
|
||||
.bpmn-icon-data-output:before { content: '\e867'; } /* '' */
|
||||
.bpmn-icon-hand-tool:before { content: '\e868'; } /* '' */
|
||||
.bpmn-icon-transaction:before { content: '\e8c4'; } /* '' */
|
||||
160
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/css/bpmn-embedded.css
vendored
Normal file
160
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/css/bpmn-embedded.css
vendored
Normal file
File diff suppressed because one or more lines are too long
162
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/css/bpmn.css
vendored
Normal file
162
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/css/bpmn.css
vendored
Normal file
@@ -0,0 +1,162 @@
|
||||
@font-face {
|
||||
font-family: 'bpmn';
|
||||
src: url('../font/bpmn.eot?70672887');
|
||||
src: url('../font/bpmn.eot?70672887#iefix') format('embedded-opentype'),
|
||||
url('../font/bpmn.woff?70672887') format('woff'),
|
||||
url('../font/bpmn.ttf?70672887') format('truetype'),
|
||||
url('../font/bpmn.svg?70672887#bpmn') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
||||
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
||||
/*
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
@font-face {
|
||||
font-family: 'bpmn';
|
||||
src: url('../font/bpmn.svg?70672887#bpmn') format('svg');
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
[class^="bpmn-icon-"]:before, [class*=" bpmn-icon-"]:before {
|
||||
font-family: "bpmn";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
speak: none;
|
||||
|
||||
display: inline-block;
|
||||
text-decoration: inherit;
|
||||
width: 1em;
|
||||
/* margin-right: .2em; */
|
||||
text-align: center;
|
||||
/* opacity: .8; */
|
||||
|
||||
/* For safety - reset parent styles, that can break glyph codes*/
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
|
||||
/* fix buttons height, for twitter bootstrap */
|
||||
line-height: 1em;
|
||||
|
||||
/* Animation center compensation - margins should be symmetric */
|
||||
/* remove if not needed */
|
||||
/* margin-left: .2em; */
|
||||
|
||||
/* you can be more comfortable with increased icons size */
|
||||
/* font-size: 120%; */
|
||||
|
||||
/* Font smoothing. That was taken from TWBS */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
/* Uncomment for 3D effect */
|
||||
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
||||
}
|
||||
|
||||
.bpmn-icon-screw-wrench:before { content: '\e800'; } /* '' */
|
||||
.bpmn-icon-trash:before { content: '\e801'; } /* '' */
|
||||
.bpmn-icon-conditional-flow:before { content: '\e802'; } /* '' */
|
||||
.bpmn-icon-default-flow:before { content: '\e803'; } /* '' */
|
||||
.bpmn-icon-gateway-parallel:before { content: '\e804'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-cancel:before { content: '\e805'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\e806'; } /* '' */
|
||||
.bpmn-icon-start-event-compensation:before { content: '\e807'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\e808'; } /* '' */
|
||||
.bpmn-icon-loop-marker:before { content: '\e809'; } /* '' */
|
||||
.bpmn-icon-parallel-mi-marker:before { content: '\e80a'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-signal:before { content: '\e80b'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\e80c'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\e80d'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-compensation:before { content: '\e80e'; } /* '' */
|
||||
.bpmn-icon-gateway-xor:before { content: '\e80f'; } /* '' */
|
||||
.bpmn-icon-connection:before { content: '\e810'; } /* '' */
|
||||
.bpmn-icon-end-event-cancel:before { content: '\e811'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-condition:before { content: '\e812'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\e813'; } /* '' */
|
||||
.bpmn-icon-start-event-condition:before { content: '\e814'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-timer:before { content: '\e815'; } /* '' */
|
||||
.bpmn-icon-sequential-mi-marker:before { content: '\e816'; } /* '' */
|
||||
.bpmn-icon-user-task:before { content: '\e817'; } /* '' */
|
||||
.bpmn-icon-business-rule:before { content: '\e818'; } /* '' */
|
||||
.bpmn-icon-sub-process-marker:before { content: '\e819'; } /* '' */
|
||||
.bpmn-icon-start-event-parallel-multiple:before { content: '\e81a'; } /* '' */
|
||||
.bpmn-icon-start-event-error:before { content: '\e81b'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-signal:before { content: '\e81c'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-error:before { content: '\e81d'; } /* '' */
|
||||
.bpmn-icon-end-event-compensation:before { content: '\e81e'; } /* '' */
|
||||
.bpmn-icon-subprocess-collapsed:before { content: '\e81f'; } /* '' */
|
||||
.bpmn-icon-subprocess-expanded:before { content: '\e820'; } /* '' */
|
||||
.bpmn-icon-task:before { content: '\e821'; } /* '' */
|
||||
.bpmn-icon-end-event-error:before { content: '\e822'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-escalation:before { content: '\e823'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-timer:before { content: '\e824'; } /* '' */
|
||||
.bpmn-icon-start-event-escalation:before { content: '\e825'; } /* '' */
|
||||
.bpmn-icon-start-event-signal:before { content: '\e826'; } /* '' */
|
||||
.bpmn-icon-business-rule-task:before { content: '\e827'; } /* '' */
|
||||
.bpmn-icon-manual:before { content: '\e828'; } /* '' */
|
||||
.bpmn-icon-receive:before { content: '\e829'; } /* '' */
|
||||
.bpmn-icon-call-activity:before { content: '\e82a'; } /* '' */
|
||||
.bpmn-icon-start-event-timer:before { content: '\e82b'; } /* '' */
|
||||
.bpmn-icon-start-event-message:before { content: '\e82c'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-none:before { content: '\e82d'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-link:before { content: '\e82e'; } /* '' */
|
||||
.bpmn-icon-end-event-escalation:before { content: '\e82f'; } /* '' */
|
||||
.bpmn-icon-text-annotation:before { content: '\e830'; } /* '' */
|
||||
.bpmn-icon-bpmn-io:before { content: '\e831'; } /* '' */
|
||||
.bpmn-icon-gateway-complex:before { content: '\e832'; } /* '' */
|
||||
.bpmn-icon-gateway-eventbased:before { content: '\e833'; } /* '' */
|
||||
.bpmn-icon-gateway-none:before { content: '\e834'; } /* '' */
|
||||
.bpmn-icon-gateway-or:before { content: '\e835'; } /* '' */
|
||||
.bpmn-icon-end-event-terminate:before { content: '\e836'; } /* '' */
|
||||
.bpmn-icon-end-event-signal:before { content: '\e837'; } /* '' */
|
||||
.bpmn-icon-end-event-none:before { content: '\e838'; } /* '' */
|
||||
.bpmn-icon-end-event-multiple:before { content: '\e839'; } /* '' */
|
||||
.bpmn-icon-end-event-message:before { content: '\e83a'; } /* '' */
|
||||
.bpmn-icon-end-event-link:before { content: '\e83b'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-message:before { content: '\e83c'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-compensation:before { content: '\e83d'; } /* '' */
|
||||
.bpmn-icon-start-event-multiple:before { content: '\e83e'; } /* '' */
|
||||
.bpmn-icon-script:before { content: '\e83f'; } /* '' */
|
||||
.bpmn-icon-manual-task:before { content: '\e840'; } /* '' */
|
||||
.bpmn-icon-send:before { content: '\e841'; } /* '' */
|
||||
.bpmn-icon-service:before { content: '\e842'; } /* '' */
|
||||
.bpmn-icon-receive-task:before { content: '\e843'; } /* '' */
|
||||
.bpmn-icon-user:before { content: '\e844'; } /* '' */
|
||||
.bpmn-icon-start-event-none:before { content: '\e845'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-escalation:before { content: '\e846'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-multiple:before { content: '\e847'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\e848'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-link:before { content: '\e849'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-condition:before { content: '\e84a'; } /* '' */
|
||||
.bpmn-icon-data-object:before { content: '\e84b'; } /* '' */
|
||||
.bpmn-icon-script-task:before { content: '\e84c'; } /* '' */
|
||||
.bpmn-icon-send-task:before { content: '\e84d'; } /* '' */
|
||||
.bpmn-icon-data-store:before { content: '\e84e'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-escalation:before { content: '\e84f'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-message:before { content: '\e850'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\e851'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\e852'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-multiple:before { content: '\e853'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-message:before { content: '\e854'; } /* '' */
|
||||
.bpmn-icon-ad-hoc-marker:before { content: '\e855'; } /* '' */
|
||||
.bpmn-icon-service-task:before { content: '\e856'; } /* '' */
|
||||
.bpmn-icon-task-none:before { content: '\e857'; } /* '' */
|
||||
.bpmn-icon-compensation-marker:before { content: '\e858'; } /* '' */
|
||||
.bpmn-icon-start-event-non-interrupting-multiple:before { content: '\e859'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-throw-signal:before { content: '\e85a'; } /* '' */
|
||||
.bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\e85b'; } /* '' */
|
||||
.bpmn-icon-participant:before { content: '\e85c'; } /* '' */
|
||||
.bpmn-icon-event-subprocess-expanded:before { content: '\e85d'; } /* '' */
|
||||
.bpmn-icon-lane-insert-below:before { content: '\e85e'; } /* '' */
|
||||
.bpmn-icon-space-tool:before { content: '\e85f'; } /* '' */
|
||||
.bpmn-icon-connection-multi:before { content: '\e860'; } /* '' */
|
||||
.bpmn-icon-lane:before { content: '\e861'; } /* '' */
|
||||
.bpmn-icon-lasso-tool:before { content: '\e862'; } /* '' */
|
||||
.bpmn-icon-lane-insert-above:before { content: '\e863'; } /* '' */
|
||||
.bpmn-icon-lane-divide-three:before { content: '\e864'; } /* '' */
|
||||
.bpmn-icon-lane-divide-two:before { content: '\e865'; } /* '' */
|
||||
.bpmn-icon-data-input:before { content: '\e866'; } /* '' */
|
||||
.bpmn-icon-data-output:before { content: '\e867'; } /* '' */
|
||||
.bpmn-icon-hand-tool:before { content: '\e868'; } /* '' */
|
||||
.bpmn-icon-transaction:before { content: '\e8c4'; } /* '' */
|
||||
BIN
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/font/bpmn.eot
vendored
Normal file
BIN
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/font/bpmn.eot
vendored
Normal file
Binary file not shown.
117
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/font/bpmn.svg
vendored
Normal file
117
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/font/bpmn.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 130 KiB |
BIN
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/font/bpmn.ttf
vendored
Normal file
BIN
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/font/bpmn.ttf
vendored
Normal file
Binary file not shown.
BIN
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/font/bpmn.woff
vendored
Normal file
BIN
ebpm-process-modeler/bpmn-js/colors/vendor/bpmn-font/font/bpmn.woff
vendored
Normal file
Binary file not shown.
71
ebpm-process-modeler/bpmn-js/colors/vendor/colors/color-picker.css
vendored
Normal file
71
ebpm-process-modeler/bpmn-js/colors/vendor/colors/color-picker.css
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
/* COLOR PICKER */
|
||||
|
||||
/* context pad */
|
||||
.djs-context-pad .entry {
|
||||
background-color: rgba(255, 255, 255, 0.6);
|
||||
box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
.bpmn-icon-color:before {
|
||||
content: '🖌';
|
||||
}
|
||||
|
||||
/* color popup menu */
|
||||
[class^="color-icon-"]:before,
|
||||
[class*=" color-icon-"]:before {
|
||||
display: inline-block;
|
||||
content: '';
|
||||
width: 1.5em;
|
||||
height: 0.6em;
|
||||
border-radius: 0.5em;
|
||||
border: 0.03em solid black;
|
||||
}
|
||||
|
||||
.djs-popup-header .entry.color-icon-clear {
|
||||
margin-left: 5px;
|
||||
padding: 0;
|
||||
}
|
||||
.djs-label{
|
||||
fill: rgba(0, 0, 0) !important;
|
||||
}
|
||||
.djs-popup-header .entry.color-icon-clear > span {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.color-icon-clear:before {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.color-icon-ff0000:before {
|
||||
background-color: #ff0000;
|
||||
}
|
||||
|
||||
.color-icon-ff7f00:before {
|
||||
background-color: #ff7f00;
|
||||
}
|
||||
|
||||
.color-icon-ffff00:before {
|
||||
background-color: #ffff00;
|
||||
}
|
||||
|
||||
.color-icon-00ff00:before {
|
||||
background-color: #00ff00;
|
||||
}
|
||||
|
||||
.color-icon-0000ff:before {
|
||||
background-color: #0000ff;
|
||||
}
|
||||
|
||||
.color-icon-4b0082:before {
|
||||
background-color: #4b0082;
|
||||
}
|
||||
|
||||
.color-icon-9400d3:before {
|
||||
background-color: #9400d3;
|
||||
}
|
||||
|
||||
/* transparancy for shapes with colors */
|
||||
.color-transparancy {
|
||||
fill-opacity: 0.50;
|
||||
}
|
||||
|
||||
684
ebpm-process-modeler/bpmn-js/colors/vendor/diagram-js.css
vendored
Normal file
684
ebpm-process-modeler/bpmn-js/colors/vendor/diagram-js.css
vendored
Normal file
@@ -0,0 +1,684 @@
|
||||
/**
|
||||
* outline styles
|
||||
*/
|
||||
|
||||
.djs-outline {
|
||||
fill: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.djs-element.hover .djs-outline,
|
||||
.djs-element.selected .djs-outline {
|
||||
visibility: visible;
|
||||
shape-rendering: crispEdges;
|
||||
stroke-dasharray: 3,3;
|
||||
}
|
||||
|
||||
.djs-element.selected .djs-outline {
|
||||
stroke: #8888FF;
|
||||
stroke-width: 1px;
|
||||
}
|
||||
|
||||
.djs-element.hover .djs-outline {
|
||||
stroke: #FF8888;
|
||||
stroke-width: 1px;
|
||||
}
|
||||
|
||||
.djs-shape.connect-ok .djs-visual > :nth-child(1) {
|
||||
fill: #DCFECC /* light-green */ !important;
|
||||
}
|
||||
|
||||
.djs-shape.connect-not-ok .djs-visual > :nth-child(1),
|
||||
.djs-shape.drop-not-ok .djs-visual > :nth-child(1) {
|
||||
fill: #f9dee5 /* light-red */ !important;
|
||||
}
|
||||
|
||||
.djs-shape.new-parent .djs-visual > :nth-child(1) {
|
||||
fill: #F7F9FF !important;
|
||||
}
|
||||
|
||||
svg.drop-not-ok {
|
||||
background: #f9dee5 /* light-red */ !important;
|
||||
}
|
||||
|
||||
svg.new-parent {
|
||||
background: #F7F9FF /* light-blue */ !important;
|
||||
}
|
||||
|
||||
.djs-connection.connect-ok .djs-visual > :nth-child(1),
|
||||
.djs-connection.drop-ok .djs-visual > :nth-child(1) {
|
||||
stroke: #90DD5F /* light-green */ !important;
|
||||
}
|
||||
|
||||
.djs-connection.connect-not-ok .djs-visual > :nth-child(1),
|
||||
.djs-connection.drop-not-ok .djs-visual > :nth-child(1) {
|
||||
stroke: #E56283 /* light-red */ !important;
|
||||
}
|
||||
|
||||
.drop-not-ok,
|
||||
.connect-not-ok {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.djs-element.attach-ok .djs-visual > :nth-child(1) {
|
||||
stroke-width: 5px !important;
|
||||
stroke: rgba(255, 116, 0, 0.7) !important;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Selection box style
|
||||
*
|
||||
*/
|
||||
.djs-lasso-overlay {
|
||||
fill: rgb(255, 116, 0);
|
||||
fill-opacity: 0.1;
|
||||
|
||||
stroke-dasharray: 5 1 3 1;
|
||||
stroke: rgb(255, 116, 0);
|
||||
|
||||
shape-rendering: crispEdges;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resize styles
|
||||
*/
|
||||
.djs-resize-overlay {
|
||||
fill: none;
|
||||
|
||||
stroke-dasharray: 5 1 3 1;
|
||||
stroke: rgb(255, 116, 0);
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.djs-resizer-hit {
|
||||
fill: none;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.djs-resizer-visual {
|
||||
fill: white;
|
||||
stroke-width: 1px;
|
||||
stroke: black;
|
||||
shape-rendering: crispEdges;
|
||||
stroke-opacity: 0.2;
|
||||
}
|
||||
|
||||
.djs-cursor-resize-nwse,
|
||||
.djs-resizer-nw,
|
||||
.djs-resizer-se {
|
||||
cursor: nwse-resize;
|
||||
}
|
||||
|
||||
.djs-cursor-resize-nesw,
|
||||
.djs-resizer-ne,
|
||||
.djs-resizer-sw {
|
||||
cursor: nesw-resize;
|
||||
}
|
||||
|
||||
.djs-shape.djs-resizing > .djs-outline {
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
.djs-shape.djs-resizing > .djs-resizer {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.djs-dragger > .djs-resizer {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/**
|
||||
* drag styles
|
||||
*/
|
||||
.djs-dragger .djs-visual circle,
|
||||
.djs-dragger .djs-visual path,
|
||||
.djs-dragger .djs-visual polygon,
|
||||
.djs-dragger .djs-visual polyline,
|
||||
.djs-dragger .djs-visual rect,
|
||||
.djs-dragger .djs-visual text {
|
||||
fill: none !important;
|
||||
stroke: rgb(255, 116, 0) !important;
|
||||
}
|
||||
|
||||
.djs-dragging {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.djs-dragging,
|
||||
.djs-dragging > * {
|
||||
pointer-events: none !important;
|
||||
}
|
||||
|
||||
.djs-dragging .djs-context-pad,
|
||||
.djs-dragging .djs-outline {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* no pointer events for visual
|
||||
*/
|
||||
.djs-visual,
|
||||
.djs-outline {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* all pointer events for hit shape
|
||||
*/
|
||||
.djs-shape .djs-hit {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.djs-connection .djs-hit {
|
||||
pointer-events: stroke;
|
||||
}
|
||||
|
||||
/**
|
||||
* shape / connection basic styles
|
||||
*/
|
||||
.djs-connection .djs-visual {
|
||||
stroke-width: 2px;
|
||||
fill: none;
|
||||
}
|
||||
|
||||
.djs-cursor-grab {
|
||||
cursor: -webkit-grab;
|
||||
cursor: -moz-grab;
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.djs-cursor-grabbing {
|
||||
cursor: -webkit-grabbing;
|
||||
cursor: -moz-grabbing;
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.djs-cursor-crosshair {
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.djs-cursor-move {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.djs-cursor-resize-ns {
|
||||
cursor: ns-resize;
|
||||
}
|
||||
|
||||
.djs-cursor-resize-ew {
|
||||
cursor: ew-resize;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* snapping
|
||||
*/
|
||||
.djs-snap-line {
|
||||
stroke: rgb(255, 195, 66);
|
||||
stroke: rgba(255, 195, 66, 0.50);
|
||||
stroke-linecap: round;
|
||||
stroke-width: 2px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* snapping
|
||||
*/
|
||||
.djs-crosshair {
|
||||
stroke: #555;
|
||||
stroke-linecap: round;
|
||||
stroke-width: 1px;
|
||||
pointer-events: none;
|
||||
shape-rendering: crispEdges;
|
||||
stroke-dasharray: 5, 5;
|
||||
}
|
||||
|
||||
/**
|
||||
* palette
|
||||
*/
|
||||
|
||||
.djs-palette {
|
||||
position: absolute;
|
||||
left: 20px;
|
||||
top: 20px;
|
||||
|
||||
box-sizing: border-box;
|
||||
width: 48px;
|
||||
}
|
||||
|
||||
.djs-palette .separator {
|
||||
margin: 0 5px;
|
||||
padding-top: 5px;
|
||||
|
||||
border: none;
|
||||
border-bottom: solid 1px #DDD;
|
||||
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.djs-palette .entry:before {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.djs-palette .djs-palette-toggle {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.djs-palette .entry,
|
||||
.djs-palette .djs-palette-toggle {
|
||||
color: #333;
|
||||
font-size: 30px;
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.djs-palette .entry {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.djs-palette .entry img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.djs-palette .djs-palette-entries:after {
|
||||
content: '';
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.djs-palette .djs-palette-toggle:hover {
|
||||
background: #666;
|
||||
}
|
||||
|
||||
.djs-palette .entry:hover {
|
||||
color: rgb(255, 116, 0);
|
||||
}
|
||||
|
||||
.djs-palette .highlighted-entry {
|
||||
color: rgb(255, 116, 0) !important;
|
||||
}
|
||||
|
||||
.djs-palette .entry,
|
||||
.djs-palette .djs-palette-toggle {
|
||||
width: 124px;
|
||||
height: 46px;
|
||||
line-height: 46px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Palette open / two-column layout is controlled via
|
||||
* classes on the palette. Events to hook into palette
|
||||
* changed life-cycle are available in addition.
|
||||
*/
|
||||
.djs-palette.two-column.open {
|
||||
width:124px;
|
||||
}
|
||||
|
||||
.djs-palette:not(.open) .djs-palette-entries {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.djs-palette:not(.open) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.djs-palette.open .djs-palette-toggle {
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
/**
|
||||
* context-pad
|
||||
*/
|
||||
.djs-overlay-context-pad {
|
||||
width: 72px;
|
||||
}
|
||||
|
||||
.djs-context-pad {
|
||||
position: absolute;
|
||||
display: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.djs-context-pad .entry {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
font-size: 22px;
|
||||
margin: 0 2px 2px 0;
|
||||
|
||||
border-radius: 3px;
|
||||
|
||||
cursor: default;
|
||||
|
||||
background-color: #FEFEFE;
|
||||
box-shadow: 0 0 2px 1px #FEFEFE;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.djs-context-pad .entry:before {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.djs-context-pad .entry:hover {
|
||||
background: rgb(255, 252, 176);
|
||||
}
|
||||
|
||||
.djs-context-pad.open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* popup styles
|
||||
*/
|
||||
.djs-popup .entry {
|
||||
line-height: 20px;
|
||||
white-space: nowrap;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* larger font for prefixed icons */
|
||||
.djs-popup .entry:before {
|
||||
vertical-align: middle;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.djs-popup .entry > span {
|
||||
vertical-align: middle;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.djs-popup .entry:hover,
|
||||
.djs-popup .entry.active:hover {
|
||||
background: rgb(255, 252, 176);
|
||||
}
|
||||
|
||||
.djs-popup .entry.disabled {
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
.djs-popup .djs-popup-header .entry {
|
||||
display: inline-block;
|
||||
padding: 2px 3px 2px 3px;
|
||||
|
||||
border: solid 1px transparent;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.djs-popup .djs-popup-header .entry.active {
|
||||
color: rgb(255, 116, 0);
|
||||
border: solid 1px rgb(255, 116, 0);
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
|
||||
.djs-popup-body .entry {
|
||||
padding: 4px 10px 4px 5px;
|
||||
}
|
||||
|
||||
.djs-popup-body .entry > span {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.djs-popup-body {
|
||||
background-color: #FEFEFE;
|
||||
}
|
||||
|
||||
.djs-popup-header {
|
||||
border-bottom: 1px solid #DDD;
|
||||
}
|
||||
|
||||
.djs-popup-header .entry {
|
||||
margin: 1px;
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.djs-popup-header .entry:last-child {
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
/**
|
||||
* popup / palette styles
|
||||
*/
|
||||
.djs-popup, .djs-palette {
|
||||
background: #FAFAFA;
|
||||
border: solid 1px #CCC;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/**
|
||||
* touch
|
||||
*/
|
||||
|
||||
.djs-shape,
|
||||
.djs-connection {
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.djs-segment-dragger,
|
||||
.djs-bendpoint {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* bendpoints
|
||||
*/
|
||||
.djs-segment-dragger .djs-visual {
|
||||
fill: rgba(255, 255, 121, 0.2);
|
||||
stroke-width: 1px;
|
||||
stroke-opacity: 1;
|
||||
stroke: rgba(255, 255, 121, 0.3);
|
||||
}
|
||||
|
||||
.djs-bendpoint .djs-visual {
|
||||
fill: rgba(255, 255, 121, 0.8);
|
||||
stroke-width: 1px;
|
||||
stroke-opacity: 0.5;
|
||||
stroke: black;
|
||||
}
|
||||
|
||||
.djs-segment-dragger:hover,
|
||||
.djs-bendpoints.hover .djs-segment-dragger,
|
||||
.djs-bendpoints.selected .djs-segment-dragger,
|
||||
.djs-bendpoint:hover,
|
||||
.djs-bendpoints.hover .djs-bendpoint,
|
||||
.djs-bendpoints.selected .djs-bendpoint {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.djs-drag-active .djs-bendpoints * {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.djs-bendpoints:not(.hover) .floating {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.djs-segment-dragger:hover .djs-visual,
|
||||
.djs-segment-dragger.djs-dragging .djs-visual,
|
||||
.djs-bendpoint:hover .djs-visual,
|
||||
.djs-bendpoint.floating .djs-visual {
|
||||
fill: yellow;
|
||||
stroke-opacity: 0.5;
|
||||
stroke: black;
|
||||
}
|
||||
|
||||
.djs-bendpoint.floating .djs-hit {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.djs-segment-dragger .djs-hit,
|
||||
.djs-bendpoint .djs-hit {
|
||||
pointer-events: all;
|
||||
fill: none;
|
||||
}
|
||||
|
||||
.djs-segment-dragger.horizontal .djs-hit {
|
||||
cursor: ns-resize;
|
||||
}
|
||||
|
||||
.djs-segment-dragger.vertical .djs-hit {
|
||||
cursor: ew-resize;
|
||||
}
|
||||
|
||||
.djs-segment-dragger.djs-dragging .djs-hit {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.djs-updating,
|
||||
.djs-updating > * {
|
||||
pointer-events: none !important;
|
||||
}
|
||||
|
||||
.djs-updating .djs-context-pad,
|
||||
.djs-updating .djs-outline,
|
||||
.djs-updating .djs-bendpoint,
|
||||
.connect-ok .djs-bendpoint,
|
||||
.connect-not-ok .djs-bendpoint,
|
||||
.drop-ok .djs-bendpoint,
|
||||
.drop-not-ok .djs-bendpoint {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.djs-segment-dragger.djs-dragging,
|
||||
.djs-bendpoint.djs-dragging {
|
||||
display: block;
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
.djs-segment-dragger.djs-dragging .djs-visual,
|
||||
.djs-bendpoint.djs-dragging .djs-visual {
|
||||
fill: yellow;
|
||||
stroke-opacity: 0.5;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* tooltips
|
||||
*/
|
||||
.djs-tooltip-error {
|
||||
font-size: 11px;
|
||||
line-height: 18px;
|
||||
text-align: left;
|
||||
|
||||
padding: 5px;
|
||||
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.djs-tooltip-error > * {
|
||||
width: 160px;
|
||||
|
||||
background: rgb(252, 236, 240);
|
||||
color: rgb(158, 76, 76);
|
||||
padding: 3px 7px;
|
||||
border-radius: 5px;
|
||||
border-left: solid 5px rgb(174, 73, 73);
|
||||
}
|
||||
|
||||
.djs-tooltip-error:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* search pad
|
||||
*/
|
||||
.djs-search-container {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
width: 25%;
|
||||
min-width: 300px;
|
||||
max-width: 400px;
|
||||
z-index: 10;
|
||||
|
||||
font-size: 1.05em;
|
||||
opacity: 0.9;
|
||||
background: #FAFAFA;
|
||||
border: solid 1px #CCC;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.djs-search-container:not(.open) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.djs-search-input input {
|
||||
font-size: 1.05em;
|
||||
width: 100%;
|
||||
padding: 6px 10px;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.djs-search-input input:focus {
|
||||
outline: none;
|
||||
border-color: #52B415;
|
||||
}
|
||||
|
||||
.djs-search-results {
|
||||
position: relative;
|
||||
overflow-y: auto;
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
.djs-search-results:hover {
|
||||
/*background: #fffdd7;*/
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.djs-search-result {
|
||||
width: 100%;
|
||||
padding: 6px 10px;
|
||||
background: white;
|
||||
border-bottom: solid 1px #AAA;
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
.djs-search-highlight {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.djs-search-result-primary {
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
.djs-search-result-secondary {
|
||||
font-family: monospace;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.djs-search-result:hover {
|
||||
background: #fdffd6;
|
||||
}
|
||||
|
||||
.djs-search-result-selected {
|
||||
background: #fffcb0;
|
||||
}
|
||||
|
||||
.djs-search-result-selected:hover {
|
||||
background: #f7f388;
|
||||
}
|
||||
|
||||
.djs-search-overlay {
|
||||
background: yellow;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
/**
|
||||
* hidden styles
|
||||
*/
|
||||
.djs-element-hidden,
|
||||
.djs-element-hidden .djs-hit,
|
||||
.djs-element-hidden .djs-outline,
|
||||
.djs-label-hidden .djs-label {
|
||||
display: none !important;
|
||||
}
|
||||
Reference in New Issue
Block a user