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

aframe-troika-text

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-troika-text - npm Package Compare versions

Comparing version 0.2.2 to 0.3.1

12

package.json
{
"name": "aframe-troika-text",
"version": "0.2.2",
"version": "0.3.1",
"description": "An A-Frame component to render text using the Troika 3D text renderer ",

@@ -12,3 +12,3 @@ "main": "dist/aframe-troika-text.js",

"dependencies": {
"troika-3d-text": "0.17.0"
"troika-3d-text": "^0.24.0"
},

@@ -19,7 +19,7 @@ "peerDependencies": {

"devDependencies": {
"aframe": "1.0.4",
"rollup": "1.31.0",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-terser": "5.2.0"
"aframe": "^1.0.4",
"rollup": "^2.7.6",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.3.0"
}
}

@@ -73,3 +73,3 @@ ## aframe-troika-text

<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-troika-text/dist/aframe-troika-text.min.js"></script>

@@ -76,0 +76,0 @@ </head>

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ import nodeResolve from 'rollup-plugin-node-resolve'

@@ -87,4 +87,5 @@ import aframe from 'aframe'

mesh.textAlign = data.align
mesh.anchor[0] = anchorMapping[data.anchor]
mesh.anchor[1] = baselineMapping[data.baseline]
mesh.anchorX = anchorMapping[data.anchor === 'align' ? data.align : data.anchor] || 'center'
mesh.anchorY = baselineMapping[data.baseline] || 'middle'
mesh.color = data.color

@@ -131,11 +132,11 @@ mesh.clipRect = data.clipRect

var anchorMapping = {
'left': 0,
'center': 0.5,
'right': 1
'left': 'left',
'center': 'center',
'right': 'right'
}
var baselineMapping = {
'top': 0,
'center': 0.5,
'bottom': 1
'top': 'top',
'center': 'middle',
'bottom': 'bottom'
}

@@ -0,0 +0,0 @@ import aframe from 'aframe'

import './aframe-troika-text-component.js'
import './aframe-troika-text-primitive.js'

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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