Home Reference Source
import {WrappedObject} from './api/WrappedObject.js'
public class | source

WrappedObject

Indirect Subclass:

Base class for all objects that wrap Sketch classes.

Static Method Summary

Static Public Methods
public static

tests(): dictionary

Return a list of tests to run for this class.

Constructor Summary

Public Constructor
public

constructor(object: Object)

Return a new wrapped object for a given Sketch model object.

Member Summary

Public Members
public get

id: string: *

Returns the object ID of the wrapped Sketch model object.

public get

Returns the wrapped Sketch object.

Static Public Methods

public static tests(): dictionary source

Return a list of tests to run for this class.

Return:

dictionary

A dictionary containing the tests to run. Each key is the name of a test, each value is a function which takes a Tester instance.

Public Constructors

public constructor(object: Object) source

Return a new wrapped object for a given Sketch model object.

Params:

NameTypeAttributeDescription
object Object

The Sketch model object to wrap.

Public Members

public get id: string: * source

Returns the object ID of the wrapped Sketch model object.

Return:

string

The id.

public get sketchObject: * source

Returns the wrapped Sketch object.

See something wrong or incomplete? Improve this page.