@visactor/vtable 0.20.1 → 0.20.2-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +28 -6
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +9 -2
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +22 -19
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +21 -18
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +7 -7
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +21 -18
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +11 -10
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +7 -7
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/cjs/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
- package/cjs/scenegraph/utils/cell-border-stroke-width.js +16 -0
- package/cjs/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
- package/cjs/scenegraph/utils/text-icon-layout.js +9 -3
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/cjs/themes/theme.d.ts +3 -0
- package/cjs/themes/theme.js +14 -0
- package/cjs/themes/theme.js.map +1 -1
- package/cjs/ts-types/theme.d.ts +3 -0
- package/cjs/ts-types/theme.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +177 -26
- package/dist/vtable.min.js +2 -2
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/scenegraph/graphic/contributions/group-contribution-render.js +28 -5
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js +9 -2
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/chart-cell.js +23 -18
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +22 -17
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.js +8 -6
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +22 -17
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/text-cell.js +11 -9
- package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/video-cell.js +8 -6
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/es/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
- package/es/scenegraph/utils/cell-border-stroke-width.js +10 -0
- package/es/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
- package/es/scenegraph/utils/text-icon-layout.js +9 -3
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/es/themes/theme.d.ts +3 -0
- package/es/themes/theme.js +14 -0
- package/es/themes/theme.js.map +1 -1
- package/es/ts-types/theme.d.ts +3 -0
- package/es/ts-types/theme.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +3 -3
package/cjs/ts-types/theme.d.ts
CHANGED
|
@@ -108,5 +108,8 @@ export interface ITableThemeDefine {
|
|
|
108
108
|
bottomAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;
|
|
109
109
|
};
|
|
110
110
|
textPopTipStyle?: PopTipAttributes;
|
|
111
|
+
cellInnerBorder?: boolean;
|
|
112
|
+
cellBorderClipDirection?: 'top-left' | 'bottom-right';
|
|
113
|
+
_contentOffset?: number;
|
|
111
114
|
}
|
|
112
115
|
export type RequiredTableThemeDefine = Required<ITableThemeDefine>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ts-types/theme.ts"],"names":[],"mappings":"","file":"theme.js","sourcesContent":["/* eslint-disable sort-imports */\nimport type { ColorsDef, LineDashsDef, LineWidthsDef, LineWidthsPropertyDefine } from '.';\nimport type { ITextStyleOption } from './column/style';\nimport type { ColorPropertyDefine, ColorsPropertyDefine } from './style-define';\nimport type { ColumnIconOption } from './icon';\nimport type { ICellAxisOption } from './component/axis';\nimport type { PopTipAttributes } from '@visactor/vrender-components';\n// ****** Custom Theme *******\nexport type PartialTableThemeDefine = Partial<ITableThemeDefine>;\nexport type ThemeStyle = ITextStyleOption & {\n hover?: Omit<InteractionStyle, 'cellBorderColor' | 'cellBorderLineWidth'>; //鼠标hover到某个单元格\n // click?: Omit<InteractionStyle, 'inlineRowBgColor' | 'inlineColumnBgColor'>; //鼠标点击到某个单元格\n frameStyle?: FrameStyle;\n};\nexport type InteractionStyle = {\n cellBorderColor?: ColorsPropertyDefine; //交互所在单元格的边框颜色\n cellBorderLineWidth?: LineWidthsPropertyDefine;\n // cellBorderLineDash?:LineDashsPropertyDefine,//用到的场景应该不多\n cellBgColor?: ColorPropertyDefine; //交互所在单元格的背景颜色\n // inlineRowBorderColor?: ColorsPropertyDefine,//交互所在整行的边框颜色\n inlineRowBgColor?: ColorPropertyDefine; //交互所在整行的背景颜色\n // inlineColBorderColor?: ColorsPropertyDefine,//交互所在整列的边框颜色\n inlineColumnBgColor?: ColorPropertyDefine; //交互所在整列的背景颜色\n // headerHighlightBorderColor?:ColorPropertyDefine,//表头底部高亮线\n};\nexport type FrameStyle = {\n borderColor?: ColorsDef;\n borderLineWidth?: LineWidthsDef;\n borderLineDash?: LineDashsDef;\n innerBorder?: boolean;\n};\nexport type TableFrameStyle = FrameStyle & {\n shadowBlur?: number; //阴影宽度\n shadowOffsetX?: number; //x方向偏移\n shadowOffsetY?: number; //Y方向偏移\n shadowColor?: string; //阴影颜色\n cornerRadius?: number; //边框圆角半径\n};\nexport type menuStyle = {\n color?: string;\n highlightColor?: string;\n fontSize?: number;\n fontFamily?: string;\n highlightFontSize?: number;\n highlightFontFamily?: string;\n hoverBgColor?: string;\n};\nexport type ScrollStyle = {\n /**滚动条滚动的颜色 */\n scrollRailColor?: string;\n /**滚动条滑块的颜色 */\n scrollSliderColor?: string;\n /**滚动条宽度大小 */\n width?: number;\n /**滚动条是否可见 'always' | 'scrolling' | 'none' | 'focus',常驻|滚动时|不显示|聚焦在画布上时 */\n visible?: 'always' | 'scrolling' | 'none' | 'focus';\n /*** 悬浮与容器上,还是独立于容器外 */\n hoverOn?: boolean;\n};\n/**\n * 气泡框,按钮的的解释信息\n */\nexport type TooltipStyle = {\n fontFamily?: string;\n fontSize?: number;\n color?: string;\n padding?: number[];\n bgColor?: string;\n /** !目前未实现该逻辑。触发行为:hover or click */\n // trigger?: string | string[];\n /**气泡框位置,可选 top left right bottom */\n // placement?: Placement;\n};\nexport interface ITableThemeDefine {\n /** 表格绘制范围外的canvas上填充的颜色 */\n underlayBackgroundColor?: string;\n // selectionBgColor?: ColorPropertyDefine; //多选单元格背景色 手动设置的多选 非框选\n defaultStyle?: ThemeStyle;\n cornerHeaderStyle?: ThemeStyle; //角头样式\n cornerRightTopCellStyle?: ThemeStyle; // 右上角占位单元格样式\n cornerLeftBottomCellStyle?: ThemeStyle; // 左下角占位单元格样式\n cornerRightBottomCellStyle?: ThemeStyle; // 右下角占位单元格样式\n rightFrozenStyle?: ThemeStyle; // 右侧冻结单元格样式\n bottomFrozenStyle?: ThemeStyle; // 下部冻结单元格样式\n headerStyle?: ThemeStyle;\n rowHeaderStyle?: ThemeStyle;\n bodyStyle?: ThemeStyle;\n frameStyle?: TableFrameStyle;\n //列调整宽度的直线\n columnResize?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n labelColor?: string; //label的颜色\n labelFontSize?: number; //label的字体大小\n labelFontFamily?: string; //label的字体\n labelBackgroundFill?: string; //label的背景填充\n labelBackgroundCornerRadius?: number; //label的背景圆角\n };\n //拖拽表格换位分割线的样式\n dragHeaderSplitLine?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n lineWidth: number; //上面线的宽度\n shadowBlockColor?: string; //拖拽时阴影区域的颜色\n };\n //冻结列后面的效果\n frozenColumnLine?: {\n shadow?: {\n //默认效果 会有阴影配置\n width: number; //阴影整体宽度\n startColor: string; //开始颜色\n endColor: string; //结束颜色\n };\n /** TODO 暂未生效 */\n border?: {\n //有些需求要两种效果 这里配置滚动前的边框效果(实现方式是两条线叠加产生),滚动后按上面的阴影效果\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n };\n };\n\n // menuStyle?: menuStyle;\n scrollStyle?: ScrollStyle;\n tooltipStyle?: TooltipStyle;\n // selectHeaderHighlight?: boolean;\n /** 选择框样式 */\n selectionStyle?: //Omit<InteractionStyle, 'inlineRowBgColor' | 'inlineColumnBgColor'>; //鼠标点击到某个单元格\n {\n cellBorderColor?: string; //边框颜色\n cellBorderLineWidth?: number; //边框线宽度\n cellBgColor?: string; //选择框背景颜色\n };\n\n // style for axis\n axisStyle?: {\n defaultAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n leftAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n rightAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n topAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n bottomAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n };\n\n // style for text pop tip\n textPopTipStyle?: PopTipAttributes;\n}\n\nexport type RequiredTableThemeDefine = Required<ITableThemeDefine>;\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/ts-types/theme.ts"],"names":[],"mappings":"","file":"theme.js","sourcesContent":["/* eslint-disable sort-imports */\nimport type { ColorsDef, LineDashsDef, LineWidthsDef, LineWidthsPropertyDefine } from '.';\nimport type { ITextStyleOption } from './column/style';\nimport type { ColorPropertyDefine, ColorsPropertyDefine } from './style-define';\nimport type { ColumnIconOption } from './icon';\nimport type { ICellAxisOption } from './component/axis';\nimport type { PopTipAttributes } from '@visactor/vrender-components';\n// ****** Custom Theme *******\nexport type PartialTableThemeDefine = Partial<ITableThemeDefine>;\nexport type ThemeStyle = ITextStyleOption & {\n hover?: Omit<InteractionStyle, 'cellBorderColor' | 'cellBorderLineWidth'>; //鼠标hover到某个单元格\n // click?: Omit<InteractionStyle, 'inlineRowBgColor' | 'inlineColumnBgColor'>; //鼠标点击到某个单元格\n frameStyle?: FrameStyle;\n};\nexport type InteractionStyle = {\n cellBorderColor?: ColorsPropertyDefine; //交互所在单元格的边框颜色\n cellBorderLineWidth?: LineWidthsPropertyDefine;\n // cellBorderLineDash?:LineDashsPropertyDefine,//用到的场景应该不多\n cellBgColor?: ColorPropertyDefine; //交互所在单元格的背景颜色\n // inlineRowBorderColor?: ColorsPropertyDefine,//交互所在整行的边框颜色\n inlineRowBgColor?: ColorPropertyDefine; //交互所在整行的背景颜色\n // inlineColBorderColor?: ColorsPropertyDefine,//交互所在整列的边框颜色\n inlineColumnBgColor?: ColorPropertyDefine; //交互所在整列的背景颜色\n // headerHighlightBorderColor?:ColorPropertyDefine,//表头底部高亮线\n};\nexport type FrameStyle = {\n borderColor?: ColorsDef;\n borderLineWidth?: LineWidthsDef;\n borderLineDash?: LineDashsDef;\n innerBorder?: boolean;\n};\nexport type TableFrameStyle = FrameStyle & {\n shadowBlur?: number; //阴影宽度\n shadowOffsetX?: number; //x方向偏移\n shadowOffsetY?: number; //Y方向偏移\n shadowColor?: string; //阴影颜色\n cornerRadius?: number; //边框圆角半径\n};\nexport type menuStyle = {\n color?: string;\n highlightColor?: string;\n fontSize?: number;\n fontFamily?: string;\n highlightFontSize?: number;\n highlightFontFamily?: string;\n hoverBgColor?: string;\n};\nexport type ScrollStyle = {\n /**滚动条滚动的颜色 */\n scrollRailColor?: string;\n /**滚动条滑块的颜色 */\n scrollSliderColor?: string;\n /**滚动条宽度大小 */\n width?: number;\n /**滚动条是否可见 'always' | 'scrolling' | 'none' | 'focus',常驻|滚动时|不显示|聚焦在画布上时 */\n visible?: 'always' | 'scrolling' | 'none' | 'focus';\n /*** 悬浮与容器上,还是独立于容器外 */\n hoverOn?: boolean;\n};\n/**\n * 气泡框,按钮的的解释信息\n */\nexport type TooltipStyle = {\n fontFamily?: string;\n fontSize?: number;\n color?: string;\n padding?: number[];\n bgColor?: string;\n /** !目前未实现该逻辑。触发行为:hover or click */\n // trigger?: string | string[];\n /**气泡框位置,可选 top left right bottom */\n // placement?: Placement;\n};\nexport interface ITableThemeDefine {\n /** 表格绘制范围外的canvas上填充的颜色 */\n underlayBackgroundColor?: string;\n // selectionBgColor?: ColorPropertyDefine; //多选单元格背景色 手动设置的多选 非框选\n defaultStyle?: ThemeStyle;\n cornerHeaderStyle?: ThemeStyle; //角头样式\n cornerRightTopCellStyle?: ThemeStyle; // 右上角占位单元格样式\n cornerLeftBottomCellStyle?: ThemeStyle; // 左下角占位单元格样式\n cornerRightBottomCellStyle?: ThemeStyle; // 右下角占位单元格样式\n rightFrozenStyle?: ThemeStyle; // 右侧冻结单元格样式\n bottomFrozenStyle?: ThemeStyle; // 下部冻结单元格样式\n headerStyle?: ThemeStyle;\n rowHeaderStyle?: ThemeStyle;\n bodyStyle?: ThemeStyle;\n frameStyle?: TableFrameStyle;\n //列调整宽度的直线\n columnResize?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n labelColor?: string; //label的颜色\n labelFontSize?: number; //label的字体大小\n labelFontFamily?: string; //label的字体\n labelBackgroundFill?: string; //label的背景填充\n labelBackgroundCornerRadius?: number; //label的背景圆角\n };\n //拖拽表格换位分割线的样式\n dragHeaderSplitLine?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n lineWidth: number; //上面线的宽度\n shadowBlockColor?: string; //拖拽时阴影区域的颜色\n };\n //冻结列后面的效果\n frozenColumnLine?: {\n shadow?: {\n //默认效果 会有阴影配置\n width: number; //阴影整体宽度\n startColor: string; //开始颜色\n endColor: string; //结束颜色\n };\n /** TODO 暂未生效 */\n border?: {\n //有些需求要两种效果 这里配置滚动前的边框效果(实现方式是两条线叠加产生),滚动后按上面的阴影效果\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n };\n };\n\n // menuStyle?: menuStyle;\n scrollStyle?: ScrollStyle;\n tooltipStyle?: TooltipStyle;\n // selectHeaderHighlight?: boolean;\n /** 选择框样式 */\n selectionStyle?: //Omit<InteractionStyle, 'inlineRowBgColor' | 'inlineColumnBgColor'>; //鼠标点击到某个单元格\n {\n cellBorderColor?: string; //边框颜色\n cellBorderLineWidth?: number; //边框线宽度\n cellBgColor?: string; //选择框背景颜色\n };\n\n // style for axis\n axisStyle?: {\n defaultAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n leftAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n rightAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n topAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n bottomAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n };\n\n // style for text pop tip\n textPopTipStyle?: PopTipAttributes;\n\n // senior config for fs\n // 四边单元格,靠近边框的border是否显示;配置false的话,左侧单元格不显示左边框,同理\n cellInnerBorder?: boolean;\n // cell border clip direction\n cellBorderClipDirection?: 'top-left' | 'bottom-right'; // default is 'top-left'\n // text offset, hack for fs\n _contentOffset?: number;\n}\n\nexport type RequiredTableThemeDefine = Required<ITableThemeDefine>;\n"]}
|
package/cjs/vrender.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,SAAgB,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,IAAA,+BAAgB,GAAE,CAAC;IAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;QAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;QACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;KACxB;IACD,IAAA,0BAAW,GAAE,CAAC;IACd,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,8BAAe,GAAE,CAAC;IAClB,IAAA,gCAAiB,GAAE,CAAC;IACpB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,+BAAgB,GAAE,CAAC;AACrB,CAAC;AA/BD,gDA+BC;AAED,yDAAuC;AACvC,yDAAuC","file":"vrender.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"0.20.
|
|
1
|
+
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,SAAgB,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,IAAA,+BAAgB,GAAE,CAAC;IAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;QAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;QACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;KACxB;IACD,IAAA,0BAAW,GAAE,CAAC;IACd,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,8BAAe,GAAE,CAAC;IAClB,IAAA,gCAAiB,GAAE,CAAC;IACpB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,+BAAgB,GAAE,CAAC;AACrB,CAAC;AA/BD,gDA+BC;AAED,yDAAuC;AACvC,yDAAuC","file":"vrender.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"0.20.2-alpha.3\";\n\nlet registed = false;\nexport function registerForVrender() {\n if (registed) {\n return;\n }\n registed = true;\n // 注册内置组件\n preLoadAllModule();\n\n if (isBrowserEnv()) {\n loadBrowserEnv(container);\n } else if (isNodeEnv()) {\n loadNodeEnv(container);\n }\n registerArc();\n registerArc3d();\n registerArea();\n registerCircle();\n registerGlyph();\n registerGroup();\n registerImage();\n registerLine();\n registerPath();\n registerPolygon();\n registerPyramid3d();\n registerRect();\n registerRect3d();\n registerRichtext();\n registerShadowRoot();\n registerSymbol();\n registerText();\n registerWrapText();\n}\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/vtable.js
CHANGED
|
@@ -23773,6 +23773,18 @@
|
|
|
23773
23773
|
const { obj, superTheme } = this.internalTheme;
|
|
23774
23774
|
return getProp$1(obj, superTheme, ['underlayBackgroundColor']);
|
|
23775
23775
|
}
|
|
23776
|
+
get cellInnerBorder() {
|
|
23777
|
+
const { obj, superTheme } = this.internalTheme;
|
|
23778
|
+
return !!getProp$1(obj, superTheme, ['cellInnerBorder']);
|
|
23779
|
+
}
|
|
23780
|
+
get cellBorderClipDirection() {
|
|
23781
|
+
const { obj, superTheme } = this.internalTheme;
|
|
23782
|
+
return getProp$1(obj, superTheme, ['cellBorderClipDirection']) ?? 'top-left';
|
|
23783
|
+
}
|
|
23784
|
+
get _contentOffset() {
|
|
23785
|
+
const { obj, superTheme } = this.internalTheme;
|
|
23786
|
+
return getProp$1(obj, superTheme, ['_contentOffset']) ?? 0;
|
|
23787
|
+
}
|
|
23776
23788
|
get defaultStyle() {
|
|
23777
23789
|
if (!this._defaultStyle) {
|
|
23778
23790
|
const { obj, superTheme } = this.internalTheme;
|
|
@@ -33920,6 +33932,50 @@
|
|
|
33920
33932
|
return undefined;
|
|
33921
33933
|
}
|
|
33922
33934
|
|
|
33935
|
+
function getCellBorderStrokeWidth(col, row, cellTheme, table) {
|
|
33936
|
+
let strokeArrayWidth = cellTheme?.group?.strokeArrayWidth ?? undefined;
|
|
33937
|
+
if (!table.theme.cellInnerBorder) {
|
|
33938
|
+
return strokeArrayWidth;
|
|
33939
|
+
}
|
|
33940
|
+
if (col === 0) {
|
|
33941
|
+
strokeArrayWidth = strokeArrayWidth ?? [
|
|
33942
|
+
cellTheme?.group?.lineWidth,
|
|
33943
|
+
cellTheme?.group?.lineWidth,
|
|
33944
|
+
cellTheme?.group?.lineWidth,
|
|
33945
|
+
cellTheme?.group?.lineWidth
|
|
33946
|
+
];
|
|
33947
|
+
strokeArrayWidth[3] = 0;
|
|
33948
|
+
}
|
|
33949
|
+
if (col === table.colCount - 1) {
|
|
33950
|
+
strokeArrayWidth = strokeArrayWidth ?? [
|
|
33951
|
+
cellTheme?.group?.lineWidth,
|
|
33952
|
+
cellTheme?.group?.lineWidth,
|
|
33953
|
+
cellTheme?.group?.lineWidth,
|
|
33954
|
+
cellTheme?.group?.lineWidth
|
|
33955
|
+
];
|
|
33956
|
+
strokeArrayWidth[1] = 0;
|
|
33957
|
+
}
|
|
33958
|
+
if (row === 0) {
|
|
33959
|
+
strokeArrayWidth = strokeArrayWidth ?? [
|
|
33960
|
+
cellTheme?.group?.lineWidth,
|
|
33961
|
+
cellTheme?.group?.lineWidth,
|
|
33962
|
+
cellTheme?.group?.lineWidth,
|
|
33963
|
+
cellTheme?.group?.lineWidth
|
|
33964
|
+
];
|
|
33965
|
+
strokeArrayWidth[0] = 0;
|
|
33966
|
+
}
|
|
33967
|
+
if (row === table.rowCount - 1) {
|
|
33968
|
+
strokeArrayWidth = strokeArrayWidth ?? [
|
|
33969
|
+
cellTheme?.group?.lineWidth,
|
|
33970
|
+
cellTheme?.group?.lineWidth,
|
|
33971
|
+
cellTheme?.group?.lineWidth,
|
|
33972
|
+
cellTheme?.group?.lineWidth
|
|
33973
|
+
];
|
|
33974
|
+
strokeArrayWidth[2] = 0;
|
|
33975
|
+
}
|
|
33976
|
+
return strokeArrayWidth;
|
|
33977
|
+
}
|
|
33978
|
+
|
|
33923
33979
|
function createImageCellGroup(columnGroup, xOrigin, yOrigin, col, row, width, height, keepAspectRatio, imageAutoSizing, padding, textAlign, textBaseline, table, cellTheme) {
|
|
33924
33980
|
const headerStyle = table._getCellStyle(col, row);
|
|
33925
33981
|
const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
|
|
@@ -33932,6 +33988,7 @@
|
|
|
33932
33988
|
if (cellTheme?.text?.textBaseline) {
|
|
33933
33989
|
textBaseline = cellTheme?.text?.textBaseline;
|
|
33934
33990
|
}
|
|
33991
|
+
const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
|
|
33935
33992
|
const cellGroup = new Group$1({
|
|
33936
33993
|
x: xOrigin,
|
|
33937
33994
|
y: yOrigin,
|
|
@@ -33940,7 +33997,7 @@
|
|
|
33940
33997
|
lineWidth: cellTheme?.group?.lineWidth ?? undefined,
|
|
33941
33998
|
fill: cellTheme?.group?.fill ?? undefined,
|
|
33942
33999
|
stroke: cellTheme?.group?.stroke ?? undefined,
|
|
33943
|
-
strokeArrayWidth:
|
|
34000
|
+
strokeArrayWidth: strokeArrayWidth ?? undefined,
|
|
33944
34001
|
strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
|
|
33945
34002
|
cursor: cellTheme?.group?.cursor ?? undefined,
|
|
33946
34003
|
lineDash: cellTheme?.group?.lineDash ?? undefined,
|
|
@@ -34585,6 +34642,7 @@
|
|
|
34585
34642
|
const yScale = new LinearScale();
|
|
34586
34643
|
function createSparkLineCellGroup(cellGroup, columnGroup, xOrigin, yOrigin, col, row, width, height, padding, table, cellTheme) {
|
|
34587
34644
|
if (!cellGroup) {
|
|
34645
|
+
const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
|
|
34588
34646
|
cellGroup = new Group$1({
|
|
34589
34647
|
x: xOrigin,
|
|
34590
34648
|
y: yOrigin,
|
|
@@ -34593,7 +34651,7 @@
|
|
|
34593
34651
|
lineWidth: cellTheme?.group?.lineWidth ?? undefined,
|
|
34594
34652
|
fill: cellTheme?.group?.fill ?? undefined,
|
|
34595
34653
|
stroke: cellTheme?.group?.stroke ?? undefined,
|
|
34596
|
-
strokeArrayWidth:
|
|
34654
|
+
strokeArrayWidth: strokeArrayWidth,
|
|
34597
34655
|
strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
|
|
34598
34656
|
cursor: cellTheme?.group?.cursor ?? undefined,
|
|
34599
34657
|
lineDash: cellTheme?.group?.lineDash ?? undefined,
|
|
@@ -34968,6 +35026,7 @@
|
|
|
34968
35026
|
padding = functionalPadding;
|
|
34969
35027
|
}
|
|
34970
35028
|
if (!cellGroup) {
|
|
35029
|
+
const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
|
|
34971
35030
|
cellGroup = new Group$1({
|
|
34972
35031
|
x: xOrigin,
|
|
34973
35032
|
y: yOrigin,
|
|
@@ -34976,7 +35035,7 @@
|
|
|
34976
35035
|
lineWidth: cellTheme?.group?.lineWidth ?? undefined,
|
|
34977
35036
|
fill: cellTheme?.group?.fill ?? undefined,
|
|
34978
35037
|
stroke: cellTheme?.group?.stroke ?? undefined,
|
|
34979
|
-
strokeArrayWidth:
|
|
35038
|
+
strokeArrayWidth: strokeArrayWidth,
|
|
34980
35039
|
strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
|
|
34981
35040
|
cursor: cellTheme?.group?.cursor ?? undefined,
|
|
34982
35041
|
lineDash: cellTheme?.group?.lineDash ?? undefined,
|
|
@@ -35228,6 +35287,15 @@
|
|
|
35228
35287
|
const hierarchyOffset = range
|
|
35229
35288
|
? getHierarchyOffset(range.start.col, range.start.row, table)
|
|
35230
35289
|
: getHierarchyOffset(cellGroup.col, cellGroup.row, table);
|
|
35290
|
+
let _contentOffset = 0;
|
|
35291
|
+
if (isNumber$2(table.theme._contentOffset)) {
|
|
35292
|
+
if (textAlign === 'left') {
|
|
35293
|
+
_contentOffset = table.theme._contentOffset;
|
|
35294
|
+
}
|
|
35295
|
+
else if (textAlign === 'right') {
|
|
35296
|
+
_contentOffset = -table.theme._contentOffset;
|
|
35297
|
+
}
|
|
35298
|
+
}
|
|
35231
35299
|
const attribute = {
|
|
35232
35300
|
text: text.length === 1 ? text[0] : text,
|
|
35233
35301
|
maxLineWidth: autoColWidth ? Infinity : cellWidth - (padding[1] + padding[3] + hierarchyOffset),
|
|
@@ -35237,7 +35305,7 @@
|
|
|
35237
35305
|
wordBreak: 'break-word',
|
|
35238
35306
|
heightLimit: autoRowHeight ? -1 : cellHeight - (padding[0] + padding[2]),
|
|
35239
35307
|
pickable: false,
|
|
35240
|
-
dx: hierarchyOffset,
|
|
35308
|
+
dx: hierarchyOffset + _contentOffset,
|
|
35241
35309
|
whiteSpace: text.length === 1 && !autoWrapText ? 'no-wrap' : 'normal'
|
|
35242
35310
|
};
|
|
35243
35311
|
const wrapText = new Text$1(cellTheme.text ? Object.assign({}, cellTheme.text, attribute) : attribute);
|
|
@@ -35313,6 +35381,15 @@
|
|
|
35313
35381
|
});
|
|
35314
35382
|
let textMark;
|
|
35315
35383
|
if (inlineFrontIcons.length === 0 && inlineEndIcons.length === 0) {
|
|
35384
|
+
let _contentOffset = 0;
|
|
35385
|
+
if (isNumber$2(table.theme._contentOffset)) {
|
|
35386
|
+
if (textAlign === 'left') {
|
|
35387
|
+
_contentOffset = table.theme._contentOffset;
|
|
35388
|
+
}
|
|
35389
|
+
else if (textAlign === 'right') {
|
|
35390
|
+
_contentOffset = -table.theme._contentOffset;
|
|
35391
|
+
}
|
|
35392
|
+
}
|
|
35316
35393
|
const text = convertInternal(textStr).replace(/\r?\n/g, '\n').replace(/\r/g, '\n').split('\n');
|
|
35317
35394
|
const attribute = {
|
|
35318
35395
|
text: text.length === 1 ? text[0] : text,
|
|
@@ -35323,7 +35400,8 @@
|
|
|
35323
35400
|
autoWrapText,
|
|
35324
35401
|
lineClamp,
|
|
35325
35402
|
wordBreak: 'break-word',
|
|
35326
|
-
whiteSpace: text.length === 1 && !autoWrapText ? 'no-wrap' : 'normal'
|
|
35403
|
+
whiteSpace: text.length === 1 && !autoWrapText ? 'no-wrap' : 'normal',
|
|
35404
|
+
dx: _contentOffset
|
|
35327
35405
|
};
|
|
35328
35406
|
const wrapText = new Text$1(cellTheme.text ? Object.assign({}, cellTheme.text, attribute) : attribute);
|
|
35329
35407
|
wrapText.name = 'text';
|
|
@@ -35699,6 +35777,7 @@
|
|
|
35699
35777
|
const autoColWidth = colWidth === 'auto';
|
|
35700
35778
|
const autoWrapText = headerStyle.autoWrapText ?? table.internalProps.autoWrapText;
|
|
35701
35779
|
const lineClamp = headerStyle.lineClamp;
|
|
35780
|
+
const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
|
|
35702
35781
|
const cellGroup = new Group$1({
|
|
35703
35782
|
x: xOrigin,
|
|
35704
35783
|
y: yOrigin,
|
|
@@ -35707,7 +35786,7 @@
|
|
|
35707
35786
|
lineWidth: cellTheme?.group?.lineWidth ?? undefined,
|
|
35708
35787
|
fill: cellTheme?.group?.fill ?? undefined,
|
|
35709
35788
|
stroke: cellTheme?.group?.stroke ?? undefined,
|
|
35710
|
-
strokeArrayWidth:
|
|
35789
|
+
strokeArrayWidth: strokeArrayWidth ?? undefined,
|
|
35711
35790
|
strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
|
|
35712
35791
|
cursor: cellTheme?.group?.cursor ?? undefined,
|
|
35713
35792
|
lineDash: cellTheme?.group?.lineDash ?? undefined,
|
|
@@ -35771,6 +35850,7 @@
|
|
|
35771
35850
|
if (cellTheme?.text?.textBaseline) {
|
|
35772
35851
|
textBaseline = cellTheme?.text?.textBaseline;
|
|
35773
35852
|
}
|
|
35853
|
+
const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
|
|
35774
35854
|
const cellGroup = new Group$1({
|
|
35775
35855
|
x: xOrigin,
|
|
35776
35856
|
y: yOrigin,
|
|
@@ -35779,7 +35859,7 @@
|
|
|
35779
35859
|
lineWidth: cellTheme?.group?.lineWidth ?? undefined,
|
|
35780
35860
|
fill: cellTheme?.group?.fill ?? undefined,
|
|
35781
35861
|
stroke: cellTheme?.group?.stroke ?? undefined,
|
|
35782
|
-
strokeArrayWidth:
|
|
35862
|
+
strokeArrayWidth: strokeArrayWidth,
|
|
35783
35863
|
strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
|
|
35784
35864
|
cursor: cellTheme?.group?.cursor ?? undefined,
|
|
35785
35865
|
lineDash: cellTheme?.group?.lineDash ?? undefined,
|
|
@@ -35864,6 +35944,7 @@
|
|
|
35864
35944
|
|
|
35865
35945
|
function createCheckboxCellGroup(cellGroup, columnGroup, xOrigin, yOrigin, col, row, colWidth, width, height, padding, textAlign, textBaseline, table, cellTheme, define) {
|
|
35866
35946
|
if (!cellGroup) {
|
|
35947
|
+
const strokeArrayWidth = getCellBorderStrokeWidth(col, row, cellTheme, table);
|
|
35867
35948
|
cellGroup = new Group$1({
|
|
35868
35949
|
x: xOrigin,
|
|
35869
35950
|
y: yOrigin,
|
|
@@ -35872,7 +35953,7 @@
|
|
|
35872
35953
|
lineWidth: cellTheme?.group?.lineWidth ?? undefined,
|
|
35873
35954
|
fill: cellTheme?.group?.fill ?? undefined,
|
|
35874
35955
|
stroke: cellTheme?.group?.stroke ?? undefined,
|
|
35875
|
-
strokeArrayWidth:
|
|
35956
|
+
strokeArrayWidth: strokeArrayWidth,
|
|
35876
35957
|
strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
|
|
35877
35958
|
cursor: cellTheme?.group?.cursor ?? undefined,
|
|
35878
35959
|
lineDash: cellTheme?.group?.lineDash ?? undefined,
|
|
@@ -40036,9 +40117,29 @@
|
|
|
40036
40117
|
if (Array.isArray(strokeArrayColor) || Array.isArray(strokeArrayWidth)) {
|
|
40037
40118
|
if ((typeof lineWidth === 'number' && lineWidth & 1) ||
|
|
40038
40119
|
(Array.isArray(strokeArrayWidth) && strokeArrayWidth.some(width => width & 1))) {
|
|
40039
|
-
|
|
40040
|
-
|
|
40041
|
-
|
|
40120
|
+
const table = group.stage.table;
|
|
40121
|
+
const bottomRight = table.theme.cellBorderClipDirection === 'bottom-right';
|
|
40122
|
+
let deltaWidth = 0;
|
|
40123
|
+
let deltaHeight = 0;
|
|
40124
|
+
if (bottomRight) {
|
|
40125
|
+
x = Math.floor(x) - 0.5;
|
|
40126
|
+
y = Math.floor(y) - 0.5;
|
|
40127
|
+
if (group.role === 'cell') {
|
|
40128
|
+
const col = group.col;
|
|
40129
|
+
const row = group.row;
|
|
40130
|
+
if (table && col === table.colCount - 1) {
|
|
40131
|
+
deltaWidth = 1;
|
|
40132
|
+
}
|
|
40133
|
+
if (table && row === table.rowCount - 1) {
|
|
40134
|
+
deltaHeight = 1;
|
|
40135
|
+
}
|
|
40136
|
+
}
|
|
40137
|
+
}
|
|
40138
|
+
else {
|
|
40139
|
+
x = Math.floor(x) + 0.5;
|
|
40140
|
+
y = Math.floor(y) + 0.5;
|
|
40141
|
+
}
|
|
40142
|
+
const { width: widthFroDraw, height: heightFroDraw } = getCellSizeForDraw(group, Math.ceil(width + deltaWidth), Math.ceil(height + deltaHeight));
|
|
40042
40143
|
widthForStroke = widthFroDraw;
|
|
40043
40144
|
heightForStroke = heightFroDraw;
|
|
40044
40145
|
}
|
|
@@ -40252,9 +40353,29 @@
|
|
|
40252
40353
|
let widthForStroke;
|
|
40253
40354
|
let heightForStroke;
|
|
40254
40355
|
if (lineWidth & 1) {
|
|
40255
|
-
|
|
40256
|
-
|
|
40257
|
-
|
|
40356
|
+
const table = group.stage.table;
|
|
40357
|
+
const bottomRight = table.theme.cellBorderClipDirection === 'bottom-right';
|
|
40358
|
+
let deltaWidth = 0;
|
|
40359
|
+
let deltaHeight = 0;
|
|
40360
|
+
if (bottomRight) {
|
|
40361
|
+
x = Math.floor(x) - 0.5;
|
|
40362
|
+
y = Math.floor(y) - 0.5;
|
|
40363
|
+
if (group.role === 'cell') {
|
|
40364
|
+
const col = group.col;
|
|
40365
|
+
const row = group.row;
|
|
40366
|
+
if (table && col === table.colCount - 1) {
|
|
40367
|
+
deltaWidth = 1;
|
|
40368
|
+
}
|
|
40369
|
+
if (table && row === table.rowCount - 1) {
|
|
40370
|
+
deltaHeight = 1;
|
|
40371
|
+
}
|
|
40372
|
+
}
|
|
40373
|
+
}
|
|
40374
|
+
else {
|
|
40375
|
+
x = Math.floor(x) + 0.5;
|
|
40376
|
+
y = Math.floor(y) + 0.5;
|
|
40377
|
+
}
|
|
40378
|
+
const { width: widthFroDraw, height: heightFroDraw } = getCellSizeForDraw(group, Math.ceil(width + deltaWidth), Math.ceil(height + deltaHeight));
|
|
40258
40379
|
widthForStroke = widthFroDraw;
|
|
40259
40380
|
heightForStroke = heightFroDraw;
|
|
40260
40381
|
}
|
|
@@ -40324,10 +40445,30 @@
|
|
|
40324
40445
|
lineWidth & 1) {
|
|
40325
40446
|
const { width: widthFroDraw, height: heightFroDraw } = getCellSizeForDraw(group, Math.ceil(width), Math.ceil(height));
|
|
40326
40447
|
context.beginPath();
|
|
40327
|
-
|
|
40328
|
-
|
|
40448
|
+
const table = group.stage.table;
|
|
40449
|
+
const bottomRight = table.theme.cellBorderClipDirection === 'bottom-right';
|
|
40450
|
+
let deltaWidth = 0;
|
|
40451
|
+
let deltaHeight = 0;
|
|
40452
|
+
if (bottomRight) {
|
|
40453
|
+
x = Math.floor(x) - 0.5;
|
|
40454
|
+
y = Math.floor(y) - 0.5;
|
|
40455
|
+
if (group.role === 'cell') {
|
|
40456
|
+
const col = group.col;
|
|
40457
|
+
const row = group.row;
|
|
40458
|
+
if (table && col === table.colCount - 1) {
|
|
40459
|
+
deltaWidth = 1;
|
|
40460
|
+
}
|
|
40461
|
+
if (table && row === table.rowCount - 1) {
|
|
40462
|
+
deltaHeight = 1;
|
|
40463
|
+
}
|
|
40464
|
+
}
|
|
40465
|
+
}
|
|
40466
|
+
else {
|
|
40467
|
+
x = Math.floor(x) + 0.5;
|
|
40468
|
+
y = Math.floor(y) + 0.5;
|
|
40469
|
+
}
|
|
40329
40470
|
if (cornerRadius) {
|
|
40330
|
-
createRectPath(context, x, y, widthFroDraw, heightFroDraw, cornerRadius);
|
|
40471
|
+
createRectPath(context, x, y, widthFroDraw + deltaWidth, heightFroDraw + deltaHeight, cornerRadius);
|
|
40331
40472
|
}
|
|
40332
40473
|
else {
|
|
40333
40474
|
context.rect(x, y, widthFroDraw, heightFroDraw);
|
|
@@ -40532,14 +40673,24 @@
|
|
|
40532
40673
|
return;
|
|
40533
40674
|
}
|
|
40534
40675
|
if (Array.isArray(stroke) || Array.isArray(strokeArrayColor) || Array.isArray(strokeArrayWidth)) {
|
|
40535
|
-
|
|
40536
|
-
|
|
40537
|
-
|
|
40538
|
-
|
|
40539
|
-
|
|
40540
|
-
|
|
40676
|
+
let deltaWidth = 0;
|
|
40677
|
+
let deltaHeight = 0;
|
|
40678
|
+
if ((typeof lineWidth === 'number' && lineWidth & 1) ||
|
|
40679
|
+
(Array.isArray(strokeArrayWidth) && strokeArrayWidth.some(width => width & 1))) {
|
|
40680
|
+
const table = rect.stage.table;
|
|
40681
|
+
const bottomRight = table.theme.cellBorderClipDirection === 'bottom-right';
|
|
40682
|
+
if (bottomRight) {
|
|
40683
|
+
x = Math.floor(x) - 0.5;
|
|
40684
|
+
y = Math.floor(y) - 0.5;
|
|
40685
|
+
deltaWidth = 0.5;
|
|
40686
|
+
deltaHeight = 0.5;
|
|
40687
|
+
}
|
|
40688
|
+
else {
|
|
40689
|
+
x = Math.floor(x) + 0.5;
|
|
40690
|
+
y = Math.floor(y) + 0.5;
|
|
40691
|
+
}
|
|
40541
40692
|
}
|
|
40542
|
-
renderStroke(rect, context, x, y, rectAttribute, stroke, strokeArrayWidth || lineWidth, strokeArrayColor || strokeColor, Math.ceil(width), Math.ceil(height));
|
|
40693
|
+
renderStroke(rect, context, x, y, rectAttribute, stroke, strokeArrayWidth || lineWidth, strokeArrayColor || strokeColor, Math.ceil(width + deltaWidth), Math.ceil(height + deltaHeight));
|
|
40543
40694
|
}
|
|
40544
40695
|
}
|
|
40545
40696
|
};
|
|
@@ -52458,7 +52609,7 @@
|
|
|
52458
52609
|
return TABLE_EVENT_TYPE;
|
|
52459
52610
|
}
|
|
52460
52611
|
options;
|
|
52461
|
-
version = "0.20.
|
|
52612
|
+
version = "0.20.2-alpha.3";
|
|
52462
52613
|
pagination;
|
|
52463
52614
|
id = `VTable${Date.now()}`;
|
|
52464
52615
|
headerStyleCache;
|
|
@@ -63959,7 +64110,7 @@
|
|
|
63959
64110
|
}
|
|
63960
64111
|
|
|
63961
64112
|
registerForVrender();
|
|
63962
|
-
const version = "0.20.
|
|
64113
|
+
const version = "0.20.2-alpha.3";
|
|
63963
64114
|
function getIcons() {
|
|
63964
64115
|
return get$2();
|
|
63965
64116
|
}
|