How to use rax-miniapp-renderer - 1 common examples

To help you get started, we’ve selected a few rax-miniapp-renderer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / rax / packages / miniapp-framework-web / src / renderer / renderDOM.js View on Github external
};

  /**
   * Handle with module API events.
   */
  workerHandle.onModuleAPIEvent = handleModuleAPIEvent;

  /**
   * Correct the page font-size
   */
  const { documentElement } = globalThis.document;
  // Correct the page font-size
  const clientWidth = typeof VIEWPORT_WIDTH !== 'undefined' ? VIEWPORT_WIDTH : documentElement.clientWidth;
  documentElement.style.fontSize = clientWidth / 750 * 100 + 'px';

  return domRenderer({
    worker: workerHandle,
    tagNamePrefix: TAG_NAME_PREFIX,
    mountNode,
  });
}

rax-miniapp-renderer

Rax renderer for miniapp.

BSD-3-Clause
Latest version published 5 years ago

Package Health Score

53 / 100
Full package analysis

Popular rax-miniapp-renderer functions