Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const makeImageFill = (
image: FileFormat.ImageDataRef,
patternFillType: FileFormat.PatternFillType = FileFormat.PatternFillType.Fill,
): FileFormat.Fill => ({
_class: 'fill',
isEnabled: true,
fillType: FileFormat.FillType.Pattern,
color: makeColorFromCSS('white'),
image,
noiseIndex: 0,
noiseIntensity: 0,
patternFillType,
patternTileScale: 1,
contextSettings: {
_class: 'graphicsContextSettings',
blendMode: FileFormat.BlendMode.Normal,
opacity: 1,
},
gradient: emptyGradient,