@judah-silva/rnacanvas 0.0.7 → 0.0.8
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/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +13 -1
- package/dist/index.mjs +13 -1
- package/package.json +1 -1
- package/judah-silva-rnacanvas-0.0.6.tgz +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,16 @@ import { Mesh, TransformNode, Scene, Matrix, Nullable, Quaternion, Observer, Eng
|
|
|
8
8
|
declare class Residue extends Group<MeshObject> {
|
|
9
9
|
constructor(name: string);
|
|
10
10
|
addChild(child: MeshObject): void;
|
|
11
|
+
/**
|
|
12
|
+
* Checks if the residue has a mesh with the given uuid
|
|
13
|
+
* @param uuid
|
|
14
|
+
*/
|
|
11
15
|
hasMesh(uuid: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Cretes a material with the given color and sets it to the mesh
|
|
18
|
+
* @param color String in the format of #RRGGBB
|
|
19
|
+
*/
|
|
20
|
+
colorResidue(color: string): void;
|
|
12
21
|
}
|
|
13
22
|
|
|
14
23
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,16 @@ import { Mesh, TransformNode, Scene, Matrix, Nullable, Quaternion, Observer, Eng
|
|
|
8
8
|
declare class Residue extends Group<MeshObject> {
|
|
9
9
|
constructor(name: string);
|
|
10
10
|
addChild(child: MeshObject): void;
|
|
11
|
+
/**
|
|
12
|
+
* Checks if the residue has a mesh with the given uuid
|
|
13
|
+
* @param uuid
|
|
14
|
+
*/
|
|
11
15
|
hasMesh(uuid: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Cretes a material with the given color and sets it to the mesh
|
|
18
|
+
* @param color String in the format of #RRGGBB
|
|
19
|
+
*/
|
|
20
|
+
colorResidue(color: string): void;
|
|
12
21
|
}
|
|
13
22
|
|
|
14
23
|
/**
|
package/dist/index.js
CHANGED
|
@@ -312,7 +312,10 @@ var Residue = class extends Group {
|
|
|
312
312
|
child.setParent(this);
|
|
313
313
|
this._children.add(child);
|
|
314
314
|
}
|
|
315
|
-
|
|
315
|
+
/**
|
|
316
|
+
* Checks if the residue has a mesh with the given uuid
|
|
317
|
+
* @param uuid
|
|
318
|
+
*/
|
|
316
319
|
hasMesh(uuid) {
|
|
317
320
|
let found = false;
|
|
318
321
|
this._children.forEach((child) => {
|
|
@@ -322,6 +325,15 @@ var Residue = class extends Group {
|
|
|
322
325
|
});
|
|
323
326
|
return found;
|
|
324
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
* Cretes a material with the given color and sets it to the mesh
|
|
330
|
+
* @param color String in the format of #RRGGBB
|
|
331
|
+
*/
|
|
332
|
+
colorResidue(color) {
|
|
333
|
+
this._children.forEach((child) => {
|
|
334
|
+
child.createAndSetMaterial(color);
|
|
335
|
+
});
|
|
336
|
+
}
|
|
325
337
|
};
|
|
326
338
|
|
|
327
339
|
// src/3D/MeshObject.ts
|
package/dist/index.mjs
CHANGED
|
@@ -255,7 +255,10 @@ var Residue = class extends Group {
|
|
|
255
255
|
child.setParent(this);
|
|
256
256
|
this._children.add(child);
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
/**
|
|
259
|
+
* Checks if the residue has a mesh with the given uuid
|
|
260
|
+
* @param uuid
|
|
261
|
+
*/
|
|
259
262
|
hasMesh(uuid) {
|
|
260
263
|
let found = false;
|
|
261
264
|
this._children.forEach((child) => {
|
|
@@ -265,6 +268,15 @@ var Residue = class extends Group {
|
|
|
265
268
|
});
|
|
266
269
|
return found;
|
|
267
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* Cretes a material with the given color and sets it to the mesh
|
|
273
|
+
* @param color String in the format of #RRGGBB
|
|
274
|
+
*/
|
|
275
|
+
colorResidue(color) {
|
|
276
|
+
this._children.forEach((child) => {
|
|
277
|
+
child.createAndSetMaterial(color);
|
|
278
|
+
});
|
|
279
|
+
}
|
|
268
280
|
};
|
|
269
281
|
|
|
270
282
|
// src/3D/MeshObject.ts
|
package/package.json
CHANGED
|
Binary file
|