mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-24 13:19:54 -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 = {
|
LineMode.propTypes = {
|
||||||
clearSelectedItems: PropTypes.func.isRequired,
|
clearSelectedItems: PropTypes.func.isRequired,
|
||||||
|
clearStrokeGradient: PropTypes.func.isRequired,
|
||||||
colorState: PropTypes.shape({
|
colorState: PropTypes.shape({
|
||||||
fillColor: ColorStyleProptype,
|
fillColor: ColorStyleProptype,
|
||||||
strokeColor: ColorStyleProptype,
|
strokeColor: ColorStyleProptype,
|
||||||
|
|
|
@ -305,7 +305,7 @@ const applyGradientTypeToSelection = function (gradientType, applyToStroke, text
|
||||||
itemColor.gradient.stops &&
|
itemColor.gradient.stops &&
|
||||||
itemColor.gradient.stops.length === 2 &&
|
itemColor.gradient.stops.length === 2 &&
|
||||||
itemColor.gradient.stops[0].color.alpha === 0 &&
|
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;
|
const hasGradientNow = itemColor1 || itemColor2;
|
||||||
if (noStrokeOriginally && hasGradientNow) {
|
if (noStrokeOriginally && hasGradientNow) {
|
||||||
// Make outline visible
|
// Make outline visible
|
||||||
|
@ -463,7 +463,7 @@ const getColorsFromSelection = function (selectedItems, bitmapMode) {
|
||||||
|
|
||||||
let strokeColorString = primary;
|
let strokeColorString = primary;
|
||||||
const strokeColor2String = secondary;
|
const strokeColor2String = secondary;
|
||||||
let strokeGradientType = gradientType;
|
const strokeGradientType = gradientType;
|
||||||
|
|
||||||
// If the item's stroke width is 0, pretend the stroke color is null
|
// If the item's stroke width is 0, pretend the stroke color is null
|
||||||
if (!item.strokeWidth) {
|
if (!item.strokeWidth) {
|
||||||
|
|
Loading…
Reference in a new issue