Skip to content

Commit

Permalink
Update documentation for 3.0.1 patch release
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaslehnertum committed Oct 28, 2023
1 parent 7bacfdc commit 1a6af5d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 11 deletions.
1 change: 1 addition & 0 deletions docs/source/dev/api/diagram-type.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export declare const UMLDiagramType: {
readonly ReachabilityGraph: "ReachabilityGraph";
readonly SyntaxTree: "SyntaxTree";
readonly Flowchart: "Flowchart";
readonly BPMN: "BPMN";
};
44 changes: 33 additions & 11 deletions docs/source/user/api/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { ApollonMode, Locale } from './services/editor/editor-types';
import { Direction } from './services/uml-element/uml-element-port';
import { IBoundary } from './utils/geometry/boundary';
import { IPath } from './utils/geometry/path';
import { BPMNGatewayType } from './packages/bpmn/bpmn-gateway/bpmn-gateway';
import { BPMNConversationType } from './packages/bpmn/bpmn-conversation/bpmn-conversation';
export { UMLDiagramType, UMLElementType, UMLRelationshipType, ApollonMode, Locale };
export type { Styles };
export type ApollonOptions = {
Expand All @@ -23,20 +25,30 @@ export type ApollonOptions = {
scale?: number;
};
export type Selection = {
elements: {[id: string]: boolean};
relationships: {[id: string]: boolean};
elements: {
[id: string]: boolean;
};
relationships: {
[id: string]: boolean;
};
};
export type UMLModel = {
version: string;
version: `3.${number}.${number}`;
type: UMLDiagramType;
size: {
width: number;
height: number;
};
elements: {[id: string]: UMLElement};
elements: {
[id: string]: UMLElement;
};
interactive: Selection;
relationships: {[id: string]: UMLRelationship};
assessments: {[id: string]: Assessment};
relationships: {
[id: string]: UMLRelationship;
};
assessments: {
[id: string]: Assessment;
};
};
export type UMLModelElementType = UMLElementType | UMLRelationshipType | UMLDiagramType;
export type UMLModelElement = {
Expand Down Expand Up @@ -79,6 +91,15 @@ export type UMLPetriNetPlace = UMLElement & {
amountOfTokens: number;
capacity: number | string;
};
export type BPMNGateway = UMLElement & {
gatewayType: BPMNGatewayType;
};
export type BPMNConversation = UMLElement & {
conversationType: BPMNConversationType;
};
export type BPMNFlow = UMLRelationship & {
flowType: 'sequence' | 'message' | 'association';
};
export type UMLReachabilityGraphMarking = UMLElement & {
isInitialMarking: boolean;
};
Expand All @@ -94,10 +115,12 @@ export type UMLAssociation = UMLRelationship & {
};
export type UMLCommunicationLink = UMLRelationship & {
messages: {
id: string;
name: string;
direction: 'source' | 'target';
}[];
[id: string]: {
id: string;
name: string;
direction: 'source' | 'target';
};
};
};
export type FeedbackCorrectionStatus = {
description?: string;
Expand All @@ -123,7 +146,6 @@ export type ExportOptions = {
keepOriginalSize?: boolean;
include?: string[];
exclude?: string[];
scale?: number;
};
export type SVG = {
svg: string;
Expand Down

0 comments on commit 1a6af5d

Please sign in to comment.