daybrush / guides

A Guides component that can draw ruler and manage guidelines.
https://daybrush.com/guides/
MIT License
342 stars 46 forks source link

Describe specific value infromation #1

Open hg-pyun opened 4 years ago

hg-pyun commented 4 years ago

Theguides is coooool and very useful!
I have a small wish. I want to change the unit of the rule, but I don't know which props to change. Would you describe the props more specific please?

export interface GuidesProps {
    type?: "horizontal" | "vertical";
    width?: number;
    height?: number;
    unit?: number;   <-- maybe this?
    zoom?: number;
    style?: IObject<any>;
    backgroundColor?: string;
    lineColor?: string;
    setGuides?: (guides: number[]) => any;
    rulerStyle?: IObject<any>;
}

Thank you!

daybrush commented 4 years ago

@hg-pyun

unit is the scale unit shown on the screen. (default: 50) 0, 50, 100, 150, 200

I haven't added jsdoc yet. It will be added soon.

Thank you :)