[K4] Merge: Zeichenbefehle im Kern (cmd_create/cmd_draw/cmd_solid), Gruppen-Zuordnung beim Zeichnen
Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
92 files changed
+4169
-4754
No files matched your search
@@ -395,6 +395,24 @@ export class ProjectDocument {
|
||||
return fromMarkedJson<T>(out);
|
||||
}
|
||||
|
||||
/**
|
||||
* Vorschau eines Zeichenbefehls (`doc_create_preview`, `cmd_create.rs`): `reqJson` = Optionen (mit
|
||||
* Nicht-endlich-Marken; `null` = dieselben wie beim letzten Aufruf), `pts` flach; Antwort
|
||||
* `[ok, nInfo, info…, Formen…]`.
|
||||
*/
|
||||
createPreview(reqJson: string | null, pts: Float64Array): Float64Array {
|
||||
if (!this.handle) return new Float64Array(0);
|
||||
return reqJson === null ? core().doc_create_preview_again(this.handle, pts) : core().doc_create_preview(this.handle, reqJson, pts);
|
||||
}
|
||||
|
||||
/** Treffer-Abfrage eines Zeichenbefehls (`doc_create_query`), JSON-Antwort. */
|
||||
createQuery<T>(req: object): T {
|
||||
if (!this.handle) throw new Error("Kern-Abfrage „createQuery“: Dokument nicht offen");
|
||||
const out = core().doc_create_query(this.handle, toMarkedJson(req));
|
||||
if (out.startsWith("\u0001")) throw new Error(out.slice(1));
|
||||
return fromMarkedJson<T>(out);
|
||||
}
|
||||
|
||||
/** Vorschau-Formen eines Befehls (`doc_cmd_preview`): flach je Form `[art, n, x0, y0, …]`. */
|
||||
cmdPreview(req: object): Float64Array {
|
||||
return this.handle ? core().doc_cmd_preview(this.handle, toMarkedJson(req)) : new Float64Array(0);
|
||||
|
||||
@@ -3,31 +3,20 @@
|
||||
// Erzeugt mit scripts/core-facade.py — neue Einträge von Hand ergänzen.
|
||||
|
||||
export {
|
||||
arcFromStartEndDirection,
|
||||
arcFromStartEndRadius,
|
||||
arcThroughPoints,
|
||||
bulgeArc,
|
||||
bulgeArcPoints,
|
||||
bulgePolylinePoints,
|
||||
bulgeFromSagittaPoint,
|
||||
bulgePointAt,
|
||||
bulgeThroughPoint,
|
||||
hasRealBulge,
|
||||
pointOnCircle,
|
||||
} from "../geometry/bulge";
|
||||
|
||||
export {
|
||||
ceilingArea,
|
||||
normalizeOutline,
|
||||
pointInOutline,
|
||||
} from "../geometry/ceiling";
|
||||
|
||||
export {
|
||||
columnFootprint,
|
||||
} from "../geometry/column";
|
||||
|
||||
export {
|
||||
ellipsePts,
|
||||
sampleBezierChain,
|
||||
sampleCatmullRom,
|
||||
sampleUniformBSpline,
|
||||
@@ -49,13 +38,6 @@ export {
|
||||
} from "../geometry/modelSnap";
|
||||
|
||||
export {
|
||||
type Fillet,
|
||||
type TangentTarget,
|
||||
filletCorner,
|
||||
offsetSegment,
|
||||
pointSegmentDistance,
|
||||
polylineEdges,
|
||||
tangentCircleCenters,
|
||||
vecEqual,
|
||||
} from "../geometry/kernel2d";
|
||||
|
||||
@@ -70,11 +52,7 @@ export {
|
||||
segmentsToDash,
|
||||
} from "../geometry/lineSegments";
|
||||
|
||||
export {
|
||||
} from "../geometry/opening";
|
||||
export { autoExteriorDimensions } from "../geometry/autoDimensions";
|
||||
export * as polygonBool from "../geometry/polygonBool";
|
||||
export type { AutoDimension } from "../geometry/autoDimensions";
|
||||
|
||||
export {
|
||||
nearestPolylineTarget,
|
||||
@@ -87,19 +65,13 @@ export {
|
||||
vertexTypeOf,
|
||||
} from "../geometry/polylineVertexType";
|
||||
|
||||
export {
|
||||
revisionCloudPts,
|
||||
} from "../geometry/revisionCloud";
|
||||
|
||||
export {
|
||||
roofBaseElevation,
|
||||
roofGeometry,
|
||||
} from "../geometry/roof";
|
||||
|
||||
export {
|
||||
addRoofHole,
|
||||
removeRoofHole,
|
||||
roofHoleWorks,
|
||||
setRoofEdge,
|
||||
} from "../geometry/roofEdges";
|
||||
export type { EdgeSpec, RoofEdge } from "../geometry/roofEdges";
|
||||
@@ -116,14 +88,11 @@ export {
|
||||
|
||||
export {
|
||||
type WallSegment,
|
||||
roomFromPointInside,
|
||||
} from "../geometry/roomBoundary";
|
||||
|
||||
export {
|
||||
IDEAL_TREAD,
|
||||
MIN_STEPS,
|
||||
defaultStepCount,
|
||||
stairGeometry,
|
||||
} from "../geometry/stair";
|
||||
|
||||
export {
|
||||
|
||||
Reference in new issue
Block a user