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>, };| field | type | optional | class | doc |
|---|---|---|---|---|
dimensions | Array<AngularDimensionEntity> | no | geometry | geometry — 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>, };| field | type | optional | class | doc |
|---|---|---|---|---|
vertex | [number, number, number] | no | geometry | geometry — the measured angle's vertex, mm. |
point1 | [number, number, number] | no | geometry | geometry — a point on the arm the measured sweep starts from, mm. |
point2 | [number, number, number] | no | geometry | geometry — a point on the arm the measured sweep ends at, mm. |
arcPoint | [number, number, number] | no | geometry | geometry — a point the dimension arc passes through, mm. |
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. |
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".