-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add minimal documentation to components #34
- Loading branch information
1 parent
55e3b6d
commit e22be1b
Showing
54 changed files
with
856 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,4 +142,4 @@ | |
opacity: 1; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { useSpring, animated } from 'react-spring' | ||
|
||
|
||
export const G =({children, className, onClick, ...inputProps}) => { | ||
const props = useSpring(inputProps); | ||
return ( | ||
<animated.g className={className} onClick={onClick} {...props}> | ||
{children} | ||
</animated.g> | ||
) | ||
} | ||
export const Text =({children, onClick, className, style, ...inputProps}) => { | ||
const props = useSpring(inputProps); | ||
return ( | ||
<animated.text className={className} onClick={onClick} style={style} {...props}> | ||
{children} | ||
</animated.text> | ||
) | ||
} | ||
export const Line = ({style, className, onClick, ...inputProps}) => { | ||
const props = useSpring(inputProps); | ||
return ( | ||
<animated.line className={className} onClick={onClick} style={style} {...props} /> | ||
) | ||
} | ||
export const Circle = ({style, className, onClick, ...inputProps}) => { | ||
const props = useSpring(inputProps); | ||
return ( | ||
<animated.circle className={className} onClick={onClick} style={style} {...props} /> | ||
) | ||
} | ||
export const Rect = ({style, className, onClick, ...inputProps}) => { | ||
const props = useSpring(inputProps); | ||
return ( | ||
<animated.rect className={className} onClick={onClick} style={style} {...props} /> | ||
) | ||
} | ||
export const Path = ({style, className, onClick, ...inputProps}) => { | ||
const props = useSpring(inputProps); | ||
return ( | ||
<animated.path className={className} onClick={onClick} style={style} {...props} /> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.