mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
render: coord calculation (inaccurate)
This commit is contained in:
parent
7b9749f415
commit
2eb398ef6b
2 changed files with 73 additions and 0 deletions
|
@ -12,6 +12,7 @@ import { connect } from 'react-redux';
|
|||
import { setMode, startEditing, stopEditing, setLogo } from '$redux/user/actions';
|
||||
import type { UserType } from '$constants/types';
|
||||
import { editor } from '$modules/Editor';
|
||||
import { getTilePlacement } from '$utils/renderer';
|
||||
|
||||
type Props = {
|
||||
user: UserType,
|
||||
|
@ -108,6 +109,7 @@ class Component extends React.PureComponent<Props, void> {
|
|||
<button
|
||||
className={classnames('disabled', { active: mode === MODES.SHOTTER })}
|
||||
// onClick={this.startShotterMode}
|
||||
onClick={getTilePlacement}
|
||||
>
|
||||
<Icon icon="icon-shot-3" />
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue