fix(editor): free paths never reshaped on attach, category zone chosen explicitly
This commit is contained in:
1 parent
f1175bb3a1
commit
a69eba569b
13 files changed
+333
-117
No files matched your search
@@ -13,12 +13,7 @@ import {
|
||||
type CommitContext,
|
||||
} from './annotations/annotationCommit'
|
||||
import { isEditable } from './annotations/geometryEdit'
|
||||
import {
|
||||
centreTriangle,
|
||||
correctedCircle,
|
||||
parseFrame,
|
||||
type Frame,
|
||||
} from './annotations/frame'
|
||||
import { correctedCircle, parseFrame, type Frame } from './annotations/frame'
|
||||
import {
|
||||
geometryAccept,
|
||||
rejectedDrawingFault,
|
||||
@@ -60,7 +55,7 @@ function clampedVertex(frame: Frame, [x, y]: Point): Point {
|
||||
/**
|
||||
* A proposal in the new frame: a point goes through the creation arithmetic (candidate
|
||||
* C), a polygon gets each vertex clamped into the frame. A path has no numbers to move:
|
||||
* it is returned as it is, and the user converts it.
|
||||
* it is returned as it is and blocks the attach (owner decision, R25).
|
||||
*/
|
||||
export function proposeGeometry(frame: Frame, geometry: Geometry): Geometry {
|
||||
if (geometry.type === 'circle') {
|
||||
@@ -74,11 +69,6 @@ export function proposeGeometry(frame: Frame, geometry: Geometry): Geometry {
|
||||
return geometry
|
||||
}
|
||||
|
||||
/** « Remplacer par un polygone » inside the temporary form: a triangle to edit. */
|
||||
export function polygonReplacement(frame: Frame): Geometry {
|
||||
return { type: 'polygon', points: centreTriangle(frame) }
|
||||
}
|
||||
|
||||
/** The annotations the refusal lists, in document order. */
|
||||
export function listedAnnotations(
|
||||
offer: RepairOffer,
|
||||
|
||||
Reference in new issue
Block a user