@cosmol-studio/cosmol-viewer 0.6.3 → 0.6.4-rc.1

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
@@ -135,11 +135,10 @@ endpoints decode Python payloads and enter the same typed render/play paths.
135
135
  Notebook updates, camera logging and viewport overlays are encoded one-way `ViewerCommand`
136
136
  messages submitted to `viewer.dispatch(payload)`.
137
137
 
138
- Scenes, animations, and commands share the `CMV2:R:<base64>` (raw postcard) or
139
- `CMV2:G:<base64>` (gzip postcard) format. Postcard data below 1 KiB skips gzip;
140
- at or above 1 KiB gzip level 1 is always used. The choice depends only on the
141
- serialized size; there is no compression-ratio check or fallback.
142
- Old unprefixed and CMV1 formats are rejected: sender and receiver must match.
138
+ Scenes, animations, and commands share the `CMV3:R:<base64>` (raw postcard) or
139
+ `CMV3:G:<base64>` (gzip postcard) format. The notebook endpoints also accept
140
+ saved `CMV2` payloads. Postcard data below 1 KiB uses raw encoding. At or above
141
+ 1 KiB the encoder uses gzip level 1. The decoder accepts versioned envelopes.
143
142
  The decoder defaults to at most 64 MiB of serialized data; Rust callers can use
144
143
  `decode_payload_with_limit` to set another bound. This is a serialized-byte limit,
145
144
  not a limit on the final object or GPU memory. Ordinary JS and native IPC do not
@@ -113,7 +113,15 @@ export class Scene {
113
113
  * Use MoleculeColors.default() to restore the built-in palette.
114
114
  */
115
115
  setMoleculePalette(colors: MoleculeColors): void;
116
+ /**
117
+ * Toggle Multishadow ambient occlusion. Directions default to 32 (range 8 to 64).
118
+ */
119
+ setMultishadow(enabled: BoolInput, directions?: ByteInput | null): void;
116
120
  setScale(scale: FloatInput): void;
121
+ /**
122
+ * Enable scene-wide depth outlines. The default line is black and one pixel wide.
123
+ */
124
+ setSilhouettes(enabled: BoolInput, color?: BytesInput | null, width?: FloatInput | null, depth_jump?: FloatInput | null): void;
117
125
  setTransparentBackground(enabled: BoolInput): void;
118
126
  setZoomDisabled(disabled: BoolInput): void;
119
127
  set(name: TextInput, item: import("@cosmol-studio/cosmolkit").Molecule | import("@cosmol-studio/cosmolkit").Protein | Selection | Sphere | Stick, style?: Style | null): void;
@@ -172,6 +180,10 @@ export class Sphere {
172
180
  color(rgb: BytesInput): Sphere;
173
181
  static new(center: FloatArrayInput, radius: FloatInput): Sphere;
174
182
  opacity(opacity: FloatInput): Sphere;
183
+ /**
184
+ * Override scene silhouettes with a width in output pixels.
185
+ */
186
+ silhouettes(rgb: BytesInput, width: FloatInput): Sphere;
175
187
  }
176
188
 
177
189
  export class Stick {
@@ -182,6 +194,10 @@ export class Stick {
182
194
  color(rgb: BytesInput): Stick;
183
195
  static new(start: FloatArrayInput, end: FloatArrayInput, radius: FloatInput): Stick;
184
196
  opacity(opacity: FloatInput): Stick;
197
+ /**
198
+ * Override scene silhouettes with a width in output pixels.
199
+ */
200
+ silhouettes(rgb: BytesInput, width: FloatInput): Stick;
185
201
  }
186
202
 
187
203
  export class Style {
@@ -201,10 +217,17 @@ export class Style {
201
217
  coordinates2d(): Style;
202
218
  metallic(value: FloatInput): Style;
203
219
  opacity(value: FloatInput): Style;
204
- outline(rgb: BytesInput, width: FloatInput): Style;
205
220
  rainbowResidues(): Style;
206
221
  roughness(value: FloatInput): Style;
207
222
  scale(value: FloatInput): Style;
223
+ /**
224
+ * When disabled, draw one stick per bond regardless of its order.
225
+ */
226
+ showBondOrder(show: BoolInput): Style;
227
+ /**
228
+ * Override scene silhouettes. Width is in pixels. Zero disables this shape's edges.
229
+ */
230
+ silhouettes(rgb: BytesInput, width: FloatInput): Style;
208
231
  static sphere(): Style;
209
232
  static stick(): Style;
210
233
  static surface(): Style;
@@ -325,7 +348,9 @@ export interface InitOutput {
325
348
  readonly scene_setLightIntensity: (a: number, b: number, c: any) => void;
326
349
  readonly scene_setLighting: (a: number, b: number, c: any, d: any, e: any, f: any, g: any) => void;
327
350
  readonly scene_setMoleculePalette: (a: number, b: number, c: number) => void;
351
+ readonly scene_setMultishadow: (a: number, b: number, c: any, d: number) => void;
328
352
  readonly scene_setScale: (a: number, b: number, c: any) => void;
353
+ readonly scene_setSilhouettes: (a: number, b: number, c: any, d: number, e: number, f: number) => void;
329
354
  readonly scene_setTransparentBackground: (a: number, b: number, c: any) => void;
330
355
  readonly scene_setZoomDisabled: (a: number, b: number, c: any) => void;
331
356
  readonly scene_shapeCount: (a: number, b: number) => void;
@@ -348,10 +373,12 @@ export interface InitOutput {
348
373
  readonly sphere_color: (a: number, b: number, c: any) => void;
349
374
  readonly sphere_new: (a: number, b: any, c: any) => void;
350
375
  readonly sphere_opacity: (a: number, b: number, c: any) => void;
376
+ readonly sphere_silhouettes: (a: number, b: number, c: any, d: any) => void;
351
377
  readonly stick_cloneShape: (a: number, b: number) => void;
352
378
  readonly stick_color: (a: number, b: number, c: any) => void;
353
379
  readonly stick_new: (a: number, b: any, c: any, d: any) => void;
354
380
  readonly stick_opacity: (a: number, b: number, c: any) => void;
381
+ readonly stick_silhouettes: (a: number, b: number, c: any, d: any) => void;
355
382
  readonly style_ballAndStick: (a: number) => void;
356
383
  readonly style_cartoon: (a: number) => void;
357
384
  readonly style_cloneStyle: (a: number, b: number) => void;
@@ -362,10 +389,11 @@ export interface InitOutput {
362
389
  readonly style_coordinates2d: (a: number, b: number) => void;
363
390
  readonly style_metallic: (a: number, b: number, c: any) => void;
364
391
  readonly style_opacity: (a: number, b: number, c: any) => void;
365
- readonly style_outline: (a: number, b: number, c: any, d: any) => void;
366
392
  readonly style_rainbowResidues: (a: number, b: number) => void;
367
393
  readonly style_roughness: (a: number, b: number, c: any) => void;
368
394
  readonly style_scale: (a: number, b: number, c: any) => void;
395
+ readonly style_showBondOrder: (a: number, b: number, c: any) => void;
396
+ readonly style_silhouettes: (a: number, b: number, c: any, d: any) => void;
369
397
  readonly style_sphere: (a: number) => void;
370
398
  readonly style_stick: (a: number) => void;
371
399
  readonly style_surface: (a: number) => void;
@@ -381,11 +409,11 @@ export interface InitOutput {
381
409
  readonly viewer_showFps: (a: number, b: number, c: any) => void;
382
410
  readonly viewer_takeScreenshot: (a: number) => any;
383
411
  readonly viewer_update: (a: number, b: number, c: number) => void;
384
- readonly __wasm_bindgen_func_elem_8692: (a: number, b: number, c: number, d: any) => void;
385
- readonly __wasm_bindgen_func_elem_8694: (a: number, b: number, c: any, d: any) => void;
386
- readonly __wasm_bindgen_func_elem_3829: (a: number, b: number, c: number) => void;
387
- readonly __wasm_bindgen_func_elem_3830: (a: number, b: number, c: any) => void;
388
- readonly __wasm_bindgen_func_elem_3830_96: (a: number, b: number, c: any) => void;
412
+ readonly __wasm_bindgen_func_elem_8835: (a: number, b: number, c: number, d: any) => void;
413
+ readonly __wasm_bindgen_func_elem_8837: (a: number, b: number, c: any, d: any) => void;
414
+ readonly __wasm_bindgen_func_elem_3928: (a: number, b: number, c: number) => void;
415
+ readonly __wasm_bindgen_func_elem_3929: (a: number, b: number, c: any) => void;
416
+ readonly __wasm_bindgen_func_elem_3929_101: (a: number, b: number, c: any) => void;
389
417
  readonly __wbindgen_export: (a: number, b: number) => number;
390
418
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
391
419
  readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
@@ -729,6 +729,26 @@ export class Scene {
729
729
  wasm.__wbindgen_add_to_stack_pointer(16);
730
730
  }
731
731
  }
732
+ /**
733
+ * Toggle Multishadow ambient occlusion. Directions default to 32 (range 8 to 64).
734
+ * @param {BoolInput} enabled
735
+ * @param {ByteInput | null} [directions]
736
+ */
737
+ setMultishadow(enabled, directions) {
738
+ try {
739
+ if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
740
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
741
+ _assertNum(this.__wbg_ptr);
742
+ wasm.scene_setMultishadow(retptr, this.__wbg_ptr, enabled, isLikeNone(directions) ? 0 : addToExternrefTable0(directions));
743
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
744
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
745
+ if (r1) {
746
+ throw takeFromExternrefTable0(r0);
747
+ }
748
+ } finally {
749
+ wasm.__wbindgen_add_to_stack_pointer(16);
750
+ }
751
+ }
732
752
  /**
733
753
  * @param {FloatInput} scale
734
754
  */
@@ -747,6 +767,28 @@ export class Scene {
747
767
  wasm.__wbindgen_add_to_stack_pointer(16);
748
768
  }
749
769
  }
770
+ /**
771
+ * Enable scene-wide depth outlines. The default line is black and one pixel wide.
772
+ * @param {BoolInput} enabled
773
+ * @param {BytesInput | null} [color]
774
+ * @param {FloatInput | null} [width]
775
+ * @param {FloatInput | null} [depth_jump]
776
+ */
777
+ setSilhouettes(enabled, color, width, depth_jump) {
778
+ try {
779
+ if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
780
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
781
+ _assertNum(this.__wbg_ptr);
782
+ wasm.scene_setSilhouettes(retptr, this.__wbg_ptr, enabled, isLikeNone(color) ? 0 : addToExternrefTable0(color), isLikeNone(width) ? 0 : addToExternrefTable0(width), isLikeNone(depth_jump) ? 0 : addToExternrefTable0(depth_jump));
783
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
784
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
785
+ if (r1) {
786
+ throw takeFromExternrefTable0(r0);
787
+ }
788
+ } finally {
789
+ wasm.__wbindgen_add_to_stack_pointer(16);
790
+ }
791
+ }
750
792
  /**
751
793
  * @param {BoolInput} enabled
752
794
  */
@@ -1287,6 +1329,29 @@ export class Sphere {
1287
1329
  wasm.__wbindgen_add_to_stack_pointer(16);
1288
1330
  }
1289
1331
  }
1332
+ /**
1333
+ * Override scene silhouettes with a width in output pixels.
1334
+ * @param {BytesInput} rgb
1335
+ * @param {FloatInput} width
1336
+ * @returns {Sphere}
1337
+ */
1338
+ silhouettes(rgb, width) {
1339
+ try {
1340
+ if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1341
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
1342
+ _assertNum(this.__wbg_ptr);
1343
+ wasm.sphere_silhouettes(retptr, this.__wbg_ptr, rgb, width);
1344
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1345
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1346
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1347
+ if (r2) {
1348
+ throw takeFromExternrefTable0(r1);
1349
+ }
1350
+ return Sphere.__wrap(r0);
1351
+ } finally {
1352
+ wasm.__wbindgen_add_to_stack_pointer(16);
1353
+ }
1354
+ }
1290
1355
  }
1291
1356
  if (Symbol.dispose) Sphere.prototype[Symbol.dispose] = Sphere.prototype.free;
1292
1357
 
@@ -1399,6 +1464,29 @@ export class Stick {
1399
1464
  wasm.__wbindgen_add_to_stack_pointer(16);
1400
1465
  }
1401
1466
  }
1467
+ /**
1468
+ * Override scene silhouettes with a width in output pixels.
1469
+ * @param {BytesInput} rgb
1470
+ * @param {FloatInput} width
1471
+ * @returns {Stick}
1472
+ */
1473
+ silhouettes(rgb, width) {
1474
+ try {
1475
+ if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1476
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
1477
+ _assertNum(this.__wbg_ptr);
1478
+ wasm.stick_silhouettes(retptr, this.__wbg_ptr, rgb, width);
1479
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1480
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1481
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1482
+ if (r2) {
1483
+ throw takeFromExternrefTable0(r1);
1484
+ }
1485
+ return Stick.__wrap(r0);
1486
+ } finally {
1487
+ wasm.__wbindgen_add_to_stack_pointer(16);
1488
+ }
1489
+ }
1402
1490
  }
1403
1491
  if (Symbol.dispose) Stick.prototype[Symbol.dispose] = Stick.prototype.free;
1404
1492
 
@@ -1639,16 +1727,14 @@ export class Style {
1639
1727
  }
1640
1728
  }
1641
1729
  /**
1642
- * @param {BytesInput} rgb
1643
- * @param {FloatInput} width
1644
1730
  * @returns {Style}
1645
1731
  */
1646
- outline(rgb, width) {
1732
+ rainbowResidues() {
1647
1733
  try {
1648
1734
  if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1649
1735
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
1650
1736
  _assertNum(this.__wbg_ptr);
1651
- wasm.style_outline(retptr, this.__wbg_ptr, rgb, width);
1737
+ wasm.style_rainbowResidues(retptr, this.__wbg_ptr);
1652
1738
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1653
1739
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1654
1740
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1661,14 +1747,15 @@ export class Style {
1661
1747
  }
1662
1748
  }
1663
1749
  /**
1750
+ * @param {FloatInput} value
1664
1751
  * @returns {Style}
1665
1752
  */
1666
- rainbowResidues() {
1753
+ roughness(value) {
1667
1754
  try {
1668
1755
  if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1669
1756
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
1670
1757
  _assertNum(this.__wbg_ptr);
1671
- wasm.style_rainbowResidues(retptr, this.__wbg_ptr);
1758
+ wasm.style_roughness(retptr, this.__wbg_ptr, value);
1672
1759
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1673
1760
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1674
1761
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1684,12 +1771,12 @@ export class Style {
1684
1771
  * @param {FloatInput} value
1685
1772
  * @returns {Style}
1686
1773
  */
1687
- roughness(value) {
1774
+ scale(value) {
1688
1775
  try {
1689
1776
  if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1690
1777
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
1691
1778
  _assertNum(this.__wbg_ptr);
1692
- wasm.style_roughness(retptr, this.__wbg_ptr, value);
1779
+ wasm.style_scale(retptr, this.__wbg_ptr, value);
1693
1780
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1694
1781
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1695
1782
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1702,15 +1789,39 @@ export class Style {
1702
1789
  }
1703
1790
  }
1704
1791
  /**
1705
- * @param {FloatInput} value
1792
+ * When disabled, draw one stick per bond regardless of its order.
1793
+ * @param {BoolInput} show
1706
1794
  * @returns {Style}
1707
1795
  */
1708
- scale(value) {
1796
+ showBondOrder(show) {
1709
1797
  try {
1710
1798
  if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1711
1799
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
1712
1800
  _assertNum(this.__wbg_ptr);
1713
- wasm.style_scale(retptr, this.__wbg_ptr, value);
1801
+ wasm.style_showBondOrder(retptr, this.__wbg_ptr, show);
1802
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1803
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1804
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1805
+ if (r2) {
1806
+ throw takeFromExternrefTable0(r1);
1807
+ }
1808
+ return Style.__wrap(r0);
1809
+ } finally {
1810
+ wasm.__wbindgen_add_to_stack_pointer(16);
1811
+ }
1812
+ }
1813
+ /**
1814
+ * Override scene silhouettes. Width is in pixels. Zero disables this shape's edges.
1815
+ * @param {BytesInput} rgb
1816
+ * @param {FloatInput} width
1817
+ * @returns {Style}
1818
+ */
1819
+ silhouettes(rgb, width) {
1820
+ try {
1821
+ if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
1822
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
1823
+ _assertNum(this.__wbg_ptr);
1824
+ wasm.style_silhouettes(retptr, this.__wbg_ptr, rgb, width);
1714
1825
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1715
1826
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1716
1827
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -2215,12 +2326,27 @@ function __wbg_get_imports() {
2215
2326
  __wbg_attachShader_817dcec9e79fd18f: function() { return logError(function (arg0, arg1, arg2) {
2216
2327
  arg0.attachShader(arg1, arg2);
2217
2328
  }, arguments); },
2329
+ __wbg_bindAttribLocation_40c41e6185822b52: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
2330
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
2331
+ }, arguments); },
2332
+ __wbg_bindAttribLocation_b51bf2d65ded8f70: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
2333
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
2334
+ }, arguments); },
2335
+ __wbg_bindBufferBase_6860496c67f7dd5a: function() { return logError(function (arg0, arg1, arg2, arg3) {
2336
+ arg0.bindBufferBase(arg1 >>> 0, arg2 >>> 0, arg3);
2337
+ }, arguments); },
2218
2338
  __wbg_bindBuffer_b3bb001fdbee089a: function() { return logError(function (arg0, arg1, arg2) {
2219
2339
  arg0.bindBuffer(arg1 >>> 0, arg2);
2220
2340
  }, arguments); },
2221
2341
  __wbg_bindBuffer_cbc9075f76fffa51: function() { return logError(function (arg0, arg1, arg2) {
2222
2342
  arg0.bindBuffer(arg1 >>> 0, arg2);
2223
2343
  }, arguments); },
2344
+ __wbg_bindFramebuffer_79534f24b57b7b95: function() { return logError(function (arg0, arg1, arg2) {
2345
+ arg0.bindFramebuffer(arg1 >>> 0, arg2);
2346
+ }, arguments); },
2347
+ __wbg_bindFramebuffer_b245cd93a150dd96: function() { return logError(function (arg0, arg1, arg2) {
2348
+ arg0.bindFramebuffer(arg1 >>> 0, arg2);
2349
+ }, arguments); },
2224
2350
  __wbg_bindTexture_6f822943b2790466: function() { return logError(function (arg0, arg1, arg2) {
2225
2351
  arg0.bindTexture(arg1 >>> 0, arg2);
2226
2352
  }, arguments); },
@@ -2286,6 +2412,22 @@ function __wbg_get_imports() {
2286
2412
  const ret = arg0.changedTouches;
2287
2413
  return ret;
2288
2414
  }, arguments); },
2415
+ __wbg_checkFramebufferStatus_03ce134350260eda: function() { return logError(function (arg0, arg1) {
2416
+ const ret = arg0.checkFramebufferStatus(arg1 >>> 0);
2417
+ _assertNum(ret);
2418
+ return ret;
2419
+ }, arguments); },
2420
+ __wbg_checkFramebufferStatus_a2495685980e489c: function() { return logError(function (arg0, arg1) {
2421
+ const ret = arg0.checkFramebufferStatus(arg1 >>> 0);
2422
+ _assertNum(ret);
2423
+ return ret;
2424
+ }, arguments); },
2425
+ __wbg_clearBufferfv_474b28c18db287a8: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
2426
+ arg0.clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4));
2427
+ }, arguments); },
2428
+ __wbg_clearBufferuiv_e723936f302725de: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
2429
+ arg0.clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4));
2430
+ }, arguments); },
2289
2431
  __wbg_clearColor_0a9b08857907c212: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
2290
2432
  arg0.clearColor(arg1, arg2, arg3, arg4);
2291
2433
  }, arguments); },
@@ -2364,6 +2506,14 @@ function __wbg_get_imports() {
2364
2506
  const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
2365
2507
  return ret;
2366
2508
  }, arguments); },
2509
+ __wbg_createFramebuffer_cdf686778c61014d: function() { return logError(function (arg0) {
2510
+ const ret = arg0.createFramebuffer();
2511
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2512
+ }, arguments); },
2513
+ __wbg_createFramebuffer_f52399034cb1a200: function() { return logError(function (arg0) {
2514
+ const ret = arg0.createFramebuffer();
2515
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2516
+ }, arguments); },
2367
2517
  __wbg_createProgram_de0881c688a8e43b: function() { return logError(function (arg0) {
2368
2518
  const ret = arg0.createProgram();
2369
2519
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -2439,6 +2589,12 @@ function __wbg_get_imports() {
2439
2589
  __wbg_deleteBuffer_ffa760fd3b0b5ef1: function() { return logError(function (arg0, arg1) {
2440
2590
  arg0.deleteBuffer(arg1);
2441
2591
  }, arguments); },
2592
+ __wbg_deleteFramebuffer_0ec884f89db72a3e: function() { return logError(function (arg0, arg1) {
2593
+ arg0.deleteFramebuffer(arg1);
2594
+ }, arguments); },
2595
+ __wbg_deleteFramebuffer_ffdb1bee4c92ae4c: function() { return logError(function (arg0, arg1) {
2596
+ arg0.deleteFramebuffer(arg1);
2597
+ }, arguments); },
2442
2598
  __wbg_deleteProgram_8c38fff0f4a88dea: function() { return logError(function (arg0, arg1) {
2443
2599
  arg0.deleteProgram(arg1);
2444
2600
  }, arguments); },
@@ -2457,6 +2613,12 @@ function __wbg_get_imports() {
2457
2613
  __wbg_deleteTexture_89bd1d49ae4fb309: function() { return logError(function (arg0, arg1) {
2458
2614
  arg0.deleteTexture(arg1);
2459
2615
  }, arguments); },
2616
+ __wbg_deleteVertexArrayOES_2214ecdf65be031d: function() { return logError(function (arg0, arg1) {
2617
+ arg0.deleteVertexArrayOES(arg1);
2618
+ }, arguments); },
2619
+ __wbg_deleteVertexArray_2589b74b67ba20c8: function() { return logError(function (arg0, arg1) {
2620
+ arg0.deleteVertexArray(arg1);
2621
+ }, arguments); },
2460
2622
  __wbg_deltaMode_d2ba7673c0228446: function() { return logError(function (arg0) {
2461
2623
  const ret = arg0.deltaMode;
2462
2624
  _assertNum(ret);
@@ -2520,18 +2682,18 @@ function __wbg_get_imports() {
2520
2682
  _assertBoolean(ret);
2521
2683
  return ret;
2522
2684
  }, arguments); },
2523
- __wbg_drawArraysInstancedANGLE_635e10224985b842: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
2524
- arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
2525
- }, arguments); },
2526
- __wbg_drawArraysInstanced_762b36f2147c7a85: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
2527
- arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
2528
- }, arguments); },
2529
2685
  __wbg_drawArrays_a9c18db2e94f4a82: function() { return logError(function (arg0, arg1, arg2, arg3) {
2530
2686
  arg0.drawArrays(arg1 >>> 0, arg2, arg3);
2531
2687
  }, arguments); },
2532
2688
  __wbg_drawArrays_fe5a51410bfabb5b: function() { return logError(function (arg0, arg1, arg2, arg3) {
2533
2689
  arg0.drawArrays(arg1 >>> 0, arg2, arg3);
2534
2690
  }, arguments); },
2691
+ __wbg_drawBuffersWEBGL_49c672d0ddcdfe71: function() { return logError(function (arg0, arg1) {
2692
+ arg0.drawBuffersWEBGL(arg1);
2693
+ }, arguments); },
2694
+ __wbg_drawBuffers_e296659ce384e721: function() { return logError(function (arg0, arg1) {
2695
+ arg0.drawBuffers(arg1);
2696
+ }, arguments); },
2535
2697
  __wbg_drawElementsInstancedANGLE_470ce8b489eeafa5: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2536
2698
  arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2537
2699
  }, arguments); },
@@ -2593,6 +2755,12 @@ function __wbg_get_imports() {
2593
2755
  const ret = arg0.force;
2594
2756
  return ret;
2595
2757
  }, arguments); },
2758
+ __wbg_framebufferTexture2D_2c69ac0ce67faf7d: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2759
+ arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
2760
+ }, arguments); },
2761
+ __wbg_framebufferTexture2D_b6250a0c37eb48c2: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2762
+ arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
2763
+ }, arguments); },
2596
2764
  __wbg_frontFace_124bb11a73cc0dd1: function() { return logError(function (arg0, arg1) {
2597
2765
  arg0.frontFace(arg1 >>> 0);
2598
2766
  }, arguments); },
@@ -2734,6 +2902,11 @@ function __wbg_get_imports() {
2734
2902
  const ret = arg0.getSupportedExtensions();
2735
2903
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2736
2904
  }, arguments); },
2905
+ __wbg_getUniformBlockIndex_0742ae35f926850a: function() { return logError(function (arg0, arg1, arg2, arg3) {
2906
+ const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
2907
+ _assertNum(ret);
2908
+ return ret;
2909
+ }, arguments); },
2737
2910
  __wbg_getUniformLocation_6352e0669c8f5393: function() { return logError(function (arg0, arg1, arg2, arg3) {
2738
2911
  const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
2739
2912
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -3182,7 +3355,7 @@ function __wbg_get_imports() {
3182
3355
  const a = state0.a;
3183
3356
  state0.a = 0;
3184
3357
  try {
3185
- return __wasm_bindgen_func_elem_8694(a, state0.b, arg0, arg1);
3358
+ return __wasm_bindgen_func_elem_8837(a, state0.b, arg0, arg1);
3186
3359
  } finally {
3187
3360
  state0.a = a;
3188
3361
  }
@@ -3254,6 +3427,12 @@ function __wbg_get_imports() {
3254
3427
  __wbg_pixelStorei_6dd56b4da047c480: function() { return logError(function (arg0, arg1, arg2) {
3255
3428
  arg0.pixelStorei(arg1 >>> 0, arg2);
3256
3429
  }, arguments); },
3430
+ __wbg_polygonOffset_41bc1f487e5f53fe: function() { return logError(function (arg0, arg1, arg2) {
3431
+ arg0.polygonOffset(arg1, arg2);
3432
+ }, arguments); },
3433
+ __wbg_polygonOffset_acf166e60739dbfa: function() { return logError(function (arg0, arg1, arg2) {
3434
+ arg0.polygonOffset(arg1, arg2);
3435
+ }, arguments); },
3257
3436
  __wbg_port_114bc900ca0e4c6d: function() { return handleError(function (arg0, arg1) {
3258
3437
  const ret = arg1.port;
3259
3438
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -3286,6 +3465,9 @@ function __wbg_get_imports() {
3286
3465
  __wbg_queueMicrotask_4a1a4d8dd332373b: function() { return logError(function (arg0) {
3287
3466
  queueMicrotask(arg0);
3288
3467
  }, arguments); },
3468
+ __wbg_readBuffer_49d4b278b9838d40: function() { return logError(function (arg0, arg1) {
3469
+ arg0.readBuffer(arg1 >>> 0);
3470
+ }, arguments); },
3289
3471
  __wbg_readPixels_22316d250d820aff: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
3290
3472
  arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
3291
3473
  }, arguments); },
@@ -3538,6 +3720,12 @@ function __wbg_get_imports() {
3538
3720
  __wbg_uniform2fv_71fe605c72879b61: function() { return logError(function (arg0, arg1, arg2, arg3) {
3539
3721
  arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3540
3722
  }, arguments); },
3723
+ __wbg_uniform2i_6a4b371f1eaad138: function() { return logError(function (arg0, arg1, arg2, arg3) {
3724
+ arg0.uniform2i(arg1, arg2, arg3);
3725
+ }, arguments); },
3726
+ __wbg_uniform2i_8ac27a406bbc816d: function() { return logError(function (arg0, arg1, arg2, arg3) {
3727
+ arg0.uniform2i(arg1, arg2, arg3);
3728
+ }, arguments); },
3541
3729
  __wbg_uniform3fv_431207a9407b7d29: function() { return logError(function (arg0, arg1, arg2, arg3) {
3542
3730
  arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3543
3731
  }, arguments); },
@@ -3550,6 +3738,9 @@ function __wbg_get_imports() {
3550
3738
  __wbg_uniform4fv_d3afea28181f5342: function() { return logError(function (arg0, arg1, arg2, arg3) {
3551
3739
  arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3552
3740
  }, arguments); },
3741
+ __wbg_uniformBlockBinding_61c5a97721e0f36b: function() { return logError(function (arg0, arg1, arg2, arg3) {
3742
+ arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
3743
+ }, arguments); },
3553
3744
  __wbg_uniformMatrix3fv_15b2b1f5505b8506: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
3554
3745
  arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
3555
3746
  }, arguments); },
@@ -3592,6 +3783,12 @@ function __wbg_get_imports() {
3592
3783
  __wbg_vertexAttribDivisor_5b64fc697c0496e1: function() { return logError(function (arg0, arg1, arg2) {
3593
3784
  arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
3594
3785
  }, arguments); },
3786
+ __wbg_vertexAttribI4ui_f146416285e4d4ac: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
3787
+ arg0.vertexAttribI4ui(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0, arg5 >>> 0);
3788
+ }, arguments); },
3789
+ __wbg_vertexAttribIPointer_a6240b64263fb63b: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
3790
+ arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
3791
+ }, arguments); },
3595
3792
  __wbg_vertexAttribPointer_39b706eb26c50057: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3596
3793
  arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
3597
3794
  }, arguments); },
@@ -3629,76 +3826,81 @@ function __wbg_get_imports() {
3629
3826
  return ret;
3630
3827
  }, arguments); },
3631
3828
  __wbindgen_generic_0000000000000001: function() { return logError(function (arg0, arg1) {
3632
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1416, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3633
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8692);
3829
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1409, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3830
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8835);
3634
3831
  return ret;
3635
3832
  }, arguments); },
3636
3833
  __wbindgen_generic_0000000000000002: function() { return logError(function (arg0, arg1) {
3637
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 590, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3638
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3830);
3834
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 582, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3835
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3929);
3639
3836
  return ret;
3640
3837
  }, arguments); },
3641
3838
  __wbindgen_generic_0000000000000003: function() { return logError(function (arg0, arg1) {
3642
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 590, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3643
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3830_96);
3839
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 582, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3840
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3929_101);
3644
3841
  return ret;
3645
3842
  }, arguments); },
3646
3843
  __wbindgen_generic_0000000000000004: function() { return logError(function (arg0, arg1) {
3647
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 593, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3648
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3829);
3844
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 585, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3845
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3928);
3649
3846
  return ret;
3650
3847
  }, arguments); },
3651
3848
  __wbindgen_generic_0000000000000005: function() { return logError(function (arg0) {
3849
+ // Cast intrinsic for `F64 -> Externref`.
3850
+ const ret = arg0;
3851
+ return ret;
3852
+ }, arguments); },
3853
+ __wbindgen_generic_0000000000000006: function() { return logError(function (arg0) {
3652
3854
  // Cast intrinsic for `I64 -> Externref`.
3653
3855
  const ret = arg0;
3654
3856
  return ret;
3655
3857
  }, arguments); },
3656
- __wbindgen_generic_0000000000000006: function() { return logError(function (arg0, arg1) {
3858
+ __wbindgen_generic_0000000000000007: function() { return logError(function (arg0, arg1) {
3657
3859
  // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
3658
3860
  const ret = getArrayF32FromWasm0(arg0, arg1);
3659
3861
  return ret;
3660
3862
  }, arguments); },
3661
- __wbindgen_generic_0000000000000007: function() { return logError(function (arg0, arg1) {
3863
+ __wbindgen_generic_0000000000000008: function() { return logError(function (arg0, arg1) {
3662
3864
  // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
3663
3865
  const ret = getArrayI16FromWasm0(arg0, arg1);
3664
3866
  return ret;
3665
3867
  }, arguments); },
3666
- __wbindgen_generic_0000000000000008: function() { return logError(function (arg0, arg1) {
3868
+ __wbindgen_generic_0000000000000009: function() { return logError(function (arg0, arg1) {
3667
3869
  // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
3668
3870
  const ret = getArrayI32FromWasm0(arg0, arg1);
3669
3871
  return ret;
3670
3872
  }, arguments); },
3671
- __wbindgen_generic_0000000000000009: function() { return logError(function (arg0, arg1) {
3873
+ __wbindgen_generic_000000000000000a: function() { return logError(function (arg0, arg1) {
3672
3874
  // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
3673
3875
  const ret = getArrayI8FromWasm0(arg0, arg1);
3674
3876
  return ret;
3675
3877
  }, arguments); },
3676
- __wbindgen_generic_000000000000000a: function() { return logError(function (arg0, arg1) {
3878
+ __wbindgen_generic_000000000000000b: function() { return logError(function (arg0, arg1) {
3677
3879
  // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
3678
3880
  const ret = getArrayU16FromWasm0(arg0, arg1);
3679
3881
  return ret;
3680
3882
  }, arguments); },
3681
- __wbindgen_generic_000000000000000b: function() { return logError(function (arg0, arg1) {
3883
+ __wbindgen_generic_000000000000000c: function() { return logError(function (arg0, arg1) {
3682
3884
  // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
3683
3885
  const ret = getArrayU32FromWasm0(arg0, arg1);
3684
3886
  return ret;
3685
3887
  }, arguments); },
3686
- __wbindgen_generic_000000000000000c: function() { return logError(function (arg0, arg1) {
3888
+ __wbindgen_generic_000000000000000d: function() { return logError(function (arg0, arg1) {
3687
3889
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
3688
3890
  const ret = getArrayU8FromWasm0(arg0, arg1);
3689
3891
  return ret;
3690
3892
  }, arguments); },
3691
- __wbindgen_generic_000000000000000d: function() { return logError(function (arg0, arg1) {
3893
+ __wbindgen_generic_000000000000000e: function() { return logError(function (arg0, arg1) {
3692
3894
  // Cast intrinsic for `Ref(String) -> Externref`.
3693
3895
  const ret = getStringFromWasm0(arg0, arg1);
3694
3896
  return ret;
3695
3897
  }, arguments); },
3696
- __wbindgen_generic_000000000000000e: function() { return logError(function (arg0) {
3898
+ __wbindgen_generic_000000000000000f: function() { return logError(function (arg0) {
3697
3899
  // Cast intrinsic for `U64 -> Externref`.
3698
3900
  const ret = BigInt.asUintN(64, arg0);
3699
3901
  return ret;
3700
3902
  }, arguments); },
3701
- __wbindgen_generic_000000000000000f: function() { return logError(function (arg0, arg1) {
3903
+ __wbindgen_generic_0000000000000010: function() { return logError(function (arg0, arg1) {
3702
3904
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
3703
3905
  wasm.__wbindgen_export3(arg0, arg1 * 1, 1);
3704
3906
  // Cast intrinsic for `Vector(U8) -> Externref`.
@@ -3722,30 +3924,30 @@ function __wbg_get_imports() {
3722
3924
 
3723
3925
 
3724
3926
  //#endregion
3725
- function __wasm_bindgen_func_elem_3830(arg0, arg1, arg2) {
3927
+ function __wasm_bindgen_func_elem_3929(arg0, arg1, arg2) {
3726
3928
  _assertNum(arg0);
3727
3929
  _assertNum(arg1);
3728
- wasm.__wasm_bindgen_func_elem_3830(arg0, arg1, arg2);
3930
+ wasm.__wasm_bindgen_func_elem_3929(arg0, arg1, arg2);
3729
3931
  }
3730
3932
 
3731
- function __wasm_bindgen_func_elem_3830_96(arg0, arg1, arg2) {
3933
+ function __wasm_bindgen_func_elem_3929_101(arg0, arg1, arg2) {
3732
3934
  _assertNum(arg0);
3733
3935
  _assertNum(arg1);
3734
- wasm.__wasm_bindgen_func_elem_3830_96(arg0, arg1, arg2);
3936
+ wasm.__wasm_bindgen_func_elem_3929_101(arg0, arg1, arg2);
3735
3937
  }
3736
3938
 
3737
- function __wasm_bindgen_func_elem_8694(arg0, arg1, arg2, arg3) {
3939
+ function __wasm_bindgen_func_elem_8837(arg0, arg1, arg2, arg3) {
3738
3940
  _assertNum(arg0);
3739
3941
  _assertNum(arg1);
3740
- wasm.__wasm_bindgen_func_elem_8694(arg0, arg1, arg2, arg3);
3942
+ wasm.__wasm_bindgen_func_elem_8837(arg0, arg1, arg2, arg3);
3741
3943
  }
3742
3944
 
3743
- function __wasm_bindgen_func_elem_3829(arg0, arg1) {
3945
+ function __wasm_bindgen_func_elem_3928(arg0, arg1) {
3744
3946
  try {
3745
3947
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
3746
3948
  _assertNum(arg0);
3747
3949
  _assertNum(arg1);
3748
- wasm.__wasm_bindgen_func_elem_3829(retptr, arg0, arg1);
3950
+ wasm.__wasm_bindgen_func_elem_3928(retptr, arg0, arg1);
3749
3951
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3750
3952
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3751
3953
  if (r1) {
@@ -3756,12 +3958,12 @@ function __wasm_bindgen_func_elem_3829(arg0, arg1) {
3756
3958
  }
3757
3959
  }
3758
3960
 
3759
- function __wasm_bindgen_func_elem_8692(arg0, arg1, arg2) {
3961
+ function __wasm_bindgen_func_elem_8835(arg0, arg1, arg2) {
3760
3962
  try {
3761
3963
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
3762
3964
  _assertNum(arg0);
3763
3965
  _assertNum(arg1);
3764
- wasm.__wasm_bindgen_func_elem_8692(retptr, arg0, arg1, arg2);
3966
+ wasm.__wasm_bindgen_func_elem_8835(retptr, arg0, arg1, arg2);
3765
3967
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3766
3968
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3767
3969
  if (r1) {
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@cosmol-studio/cosmol-viewer",
3
3
  "type": "module",
4
4
  "description": "Molecular visualization tools by rust",
5
- "version": "0.6.3",
5
+ "version": "0.6.4-rc.1",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -27,6 +27,6 @@
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",
30
- "tag": "latest"
30
+ "tag": "rc"
31
31
  }
32
32
  }