sdfsdfs
This commit is contained in:
53
node_modules/pixi.js/lib/scene/view/View.d.ts
generated
vendored
Normal file
53
node_modules/pixi.js/lib/scene/view/View.d.ts
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
import { Bounds } from '../container/bounds/Bounds';
|
||||
import { Container } from '../container/Container';
|
||||
import type { PointData } from '../../maths/point/PointData';
|
||||
import type { View } from '../../rendering/renderers/shared/view/View';
|
||||
import type { BoundsData } from '../container/bounds/Bounds';
|
||||
import type { DestroyOptions } from '../container/destroyTypes';
|
||||
/**
|
||||
* A ViewContainer is a type of container that represents a view.
|
||||
* This view can be a Sprite, a Graphics object, or any other object that can be rendered.
|
||||
* This class is abstract and should not be used directly.
|
||||
* @memberof scene
|
||||
*/
|
||||
export declare abstract class ViewContainer extends Container implements View {
|
||||
/** @private */
|
||||
readonly renderPipeId: string;
|
||||
/** @private */
|
||||
readonly canBundle = true;
|
||||
/** @private */
|
||||
allowChildren: boolean;
|
||||
/** @private */
|
||||
_roundPixels: 0 | 1;
|
||||
/** @private */
|
||||
_lastUsed: number;
|
||||
/** @private */
|
||||
_lastInstructionTick: number;
|
||||
protected _bounds: Bounds;
|
||||
protected _boundsDirty: boolean;
|
||||
/**
|
||||
* The local bounds of the view.
|
||||
* @type {rendering.Bounds}
|
||||
*/
|
||||
abstract get bounds(): BoundsData;
|
||||
/** @private */
|
||||
abstract addBounds(bounds: Bounds): void;
|
||||
/** @private */
|
||||
protected _updateBounds(): void;
|
||||
/**
|
||||
* Whether or not to round the x/y position of the sprite.
|
||||
* @type {boolean}
|
||||
*/
|
||||
get roundPixels(): boolean;
|
||||
set roundPixels(value: boolean);
|
||||
/**
|
||||
* Checks if the object contains the given point.
|
||||
* @param point - The point to check
|
||||
*/
|
||||
containsPoint(point: PointData): boolean;
|
||||
/** @private */
|
||||
abstract batched: boolean;
|
||||
/** @private */
|
||||
protected abstract onViewUpdate(): void;
|
||||
destroy(options?: DestroyOptions): void;
|
||||
}
|
52
node_modules/pixi.js/lib/scene/view/View.js
generated
vendored
Normal file
52
node_modules/pixi.js/lib/scene/view/View.js
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
'use strict';
|
||||
|
||||
var Bounds = require('../container/bounds/Bounds.js');
|
||||
var Container = require('../container/Container.js');
|
||||
|
||||
"use strict";
|
||||
class ViewContainer extends Container.Container {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
/** @private */
|
||||
this.canBundle = true;
|
||||
/** @private */
|
||||
this.allowChildren = false;
|
||||
/** @private */
|
||||
this._roundPixels = 0;
|
||||
/** @private */
|
||||
this._lastUsed = 0;
|
||||
/** @private */
|
||||
this._lastInstructionTick = -1;
|
||||
this._bounds = new Bounds.Bounds(0, 1, 0, 0);
|
||||
this._boundsDirty = true;
|
||||
}
|
||||
/** @private */
|
||||
_updateBounds() {
|
||||
}
|
||||
/**
|
||||
* Whether or not to round the x/y position of the sprite.
|
||||
* @type {boolean}
|
||||
*/
|
||||
get roundPixels() {
|
||||
return !!this._roundPixels;
|
||||
}
|
||||
set roundPixels(value) {
|
||||
this._roundPixels = value ? 1 : 0;
|
||||
}
|
||||
/**
|
||||
* Checks if the object contains the given point.
|
||||
* @param point - The point to check
|
||||
*/
|
||||
containsPoint(point) {
|
||||
const bounds = this.bounds;
|
||||
const { x, y } = point;
|
||||
return x >= bounds.minX && x <= bounds.maxX && y >= bounds.minY && y <= bounds.maxY;
|
||||
}
|
||||
destroy(options) {
|
||||
super.destroy(options);
|
||||
this._bounds = null;
|
||||
}
|
||||
}
|
||||
|
||||
exports.ViewContainer = ViewContainer;
|
||||
//# sourceMappingURL=View.js.map
|
1
node_modules/pixi.js/lib/scene/view/View.js.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/scene/view/View.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"View.js","sources":["../../../src/scene/view/View.ts"],"sourcesContent":["import { Bounds } from '../container/bounds/Bounds';\nimport { Container } from '../container/Container';\n\nimport type { PointData } from '../../maths/point/PointData';\nimport type { View } from '../../rendering/renderers/shared/view/View';\nimport type { BoundsData } from '../container/bounds/Bounds';\nimport type { DestroyOptions } from '../container/destroyTypes';\n\n/**\n * A ViewContainer is a type of container that represents a view.\n * This view can be a Sprite, a Graphics object, or any other object that can be rendered.\n * This class is abstract and should not be used directly.\n * @memberof scene\n */\nexport abstract class ViewContainer extends Container implements View\n{\n /** @private */\n public override readonly renderPipeId: string;\n /** @private */\n public readonly canBundle = true;\n /** @private */\n public override allowChildren = false;\n\n /** @private */\n public _roundPixels: 0 | 1 = 0;\n /** @private */\n public _lastUsed = 0;\n /** @private */\n public _lastInstructionTick = -1;\n\n protected _bounds: Bounds = new Bounds(0, 1, 0, 0);\n protected _boundsDirty = true;\n\n /**\n * The local bounds of the view.\n * @type {rendering.Bounds}\n */\n public abstract get bounds(): BoundsData;\n /** @private */\n public abstract addBounds(bounds: Bounds): void;\n /** @private */\n protected _updateBounds(): void\n {\n // override this\n }\n\n /**\n * Whether or not to round the x/y position of the sprite.\n * @type {boolean}\n */\n get roundPixels()\n {\n return !!this._roundPixels;\n }\n\n set roundPixels(value: boolean)\n {\n this._roundPixels = value ? 1 : 0;\n }\n\n /**\n * Checks if the object contains the given point.\n * @param point - The point to check\n */\n public containsPoint(point: PointData)\n {\n const bounds = this.bounds;\n const { x, y } = point;\n\n return (x >= bounds.minX\n && x <= bounds.maxX\n && y >= bounds.minY\n && y <= bounds.maxY);\n }\n\n /** @private */\n public abstract batched: boolean;\n\n /** @private */\n protected abstract onViewUpdate(): void;\n\n public override destroy(options?: DestroyOptions): void\n {\n super.destroy(options);\n\n this._bounds = null;\n }\n}\n"],"names":["Container","Bounds"],"mappings":";;;;;;AAcO,MAAe,sBAAsBA,mBAC5C,CAAA;AAAA,EADO,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA,CAAA;AAKH;AAAA,IAAA,IAAA,CAAgB,SAAY,GAAA,IAAA,CAAA;AAE5B;AAAA,IAAA,IAA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@@ -0,0 +1,50 @@
|
||||
import { Bounds } from '../container/bounds/Bounds.mjs';
|
||||
import { Container } from '../container/Container.mjs';
|
||||
|
||||
"use strict";
|
||||
class ViewContainer extends Container {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
/** @private */
|
||||
this.canBundle = true;
|
||||
/** @private */
|
||||
this.allowChildren = false;
|
||||
/** @private */
|
||||
this._roundPixels = 0;
|
||||
/** @private */
|
||||
this._lastUsed = 0;
|
||||
/** @private */
|
||||
this._lastInstructionTick = -1;
|
||||
this._bounds = new Bounds(0, 1, 0, 0);
|
||||
this._boundsDirty = true;
|
||||
}
|
||||
/** @private */
|
||||
_updateBounds() {
|
||||
}
|
||||
/**
|
||||
* Whether or not to round the x/y position of the sprite.
|
||||
* @type {boolean}
|
||||
*/
|
||||
get roundPixels() {
|
||||
return !!this._roundPixels;
|
||||
}
|
||||
set roundPixels(value) {
|
||||
this._roundPixels = value ? 1 : 0;
|
||||
}
|
||||
/**
|
||||
* Checks if the object contains the given point.
|
||||
* @param point - The point to check
|
||||
*/
|
||||
containsPoint(point) {
|
||||
const bounds = this.bounds;
|
||||
const { x, y } = point;
|
||||
return x >= bounds.minX && x <= bounds.maxX && y >= bounds.minY && y <= bounds.maxY;
|
||||
}
|
||||
destroy(options) {
|
||||
super.destroy(options);
|
||||
this._bounds = null;
|
||||
}
|
||||
}
|
||||
|
||||
export { ViewContainer };
|
||||
//# sourceMappingURL=View.mjs.map
|
1
node_modules/pixi.js/lib/scene/view/View.mjs.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/scene/view/View.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"View.mjs","sources":["../../../src/scene/view/View.ts"],"sourcesContent":["import { Bounds } from '../container/bounds/Bounds';\nimport { Container } from '../container/Container';\n\nimport type { PointData } from '../../maths/point/PointData';\nimport type { View } from '../../rendering/renderers/shared/view/View';\nimport type { BoundsData } from '../container/bounds/Bounds';\nimport type { DestroyOptions } from '../container/destroyTypes';\n\n/**\n * A ViewContainer is a type of container that represents a view.\n * This view can be a Sprite, a Graphics object, or any other object that can be rendered.\n * This class is abstract and should not be used directly.\n * @memberof scene\n */\nexport abstract class ViewContainer extends Container implements View\n{\n /** @private */\n public override readonly renderPipeId: string;\n /** @private */\n public readonly canBundle = true;\n /** @private */\n public override allowChildren = false;\n\n /** @private */\n public _roundPixels: 0 | 1 = 0;\n /** @private */\n public _lastUsed = 0;\n /** @private */\n public _lastInstructionTick = -1;\n\n protected _bounds: Bounds = new Bounds(0, 1, 0, 0);\n protected _boundsDirty = true;\n\n /**\n * The local bounds of the view.\n * @type {rendering.Bounds}\n */\n public abstract get bounds(): BoundsData;\n /** @private */\n public abstract addBounds(bounds: Bounds): void;\n /** @private */\n protected _updateBounds(): void\n {\n // override this\n }\n\n /**\n * Whether or not to round the x/y position of the sprite.\n * @type {boolean}\n */\n get roundPixels()\n {\n return !!this._roundPixels;\n }\n\n set roundPixels(value: boolean)\n {\n this._roundPixels = value ? 1 : 0;\n }\n\n /**\n * Checks if the object contains the given point.\n * @param point - The point to check\n */\n public containsPoint(point: PointData)\n {\n const bounds = this.bounds;\n const { x, y } = point;\n\n return (x >= bounds.minX\n && x <= bounds.maxX\n && y >= bounds.minY\n && y <= bounds.maxY);\n }\n\n /** @private */\n public abstract batched: boolean;\n\n /** @private */\n protected abstract onViewUpdate(): void;\n\n public override destroy(options?: DestroyOptions): void\n {\n super.destroy(options);\n\n this._bounds = null;\n }\n}\n"],"names":[],"mappings":";;;;AAcO,MAAe,sBAAsB,SAC5C,CAAA;AAAA,EADO,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA,CAAA;AAKH;AAAA,IAAA,IAAA,CAAgB,SAAY,GAAA,IAAA,CAAA;AAE5B;AAAA,IAAA,IAAA,CAAgB,aAAgB,GAAA,KAAA,CAAA;AAGhC;AAAA,IAAA,IAAA,CAAO,YAAsB,GAAA,CAAA,CAAA;AAE7B;AAAA,IAA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