How to use the pixi-filters.DropShadowFilter function in pixi-filters

To help you get started, we’ve selected a few pixi-filters examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github higlass / higlass / app / scripts / Insets2dTrack.js View on Github external
this.initBaseEl();

    this.colorScale = this.options.colorRange
      ? colorDomainToRgbaArray(this.options.colorRange, true)
      : [];

    this.positioning.offsetX = this.positioning.offsetX || 0;
    this.positioning.offsetY = this.positioning.offsetY || 0;
    this.positioning.offsetTopTrack = this.positioning.offsetTopTrack || 0;
    this.positioning.offsetLeftTrack = this.positioning.offsetLeftTrack || 0;

    this.fetchChromInfo = this.dataType === 'cooler'
      ? chromInfo.get(chromInfoPath)
      : undefined;

    this.dropShadow = new DropShadowFilter({
      rotation: 90,
      distance: this.options.dropDistance,
      blur: this.options.dropBlur,
      color: 0x000000,
      alpha: this.options.dropOpacity,
    });

    this.isRenderToCanvas = this.options.isRenderToCanvas || false;

    this.pBase.alpha = this.options.opacity;
    this.pMain.filters = [this.dropShadow];

    this.insets = new KeySet();
    this.insetsInPreparation = new KeySet();

    this.insetMouseHandler = {

pixi-filters

[![Node.js CI](https://github.com/pixijs/filters/workflows/Node.js%20CI/badge.svg)](https://github.com/pixijs/filters/actions/workflows/nodejs.yml?query=branch%3Amain) [![npm version](https://badge.fury.io/js/pixi-filters.svg)](https://www.npmjs.com/packa

MIT
Latest version published 4 months ago

Package Health Score

68 / 100
Full package analysis

Similar packages