JSPM

@icanvas/core

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

这是icanvas的核心包

Package Exports

  • @icanvas/core

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) 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 GitHub top language

安装

    npm install -s @icanvas/core

调用

es6调用完整支持Tree Shake

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

API列表

数学包

扩展数组ICanvas.Math.Array

基本向量ICanvas.Math.Vector

二维向量ICanvas.Math.Vector2

二维矩阵ICanvas.Math.Matrix3

时钟跳动类ICanvas.Math.Clock

时间处理类ICanvas.Math.Time

位置处理类ICanvas.Math.Position

随机方法ICanvas.Math.Random

界面组件构造器包

组件构造器ICanvas.Component

基础组件构造器ICanvas.Component.Elements.Base

纹理图组件ICanvas.Component.Elements.Texture

富文本组件ICanvas.Component.Elements.Text

滚动框组件ICanvas.Component.Elements.Scroll

透明度ICanvas.Component.Properties.Alpha

锚点ICanvas.Component.Properties.Anchor

角度ICanvas.Component.Properties.Angle

子元素ICanvas.Component.Properties.Children

裁剪ICanvas.Component.Properties.Clip

边距ICanvas.Component.Properties.Padding

定位ICanvas.Component.Properties.Position

缩放ICanvas.Component.Properties.Scale

大小ICanvas.Component.Properties.Size

样式ICanvas.Component.Properties.Style

显示状态ICanvas.Component.Properties.Visible

偏移层级ICanvas.Component.Properties.ZIndex

资源加载包

基本加载器ICanvas.Resource.Loader

浏览器图片管理器ICanvas.Resource.Image

浏览器音频管理器ICanvas.Resource.Audio

特性包

浏览器生成Canvas方法ICanvas.Api.Canvas

浏览器获取系统属性方法ICanvas.Api.System

浏览器外部字体加载方法ICanvas.Api.Font

浏览器触摸监听传递ICanvas.Util.Touch

工具包

Canvas2D扩展ICanvas.Util.Canvas2D

界面组件渲染类ICanvas.Util.Render

触摸事件统一处理类ICanvas.Util.Touch

界面组件碰撞检测类ICanvas.Util.Collsion

文件夹资源结构JSON转键值对ICanvas.Util.LoaderMap

Object属性递归获取方法ICanvas.Util.RecursiveMap