CLASSES
TagsA - Z

Group2D

Description

class Group2D extends Prim2DBase

Constructor

new Group2D(settings)

Create an Logical or Renderable Group.

Parameters

Name Type Description
optional settings { parent: Prim2DBase, children: Array<Prim2DBase>, id: string, position: Vector2, x: number, y: number, scale: number, scaleX: number, scaleY: number, dontInheritParentScale: boolean, trackNode: Node, opacity: number, zOrder: number, origin: Vector2, size: Size, width: number, height: number, cacheBehavior: number, layoutEngine: LayoutEngineBase, string: string, isVisible: boolean, isPickable: boolean, isContainer: boolean, childrenFlatZOrder: boolean, marginTop: number, string: string, marginLeft: number, string: string, marginRight: number, string: string, marginBottom: number, string: string, margin: number, string: string, marginHAlignment: number, marginVAlignment: number, marginAlignment: string, paddingTop: number, string: string, paddingLeft: number, string: string, paddingRight: number, string: string, paddingBottom: number, string: string, padding: string } a combination of settings, possible ones are

Members

static GROUP2D_PROPCOUNT : number

static sizeProperty : Prim2DPropInfo

static actualSizeProperty : Prim2DPropInfo

static GROUPCACHEBEHAVIOR_FOLLOWCACHESTRATEGY : number

Default behavior, the group will use the caching strategy defined at the Canvas Level

static GROUPCACHEBEHAVIOR_DONTCACHEOVERRIDE : number

When used, this group's content won't be cached, no matter which strategy used.

If the group is part of a WorldSpace Canvas, its content will be drawn in the Canvas cache bitmap.

static GROUPCACHEBEHAVIOR_CACHEINPARENTGROUP : number

When used, the group's content will be cached in the nearest cached parent group/canvas

static GROUPCACHEBEHAVIOR_NORESIZEONSCALE : number

You can specify this behavior to any cached Group2D to indicate that you don't want the cached content to be resized when the Group's actualScale is changing. It will draw the content stretched or shrink which is faster than a resize. This setting is obviously for performance consideration, don't use it if you want the best rendering quality