Jump to content
Search Community

hanesjw

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by hanesjw

  1. Cancel that. I think I found the solution in a separate thread I imported using this 'import PixiPlugin from 'gsap/PixiPlugin'

    and it all seems to work now. Thanks again for all the help!!!

     

    Edit: as a side note I had to disable the noImplicitAny option in my tsconfig.json to allow it to compile. I still get this warning though:

     

    Could not find a declaration file for module 'gsap/PixiPlugin'. 'c:/Users/llc/node_modules/gsap/PixiPlugin.js' implicitly has an 'any' type.
    If the 'gsap' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gsap`
    ts(7016)

    • Like 1
  2. Thank you for all the help. I think I'm getting there. I'm still having an issue importing the PixiPlugin though. Do the typings need updating? I've installed @types/gsap and don't see any reference to the PixiPlugin in there. I see it in the node_modules/gsap folder but not the @types/gsap folder. I feel like I'm missing something.

     

    I'm trying to use PixiPlugin.registerPIXI(PIXI) but it can't find PixiPlugin since i'm unable to import it even with 'import "gsap/PixiPlugin"'

     

    Any ideas?

     

  3. I can't seem to get PixiPlugin to function in my typescript application. Do I need to do anything specific to use PixiPlugin or does it come with the gsap npm install? I wasn't able to find an npm package for the pixiplugin so I assumed it came with the gsap install. I have the latest and greatest version of GSAP but can't get this to function.

     

    TweenLite.to(someSprite, 1, {pixi:{colorize:"red", colorizeAmount:1}});

     

     

    I'm using Pixi5 and Gsap 2.1.3

     

    What am i missing?

     

    Thanks!

    Quote
     
×
×
  • Create New...