SpreadJS 14
Features / Shapes / Fill Effects
In This Topic
    Fill Effects
    In This Topic

    SpreadJS allows you to add fill effects in shapes in order to enhance their appearance by creating different UI effects.

    Solid Fill

    You can apply solid fill to shapes by using ShapeFillType enumeration. It provides solid and none values which create the below fill effects:

    solid fill no fill shape effect

    The following code example applies solid and no fill to shapes.

    JavaScript
    Copy Code
    // Add a shape with solid fill
    var shape1 = activeSheet.shapes.add("myShape1", GC.Spread.Sheets.Shapes.AutoShapeType.diamond, 200, 50, 150, 150);
    var style = shape1.style();
    style.fill = { type: GC.Spread.Sheets.Shapes.ShapeFillType.solid, color: 'red'};
    shape1.style(style);
                
    // Add a shape with no fill 
    var shape2 = activeSheet.shapes.add("myShape1", GC.Spread.Sheets.Shapes.AutoShapeType.diamond, 400, 50, 150, 150);
    var style = shape2.style();
    style.fill = { type: GC.Spread.Sheets.Shapes.ShapeFillType.none };
    shape2.style(style);
    

    Gradient Fill

    You can apply gradient fill to shapes which provide a 3D color look by creating color blending effects. The start position of every color can be specified in stops property and the brightness and transparency ratio of colors can be set as well.

    SpreadJS provides two types of gradient fills:

    The linear or radial values of GradientFillType enumeration can be used to set the type of gradient fill in shapes. The direction of gradients can be set by using LinearGradientFillDirection or RadialGradientFillDirection enumerations.

    The following example code applies linear and radial gradient fill to the four shapes as shown in above image.

    JavaScript
    Copy Code
    // Add linear fill specified by direction
        addStyles(sheet.shapes.get('shape1'),
        {   type: GC.Spread.Sheets.Shapes.GradientFillType.linear,
            direction: GC.Spread.Sheets.Shapes.LinearGradientFillDirection.linearRight,
            stops: [{color: 'pink', position: 0}, {color: 'blue', position: 1}]
        });
    // Add linear fill specified by angle
        addStyles(sheet.shapes.get('shape2'),
        {   type: GC.Spread.Sheets.Shapes.GradientFillType.linear,
            angle: 60,
            stops: [{color: 'yellow', position: 0, transparency: 0.3},
            {color: 'green', position: 0.5, transparency: 0.5},
            {color: 'blue', position: 1, transparency: 0.8, brightness: 0.2}]
        });
    // Add radial fill specified by center direction
        addStyles(sheet.shapes.get('shape3'),
        {   type: GC.Spread.Sheets.Shapes.GradientFillType.radial,
            direction: GC.Spread.Sheets.Shapes.RadialGradientFillDirection.fromCenter,
            stops: [{color: 'blue', position: 0}, {color: 'pink', position: 1}]
        });
    // Add radial fill specified by bottom right direction
        addStyles(sheet.shapes.get('shape4'),
        {   type: GC.Spread.Sheets.Shapes.GradientFillType.radial,
            direction: GC.Spread.Sheets.Shapes.RadialGradientFillDirection.fromBottomRight,
            stops: [{color: 'yellow', position: 0}, {color: 'green', position: 1}]
        });
    
        function addStyles(shapeName, fillType) {
            var style = shapeName.style();
            style.fill = fillType;
            shapeName.style(style);
        }
    

    Picture Fill

    You can add pictures in shapes by setting the image source as a base64 string. The transparency and offset properties (left, right, top, bottom) can also be set by using the fill options of IShapePictureFillOption interface.

    picture fill effect in shapes

    The following example code adds an image in a shape and sets its transparency.

    JavaScript
    Copy Code
    var shapechart = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAFeCAIAAAAkP95fAAAxS0lEQVR42u2di38U15Xn51+anZ3NZCdOsp9J7Flnkp1MsmNjj7OZCbTt2PghJXxsCJITy8QCCQcUJcYGDMKSACPe0LwsLIEB8RBCgN5IjbAQCD1a4iEJWdIe+qDjq1vV1dXdVV1V3b/vp41LVdXV1VW3vn3OrVv3/k0bAAAEhL+h/2YBAMD3QFgAAAgLAAAgLAAAhAUAABAWAABAWAAACAsAACAsAACAsAAAEBYAAEBY2culS5cWLFhA//pnlzZs2FBcXDwxMaHuIZGfnx+NRu1sIRKJhEKhcDjs2+NJX4S+jid7CCAsv0MXPylgwXz4anFDWKZXI88kGSUlLOt3icsEllqghUXvpZ2nr4ByC2HltLDsyML+ZWlxUTkoLFZPvOs/uNc2hAVhAQgLwgIQVlYLSzUCX0U0TWtSXsPW4BUkizRml8bN2hQWrWC6EREW74aWw9q5trUdoAna4O3bt2kmb0ozoPpB6qdsiCFHQPss9VDIIqNhTTduX1gp7IOxEkA9vLROXl5ee3u7rMBL49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==";
    
    var GCshape = sheet.shapes.add("myShape1", GC.Spread.Sheets.Shapes.AutoShapeType.rectangle, 20, 50, 400, 300);
    
    // Picture fill style
    var stylePic = GCshape.style();
    stylePic.fill = { src: shapechart, transparency: 0.2};
    GCshape.style(stylePic);
    

    Texture Fill

    You can apply texture fill to shapes by adding a picture as texture in a shape. The tilePictureAsTexture property of IShapeTextureFillOption interface should be set to true so that the picture behaves as a texture. The transparency, offset, scale, alignment, and mirror type properties can also be set by using the fill options of IShapeTextureFillOption interface.

    texture fill effect in shapes

    The following example code adds a picture as texture in a shape.

    JavaScript
    Copy Code
    var grapecityImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMcAAAA7CAYAAADPVZ6kAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAABVlSURBVHhe7ZwJXFTV28d/7IgCigKKCEos4Yr7hqKCu6mpmVbmUma5lFlZlsmrZmVamtnftEV70yy13PctU3DfNUFFWWRHAZFNEN7nOTN3uDNw1QrIf+/5fj7zcebOZebec57fs50zmhUTkEgkpTDX/yuRSEyQ4pBINJDikEg0kOKQSDSQ4pBINJDikEg0kOKQSDSQ4pBINJDikEg0kOKQSDSQ4pBINJDikEg0kOKQSDSQ4pBINJDikEg0kL/nkJQLcVcyEXMpXTx3a+AAryZO4vl/M1Ickr9FURGwYvYJrP/PRdSpbw8zOpYQm4WgAfXx5ldBupP0XAhPQnLsHfG8lltVNOtcRzx/VJHiMIEn7+zBRFw6loKbSTkwNzeDQ01bNGhYAwFBbvDwc4SF5b83G71XWIToi+k4tucGIk+kIj0lB4UFRajqaA2vxk7o+EQD+LdyhqW1bgxu0RiN77wBA19pjCdfbiiO7VsThS/ePIz/PT0EtdyriWP3CosxqvlaFBcVIz+3EPV8HPHZzn7ivUeVf0QcPEB5NEAFeeR2UAwzMkBrWwvYVLHUnfAPkJddgB/nn8XOlZeRdStff1RBN0RW1pZo3cMdY0Jbwc3LQRz7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1OK2JUtDEaKQ/LIELYlGrkkiMVvHMa4DuvF48SeG+jyVOVsFzFFplWPCFzQh28x3rLBtQ7/DyD/X4ik4lz9gyyGN1YGUGGurHdUJlIcEokGMq2SSDSQ4pBINJDikEg0kOKQSDSQ4pBINJDikEg0kOKQSDSQ4pBINJDikEg0kOKQSDSQ4pBINJDikEg0kOKQSDSQ4pBINJDikEg0kOKQSMoE+D+v3v/vIM1jrQAAAABJRU5ErkJggg==";
    
    var GCshape2 = sheet.shapes.add("myShape2", GC.Spread.Sheets.Shapes.AutoShapeType.rectangle, 450, 50, 450, 300);
    
    // Texture fill style
    var styleTexture = GCshape2.style();
    styleTexture.fill = { src: grapecityImg, tilePictureAsTexture: true, 
                        transparency: 0.7, 
                        scaleX: 0.8, 
                        scaleY: 0.8, 
                        alignment: GC.Spread.Sheets.Shapes.TextureFillAlignment.left
                    };
    GCshape2.style(styleTexture);
    

    Limitations of Picture and Texture fill