-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check user setting boundaries in reducer to avoid invalid values (#3861)
* check user setting boundaries in reducer to avoid invalid values * update changelog * avoid double definition of user settings boundaries * do not round zoom in url hash * send rendering errors to airbrake * avoid remount of controller by setting proper error state in componentDidCatch
- Loading branch information
1 parent
6253075
commit 1acfc15
Showing
20 changed files
with
180 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// @flow | ||
|
||
export const userSettings = { | ||
clippingDistance: { type: "number", minimum: 1, maximum: 12000 }, | ||
clippingDistanceArbitrary: { type: "number", minimum: 1, maximum: 127 }, | ||
crosshairSize: { type: "number", minimum: 0.05, maximum: 0.5 }, | ||
displayCrosshair: { type: "boolean" }, | ||
displayScalebars: { type: "boolean" }, | ||
dynamicSpaceDirection: { type: "boolean" }, | ||
keyboardDelay: { type: "number", minimum: 0, maximum: 500 }, | ||
mouseRotateValue: { type: "number", minimum: 0.0001, maximum: 0.02 }, | ||
moveValue: { type: "number", minimum: 30, maximum: 14000 }, | ||
moveValue3d: { type: "number", minimum: 30, maximum: 14000 }, | ||
newNodeNewTree: { type: "boolean" }, | ||
highlightCommentedNodes: { type: "boolean" }, | ||
// The node radius is the actual radius of the node in nm, it's dependent on zoom and dataset scale | ||
nodeRadius: { type: "number", minimum: 1, maximum: 5000 }, | ||
overrideNodeRadius: { type: "boolean" }, | ||
// The particle size is measured in pixels - it's independent of zoom and dataset scale | ||
particleSize: { type: "number", minimum: 1, maximum: 20 }, | ||
radius: { type: "number", minimum: 1, maximum: 5000 }, | ||
rotateValue: { type: "number", minimum: 0.001, maximum: 0.08 }, | ||
sortCommentsAsc: { type: "boolean" }, | ||
sortTreesByName: { type: "boolean" }, | ||
sphericalCapRadius: { type: "number", minimum: 50, maximum: 500 }, | ||
tdViewDisplayPlanes: { type: "boolean" }, | ||
hideTreeRemovalWarning: { type: "boolean" }, | ||
fourBit: { type: "boolean" }, | ||
interpolation: { type: "boolean" }, | ||
quality: { type: "number", enum: [0, 1, 2] }, | ||
loadingStrategy: { enum: ["BEST_QUALITY_FIRST", "PROGRESSIVE_QUALITY"] }, | ||
segmentationOpacity: { type: "number", minimum: 0, maximum: 100 }, | ||
highlightHoveredCellId: { type: "boolean" }, | ||
zoom: { type: "number", minimum: 0.005 }, | ||
renderMissingDataBlack: { type: "boolean" }, | ||
brushSize: { type: "number", minimum: 5, maximum: 5000 }, | ||
layoutScaleValue: { type: "number", minimum: 1, maximum: 5 }, | ||
autoSaveLayouts: { type: "boolean" }, | ||
}; | ||
|
||
export default { | ||
$schema: "http://json-schema.org/draft-06/schema#", | ||
definitions: { | ||
"types::UserSettings": { | ||
type: ["object", "null"], | ||
properties: userSettings, | ||
additionalProperties: false, | ||
}, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.