You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5
Original file line number
Diff line number
Diff line change
@@ -30,3 +30,8 @@ You may also take a look at the `tsconfig.json` file contained in this repositor
30
30
31
31
## One last thing
32
32
These type declarations track the contents of the official documentation. If an issue with the type declarations stems from an issue with the official documentation, then the type declaration files will be fixed once the issue is addressed in the documentation. This is intentional so as to keep the type declarations both maintainable and in sync with the documentation.
33
+
34
+
A few notable exceptions include:
35
+
-`scenegraph.SceneNode` and `scenegraph.RootNode`, are documented as classes, but implemented as interfaces (in the TypeScript-sense, i.e., without a constructor), which is how they get declared in the typings
36
+
- To avoid ambiguity with the *DOM*`Selection` type, the interface [`Selection`](https://adobexdplatform.com/plugin-docs/reference/selection.html) is implemented under the name `XDSelection` (in the global namespace), here.
37
+
- The `LinearGradient` type is incorrectly documented as [`LinearGradientFill`](https://adobexdplatform.com/plugin-docs/reference/LinearGradientFill.html). This is implemented "the right way" in the typings.
* Type of gradient color element: linear gradient or radial gradient
@@ -37,7 +37,7 @@ declare module 'assets' {
37
37
*/
38
38
gradientType: GradientType;
39
39
/**
40
-
* Array of color stops used in the gradient, where stop >= 0 and <= 1, and the values are strictly increasing. Same format as the colorStops property of a LinearGradientFill object.
40
+
* Array of color stops used in the gradient, where stop >= 0 and <= 1, and the values are strictly increasing. Same format as the colorStops property of a LinearGradient object.
41
41
*/
42
42
colorStops: Array<{stop: number,color: Color}>
43
43
}
@@ -132,7 +132,7 @@ declare module 'assets' {
132
132
* @param colorAssets The color assets
133
133
* @returns {number} number of assets added (may be less than requested if duplicates already exist)
* Object representing the current selection state and edit context. Also available as the first argument passed to your plugin command handler function.
0 commit comments