Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/component/BpmnVisualization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import { BpmnModelRegistry } from './registry/bpmn-model-registry';
*/
export class BpmnVisualization {
/**
* Direct access to the `mxGraph` instance that powers `bpmn-visualization`.
* It is for **advanced users**, so please use the lib API first and access to the `mxGraph` instance only when there is no alternative.
* Direct access to the `Graph` instance that powers `bpmn-visualization`.
* It is for **advanced users**, so please use the lib API first and access to the `Graph` instance only when there is no alternative.
*
* **WARN**: subject to change, could be removed or made available in another way.
*
Expand Down Expand Up @@ -74,7 +74,7 @@ export class BpmnVisualization {

constructor(options: GlobalOptions) {
this.rendererOptions = options?.renderer;
// mxgraph configuration
// graph configuration
const configurator = new GraphConfigurator(htmlElement(options?.container));
this.graph = configurator.configure();
// other configurations
Expand Down
2 changes: 1 addition & 1 deletion src/component/mxgraph/shape/render/icon-painter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class IconPainter {
/**
* Utility paint icon methods to easily instantiate a {@link BpmnCanvas} from a {@link PaintParameter}.
*
* @param canvas mxgraph `mxAbstractCanvas2D` in charge of performing the paint operations.
* @param canvas `mxAbstractCanvas2D` in charge of performing the paint operations.
* @param ratioFromParent the actual size of the icon will be computed from the shape dimensions using this ratio.
* @param setIconOriginFunct called function to set the origin of the icon. Generally, it calls a method of {@link BpmnCanvas}.
* @param shapeConfig dimension and style of the shape where the icon is painted.
Expand Down
2 changes: 1 addition & 1 deletion src/component/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class NavigationImpl implements Navigation {

panningHandler.usePopupTrigger = false; // only use the left button to trigger panning
// Reimplement the function as we also want to trigger 'panning on cells' (ignoreCell to true) and only on left-click
// The mxGraph standard implementation doesn't ignore right click in this case, so do it by ourselves
// The regular implementation doesn't ignore right click in this case, so do it by ourselves
panningHandler.isForcePanningEvent = (me: mxMouseEvent): boolean => mxEvent.isLeftMouseButton(me.getEvent()) || mxEvent.isMultiTouchEvent(me.getEvent());
this.graph.setPanning(true);

Expand Down