mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-08 13:42:00 -05:00
Lint
This commit is contained in:
parent
4ec6bcae99
commit
d2a78a9e9f
2 changed files with 3 additions and 2 deletions
|
@ -280,6 +280,7 @@ class LineMode extends React.Component {
|
|||
|
||||
LineMode.propTypes = {
|
||||
clearSelectedItems: PropTypes.func.isRequired,
|
||||
clearStrokeGradient: PropTypes.func.isRequired,
|
||||
colorState: PropTypes.shape({
|
||||
fillColor: ColorStyleProptype,
|
||||
strokeColor: ColorStyleProptype,
|
||||
|
|
|
@ -305,7 +305,7 @@ const applyGradientTypeToSelection = function (gradientType, applyToStroke, text
|
|||
itemColor.gradient.stops &&
|
||||
itemColor.gradient.stops.length === 2 &&
|
||||
itemColor.gradient.stops[0].color.alpha === 0 &&
|
||||
itemColor.gradient.stops[1].color.alpha === 0)
|
||||
itemColor.gradient.stops[1].color.alpha === 0);
|
||||
const hasGradientNow = itemColor1 || itemColor2;
|
||||
if (noStrokeOriginally && hasGradientNow) {
|
||||
// Make outline visible
|
||||
|
@ -463,7 +463,7 @@ const getColorsFromSelection = function (selectedItems, bitmapMode) {
|
|||
|
||||
let strokeColorString = primary;
|
||||
const strokeColor2String = secondary;
|
||||
let strokeGradientType = gradientType;
|
||||
const strokeGradientType = gradientType;
|
||||
|
||||
// If the item's stroke width is 0, pretend the stroke color is null
|
||||
if (!item.strokeWidth) {
|
||||
|
|
Loading…
Reference in a new issue