@visactor/vtable 1.18.0 → 1.18.1
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/vrender.js.map +1 -1
- package/dist/vtable.js +52 -45
- 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/vrender.js.map +1 -1
- package/package.json +5 -5
package/cjs/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export { getDataCellPath } from './tools/get-data-path';
|
|
|
22
22
|
export * from './render/jsx';
|
|
23
23
|
export { getTargetCell } from './event/util';
|
|
24
24
|
export { Icon } from './scenegraph/graphic/icon';
|
|
25
|
-
export declare const version = "1.18.
|
|
25
|
+
export declare const version = "1.18.1";
|
|
26
26
|
export { TYPES, core, ListTable, ListTableSimple, BaseTableAPI, ListTableConstructorOptions, PivotTable, PivotTableSimple, PivotTableConstructorOptions, PivotChartConstructorOptions, PivotChart, IHeaderTreeDefine, IDimension, IIndicator, ITitleDefine, ICornerDefine, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, themes, data, MousePointerCellEvent, getIcons, clearGlobal, register, DataStatistics, CustomLayout, updateCell, renderChart, graphicUtil, setCustomAlphabetCharSet, restoreMeasureText, plugins };
|
|
27
27
|
declare function getIcons(): {
|
|
28
28
|
[key: string]: TYPES.ColumnIconOption;
|
package/cjs/index.js
CHANGED
|
@@ -182,7 +182,7 @@ Object.defineProperty(exports, "Icon", {
|
|
|
182
182
|
get: function() {
|
|
183
183
|
return icon_1.Icon;
|
|
184
184
|
}
|
|
185
|
-
}), exports.version = "1.18.
|
|
185
|
+
}), exports.version = "1.18.1", exports.getIcons = getIcons, exports.clearGlobal = clearGlobal,
|
|
186
186
|
TYPES.AggregationType, __exportStar(require("./components"), exports), __exportStar(require("./scenegraph/group-creater/cell-type"), exports);
|
|
187
187
|
|
|
188
188
|
var TABLE_EVENT_TYPE_1 = require("./core/TABLE_EVENT_TYPE");
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAA4D;AA4G1D,4FA5GO,qBAAW,OA4GP;AA3Gb,IAAA,4BAAkB,GAAE,CAAC;AAErB,kDAAoC;AAgElC,sBAAK;AA/DP,6CAA+B;AAgE7B,oBAAI;AA/DN,6CAA+B;AA0F7B,oBAAI;AAzFN,+CAAiC;AACjC,qDAAuC;AA6FrC,4BAAQ;AA5FV,iDAAmC;AAsFjC,wBAAM;AArFR,yEAA2D;AA+FzD,wCAAc;AA9FhB,mDAAqC;AAqGnC,0BAAO;AA/ET,mDAA4D;AAqC1D,0FArCuB,4BAAS,OAqCvB;AApCX,yDAAqD;AAqCnD,gGArCO,kCAAe,OAqCP;AAnCjB,qDAA+D;AAsC7D,2FAtCwB,8BAAU,OAsCxB;AArCZ,2DAAuD;AAsCrD,iGAtCO,oCAAgB,OAsCP;AArClB,6CAA0C;AAwCxC,2FAxCO,uBAAU,OAwCP;AAtCZ,8DAAgD;AAkE9C,oCAAY;AAhEd,wEAAoE;AAiElE,2FAjEO,wBAAU,OAiEP;AAhEZ,gGAAqF;AAiEnF,4FAjEO,iCAAW,OAiEP;AAhEb,kEAA+F;AAmE7F,mGAnEO,iCAAkB,OAmEP;AADlB,yGAlE2B,uCAAwB,OAkE3B;AA5D1B,uDAAwD;AAA/C,gHAAA,eAAe,OAAA;AACxB,+CAA6B;AAC7B,qCAA6C;AAApC,qGAAA,aAAa,OAAA;AAEtB,kDAAiD;AAAxC,4FAAA,IAAI,OAAA;AAKA,QAAA,OAAO,GAAG,QAAQ,CAAC;AA0DhC,SAAS,QAAQ;IAGf,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AAvBC,4BAAQ;AAyBV,SAAS,WAAW;IAClB,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAGtB,CAAC;AA5BC,kCAAW;AA6Bb,KAAK,CAAC,eAAe,CAAC;AAEtB,+CAA6B;AAC7B,uEAAqD;AAErD,4DAA2D;AAAlD,oHAAA,gBAAgB,OAAA;AACzB,wFAA+G;AAAtG,gIAAA,sBAAsB,OAAA;AAAE,gIAAA,sBAAsB,OAAA;AAEvD,mDAAkD;AAAzC,0GAAA,WAAW,OAAA","file":"index.js","sourcesContent":["/* eslint-disable sort-imports */\nimport { graphicUtil, registerForVrender } from './vrender';\nregisterForVrender();\n\nimport * as TYPES from './ts-types';\nimport * as core from './core';\nimport * as data from './data';\nimport * as icons from './icons';\nimport * as register from './register';\nimport * as themes from './themes';\nimport * as DataStatistics from './dataset/DataStatistics';\nimport * as plugins from './plugins';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n ListTableConstructorOptions,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n TextAlignType,\n TextBaselineType\n} from './ts-types';\nimport { ListTableAll as ListTable } from './ListTable-all';\nimport { ListTableSimple } from './ListTable-simple';\n// import { PivotTable } from './PivotTable';\nimport { PivotTableAll as PivotTable } from './PivotTable-all';\nimport { PivotTableSimple } from './PivotTable-simple';\nimport { PivotChart } from './PivotChart';\nimport type { MousePointerCellEvent } from './ts-types/events';\nimport * as CustomLayout from './render/layout';\n\nimport { updateCell } from './scenegraph/group-creater/cell-helper';\nimport { renderChart } from './scenegraph/graphic/contributions/chart-render-helper';\nimport { restoreMeasureText, setCustomAlphabetCharSet } from './scenegraph/utils/text-measure';\nimport type { BaseTableAPI } from './ts-types/base-table';\n\n// import { container, loadCanvasPicker } from '@src/vrender';\n// loadCanvasPicker(container);\n\nexport { getDataCellPath } from './tools/get-data-path';\nexport * from './render/jsx';\nexport { getTargetCell } from './event/util';\n\nexport { Icon } from './scenegraph/graphic/icon';\n\n// export * as VRender from './vrender';\n// import * as VRender from './vrender';\n\nexport const version = \"1.18.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAA4D;AA4G1D,4FA5GO,qBAAW,OA4GP;AA3Gb,IAAA,4BAAkB,GAAE,CAAC;AAErB,kDAAoC;AAgElC,sBAAK;AA/DP,6CAA+B;AAgE7B,oBAAI;AA/DN,6CAA+B;AA0F7B,oBAAI;AAzFN,+CAAiC;AACjC,qDAAuC;AA6FrC,4BAAQ;AA5FV,iDAAmC;AAsFjC,wBAAM;AArFR,yEAA2D;AA+FzD,wCAAc;AA9FhB,mDAAqC;AAqGnC,0BAAO;AA/ET,mDAA4D;AAqC1D,0FArCuB,4BAAS,OAqCvB;AApCX,yDAAqD;AAqCnD,gGArCO,kCAAe,OAqCP;AAnCjB,qDAA+D;AAsC7D,2FAtCwB,8BAAU,OAsCxB;AArCZ,2DAAuD;AAsCrD,iGAtCO,oCAAgB,OAsCP;AArClB,6CAA0C;AAwCxC,2FAxCO,uBAAU,OAwCP;AAtCZ,8DAAgD;AAkE9C,oCAAY;AAhEd,wEAAoE;AAiElE,2FAjEO,wBAAU,OAiEP;AAhEZ,gGAAqF;AAiEnF,4FAjEO,iCAAW,OAiEP;AAhEb,kEAA+F;AAmE7F,mGAnEO,iCAAkB,OAmEP;AADlB,yGAlE2B,uCAAwB,OAkE3B;AA5D1B,uDAAwD;AAA/C,gHAAA,eAAe,OAAA;AACxB,+CAA6B;AAC7B,qCAA6C;AAApC,qGAAA,aAAa,OAAA;AAEtB,kDAAiD;AAAxC,4FAAA,IAAI,OAAA;AAKA,QAAA,OAAO,GAAG,QAAQ,CAAC;AA0DhC,SAAS,QAAQ;IAGf,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AAvBC,4BAAQ;AAyBV,SAAS,WAAW;IAClB,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAGtB,CAAC;AA5BC,kCAAW;AA6Bb,KAAK,CAAC,eAAe,CAAC;AAEtB,+CAA6B;AAC7B,uEAAqD;AAErD,4DAA2D;AAAlD,oHAAA,gBAAgB,OAAA;AACzB,wFAA+G;AAAtG,gIAAA,sBAAsB,OAAA;AAAE,gIAAA,sBAAsB,OAAA;AAEvD,mDAAkD;AAAzC,0GAAA,WAAW,OAAA","file":"index.js","sourcesContent":["/* eslint-disable sort-imports */\nimport { graphicUtil, registerForVrender } from './vrender';\nregisterForVrender();\n\nimport * as TYPES from './ts-types';\nimport * as core from './core';\nimport * as data from './data';\nimport * as icons from './icons';\nimport * as register from './register';\nimport * as themes from './themes';\nimport * as DataStatistics from './dataset/DataStatistics';\nimport * as plugins from './plugins';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n ListTableConstructorOptions,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n TextAlignType,\n TextBaselineType\n} from './ts-types';\nimport { ListTableAll as ListTable } from './ListTable-all';\nimport { ListTableSimple } from './ListTable-simple';\n// import { PivotTable } from './PivotTable';\nimport { PivotTableAll as PivotTable } from './PivotTable-all';\nimport { PivotTableSimple } from './PivotTable-simple';\nimport { PivotChart } from './PivotChart';\nimport type { MousePointerCellEvent } from './ts-types/events';\nimport * as CustomLayout from './render/layout';\n\nimport { updateCell } from './scenegraph/group-creater/cell-helper';\nimport { renderChart } from './scenegraph/graphic/contributions/chart-render-helper';\nimport { restoreMeasureText, setCustomAlphabetCharSet } from './scenegraph/utils/text-measure';\nimport type { BaseTableAPI } from './ts-types/base-table';\n\n// import { container, loadCanvasPicker } from '@src/vrender';\n// loadCanvasPicker(container);\n\nexport { getDataCellPath } from './tools/get-data-path';\nexport * from './render/jsx';\nexport { getTargetCell } from './event/util';\n\nexport { Icon } from './scenegraph/graphic/icon';\n\n// export * as VRender from './vrender';\n// import * as VRender from './vrender';\n\nexport const version = \"1.18.1\";\n/**\n * @namespace VTable\n */\nexport {\n /**\n * Types\n * @namespace VTable.TYPES\n */\n TYPES,\n core,\n ListTable,\n ListTableSimple,\n BaseTableAPI,\n ListTableConstructorOptions,\n PivotTable,\n PivotTableSimple,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n PivotChart,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n themes,\n data,\n MousePointerCellEvent,\n getIcons,\n clearGlobal,\n //plugin registers\n register,\n /**\n * 暂不推荐使用\n */\n DataStatistics,\n CustomLayout,\n updateCell,\n renderChart,\n graphicUtil,\n setCustomAlphabetCharSet,\n restoreMeasureText,\n plugins\n // VRender // should use import {xxx} from '@visactor/vtable/es/vrender'\n};\n\n/** @private */\nfunction getIcons(): {\n [key: string]: TYPES.ColumnIconOption;\n} {\n return icons.get();\n}\n/** 清理内部的全局变量 如注册的icon theme等 以及共享的header column类实例 */\nfunction clearGlobal() {\n register.clearAll();\n // headers.type.clearGlobal();\n // columns.type.clearGlobal();\n}\nTYPES.AggregationType;\n\nexport * from './components';\nexport * from './scenegraph/group-creater/cell-type';\n\nexport { TABLE_EVENT_TYPE } from './core/TABLE_EVENT_TYPE';\nexport { PIVOT_CHART_EVENT_TYPE, PIVOT_TABLE_EVENT_TYPE } from './ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE';\n\nexport { EventTarget } from './event/EventTarget';\n"]}
|
package/cjs/vrender.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAA0D;AAC1D,kCAAgC;AAChC,yDAAwH;AACxH,yDAqBgC;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;IAGd,IAAA,6BAAc,GAAE,CAAC;IAEjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IAIf,IAAA,2BAAY,GAAE,CAAC;IAEf,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,uCAAwB,GAAE,CAAC;IAE3B,IAAA,+BAAU,GAAE,CAAC;IAEb,IAAA,uCAAwB,GAAE,CAAC;AAC7B,CAAC;AAnCD,gDAmCC;AAGD,uDAAqD;AAA5C,2GAAA,WAAW,OAAA;AACpB,uDAAsD;AAA7C,4GAAA,YAAY,OAAA;AAErB,yDAAuC;AACvC,yDAAuC;AACvC,+DAA6C","file":"vrender.js","sourcesContent":["import { loadPoptip } from '@visactor/vrender-components';\nimport '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule, registerFlexLayoutPlugin } from '@visactor/vrender-core';\nimport {\n loadBrowserEnv,\n loadNodeEnv,\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 = \"1.18.
|
|
1
|
+
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAA0D;AAC1D,kCAAgC;AAChC,yDAAwH;AACxH,yDAqBgC;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;IAGd,IAAA,6BAAc,GAAE,CAAC;IAEjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IAIf,IAAA,2BAAY,GAAE,CAAC;IAEf,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,uCAAwB,GAAE,CAAC;IAE3B,IAAA,+BAAU,GAAE,CAAC;IAEb,IAAA,uCAAwB,GAAE,CAAC;AAC7B,CAAC;AAnCD,gDAmCC;AAGD,uDAAqD;AAA5C,2GAAA,WAAW,OAAA;AACpB,uDAAsD;AAA7C,4GAAA,YAAY,OAAA;AAErB,yDAAuC;AACvC,yDAAuC;AACvC,+DAA6C","file":"vrender.js","sourcesContent":["import { loadPoptip } from '@visactor/vrender-components';\nimport '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule, registerFlexLayoutPlugin } from '@visactor/vrender-core';\nimport {\n loadBrowserEnv,\n loadNodeEnv,\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 = \"1.18.1\";\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 registerFlexLayoutPlugin();\n // registerWrapText();\n loadPoptip();\n\n registerFlexLayoutPlugin();\n}\n\nexport type { Direction, Timeline } from '@visactor/vrender-core';\nexport { GroupFadeIn } from '@visactor/vrender-core';\nexport { GroupFadeOut } from '@visactor/vrender-core';\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-components';\n"]}
|
package/dist/vtable.js
CHANGED
|
@@ -3805,6 +3805,11 @@
|
|
|
3805
3805
|
return this.context.tryUpdateLength();
|
|
3806
3806
|
}
|
|
3807
3807
|
};
|
|
3808
|
+
class StepClosed extends Step$1 {
|
|
3809
|
+
lineEnd() {
|
|
3810
|
+
this.context.closePath();
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3808
3813
|
function genStepSegments(points, t) {
|
|
3809
3814
|
let params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3810
3815
|
const {
|
|
@@ -3818,6 +3823,16 @@
|
|
|
3818
3823
|
function genStepTypeSegments(path, points) {
|
|
3819
3824
|
return genCurveSegments(path, points);
|
|
3820
3825
|
}
|
|
3826
|
+
function genStepClosedSegments(points, t) {
|
|
3827
|
+
let params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3828
|
+
const {
|
|
3829
|
+
direction: direction,
|
|
3830
|
+
startPoint: startPoint
|
|
3831
|
+
} = params;
|
|
3832
|
+
if (points.length < 2 - Number(!!startPoint)) return null;
|
|
3833
|
+
const segContext = new SegContext("step", null != direction ? direction : abs(points[points.length - 1].x - points[0].x) > abs(points[points.length - 1].y - points[0].y) ? Direction$2.ROW : Direction$2.COLUMN);
|
|
3834
|
+
return genStepTypeSegments(new StepClosed(segContext, t, startPoint), points), segContext;
|
|
3835
|
+
}
|
|
3821
3836
|
|
|
3822
3837
|
class LinearClosed extends Linear {
|
|
3823
3838
|
lineEnd() {
|
|
@@ -4047,6 +4062,8 @@
|
|
|
4047
4062
|
return genMonotoneYSegments(points, params);
|
|
4048
4063
|
case "step":
|
|
4049
4064
|
return genStepSegments(points, .5, params);
|
|
4065
|
+
case "stepClosed":
|
|
4066
|
+
return genStepClosedSegments(points, .5, params);
|
|
4050
4067
|
case "stepBefore":
|
|
4051
4068
|
return genStepSegments(points, 0, params);
|
|
4052
4069
|
case "stepAfter":
|
|
@@ -4921,7 +4938,7 @@
|
|
|
4921
4938
|
function createColor(context, c, params) {
|
|
4922
4939
|
let offsetX = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
4923
4940
|
let offsetY = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
4924
|
-
var _a, _b;
|
|
4941
|
+
var _a, _b, _c, _d;
|
|
4925
4942
|
if (!c || !0 === c) return "black";
|
|
4926
4943
|
let result, color;
|
|
4927
4944
|
if (isArray$9(c)) for (let i = 0; i < c.length && (color = c[i], !color); i++);else color = c;
|
|
@@ -4938,7 +4955,7 @@
|
|
|
4938
4955
|
scaleY = 1,
|
|
4939
4956
|
angle = 0
|
|
4940
4957
|
} = params.attribute;
|
|
4941
|
-
w /= scaleX, h /= scaleY, x /= scaleX, y /= scaleY, (angle || 1 !== scaleX || 1 !== scaleY) && (x = 0, y = 0, w = null !== (
|
|
4958
|
+
w /= scaleX, h /= scaleY, x /= scaleX, y /= scaleY, (angle || 1 !== scaleX || 1 !== scaleY) && (x = null !== (_a = params.x1WithoutTransform) && void 0 !== _a ? _a : 0, y = null !== (_b = params.y1WithoutTransform) && void 0 !== _b ? _b : 0, w = null !== (_c = params.widthWithoutTransform) && void 0 !== _c ? _c : w, h = null !== (_d = params.heightWithoutTransform) && void 0 !== _d ? _d : h);
|
|
4942
4959
|
}
|
|
4943
4960
|
"linear" === color.gradient ? result = createLinearGradient(context, color, x, y, w, h) : "conical" === color.gradient ? result = createConicGradient(context, color, x, y, w, h) : "radial" === color.gradient && (result = createRadialGradient(context, color, x, y, w, h));
|
|
4944
4961
|
}
|
|
@@ -4963,7 +4980,7 @@
|
|
|
4963
4980
|
const canvasGradient = context.createConicGradient(x + (null !== (_a = color.x) && void 0 !== _a ? _a : 0) * w, y + (null !== (_b = color.y) && void 0 !== _b ? _b : 0) * h, color.startAngle, color.endAngle);
|
|
4964
4981
|
return color.stops.forEach(stop => {
|
|
4965
4982
|
canvasGradient.addColorStop(stop.offset, stop.color);
|
|
4966
|
-
}), canvasGradient.GetPattern(w + x, h + y, undefined);
|
|
4983
|
+
}), canvasGradient.GetPattern ? canvasGradient.GetPattern(w + x, h + y, undefined) : canvasGradient;
|
|
4967
4984
|
}
|
|
4968
4985
|
|
|
4969
4986
|
const DIRECTION_KEY = {
|
|
@@ -8525,7 +8542,7 @@
|
|
|
8525
8542
|
}
|
|
8526
8543
|
var rect = new RectSymbol();
|
|
8527
8544
|
|
|
8528
|
-
const tempBounds
|
|
8545
|
+
const tempBounds = new AABBBounds$1();
|
|
8529
8546
|
class CustomSymbolClass {
|
|
8530
8547
|
constructor(type, path) {
|
|
8531
8548
|
let isSvg = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
|
|
@@ -8554,7 +8571,7 @@
|
|
|
8554
8571
|
let {
|
|
8555
8572
|
path: path
|
|
8556
8573
|
} = _ref;
|
|
8557
|
-
tempBounds
|
|
8574
|
+
tempBounds.x1 = path.bounds.x1 * size, tempBounds.y1 = path.bounds.y1 * size, tempBounds.x2 = path.bounds.x2 * size, tempBounds.y2 = path.bounds.y2 * size, bounds.union(tempBounds);
|
|
8558
8575
|
});
|
|
8559
8576
|
}
|
|
8560
8577
|
this.path.bounds && (bounds.x1 = this.path.bounds.x1 * size, bounds.y1 = this.path.bounds.y1 * size, bounds.x2 = this.path.bounds.x2 * size, bounds.y2 = this.path.bounds.y2 * size);
|
|
@@ -8868,8 +8885,8 @@
|
|
|
8868
8885
|
const SVG_PARSE_ATTRIBUTE_MAP_KEYS = Object.keys(SVG_PARSE_ATTRIBUTE_MAP);
|
|
8869
8886
|
|
|
8870
8887
|
const _tempBounds$1 = new AABBBounds$1(),
|
|
8871
|
-
tempMatrix = new Matrix()
|
|
8872
|
-
|
|
8888
|
+
tempMatrix = new Matrix();
|
|
8889
|
+
new AABBBounds$1();
|
|
8873
8890
|
const GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "scaleX", "scaleY", "angle", "anchor", "visible"];
|
|
8874
8891
|
const tempConstantXYKey = ["x", "y"],
|
|
8875
8892
|
tempConstantScaleXYKey = ["scaleX", "scaleY"],
|
|
@@ -9388,25 +9405,12 @@
|
|
|
9388
9405
|
needUpdateLayout() {
|
|
9389
9406
|
return !!(this._updateTag & UpdateTag.UPDATE_LAYOUT);
|
|
9390
9407
|
}
|
|
9391
|
-
getAnchor(anchor, params) {
|
|
9408
|
+
getAnchor(anchor, params, resetScale) {
|
|
9392
9409
|
const _anchor = [0, 0],
|
|
9393
9410
|
getBounds = () => {
|
|
9394
9411
|
if (params.b) return params.b;
|
|
9395
|
-
const
|
|
9396
|
-
|
|
9397
|
-
scaleY: scaleY,
|
|
9398
|
-
angle: angle,
|
|
9399
|
-
scaleCenter: scaleCenter
|
|
9400
|
-
} = this.attribute;
|
|
9401
|
-
return tempBounds.copy(this._AABBBounds), this.setAttributes({
|
|
9402
|
-
angle: 0,
|
|
9403
|
-
scaleCenter: null
|
|
9404
|
-
}), params.b = this.AABBBounds.clone(), this._AABBBounds.copy(tempBounds), this.setAttributes({
|
|
9405
|
-
scaleX: scaleX,
|
|
9406
|
-
scaleY: scaleY,
|
|
9407
|
-
angle: angle,
|
|
9408
|
-
scaleCenter: scaleCenter
|
|
9409
|
-
}), params.b;
|
|
9412
|
+
const graphic = this.clone();
|
|
9413
|
+
return graphic.attribute.angle = 0, graphic.attribute.scaleCenter = null, resetScale && (graphic.attribute.scaleX = 1, graphic.attribute.scaleY = 1), params.b = graphic.AABBBounds, params.b;
|
|
9410
9414
|
};
|
|
9411
9415
|
if ("string" == typeof anchor[0]) {
|
|
9412
9416
|
const ratio = parseFloat(anchor[0]) / 100,
|
|
@@ -9435,7 +9439,7 @@
|
|
|
9435
9439
|
const params = {};
|
|
9436
9440
|
if (anchor && angle && (_anchor = this.getAnchor(anchor, params)), !scaleCenter || 1 === scaleX && 1 === scaleY) normalTransform(this._transMatrix, this._transMatrix.reset(), x, y, scaleX, scaleY, angle, anchor && _anchor);else {
|
|
9437
9441
|
const m = this._transMatrix;
|
|
9438
|
-
m.reset(), m.translate(_anchor[0], _anchor[1]), m.rotate(angle), m.translate(-_anchor[0], -_anchor[1]), m.translate(x, y), _anchor = this.getAnchor(scaleCenter, params), application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, {
|
|
9442
|
+
m.reset(), m.translate(_anchor[0], _anchor[1]), m.rotate(angle), m.translate(-_anchor[0], -_anchor[1]), m.translate(x, y), _anchor = this.getAnchor(scaleCenter, params, !0), application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, {
|
|
9439
9443
|
x: _anchor[0],
|
|
9440
9444
|
y: _anchor[1]
|
|
9441
9445
|
});
|
|
@@ -11508,7 +11512,7 @@
|
|
|
11508
11512
|
tb1: tb1,
|
|
11509
11513
|
tb2: tb2
|
|
11510
11514
|
} = application.graphicService.updateTempAABBBounds(aabbBounds);
|
|
11511
|
-
updateBoundsOfSymbolOuterBorder(attribute, symbolTheme, tb1), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2), this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1;
|
|
11515
|
+
updateBoundsOfSymbolOuterBorder(attribute, symbolTheme, tb1), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2), this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1, this.x1WithoutTransform = aabbBounds.x1, this.y1WithoutTransform = aabbBounds.y1;
|
|
11512
11516
|
const {
|
|
11513
11517
|
lineJoin = symbolTheme.lineJoin
|
|
11514
11518
|
} = attribute;
|
|
@@ -18882,6 +18886,7 @@
|
|
|
18882
18886
|
return this.nativeContext.createRadialGradient(x0, y0, r0, x1, y1, r1);
|
|
18883
18887
|
}
|
|
18884
18888
|
createConicGradient(x, y, startAngle, endAngle) {
|
|
18889
|
+
if (this.nativeContext.createConicGradient && Math.abs(endAngle - startAngle - 2 * Math.PI) < .001) return this.nativeContext.createConicGradient(startAngle, x, y);
|
|
18885
18890
|
let pattern,
|
|
18886
18891
|
edit = !1;
|
|
18887
18892
|
const ctx = this;
|
|
@@ -21393,7 +21398,9 @@
|
|
|
21393
21398
|
loadScrollbarComponent();
|
|
21394
21399
|
class ScrollBar extends AbstractComponent {
|
|
21395
21400
|
constructor(attributes, options) {
|
|
21396
|
-
super((null == options ? void 0 : options.skipDefault) ? attributes : merge$2({}, ScrollBar.defaultAttributes, attributes)), this.name = "scrollbar", this.
|
|
21401
|
+
super((null == options ? void 0 : options.skipDefault) ? attributes : merge$2({}, ScrollBar.defaultAttributes, attributes)), this.name = "scrollbar", this._handleTouchMove = e => {
|
|
21402
|
+
isValid$5(this._prePos) && e.preventDefault();
|
|
21403
|
+
}, this._onRailPointerDown = e => {
|
|
21397
21404
|
const {
|
|
21398
21405
|
viewX: viewX,
|
|
21399
21406
|
viewY: viewY
|
|
@@ -21437,8 +21444,7 @@
|
|
|
21437
21444
|
const triggers = getEndTriggersOfDrag(),
|
|
21438
21445
|
obj = "browser" === vglobal.env ? vglobal : this.stage;
|
|
21439
21446
|
obj.addEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
|
|
21440
|
-
capture: !0
|
|
21441
|
-
passive: !0
|
|
21447
|
+
capture: !0
|
|
21442
21448
|
}), triggers.forEach(trigger => {
|
|
21443
21449
|
obj.addEventListener(trigger, this._onSliderPointerUp);
|
|
21444
21450
|
});
|
|
@@ -21459,7 +21465,6 @@
|
|
|
21459
21465
|
} = this.getSliderRenderBounds();
|
|
21460
21466
|
return "vertical" === direction ? (currentPos = y, delta = currentPos - this._prePos, currentScrollValue = delta / height) : (currentPos = x, delta = currentPos - this._prePos, currentScrollValue = delta / width), [currentPos, currentScrollValue];
|
|
21461
21467
|
}, this._onSliderPointerMove = e => {
|
|
21462
|
-
e.preventDefault();
|
|
21463
21468
|
const {
|
|
21464
21469
|
stopSliderMovePropagation = !0
|
|
21465
21470
|
} = this.attribute;
|
|
@@ -21475,7 +21480,7 @@
|
|
|
21475
21480
|
preScrollRange = this.getScrollRange(),
|
|
21476
21481
|
[currentPos, currentScrollValue] = this._computeScrollValue(e),
|
|
21477
21482
|
range = [preScrollRange[0] + currentScrollValue, preScrollRange[1] + currentScrollValue];
|
|
21478
|
-
this._dispatchEvent(SCROLLBAR_END_EVENT, {
|
|
21483
|
+
this._prePos = null, this._dispatchEvent(SCROLLBAR_END_EVENT, {
|
|
21479
21484
|
pre: preRange,
|
|
21480
21485
|
value: clampRange$1(range, limitRange[0], limitRange[1])
|
|
21481
21486
|
}), this._clearDragEvents();
|
|
@@ -21517,7 +21522,9 @@
|
|
|
21517
21522
|
delayType = "throttle",
|
|
21518
21523
|
delayTime = 0
|
|
21519
21524
|
} = this.attribute;
|
|
21520
|
-
this._rail && this._rail.addEventListener("pointerdown", delayMap[delayType](this._onRailPointerDown, delayTime)), this._slider && this._slider.addEventListener("pointerdown", this._onSliderPointerDown)
|
|
21525
|
+
this._rail && this._rail.addEventListener("pointerdown", delayMap[delayType](this._onRailPointerDown, delayTime)), this._slider && this._slider.addEventListener("pointerdown", this._onSliderPointerDown), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
|
|
21526
|
+
passive: !1
|
|
21527
|
+
});
|
|
21521
21528
|
}
|
|
21522
21529
|
render() {
|
|
21523
21530
|
this._reset();
|
|
@@ -21631,8 +21638,7 @@
|
|
|
21631
21638
|
const triggers = getEndTriggersOfDrag(),
|
|
21632
21639
|
obj = "browser" === vglobal.env ? vglobal : this.stage;
|
|
21633
21640
|
obj.removeEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
|
|
21634
|
-
capture: !0
|
|
21635
|
-
passive: !1
|
|
21641
|
+
capture: !0
|
|
21636
21642
|
}), triggers.forEach(trigger => {
|
|
21637
21643
|
obj.removeEventListener(trigger, this._onSliderPointerUp);
|
|
21638
21644
|
});
|
|
@@ -21640,6 +21646,11 @@
|
|
|
21640
21646
|
_reset() {
|
|
21641
21647
|
this._sliderRenderBounds = null, this._sliderLimitRange = null;
|
|
21642
21648
|
}
|
|
21649
|
+
release(all) {
|
|
21650
|
+
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
|
|
21651
|
+
passive: !1
|
|
21652
|
+
}), this._clearDragEvents();
|
|
21653
|
+
}
|
|
21643
21654
|
}
|
|
21644
21655
|
ScrollBar.defaultAttributes = {
|
|
21645
21656
|
direction: "horizontal",
|
|
@@ -25965,14 +25976,13 @@
|
|
|
25965
25976
|
const triggers = getEndTriggersOfDrag(),
|
|
25966
25977
|
obj = "browser" === vglobal.env ? vglobal : this.stage;
|
|
25967
25978
|
obj.addEventListener("pointermove", this._onHandlerPointerMove, {
|
|
25968
|
-
capture: !0
|
|
25969
|
-
passive: !1
|
|
25979
|
+
capture: !0
|
|
25970
25980
|
}), triggers.forEach(trigger => {
|
|
25971
25981
|
obj.addEventListener(trigger, this._onHandlerPointerUp);
|
|
25972
25982
|
});
|
|
25973
25983
|
}, this._onHandlerPointerMove = e => {
|
|
25974
25984
|
var _a, _b;
|
|
25975
|
-
|
|
25985
|
+
this._isChanging = !0;
|
|
25976
25986
|
const {
|
|
25977
25987
|
railWidth: railWidth,
|
|
25978
25988
|
railHeight: railHeight,
|
|
@@ -26006,13 +26016,12 @@
|
|
|
26006
26016
|
const triggers = getEndTriggersOfDrag(),
|
|
26007
26017
|
obj = "browser" === vglobal.env ? vglobal : this.stage;
|
|
26008
26018
|
obj.addEventListener("pointermove", this._onTrackPointerMove, {
|
|
26009
|
-
capture: !0
|
|
26010
|
-
passive: !1
|
|
26019
|
+
capture: !0
|
|
26011
26020
|
}), triggers.forEach(trigger => {
|
|
26012
26021
|
obj.addEventListener(trigger, this._onTrackPointerUp);
|
|
26013
26022
|
});
|
|
26014
26023
|
}, this._onTrackPointerMove = e => {
|
|
26015
|
-
|
|
26024
|
+
this._isChanging = !0;
|
|
26016
26025
|
const {
|
|
26017
26026
|
railWidth: railWidth,
|
|
26018
26027
|
railHeight: railHeight,
|
|
@@ -26387,13 +26396,11 @@
|
|
|
26387
26396
|
const triggers = getEndTriggersOfDrag(),
|
|
26388
26397
|
obj = "browser" === vglobal.env ? vglobal : this.stage;
|
|
26389
26398
|
obj.removeEventListener("pointermove", this._onHandlerPointerMove, {
|
|
26390
|
-
capture: !0
|
|
26391
|
-
passive: !1
|
|
26399
|
+
capture: !0
|
|
26392
26400
|
}), triggers.forEach(trigger => {
|
|
26393
26401
|
obj.removeEventListener(trigger, this._onHandlerPointerUp);
|
|
26394
26402
|
}), obj.removeEventListener("pointermove", this._onTrackPointerMove, {
|
|
26395
|
-
capture: !0
|
|
26396
|
-
passive: !1
|
|
26403
|
+
capture: !0
|
|
26397
26404
|
}), triggers.forEach(trigger => {
|
|
26398
26405
|
obj.removeEventListener(trigger, this._onTrackPointerUp);
|
|
26399
26406
|
});
|
|
@@ -62300,7 +62307,7 @@
|
|
|
62300
62307
|
return TABLE_EVENT_TYPE;
|
|
62301
62308
|
}
|
|
62302
62309
|
options;
|
|
62303
|
-
version = "1.18.
|
|
62310
|
+
version = "1.18.1";
|
|
62304
62311
|
pagination;
|
|
62305
62312
|
id = `VTable${Date.now()}`;
|
|
62306
62313
|
headerStyleCache;
|
|
@@ -85160,7 +85167,7 @@
|
|
|
85160
85167
|
}
|
|
85161
85168
|
|
|
85162
85169
|
registerForVrender();
|
|
85163
|
-
const version = "1.18.
|
|
85170
|
+
const version = "1.18.1";
|
|
85164
85171
|
function getIcons() {
|
|
85165
85172
|
return get$2();
|
|
85166
85173
|
}
|