npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@xatali/primatevalidator

v1.0.5

Published

引擎调用方法的验证

Downloads

3

Readme

PrimateValidator

介绍

Graphics3DEngine引擎包的内方法的调用时参数验证,不通过的参数将会有控制台warning

安装教程

  1. npm install

使用说明

  1. 代码将发布于服务器 和 npm 。 可在页面上引入此js,需要引入于引擎代码之后.

    <script src="https://file.primate3d.com/release/validate/[email protected]"></script>
  2. node环境使用

    npm install @xatali/primatevalidator --save-dev

    require("@xatali/primatevalidator")

    注意需要引入PRIMATE全局变量之后。因为此模块,将会代理重写PRIMATE内部的类相关方法。

参与贡献

  1. Fork 本仓库
  2. 新建分支
  3. 添加并测试代码
  4. 提交代码
  5. 新建 Pull Request

发布版本

  1. 修改package.json中的version。

  2. npm run publish 即可发布到npm及服务器上。

其他说明

  1. @xatali/primate模块为引擎的代码类型声明模块,需要和plugin下的primate3D.module.js保持相同版本。

  2. plugin下文件用于jest单元测试。

  3. 请添加代码时完善jest单元测试。

  4. 使用的校验版本应和引擎核心包版本匹配,不然可能会出现方法无法调用现象。

版本说明及更新。

  1. 1.0.0版本为初始版本,适应引擎的3.2.10之后版本系类。

    • 完成jest框架的搭建。

    • 2021.10.24完成mark部分的验证,并发布。

  2. 1.0.2

    匹配 引擎之前版本。

  3. 1.0.3

    匹配引擎4.0.0

  4. 1.0.4

    匹配引擎4.0.2

    修改MaterialOperation.glitterObject bug。

  5. 1.0.5

    匹配引擎4.0.3