@logicflow/core
Advanced tools
Comparing version 1.2.10 to 1.2.11
{ | ||
"name": "@logicflow/core", | ||
"version": "1.2.10", | ||
"version": "1.2.11", | ||
"description": "LogicFlow core, to quickly build flowchart editor", | ||
@@ -11,3 +11,3 @@ "main": "dist/entry.js", | ||
"license": "Apache-2.0", | ||
"homepage": "https://docs.logic-flow.cn", | ||
"homepage": "https://site.logic-flow.cn", | ||
"types": "types/index.d.ts", | ||
@@ -14,0 +14,0 @@ "repository": { |
@@ -14,2 +14,8 @@ import GraphModel from './model/GraphModel'; | ||
import { EventType } from './constant/constant'; | ||
declare const pluginFlag: unique symbol; | ||
declare type ExtensionMapValueType = { | ||
extension: Extension; | ||
props?: any; | ||
[pluginFlag]: symbol; | ||
}; | ||
declare type GraphConfigModel = { | ||
@@ -54,3 +60,3 @@ nodes: _Model.BaseNodeModel[]; | ||
*/ | ||
static extensions: Map<string, Extension>; | ||
static extensions: Map<string, ExtensionMapValueType>; | ||
/** | ||
@@ -500,3 +506,3 @@ * 插件扩展方法 | ||
*/ | ||
static use(extension: Extension): void; | ||
static use(extension: Extension, props?: any): void; | ||
private initContainer; | ||
@@ -503,0 +509,0 @@ private installPlugins; |
@@ -305,2 +305,3 @@ import { h } from 'preact'; | ||
options: Record<string, any>; | ||
props?: any; | ||
}; | ||
@@ -307,0 +308,0 @@ export interface ExtensionConstructor { |
@@ -89,3 +89,3 @@ import BaseNode from '../model/node/BaseNodeModel'; | ||
export declare const getBezierPoints: (path: string) => Point[]; | ||
export declare const getEndTangent: (path: string) => Point[]; | ||
export declare const getEndTangent: (pointsList: any, offset: any) => Point[]; | ||
/** | ||
@@ -92,0 +92,0 @@ * 获取移动边后,文本位置距离边上的最近的一点 |
import { Point, Vector } from '../type/index'; | ||
export declare function sampleCubic(p1: Point, cp1: Point, cp2: Point, p2: Point): { | ||
x: number; | ||
y: number; | ||
}; | ||
export declare function sampleCubic(p1: Point, cp1: Point, cp2: Point, p2: Point, offset: number): Point; | ||
export declare function getThetaOfVector(v: Vector): number; | ||
export declare function degrees(radians: number): number; |
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
1221462
102
4775
1