New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

game-3dkadiya

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

game-3dkadiya

# 游戏

  • 0.0.6
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

game-3dkadiya

游戏

安装
npm install game-3dkadiya
使用
  • json
{
    "usingComponents": {
        "game": "game-3dkadiya/index"
    }
}
  • mini.project.json
{
  "node_modules_es6_whitelist": [
    "game-3dkadiya"
  ]
}
  • js
Page({
  data: {
  },
  onInitDone(game) {
    this.gameComponent = game;
    // 跳转到下一个
    // this.gameComponent.nextFun();
  },
  onUpdate(par) {
    // 滚动回调
    // progress: 当前进度,总进度为 100, currentIndex:当前产品下标
    // console.error(par);
  },
  onTouchFun(e) {
    let type = e.type;
    if (!this.gameComponent) { return false; }
    if (type === "touchStart") {
      this.gameComponent.eventObj.start(e);
    } else if (type === "touchMove") {
      this.gameComponent.eventObj.move(e);
    } else {
      this.gameComponent.eventObj.end(e);
    }
  }
})
  • xaml
<!-- 游戏容器 -->
<game onInitDone="onInitDone" onUpdate="onUpdate" />
<view style="height:100vh;position:absolute;width: 100vw;left:0;top:0;z-index:10;" onTouchStart="onTouchFun" onTouchMove="onTouchFun" onTouchEnd="onTouchFun" onTouchCancel="onTouchFun">
</view>
  • acss

FAQs

Package last updated on 23 Nov 2023

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