From e65809f246e0c5e8380cce52e28a6e1bbc616614 Mon Sep 17 00:00:00 2001 From: Jonathan Irwin Date: Mon, 9 Sep 2019 12:21:33 +0200 Subject: [PATCH] docs(project): correct spelling --- lib/Viewer.js | 2 +- lib/features/auto-place/AutoPlaceUtil.js | 2 +- lib/features/copy-paste/ModdleCopy.js | 2 +- .../grid-snapping/behavior/LayoutConnectionBehavior.js | 6 +++--- lib/features/modeling/BpmnUpdater.js | 2 +- .../modeling/behavior/ToggleElementCollapseBehaviour.js | 4 ++-- lib/features/modeling/behavior/util/GeometricUtil.js | 4 ++-- lib/features/modeling/behavior/util/LabelLayoutUtil.js | 6 +++--- lib/features/modeling/behavior/util/LineAttachmentUtil.js | 2 +- lib/features/modeling/cmd/SplitLaneHandler.js | 2 +- lib/features/modeling/cmd/UpdatePropertiesHandler.js | 2 +- lib/features/rules/BpmnRules.js | 2 +- lib/import/BpmnImporter.js | 2 +- 13 files changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/Viewer.js b/lib/Viewer.js index 541d2d15..cf2497e1 100644 --- a/lib/Viewer.js +++ b/lib/Viewer.js @@ -326,7 +326,7 @@ Viewer.prototype.open = function(bpmnDiagramOrId, done) { * You can use these events to hook into the life-cycle. * * @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 {Function} done invoked with (err, xml) diff --git a/lib/features/auto-place/AutoPlaceUtil.js b/lib/features/auto-place/AutoPlaceUtil.js index 58db28e2..afa8797e 100644 --- a/lib/features/auto-place/AutoPlaceUtil.js +++ b/lib/features/auto-place/AutoPlaceUtil.js @@ -335,7 +335,7 @@ export function getConnectedAtPosition(source, position, element) { * by some element connected to source. * * 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} element diff --git a/lib/features/copy-paste/ModdleCopy.js b/lib/features/copy-paste/ModdleCopy.js index 748e4585..2e77a97d 100644 --- a/lib/features/copy-paste/ModdleCopy.js +++ b/lib/features/copy-paste/ModdleCopy.js @@ -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) { var parent = context.parent, parentDescriptor = isObject(parent) && parent.$descriptor, diff --git a/lib/features/grid-snapping/behavior/LayoutConnectionBehavior.js b/lib/features/grid-snapping/behavior/LayoutConnectionBehavior.js index 7c357c50..9c584a7e 100644 --- a/lib/features/grid-snapping/behavior/LayoutConnectionBehavior.js +++ b/lib/features/grid-snapping/behavior/LayoutConnectionBehavior.js @@ -78,7 +78,7 @@ LayoutConnectionBehavior.prototype.snapMiddleSegments = function(waypoints) { // helpers ////////// /** - * Check wether a connection has a middle segments. + * Check whether a connection has a middle segments. * * @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 * @@ -100,7 +100,7 @@ function horizontallyAligned(aligned) { } /** - * Check wether an alignment is vertical. + * Check whether an alignment is vertical. * * @param {string} aligned * diff --git a/lib/features/modeling/BpmnUpdater.js b/lib/features/modeling/BpmnUpdater.js index feb97275..ed71d5de 100644 --- a/lib/features/modeling/BpmnUpdater.js +++ b/lib/features/modeling/BpmnUpdater.js @@ -317,7 +317,7 @@ BpmnUpdater.prototype.updateParent = function(element, oldParent) { return; } - // data stores in collaborations are handled seperately by DataStoreBehavior + // data stores in collaborations are handled separately by DataStoreBehavior if (is(element, 'bpmn:DataStoreReference') && element.parent && is(element.parent, 'bpmn:Collaboration')) { diff --git a/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js b/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js index 3e988d0f..d533272f 100644 --- a/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js +++ b/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js @@ -22,7 +22,7 @@ export default function ToggleElementCollapseBehaviour( CommandInterceptor.call(this, eventBus); - function hideEmptyLables(children) { + function hideEmptyLabels(children) { if (children.length) { children.forEach(function(child) { if (child.type === 'label' && !child.businessObject.name) { @@ -82,7 +82,7 @@ export default function ToggleElementCollapseBehaviour( if (!shape.collapsed) { // all children got made visible through djs, hide empty labels - hideEmptyLables(shape.children); + hideEmptyLabels(shape.children); // remove collapsed marker getBusinessObject(shape).di.isExpanded = true; diff --git a/lib/features/modeling/behavior/util/GeometricUtil.js b/lib/features/modeling/behavior/util/GeometricUtil.js index e7d8b650..96033aed 100644 --- a/lib/features/modeling/behavior/util/GeometricUtil.js +++ b/lib/features/modeling/behavior/util/GeometricUtil.js @@ -67,7 +67,7 @@ function solveLambaSystem(a, b, c) { * Position of perpendicular foot * * @param {Point} - * @param [ {Point}, {Point} ] line defined throug two points + * @param [ {Point}, {Point} ] line defined through two points * @return {Point} the perpendicular foot position */ export function perpendicularFoot(point, line) { @@ -88,7 +88,7 @@ export function perpendicularFoot(point, line) { * Calculates the distance between a point and a line * * @param {Point} - * @param [ {Point}, {Point} ] line defined throug two points + * @param [ {Point}, {Point} ] line defined through two points * @return {Float} distance */ export function getDistancePointLine(point, line) { diff --git a/lib/features/modeling/behavior/util/LabelLayoutUtil.js b/lib/features/modeling/behavior/util/LabelLayoutUtil.js index d99200a5..43a50a07 100644 --- a/lib/features/modeling/behavior/util/LabelLayoutUtil.js +++ b/lib/features/modeling/behavior/util/LabelLayoutUtil.js @@ -19,7 +19,7 @@ export function findNewLabelLineStartIndex(oldWaypoints, newWaypoints, attachmen var offset = newWaypoints.length - oldWaypoints.length; - // segmentMove happend + // segmentMove happened if (hints.segmentMove) { var oldSegmentStartIndex = hints.segmentMove.segmentStartIndex, @@ -39,7 +39,7 @@ export function findNewLabelLineStartIndex(oldWaypoints, newWaypoints, attachmen return index; } - // bendpointMove happend + // bendpointMove happened if (hints.bendpointMove) { var insert = hints.bendpointMove.insert, @@ -141,7 +141,7 @@ export function getLabelAdjustment(label, newWaypoints, oldWaypoints, hints) { oldBendpointIndex = attachment.bendpointIndex, oldBendpoint = oldWaypoints[oldBendpointIndex]; - // bendpoint position hasnt changed, return same position + // bendpoint position hasn't changed, return same position if (newWaypoints.indexOf(oldBendpoint) !== -1) { return { x: x, y: y }; } diff --git a/lib/features/modeling/behavior/util/LineAttachmentUtil.js b/lib/features/modeling/behavior/util/LineAttachmentUtil.js index 251543c6..ac6acc69 100644 --- a/lib/features/modeling/behavior/util/LineAttachmentUtil.js +++ b/lib/features/modeling/behavior/util/LineAttachmentUtil.js @@ -194,7 +194,7 @@ function isPointInSegment(p, segmentStart, segmentEnd) { function fenced(n, rangeStart, rangeEnd) { // use matching threshold to work around - // precisison errors in intersection computation + // precision errors in intersection computation return ( n >= min(rangeStart, rangeEnd) - EQUAL_THRESHOLD && diff --git a/lib/features/modeling/cmd/SplitLaneHandler.js b/lib/features/modeling/cmd/SplitLaneHandler.js index fa6fcb98..aafa55c3 100644 --- a/lib/features/modeling/cmd/SplitLaneHandler.js +++ b/lib/features/modeling/cmd/SplitLaneHandler.js @@ -6,7 +6,7 @@ import { /** * 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 */ diff --git a/lib/features/modeling/cmd/UpdatePropertiesHandler.js b/lib/features/modeling/cmd/UpdatePropertiesHandler.js index 19cb3d8e..b9d35535 100644 --- a/lib/features/modeling/cmd/UpdatePropertiesHandler.js +++ b/lib/features/modeling/cmd/UpdatePropertiesHandler.js @@ -166,7 +166,7 @@ function getProperties(businessObject, properties) { return reduce(propertyNames, function(result, key) { - // handle DI seperately + // handle DI separately if (key !== DI) { result[key] = businessObject.get(key); } else { diff --git a/lib/features/rules/BpmnRules.js b/lib/features/rules/BpmnRules.js index 59764553..fbfc1abe 100644 --- a/lib/features/rules/BpmnRules.js +++ b/lib/features/rules/BpmnRules.js @@ -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 if (hasErrorEventDefinition(element) || hasEscalationEventDefinition(element) || diff --git a/lib/import/BpmnImporter.js b/lib/import/BpmnImporter.js index 07938fd5..6dafd7ee 100644 --- a/lib/import/BpmnImporter.js +++ b/lib/import/BpmnImporter.js @@ -140,7 +140,7 @@ BpmnImporter.prototype.add = function(semantic, parentElement) { 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))) { parentElement = this._canvas.getRootElement(); }