Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adapter-miniprogram

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adapter-miniprogram

ar engine adapter!

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

adapter-miniprogram

Playcanvas.js 小程序 WebGL 的适配器。

使用

可参考 example 目录下的示例项目或参照以下流程:

  1. 通过 npm 安装

    npm install --save adapter-miniprogram
    

安装完成之后在微信开发者工具中点击构建 npm。

  1. 导入小程序适配版本的 Playcanvas
import adapter from 'adapter-miniprogram'

Page({
  onReady() {
    wx.createSelectorQuery()
      .select('#webgl')
      .node()
      .exec((res) => {
        const canvas = res[0].node
  

      })
  }
})

说明

  • 如在使用过程中发现有适配问题,可通过 issue 反馈或发 PR 修复。

Keywords

FAQs

Package last updated on 22 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc