@shards-design/core
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -217,12 +217,13 @@ import { CSG, Mesh, MeshBuilder, Vector3 } from '@babylonjs/core' | ||
constructor( | ||
name: string = 'cylinder', | ||
options: Parameters<typeof MeshBuilder.CreateCylinder>[1] & { | ||
name?: string | ||
anchor?: Vector3 | ||
}, | ||
) { | ||
const mesh = MeshBuilder.CreateCylinder(name, options) | ||
const { name = 'cylinder', anchor, ...rest } = options | ||
const mesh = MeshBuilder.CreateCylinder(name, rest) | ||
super(name, mesh) | ||
this.anchor = options?.anchor || Vector3.Zero() | ||
this.anchor = anchor || Vector3.Zero() | ||
placeAnchor(mesh, this.anchor) | ||
@@ -229,0 +230,0 @@ } |
{ | ||
"name": "@shards-design/core", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17761
555