{"_id":"troika-3d-text@0.53.1","bugs":{"url":"https://github.com/protectwise/troika/issues"},"dist":{"shasum":"871d2856e921a31055cd3da0b062214f90236c91","tarball":"http://registry-npm.ywwl.com/troika-3d-text/download/troika-3d-text-0.53.1.tgz","fileCount":21,"integrity":"sha512-JUefVfkohB+xCIHmrFMljcbx0oAEuEXB+U3ncihpX4bTz7CzazToeb9MqAxZpcHG/ms+3Z0yHU+h5RT2JcR4CA==","signatures":[{"sig":"MEYCIQDo/xLIWk2JGkkUy+dPFVotnfrFN+bfPfv5ObmvQ6IeHgIhAMqQx/cWfLijhpNmm7OAgz1ZnRfme9WgJxfKriu7lFjQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCNMIlfi5Xu5HgLJRPfQl2h3ht42Wp1CJFe3zZqXWGQRgIgOl9kh8Bul7tx0OokHVgxR8e3mJW2ADCdgjCcA9efIQc="}],"unpackedSize":103954,"size":24669,"noattachment":false,"key":"/troika-3d-text/-/troika-3d-text-0.53.1.tgz"},"main":"dist/troika-3d-text.umd.js","name":"troika-3d-text","author":{"name":"Jason Johnston","email":"jason.johnston@protectwise.com"},"module":"dist/troika-3d-text.esm.js","gitHead":"9c89d51f828f94a21e33d6f24b38128d78014d5f","license":"MIT","version":"0.53.1","_npmUser":{"name":"lojjic","email":"jason@lojjic.com"},"homepage":"https://github.com/protectwise/troika#readme","module:src":"src/index.js","repository":{"url":"git+https://github.com/protectwise/troika.git","type":"git","directory":"packages/troika-3d-text"},"_npmVersion":"lerna/4.0.0/node@v22.16.0+arm64 (darwin)","description":"SDF text for the Troika 3D scene management framework","directories":{},"maintainers":[{"name":"lojjic","email":"jason@lojjic.com"}],"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"troika-3d":"^0.53.1","troika-three-text":"^0.53.1","troika-three-utils":"^0.53.1"},"_hasShrinkwrap":false,"peerDependencies":{"three":">=0.125.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/troika-3d-text_0.53.1_1793631987221_0.9953536521620336"},"readme":"# `troika-3d-text`\n\n> **PLEASE NOTE:** The standalone `TextMesh` for Three.js, which used to be accessible from this package in a custom `dist/textmesh-standalone.umd.js` file, has been promoted to its own package, [troika-three-text](../troika-three-text). You can now just import `Text` from that package directly:\n>\n> ```js\n> import { Text } from 'troika-three-text'\n> \n> let myText = new Text()\n> ```\n\n------\n\nThis package provides high quality text rendering in the Troika scene management framework, using signed distance fields (SDF) and antialiasing using standard derivatives. It is based on [troika-three-text](../troika-three-text).\n\n\n## Demo\n\nHere's [an online demo](https://troika-examples.netlify.app/#text).\n\n## Installation\n\nGet it from [NPM](https://www.npmjs.com/package/troika-3d-text):\n\n```sh\nnpm install troika-3d-text\n```\n\nYou will also need to install a compatible version of [Three.js](https://threejs.org); see the notes in the [Troika 3D Readme](../troika-3d/README.md#installation) for details.\n\n## Usage\n\nImport the `Text3DFacade` class:\n\n```js\nimport { Text3DFacade } from 'troika-3d-text'\n```\n\n...then use it within your scene descriptor to configure it:\n\n```js\n{\n  key: 'my-text',\n  facade: Text3DFacade,\n  text: 'Hello world!',\n  fontSize: 0.2,\n  color: 0x9966FF,\n  z: -2\n  // ...etc.\n}\n````\n\n### Supported properties\n\n`Text3DFacade` supports all properties supported by the `Text` mesh from [troika-three-text](../troika-three-text); see the documentation there for details.\n","publish_time":1793631987304,"_cnpm_publish_time":1793631987304,"dist-tags":{"latest":"0.53.1","next":"0.34.0-textoutline.8","unicode":"0.48.0-unicode.4"}}