UNPKG

2.79 kBMarkdownView Raw
1# Position Schema
2
3```txt
4https://ns.adobe.com/helix/pipeline/position
5```
6
7Marks the position of an AST node in the original text flow
8
9
10| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
11| :------------------ | ---------- | ------ | ------------ | :---------------- | --------------------- | ------------------- | ------------------------------------------------------------------- |
12| Can be instantiated | No | Stable | No | Forbidden | Forbidden | none | [position.schema.json](position.schema.json "open original schema") |
13
14## Position Type
15
16`object` ([Position](position.md))
17
18# Position Properties
19
20| Property | Type | Required | Nullable | Defined by |
21| :---------------- | -------- | -------- | -------------- | :------------------------------------------------------------------------------------------------------------------------------- |
22| [start](#start) | `object` | Optional | cannot be null | [Position](position-properties-text-coordinates.md "https://ns.adobe.com/helix/pipeline/textcoordinates#/properties/start") |
23| [end](#end) | `object` | Optional | cannot be null | [Position](position-properties-text-coordinates.md "https://ns.adobe.com/helix/pipeline/textcoordinates#/properties/end") |
24| [indent](#indent) | `array` | Optional | cannot be null | [Position](position-properties-indent.md "https://ns.adobe.com/helix/pipeline/position#/properties/indent") |
25
26## start
27
28A position in a text document
29
30
31`start`
32
33- is optional
34- Type: `object` ([Text Coordinates](position-properties-text-coordinates.md))
35- cannot be null
36- defined in: [Position](position-properties-text-coordinates.md "https://ns.adobe.com/helix/pipeline/textcoordinates#/properties/start")
37
38### start Type
39
40`object` ([Text Coordinates](position-properties-text-coordinates.md))
41
42## end
43
44A position in a text document
45
46
47`end`
48
49- is optional
50- Type: `object` ([Text Coordinates](position-properties-text-coordinates.md))
51- cannot be null
52- defined in: [Position](position-properties-text-coordinates.md "https://ns.adobe.com/helix/pipeline/textcoordinates#/properties/end")
53
54### end Type
55
56`object` ([Text Coordinates](position-properties-text-coordinates.md))
57
58## indent
59
60
61
62
63`indent`
64
65- is optional
66- Type: `array`
67- cannot be null
68- defined in: [Position](position-properties-indent.md "https://ns.adobe.com/helix/pipeline/position#/properties/indent")
69
70### indent Type
71
72`array`