Skip to content

Commit

Permalink
Release (#1663)
Browse files Browse the repository at this point in the history
* Fix rough plugin (#1661)

* fix: rough plugin should allow empty fill

* chore: commit changeset

* fix: set dx/dy default value in a11y plugin

* chore: commit changeset

* chore(release): bump version (#1662)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 9, 2024
1 parent 20a98ca commit ee938ca
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 7 deletions.
6 changes: 6 additions & 0 deletions packages/g-plugin-a11y/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-a11y

## 1.0.2

### Patch Changes

- cd5197e3: Set dx/dy default value in a11y plugin.

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-a11y/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-a11y",
"version": "1.0.1",
"version": "1.0.2",
"description": "A G plugin for accessibility",
"keywords": [
"antv",
Expand Down
9 changes: 7 additions & 2 deletions packages/g-plugin-a11y/src/TextExtractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,13 @@ color: transparent !important;
case 'textBaseline':
case 'dx':
case 'dy':
const { transformOrigin, textAlign, textBaseline, dx, dy } =
text.parsedStyle as ParsedTextStyleProps;
const {
transformOrigin,
textAlign,
textBaseline,
dx = 0,
dy = 0,
} = text.parsedStyle as ParsedTextStyleProps;
$el.style['transform-origin'] = `${
(transformOrigin && transformOrigin[0].value) || 0
} ${(transformOrigin && transformOrigin[1].value) || 0}`;
Expand Down
6 changes: 6 additions & 0 deletions packages/g-plugin-rough-canvas-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-rough-canvas-renderer

## 2.0.2

### Patch Changes

- cd5197e3: Should keep fill empty when undefined.

## 2.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-rough-canvas-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-rough-canvas-renderer",
"version": "2.0.1",
"version": "2.0.2",
"description": "A G plugin of renderer implementation with rough.js",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-rough-canvas-renderer/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function generateRoughOptions(object: DisplayObject) {
bowing,
roughness,
seed: seed || object.entity,
fill: fill ? mergeOpacity(fill, fillOpacity) : 'none',
fill: fill ? mergeOpacity(fill, fillOpacity) : undefined,
stroke: stroke ? mergeOpacity(stroke, strokeOpacity) : 'none',
strokeWidth: lineWidth === 0 ? MIN_STROKE_WIDTH : lineWidth,
fillStyle,
Expand Down
6 changes: 6 additions & 0 deletions packages/g-plugin-rough-svg-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-rough-svg-renderer

## 2.0.3

### Patch Changes

- cd5197e3: Should keep fill empty when undefined.

## 2.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-rough-svg-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-rough-svg-renderer",
"version": "2.0.2",
"version": "2.0.3",
"description": "A G plugin of renderer implementation with rough.js",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-rough-svg-renderer/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function generateRoughOptions(object: DisplayObject) {
// If seed is not defined, or set to 0, no seed is used when computing random values.
// @see https://github.com/rough-stuff/rough/wiki#seed
seed: seed || object.entity,
fill: fill ? mergeOpacity(fill, fillOpacity) : 'none',
fill: fill ? mergeOpacity(fill, fillOpacity) : undefined,
stroke: stroke ? mergeOpacity(stroke, strokeOpacity) : 'none',
strokeWidth: lineWidth === 0 ? MIN_STROKE_WIDTH : lineWidth,
fillStyle,
Expand Down

0 comments on commit ee938ca

Please sign in to comment.