-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(troika-three-text): promote standalone text to a new `troika-thr…
…ee-text` package Closes #47. This creates a new package, `troika-three-text`, which contains everything that used to go into the `textmesh-standalone.js` build target from `troika-3d-text`, and doesn't have any dependencies on the Troika framework packages. Users can now just install and import directly from the `troika-three-text` package. Also renamed `TextMesh` to just `Text`. This is a breaking change for users that were using the secondary standalone dist file, but non-breaking otherwise.
- Loading branch information
Showing
31 changed files
with
332 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "troika-3d-text", | ||
"version": "0.28.1", | ||
"description": "Troika 3D Text", | ||
"description": "SDF text for the Troika 3D scene management framework", | ||
"author": "Jason Johnston <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|
@@ -16,15 +16,6 @@ | |
"module:src": "src/index.js", | ||
"dependencies": { | ||
"troika-3d": "^0.28.1", | ||
"troika-three-utils": "^0.28.1", | ||
"troika-worker-utils": "^0.28.0" | ||
}, | ||
"devDependencies": { | ||
"node-fetch": "^2.6.0", | ||
"opentype.js": "^1.0.1" | ||
}, | ||
"scripts": { | ||
"build-opentype": "rollup -c rollup.config.build-opentype.js", | ||
"build-typr": "node build-typr.js" | ||
"troika-three-text": "^0.28.1" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// 3D text exports | ||
|
||
// Proxy exports from troika-three-text for convenience: | ||
export { | ||
configureTextBuilder, | ||
fontProcessorWorkerModule, | ||
preloadFont | ||
} from './TextBuilder.js' | ||
|
||
export {TextMesh} from './three/TextMesh.js' | ||
export {GlyphsGeometry} from './three/GlyphsGeometry.js' | ||
export {getCaretAtPoint, getSelectionRects} from './selectionUtils.js' | ||
preloadFont, | ||
Text as TextMesh, | ||
GlyphsGeometry, | ||
getCaretAtPoint, | ||
getSelectionRects | ||
} from 'troika-three-text' | ||
|
||
// Troika framework specific exports: | ||
export {default as Text3DFacade} from './facade/Text3DFacade.js' |
Oops, something went wrong.