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

@meta2d/form-diagram

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meta2d/form-diagram - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "@meta2d/form-diagram",
"version": "1.0.0",
"version": "1.0.1",
"description": "The form library based on le5le meta2d.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,6 +19,6 @@ import { Pen } from '../../core/src/pen';

options?: {
isForbidden: boolean;
isChecked: boolean;
background: string;
text: string;
isForbidden?: boolean;
isChecked?: boolean;
background?: string;
text?: string;
}[];

@@ -28,11 +28,11 @@ optionHeight?: number;

calculative?: {
barRect: Rect;
ballRect: Rect;
texts: any[];
activeCell: Pos;
hoverCell: Pos;
inputCell: Pos;
isUpdateData: boolean;
isHover: boolean;
isInput: boolean;
barRect?: Rect;
ballRect?: Rect;
texts?: any[];
activeCell?: Pos;
hoverCell?: Pos;
inputCell?: Pos;
isUpdateData?: boolean;
isHover?: boolean;
isInput?: boolean;
} & Pen['calculative'];

@@ -55,37 +55,37 @@ checked?: boolean | string;

table?: {
rowHeight: number;
colWidth: number;
header: {
data: any;
show: boolean;
height: number;
fontWeight: number;
rowHeight?: number;
colWidth?: number;
header?: {
data?: any;
show?: boolean;
height?: number;
fontWeight?: number;
};
data: any[];
data?: any[];
};
colPos: number[];
rowPos: number[];
tableWidth: number;
tableHeight: number;
isInit: boolean;
rowHeight: number;
colWidth: number;
styles: {
row: number;
col: number;
color: string;
background: string;
width: number;
height: number;
wheres: {
comparison: string;
key: string;
value: string;
colPos?: number[];
rowPos?: number[];
tableWidth?: number;
tableHeight?: number;
isInit?: boolean;
rowHeight?: number;
colWidth?: number;
styles?: {
row?: number;
col?: number;
color?: string;
background?: string;
width?: number;
height?: number;
wheres?: {
comparison?: string;
key?: string;
value?: string;
}[];
pens: formPen[];
pens?: formPen[];
}[];
data: any;
isFirstTime: boolean;
data?: any;
isFirstTime?: boolean;
replaceMode?: ReplaceMode;
timer: any;
timer?: any;
}

@@ -92,0 +92,0 @@ export interface cellData extends ChartData {

@@ -135,3 +135,3 @@ import { getTextLength, initOptions } from './common';

if (pen.direction == 'horizontal') {
var checkedIndex = -1;
// let checkedIndex = -1;
for (var i = 0; i < pen.optionPos.length; i++) {

@@ -151,3 +151,4 @@ if (!pen.options[i].isForbidden &&

pen.checked = pen.options[i].text;
checkedIndex = i;
// checkedIndex = i;
pen.calculative.canvas.store.emitter.emit('valueUpdate', pen);
}

@@ -165,3 +166,3 @@ }

var scaleY = pen.calculative.worldRect.height / pen.checkboxHeight;
var checkedIndex = -1;
// let checkedIndex = -1;
for (var i = 0; i < pen.optionPos.length; i++) {

@@ -175,3 +176,4 @@ if (!pen.options[i].isForbidden &&

pen.checked = pen.options[i].text;
checkedIndex = i;
// checkedIndex = i;
pen.calculative.canvas.store.emitter.emit('valueUpdate', pen);
}

@@ -178,0 +180,0 @@ }

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