@react-financial-charts/utils
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.1
@@ -6,2 +6,10 @@ # Change Log | ||
# [1.0.0-alpha.1](https://github.com/reactivemarkets/react-financial-charts/compare/v1.0.0-alpha.0...v1.0.0-alpha.1) (2020-07-10) | ||
**Note:** Version bump only for package @react-financial-charts/utils | ||
# [1.0.0-alpha.0](https://github.com/reactivemarkets/react-financial-charts/compare/v0.5.1...v1.0.0-alpha.0) (2020-07-08) | ||
@@ -8,0 +16,0 @@ |
@@ -8,3 +8,3 @@ import * as React from "react"; | ||
} | ||
export declare function withDeviceRatio(): <TProps extends WithRatioProps>(OriginalComponent: React.ComponentClass<TProps, any>) => { | ||
export declare const withDeviceRatio: () => <TProps extends WithRatioProps>(OriginalComponent: React.ComponentClass<TProps, any>) => { | ||
new (props: Readonly<Pick<TProps, Exclude<keyof TProps, "ratio">>>): { | ||
@@ -11,0 +11,0 @@ ref: React.RefObject<HTMLCanvasElement>; |
import * as React from "react"; | ||
export function withDeviceRatio() { | ||
export const withDeviceRatio = () => { | ||
return (OriginalComponent) => { | ||
@@ -34,3 +34,3 @@ return class WithRatio extends React.Component { | ||
}; | ||
} | ||
}; | ||
//# sourceMappingURL=withDeviceRatio.js.map |
@@ -7,3 +7,3 @@ import * as React from "react"; | ||
} | ||
export declare function withSize(props?: Omit<AutoSizerProps, "children">): <TProps extends WithSizeProps>(OriginalComponent: React.ComponentClass<TProps, any>) => { | ||
export declare const withSize: (props?: Pick<AutoSizerProps, "style" | "className" | "defaultHeight" | "defaultWidth" | "disableHeight" | "disableWidth" | "nonce" | "onResize"> | undefined) => <TProps extends WithSizeProps>(OriginalComponent: React.ComponentClass<TProps, any>) => { | ||
new (props: Readonly<Pick<TProps, Exclude<keyof TProps, "width" | "height">>>): { | ||
@@ -10,0 +10,0 @@ render(): JSX.Element; |
import * as React from "react"; | ||
import AutoSizer from "react-virtualized-auto-sizer"; | ||
export function withSize(props) { | ||
export const withSize = (props) => { | ||
return (OriginalComponent) => { | ||
@@ -13,3 +13,3 @@ return class WithSize extends React.Component { | ||
}; | ||
} | ||
}; | ||
//# sourceMappingURL=withSize.js.map |
{ | ||
"name": "@react-financial-charts/utils", | ||
"version": "1.0.0-alpha.0", | ||
"version": "1.0.0-alpha.1", | ||
"description": "Utils for react-financial-charts", | ||
@@ -47,3 +47,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "eae3db6fe5be832713f0ef96f01bba6b8ab9b7c6" | ||
"gitHead": "b9b1295b8eca8b4f2ceb4c7be53554b4badd4a6b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18894