Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@logicflow/core

Package Overview
Dependencies
Maintainers
6
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logicflow/core - npm Package Compare versions

Comparing version 1.2.13 to 1.2.15

types/util/matrix.d.ts

2

package.json
{
"name": "@logicflow/core",
"version": "1.2.13",
"version": "1.2.15",
"description": "LogicFlow core, to quickly build flowchart editor",

@@ -5,0 +5,0 @@ "main": "dist/entry.js",

@@ -50,2 +50,3 @@ export declare enum ElementState {

NODE_CONTEXTMENU = "node:contextmenu",
NODE_ROTATE = "node:rotate",
EDGE_DELETE = "edge:delete",

@@ -52,0 +53,0 @@ EDGE_ADD = "edge:add",

@@ -264,3 +264,7 @@ /**

edgeAnimation?: EdgeAnimation;
/**
* 节点旋转控制点样式
*/
rotateControl?: CommonTheme;
};
export declare const defaultTheme: Theme;

@@ -400,2 +400,8 @@ import GraphModel from './model/GraphModel';

domOverlayPosition: {
/**
* 将图形选中
* @param id 选择元素ID
* @param multiple 是否允许多选,如果为true,不会将上一个选中的元素重置
* @param toFront 是否将选中的元素置顶,默认为true
*/
x: number;

@@ -402,0 +408,0 @@ y: number;

@@ -15,5 +15,9 @@ export interface EditConfigInterface {

/**
* 禁止拖动画布
* 禁止拖动画布,默认为false
* true:完全禁止移动
* vertical: 禁止垂直方向拖动
* horizontal:禁止水平方向拖动
* [number, number, number, number]:[minX, minY, maxX, maxY] 画布可拖动范围
*/
stopMoveGraph?: boolean;
stopMoveGraph?: boolean | 'vertical' | 'horizontal' | [number, number, number, number];
/**

@@ -36,2 +40,6 @@ * 允许调整边

/**
* 是否允许节点旋转(旋转点的显隐)
*/
allowRotation?: boolean;
/**
* 显示节点悬浮时的外框

@@ -87,2 +95,3 @@ */

hideAnchors: boolean;
allowRotation: boolean;
hoverOutline: boolean;

@@ -89,0 +98,0 @@ nodeSelectedOutline: boolean;

@@ -49,2 +49,3 @@ import { OutlineTheme } from '../../constant/DefaultTheme';

visible: boolean;
enableRotate: boolean;
virtual: boolean;

@@ -56,2 +57,4 @@ graphModel: GraphModel;

style: ShapeStyleAttribute;
gMatrix: string;
rotate: number;
readonly BaseType = ElementType.NODE;

@@ -142,2 +145,7 @@ modelType: ModelType;

* @overridable 支持重写
* 获取当前节点旋转控制点的样式
*/
getRotateControlStyle(): import("../../constant/DefaultTheme").CommonTheme;
/**
* @overridable 支持重写
* 获取当前节点锚点样式

@@ -214,2 +222,3 @@ * @returns 自定义样式

setIsShowAnchor(flag?: boolean): void;
setEnableRotate(flag?: boolean): void;
setHitable(flag?: boolean): void;

@@ -216,0 +225,0 @@ setElementState(state: number, additionStateData?: AdditionData): void;

@@ -32,3 +32,7 @@ import EventEmitter from '../event/eventEmitter';

eventCenter: EventEmitter;
constructor(eventCenter: any);
translateLimitMinX: number;
translateLimitMinY: number;
translateLimitMaxX: number;
translateLimitMaxY: number;
constructor(eventCenter: any, options: any);
setZoomMiniSize(size: number): void;

@@ -84,2 +88,6 @@ setZoomMaxSize(size: number): void;

focusOn(targetX: number, targetY: number, width: number, height: number): void;
/**
* 更新画布可以移动范围
*/
updateTranslateLimits(limit: boolean | 'vertical' | 'horizontal' | [number, number, number, number]): void;
}

@@ -84,2 +84,3 @@ import { h } from 'preact';

zIndex?: number;
rotate?: number;
properties?: Record<string, unknown>;

@@ -95,2 +96,3 @@ };

zIndex?: number;
rotate?: number;
[key: string]: any;

@@ -97,0 +99,0 @@ };

@@ -6,1 +6,3 @@ export * from './uuid';

export * from './sampling';
export * from './vector';
export * from './matrix';

@@ -27,2 +27,3 @@ import { h, Component } from 'preact';

getAnchors(): h.JSX.Element[];
getRotateControl(): h.JSX.Element;
getText(): "" | h.JSX.Element;

@@ -29,0 +30,0 @@ getStateClassName(): string;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc