소스 검색

Add an option to adjust the density of scale lines

master
Fen Dweller 4 년 전
부모
커밋
455441ea7f
1개의 변경된 파일25개의 추가작업 그리고 0개의 파일을 삭제
  1. +25
    -0
      macrovision.js

+ 25
- 0
macrovision.js 파일 보기

@@ -2301,6 +2301,31 @@ const settingsData = {
} }
} }
}, },
"axis-spacing": {
name: "Axis Spacing",
desc: "How frequent the axis lines are",
type: "select",
default: "standard",
options: [
"dense",
"standard",
"sparse"
],
get value() {
return config.axisSpacing;
},
set value(param) {
config.axisSpacing = param;
const factor = {
"dense": 0.5,
"standard": 1,
"sparse": 2
}[param];
config.minLineSize = factor * 100;
config.maxLineSize = factor * 150;
updateSizes();
}
},
"solid-ground": { "solid-ground": {
name: "Ground", name: "Ground",
desc: "Draw solid ground at the y=0 line", desc: "Draw solid ground at the y=0 line",


불러오는 중...
취소
저장