import { IParallaxLayer2dComponent, ParallaxLayer2dOpts, Point2, ResolvedParallaxLayer2dOpts } from '@gg-web-engine/core'; import { Texture, TilingSprite } from 'pixi.js'; import { PixiDisplayObjectComponent } from './pixi-display-object.component'; import { PixiGgWorld, PixiVisualTypeDocRepo2D } from '../types'; /** * pixi.js implementation of `IParallaxLayer2dComponent`: a `TilingSprite` living in the scene's * world container (so it sorts by `zIndex` against everything else), resized and re-offset by each * renderer, right before it draws, to cover that renderer's view. The engine never moves it through * `position`; use `offset` instead. */ export declare class PixiParallaxLayerComponent extends PixiDisplayObjectComponent implements IParallaxLayer2dComponent { readonly nativeSprite: TilingSprite; private readonly options; constructor(options: ParallaxLayer2dOpts); get layerOptions(): ResolvedParallaxLayer2dOpts; get parallax(): Point2; set parallax(value: Point2); get offset(): Point2; set offset(value: Point2); /** * Places the layer for one view: `center` is the camera position, `halfExtent` half the size of * the world-space area the view can show (already accounting for zoom and rotation). */ updateView(center: Point2, halfExtent: Point2): void; addToWorld(world: PixiGgWorld): void; removeFromWorld(world: PixiGgWorld, dispose?: boolean): void; clone(): PixiParallaxLayerComponent; dispose(): void; }