Skip to content
ParaShape

Angular dimension

A SceneObject whose data is { "type": "angularDimension", …AngularDimensionRecord } — the tag plus every field of AngularDimensionRecord.

AngularDimensionRecord

Used by: CellType, PieceData, RenderCell.

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { AngularDimensionEntity } from "./AngularDimensionEntity.js";

export type AngularDimensionRecord = { 
/**
 * geometry — the angular-dimension entities.
 */
dimensions: Array<AngularDimensionEntity>, };
fieldtypeoptionalclassdoc
dimensionsArray<AngularDimensionEntity>nogeometrygeometry — the angular-dimension entities.

AngularDimensionEntity

Used by: AngularDimensionRecord.

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { DimensionStyle } from "./DimensionStyle.js";

export type AngularDimensionEntity = { 
/**
 * geometry — the measured angle's vertex, mm.
 */
vertex: [number, number, number], 
/**
 * geometry — a point on the arm the measured sweep starts from, mm.
 */
point1: [number, number, number], 
/**
 * geometry — a point on the arm the measured sweep ends at, mm.
 */
point2: [number, number, number], 
/**
 * geometry — a point the dimension arc passes through, mm.
 */
arcPoint: [number, number, number], 
/**
 * intent — embedded dimension style.
 */
style?: DimensionStyle, 
/**
 * intent — overrides the formatted measured value.
 */
text?: string, 
/**
 * intent — free-form record data.
 */
attributes?: Record<string, unknown>, };
fieldtypeoptionalclassdoc
vertex[number, number, number]nogeometrygeometry — the measured angle's vertex, mm.
point1[number, number, number]nogeometrygeometry — a point on the arm the measured sweep starts from, mm.
point2[number, number, number]nogeometrygeometry — a point on the arm the measured sweep ends at, mm.
arcPoint[number, number, number]nogeometrygeometry — a point the dimension arc passes through, mm.
styleDimensionStyleyesintentintent — embedded dimension style.
textstringyesintentintent — overrides the formatted measured value.
attributesRecord<string, unknown>yesintentintent — free-form record data.

DimensionStyle

Fields dimensionRadial/dimensionAngular take whole; dimensionLinear takes this plus its own extension-line fields.

Used by: AngularDimensionEntity, RadialDimensionEntity.

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { EndpointStyle } from "./EndpointStyle.js";

/**
 * Fields `dimensionRadial`/`dimensionAngular` take whole; `dimensionLinear`
 * takes this plus its own extension-line fields.
 */
export type DimensionStyle = { 
/**
 * intent — text size in points on screen (SketchUp's dimension font
 * size); the text keeps that size at any zoom.
 */
fontSize?: number, 
/**
 * intent — how each end of the mark is drawn (SketchUp's dimension
 * endpoint).
 */
endpoint?: EndpointStyle, 
/**
 * intent — endpoint length in points on screen; kept at any zoom.
 */
endpointSize?: number, 
/**
 * intent — decimal places shown.
 */
decimals?: number, 
/**
 * intent — rounds the measured value to this increment before display.
 */
rounding?: number, 
/**
 * intent — appended after the formatted value.
 */
textSuffix?: string, };
fieldtypeoptionalclassdoc
fontSizenumberyesintentintent — text size in points on screen (SketchUp's dimension font size); the text keeps that size at any zoom.
endpointEndpointStyleyesintentintent — how each end of the mark is drawn (SketchUp's dimension endpoint).
endpointSizenumberyesintentintent — endpoint length in points on screen; kept at any zoom.
decimalsnumberyesintentintent — decimal places shown.
roundingnumberyesintentintent — rounds the measured value to this increment before display.
textSuffixstringyesintentintent — appended after the formatted value.

EndpointStyle

How an end of a dimension or leader is drawn — SketchUp's dimension endpoints (https://help.sketchup.com/en/sketchup/adding-text-labels-and-dimensions-model; Ruby ARROW_CLOSED / ARROW_OPEN / ARROW_SLASH / ARROW_DOT / ARROW_NONE). closed and dot are filled.

Used by: DimensionStyle, Endpoint, LeaderStyle, LinearDimensionStyle.

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

/**
 * How an end of a dimension or leader is drawn — SketchUp's dimension
 * endpoints (https://help.sketchup.com/en/sketchup/adding-text-labels-and-dimensions-model;
 * Ruby `ARROW_CLOSED` / `ARROW_OPEN` / `ARROW_SLASH` / `ARROW_DOT` /
 * `ARROW_NONE`). `closed` and `dot` are filled.
 */
export type EndpointStyle = "closed" | "open" | "slash" | "dot" | "none";

Values: "closed", "open", "slash", "dot", "none".

📖 2 min read