mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Update unsquare way fix annotations
This commit is contained in:
@@ -66,7 +66,7 @@ export function validationUnsquareWay(context) {
|
||||
// use same degree threshold as for detection
|
||||
var autoAction = actionOrthogonalize(entity.id, context.projection, undefined, degreeThreshold);
|
||||
autoAction.transitionable = false; // when autofixing, do it instantly
|
||||
autoArgs = [autoAction, t('operations.orthogonalize.annotation.area')];
|
||||
autoArgs = [autoAction, t('operations.orthogonalize.annotation.feature.single')];
|
||||
}
|
||||
|
||||
return [new validationIssue({
|
||||
@@ -91,7 +91,7 @@ export function validationUnsquareWay(context) {
|
||||
// use same degree threshold as for detection
|
||||
context.perform(
|
||||
actionOrthogonalize(entityId, context.projection, undefined, degreeThreshold),
|
||||
t('operations.orthogonalize.annotation.area')
|
||||
t('operations.orthogonalize.annotation.feature.single')
|
||||
);
|
||||
// run after the squaring transition (currently 150ms)
|
||||
window.setTimeout(function() { completionHandler(); }, 175);
|
||||
|
||||
Reference in New Issue
Block a user