@jsplumb/community
Advanced tools
Comparing version 4.0.0-RC18 to 4.0.0-RC19
@@ -6,3 +6,4 @@ import { Endpoint } from "./endpoint/endpoint-impl"; | ||
import { ContinuousAnchor, ContinuousAnchorOptions } from "./anchor/continuous-anchor"; | ||
export declare type AnchorPlacement = [number, number, number, number, any?, any?]; | ||
export declare type AnchorPlacement = [number, number, number, number]; | ||
export declare type ContinuousAnchorPlacement = [number, number, number, number, Connection, Connection]; | ||
export declare type AnchorFace = "top" | "right" | "bottom" | "left"; | ||
@@ -9,0 +10,0 @@ export declare class ContinuousAnchorFactory { |
@@ -5,2 +5,3 @@ import { AnchorId, Face, Orientation, AnchorOptions, AnchorComputeParams } from "../factory/anchor-factory"; | ||
import { Endpoint } from "../endpoint/endpoint-impl"; | ||
import { AnchorPlacement } from "../anchor-manager"; | ||
export interface ContinuousAnchorOptions extends AnchorOptions { | ||
@@ -37,6 +38,6 @@ faces?: Array<Face>; | ||
unlockCurrentAxis(): void; | ||
compute(params: AnchorComputeParams): [number, number, number, number]; | ||
getCurrentLocation(params: AnchorComputeParams): [number, number, number, number]; | ||
compute(params: AnchorComputeParams): AnchorPlacement; | ||
getCurrentLocation(params: AnchorComputeParams): AnchorPlacement; | ||
getOrientation(endpoint?: Endpoint): Orientation; | ||
getCssClass(): string; | ||
} |
@@ -42,5 +42,3 @@ import { PaintStyle } from "../styles"; | ||
endpointHoverStyles?: [PaintStyle, PaintStyle]; | ||
enabled?: boolean; | ||
currentAnchorClass?: string; | ||
uuid?: string; | ||
floatingEndpoint?: Endpoint; | ||
@@ -61,3 +59,3 @@ events?: any; | ||
}; | ||
export interface ComponentOptions { | ||
export interface ComponentOptions extends Record<string, any> { | ||
_jsPlumb?: jsPlumbInstance; | ||
@@ -64,0 +62,0 @@ parameters?: any; |
@@ -8,6 +8,3 @@ import { jsPlumbInstance, PointArray, PointXY, TypeDescriptor } from "../core"; | ||
import { AnchorPlacement } from "../anchor-manager"; | ||
/** | ||
* Created by simon on 14/05/2019. | ||
*/ | ||
export interface ConnectorOptions { | ||
export interface ConnectorOptions extends Record<string, any> { | ||
} | ||
@@ -14,0 +11,0 @@ export declare type UserDefinedConnectorId = string; |
@@ -38,2 +38,3 @@ import { jsPlumbDefaults, jsPlumbHelperFunctions } from "./defaults"; | ||
endpointHoverStyle?: PaintStyle; | ||
ports?: [string, string]; | ||
} | ||
@@ -423,3 +424,3 @@ export interface ConnectionEstablishedParams { | ||
connect(params: ConnectParams, referenceParams?: ConnectParams): Connection; | ||
_prepareConnectionParams(params: ConnectParams, referenceParams?: ConnectParams): any; | ||
private _prepareConnectionParams; | ||
_newConnection(params: any): Connection; | ||
@@ -426,0 +427,0 @@ _finaliseConnection(jpc: Connection, params?: any, originalEvent?: Event, doInformAnchorManager?: boolean): void; |
@@ -27,2 +27,3 @@ import { EndpointOptions, EndpointSpec } from "../endpoint/endpoint"; | ||
timestamp: string; | ||
portId: string; | ||
maxConnections: number; | ||
@@ -34,5 +35,7 @@ connectorClass: string; | ||
finalEndpoint: Endpoint; | ||
enabled: boolean; | ||
isSource: boolean; | ||
isTarget: boolean; | ||
isTemporarySource: boolean; | ||
connectionCost: number; | ||
connectionsDirected: boolean; | ||
@@ -49,2 +52,3 @@ connectionsDetachable: boolean; | ||
deleteOnEmpty: boolean; | ||
private uuid; | ||
defaultLabelLocation: [number, number]; | ||
@@ -69,4 +73,2 @@ getDefaultOverlayKey(): string; | ||
applyType(t: any, doNotRepaint: boolean, typeMap: any): void; | ||
isEnabled(): boolean; | ||
setEnabled(e: boolean): void; | ||
destroy(force?: boolean): void; | ||
@@ -76,6 +78,2 @@ isFull(): boolean; | ||
isConnectedTo(endpoint: Endpoint): boolean; | ||
getConnectionCost(): number; | ||
setConnectionCost(c: number): void; | ||
areConnectionsDirected(): boolean; | ||
setConnectionsDirected(b: boolean): void; | ||
setElementId(_elId: string): void; | ||
@@ -82,0 +80,0 @@ setReferenceElement(_el: any): void; |
@@ -41,2 +41,3 @@ import { AnchorSpec } from "../factory/anchor-factory"; | ||
connectorTooltip?: string; | ||
portId?: string; | ||
uuid?: string; | ||
@@ -43,0 +44,0 @@ source?: string | any; |
@@ -5,3 +5,3 @@ import { Dictionary, jsPlumbInstance } from "../core"; | ||
import { EventGenerator } from "../event-generator"; | ||
export interface OverlayOptions { | ||
export interface OverlayOptions extends Record<string, any> { | ||
id?: string; | ||
@@ -46,17 +46,2 @@ cssClass?: string; | ||
destroy(force?: boolean): void; | ||
/** | ||
* Add a class to the overlay. | ||
* @param clazz | ||
* | ||
addClass(clazz:string) { | ||
this.instance.renderer.addOverlayClass(this, clazz); | ||
} | ||
/** | ||
* Remove a class from the overlay. | ||
* @param clazz | ||
* | ||
removeClass(clazz:string) { | ||
this.instance.renderer.removeOverlayClass(this, clazz); | ||
}*/ | ||
abstract updateFrom(d: any): void; | ||
@@ -63,0 +48,0 @@ private _postComponentEvent; |
{ | ||
"name": "@jsplumb/community", | ||
"version": "4.0.0-RC18", | ||
"version": "4.0.0-RC19", | ||
"description": "Visual connectivity for webapps", | ||
@@ -5,0 +5,0 @@ "main": "dist/js/jsplumb.js", |
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
785221
19456