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: changes.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# Change Log
2
2
3
+
XD Release 25.1.12 (December 2019)
4
+
-------------------------------------
5
+
6
+
XD 25 is a minor bug-fix release with no new features for end users. But it adds two small improvements for plugins:
7
+
8
+
* New [`application.activeDocument` API](./reference/application.md#module_application-activeDocument) providing information about the document.
9
+
* Fixed bug where `scenegraph.root.guid` did not return a valid guid; it now returns the same value as `application.activeDocument.guid`.
10
+
11
+
3
12
XD Release 24.0.22 (November 2019)
4
13
-------------------------------------
5
14
@@ -71,7 +80,7 @@ After a stabilization period, plugins using panel UI are now published in the Pl
71
80
### Fixes and improvements
72
81
73
82
* Fixed bugs related to `editDocument()` usage (also fixed in XD 21.1.12).
74
-
* PUT/POST requests on Windows were including an unwanted `Transfer-Encoding` header, which interfered with uploading data to services like Amazon S3.
83
+
* PUT/POST requests on Windows were including an unwanted `Transfer-Encoding` header, which interfered with uploading data to services like Amazon S3 (e.g. giving you errors related to `Content-Length`).
75
84
* Plugins can now copy text to the clipboard in response to a panel UI DOM event without needing to call `editDocument()`.
Represents the active document. Provides the document guid and current saved name.
189
+
Information about the document which this instance of the plugin is attached to.
190
+
191
+
> **Tip**
192
+
> _This does **not** indicate the frontmost "active" document window in the XD application._
193
+
> In XD, each document window [loads a separate copy of your plugin](./core/lifecycle.md#plugin-loading). When a given instance of your plugin calls this API, you will always receive information about the document that this instance of the plugin is attached to, even if it's not the active window.
190
194
191
195
**Kind**: static property of [<code>application</code>](#module_application)
| name | string | Document name as displayed in the titlebar. For untitled documents, this will be a localized string such as "Untitled-1."|
203
+
| guid | string |*Semi*-unique document identifier. Duplicating an .xd file on disk will result in two files with the same GUID. Duplicating a document via "Save As" will change its GUID; thus two *cloud* documents will never have the same GUID. The GUID of an Untitled document doesn't change when it is saved for the first time. <br><br>This returns the same value as `scenegraph.root.guid`.|
Copy file name to clipboardExpand all lines: reference/scenegraph.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,8 @@ Base class of all scenegraph nodes. Nodes will always be an instance of some _su
167
167
### *sceneNode.guid : <code>string</code>*
168
168
Returns a unique identifier for this node that stays the same when the file is closed & reopened, or if the node is moved to a different part of the document. Cut-Paste will result in a new guid, however.
169
169
170
+
The GUID of the [root node](#module_scenegraph-root) changes if the document is duplicated via Save As. See [`application.activeDocument.guid`](./application.md#module_application-activeDocument) for details.
171
+
170
172
**Kind**: instance property of [<code>SceneNode</code>](#SceneNode)
0 commit comments