JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q75704F
  • License MIT

这是icanvas的核心包

Package Exports

  • @icanvas/core-wxgame

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@icanvas/core-wxgame) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

iCanvas核心构造器

npm NPM npm npm bundle size

安装

    npm install -s @icanvas/core-wxgame

调用

umd/es6

es6调用完整支持Tree Shake

    import * as ICanvas from '@icanvas/core';
    import * as ICanvasWxgame from '@icanvas/core-wxgame';
    // OR
    const ICanvas = require('@icanvas/core');
    const ICanvasWxgame = require('@icanvas/core-wxgame');

API列表

资源加载包

微信图片资源管理器构造函数ICanvasWxgame.ResourceImage

微信音频资源管理器构造函数ICanvasWxgame.ResourceAudio

特性包

微信生成Canvas方法ICanvasWxgame.ApiCanvas

微信获取系统属性方法ICanvasWxgame.ApiSystem

微信网络请求类ICanvasWxgame.ApiRequest

微信登陆工厂方法ICanvasWxgame.ApiLogin

微信触摸监听传递ICanvas.ApiTouch

工具包

微信方法变种工厂ICanvas.UtilVary