Skip to content

Commit

Permalink
chore: Upgrade PIXI to 6.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayfri committed Mar 27, 2022
1 parent 2af57c4 commit dfa5743
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/main/kotlin/pixi/typings/core/typings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ abstract external class AbstractRenderer(type: RENDERER_TYPE = definedExternally
region: Rectangle = definedExternally
): RenderTexture

abstract fun addSystem(ClassRef: ISystemConstructor<Renderer>, name: String): AbstractRenderer /* this */
abstract fun render(displayObject: IRenderableObject, options: IRendererRenderOptions = definedExternally)
open fun destroy(removeView: Boolean = definedExternally)
open var backgroundColor: Color
Expand Down Expand Up @@ -374,9 +375,10 @@ open external class Buffer(data: IArrayBuffer = definedExternally, _static: Bool
open external class BufferResource(source: Float32Array, options: ISize) : Resource {
constructor(source: Uint8Array, options: ISize)
constructor(source: Uint16Array, options: ISize)
constructor(source: Int32Array, options: ISize)
constructor(source: Uint32Array, options: ISize)

open var data: ArrayBufferView /* Float32Array | Uint8Array | Uint16Array | Uint32Array */
open var data: ArrayBufferView /* Float32Array | Uint8Array | Uint16Array | Int32Array | Uint32Array */
override fun upload(renderer: Renderer, baseTexture: BaseTexture<Resource, IAutoDetectOptions>, glTexture: GLTexture): Boolean

override fun dispose()
Expand Down Expand Up @@ -1097,7 +1099,7 @@ open external class Renderer(options: IRendererOptions = definedExternally) : Ab
open val extract: Any

protected open fun contextChange()
open fun addSystem(ClassRef: ISystemConstructor<Renderer>, name: String): Renderer /* this */
override fun addSystem(ClassRef: ISystemConstructor<Renderer>, name: String): Renderer /* this */
override fun render(displayObject: IRenderableObject, options: IRendererRenderOptions)
open fun render(
displayObject: IRenderableObject,
Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/pixi/typings/display/typings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ open external class Container : DisplayObject {
override fun calculateBounds()
open fun getLocalBounds(rect: Rectangle = definedExternally, skipChildrenUpdate: Boolean = definedExternally): Rectangle
protected open fun _calculateBounds()
protected open fun _renderWithCulling(renderer: Renderer)
override fun render(renderer: Renderer)
protected open fun renderAdvanced(renderer: Renderer)
protected open fun _render(_renderer: Renderer)
Expand All @@ -94,6 +95,8 @@ abstract external class DisplayObject : EventEmitter {
open var alpha: Double
open var visible: Boolean
open var renderable: Boolean
open var cullable: Boolean
open var cullArea: Rectangle?
open var filterArea: Rectangle
open var filters: Array<Filter>?
open var isSprite: Boolean
Expand Down
5 changes: 3 additions & 2 deletions src/main/kotlin/pixi/typings/event/typings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import org.w3c.dom.events.UIEvent
import org.w3c.dom.events.WheelEvent
import org.w3c.dom.pointerevents.PointerEvent
import pixi.typings.Object
import pixi.typings.core.IRenderableObject
import pixi.typings.core.Renderer
import pixi.typings.display.DisplayObject
import pixi.typings.interaction.Cursor
Expand Down Expand Up @@ -161,7 +162,7 @@ external interface FederatedEventTarget : EventTarget, EventEmitter {
val children: ReadonlyArray<FederatedEventTarget>?
var interactive: Boolean
var interactiveChildren: Boolean
var hitArea: IHitArea
var hitArea: IHitArea?
}

@Suppress("MANY_CLASSES_IN_SUPERTYPE_LIST")
Expand Down Expand Up @@ -256,7 +257,7 @@ open external class FederatedWheelEvent : FederatedMouseEvent, WheelEvent {
}

external interface Renderer {
var _lastObjectRendered: DisplayObject
var _lastObjectRendered: IRenderableObject
var view: HTMLCanvasElement
var resolution: Double
var plugins: Record<String, Any>
Expand Down
3 changes: 2 additions & 1 deletion src/main/kotlin/pixi/typings/graphics/typings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ open external class Graphics(geometry: GraphicsGeometry = definedExternally) : C
override fun destroy(options: Boolean)

companion object {
var nextRoundedRectBehavior: Boolean
var _TEMP_POINT: Point
}
}
Expand Down Expand Up @@ -219,7 +220,7 @@ open external class GraphicsGeometry : BatchGeometry {
protected open fun transformPoints(points: Array<Double>, matrix: Matrix)
protected open fun addColors(colors: Array<Int>, color: Color, alpha: Double, size: Int, offset: Int = definedExternally)
protected open fun addTextureIds(textureIds: Array<Int>, id: Int, size: Int, offset: Int = definedExternally)
protected open fun addUvs(vers: Array<Double>, uvs: Array<Double>, texture: Texture<Resource>, start: Int, size: Int, matrix: Matrix = definedExternally)
protected open fun addUvs(vers: Array<Double>, uvs: Array<Double>, texture: Texture<Resource>, start: Int, size: Int, matrix: Matrix? = definedExternally)
protected open fun adjustUvs(uvs: Array<Double>, texture: Texture<Resource>, start: Int, size: Int)

companion object {
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/pixi/typings/math/typings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ open external class Rectangle(x: Double = definedExternally, y: Double = defined
open fun clone(): Rectangle
open fun copyFrom(rectangle: Rectangle): Rectangle
open fun contains(x: Double, y: Double): Boolean
open fun intersects(rectangle: Rectangle, transform: Matrix = definedExternally): Boolean
open fun pad(paddingX: Double = definedExternally, paddingY: Double = definedExternally): Rectangle /* this */
open fun fit(rectangle: Rectangle): Rectangle /* this */
open fun ceil(resolution: Double = definedExternally, eps: Double = definedExternally): Rectangle /* this */
Expand Down
3 changes: 0 additions & 3 deletions src/main/kotlin/pixi/typings/math_extras/typings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ external interface Vector2Math {
fun multiply(other: IPointData): Point
fun <T : IPointData> multiply(other: IPointData, outPoint: T): T

fun divide(other: IPointData): Point
fun <T : IPointData> divide(other: IPointData, outPoint: T): T

fun multiplyScalar(scalar: Double): Point
fun <T : IPointData> multiplyScalar(scalar: Double, outPoint: T): T

Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/pixi/typings/text/typings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ open external class Text(

companion object {
var nextLineHeightBehavior: Boolean
var experimentalLetterSpacing: Boolean
}
}

Expand Down

0 comments on commit dfa5743

Please sign in to comment.