Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

refactor: rewrite component in typescript #3

Merged
merged 8 commits into from
Oct 2, 2017
Merged

Conversation

alexsasharegan
Copy link
Owner

@alexsasharegan alexsasharegan commented Oct 2, 2017

BREAKING CHANGE: remove check mark component from plugin

BREAKING CHANGE: the resize callback prop's call signature and return signature has been revised to conform to the following interfaces:

declare function resizeImg(file: VTransmitFile, dims: IDimensions): IDrawImageArgs

interface IDrawImageArgs {
    sx: number;
    sy: number;
    sWidth: number;
    sHeight: number;
    dx: number;
    dy: number;
    dWidth: number;
    dHeight: number;
}

interface IDimensions {
    width: number;
    height: number;
}

@alexsasharegan alexsasharegan merged commit 7af5b17 into master Oct 2, 2017
@alexsasharegan alexsasharegan deleted the feat/typescript branch October 2, 2017 03:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant