guides icon indicating copy to clipboard operation
guides copied to clipboard

This app doesn't compile for me.

Open smandepudi opened this issue 5 years ago • 11 comments

Environments

  • Framework name:
  • Framework version:
  • Component name:
  • Component version:
  • Testable Address(optional):

Description

smandepudi avatar Feb 24 '20 19:02 smandepudi

@smandepudi

Can you tell me the details?

daybrush avatar Mar 06 '20 08:03 daybrush

I downloaded the code and tried to run. what i noticed is the code in the project is not an angular one. i am looking for a angular solution. after following your steps i was able to get a horizontal ruler but not a vertical ruler using the angular guides you provided. let me know what i may be missing

smandepudi avatar Mar 08 '20 19:03 smandepudi

guides

smandepudi avatar Mar 08 '20 19:03 smandepudi

the vertical guide doesnt show right. horizontal guide shows ok

smandepudi avatar Mar 08 '20 19:03 smandepudi

actually after some more research around i was able to get the vertical one looking ok

smandepudi avatar Mar 08 '20 22:03 smandepudi

can i change the units on the ruler. i need support for pixels, inches, centimeters etc. what is the default unit that comes with this library

smandepudi avatar Mar 08 '20 22:03 smandepudi

@smandepudi

UIse type type: "vertical" And you can use unit, zoom props and change this.

https://github.com/daybrush/ruler/issues/2

daybrush avatar Mar 09 '20 07:03 daybrush

ok i will try. is the default units that shows up is pixels?

smandepudi avatar Mar 09 '20 16:03 smandepudi

also i what is the difference between scroll and scrollGuides. scrollGuides doesn't seem to do anything for me . thank you

smandepudi avatar Mar 09 '20 21:03 smandepudi

can you give me an example of how to use all the guide props and the methods from the interface. i couldn't find the full implementation from your documentation.

export interface GuidesProps { type?: "horizontal" | "vertical"; width?: number; height?: number; unit?: number; zoom?: number; style?: IObject; backgroundColor?: string; lineColor?: string; textColor?: string; setGuides?: (guides: number[]) => any; rulerStyle?: IObject; } export interface GuidesInterface { getGuides(): number[]; scroll(pos: number): void; scrollGuides(pos: number): void; resize(): void; }

smandepudi avatar Mar 09 '20 22:03 smandepudi

@smandepudi

Not ready yet.

Support only README.md

I will support storybook and docs.

daybrush avatar May 12 '20 17:05 daybrush