Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Auto release] release 0.18.11 #1137

Merged
merged 31 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c610e85
docs: generate changelog of release v0.18.8
neuqzxy Mar 29, 2024
67a3bb5
Merge pull request #1112 from VisActor/docs/generate-changelog-v0.18.8
neuqzxy Mar 29, 2024
ee52049
docs: generate changelog of release v0.18.10
neuqzxy Mar 29, 2024
cd5ffd4
docs: add jsx document
neuqzxy Mar 29, 2024
c2523ae
feat: 支持background-opacity配置
neuqzxy Apr 1, 2024
d2ad843
Merge pull request #1116 from VisActor/docs/jsx
neuqzxy Apr 1, 2024
4101940
fix: change click into pointup in checkbox
Rui-Sun Apr 2, 2024
8857c5c
fix: change callback name in checkbox
Rui-Sun Apr 2, 2024
7ed69fd
Merge pull request #1119 from VisActor/fix/checkbox-click
neuqzxy Apr 2, 2024
3a90e08
Merge pull request #1114 from VisActor/docs/generate-changelog-v0.18.10
neuqzxy Apr 2, 2024
b399f70
Merge pull request #1115 from VisActor/sync/main-0.18.10
neuqzxy Apr 2, 2024
7502a25
Merge pull request #1118 from VisActor/feat/background-opacity
neuqzxy Apr 2, 2024
48f8e6f
fix: fix issue with wh changed by flex layout, closed #1088
neuqzxy Apr 2, 2024
6dabf14
fix: fix memory issue with DefaultRenderService
neuqzxy Apr 7, 2024
8127f89
fix: fix memory issue with stage timelines
neuqzxy Apr 7, 2024
472f52d
chore: add change file
neuqzxy Apr 7, 2024
b099b99
feat: add radio component
Rui-Sun Apr 8, 2024
b113b41
fix: player events error
youngwinds Apr 10, 2024
be74c2b
docs: add change log
youngwinds Apr 10, 2024
1ece3c4
refactor: split dataIndex from common attrs
youngwinds Apr 10, 2024
f6eb58e
refactor: make dataIndex as slider value
youngwinds Apr 10, 2024
a86eecf
docs: change log
youngwinds Apr 10, 2024
a2b9560
Merge pull request #1127 from VisActor/fix/player-controler-event-error
youngwinds Apr 10, 2024
ca7ec52
fix: pointerenter and pointerleave do not bubble, fixed #1132
kkxxkk2019 Apr 16, 2024
b50bc1d
fix: fix for dragenter triggering error in drag event
kkxxkk2019 Apr 16, 2024
4c5fc48
chore: update rush change
kkxxkk2019 Apr 16, 2024
20ea8f9
Merge pull request #1133 from VisActor/fix/issue-1132
fangsmile Apr 16, 2024
e00e388
Merge pull request #1125 from VisActor/fix/memory
neuqzxy Apr 17, 2024
dc37c4d
Merge pull request #1120 from VisActor/fix/flex-layout-wh
neuqzxy Apr 17, 2024
340bc55
Merge pull request #1126 from VisActor/feat/radio
neuqzxy Apr 17, 2024
c6c443f
build: prelease version 0.18.11
github-actions[bot] Apr 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 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":"vrenderMain","version":"0.18.10","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.18.11","nextBump":"patch"}]
4 changes: 4 additions & 0 deletions docs/assets/api/en/common/graphic.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,7 @@
#${prefix} animate()()

添加动画

#${prefix} stateProxy()()

状态配置函数
4 changes: 4 additions & 0 deletions docs/assets/api/zh/common/graphic.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,7 @@
#${prefix} animate()()

添加动画

#${prefix} stateProxy()()

状态配置函数
33 changes: 33 additions & 0 deletions docs/assets/changelog/en/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# v0.18.10

2024-03-29


**🐛 Bug fix**

- **@visactor/vrender-components**: when user set `defaultSelected` value to be [], all legend's items should be unselected, fixed https://github.com/VisActor/VChart/issues/2445
- **@visactor/vrender-components**: fix alignment calculation for line axis axis text, fixed https://github.com/VisActor/VChart/issues/2449



[more detail about v0.18.10](https://github.com/VisActor/VRender/releases/tag/v0.18.10)

# v0.18.8

2024-03-29


**🆕 New feature**

- **@visactor/vrender-components**: support `inverse` in slider and size-lengend, color-legend

**🐛 Bug fix**

- **@visactor/vrender-kits**: fix issue with pointer tap event point map
- **@visactor/vrender-core**: fix issue with pointer tap event point map
- **@visactor/vrender-core**: fix issue for multi line text with underline, closed [#1100](https://github.com/VisActor/VRender/issues/1100)



[more detail about v0.18.8](https://github.com/VisActor/VRender/releases/tag/v0.18.8)

# v0.18.7

2024-03-25
Expand Down
33 changes: 33 additions & 0 deletions docs/assets/changelog/zh/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# v0.18.10

2024-03-29


**🐛 功能修复**

- **@visactor/vrender-components**: when user set `defaultSelected` value to be [], all legend's items should be unselected, fixed https://github.com/VisActor/VChart/issues/2445
- **@visactor/vrender-components**: fix alignment calculation for line axis axis text, fixed https://github.com/VisActor/VChart/issues/2449



[更多详情请查看 v0.18.10](https://github.com/VisActor/VRender/releases/tag/v0.18.10)

# v0.18.8

2024-03-29


**🆕 新增功能**

- **@visactor/vrender-components**: support `inverse` in slider and size-lengend, color-legend

**🐛 功能修复**

- **@visactor/vrender-kits**: fix issue with pointer tap event point map
- **@visactor/vrender-core**: fix issue with pointer tap event point map
- **@visactor/vrender-core**: fix issue for multi line text with underline, closed [#1100](https://github.com/VisActor/VRender/issues/1100)



[更多详情请查看 v0.18.8](https://github.com/VisActor/VRender/releases/tag/v0.18.8)

# v0.18.7

2024-03-25
Expand Down
104 changes: 104 additions & 0 deletions docs/assets/guide/en/asd/Basic_Tutorial/Jsx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# JSX Support

VRender supports creating scene tree using JSX syntax. If you want to use this mode, please follow the steps below to check your environment:

## Environment Configuration

If you are using JSX syntax to describe scene tree nodes in a react project, you need to wrap VRender's jsx with a conversion function to convert react's virtual nodes into VRender's scene tree nodes.

```ts
const group = decodeReactDom(
<VGroup attribute={{ x: 100, y: 100 }}>
<VRect attribute={{ x: 10, y: 10 }} />
</VGroup>
);
```

If your project is not a react project, you need to configure babel's jsx parsing to support jsx syntax:

```ts
plugins: [
react({
babel: {
parserOpts: {
plugins: ['decorators-legacy', 'classProperties']
},
plugins: [
[
'@babel/plugin-transform-react-jsx',
{
pragma: 'jsx',
pragmaFrag: 'Fragment'
}
]
]
}
})
],
```

Then import jsx in the code:

```ts
import { jsx, VGroup, VRect } from '@visactor/vrender';

const group = (
<VGroup attribute={{ x: 100, y: 100 }}>
<VRect attribute={{ x: 10, y: 10 }} />
</VGroup>
);
```

## API Support

The graphic elements using jsx syntax all start with V, and accept an attribute property. The parameters of this attribute property refer to the configuration document, supporting name, id, and stateProxy configurations, which will be set to the graphic element in the end. The event naming is different, and the event map is as follows:

```ts
{
onPointerDown: 'pointerdown',
onPointerUp: 'pointerup',
onPointerUpOutside: 'pointerupoutside',
onPointerTap: 'pointertap',
onPointerOver: 'pointerover',
onPointerMove: 'pointermove',
onPointerEnter: 'pointerenter',
onPointerLeave: 'pointerleave',
onPointerOut: 'pointerout',
onMouseDown: 'mousedown',
onMouseUp: 'mouseup',
onMouseUpOutside: 'mouseupoutside',
onMouseMove: 'mousemove',
onMouseOver: 'mouseover',
onMouseOut: 'mouseout',
onMouseEnter: 'mouseenter',
onMouseLeave: 'mouseleave',
onPinch: 'pinch',
onPinchStart: 'pinchstart',
onPinchEnd: 'pinchend',
onPan: 'pan',
onPanStart: 'panstart',
onPanEnd: 'panend',
onDrag: 'drag',
onDragStart: 'dragstart',
onDragEnter: 'dragenter',
onDragLeave: 'dragleave',
onDragOver: 'dragover',
onDragEnd: 'dragend',
onRightDown: 'rightdown',
onRightUp: 'rightup',
onRightUpOutside: 'rightupoutside',
onTouchStart: 'touchstart',
onTouchEnd: 'touchend',
onTouchEndOutside: 'touchendoutside',
onTouchMove: 'touchmove',
onTouchCancel: 'touchcancel',
onPress: 'press',
onPressUp: 'pressup',
onPressEnd: 'pressend',
onSwipe: 'swipe',
onDrop: 'drop',
onWeel: 'wheel',
onClick: 'click',
onDblClick: 'dblclick'
}
```
7 changes: 7 additions & 0 deletions docs/assets/guide/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@
"zh": "扩展和插件",
"en": "Extensions and Plugins"
}
},
{
"path": "Jsx",
"title": {
"zh": "Jsx配置",
"en": "jsx config"
}
}
]
}
Expand Down
105 changes: 105 additions & 0 deletions docs/assets/guide/zh/asd/Basic_Tutorial/Jsx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# JSX 支持

VRender 支持 JSX 形式的创建场景树,如果您需要使用这种模式,请按以下步骤检查环境:

## 环境配置

如果您是在 react 项目中使用 jsx 语法来描述场景树节点,那么您需要给 VRender 的 jsx 外层包裹一个转换函数,以便于将 react 的虚拟节点转换成 VRender 的场景树节点

```ts
const group = decodeReactDom(
<VGroup attribute={{ x: 100, y: 100 }}>
<VRect attribute={{ x: 10, y: 10 }} />
</VGroup>
);
```

如果您的项目不是 react 项目,那么需要配置 babel 的 jsx 解析以便于支持 jsx 语法:

```ts
plugins: [
react({
babel: {
parserOpts: {
plugins: ['decorators-legacy', 'classProperties']
},
plugins: [
[
'@babel/plugin-transform-react-jsx',
{
pragma: 'jsx',
pragmaFrag: 'Fragment'
}
]
]
}
})
],
```

然后在代码中 import jsx 即可

```ts
import { jsx, VGroup, VRect } from '@visactor/vrender';

const group = (
<VGroup attribute={{ x: 100, y: 100 }}>
<VRect attribute={{ x: 10, y: 10 }} />
</VGroup>
);
```

## API 支持

使用 jsx 语法的图元都以`V`开头,接受一个 attribute 属性,这个 attribute 属性的参数具体参考配置文档,支持 name、id、stateProxy 配置,最终都会被设置到图元上
事件命名有所不同,事件的 Map 如下所示:

```ts
{
onPointerDown: 'pointerdown',
onPointerUp: 'pointerup',
onPointerUpOutside: 'pointerupoutside',
onPointerTap: 'pointertap',
onPointerOver: 'pointerover',
onPointerMove: 'pointermove',
onPointerEnter: 'pointerenter',
onPointerLeave: 'pointerleave',
onPointerOut: 'pointerout',
onMouseDown: 'mousedown',
onMouseUp: 'mouseup',
onMouseUpOutside: 'mouseupoutside',
onMouseMove: 'mousemove',
onMouseOver: 'mouseover',
onMouseOut: 'mouseout',
onMouseEnter: 'mouseenter',
onMouseLeave: 'mouseleave',
onPinch: 'pinch',
onPinchStart: 'pinchstart',
onPinchEnd: 'pinchend',
onPan: 'pan',
onPanStart: 'panstart',
onPanEnd: 'panend',
onDrag: 'drag',
onDragStart: 'dragstart',
onDragEnter: 'dragenter',
onDragLeave: 'dragleave',
onDragOver: 'dragover',
onDragEnd: 'dragend',
onRightDown: 'rightdown',
onRightUp: 'rightup',
onRightUpOutside: 'rightupoutside',
onTouchStart: 'touchstart',
onTouchEnd: 'touchend',
onTouchEndOutside: 'touchendoutside',
onTouchMove: 'touchmove',
onTouchCancel: 'touchcancel',
onPress: 'press',
onPressUp: 'pressup',
onPressEnd: 'pressend',
onSwipe: 'swipe',
onDrop: 'drop',
onWeel: 'wheel',
onClick: 'click',
onDblClick: 'dblclick'
}
```
Loading
Loading