rapid-render 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  ## What is Rapid?
22
22
 
23
- Rapid is a focused WebGL 2D rendering engine for games and visual tools. lightweight at just **67 kB** (**~19.5 kB gzipped**) It handles the rendering layer while leaving your game architecture, update loop, and state management fully in your hands.
23
+ Rapid is a focused WebGL 2D rendering engine for games and visual tools. lightweight at just **67 kB** (**~20 kB gzipped**) It handles the rendering layer while leaving your game architecture, update loop, and state management fully in your hands.
24
24
 
25
25
  ## Highlights
26
26
 
@@ -99,8 +99,8 @@ We'd love to feature your work! Please [**Submit a Pull Request**](https://githu
99
99
  </a>
100
100
  </td>
101
101
  <td valign="top">
102
- <strong><a href="https://poki.com/zh/g/emoji-party">Emoji Party</a> by illusivegames</strong><br>
103
- A featured puzzle hit on Poki with over <strong>13,000+ player ratings</strong>. Rapid.js powers its snappy sprite animations and instant-play experience across hundreds of thousands of diverse mobile and desktop browsers.<br>
102
+ <strong><a href="https://poki.com/zh/g/emoji-party">Emoji Party</a> by illusivegames</strong><br>
103
+ A featured puzzle hit on Poki, surpassing <strong>6 million plays</strong>. Rapid.js powers its smooth rendering and instant-play experience across hundreds of thousands of diverse mobile and desktop browser environments.<br>
104
104
  </td>
105
105
  </tr>
106
106
  </table>
@@ -1,7 +1,7 @@
1
1
  import { SpriteRegion } from './spriteRegion';
2
2
  import { Rapid } from '../render';
3
3
  import { CustomGlShader } from '../webgl/glshader';
4
- export declare class AtlasSprtieRegion extends SpriteRegion {
4
+ export declare class AtlasSpriteRegion extends SpriteRegion {
5
5
  KEY: string;
6
6
  constructor(rapid: Rapid);
7
7
  createCustomShader(customShader: CustomGlShader): import('..').GLShader | null;
package/dist/render.d.ts CHANGED
@@ -8,7 +8,7 @@ import { RenderTexture, Texture, TextureManager } from './texture';
8
8
  import { Color } from './color';
9
9
  import { ICircleOptions, IDrawParticleBatchOptions, IGraphicOptions, ILineOptions, IMaskImageOptions, IRectOptions, ISpriteOptions } from './draw';
10
10
  import { Vec2 } from './math';
11
- import { AtlasSprtieRegion } from './region/atlasSpriteRegion';
11
+ import { AtlasSpriteRegion } from './region/atlasSpriteRegion';
12
12
  import { ParticleRegion } from './region/particleRegion';
13
13
  /**
14
14
  * Options for initializing the Rapid application.
@@ -122,7 +122,7 @@ export declare class Rapid {
122
122
  spriteRegion: SpriteRegion;
123
123
  /** Region dedicated to arbitrary geometry and shapes rendering. */
124
124
  graphicRegion: GraphicRegion;
125
- atlasSpriteRegion: AtlasSprtieRegion;
125
+ atlasSpriteRegion: AtlasSpriteRegion;
126
126
  particleRegion: ParticleRegion;
127
127
  /** Counts the number of WebGL draw calls made in the current frame. */
128
128
  drawcallCount: number;
package/package.json CHANGED
@@ -1,24 +1,42 @@
1
1
  {
2
2
  "name": "rapid-render",
3
3
  "private": false,
4
- "version": "1.0.11",
4
+ "version": "1.0.13",
5
5
  "type": "module",
6
+ "description": "A high-performance lightweight WebGL 2D renderer for browser games.",
7
+ "repository": "https://github.com/Nightre/Rapid.js",
8
+ "homepage": "https://nightre.github.io/Rapid.js/",
9
+ "bugs": "https://github.com/Nightre/Rapid.js/issues",
10
+ "keywords": [
11
+ "2d",
12
+ "webgl",
13
+ "webgl2",
14
+ "renderer",
15
+ "rendering-engine",
16
+ "game-rendering",
17
+ "browser-games",
18
+ "sprite-batching",
19
+ "particles",
20
+ "shaders",
21
+ "typescript"
22
+ ],
6
23
  "files": [
7
24
  "dist",
8
25
  "index.d.ts"
9
26
  ],
10
- "license":"MIT",
11
- "main": "./dist/rapid.umd.cjs",
12
- "module": "./dist/rapid.js",
27
+ "license": "MIT",
28
+ "main": "./dist/rapid-render.umd.cjs",
29
+ "module": "./dist/rapid-render.js",
13
30
  "types": "./dist/index.d.ts",
14
31
  "exports": {
15
32
  "types": "./dist/index.d.ts",
16
- "import": "./dist/rapid.js",
17
- "require": "./dist/rapid.umd.cjs"
33
+ "import": "./dist/rapid-render.js",
34
+ "require": "./dist/rapid-render.umd.cjs"
18
35
  },
19
36
  "scripts": {
20
37
  "dev": "vite",
21
38
  "build": "tsc && vite build",
39
+ "test": "npm run build && node --test",
22
40
  "build:docs": "vite build --config vite.docs.config.ts",
23
41
  "docs": "typedoc",
24
42
  "example:dev": "vite --config example/vite.config.ts",
@@ -33,7 +51,5 @@
33
51
  "stats.js": "^0.17.0",
34
52
  "vite-plugin-dts": "^4.5.4"
35
53
  },
36
- "dependencies": {
37
-
38
- }
39
- }
54
+ "dependencies": {}
55
+ }