sequential-workflow-designer
Advanced tools
Comparing version 0.18.3 to 0.18.4
import { Step, BranchedStep, SequentialStep, Definition, Sequence, ComponentType, DefinitionWalker, StepOrName } from 'sequential-workflow-model'; | ||
export * from 'sequential-workflow-model'; | ||
declare class Icons { | ||
static folderIn: string; | ||
static folderOut: string; | ||
static center: string; | ||
static zoomIn: string; | ||
static zoomOut: string; | ||
static undo: string; | ||
static redo: string; | ||
static move: string; | ||
static delete: string; | ||
static folderUp: string; | ||
static close: string; | ||
static options: string; | ||
static expand: string; | ||
static alert: string; | ||
static play: string; | ||
static stop: string; | ||
static folder: string; | ||
static appendPath(parent: SVGElement, pathClassName: string, d: string, size: number): SVGGElement; | ||
static createSvg(className: string, d: string): SVGElement; | ||
} | ||
declare class ObjectCloner { | ||
static deepClone<T>(instance: T): T; | ||
} | ||
interface Attributes { | ||
[name: string]: string | number; | ||
} | ||
declare class Dom { | ||
static svg<K extends keyof SVGElementTagNameMap>(name: K, attributes?: Attributes): SVGElementTagNameMap[K]; | ||
static translate(element: SVGElement, x: number, y: number): void; | ||
static attrs(element: Element, attributes: Attributes): void; | ||
static element<T extends keyof HTMLElementTagNameMap>(name: T, attributes?: Attributes): HTMLElementTagNameMap[T]; | ||
static toggleClass(element: Element, isEnabled: boolean, className: string): void; | ||
} | ||
declare class Vector { | ||
readonly x: number; | ||
readonly y: number; | ||
constructor(x: number, y: number); | ||
add(v: Vector): Vector; | ||
subtract(v: Vector): Vector; | ||
multiplyByScalar(s: number): Vector; | ||
divideByScalar(s: number): Vector; | ||
round(): Vector; | ||
distance(): number; | ||
} | ||
declare function getAbsolutePosition(element: Element): Vector; | ||
declare class Uid { | ||
static next(): string; | ||
} | ||
declare class SimpleEvent<T> { | ||
private readonly listeners; | ||
subscribe(listener: SimpleEventListener<T>): void; | ||
unsubscribe(listener: SimpleEventListener<T>): void; | ||
readonly forward: (value: T) => void; | ||
count(): number; | ||
first(): Promise<T>; | ||
} | ||
type SimpleEventListener<T> = (value: T) => void; | ||
declare function race<A, B, C>(timeout: number, a: SimpleEvent<A>, b: SimpleEvent<B>, c?: SimpleEvent<C>): SimpleEvent<[A?, B?, C?]>; | ||
/** | ||
@@ -23,14 +90,2 @@ * @deprecated Use {@link Step} instead. | ||
declare class Vector { | ||
readonly x: number; | ||
readonly y: number; | ||
constructor(x: number, y: number); | ||
add(v: Vector): Vector; | ||
subtract(v: Vector): Vector; | ||
multiplyByScalar(s: number): Vector; | ||
divideByScalar(s: number): Vector; | ||
round(): Vector; | ||
distance(): number; | ||
} | ||
interface Behavior { | ||
@@ -54,11 +109,2 @@ onStart(position: Vector): void; | ||
declare class SimpleEvent<T> { | ||
private readonly listeners; | ||
subscribe(listener: SimpleEventListener<T>): void; | ||
unsubscribe(listener: SimpleEventListener<T>): void; | ||
forward(value: T): void; | ||
count(): number; | ||
} | ||
type SimpleEventListener<T> = (value: T) => void; | ||
interface DefinitionChangedEvent { | ||
@@ -267,2 +313,4 @@ changeType: DefinitionChangeType; | ||
dump(): UndoStack; | ||
replaceDefinition(definition: Definition): void; | ||
private rememberCurrent; | ||
private remember; | ||
@@ -278,47 +326,2 @@ private commit; | ||
declare class Icons { | ||
static folderIn: string; | ||
static folderOut: string; | ||
static center: string; | ||
static zoomIn: string; | ||
static zoomOut: string; | ||
static undo: string; | ||
static redo: string; | ||
static move: string; | ||
static delete: string; | ||
static folderUp: string; | ||
static close: string; | ||
static options: string; | ||
static expand: string; | ||
static alert: string; | ||
static play: string; | ||
static stop: string; | ||
static folder: string; | ||
static appendPath(parent: SVGElement, pathClassName: string, d: string, size: number): SVGGElement; | ||
static createSvg(className: string, d: string): SVGElement; | ||
} | ||
declare class ObjectCloner { | ||
static deepClone<T>(instance: T): T; | ||
} | ||
interface Attributes { | ||
[name: string]: string | number; | ||
} | ||
declare class Dom { | ||
static svg<K extends keyof SVGElementTagNameMap>(name: K, attributes?: Attributes): SVGElementTagNameMap[K]; | ||
static translate(element: SVGElement, x: number, y: number): void; | ||
static attrs(element: Element, attributes: Attributes): void; | ||
static element<T extends keyof HTMLElementTagNameMap>(name: T, attributes?: Attributes): HTMLElementTagNameMap[T]; | ||
static toggleClass(element: Element, isEnabled: boolean, className: string): void; | ||
} | ||
declare function getAbsolutePosition(element: Element): Vector; | ||
declare class Uid { | ||
static next(): string; | ||
} | ||
declare function race<A, B, C>(timeout: number, a: SimpleEvent<A>, b: SimpleEvent<B>, c?: SimpleEvent<C>): SimpleEvent<[A?, B?, C?]>; | ||
interface WorkspaceController { | ||
@@ -399,2 +402,3 @@ getPlaceholders(): Placeholder[]; | ||
constructor(state: DesignerState, definitionWalker: DefinitionWalker); | ||
readonly onStateChanged: SimpleEvent<[(string[] | undefined)?, (DefinitionChangedEvent | undefined)?, unknown?]>; | ||
/** | ||
@@ -1009,3 +1013,5 @@ * @deprecated Don't use this method | ||
private readonly viewportApi; | ||
constructor(state: DesignerState, historyController: HistoryController | undefined, definitionModifier: DefinitionModifier, viewportApi: ViewportApi); | ||
static create(state: DesignerState, historyController: HistoryController | undefined, definitionModifier: DefinitionModifier, viewportApi: ViewportApi): ControlBarApi; | ||
private constructor(); | ||
readonly onStateChanged: SimpleEvent<unknown>; | ||
/** | ||
@@ -1150,2 +1156,7 @@ * @deprecated Don't use this method | ||
/** | ||
* Replaces the current definition with a new one and adds the previous definition to the undo stack. | ||
* @param definition A new definition. | ||
*/ | ||
replaceDefinition(definition: TDefinition): Promise<void>; | ||
/** | ||
* @param needle A step, a sequence or a step id. | ||
@@ -1163,2 +1174,3 @@ * @returns parent steps and branch names. | ||
destroy(): void; | ||
private getHistoryController; | ||
} | ||
@@ -1165,0 +1177,0 @@ |
{ | ||
"name": "sequential-workflow-designer", | ||
"description": "Customizable no-code component for building flow-based programming applications.", | ||
"version": "0.18.3", | ||
"version": "0.18.4", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "./lib/esm/index.js", |
@@ -99,6 +99,6 @@ ![Sequential Workflow Designer](.github/cover.png) | ||
... | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.3/css/designer.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.3/css/designer-light.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.3/css/designer-dark.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.3/dist/index.umd.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.4/css/designer.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.4/css/designer-light.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.4/css/designer-dark.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.4/dist/index.umd.js"></script> | ||
``` | ||
@@ -105,0 +105,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
608540
15013