Skip to content
ParaShape

Radial dimension

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

RadialDimensionRecord

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 { RadialDimensionEntity } from "./RadialDimensionEntity.js";

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

RadialDimensionEntity

Used by: RadialDimensionRecord.

// 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";
import type { MeasuredArc } from "./MeasuredArc.js";

export type RadialDimensionEntity = { 
/**
 * geometry — the measured circle or arc.
 */
arc: MeasuredArc, 
/**
 * geometry — radians, in the arc's own x/y frame.
 */
angle: 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
arcMeasuredArcnogeometrygeometry — the measured circle or arc.
anglenumbernogeometrygeometry — radians, in the arc's own x/y frame.
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.

MeasuredArc

geometry — the measured circle/arc, as center + radius + in-plane axes (this engine has no standalone ArcCurve type outside a Curve chain, so the frame is spelled out here rather than reused from one).

Used by: RadialDimensionEntity.

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

/**
 * geometry — the measured circle/arc, as center + radius + in-plane axes
 * (this engine has no standalone `ArcCurve` type outside a `Curve` chain,
 * so the frame is spelled out here rather than reused from one).
 */
export type MeasuredArc = { 
/**
 * geometry — arc/circle center, mm.
 */
center: [number, number, number], 
/**
 * geometry — arc/circle radius, mm.
 */
radius: number, 
/**
 * geometry — the arc's unit x axis.
 */
xAxis: [number, number, number], 
/**
 * geometry — the arc's unit y axis.
 */
yAxis: [number, number, number], };
fieldtypeoptionalclassdoc
center[number, number, number]nogeometrygeometry — arc/circle center, mm.
radiusnumbernogeometrygeometry — arc/circle radius, mm.
xAxis[number, number, number]nogeometrygeometry — the arc's unit x axis.
yAxis[number, number, number]nogeometrygeometry — the arc's unit y axis.

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