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 0.3.0-alpha.1 to 0.3.0-alpha.2

17

CHANGELOG.md

@@ -6,2 +6,19 @@ # Change Log

# [0.3.0-alpha.2](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0-alpha.1...@logicflow/core@0.3.0-alpha.2) (2021-03-22)
### Bug Fixes
* minimap extension custom disabled plugin ([3768d14](https://github.com/towersxu/logicflow/commit/3768d149b6a72e4c251e287432b6070dcbfabce6))
* move clone guard to shortcut ([c5643da](https://github.com/towersxu/logicflow/commit/c5643daa8ca7b2f905db81357444e5bba64a5ee7))
### Features
* change cloneElements to addElements ([6c59d74](https://github.com/towersxu/logicflow/commit/6c59d749a53e5263f5cf630702453054347215f6))
# [0.3.0-alpha.1](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.3.0-alpha.0...@logicflow/core@0.3.0-alpha.1) (2021-03-19)

@@ -8,0 +25,0 @@

4

package.json
{
"name": "@logicflow/core",
"version": "0.3.0-alpha.1",
"version": "0.3.0-alpha.2",
"description": "LogicFlow core, to quickly build flowchart editor",

@@ -94,3 +94,3 @@ "main": "dist/logic-flow.js",

},
"gitHead": "bda773ea260394889fb994324085b8a1dc02149b"
"gitHead": "3a88499b86619a5e04628d831a7264978a0e13fc"
}

@@ -29,9 +29,5 @@ import { h } from 'preact';

import Keyboard from './keyboard';
import { EdgeConfig, EdgeFilter, NodeConfig, NodeAttribute, Extension, ComponentRender, FocusOnArgs, RegisterElementFn, EdgeAttribute, EdgeData } from './type';
import { EdgeConfig, EdgeFilter, NodeConfig, NodeAttribute, Extension, ComponentRender, FocusOnArgs, RegisterElementFn, EdgeAttribute, EdgeData, GraphConfigData } from './type';
import SnaplineModel from './model/SnaplineModel';
import { EditConfigInterface } from './model/EditConfigModel';
declare type GraphConfigData = {
nodes: NodeConfig[];
edges: EdgeConfig[];
};
declare type GraphConfigModel = {

@@ -71,3 +67,3 @@ nodes: BaseNodeModel[];

static use(extension: Extension): void;
installPlugins(activePlugins: any): void;
installPlugins(disabledPlugins?: any[]): void;
__installPlugin(extension: any): void;

@@ -141,3 +137,3 @@ register(type: string, fn: RegisterElementFn): void;

*/
cloneElements({ nodes, edges }: GraphConfigData): GraphConfigModel;
addElements({ nodes, edges }: GraphConfigData): GraphConfigModel;
clearSelectElements(): void;

@@ -144,0 +140,0 @@ /**

import { DndOptions } from './view/behavior/DnD';
import { GridOptions } from './view/overlay/Grid';
import { BackgroundConfig } from './view/overlay/BackgroundOverlay';
import { Style, NodeData, EdgeData } from './type';
import { Style, NodeData, EdgeData, GraphConfigData } from './type';
import { KeyboardDef } from './keyboard';

@@ -18,3 +18,3 @@ export declare type EdgeType = 'line' | 'polyline' | 'bezier';

isSilentMode?: boolean;
activePlugins?: string[];
disabledPlugins?: string[];
edgeType?: EdgeType;

@@ -32,3 +32,3 @@ snapline?: boolean;

export interface GuardsTypes {
beforeClone?: (data: NodeData) => boolean;
beforeClone?: (data: NodeData | GraphConfigData) => boolean;
beforeDelete?: (data: NodeData | EdgeData) => boolean;

@@ -35,0 +35,0 @@ }

@@ -38,2 +38,6 @@ import mobx from 'mobx';

} & Point;
export declare type GraphConfigData = {
nodes: NodeConfig[];
edges: EdgeConfig[];
};
export declare type NodeConfig = {

@@ -40,0 +44,0 @@ id?: string;

Sorry, the diff of this file is too big to display

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