Commit Graph

77 Commits

Author SHA1 Message Date
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
Kristaps Fabians Geikins b02a07e2b6 feat: Frontend 2.0 MVP 2023-05-08 10:47:01 +03:00
Iain Sproat 4eab7d9dcd chore(deps): bump node to 18.16.0 (#1564) 2023-05-05 12:43:39 +01:00
Iain Sproat 87e8d08e64 chore(deps): bump node to 18.15.0 (#1446) 2023-03-10 11:01:30 +00:00
Iain Sproat d8b7123ed0 chore(deps): bump node from 18.14.0 to 18.14.2 (#1426) 2023-03-01 12:16:55 +00:00
Iain Sproat a6fba9ebd3 chore(node): bump node version to 18.14.0 (#1365) 2023-02-10 11:44:44 +00:00
Alexandru Popovici de2bce89a5 Alex/verbosity and mouse event (#1275)
* Added a verbose flag in the viewer params. Default is false and it's equivalent to the ERROR level

* Piggybacked the original pointer event into the SelectionEvent
2023-01-02 16:23:52 +02:00
Iain Sproat ee50b32b59 chore(node): upgrades to node 18 (#1189)
* chore(node): upgrades to node 18

Node 16 was out of support (but not security upgrades), so bumping to next stable version.

https://github.com/specklesystems/speckle-server/issues/1187

* Update server liveness and readiness probes for node 18
* Bump web-ifc to 0.0.36
* Apply `--no-experimental-fetch` flag to fileimport-service to prevent issues in web-ifc (via emscripten) with node 18
2022-12-06 12:57:48 +00:00
AlexandruPopovici 10771db1aa Integrated three-mesh-bvh's bvh with the viewer's raycast picking. Using a simple workaround for the library's need of re-sorting the index buffer. Implemented a new way of retrieving the objects from the batch based on the raycast hit result index which does not depend on the order inside the index buffer 2022-11-03 22:10:19 +02:00
Kristaps Fabians Geikins 0a58381174 feat: @speckle/shared & some comments fixes (#997) 2022-10-10 16:32:23 +03:00
Dimitrie Stefanescu 3fcb820627 Merge branch 'main' into viewer-redux-integration 2022-09-06 09:14:41 +01:00
Dimitrie Stefanescu 95ede102eb chore(viewer/frontend): determinstic (not that great) colors for string prop filtering 2022-09-01 13:09:36 +03:00
Kristaps Fabians Geikins a170b1d163 fix: relaxed engine constraint for libs (#960) 2022-08-24 12:26:30 +03:00
Dimitrie Stefanescu a4d568477a feat(filtering): colors by category string props and other improvements on the get object filters/props 2022-08-09 12:49:49 +03:00
Dimitrie Stefanescu 627eb50ec9 feat(filtering): wip colors 2022-08-06 21:30:46 +03:00
AlexandruPopovici 582d9c0af8 Merged with main 2022-08-02 18:59:52 +03:00
Kristaps Fabians Geikins 827500c32b fix(frontend): embed viewer bugfixes & speed improvements (#804)
Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com>
2022-06-16 12:37:04 +03:00
Kristaps Fabians Geikins 437e1558ec fix: fixing all builds that broke with the new viewer (#788)
builds fix + viewer logic fixes
2022-06-02 18:13:32 +03:00
AlexandruPopovici 59ad804227 working on tree parsing 2022-06-02 17:18:07 +03:00
Fabians be87f88ff6 viewer asset support 2022-05-26 16:55:09 +03:00
Fabians 758d4fb125 attempted viewer build fix 2022-05-24 15:59:56 +03:00
AlexandruPopovici 439201ce0e Merged with main 2022-05-24 12:12:30 +03:00
Gergő Jedlicska 638969cd01 gergo/yarn (#753)
* yarn first go

* fix frontend build cache loader

* yarn workspaces built server Docker

* build(yarn): add workspaces plugin config

* chore(package defs): clean package*.json -s

* chore(gitignore): ignore yarn error log

* build(yarn): update yarn lock

* build(preview-service webpack): add extra resolved path to preview service webpack config

because of yarn package hoisting, there are no package level node_modules folder anymore.

* build(docker): update dockerignore with yarn specific configs

* build(docker): update Dockerfiles for yarn workspaces utilization

* ci(circleci): update server test job to yarn

* ci(circle): disable cache restore

* ci(circleci): trying the node orb yarn-run

* ci(circleci): yarn-run again

* ci(circleci): disable node orb

* ci(circleci): change base node image for tests

* ci(circleci): add yarn cache

* ci(circleci): remove node install step

* ci(circleci): add server specific cache archives

* ci(circleci): test build and publish

* ci(circleci): change npm auth method to suit yarn

* ci(circleci): trying new builder image

* ci(circleci): another base image, maybe this works

* ci(circleci): force a specific docker engine version

* ci(circleci): add yarn version plugin and its changes

* ci(circleci): cleanup and remove temp branch config

* chore(package defs): moving from npm run to yarn

* explicitly specifying webpack4 as a frontend dep

* chore(package defs): replace npm with yarn everywhere

* docs(root readme): update with some yarn specific docs

* chore(root workspace): update dev scripts and package lock

* ci(circleci): enable package publish step with yarn

Co-authored-by: Fabians <fabis94@live.com>
2022-05-19 19:53:07 +02:00
AlexandruPopovici 1eb44d00d9 Updated three.js version to 140. Thick lin raycasting now properly works in world space and also the threshold in world space is now accurate. 2022-05-18 11:53:50 +03:00
Fabians a47e226a0c Fixing TS config for viewer 2022-05-10 11:51:12 +03:00
AlexandruPopovici 0f1fafa8bc Started working on moving towards typescript inside the viewer. Made rollup compile a mix of ts and js files (will need to be reviewd soon). Added a public interface for the Viewer and also the Viewer is now typescript and implements the public API 2022-05-09 14:00:41 +03:00
AlexandruPopovici 48e085ceaf Revert "chore(release): publish to npm. Done by mistake with lerna"
This reverts commit 8b974d0db5.
2022-04-30 17:48:02 +03:00
AlexandruPopovici 8b974d0db5 chore(release): publish to npm
[skip ci]

 - @speckle/fileimport-service@2.3.17
 - @speckle/frontend@2.3.17
 - @speckle/objectloader@2.4.3
 - @speckle/preview-service@2.4.3
 - @speckle/server@2.3.17
 - @speckle/viewer-sandbox@1.0.1
 - @speckle/viewer@2.4.3
 - @speckle/webhook-service@2.3.17
2022-04-29 12:54:26 +03:00
Alexandru Popovici 02eb9a8c41 Alex/lines #443 (#721)
* Fixed some issues with npm scripts on Windows systems

* Made the example script run the dev build with wtch in parralel with running a http server. Handled #443

* #443. Added lineweigth to the rendered lines. However this will not work on most systems. More information about this in the issue

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Reverted the changes to the npm scripts

* Restored package.lock files from packages outside of viewer to their original state

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-27 17:24:37 +03:00
Gergő Jedlicska b574817200 chore: re lernafy package version specks 2022-04-09 16:06:55 +02:00
Fabians 5627e490f9 fixing objectloader version in viewer deps 2022-04-08 13:41:40 +03:00
Fabians c91f0a4bba feat: fixed viewer & objectloader build configs 2022-04-08 12:46:34 +03:00
CI f5573dd59b chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2889
 - @speckle/frontend@2.3.17-alpha.2889
 - @speckle/objectloader@2.3.17-alpha.2889
 - @speckle/preview-service@2.3.17-alpha.2889
 - @speckle/server@2.3.17-alpha.2889
 - @speckle/viewer@2.3.17-alpha.2889
 - @speckle/webhook-service@2.3.17-alpha.2889
2022-04-07 18:36:41 +00:00
CI ae1bae65de chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2878
 - @speckle/frontend@2.3.17-alpha.2878
 - @speckle/objectloader@2.3.17-alpha.2878
 - @speckle/preview-service@2.3.17-alpha.2878
 - @speckle/server@2.3.17-alpha.2878
 - @speckle/viewer@2.3.17-alpha.2878
 - @speckle/webhook-service@2.3.17-alpha.2878
2022-04-07 18:22:45 +00:00
CI 826d4546ec chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2867
 - @speckle/frontend@2.3.17-alpha.2867
 - @speckle/objectloader@2.3.17-alpha.2867
 - @speckle/preview-service@2.3.17-alpha.2867
 - @speckle/server@2.3.17-alpha.2867
 - @speckle/viewer@2.3.17-alpha.2867
 - @speckle/webhook-service@2.3.17-alpha.2867
2022-04-07 18:11:38 +00:00
CI 7e06f4b96c chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2856
 - @speckle/frontend@2.3.17-alpha.2856
 - @speckle/objectloader@2.3.17-alpha.2856
 - @speckle/preview-service@2.3.17-alpha.2856
 - @speckle/server@2.3.17-alpha.2856
 - @speckle/viewer@2.3.17-alpha.2856
 - @speckle/webhook-service@2.3.17-alpha.2856
2022-04-07 17:53:00 +00:00
CI 963750e64a chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2844
 - @speckle/frontend@2.3.17-alpha.2844
 - @speckle/objectloader@2.3.17-alpha.2844
 - @speckle/preview-service@2.3.17-alpha.2844
 - @speckle/server@2.3.17-alpha.2844
 - @speckle/viewer@2.3.17-alpha.2844
 - @speckle/webhook-service@2.3.17-alpha.2844
2022-04-07 16:14:33 +00:00
Gergő Jedlicska 55f658b04e Merge branch 'main' of github.com:specklesystems/speckle-server into CI/lernaPublish 2022-04-07 18:12:27 +02:00
CI cb03a52104 chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2830
 - @speckle/frontend@2.3.17-alpha.2830
 - @speckle/objectloader@2.3.17-alpha.2830
 - @speckle/preview-service@2.3.17-alpha.2830
 - @speckle/server@2.3.17-alpha.2830
 - @speckle/viewer@2.3.17-alpha.2830
 - @speckle/webhook-service@2.3.17-alpha.2830
2022-04-07 15:58:04 +00:00
Fabians 084cf1585e chore: adding node version checks + migrating server lock back to new format 2022-04-07 13:05:25 +03:00
Kristaps Fabians Geikins b157a98901 feat(server): simplified test running & IDE integrations 2022-03-16 17:31:53 +02:00
Kristaps Fabians Geikins 8010bf3c4c feat: Standardized & cleaned up formatting & linting across repo #617 (#618)
* feat: Standardized & cleaned up formatting & linting across repo

Co-authored-by: Kristaps Fabians Geikins <fabians@speckle.systems>
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2022-03-16 10:10:30 +02:00
Dimitrie Stefanescu 7c7035ac6d feat(viewer): adds a zoom to object id function
see relevant discussion here:
https://speckle.community/t/camera-positioning-in-speckle-viewer/2394/10
2022-02-23 19:01:28 +00:00
Cristian Balas 68908525c0 depndency upgrades (#598) 2022-02-17 21:34:53 +02:00
Cristian Balas 9329265708 Upgrade dependencies (#577) 2022-02-07 14:04:26 +02:00
Dimitrie Stefanescu 6a5ce8752e chore(viewer): bumps version 2022-01-25 18:39:46 +00:00
Dimitrie Stefanescu 858fb75eca chore(viewer): bumps version 2022-01-17 13:38:01 +00:00
Dimitrie Stefanescu 2c95ae55ca chore(viewer): bumps version && npm publish 2021-11-30 19:26:55 +00:00
Dimitrie Stefanescu 0ffa887e35 fix(viewer): npm publish push 2021-11-26 12:28:30 +00:00
Dimitrie Stefanescu 5b957771e8 fix(deps): re-bootstrapped everything and ensured local build actually works 2021-11-24 11:12:33 +01:00