Skip to content

Commit

Permalink
Add arrow svg assets
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Aug 17, 2017
1 parent 8c604f1 commit 0e99d7f
Show file tree
Hide file tree
Showing 12 changed files with 352 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
tex/
65 changes: 65 additions & 0 deletions img/arrow/arrowtip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 71 additions & 0 deletions img/arrow/harpoon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 71 additions & 0 deletions img/arrow/hook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions img/arrow/mapsto.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions img/arrow/tail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions img/arrow/twoheads.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 3 additions & 1 deletion src/components/Toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {h, Component} from 'preact'

const Item = ({tool, id, name, onClick}) => (
<li class={tool === id ? 'current' : null} data-id={id} title={name} onClick={onClick}>
<img src={`./img/${id}.svg`} alt={name}/>
<img src={`./img/tools/${id}.svg`} alt={name}/>
</li>
)

Expand All @@ -22,7 +22,9 @@ export default class Toolbox extends Component {
<Item tool={this.props.tool} id="pan" name="Pan" onClick={this.onItemClick} />
<Item tool={this.props.tool} id="move" name="Move" onClick={this.onItemClick} />
<Item tool={this.props.tool} id="arrow" name="Arrow" onClick={this.onItemClick} />

<Separator/>

<Item tool={this.props.tool} id="code" name="Export" onClick={this.onItemClick} />
</ul>
</section>
Expand Down

0 comments on commit 0e99d7f

Please sign in to comment.