react-d3-utils
Advanced tools
Comparing version 0.2.0 to 0.3.0
# Changelog | ||
## [0.3.0](https://www.github.com/zakodium/react-d3-utils/compare/v0.2.0...v0.3.0) (2021-03-26) | ||
### Features | ||
* add hooks to generate linear and log ticks ([#7](https://www.github.com/zakodium/react-d3-utils/issues/7)) ([35936ac](https://www.github.com/zakodium/react-d3-utils/commit/35936ac25cc65ba07a3935ef77cdd7eb45db9a89)) | ||
## [0.2.0](https://www.github.com/zakodium/react-d3-utils/compare/v0.1.1...v0.2.0) (2021-02-08) | ||
@@ -17,13 +24,11 @@ | ||
### Bug Fixes | ||
* publish correct directories ([a46b349](https://www.github.com/zakodium/react-d3-utils/commit/a46b349787ed1ba63fde72cbc495c89498607826)) | ||
- publish correct directories ([a46b349](https://www.github.com/zakodium/react-d3-utils/commit/a46b349787ed1ba63fde72cbc495c89498607826)) | ||
## 0.1.0 (2021-02-05) | ||
### Features | ||
* add ResponsiveChart component ([#1](https://www.github.com/zakodium/react-d3-utils/issues/1)) ([72134a4](https://www.github.com/zakodium/react-d3-utils/commit/72134a42192765b062d1fff9bf4912449c91f7c1)) | ||
* align items in group ([4e919fd](https://www.github.com/zakodium/react-d3-utils/commit/4e919fd1c7f3112d14eb7cb4da755335210a84a5)) | ||
- add ResponsiveChart component ([#1](https://www.github.com/zakodium/react-d3-utils/issues/1)) ([72134a4](https://www.github.com/zakodium/react-d3-utils/commit/72134a42192765b062d1fff9bf4912449c91f7c1)) | ||
- align items in group ([4e919fd](https://www.github.com/zakodium/react-d3-utils/commit/4e919fd1c7f3112d14eb7cb4da755335210a84a5)) |
@@ -16,3 +16,2 @@ import { useCallback, useRef, useState } from 'react'; | ||
if (element !== null) { | ||
// @ts-expect-error: ResizeObserver will only in `lib.dom.d.ts` in TypeScript 4.2 | ||
const observer = new ResizeObserver(([entry]) => { | ||
@@ -19,0 +18,0 @@ const bbox = entry.target.getBBox(); |
export * from './components/AlignGroup'; | ||
export * from './components/ResponsiveChart'; | ||
export * from './hooks/useBBoxObserver'; | ||
export * from './hooks/useLinearPrimaryTicks'; | ||
export * from './hooks/useLogTicks'; |
export * from './components/AlignGroup'; | ||
export * from './components/ResponsiveChart'; | ||
export * from './hooks/useBBoxObserver'; | ||
export * from './hooks/useLinearPrimaryTicks'; | ||
export * from './hooks/useLogTicks'; | ||
//# sourceMappingURL=index.js.map |
@@ -19,3 +19,2 @@ "use strict"; | ||
if (element !== null) { | ||
// @ts-expect-error: ResizeObserver will only in `lib.dom.d.ts` in TypeScript 4.2 | ||
const observer = new ResizeObserver(([entry]) => { | ||
@@ -22,0 +21,0 @@ const bbox = entry.target.getBBox(); |
@@ -16,1 +16,3 @@ "use strict"; | ||
__exportStar(require("./hooks/useBBoxObserver"), exports); | ||
__exportStar(require("./hooks/useLinearPrimaryTicks"), exports); | ||
__exportStar(require("./hooks/useLogTicks"), exports); |
{ | ||
"name": "react-d3-utils", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Low-level utilities to build charts with React and D3", | ||
@@ -38,2 +38,3 @@ "main": "lib/index.js", | ||
"@babel/core": "^7.12.13", | ||
"@simbathesailor/use-what-changed": "^1.0.0", | ||
"@storybook/addon-actions": "^6.1.17", | ||
@@ -54,4 +55,6 @@ "@storybook/addon-essentials": "^6.1.17", | ||
"dependencies": { | ||
"@types/d3-scale": "^3.2.2", | ||
"d3-scale": "^3.2.3", | ||
"use-resize-observer": "7.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37916
32
545
3
15
+ Added@types/d3-scale@^3.2.2
+ Addedd3-scale@^3.2.3
+ Added@types/d3-scale@3.3.5(transitive)
+ Added@types/d3-time@2.1.4(transitive)
+ Addedd3-array@2.12.1(transitive)
+ Addedd3-color@2.0.0(transitive)
+ Addedd3-format@2.0.0(transitive)
+ Addedd3-interpolate@2.0.1(transitive)
+ Addedd3-scale@3.3.0(transitive)
+ Addedd3-time@2.1.1(transitive)
+ Addedd3-time-format@3.0.0(transitive)
+ Addedinternmap@1.0.1(transitive)