pixi-projection icon indicating copy to clipboard operation
pixi-projection copied to clipboard

Can't work with pixi.js together

Open finscn opened this issue 7 years ago • 5 comments

Beacuse in pixi.js (dist file) , there are some codes :

Object.defineProperty(exports, 'Point', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_Point).default;
  }
});

There is getter only.

In pixi-projection.js (dist file) , there are some codes :

PIXI.Point = Point3d;

So , in some browsers , there will throw an error like this : image

finscn avatar Nov 06 '18 05:11 finscn

hello i also encountered the same problem

window.PIXI = require('libs/pixijs/pixi.min')
require('libs/pixijs/pixi-projection')

image

stephenml avatar Nov 06 '18 05:11 stephenml

Well, shit. Gonna fix it. Thank you guys! @finscn @stephenml

ivanpopelyshev avatar Nov 06 '18 09:11 ivanpopelyshev

Is there any news about this one ?

finscn avatar Mar 20 '19 10:03 finscn

the PR #34 & #35 could fix this issue , I think.

@ivanpopelyshev , could do you review it ? thanks

finscn avatar Mar 20 '19 10:03 finscn

It looks like we dont actually need Point3d in most cases. I added it when I didnt know that yet ;)

ivanpopelyshev avatar Mar 20 '19 11:03 ivanpopelyshev