Skip to content

Commit 843c52d

Browse files
committed
fix(oscillator): Improve defaults
1 parent 28f843c commit 843c52d

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

types/oscillator/src/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
order: ['oscillators', 'analyses', 'run'],
2+
order: ['run', 'oscillators', 'analyses'],
33
views: {
44
oscillators: {
55
size: -1,

types/oscillator/src/widgets/GaussianVTKViewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function createCubePipeline() {
5252
}
5353

5454
function createSpherePipeline(osc) {
55-
const source = vtkSphereSource.newInstance();
55+
const source = vtkSphereSource.newInstance({ phiResolution: 60, thetaResolution: 60 });
5656
const actor = vtkActor.newInstance();
5757
const mapper = vtkMapper.newInstance();
5858

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import ViewerWidget from './ViewerWidget';
2+
3+
function registerWidgets(Simput) {
4+
if (Simput.registerWidget) {
5+
Simput.registerWidget('ViewerWidget', ViewerWidget);
6+
}
7+
}
8+
9+
if (typeof window !== 'undefined' && window.Simput) {
10+
registerWidgets(window.Simput);
11+
}

0 commit comments

Comments
 (0)