Files
DOSSIER/src/core/index.ts
T
Claude 5530089eea [185] Navigation wie Archicad: Geschosswechsel behält Zoom, Cmd+5/6 Geschoss, Cmd+3/4 Auswahl im 3D
Grundriss: Geschosse teilen den Einpass-Schlüssel (planFitKey, PlanView fitKey), Wechsel behält
Ausschnitt und Massstab exakt. Cmd/Ctrl+5/6 Geschoss tiefer/höher im Grundriss- und 3D-Reiter.
Cmd/Ctrl+3 zeigt nur die Auswahl im 3D (Reiter „3D · Auswahl“, Kamera passt ein; ohne Auswahl alles),
Cmd/Ctrl+4 blendet die Auswahl im 3D aus. Zustand rein UI (state/view3dFilter.ts). Kern:
model3d::ElementSelection im ClassFilter (only/hideIds für Teile, Cache, Pick). Kürzel umbelegbar,
natives Menü Ansicht. PlanViewHandle.pxPerMeter liest die aktuelle viewBox.
2026-11-11 19:39:51 +00:00

270 lines
5.4 KiB
TypeScript

// Fassade des Kerns für die Hülle (Phase A der Kern/UI-Trennung, docs/core-ui-split.md).
// Dünne Durchreichung, Namen 1:1; die Hülle importiert Plan-/Geometrie-Funktionen nur noch von hier.
// Erzeugt mit scripts/core-facade.py — neue Einträge von Hand ergänzen.
export {
bulgeArc,
bulgeArcPoints,
bulgePolylinePoints,
bulgeFromSagittaPoint,
bulgePointAt,
wallArcBand,
hasRealBulge,
pointOnCircle,
} from "../geometry/bulge";
export {
sampleBezierChain,
sampleCatmullRom,
sampleUniformBSpline,
} from "../geometry/curves";
export {
type DrawingIndex,
buildDrawingIndex,
drawingsWithinDistance,
nearestInDrawings,
pointSegDist as pointSegDist__geometry_drawingIndex,
} from "../geometry/drawingIndex";
export {
type ModelSnapCand,
type ModelSnapResult,
holdModelSnap,
queryModelSnap,
} from "../geometry/modelSnap";
export {
vecEqual,
} from "../geometry/kernel2d";
export {
LINE_PRESETS,
type LinePresetKey,
type LineSegment,
type LineSegmentType,
dashHasDot,
dashToSegments,
presetOfDash,
segmentsToDash,
} from "../geometry/lineSegments";
export * as polygonBool from "../geometry/polygonBool";
export {
nearestPolylineTarget,
toleranceFor,
} from "../geometry/polylinePoint";
export {
type PolylineVertexType,
canSetVertexType,
vertexTypeOf,
} from "../geometry/polylineVertexType";
export {
roofBaseElevation,
roofGeometry,
} from "../geometry/roof";
export {
removeRoofHole,
setRoofEdge,
} from "../geometry/roofEdges";
export type { EdgeSpec, RoofEdge } from "../geometry/roofEdges";
export {
SIA_CATEGORIES,
balance,
centroid,
roomLabelPoint,
evaluateRoom,
polygonArea,
roomsToCsv,
siaLabelFull,
} from "../geometry/roomArea";
export {
type WallSegment,
} from "../geometry/roomBoundary";
export {
IDEAL_TREAD,
MIN_STEPS,
} from "../geometry/stair";
export {
extrudedSolidSpec,
} from "../plan/extrudedSolidSpec";
export {
type CategoryDisplayResolver,
type HatchRender,
type Plan,
type PlanImage,
type UnderlayGroup,
generatePlan,
generateVisibleLevelsPlan,
materializeGreyed,
materializeUnderlay,
} from "../plan/generatePlan";
export {
drawingPrimitives,
} from "../plan/generatePlan";
export {
NO_HATCH,
type Primitive,
} from "../plan/generatePlan/shared";
export {
GpuChunkCache,
} from "../plan/glPlan/glPlanChunks";
export {
compilePrimitivesToGpu,
} from "../plan/glPlan/glPlanCompile";
export {
DASH_MM_TO_M,
buildRandomHatchRuns,
buildHatchRuns,
motifPoints,
zigzagPoints,
} from "../plan/glPlan/glPlanHatch";
export {
type BufferGl,
type GpuGeometry,
type ViewBox as ViewBox__plan_glPlan_glPlanTypes,
} from "../plan/glPlan/glPlanTypes";
export {
levelMarkerPrimitives,
levelMarksEnabled,
} from "../plan/levelMarkers";
export {
NativeTextSync,
isGpuText,
} from "../plan/nativeText";
export {
type PickKind,
categoryNameForPick,
} from "../plan/pickLabels";
export {
DRAWING_PICK_TOLERANCE,
type PickContextMesh,
type PickColumnMesh,
type PickTreeMesh,
type PickSolidMesh,
type PickOpeningMesh,
type PickStairMesh,
type PickDrawingMesh,
type PickDrawingSeg,
type PickOpening,
type PickRoof,
type PickSlab,
type PickStair,
type PickWall,
type Vec3,
} from "../plan/pickTypes";
export {
crossKindOverlayAllowed,
planUnderlayPrimitives,
} from "../plan/generatePlan";
export {
type Bounds,
expandRegion,
indexedInRegion,
regionContains,
} from "../plan/planView/cullPrimitives";
export {
HAIRLINE_PX,
type ModelRect,
PAD,
PX_PER_M,
type ViewBox as ViewBox__plan_planView_geometry,
clamp,
fitBoxFor,
meetScale,
mmToPx,
pointInPolygon,
printStrokeVb,
scaleFromView,
toScreen,
viewForCamera,
defaultViewFor,
viewForScale,
visibleEdgeRuns,
} from "../plan/planView/geometry";
export { PLAN_DASH_VAR, dashArrayCss, dashOffsetCss, fitDashToPeriod, hatchDashVb, lineDashOffsetVb, lineDashVb, ringDashVb } from "../plan/planView/dashVb";
export {
type ClientMap,
type OwnerField,
PlanPickIndex,
} from "../plan/planView/planPick";
export {
planCount,
planPrimAt,
planTextEntries,
planWithExtra,
roomStampAt,
type TextEntryPrim,
} from "../plan/planLazy";
export {
marqueeHitUnderlay,
} from "../plan/planView/underlayAccess";
export {
type ElevationOptions,
generateElevationPlan,
} from "../plan/toElevation";
export {
planSceneBin,
planToRenderScene,
} from "../plan/toRenderScene";
export {
type SectionOutput,
computeSection,
generateSectionPlan,
sameSectionInputs,
sameSectionLine,
sectionPlaneFromLevel,
sectionUAxisModel,
} from "../plan/toSection";
export { viewportLevelPlan } from "../plan/viewportPlan";
export { snapshotMono } from "../plan/viewportPlan";
export { snapshotOverrideRuleIds } from "../plan/viewportPlan";
export { snapshotTemplate } from "../plan/viewportPlan";
export { TEMPLATE_LEVEL_KEYS, linkedViewTemplate, projectWithTemplate, templateDisplay, templateLevelPatch } from "../plan/viewTemplate";
export {
draftWorldLines,
emitDrawingLineVerts,
emitSurfacePatternLines,
explodeFloorOffsets,
pickGeometry,
projectToModel3d,
projectToModel3dParts,
selectionHighlightLines,
wallMaterialColorMaps,
} from "../plan/toWalls3d";
export type { Model3dPart } from "../plan/toWalls3d";
export { hiddenClassCodes } from "../plan/toWalls3d";
export { filter3d } from "../plan/toWalls3d";
export type { Filter3d, Hide3d } from "../plan/toWalls3d";
export * from "./extra";