Commit Graph

16 Commits

Author SHA1 Message Date
Kristaps Fabians Geikins 9e318a58cb fix(viewer): dev command not working (#2511) 2024-07-17 13:28:43 +03:00
Kristaps Fabians Geikins 3313787f16 fix(viewer): viewer node16 support + fixing up package.jsons (#2442)
* fix: viewer node16 support + fixing up package.jsons

* lockfile fix

* Removed unnecessary type augmentations. Deleted unused SpeckleCameraControls

---------

Co-authored-by: AlexandruPopovici <alexandrupopoviciioan@gmail.com>
2024-07-15 15:16:13 +03:00
Kristaps Fabians Geikins 83d8035dc2 chore: upgrade to eslint 9 (#2348)
* root + server

* frontend

* frontend-2

* dui3

* dui3

* tailwind theme

* ui-components

* preview service

* viewer

* viewer-sandbox

* fileimport-service

* webhook service

* objectloader

* shared

* ui-components-nuxt

* WIP full config

* WIP full linter

* eslint projectwide util

* minor fix

* removing redundant ci

* clean up test errors

* fixed prettier formatting

* CI improvements

* TSC lint fix

* 'buildBatch' needs to be async since some batch types (like Text) require it. Removed a disabled liniting rule from ObjLoader

* removed unnecessary void

---------

Co-authored-by: AlexandruPopovici <alexandrupopoviciioan@gmail.com>
2024-06-12 14:38:02 +03:00
Alexandru Popovici 9c481a20f5 WEB-695 Batching Maintenance (#2182)
* Starting to tackle WBX-397 by taking a different approach on computing draw ranges

* WIP

* Range computation is more or less done. Material indices still need a more robust approach

* Range material indices figured out mostly by trating them as edges in a graph. Also some profiling to max out pergf

* Added forward and backwards material index edges in order to be able to directly look them up rather than searching for them in an array

* Extended the new draw range integration approach to instanced batches

* Added vitest and wrote a first test for the DrawRange integration approach. Fixed some cicular dependencie which were messing up vitest runtime.

* A bunch of more tests

* Removed unused dep

* ci(viewer): test the viewer in CircleCI

* Include test-viewer as a dependency of later jobs

* Small updates

* Removed old range integration from all three batches

* Working on making the range update integration work on an array at a time

* Update range integration now works on entire arrays at a time. Almost twice as fast this way. Updates tests

* DrawRanges now also flattens the computed draw ranges, so we got rid of the old ugly way of flattening the ranges. Update MeshBatch, PointBatch and InstancedMeshBatch

* More adjustment to point batch

* Implemented a common PrimitiveBatch which can be used for any typical primitive based rendering (triangles, lines, points) as abstract. Our Mesh and Point batch will use most of the common implementation. Updated MeshBatch to extend PrimitiveBatch

* Updated PointBatch to extend PrimitiveBatch

* Tried making the instaned mesh batch extend the primitive batch but there was no point, they too different to make sense. Got rid of the pointless circular dependency between the instaned batch and mesh

* fixed viewer build

* Removed unused code and execution time measurements

---------

Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
2024-04-02 15:48:01 +03:00
Alexandru Popovici edcd1b64f8 Viewer Embedded Textures (#1770)
* With Fabian's help we changed the way the default textures are loaded. They are now embeded using another rollup plugin as base64 directly into the js module

* Embedded textures

* Yarn lock stuff
2023-09-19 08:37:40 +01:00
Kristaps Fabians Geikins 8f0af9efbd fix(viewer): fixed three.js imports to hopefully fix fe2 (#1660)
* fix(viewer): fixed three.js imports to hopefully fix fe2

* undoing viewer changes that break preview service
2023-06-28 16:04:29 +03:00
Kristaps Fabians Geikins b02a07e2b6 feat: Frontend 2.0 MVP 2023-05-08 10:47:01 +03:00
Kristaps Fabians Geikins 2fef8b7de3 refactor(frontend): vue cli v4 -> vite (#1000) 2022-10-05 15:59:11 +03:00
Fabians abe160cc8d fix(viewer): build shouldnt clear dist in between both ESM & CJS builds 2022-08-05 13:58:37 +03:00
Kristaps Fabians Geikins 0cc69fece8 fix(frontend): workaround for @speckle/viewer not found error when running dev server (#892) 2022-08-05 13:08:39 +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
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
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
Fabians c91f0a4bba feat: fixed viewer & objectloader build configs 2022-04-08 12:46:34 +03:00