Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eva/plugin-renderer

Package Overview
Dependencies
Maintainers
2
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eva/plugin-renderer - npm Package Compare versions

Comparing version 1.0.5-alpha.1 to 1.0.5-alpha.2

18

dist/plugin-renderer.cjs.js

@@ -97,3 +97,3 @@ 'use strict';

var RendererManager = /** @class */ (function () {
var RendererManager = (function () {
function RendererManager(_a) {

@@ -224,3 +224,3 @@ var game = _a.game, rendererSystem = _a.rendererSystem;

var ContainerManager = /** @class */ (function () {
var ContainerManager = (function () {
function ContainerManager() {

@@ -262,3 +262,3 @@ this.containerMap = {};

var Transform = /** @class */ (function (_super) {
var Transform = (function (_super) {
__extends(Transform, _super);

@@ -280,8 +280,3 @@ function Transform(_a) {

var scene = _a.scene, mode = _a.mode, application = _a.application;
// switch (mode) {
// case LOAD_SCENE_MODE.SINGLE:
_this.waitChangeScenes.push({ scene: scene, mode: mode, application: application });
// break;
// case LOAD_SCENE_MODE.MULTI_CANVAS:
// }
});

@@ -308,3 +303,2 @@ };

var sceneInfo = _f.value;
// set scene
var container = this.containerManager.getContainer(sceneInfo.scene.id);

@@ -384,3 +378,3 @@ if (container) {

})(exports.RENDERER_TYPE || (exports.RENDERER_TYPE = {}));
var Renderer$1 = /** @class */ (function (_super) {
var Renderer$1 = (function (_super) {
__extends(Renderer, _super);

@@ -427,3 +421,2 @@ function Renderer() {

var _a;
// @ts-ignore
var thisObserverInfo = this.constructor.observerInfo;

@@ -529,7 +522,6 @@ for (var key in observerInfo) {

var Renderer = /** @class */ (function (_super) {
var Renderer = (function (_super) {
__extends(Renderer, _super);
function Renderer() {
var _this = _super.call(this) || this;
// @ts-ignore
_this.observerInfo = _this.constructor.observerInfo;

@@ -536,0 +528,0 @@ return _this;

@@ -30,21 +30,6 @@ import { Application } from '@eva/renderer-adapter';

export declare class Renderer extends System {
/**
* Renderer name
*/
name: string;
/**
* currentGame
*/
game: Game;
/**
* observer component props info
*/
static observerInfo: PureObserverInfo;
/**
* observer component props info
*/
observerInfo: PureObserverInfo;
/**
* containerManager
*/
containerManager: ContainerManager;

@@ -54,14 +39,3 @@ rendererManager: RendererManager;

init?(arg?: any): void;
/**
* 当监听的属性变化时候调用
*
* called while the observed component props change.
*/
componentChanged?(changed: ComponentChanged): void;
/**
* 每帧调用
*
* called by every loop
* @param gameObject gameObject
*/
rendererUpdate?(gameObject: GameObject): void;

@@ -68,0 +42,0 @@ update(): void;

@@ -88,3 +88,3 @@ import { OBSERVER_TYPE, decorators, LOAD_SCENE_MODE, System } from '@eva/eva.js';

var RendererManager = /** @class */ (function () {
var RendererManager = (function () {
function RendererManager(_a) {

@@ -215,3 +215,3 @@ var game = _a.game, rendererSystem = _a.rendererSystem;

var ContainerManager = /** @class */ (function () {
var ContainerManager = (function () {
function ContainerManager() {

@@ -253,3 +253,3 @@ this.containerMap = {};

var Transform = /** @class */ (function (_super) {
var Transform = (function (_super) {
__extends(Transform, _super);

@@ -271,8 +271,3 @@ function Transform(_a) {

var scene = _a.scene, mode = _a.mode, application = _a.application;
// switch (mode) {
// case LOAD_SCENE_MODE.SINGLE:
_this.waitChangeScenes.push({ scene: scene, mode: mode, application: application });
// break;
// case LOAD_SCENE_MODE.MULTI_CANVAS:
// }
});

@@ -299,3 +294,2 @@ };

var sceneInfo = _f.value;
// set scene
var container = this.containerManager.getContainer(sceneInfo.scene.id);

@@ -375,3 +369,3 @@ if (container) {

})(RENDERER_TYPE || (RENDERER_TYPE = {}));
var Renderer$1 = /** @class */ (function (_super) {
var Renderer$1 = (function (_super) {
__extends(Renderer, _super);

@@ -418,3 +412,2 @@ function Renderer() {

var _a;
// @ts-ignore
var thisObserverInfo = this.constructor.observerInfo;

@@ -520,7 +513,6 @@ for (var key in observerInfo) {

var Renderer = /** @class */ (function (_super) {
var Renderer = (function (_super) {
__extends(Renderer, _super);
function Renderer() {
var _this = _super.call(this) || this;
// @ts-ignore
_this.observerInfo = _this.constructor.observerInfo;

@@ -527,0 +519,0 @@ return _this;

{
"name": "@eva/plugin-renderer",
"version": "1.0.5-alpha.1",
"version": "1.0.5-alpha.2",
"description": "@eva/plugin-renderer",

@@ -20,4 +20,4 @@ "main": "index.js",

"dependencies": {
"@eva/eva.js": "^1.0.5-alpha.1",
"@eva/renderer-adapter": "^1.0.5-alpha.1",
"@eva/eva.js": "^1.0.5-alpha.2",
"@eva/renderer-adapter": "^1.0.5-alpha.2",
"eventemitter3": "^3.1.2",

@@ -24,0 +24,0 @@ "lodash-es": "^4.17.21",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc