@meta2d/form-diagram
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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
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
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
123623
1747