

    fglayer.prepareRender.then(() => {
      console.log(111, el2.contentSize);
    });

    const b = new spritejs.Sprite();
    b.attr({
      pos: [-50, 0],
      size: [600, 600],
      bgcolor: 'blue',
      border: [10, 'red'],
      boxSizing: 'border-box',
    });
    bglayer.appendChild(b);

    b.addEventListener('resolutionchange', (e) => {
      console.log(e);
    });

    const l = new spritejs.Label();
    l.attr({
      text: 'abc',
      size: [100, 30],
      x: -100,
      // pos: [350,