/
CurveTypes.ts
40 lines (34 loc) · 1.47 KB
/
CurveTypes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Curve
*/
import type { BagOfCurves, CurveCollection } from "./CurveCollection";
import type { CurvePrimitive } from "./CurvePrimitive";
import type { Loop } from "./Loop";
import type { Path } from "./Path";
import type { ParityRegion } from "./ParityRegion";
import type { UnionRegion } from "./UnionRegion";
/**
* Union type for `GeometryQuery` classes that have contain curves, either as individual parameter space or as collections.
* @public
*/
export type AnyCurve = CurvePrimitive | CurveCollection;
/**
* Union type for `GeometryQuery` classes that bound (planar) regions.
* @public
*/
export type AnyRegion = Loop | ParityRegion | UnionRegion;
/**
* Union type for a general curve chain, or a `BagOfCurves` understood to be a collection of unrelated chains.
* @public
* @deprecated in 4.x. Use AnyChain | undefined.
*/
export type ChainTypes = CurvePrimitive | Path | BagOfCurves | Loop | undefined;
/**
* Union type for a general curve chain, or a `BagOfCurves` understood to be a collection of unrelated chains.
* @public
*/
export type AnyChain = CurvePrimitive | Path | BagOfCurves | Loop;