docs(project): correct spelling
This commit is contained in:
parent
ddaa3f0b03
commit
e65809f246
|
@ -326,7 +326,7 @@ Viewer.prototype.open = function(bpmnDiagramOrId, done) {
|
||||||
* You can use these events to hook into the life-cycle.
|
* You can use these events to hook into the life-cycle.
|
||||||
*
|
*
|
||||||
* @param {Object} [options] export options
|
* @param {Object} [options] export options
|
||||||
* @param {Boolean} [options.format=false] output formated XML
|
* @param {Boolean} [options.format=false] output formatted XML
|
||||||
* @param {Boolean} [options.preamble=true] output preamble
|
* @param {Boolean} [options.preamble=true] output preamble
|
||||||
*
|
*
|
||||||
* @param {Function} done invoked with (err, xml)
|
* @param {Function} done invoked with (err, xml)
|
||||||
|
|
|
@ -335,7 +335,7 @@ export function getConnectedAtPosition(source, position, element) {
|
||||||
* by some element connected to source.
|
* by some element connected to source.
|
||||||
*
|
*
|
||||||
* Take into account the escapeDirection (where to move
|
* Take into account the escapeDirection (where to move
|
||||||
* on positining clashes) in the computation.
|
* on positioning clashes) in the computation.
|
||||||
*
|
*
|
||||||
* @param {djs.model.Shape} source
|
* @param {djs.model.Shape} source
|
||||||
* @param {djs.model.Shape} element
|
* @param {djs.model.Shape} element
|
||||||
|
|
|
@ -82,7 +82,7 @@ export default function ModdleCopy(eventBus, bpmnFactory, moddle) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// default check wether property can be copied
|
// default check whether property can be copied
|
||||||
eventBus.on('moddleCopy.canCopyProperty', function(context) {
|
eventBus.on('moddleCopy.canCopyProperty', function(context) {
|
||||||
var parent = context.parent,
|
var parent = context.parent,
|
||||||
parentDescriptor = isObject(parent) && parent.$descriptor,
|
parentDescriptor = isObject(parent) && parent.$descriptor,
|
||||||
|
|
|
@ -78,7 +78,7 @@ LayoutConnectionBehavior.prototype.snapMiddleSegments = function(waypoints) {
|
||||||
// helpers //////////
|
// helpers //////////
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check wether a connection has a middle segments.
|
* Check whether a connection has a middle segments.
|
||||||
*
|
*
|
||||||
* @param {Array} waypoints
|
* @param {Array} waypoints
|
||||||
*
|
*
|
||||||
|
@ -89,7 +89,7 @@ function hasMiddleSegments(waypoints) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check wether an alignment is horizontal.
|
* Check whether an alignment is horizontal.
|
||||||
*
|
*
|
||||||
* @param {string} aligned
|
* @param {string} aligned
|
||||||
*
|
*
|
||||||
|
@ -100,7 +100,7 @@ function horizontallyAligned(aligned) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check wether an alignment is vertical.
|
* Check whether an alignment is vertical.
|
||||||
*
|
*
|
||||||
* @param {string} aligned
|
* @param {string} aligned
|
||||||
*
|
*
|
||||||
|
|
|
@ -317,7 +317,7 @@ BpmnUpdater.prototype.updateParent = function(element, oldParent) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// data stores in collaborations are handled seperately by DataStoreBehavior
|
// data stores in collaborations are handled separately by DataStoreBehavior
|
||||||
if (is(element, 'bpmn:DataStoreReference') &&
|
if (is(element, 'bpmn:DataStoreReference') &&
|
||||||
element.parent &&
|
element.parent &&
|
||||||
is(element.parent, 'bpmn:Collaboration')) {
|
is(element.parent, 'bpmn:Collaboration')) {
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default function ToggleElementCollapseBehaviour(
|
||||||
CommandInterceptor.call(this, eventBus);
|
CommandInterceptor.call(this, eventBus);
|
||||||
|
|
||||||
|
|
||||||
function hideEmptyLables(children) {
|
function hideEmptyLabels(children) {
|
||||||
if (children.length) {
|
if (children.length) {
|
||||||
children.forEach(function(child) {
|
children.forEach(function(child) {
|
||||||
if (child.type === 'label' && !child.businessObject.name) {
|
if (child.type === 'label' && !child.businessObject.name) {
|
||||||
|
@ -82,7 +82,7 @@ export default function ToggleElementCollapseBehaviour(
|
||||||
if (!shape.collapsed) {
|
if (!shape.collapsed) {
|
||||||
|
|
||||||
// all children got made visible through djs, hide empty labels
|
// all children got made visible through djs, hide empty labels
|
||||||
hideEmptyLables(shape.children);
|
hideEmptyLabels(shape.children);
|
||||||
|
|
||||||
// remove collapsed marker
|
// remove collapsed marker
|
||||||
getBusinessObject(shape).di.isExpanded = true;
|
getBusinessObject(shape).di.isExpanded = true;
|
||||||
|
|
|
@ -67,7 +67,7 @@ function solveLambaSystem(a, b, c) {
|
||||||
* Position of perpendicular foot
|
* Position of perpendicular foot
|
||||||
*
|
*
|
||||||
* @param {Point}
|
* @param {Point}
|
||||||
* @param [ {Point}, {Point} ] line defined throug two points
|
* @param [ {Point}, {Point} ] line defined through two points
|
||||||
* @return {Point} the perpendicular foot position
|
* @return {Point} the perpendicular foot position
|
||||||
*/
|
*/
|
||||||
export function perpendicularFoot(point, line) {
|
export function perpendicularFoot(point, line) {
|
||||||
|
@ -88,7 +88,7 @@ export function perpendicularFoot(point, line) {
|
||||||
* Calculates the distance between a point and a line
|
* Calculates the distance between a point and a line
|
||||||
*
|
*
|
||||||
* @param {Point}
|
* @param {Point}
|
||||||
* @param [ {Point}, {Point} ] line defined throug two points
|
* @param [ {Point}, {Point} ] line defined through two points
|
||||||
* @return {Float} distance
|
* @return {Float} distance
|
||||||
*/
|
*/
|
||||||
export function getDistancePointLine(point, line) {
|
export function getDistancePointLine(point, line) {
|
||||||
|
|
|
@ -19,7 +19,7 @@ export function findNewLabelLineStartIndex(oldWaypoints, newWaypoints, attachmen
|
||||||
|
|
||||||
var offset = newWaypoints.length - oldWaypoints.length;
|
var offset = newWaypoints.length - oldWaypoints.length;
|
||||||
|
|
||||||
// segmentMove happend
|
// segmentMove happened
|
||||||
if (hints.segmentMove) {
|
if (hints.segmentMove) {
|
||||||
|
|
||||||
var oldSegmentStartIndex = hints.segmentMove.segmentStartIndex,
|
var oldSegmentStartIndex = hints.segmentMove.segmentStartIndex,
|
||||||
|
@ -39,7 +39,7 @@ export function findNewLabelLineStartIndex(oldWaypoints, newWaypoints, attachmen
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
// bendpointMove happend
|
// bendpointMove happened
|
||||||
if (hints.bendpointMove) {
|
if (hints.bendpointMove) {
|
||||||
|
|
||||||
var insert = hints.bendpointMove.insert,
|
var insert = hints.bendpointMove.insert,
|
||||||
|
@ -141,7 +141,7 @@ export function getLabelAdjustment(label, newWaypoints, oldWaypoints, hints) {
|
||||||
oldBendpointIndex = attachment.bendpointIndex,
|
oldBendpointIndex = attachment.bendpointIndex,
|
||||||
oldBendpoint = oldWaypoints[oldBendpointIndex];
|
oldBendpoint = oldWaypoints[oldBendpointIndex];
|
||||||
|
|
||||||
// bendpoint position hasnt changed, return same position
|
// bendpoint position hasn't changed, return same position
|
||||||
if (newWaypoints.indexOf(oldBendpoint) !== -1) {
|
if (newWaypoints.indexOf(oldBendpoint) !== -1) {
|
||||||
return { x: x, y: y };
|
return { x: x, y: y };
|
||||||
}
|
}
|
||||||
|
|
|
@ -194,7 +194,7 @@ function isPointInSegment(p, segmentStart, segmentEnd) {
|
||||||
function fenced(n, rangeStart, rangeEnd) {
|
function fenced(n, rangeStart, rangeEnd) {
|
||||||
|
|
||||||
// use matching threshold to work around
|
// use matching threshold to work around
|
||||||
// precisison errors in intersection computation
|
// precision errors in intersection computation
|
||||||
|
|
||||||
return (
|
return (
|
||||||
n >= min(rangeStart, rangeEnd) - EQUAL_THRESHOLD &&
|
n >= min(rangeStart, rangeEnd) - EQUAL_THRESHOLD &&
|
||||||
|
|
|
@ -6,7 +6,7 @@ import {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A handler that splits a lane into a number of sub-lanes,
|
* A handler that splits a lane into a number of sub-lanes,
|
||||||
* creating new sub lanes, if neccessary.
|
* creating new sub lanes, if necessary.
|
||||||
*
|
*
|
||||||
* @param {Modeling} modeling
|
* @param {Modeling} modeling
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -166,7 +166,7 @@ function getProperties(businessObject, properties) {
|
||||||
|
|
||||||
return reduce(propertyNames, function(result, key) {
|
return reduce(propertyNames, function(result, key) {
|
||||||
|
|
||||||
// handle DI seperately
|
// handle DI separately
|
||||||
if (key !== DI) {
|
if (key !== DI) {
|
||||||
result[key] = businessObject.get(key);
|
result[key] = businessObject.get(key);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -672,7 +672,7 @@ function canReplace(elements, target, position) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace an error/escalation/compansate start event by a blank interrupting start event
|
// replace an error/escalation/compensate start event by a blank interrupting start event
|
||||||
// when the target is not an event sub process
|
// when the target is not an event sub process
|
||||||
if (hasErrorEventDefinition(element) ||
|
if (hasErrorEventDefinition(element) ||
|
||||||
hasEscalationEventDefinition(element) ||
|
hasEscalationEventDefinition(element) ||
|
||||||
|
|
|
@ -140,7 +140,7 @@ BpmnImporter.prototype.add = function(semantic, parentElement) {
|
||||||
|
|
||||||
if (is(semantic, 'bpmn:DataStoreReference')) {
|
if (is(semantic, 'bpmn:DataStoreReference')) {
|
||||||
|
|
||||||
// check wether data store is inside our outside of its semantic parent
|
// check whether data store is inside our outside of its semantic parent
|
||||||
if (!isPointInsideBBox(parentElement, getMid(bounds))) {
|
if (!isPointInsideBBox(parentElement, getMid(bounds))) {
|
||||||
parentElement = this._canvas.getRootElement();
|
parentElement = this._canvas.getRootElement();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue