@vue-flow/core
Advanced tools
Comparing version 1.28.0 to 1.29.0
@@ -15,3 +15,3 @@ declare const _default: __VLS_WithTemplateSlots< | ||
| string | ||
| Object | ||
| object | ||
| import('vue').VNode< | ||
@@ -64,3 +64,3 @@ import('vue').RendererNode, | ||
| string | ||
| Object | ||
| object | ||
| import('vue').VNode< | ||
@@ -67,0 +67,0 @@ import('vue').RendererNode, |
@@ -28,3 +28,8 @@ import type { Position } from '../../types' | ||
}, | ||
{}, | ||
{ | ||
handleClick: (event: MouseEvent) => void | ||
handlePointerDown: (event: import('../../types').MouseTouchEvent) => void | ||
onClick: (event: MouseEvent) => void | ||
onPointerDown: (event: MouseEvent | TouchEvent) => void | ||
}, | ||
unknown, | ||
@@ -31,0 +36,0 @@ {}, |
@@ -32,3 +32,3 @@ import type { CSSProperties, Component, DefineComponent, VNode } from 'vue' | ||
y: number | ||
label?: string | VNode | Object | ||
label?: string | VNode | object | ||
labelStyle?: CSSProperties | ||
@@ -35,0 +35,0 @@ labelShowBg?: boolean |
@@ -152,3 +152,3 @@ import type { CSSProperties, Component, VNode, VNodeRef } from 'vue' | ||
/** these props are passed to edge components */ | ||
export interface EdgeProps<Data = ElementData, CustomEvents = {}, Type extends string = string> | ||
export interface EdgeProps<Data = ElementData, CustomEvents = object, Type extends string = string> | ||
extends EdgeLabelOptions, | ||
@@ -162,3 +162,3 @@ EdgePositions { | ||
type: Type | ||
label?: string | VNode | Component<EdgeTextProps> | Object | ||
label?: string | VNode | Component<EdgeTextProps> | object | ||
style?: CSSProperties | ||
@@ -165,0 +165,0 @@ selected?: boolean |
@@ -117,6 +117,6 @@ import type { EventHookOn, EventHookTrigger } from '@vueuse/core' | ||
export type CustomEvent<Args extends any[] = any[], Return = any> = (...args: Args) => Return | ||
type CustomEventHandlers<CustomEvents = {}> = { | ||
type CustomEventHandlers<CustomEvents = object> = { | ||
[key in keyof CustomEvents]: CustomEvents[key] | ||
} | ||
export type NodeEventsHandler<CustomEvents = {}> = { | ||
export type NodeEventsHandler<CustomEvents = object> = { | ||
doubleClick: (event: NodeMouseEvent) => void | { | ||
@@ -150,9 +150,9 @@ off: () => void | ||
} & CustomEventHandlers<CustomEvents> | ||
export type NodeEventsOn<CustomEvents = {}> = { | ||
export type NodeEventsOn<CustomEvents = object> = { | ||
[key in keyof NodeEventsHandler]: EventHookOn<NodeEventsHandler[key] extends (event: infer Event) => any ? Event : never> | ||
} & CustomEventHandlers<CustomEvents> | ||
export type NodeEventsEmit<CustomEvents = {}> = { | ||
export type NodeEventsEmit<CustomEvents = object> = { | ||
[key in keyof NodeEventsHandler]: EventHookTrigger<NodeEventsHandler[key] extends (event: infer Event) => any ? Event : never> | ||
} & CustomEventHandlers<CustomEvents> | ||
export type EdgeEventsHandler<CustomEvents = {}> = { | ||
export type EdgeEventsHandler<CustomEvents = object> = { | ||
doubleClick: (event: EdgeMouseEvent) => void | { | ||
@@ -186,8 +186,8 @@ off: () => void | ||
} & CustomEventHandlers<CustomEvents> | ||
export type EdgeEventsOn<CustomEvents = {}> = { | ||
export type EdgeEventsOn<CustomEvents = object> = { | ||
[key in keyof EdgeEventsHandler]: EventHookOn<EdgeEventsHandler[key] extends (event: infer Event) => any ? Event : never> | ||
} & CustomEventHandlers<CustomEvents> | ||
export type EdgeEventsEmit<CustomEvents = {}> = { | ||
export type EdgeEventsEmit<CustomEvents = object> = { | ||
[key in keyof EdgeEventsHandler]: EventHookTrigger<EdgeEventsHandler[key] extends (event: infer Event) => any ? Event : never> | ||
} & CustomEventHandlers<CustomEvents> | ||
export {} |
@@ -7,3 +7,3 @@ import type { Component, VNode } from 'vue' | ||
/** Defined as [[x-from, y-from], [x-to, y-to]] **/ | ||
/** Defined as [[x-from, y-from], [x-to, y-to]] */ | ||
export type CoordinateExtent = [extentFrom: [fromX: number, fromY: number], extentTo: [toX: number, toY: number]] | ||
@@ -115,3 +115,3 @@ export interface CoordinateExtentRange { | ||
/** these props are passed to node components */ | ||
export interface NodeProps<Data = ElementData, CustomEvents = {}, Type extends string = string> { | ||
export interface NodeProps<Data = ElementData, CustomEvents = object, Type extends string = string> { | ||
/** unique node id */ | ||
@@ -134,3 +134,3 @@ id: string | ||
*/ | ||
label?: string | VNode | Component | Object | ||
label?: string | VNode | Component | object | ||
/** | ||
@@ -137,0 +137,0 @@ * @deprecated will be removed in next major release and replaced by just `isValidConnection` prop |
{ | ||
"name": "@vue-flow/core", | ||
"version": "1.28.0", | ||
"version": "1.29.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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 not supported yet
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
1169502
96
33488