Skip to content

Commit 7dba56e

Browse files
authored
Merge pull request #465 from kdvalin/prisim-box-fixes
Alias Removals
2 parents 2ad0985 + 7d19a3a commit 7dba56e

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/myr/Myr.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ class Myr {
997997
*
998998
* @param {*} params !!!DESCRIPTION NEEDED!!!
999999
*/
1000-
polyhedron = (params) => {
1000+
prism = (params) => {
10011001
let base = {
10021002
id: "poly" + this.genNewId(),
10031003
geometry: `primitive: sphere; segmentsWidth: 2; segmentsHeight: 8; phi-length: ${this.cursor.phiLength};`,
@@ -1366,12 +1366,6 @@ class Myr {
13661366
}
13671367
}
13681368

1369-
// Prism is an alias for Polyhedron
1370-
prism = this.polyhedron
1371-
1372-
// Cube is an alias for Box
1373-
cube = this.box
1374-
13751369
/********************* ANIMATIONS *********************/
13761370

13771371
/**

src/tests/Myr.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ describe("Component Renders", () => {
359359
expect(torusknot.position).toEqual({ x: 1, y: 1, z: 1 });
360360
});
361361

362-
it("polyhedron", () => {
362+
it("prism", () => {
363363
myr.els = [];
364-
let id = myr.polyhedron({
364+
let id = myr.prism({
365365
position: { x: 1, y: 1, z: 1 },
366366
rotation: { x: 1, y: 1, z: 1 },
367367
scale: { x: 1, y: 1, z: 1 }

0 commit comments

Comments
 (0)