Skip to content

Commit

Permalink
build: prelease version 1.12.18
Browse files Browse the repository at this point in the history
  • Loading branch information
skie1997 committed Dec 17, 2024
1 parent eac906f commit 5cdf2a3
Show file tree
Hide file tree
Showing 22 changed files with 93 additions and 89 deletions.
24 changes: 12 additions & 12 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"definitionName":"lockStepVersion","policyName":"vchartMain","version":"1.12.16","mainProject":"@visactor/vchart","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vchartMain","version":"1.12.17","mainProject":"@visactor/vchart","nextBump":"patch"}]
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"dependencies": {
"@arco-design/web-react": "2.46.1",
"@visactor/openinula-vchart": "workspace:1.12.17",
"@visactor/react-vchart": "workspace:1.12.17",
"@visactor/vchart": "workspace:1.12.17",
"@visactor/vchart-extension": "workspace:1.12.17",
"@visactor/openinula-vchart": "workspace:1.12.18",
"@visactor/react-vchart": "workspace:1.12.18",
"@visactor/vchart": "workspace:1.12.18",
"@visactor/vchart-extension": "workspace:1.12.18",
"@visactor/vchart-theme": "~1.6.6",
"@visactor/vmind": "1.2.4-alpha.5",
"@visactor/vutils": "~0.19.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/block-vchart/block/vchart/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/harmony_vchart/library/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
name: '@visactor/harmony-vchart',
version: '1.12.17',
version: '1.12.18',
description: '@visactor/vchart 针对 harmonyOS 打造的图表库,拥有非常酷炫的动画能力,近20种图表类型,以及原生的渲染性能',
main: 'Index.ets',
author: {
Expand Down
100 changes: 52 additions & 48 deletions packages/harmony_vchart/library/src/main/ets/vchart_dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -33985,6 +33985,52 @@ const DEFAULT_AXIS_BREAK_SYMBOL_STYLE = {
zIndex: 1
};

function genNormalBounds(item) {
const bounds = item.AABBBounds;
return {
x1: bounds.x1,
x2: bounds.x2,
y1: bounds.y1,
y2: bounds.y2,
centerX: item.attribute.x,
centerY: item.attribute.y,
angle: item.attribute.angle
};
}
function genRotateBounds(items) {
items.forEach(item => {
if (item.rotatedBounds || !item.attribute.angle) return;
const bounds = genNormalBounds(item),
rotatedCenter = rotatePoint({
x: item.attribute.x,
y: item.attribute.y
}, bounds.angle, {
x: bounds.centerX,
y: bounds.centerY
}),
deltaX = rotatedCenter.x - bounds.centerX,
deltaY = rotatedCenter.y - bounds.centerY;
bounds.x1 += deltaX, bounds.x2 += deltaX, bounds.y1 += deltaY, bounds.y2 += deltaY, bounds.centerX += deltaX, bounds.centerY += deltaY, item.rotatedBounds = bounds;
});
}
function itemIntersect(item1, item2) {
var _a, _b;
return (null === (_a = item1.OBBBounds) || void 0 === _a ? void 0 : _a.empty()) || (null === (_b = item2.OBBBounds) || void 0 === _b ? void 0 : _b.empty()) ? isRectIntersect(item1.AABBBounds, item2.AABBBounds, !1) && (!item1.rotatedBounds || !item2.rotatedBounds || isRotateAABBIntersect(item1.rotatedBounds, item2.rotatedBounds, !0)) : item1.OBBBounds.intersects(item2.OBBBounds);
}
const DELTA_ANGLE = Math.sin(Math.PI / 10);
function isAngleVertical(angle) {
let delta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DELTA_ANGLE;
const hasAngle = !isNil$1(angle) && 0 !== angle,
cos = hasAngle ? Math.cos(angle) : 1;
return hasAngle && Math.abs(cos) <= delta;
}
function isAngleHorizontal(angle) {
let delta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DELTA_ANGLE;
const hasAngle = !isNil$1(angle) && 0 !== angle,
sin = hasAngle ? Math.sin(angle) : 0;
return !hasAngle || Math.abs(sin) <= delta;
}

function getCircleLabelPosition(tickPosition, tickVector) {
return {
x: tickPosition.x + tickVector[0],
Expand Down Expand Up @@ -34055,9 +34101,11 @@ function getPolygonPath(points, closed) {
}), closed && (path += "Z")), path;
}
function textIntersect(textA, textB, sep) {
let a = textA.OBBBounds,
b = textB.OBBBounds;
return a && b && !a.empty() && !b.empty() ? a.intersects(b) : (a = textA.AABBBounds, b = textB.AABBBounds, sep > Math.max(b.x1 - a.x2, a.x1 - b.x2, b.y1 - a.y2, a.y1 - b.y2));
var _a;
let a, b;
const angle = null === (_a = textA.attribute) || void 0 === _a ? void 0 : _a.angle,
isAABBIntersects = (textA, textB, sep) => (a = textA.AABBBounds, b = textB.AABBBounds, sep > Math.max(b.x1 - a.x2, a.x1 - b.x2, b.y1 - a.y2, a.y1 - b.y2));
return isAngleHorizontal(angle, Number.EPSILON) ? isAABBIntersects(textA, textB, sep) : (a = textA.OBBBounds, b = textB.OBBBounds, !a || !b || a.empty() || b.empty() ? isAABBIntersects(textA, textB, sep) : a.intersects(b));
}
function hasOverlap$1(items, pad) {
for (let b, i = 1, n = items.length, a = items[0]; i < n; a = b, ++i) if (b = items[i], textIntersect(a, b, pad)) return !0;
Expand Down Expand Up @@ -34441,50 +34489,6 @@ function autoHide(labels, config) {
});
}

function genNormalBounds(item) {
const bounds = item.AABBBounds;
return {
x1: bounds.x1,
x2: bounds.x2,
y1: bounds.y1,
y2: bounds.y2,
centerX: item.attribute.x,
centerY: item.attribute.y,
angle: item.attribute.angle
};
}
function genRotateBounds(items) {
items.forEach(item => {
if (item.rotatedBounds || !item.attribute.angle) return;
const bounds = genNormalBounds(item),
rotatedCenter = rotatePoint({
x: item.attribute.x,
y: item.attribute.y
}, bounds.angle, {
x: bounds.centerX,
y: bounds.centerY
}),
deltaX = rotatedCenter.x - bounds.centerX,
deltaY = rotatedCenter.y - bounds.centerY;
bounds.x1 += deltaX, bounds.x2 += deltaX, bounds.y1 += deltaY, bounds.y2 += deltaY, bounds.centerX += deltaX, bounds.centerY += deltaY, item.rotatedBounds = bounds;
});
}
function itemIntersect(item1, item2) {
var _a, _b;
return (null === (_a = item1.OBBBounds) || void 0 === _a ? void 0 : _a.empty()) || (null === (_b = item2.OBBBounds) || void 0 === _b ? void 0 : _b.empty()) ? isRectIntersect(item1.AABBBounds, item2.AABBBounds, !1) && (!item1.rotatedBounds || !item2.rotatedBounds || isRotateAABBIntersect(item1.rotatedBounds, item2.rotatedBounds, !0)) : item1.OBBBounds.intersects(item2.OBBBounds);
}
const DELTA_ANGLE = Math.sin(Math.PI / 10);
function isAngleVertical(angle) {
const hasAngle = !isNil$1(angle) && 0 !== angle,
cos = hasAngle ? Math.cos(angle) : 1;
return hasAngle && Math.abs(cos) <= DELTA_ANGLE;
}
function isAngleHorizontal(angle) {
const hasAngle = !isNil$1(angle) && 0 !== angle,
sin = hasAngle ? Math.sin(angle) : 0;
return !hasAngle || Math.abs(sin) <= DELTA_ANGLE;
}

function autoRotate(items, rotateConfig) {
if (isEmpty(items)) return;
const {
Expand Down Expand Up @@ -61925,7 +61929,7 @@ const registerVChartCore = () => {
};
registerVChartCore();

const version = "1.12.17";
const version = "1.12.18";

const addVChartProperty = (data, op) => {
const context = op.beforeCall();
Expand Down
2 changes: 1 addition & 1 deletion packages/lark-vchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/lark-vchart",
"version": "1.12.17",
"version": "1.12.18",
"description": "VChart 飞书小程序组件",
"main": "index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/lark-vchart/src/vchart/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/openinula-vchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/openinula-vchart",
"version": "1.12.17",
"version": "1.12.18",
"sideEffects": false,
"description": "The openinula version of VChart 4.x",
"keywords": [
Expand Down Expand Up @@ -28,7 +28,7 @@
"build": "bundle --clean"
},
"dependencies": {
"@visactor/vchart": "workspace:1.12.17",
"@visactor/vchart": "workspace:1.12.18",
"@visactor/vutils": "~0.19.2",
"@visactor/vrender-core": "0.20.21",
"@visactor/vrender-kits": "0.20.21",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-vchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vchart",
"version": "1.12.17",
"version": "1.12.18",
"sideEffects": false,
"description": "The react version of VChart 4.x",
"keywords": [
Expand Down Expand Up @@ -28,7 +28,7 @@
"build": "bundle --clean"
},
"dependencies": {
"@visactor/vchart": "workspace:1.12.17",
"@visactor/vchart": "workspace:1.12.18",
"@visactor/vutils": "~0.19.2",
"@visactor/vrender-core": "0.20.21",
"@visactor/vrender-kits": "0.20.21",
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-vchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/taro-vchart",
"version": "1.12.17",
"version": "1.12.18",
"description": "Taro VChart 图表组件",
"sideEffects": false,
"main": "esm/index.js",
Expand Down Expand Up @@ -43,7 +43,7 @@
},
"license": "MIT",
"dependencies": {
"@visactor/vchart": "workspace:1.12.17"
"@visactor/vchart": "workspace:1.12.18"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/tt-vchart/src/vchart/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/vchart-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vchart-extension",
"version": "1.12.17",
"version": "1.12.18",
"description": "vchart extension package, including extension plugins and components",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -27,7 +27,7 @@
"@visactor/vgrammar-core": "0.14.21",
"@visactor/vutils": "~0.19.2",
"@visactor/vdataset": "~0.19.2",
"@visactor/vchart": "workspace:1.12.17"
"@visactor/vchart": "workspace:1.12.18"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/vchart-schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vchart-schema",
"version": "1.12.17",
"version": "1.12.18",
"description": "The VChart JSON schema file.",
"sideEffects": false,
"main": "vchart.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/vchart-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vchart-types",
"version": "1.12.17",
"version": "1.12.18",
"description": "Provide the type declarations of VChart.",
"sideEffects": false,
"main": "types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/vchart/dist/index-wx-simple.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/vchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vchart",
"version": "1.12.17",
"version": "1.12.18",
"description": "charts lib based @visactor/VGrammar",
"main": "cjs/index.js",
"module": "esm/index.js",
Expand Down Expand Up @@ -131,7 +131,7 @@
"@visactor/vgrammar-sankey": "0.14.21",
"@visactor/vgrammar-venn": "0.14.21",
"@visactor/vgrammar-util": "0.14.21",
"@visactor/vutils-extension": "workspace:1.12.17"
"@visactor/vutils-extension": "workspace:1.12.18"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/vutils-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vutils-extension",
"version": "1.12.17",
"version": "1.12.18",
"description": "The extension module for VUtil from VisActor",
"sideEffects": false,
"main": "cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/wx-vchart/miniprogram/src/vchart/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/wx-vchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/wx-vchart",
"version": "1.12.17",
"version": "1.12.18",
"description": "",
"main": "index.js",
"miniprogram": ".",
Expand Down
4 changes: 2 additions & 2 deletions tools/bugserver-trigger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"ci": "ts-node --transpileOnly --skipProject ./scripts/trigger-test.ts"
},
"dependencies": {
"@visactor/vchart": "workspace:1.12.17",
"@visactor/vchart-extension": "workspace:1.12.17"
"@visactor/vchart": "workspace:1.12.18",
"@visactor/vchart-extension": "workspace:1.12.18"
},
"devDependencies": {
"@rushstack/eslint-patch": "~1.1.4",
Expand Down
2 changes: 1 addition & 1 deletion tools/story-player/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"dependencies": {
"@visactor/vrender-core": "0.20.21",
"@visactor/vrender-kits": "0.20.21",
"@visactor/vchart": "workspace:1.12.17",
"@visactor/vchart": "workspace:1.12.18",
"@visactor/vrender": "0.20.21",
"@visactor/vutils": "~0.19.2"
}
Expand Down

0 comments on commit 5cdf2a3

Please sign in to comment.