Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$scene$mesh_simple$MeshSimple.js
2026-07-01 22:38:29 -06:00

28 lines
1.2 KiB
JavaScript

shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$mesh_simple$MeshSimple = function(global, require, module, exports) {
var definedProps = require("module$node_modules$pixi_DOT_js$lib$scene$container$utils$definedProps");
global = require("module$node_modules$pixi_DOT_js$lib$scene$mesh$shared$Mesh");
var MeshGeometry = require("module$node_modules$pixi_DOT_js$lib$scene$mesh$shared$MeshGeometry");
"use strict";
class MeshSimple extends global.Mesh {
constructor(options) {
const {texture, vertices, uvs, indices, topology, ...rest} = options;
options = new MeshGeometry.MeshGeometry(definedProps.definedProps({positions:vertices, uvs, indices, topology}));
super(definedProps.definedProps({...rest, texture, geometry:options}));
this.autoUpdate = !0;
this.onRender = this._render;
}
get vertices() {
return this.geometry.getBuffer("aPosition").data;
}
set vertices(value) {
this.geometry.getBuffer("aPosition").data = value;
}
_render() {
this.autoUpdate && this.geometry.getBuffer("aPosition").update();
}
}
exports.MeshSimple = MeshSimple;
};
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$mesh_simple$MeshSimple.js.map