pixi.js
    Preparing search index...

    Interface ViewAdvanced

    A view is something that is able to be rendered by the renderer.

    interface View {
        _roundPixels: 0 | 1;
        batched: boolean;
        bounds: BoundsData;
        containsPoint: (point: Point) => boolean;
        renderPipeId: string;
        uid: number;
        get roundPixels(): boolean;
        set roundPixels(value: boolean): void;
    }

    Implemented by

    Index

    Properties

    _roundPixels: 0 | 1

    this is an int because it is packed directly into an attribute in the shader

    batched: boolean

    whether or not this view should be batched

    bounds: BoundsData

    this is the AABB rectangle bounds of the view in local untransformed space.

    containsPoint: (point: Point) => boolean

    Checks if the point is within the view

    renderPipeId: string

    an identifier that is used to identify the type of system that will be used to render this renderable eg, 'sprite' will use the sprite system (based on the systems name

    uid: number

    a unique id for this view

    Accessors

    • get roundPixels(): boolean

      Whether or not to round the x/y position of the object.

      Returns boolean

    • set roundPixels(value: boolean): void

      if true, the view will have its position rounded to the nearest whole number

      Parameters

      • value: boolean

      Returns void