Skip to content
Permalink
Browse files

XD 27 updates

  • Loading branch information
peterflynn committed Feb 11, 2020
1 parent e2c8707 commit 07abf2c329f783a3014d82ba4992e3c99fbe63aa
Showing with 25 additions and 0 deletions.
  1. +9 −0 changes.md
  2. +16 −0 reference/scenegraph.md
@@ -1,5 +1,14 @@
# Change Log

XD Release 27.0.12 (February 2020)
-------------------------------------
XD 27 is a minor update for plugin developers, with one new added API:

* Get and set [`SceneNode.blendMode`](./reference/scenegraph.md#SceneNode-blendMode)

[Read more about XD 27 new features for end users on the Adobe blog](https://theblog.adobe.com/announcing-mac-os-voice-control-adobe-xd).


XD Release 26.0.12 (January 2020)
-------------------------------------

@@ -136,6 +136,7 @@ Base class of all scenegraph nodes. Nodes will always be an instance of some _su
* *[.selected](#SceneNode-selected) : <code>boolean</code>*
* *[.visible](#SceneNode-visible) : <code>boolean</code>*
* *[.opacity](#SceneNode-opacity) : <code>number</code>*
* *[.blendMode](#SceneNode-blendMode) : <code>string</code>*
* *[.transform](#SceneNode-transform) : <code>!Matrix</code>*
* *[.translation](#SceneNode-translation) : <code>!{x:number, y:number}</code>*
* *[.rotation](#SceneNode-rotation) : <code>number</code>*
@@ -258,6 +259,21 @@ Node's opacity setting. The overall visual opacity seen in the document is deter

* * *

<a name="SceneNode-blendMode"></a>

### *sceneNode.blendMode : <code>string</code>*
**Default**: `BLEND_MODE_PASSTHROUGH`
**Since**: XD 27

Blend mode determines how a node is composited onto the content below it.

_Note:_ for leaf nodes (GraphicNode), the XD UI may show leaf nodes as blend mode "Normal" even when the underlying value is `BLEND_MODE_PASSTHROUGH`. This is because "Pass Through" and "Normal" are essentially equivalent for leaf nodes -- they only differ
in appearance when a node has children.

**Kind**: instance property of [<code>SceneNode</code>](#SceneNode)

* * *

<a name="SceneNode-transform"></a>

### *sceneNode.transform : <code>\![Matrix](Matrix.md)</code>*

4 comments on commit 07abf2c

@ericdrobinson

This comment has been minimized.

Copy link

ericdrobinson replied Feb 12, 2020

@peterflynn The only documented blend mode is BLEND_MODE_PASSTHROUGH. What are the other available modes for this property?

@peterflynn

This comment has been minimized.

Copy link
Contributor Author

peterflynn replied Feb 12, 2020

@ericdrobinson a list of symbolic constants for the values of this will be coming in the next release, but unfortunately didn't make it in time for XD 27. For now, you can look at the dropdown in XD's UI to see the full list of possible values and read this API to see what string value each one corresponds to.

@ericdrobinson

This comment has been minimized.

Copy link

ericdrobinson replied Feb 13, 2020

For now, you can look at the dropdown in XD's UI to see the full list of possible values and read this API to see what string value each one corresponds to.

To be clear, you are suggesting the following:

  1. Create a simple plugin that, when run, outputs the value returned by the API as accessed on an appropriate (non-leaf) SceneNode element.
  2. Set the blend mode on the SceneNode to something new.
  3. Run the plugin.
  4. Repeat from step 2 until all options are exhausted.

Is this correct?

@peterflynn

This comment has been minimized.

Copy link
Contributor Author

peterflynn replied Feb 14, 2020

Yep! Or you can wait until XD's March release when the list of values will be better formalized.

Please sign in to comment.
You can’t perform that action at this time.