Files
speckle-server/packages/viewer/package.json
T
Alexandru Popovici b3d8c5d28c Text support and limited Dimensions support (#1604)
* Font loading (hidden under a .png for now). Simple experiments with rendering text

* Added some text rendering tests. WIP on billboarding

* Added tests using troika-text-three library which uses sdf font textures instead of generating text geometry

* WIP on supporting speckle text objects

* Some more work on speckle text object integration. Worked on text materials, text batch and text object. We're now rendering basic text

* We're now rendering the text for various dimension types. Changed text to use display style first, since that's the one that contains it's color.

* Implemented text selection. Text can now be selected and works the same way every other speckle objects works when selecting

* Implemented the rest of the filtering features for text.

* Batch building can now be async. Building text batches needs to be async because that's how the troika libary works. Fixed an issue with the section box not clippin text properly

* Removed dummy text geometry data from it's RenderData. Enabled render views with metadata to count as valid. getRenderableRenderViews now returns nodes with metadata as well. Text now supports proper unit conversion. Text now is being displayed correctly(-ish) when inside blocks. Autocad text is now being displayed
2023-06-06 15:49:47 +03:00

80 lines
2.1 KiB
JSON

{
"name": "@speckle/viewer",
"version": "2.5.4",
"description": "A 3d viewer for Speckle, based on threejs.",
"homepage": "https://speckle.systems",
"repository": {
"type": "git",
"url": "https://github.com/specklesystems/speckle-server.git",
"directory": "packages/viewer"
},
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"exports": {
".": "./dist/index.js",
"./dist/assets/*": "./dist/assets/*",
"./assets/*": "./dist/assets/*"
},
"types": "./dist/index.d.ts",
"sourceType": "module",
"files": [
"dist"
],
"engines": {
"node": "^18.16.0"
},
"scripts": {
"build": "NODE_ENV=production rollup --config",
"build:dev": "rollup --config",
"dev": "rollup --config --watch",
"prepack": "yarn build",
"lint": "eslint . --ext .js,.ts"
},
"author": "AEC Systems",
"license": "Apache-2.0",
"keywords": [
"speckle",
"aec",
"3d",
"3d viewer",
"threejs"
],
"dependencies": {
"@speckle/objectloader": "workspace:^",
"@types/flat": "^5.0.2",
"camera-controls": "^1.33.1",
"flat": "^5.0.2",
"hold-event": "^0.1.0",
"js-logger": "1.6.1",
"lodash-es": "^4.17.21",
"rainbowvis.js": "^1.0.1",
"string-to-color": "^2.2.2",
"three": "^0.140.0",
"three-mesh-bvh": "0.5.17",
"tree-model": "1.0.7",
"troika-three-text": "0.47.2"
},
"devDependencies": {
"@babel/core": "^7.18.2",
"@babel/eslint-parser": "^7.18.2",
"@babel/preset-env": "^7.20.2",
"@rollup/plugin-babel": "^5.3.1",
"@types/three": "^0.136.0",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"core-js": "^3.21.1",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",
"prettier": "^2.5.1",
"regenerator-runtime": "^0.13.7",
"rollup": "^2.70.1",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-rebase": "^4.1.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"typescript": "^4.5.4"
},
"gitHead": "5627e490f9a3ecadf19cc4686ad15f344d9ad2d3"
}