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

@logicflow/core

Package Overview
Dependencies
Maintainers
5
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.7.12 to 0.7.13-alpha.0

LICENSE

11

CHANGELOG.md

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

## [0.7.13-alpha.0](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.7.12...@logicflow/core@0.7.13-alpha.0) (2021-12-07)
### Features
* add node view types ([b065a2d](https://github.com/didi/LogicFlow/commit/b065a2d7efc1d47cf0cf97ae73406640d8a20eb4))
## [0.7.12](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.7.11...@logicflow/core@0.7.12) (2021-12-04)

@@ -8,0 +19,0 @@

4

package.json
{
"name": "@logicflow/core",
"version": "0.7.12",
"version": "0.7.13-alpha.0",
"description": "LogicFlow core, to quickly build flowchart editor",

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

],
"gitHead": "ab8cc6126e9dfa5c4fb18037538a374d3a0b0521"
"gitHead": "898f500224249251d4bdb9e018615dc8ad8b6db8"
}

@@ -15,2 +15,29 @@ import { h, Component } from 'preact';

};
declare type StyleAttribute = {
width: number;
height: number;
fill: string;
fillOpacity?: number;
strokeWidth?: number;
stroke: string;
strokeOpacity?: number;
opacity?: number;
outlineColor?: string;
[key: string]: any;
};
export declare type NodeAttributes = {
id: string;
properties: Record<string, any>;
type: string;
x: number;
y: number;
isSelected: boolean;
isHovered: boolean;
text: {
x: number;
y: number;
value: string;
[key: string]: any;
};
} & StyleAttribute;
export default abstract class BaseNode extends Component<IProps, Istate> {

@@ -24,40 +51,4 @@ static getModel(defaultModel: any): any;

abstract getShape(): any;
getShapeStyle(): {
width: number;
height: number;
fill: string;
fillOpacity: number;
strokeWidth: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
};
getAttributes(): {
width: number;
height: number;
fill: string;
fillOpacity: number;
strokeWidth: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
id: string;
properties: {
[x: string]: any;
};
type: string;
x: number;
y: number;
isSelected: boolean;
isHovered: boolean;
text: {
value: string;
x: number;
y: number;
draggable: boolean;
editable: boolean;
};
};
getShapeStyle(): StyleAttribute;
getAttributes(): NodeAttributes;
getProperties(): Record<string, any>;

@@ -64,0 +55,0 @@ getAnchorStyle(): Record<string, any>;

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

fill: string;
fillOpacity: number;
strokeWidth: number;
fillOpacity?: number;
strokeWidth?: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
strokeOpacity?: number;
opacity?: number;
outlineColor?: string;
};

@@ -22,12 +22,10 @@ getAttributes(): {

fill: string;
fillOpacity: number;
strokeWidth: number;
fillOpacity?: number;
strokeWidth?: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
strokeOpacity?: number;
opacity?: number;
outlineColor?: string;
id: string;
properties: {
[x: string]: any;
};
properties: Record<string, any>;
type: string;

@@ -39,7 +37,6 @@ x: number;

text: {
value: string;
[key: string]: any;
x: number;
y: number;
draggable: boolean;
editable: boolean;
value: string;
};

@@ -46,0 +43,0 @@ };

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

fill: string;
fillOpacity: number;
strokeWidth: number;
fillOpacity?: number;
strokeWidth?: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
strokeOpacity?: number;
opacity?: number;
outlineColor?: string;
};

@@ -22,12 +22,10 @@ getAttributes(): {

fill: string;
fillOpacity: number;
strokeWidth: number;
fillOpacity?: number;
strokeWidth?: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
strokeOpacity?: number;
opacity?: number;
outlineColor?: string;
id: string;
properties: {
[x: string]: any;
};
properties: Record<string, any>;
type: string;

@@ -39,7 +37,6 @@ x: number;

text: {
value: string;
[key: string]: any;
x: number;
y: number;
draggable: boolean;
editable: boolean;
value: string;
};

@@ -46,0 +43,0 @@ };

@@ -7,15 +7,4 @@ import { h } from 'preact';

ry: number;
width: number;
height: number;
fill: string;
fillOpacity: number;
strokeWidth: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
id: string;
properties: {
[x: string]: any;
};
properties: Record<string, any>;
type: string;

@@ -27,10 +16,18 @@ x: number;

text: {
value: string;
[key: string]: any;
x: number;
y: number;
draggable: boolean;
editable: boolean;
value: string;
};
width: number;
height: number;
fill: string;
fillOpacity?: number;
strokeWidth?: number;
stroke: string;
strokeOpacity?: number;
opacity?: number;
outlineColor?: string;
};
getShape(): h.JSX.Element;
}
import { h } from 'preact';
import BaseNode from './BaseNode';
import BaseNode, { NodeAttributes } from './BaseNode';
import { PointTuple } from '../../type';
declare type PolygonNodeAttributes = {
points: PointTuple[];
} & NodeAttributes;
export default class PolygonNode extends BaseNode {
getShapeStyle(): {
points: import("../..").PointTuple[];
points: PointTuple[];
width: number;
height: number;
fill: string;
fillOpacity: number;
strokeWidth: number;
fillOpacity?: number;
strokeWidth?: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
strokeOpacity?: number;
opacity?: number;
outlineColor?: string;
};
getAttributes(): {
points: import("../..").PointTuple[];
width: number;
height: number;
fill: string;
fillOpacity: number;
strokeWidth: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
id: string;
properties: {
[x: string]: any;
};
type: string;
x: number;
y: number;
isSelected: boolean;
isHovered: boolean;
text: {
value: string;
x: number;
y: number;
draggable: boolean;
editable: boolean;
};
};
getAttributes(): PolygonNodeAttributes;
getShape(): h.JSX.Element;
}
export {};

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

fill: string;
fillOpacity: number;
strokeWidth: number;
fillOpacity?: number;
strokeWidth?: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
strokeOpacity?: number;
opacity?: number;
outlineColor?: string;
};

@@ -22,12 +22,10 @@ getAttributes(): {

fill: string;
fillOpacity: number;
strokeWidth: number;
fillOpacity?: number;
strokeWidth?: number;
stroke: string;
strokeOpacity: number;
opacity: number;
outlineColor: string;
strokeOpacity?: number;
opacity?: number;
outlineColor?: string;
id: string;
properties: {
[x: string]: any;
};
properties: Record<string, any>;
type: string;

@@ -39,7 +37,6 @@ x: number;

text: {
value: string;
[key: string]: any;
x: number;
y: number;
draggable: boolean;
editable: boolean;
value: string;
};

@@ -46,0 +43,0 @@ };

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