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

dan-ma

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

dan-ma

[查看demo](https://leeeeeem.github.io/DanMa/example)

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

查看demo

重构代码,复用弹幕对象并且优化代码,性能提升。可以投入生产环境

示例

当弹幕列表为空时,停止render,只有当有新的弹幕时重新开始渲染

	this._isRunning = false

实例划分

舞台实例,用于初始化整个舞台,提供整个舞台的相关信息

	new Stage()

弹幕池实例,用于管理整个弹幕列表, doCheck方法用于检测弹幕池

	new Pool()

弹幕实例,用于保存每个弹幕的状态

	new Shoot()

入口实例,对外api为emit方法。 入口用于初始化舞台和弹幕池实例。

	new DanMa()

FAQs

Package last updated on 17 Apr 2019

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