@aspicio/core
Advanced tools
+30
-1
@@ -555,2 +555,12 @@ //#region src/model/types.d.ts | ||
| //#region src/parse/parse.d.ts | ||
| /** | ||
| * A parse failure phrased for a person. dxf-parser's own messages are library | ||
| * internals that mislead — "Empty file" fires for any single-line non-empty | ||
| * input, and "Unexpected end of input: EOF group not read…" is jargon — so we | ||
| * never surface them (PARSE-12). Callers on every surface (viewer, API, MCP) | ||
| * show `message` directly. | ||
| */ | ||
| declare class DxfParseError extends Error { | ||
| constructor(message: string); | ||
| } | ||
| /** Parse DXF text into the normalized Aspicio document model. */ | ||
@@ -646,2 +656,21 @@ declare function parseDxf(text: string): DxfDocument; | ||
| //#endregion | ||
| //#region src/layers.d.ts | ||
| /** | ||
| * A layer with no rendered entities — the LAYER-table entries (the default | ||
| * "0", "Defpoints", …) that no drawn geometry references. `entityCount` counts | ||
| * only entities that tessellated, so this also covers layers whose entities | ||
| * were all skipped (unsupported). | ||
| * | ||
| * The single definition lives here so every presentation surface — the demo | ||
| * sidebar and the in-chat viewer widget — classifies layers the same way and | ||
| * can't drift. | ||
| */ | ||
| declare function isEmptyLayer(layer: LayerInfo): boolean; | ||
| /** Split layers into those with rendered geometry and the empty ones (see | ||
| * {@link isEmptyLayer}), preserving the original order within each group. */ | ||
| declare function partitionLayers(layers: readonly LayerInfo[]): { | ||
| rendered: LayerInfo[]; | ||
| empty: LayerInfo[]; | ||
| }; | ||
| //#endregion | ||
| //#region src/camera/camera2d.d.ts | ||
@@ -806,2 +835,2 @@ /** | ||
| //#endregion | ||
| export { type ArcEntity, type BlockDef, type Bounds, Camera2D, type CircleEntity, type DimensionEntity, type DrawingSummary, type DxfDocument, type DxfSource, DxfViewer, type DxfViewerOptions, type EllipseEntity, type Entity, type EntityHandler, type EntityHit, type EntityInfo, type EntityType, type FitViewOptions, type GestureOptions, type HatchEntity, type InsertEntity, type LayerGeometry, type LayerInfo, type LayerSummary, type Layout, type LineEntity, type LineTypeDef, type PickedEntity, type Point2, type Point3, type PointEntity, type PolylineEntity, type ShortcutHandlers, type ShortcutViewer, SnapIndex, type SnapKind, type SnapResult, type SolidEntity, type SplineEntity, type SvgExportOptions, type TessellateOptions, type Tessellation, type TessellationContext, type TextEntity, type TextHAlign, type TextLayoutOptions, type TextVAlign, VERSION, type ViewState, type ViewerEvent, type ViewerStats, type Viewport, attachGestures, attachShortcuts, binaryDxfToText, buildSnapIndex, dashPolyline, decodeTextSpecials, describeDrawing, describeEntity, isBinaryDxf, layoutText, niceLength, parseDxf, parseDxfBytes, pickEntity, pickLayer, registerEntityHandler, sampleSpline, stripMText, tessellate, tessellateLayout, tessellationToSvg, triangulate, unitLabel }; | ||
| export { type ArcEntity, type BlockDef, type Bounds, Camera2D, type CircleEntity, type DimensionEntity, type DrawingSummary, type DxfDocument, DxfParseError, type DxfSource, DxfViewer, type DxfViewerOptions, type EllipseEntity, type Entity, type EntityHandler, type EntityHit, type EntityInfo, type EntityType, type FitViewOptions, type GestureOptions, type HatchEntity, type InsertEntity, type LayerGeometry, type LayerInfo, type LayerSummary, type Layout, type LineEntity, type LineTypeDef, type PickedEntity, type Point2, type Point3, type PointEntity, type PolylineEntity, type ShortcutHandlers, type ShortcutViewer, SnapIndex, type SnapKind, type SnapResult, type SolidEntity, type SplineEntity, type SvgExportOptions, type TessellateOptions, type Tessellation, type TessellationContext, type TextEntity, type TextHAlign, type TextLayoutOptions, type TextVAlign, VERSION, type ViewState, type ViewerEvent, type ViewerStats, type Viewport, attachGestures, attachShortcuts, binaryDxfToText, buildSnapIndex, dashPolyline, decodeTextSpecials, describeDrawing, describeEntity, isBinaryDxf, isEmptyLayer, layoutText, niceLength, parseDxf, parseDxfBytes, partitionLayers, pickEntity, pickLayer, registerEntityHandler, sampleSpline, stripMText, tessellate, tessellateLayout, tessellationToSvg, triangulate, unitLabel }; |
+1
-1
| { | ||
| "name": "@aspicio/core", | ||
| "version": "0.10.0", | ||
| "version": "0.11.0", | ||
| "description": "Aspicio — a TypeScript DXF viewer library (WebGL, mobile-first).", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/frontsail-ai/aspicio/tree/master/packages/core#readme", |
Sorry, the diff of this file is too big to display
150522
2%3292
1.45%