rapid-render 1.0.3 → 1.0.5

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
@@ -72,11 +72,37 @@ Performance Comparison: Rapid vs. Other Renderers and Game Engines
72
72
  </a>
73
73
  </p>
74
74
 
75
- <p align="center">
76
- 🎮 <strong><a href="https://nightre.github.io/Rapid.js/benchmark/">Run Interactive Benchmark Live &rarr;</a></strong>
77
- </p>
78
-
79
- Tested on **Windows 11 / Intel i7-12850H / NVIDIA RTX 4070 Laptop GPU / Google Chrome (WebGL 2.0)** (Chrome / WebGL 2.0)
75
+ [Run Interactive Benchmark Live](https://nightre.github.io/Rapid.js/benchmark/)
76
+
77
+ Tested on **Windows 11 / Intel i7-12850H / NVIDIA RTX 4070 Laptop GPU / Google Chrome (WebGL 2.0)**
78
+
79
+ ## Who is using Rapid.js?
80
+
81
+ We'd love to feature your work! Please [**Submit a Pull Request**](https://github.com/Nightre/Rapid.js/pulls) or tell nightscratch1145@gmail.com to add your game or app to the showcase!
82
+ <table>
83
+ <tr>
84
+ <td width="96" valign="top">
85
+ <a href="https://www.instagram.com/p/DJboaWgMzhK/?img_index=3">
86
+ <img src="./docs/image/with-rapid-0.png" alt="Avoid the Zeros at the Sydney Opera House">
87
+ </a>
88
+ </td>
89
+ <td valign="top">
90
+ <strong><a href="https://www.instagram.com/p/DJboaWgMzhK/?img_index=3">Avoid the Zeros</a> by Foxdog Studios</strong><br>
91
+ Foxdog Studios used Rapid.js to deliver fast download times and smooth multi-sprite rendering for thousands of audience members playing simultaneously on their mobile phones at the <strong>Sydney Opera House</strong>.<br>
92
+ </td>
93
+ </tr>
94
+ <tr>
95
+ <td width="96" valign="top">
96
+ <a href="https://poki.com/zh/g/emoji-party">
97
+ <img src="./docs/image/with-rapid-1.png" alt="Emoji Party">
98
+ </a>
99
+ </td>
100
+ <td valign="top">
101
+ <strong><a href="https://poki.com/zh/g/emoji-party">Emoji Party</a> by illusivegames</strong><br>
102
+ 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>
103
+ </td>
104
+ </tr>
105
+ </table>
80
106
 
81
107
  ## Contributing
82
108
 
package/dist/draw.d.ts CHANGED
@@ -26,6 +26,8 @@ export interface IDrawParticleOptions {
26
26
  rotation?: number;
27
27
  scaleX?: number;
28
28
  scaleY?: number;
29
+ originX?: number;
30
+ originY?: number;
29
31
  isRotated?: boolean;
30
32
  }
31
33
  export interface IDrawParticleBatchOptions {
@@ -38,6 +40,8 @@ export interface IDrawParticleBatchOptions {
38
40
  count?: number;
39
41
  scaleX?: number;
40
42
  scaleY?: number;
43
+ originX?: number;
44
+ originY?: number;
41
45
  flipX?: boolean;
42
46
  flipY?: boolean;
43
47
  isRotated?: boolean;