Skip to content

Commit cfc083f

Browse files
committed
Fix camera perspective for initial camera position
1 parent 7617fd4 commit cfc083f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/services/link-renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export default class LinkRenderer extends Service.extend({}) {
186186
pipe.remove(child);
187187
});
188188

189-
const arrowOffset = 0.8;
189+
const arrowOffset = 1;
190190
const arrowHeight = curveHeight / 2 + arrowOffset;
191191
const arrowThickness = this.appSettings.commArrowSize.value;
192192
const arrowColorHex =

app/utils/application-rendering/camera-controls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default class CameraControls {
119119

120120
const origin = keepCameraPerspective
121121
? this.perspectiveCamera.position
122-
: new Vector3(1, 1, 1);
122+
: box.max;
123123

124124
const direction = center
125125
.clone()

app/utils/settings/default-settings.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ export const defaultVizSettings: VisualizationSettings = {
189189
},
190190
// Communication Settings
191191
commThickness: {
192-
value: 0.5,
192+
value: 2.0,
193193
range: {
194194
min: 0.05,
195-
max: 1.5,
195+
max: 5.0,
196196
step: 0.05,
197197
},
198198
group: 'Communication',
@@ -201,10 +201,10 @@ export const defaultVizSettings: VisualizationSettings = {
201201
isRangeSetting: true,
202202
},
203203
commArrowSize: {
204-
value: 1.0,
204+
value: 2.0,
205205
range: {
206206
min: 0.0,
207-
max: 2.0,
207+
max: 5.0,
208208
step: 0.25,
209209
},
210210
group: 'Communication',

0 commit comments

Comments
 (0)