Update OVERVIEW.md
Fixed the superscript reference
Gaurav Gupta committed
Mar 3, 2019 at 18:29 UTC
f94401c10e6a5ec1aa52f70cb591bec66bdec3fc
1 file changed
+3
-3
OVERVIEW.md
+3
-3
@@ -110,9 +110,9 @@ The frontend stores its information about the tree in a map of id to objects wit
110
* depth: `number` <sup>1</sup>
111
* weight: `number` <sup>2</sup>
112
113
-<sup>1</sup> The `weight` of an element is the number of elements (including itself) below it in the tree. We cache this property so that we can quickly determine the total number of Elements as well as to find the Nth element within that set. (This enables us to use windowing.) This value needs to be adjusted each time elements are added or removed from the tree, but we amortize this over time to avoid any big performance hits when rendering the tree.
113
+<sup>1</sup> The `depth` value determines how much padding/indentation to use for the element when rendering it in the Elements panel. (This preserves the appearance of a nested tree, even though the view is a flat list.)
114
115
-The `depth` value determines how much padding/indentation to use for the element when rendering it in the Elements panel. (This preserves the appearance of a nested tree, even though the view is a flat list.)
115
+<sup>2</sup> The `weight` of an element is the number of elements (including itself) below it in the tree. We cache this property so that we can quickly determine the total number of Elements as well as to find the Nth element within that set. (This enables us to use windowing.) This value needs to be adjusted each time elements are added or removed from the tree, but we amortize this over time to avoid any big performance hits when rendering the tree.
116
117
### Finding the element at index N
118
@@ -159,4 +159,4 @@ while (index !== currentWeight) {
159
}
160
}
161
}
162
-```
\ No newline at end of file
162
+```