mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-03-13 22:50:01 -04:00
Add tool to bitmap editor
This commit is contained in:
parent
40871b1c0f
commit
a868d29d82
1 changed files with 6 additions and 1 deletions
|
@ -36,7 +36,7 @@ import StrokeWidthIndicatorComponent from '../../containers/stroke-width-indicat
|
|||
import TextMode from '../../containers/text-mode.jsx';
|
||||
|
||||
import Formats from '../../lib/format';
|
||||
import {isVector} from '../../lib/format';
|
||||
import {isBitmap, isVector} from '../../lib/format';
|
||||
import layout from '../../lib/layout-constants';
|
||||
import styles from './paint-editor.css';
|
||||
|
||||
|
@ -373,6 +373,11 @@ const PaintEditorComponent = props => {
|
|||
<RectMode
|
||||
onUpdateSvg={props.onUpdateSvg}
|
||||
/>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{props.canvas !== null ? ( // eslint-disable-line no-negated-condition
|
||||
<div className={isBitmap(props.format) ? styles.modeSelector : styles.hidden}>
|
||||
<BitBrushMode
|
||||
onUpdateSvg={props.onUpdateSvg}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue