Lines Matching refs:attrs

1390 	function setAttributes(node, attrs) {  argument
1392 var names = Object.keys(attrs), i, name;
1395 setAttribute(node, name, attrs[name]);
1727 function create$1(name, attrs) { argument
1737 if (attrs) {
1738 attr(element, attrs);
2424 function createLine(points, attrs) { argument
2429 if (attrs) {
2430 attr(line, attrs);
2903 var attrs = this.style(traits, additionalAttrs);
2905 return assign(attrs, { 'class': className });
2923 var attrs = reduce(traits, function(attrs, t) { argument
2924 return assign(attrs, defaultTraits[t] || {});
2927 return additionalAttrs ? assign(attrs, additionalAttrs) : attrs;
3979 attrs = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null }, class in pathToCurve
4085 …curvedPath[i] = processPath(curvedPath[i], attrs, pathCommand); // Previous path command is inputt…
4096 attrs.x = seg[seglen - 2];
4097 attrs.y = seg[seglen - 1];
4098 attrs.bx = toFloat(seg[seglen - 4]) || attrs.x;
4099 attrs.by = toFloat(seg[seglen - 3]) || attrs.y;
6381 function create(type, attrs) { argument
6386 return assign(new Type(), attrs);
6397 ElementFactory$1.prototype.createRoot = function(attrs) { argument
6398 return this.create('root', attrs);
6401 ElementFactory$1.prototype.createLabel = function(attrs) { argument
6402 return this.create('label', attrs);
6405 ElementFactory$1.prototype.createShape = function(attrs) { argument
6406 return this.create('shape', attrs);
6409 ElementFactory$1.prototype.createConnection = function(attrs) { argument
6410 return this.create('connection', attrs);
6421 ElementFactory$1.prototype.create = function(type, attrs) { argument
6423 attrs = assign({}, attrs || {});
6425 if (!attrs.id) {
6426 attrs.id = type + '_' + (this._uid++);
6429 return create(type, attrs);
7496 function ModdleElement(attrs) { argument
7501 forEach(attrs, bind$2(function(val, key) {
8181 Moddle.prototype.create = function(descriptor, attrs) { argument
8188 return new Type(attrs);
8706 attrs = {},
8855 attrs[name] = value;
8911 attrs[name] = value;
8926 attrs[name] = value;
8959 attrs[name] = value;
9006 attrs[name] = value;
9012 return cachedAttrs = attrs;
10266 var attrs = obj.attrs || {};
10268 var decodedAttrs = Object.keys(attrs).reduce(function(d, key) {
10269 var value = decodeStr(attrs[key]);
10626 this.attrs = [];
10796 ElementSerializer.prototype.parseNsAttributes = function(element, attrs) { argument
11017 var attrs = this.attrs;
11023 attrs.push({ name: name, value: value });
11027 var attrs = this.attrs,
11031 attrs = getNsAttrs(namespaces).concat(attrs);
11034 forEach(attrs, function(a) {
15548 function css(attrs) { argument
15549 return attrs.join(';');
16745 var attrs = assign({
16750 }, options.attrs);
16758 if (attrs.strokeDasharray === 'none') {
16759 attrs.strokeDasharray = [10000, 1];
16764 attr(options.element, attrs);
16817 attrs: {
16830 attrs: {
16844 attrs: {
16859 attrs: {
16875 attrs: {
16891 attrs: {
16906 attrs: {
16915 function drawCircle(parentGfx, width, height, offset, attrs) { argument
16918 attrs = offset;
16924 attrs = computeStyle(attrs, {
16930 if (attrs.fill === 'none') {
16931 delete attrs.fillOpacity;
16943 attr(circle, attrs);
16950 function drawRect(parentGfx, width, height, r, offset, attrs) { argument
16953 attrs = offset;
16959 attrs = computeStyle(attrs, {
16974 attr(rect, attrs);
16981 function drawDiamond(parentGfx, width, height, attrs) { argument
16992 attrs = computeStyle(attrs, {
17002 attr(polygon, attrs);
17009 function drawLine(parentGfx, waypoints, attrs) { argument
17010 attrs = computeStyle(attrs, [ 'no-fill' ], {
17016 var line = createLine(waypoints, attrs);
17023 function drawPath(parentGfx, d, attrs) { argument
17025 attrs = computeStyle(attrs, [ 'no-fill' ], {
17032 attr(path, attrs);
17039 function drawMarker(type, parentGfx, path, attrs) { argument
17040 return drawPath(parentGfx, path, assign({ 'data-marker': type }, attrs));
17190 'bpmn:Event': function(parentGfx, element, attrs) {
17192 if (!('fillOpacity' in attrs)) {
17193 attrs.fillOpacity = DEFAULT_FILL_OPACITY;
17196 return drawCircle(parentGfx, element.width, element.height, attrs);
17199 var attrs = { class in BpmnRenderer
17207 attrs = { class in BpmnRenderer
17215 var circle = renderer('bpmn:Event')(parentGfx, element, attrs);
17513 'bpmn:Activity': function(parentGfx, element, attrs) {
17515 attrs = attrs || {};
17517 if (!('fillOpacity' in attrs)) {
17518 attrs.fillOpacity = DEFAULT_FILL_OPACITY;
17521 return drawRect(parentGfx, element.width, element.height, TASK_BORDER_RADIUS, attrs);
17525 var attrs = { class in BpmnRenderer
17530 var rect = renderer('bpmn:Activity')(parentGfx, element, attrs);
17753 'bpmn:SubProcess': function(parentGfx, element, attrs) {
17754 attrs = assign({
17757 }, attrs);
17759 var rect = renderer('bpmn:Activity')(parentGfx, element, attrs);
17800 var attrs = { class in BpmnRenderer
17806 var lane = renderer('bpmn:Lane')(parentGfx, element, attrs);
17839 'bpmn:Lane': function(parentGfx, element, attrs) {
17844 }, attrs));
17963 var attrs = { class in BpmnRenderer.drawEvent
17969 /* event path */ drawPath(parentGfx, pathData, attrs);
18008 var attrs = { class in BpmnRenderer
18014 return drawDiamond(parentGfx, element.width, element.height, attrs);
18022 var attrs = { class in BpmnRenderer
18028 var path = drawPath(parentGfx, pathData, attrs);
18055 'bpmn:Association': function(parentGfx, element, attrs) {
18062 attrs = assign({
18067 }, attrs || {});
18071 attrs.markerEnd = marker('association-end', fill, stroke);
18075 attrs.markerStart = marker('association-start', fill, stroke);
18078 return drawLine(parentGfx, element.waypoints, attrs);
18106 var attrs = { class in BpmnRenderer
18116 var path = drawPath(parentGfx, pathData, attrs);
18238 var attrs = { class in BpmnRenderer
18245 attrs.strokeDasharray = '6';
18246 attrs.strokeLinecap = 'round';
18250 var outerAttrs = assign({}, attrs, {
18255 var innerAttrs = assign({}, attrs, {
19722 function elementData(semantic, attrs) { argument
19727 }, attrs);
20366 function createHitStyle(classNames, attrs) { argument
20368 attrs = assign({
20371 }, attrs || {});
20373 return styles.cls(classNames, [ 'no-fill', 'no-border' ], attrs);
20381 var attrs = HIT_TYPES[type];
20383 if (!attrs) {
20387 attr(hit, attrs);
20464 this.createBoxHit = function(gfx, type, attrs) { argument
20466 attrs = assign({
20469 }, attrs);
20475 attr(hit, attrs);
30029 var attrs = null,
30036 attrs = canExecute;
30039 modeling.connect(source, target, attrs, hints);
30368 var attrs = ensureConnectionAttrs(canConnect);
30370 return this._elementFactory.createConnection(attrs);
33104 var attrs = assign({}, omit(descriptor, [ 'priority' ]));
33107 attrs.parent = cache[ descriptor.parent ];
33109 delete attrs.parent;
33114 descriptor: attrs
33119 if (isConnection$a(attrs)) {
33120 attrs.source = cache[ descriptor.source ];
33121 attrs.target = cache[ descriptor.target ];
33123 element = cache[ descriptor.id ] = self.createConnection(attrs);
33130 if (isLabel$4(attrs)) {
33131 attrs.labelTarget = cache[ attrs.labelTarget ];
33133 element = cache[ descriptor.id ] = self.createLabel(attrs);
33140 if (attrs.host) {
33141 attrs.host = cache[ attrs.host ];
33144 element = cache[ descriptor.id ] = self.createShape(attrs);
33154 CopyPaste.prototype.createConnection = function(attrs) { argument
33155 var connection = this._elementFactory.createConnection(omit(attrs, [ 'id' ]));
33160 CopyPaste.prototype.createLabel = function(attrs) { argument
33161 var label = this._elementFactory.createLabel(omit(attrs, [ 'id' ]));
33166 CopyPaste.prototype.createShape = function(attrs) { argument
33167 var shape = this._elementFactory.createShape(omit(attrs, [ 'id' ]));
48040 BpmnFactory.prototype.create = function(type, attrs) { argument
48041 var element = this._model.create(type, attrs || {});
48056 BpmnFactory.prototype.createDiShape = function(semantic, bounds, attrs) { argument
48061 }, attrs));
48083 BpmnFactory.prototype.createDiEdge = function(semantic, waypoints, attrs) { argument
48086 }, attrs));
48802 ElementFactory.prototype.create = function(elementType, attrs) { argument
48808 return this.baseCreate(elementType, assign({ type: 'label' }, DEFAULT_LABEL_SIZE, attrs));
48811 return this.createBpmnElement(elementType, attrs);
48814 ElementFactory.prototype.createBpmnElement = function(elementType, attrs) { argument
48818 attrs = attrs || {};
48820 var businessObject = attrs.businessObject;
48823 if (!attrs.type) {
48827 businessObject = this._bpmnFactory.create(attrs.type);
48848 attrs = assign({
48850 }, attrs);
48853 if (attrs.di) {
48854 assign(businessObject.di, attrs.di);
48856 delete attrs.di;
48859 applyAttributes(businessObject, attrs, [
48866 if (attrs.isExpanded) {
48867 applyAttribute(businessObject.di, attrs, 'isExpanded');
48877 if (attrs.eventDefinitionType) {
48879 …newEventDefinition = this._bpmnFactory.create(attrs.eventDefinitionType, attrs.eventDefinitionAttr…
48881 if (attrs.eventDefinitionType === 'bpmn:ConditionalEventDefinition') {
48890 delete attrs.eventDefinitionType;
48895 attrs = assign({
48898 }, size, attrs);
48900 return this.baseCreate(elementType, attrs);
48966 ElementFactory.prototype.createParticipantShape = function(attrs) { argument
48968 if (!isObject(attrs)) {
48969 attrs = { isExpanded: attrs }; class in AnonymousFunctionf8d14cd155800
48972 attrs = assign({ type: 'bpmn:Participant' }, attrs || {});
48975 if (attrs.isExpanded !== false) {
48976 attrs.processRef = this._bpmnFactory.create('bpmn:Process');
48979 return this.createShape(attrs);
48993 function applyAttributes(element, attrs, attributeNames) { argument
48996 if (attrs[property] !== undefined) {
48997 applyAttribute(element, attrs, property);
49010 function applyAttribute(element, attrs, attributeName) { argument
49011 element[attributeName] = attrs[attributeName];
49013 delete attrs[attributeName];
51317 Modeling$1.prototype.connect = function(source, target, attrs, hints) { argument
51318 return this.createConnection(source, target, attrs || {}, source.parent, hints);
51321 Modeling$1.prototype._create = function(type, attrs) { argument
51322 if (attrs instanceof Base$1) {
51323 return attrs;
51325 return this._elementFactory.create(type, attrs);
52506 Modeling.prototype.connect = function(source, target, attrs, hints) { argument
52510 if (!attrs) {
52511 attrs = bpmnRules.canConnect(source, target);
52514 if (!attrs) {
52518 return this.createConnection(source, target, attrs, source.parent, hints);
55880 function isType(attrs, type) { argument
55881 return attrs && attrs.type === type;
55884 function isAnyType(attrs, types) { argument
55886 return isType(attrs, type);