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>, };| field | type | optional | class | doc |
|---|---|---|---|---|
dimensions | Array<RadialDimensionEntity> | no | geometry | geometry — 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>, };| field | type | optional | class | doc |
|---|---|---|---|---|
arc | MeasuredArc | no | geometry | geometry — the measured circle or arc. |
angle | number | no | geometry | geometry — radians, in the arc's own x/y frame. |
style | DimensionStyle | yes | intent | intent — embedded dimension style. |
text | string | yes | intent | intent — overrides the formatted measured value. |
attributes | Record<string, unknown> | yes | intent | intent — 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, };| field | type | optional | class | doc |
|---|---|---|---|---|
fontSize | number | yes | intent | intent — text size in points on screen (SketchUp's dimension font size); the text keeps that size at any zoom. |
endpoint | EndpointStyle | yes | intent | intent — how each end of the mark is drawn (SketchUp's dimension endpoint). |
endpointSize | number | yes | intent | intent — endpoint length in points on screen; kept at any zoom. |
decimals | number | yes | intent | intent — decimal places shown. |
rounding | number | yes | intent | intent — rounds the measured value to this increment before display. |
textSuffix | string | yes | intent | intent — 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], };| field | type | optional | class | doc |
|---|---|---|---|---|
center | [number, number, number] | no | geometry | geometry — arc/circle center, mm. |
radius | number | no | geometry | geometry — arc/circle radius, mm. |
xAxis | [number, number, number] | no | geometry | geometry — the arc's unit x axis. |
yAxis | [number, number, number] | no | geometry | geometry — 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".