Compare commits
2 Commits
1.2.3
...
select-blo
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c586096fe0 | ||
![]() |
0aa70fdb14 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cadview",
|
||||
"version": "1.2.3",
|
||||
"version": "1.2.5",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"private": true,
|
||||
|
@ -10,7 +10,7 @@ export class ViewerSettings
|
||||
{
|
||||
boardMaterial: MeshBasicMaterial = boardMaterial;
|
||||
selectMaterial: MeshBasicMaterial = selectMaterial;
|
||||
|
||||
selectByPointCallback: (meshId: number) => void = () => { };
|
||||
}
|
||||
|
||||
export class Viewer
|
||||
@ -211,6 +211,10 @@ export class Viewer
|
||||
{
|
||||
this.oldMesh = mesh;
|
||||
mesh.material = this._Settings.selectMaterial;
|
||||
if (this._Settings.selectByPointCallback)
|
||||
{
|
||||
this._Settings.selectByPointCallback(mesh.id);
|
||||
}
|
||||
}
|
||||
this.m_bNeedUpdate = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user