Comments (5)
Eine Möglichkeit wäre in diesem Fall, zu checken ob value ein data
Objekt hat, aber das scheint mir doch sehr hacky:
let value: any = _obj[key];
if (value.data) {
getObjectStructure(value.data);
}
from fudge.
Der Mutator hat schon alle Daten aufbereitet und Verschachtelungen bereits wieder in Mutatoren überführt, Du musst also nicht extra noch einen Mutator abrufen. Prüfe einfach, ob ein value vom Typ Object oder Mutator ist, dann ist er bereits ein Mutator und Du kannst damit direkt weiterarbeiten.
Heißt, ohne jetzt geprüft zu haben, das sollte eigentlich funktionieren.
if (value instanceof ƒ.Mutator) {
getObjectStructure(value);
}
Was bekommst Du denn für einen Fehler? Laufzeit oder Kompilierzeit?
Außerdem: die matrix ist ein unglückliches Beispiel. Sie soll als Vectoren für Translation, Rotation und Skalierung ausgegeben werden. Das ist noch nicht implementiert.
from fudge.
Wobei... gegen Mutator zu prüfen wird nicht funktionieren, da es nur ein Interface ist, das zur Laufzeit nicht existiert. Folglich:
if (value instanceof Object)
getObjectStructure(<ƒ.Mutator>value);
hab's dir gepusht
from fudge.
Jetzt funktionierts, danke.
Ich hab doch gewusst dass es eine ganz einfache Lösung haben sollte.
Jetzt ist es hübsch und funktional
from fudge.
So ist's gedacht und gemacht
from fudge.
Related Issues (20)
- deepsearch for childs & components HOT 2
- Problem with collision detection addEventlistener HOT 4
- Editor: graph names starting with a number not recognized as an autoview graph
- Renaming root node of a graph must update internal view
- Mobile rendering precision problems HOT 2
- glTF conformity
- Matrix4x4 static method names
- creating a graph from a node will cause the node to error on selection
- Dragging a CameraComponent in the editor into the Render window locks the Render window to that camera permanently HOT 12
- Co-Dependant Scripts loaded in the wrong order cause the Graph in Internal.json to get corrupted HOT 3
- FUDGE freezes in infinite loop when trying to modify graph instance HOT 6
- MeshSphere contains unused vertices HOT 3
- Panel Layout isn't remembered
- Pathfinding HOT 9
- Physics wireframes are still visible even when ComponentRigidbody is inactive
- Animation Editor: Editing a label / event without a change causes the Dopesheet to not be interactable anymore HOT 2
- MeshImport MeshLoaders pattern
- Tests on Mac can't toggle dialog through keyboard command HOT 4
- Hierarchy isn't updating when Graphs inside are modified HOT 2
- Lights in ViewRender
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fudge.