import * as PIXI from 'pixi.js';
const app = new PIXI.Application({
antialias: true,
background: '#1099bb',
});
document.body.appendChild(app.view);
const circle = app.stage.addChild(new PIXI.Graphics()
.beginFill(0xffffff)
.lineStyle({ color: 0x111111, alpha: 0.87, width: 1 })
.drawCircle(0, 0, 8)
.endFill());
circle.position.set(app.screen.width / 2, app.screen.height / 2);
app.stage.eventMode = 'static';
app.stage.hitArea = app.screen;
app.stage.addEventListener('pointermove', (e) =>
{
circle.position.copyFrom(e.global);
});