Skip to content

Commit

Permalink
Merge branch 'master' into tool-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Fei Z authored Aug 13, 2020
2 parents a4060bb + 2dd96c5 commit 2b07934
Show file tree
Hide file tree
Showing 17 changed files with 83 additions and 15 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.35.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.11...v0.35.0) (2020-08-13)


### Features

* **svelte:** add Meter chart wrapper ([#744](https://github.com/carbon-design-system/carbon-charts/issues/744)) ([8ed23b1](https://github.com/carbon-design-system/carbon-charts/commit/8ed23b176d168714ed4c0b481fda71eb8bed4106))





## [0.34.11](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.10...v0.34.11) (2020-08-12)

**Note:** Version bump only for package @carbon/charts-monorepo
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

## Packages
- [Vanilla](./packages/core)
- [Angular](./packages/angular)
- [React](./packages/react)
- [Angular](./packages/angular)
- [Vue](./packages/vue)
- [Svelte](./packages/svelte)

<a href="https://www.netlify.com" target="_blank">
<img src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg"/>
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
]
}
},
"version": "0.34.11"
"version": "0.35.0"
}
8 changes: 8 additions & 0 deletions packages/angular/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.35.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.11...v0.35.0) (2020-08-13)

**Note:** Version bump only for package @carbon/charts-angular





## [0.34.11](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.10...v0.34.11) (2020-08-12)

**Note:** Version bump only for package @carbon/charts-angular
Expand Down
4 changes: 2 additions & 2 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carbon/charts-angular",
"version": "0.34.11",
"version": "0.35.0",
"description": "Carbon charting components for Angular",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -40,7 +40,7 @@
"scss"
],
"dependencies": {
"@carbon/charts": "^0.34.11"
"@carbon/charts": "^0.35.0"
},
"peerDependencies": {
"@angular/common": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.35.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.11...v0.35.0) (2020-08-13)

**Note:** Version bump only for package @carbon/charts





## [0.34.11](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.10...v0.34.11) (2020-08-12)

**Note:** Version bump only for package @carbon/charts
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carbon/charts",
"version": "0.34.11",
"version": "0.35.0",
"description": "Carbon charting components",
"main": "./bundle.js",
"module": "./index.js",
Expand Down
6 changes: 4 additions & 2 deletions packages/core/src/components/axes/grid-brush.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@ export class ChartBrush extends Component {
xScale.invert(selection[0]),
xScale.invert(selection[1])
];

if (
selection != null &&
event.sourceEvent != null &&
(event.sourceEvent.type === "mousemove" ||
event.sourceEvent.type === "mouseup" ||
event.sourceEvent.type === "mousedown")
event.sourceEvent.type === "mousedown" ||
event.sourceEvent.type === "touchstart" ||
event.sourceEvent.type === "touchmove" ||
event.sourceEvent.type === "touchend")
) {
// dispatch selection events
let zoomBarEventType;
Expand Down
7 changes: 5 additions & 2 deletions packages/core/src/components/axes/zoom-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,15 @@ export class ZoomBar extends Component {
}

// be aware that the value of d3.event changes during an event!
// update zoomDomain only if the event comes from mouse event
// update zoomDomain only if the event comes from mouse/touch event
if (
event.sourceEvent != null &&
(event.sourceEvent.type === "mousemove" ||
event.sourceEvent.type === "mouseup" ||
event.sourceEvent.type === "mousedown")
event.sourceEvent.type === "mousedown" ||
event.sourceEvent.type === "touchstart" ||
event.sourceEvent.type === "touchmove" ||
event.sourceEvent.type === "touchend")
) {
// only if zoomDomain is never set or needs update
if (
Expand Down
8 changes: 8 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.35.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.11...v0.35.0) (2020-08-13)

**Note:** Version bump only for package @carbon/charts-react





## [0.34.11](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.10...v0.34.11) (2020-08-12)

**Note:** Version bump only for package @carbon/charts-react
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carbon/charts-react",
"version": "0.34.11",
"version": "0.35.0",
"description": "Carbon charting components for React",
"main": "./bundle.js",
"module": "./index.js",
Expand Down Expand Up @@ -46,7 +46,7 @@
},
"homepage": "https://github.com/carbon-design-system/carbon-charts#readme",
"dependencies": {
"@carbon/charts": "^0.34.11"
"@carbon/charts": "^0.35.0"
},
"peerDependencies": {
"react": "^16.6.3",
Expand Down
11 changes: 11 additions & 0 deletions packages/svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.35.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.11...v0.35.0) (2020-08-13)


### Features

* **svelte:** add Meter chart wrapper ([#744](https://github.com/carbon-design-system/carbon-charts/issues/744)) ([8ed23b1](https://github.com/carbon-design-system/carbon-charts/commit/8ed23b176d168714ed4c0b481fda71eb8bed4106))





## [0.34.11](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.10...v0.34.11) (2020-08-12)

**Note:** Version bump only for package @carbon/charts-svelte
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carbon/charts-svelte",
"version": "0.34.11",
"version": "0.35.0",
"description": "Carbon charting components for Svelte",
"main": "./bundle.js",
"module": "./index.js",
Expand Down Expand Up @@ -47,7 +47,7 @@
},
"homepage": "https://github.com/carbon-design-system/carbon-charts#readme",
"dependencies": {
"@carbon/charts": "^0.34.11"
"@carbon/charts": "^0.35.0"
},
"peerDependencies": {
"svelte": "^3.20.x"
Expand Down
6 changes: 6 additions & 0 deletions packages/svelte/src/MeterChart.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script>
import { MeterChart } from "@carbon/charts";
import BaseChart from "./BaseChart.svelte";
</script>

<BaseChart {...$$restProps} Chart={MeterChart} on:load on:update on:destroy />
2 changes: 2 additions & 0 deletions packages/svelte/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import PieChart from "./PieChart.svelte";
import ScatterChart from "./ScatterChart.svelte";
import RadarChart from "./RadarChart.svelte";
import GaugeChart from "./GaugeChart.svelte";
import MeterChart from "./MeterChart.svelte";

export {
AreaChart,
Expand All @@ -24,4 +25,5 @@ export {
ScatterChart,
RadarChart,
GaugeChart,
MeterChart
};
8 changes: 8 additions & 0 deletions packages/vue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.35.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.11...v0.35.0) (2020-08-13)

**Note:** Version bump only for package @carbon/charts-vue





## [0.34.11](https://github.com/carbon-design-system/carbon-charts/compare/v0.34.10...v0.34.11) (2020-08-12)

**Note:** Version bump only for package @carbon/charts-vue
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carbon/charts-vue",
"version": "0.34.11",
"version": "0.35.0",
"description": "Carbon charting components for Vue",
"main": "charts-vue.umd.min.js",
"scripts": {
Expand All @@ -14,7 +14,7 @@
"clean": "rm -rf dist demo/bundle"
},
"dependencies": {
"@carbon/charts": "^0.34.11",
"@carbon/charts": "^0.35.0",
"vue": "2.5.21"
},
"devDependencies": {
Expand Down

0 comments on commit 2b07934

Please sign in to comment.