Typescript definition problem, missing class ALive2DModel in Live2DFramework.js

edited July 2016 in Help
Hello there,

I'm currently working on a Live2D Angular2 application, for that purpose I created typings definitions for Live2DFramework, but once I finished I saw that one class was missing: ALive2DModel.

Where can I find this class? If I can't find this class I'll have to use any as type, which is not really good for a lib typings declaration.

Comments

  • Hi, @Supamiu !

    I think Alive2DModel is a class in the live2d.min.js .
    You take the Alive2DModel in the following code .
    Simple.loadBytes(modelDef.model, function(buf){
        // live2DModel == Alive2DModel
        live2DModel = Live2DModelWebGL.loadModel(buf);
    });
    
    API Document also try to reference .
    Good Luck!

    Live2D API Reference
    http://doc.live2d.com/api/core/cpp2.0e/a00001.html#a15018757384c5a7234e537864a2cad39
  • Thank you ! :)

    Problem now is that I don't know if the Live2D api doc you linked (the C++ doc) matches the JS API.

    Do you know where I can find any ETA on some typings for Live2D? Or maybe any documentation on the JS version so I can make a typescript library wrapped around Live2D.
  • Hey, sorry for answering late. Unfortunately there's no official documentation on the Javascript version, but the API @naotaro linked pretty much ressembles the Javascript version. I hope we can improve on that part with the next major version.
Sign In or Register to comment.