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

@drecom/scene-graph-schema

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drecom/scene-graph-schema - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

scripts/dts.js

35

definitions/Node.json

@@ -11,31 +11,10 @@ {

"properties": {
"id": {
"id": "#Node_id",
"type": "string"
},
"name": {
"id": "#Node_name",
"type": "string"
},
"constructor": {
"id": "#Node_constructor",
"type": "string"
},
"transform": {
"id": "#Node_transform",
"$ref": "Transform.json#Transform"
},
"id": { "type": "string" },
"name": { "type": "string" },
"constructor": { "type": "string" },
"spine": {
"id": "#Node_spine",
"$ref": "Spine.json#Spine"
},
"sprite": {
"id": "#Node_sprite",
"$ref": "Sprite.json#Sprite"
},
"text": {
"id": "#Node_text",
"$ref": "Text.json#Text"
}
"transform": { "$ref": "Transform.json#/definitions/Transform" },
"spine": { "$ref": "Spine.json#/definitions/Spine" },
"sprite": { "$ref": "Sprite.json#/definitions/Sprite" },
"text": { "$ref": "Text.json#/definitions/Text" }
},

@@ -42,0 +21,0 @@ "required": [

11

definitions/Spine.json

@@ -11,12 +11,5 @@ {

"properties": {
"url": {
"id": "#Spine_url",
"type": "string"
},
"skin": {
"id": "#Spine_skin",
"type": "string"
},
"url": { "type": "string" },
"skin": { "type": "string" },
"animation": {
"id": "#Spine_animation",
"type": "object",

@@ -23,0 +16,0 @@ "properties": {

@@ -11,17 +11,7 @@ {

"properties": {
"url": {
"id": "#Sprite_url",
"type": "string"
},
"base64": {
"id": "#Sprite_base64",
"type": "string"
}
},
"oneOf": [
{ "required": [ "url" ] },
{ "required": [ "base64" ] }
]
"url": { "type": "string" },
"base64": { "type": "string" }
}
}
}
}

@@ -11,8 +11,4 @@ {

"properties": {
"text": {
"id": "#Text_text",
"type": "string"
},
"text": { "type": "string" },
"style": {
"id": "#Text_style",
"type": "object",

@@ -19,0 +15,0 @@ "properties": {

@@ -11,18 +11,8 @@ {

"properties": {
"x": {
"id": "#Transform_x",
"type": "number"
},
"y": {
"id": "#Transform_x",
"type": "number"
},
"parent": {
"id": "#Transform_parent",
"$ref": "Node.json#Node_id"
},
"x": { "type": "number" },
"y": { "type": "number" },
"parent": { "type": "string" },
"children": {
"id": "#Transform_children",
"type": "array",
"items": { "$ref": "Node.json#Node_id" }
"items": { "type": "string" }
}

@@ -29,0 +19,0 @@ },

{
"name": "@drecom/scene-graph-schema",
"version": "0.0.1",
"version": "0.0.2",
"description": "scene-graph-schema is a intermediate data schema that represents common data structure of a scene in game application.",
"main": "index.js",
"typings": "types/Schema.d.ts",
"repository": {

@@ -12,7 +13,8 @@ "type": "git",

"example": "node examples/example.js",
"test": "mocha test/index.test.js"
"test": "mocha test/index.test.js",
"dts": "node scripts/dts.js"
},
"keywords": [
"game",
"schene",
"scene",
"schema"

@@ -30,2 +32,3 @@ ],

"devDependencies": {
"json-schema-to-typescript": "^5.5.0",
"mocha": "^5.2.0",

@@ -32,0 +35,0 @@ "power-assert": "^1.6.0"

@@ -10,3 +10,3 @@ {

"type": "array",
"items": { "$ref": "/definitions/Node.json#Node" }
"items": { "$ref": "definitions/Node.json#/definitions/Node" }
}

@@ -13,0 +13,0 @@ },

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