7b037352df
* Fixed an issue with curves doubling up on geometry and also not being selectable after the last filtering changes. Added the options to make lines transparent. Added lines to diffing * Points now are diff-able and support proper visual diff-ing. Visual diff filters are now chosen internally by the Differ. Fixed an issue with LineBatch and transparency * Implemented PLAIN visual diff mode, where all objects keep their original materil, but opacity is manipulated via the diff time. Added API member function to switch between the PLAIN and COLORED visual diff modes * feat(fe2): diffs wip * Diffing fixes for instances and blocks. Things seem to be working fine, but there are some caveats. Additionally, some older issues were fixed and diffing now works better on all the rest of the streams * feat(fe2): de-dupes diff results * feat(fe2): wip diffs * feat(fe2): diff transparency goes from 0 to 1 * feat(fe2): diff results display work * feat(fe2): diff results display work * feat(fe2): diff panel work * feat(fe2): diff work: various display changes, coloring toggle, selection logic, selection object display wip * feat(fe2): diff work: cleaned up old/new version, fixed minor bug in viewer diff time when swapping color mode * feat(fe2): diff work: implements custom selection logic and selection display for modified objects (they come in pairs now) * feat(fe2): diff minor fix in selected object display * feat(fe2): wip; trying to fix diff order to be consistent (ordered by date) * feat(fe2): wip, broken state right now * feat(fe2): fixes scrollbars in viewer * feat(fe2): fixes slider sync with diff time * feat(fe2): WIP syncs of diffs (threads, refreshes, etc.) * feat(fe2): diffing polish * speckle shared fix * speckle shared fix * more bugfixes * linter fixess * more CI fixes * fix viewerState serialization * more linting fixess * template fixes * moving tailwind classes to theme package * migrated away from diffString + simplified postSetup * moved diff new/old version resolution to use state.resources * cleanup * updating url threadId & diff command correctly * minor improvements to diff state --------- Co-authored-by: AlexandruPopovici <alexandrupopoviciioan@gmail.com> Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
tailwind-theme
Tailwind theme used in frontend 2 and other apps.
Setup
- Install the package
- In your tailwind config import
@speckle/tailwind-themeand@tailwindcss/formsand add them to yourpluginsarray - Import
tailwindContentEntryfrom@speckle/tailwind-theme/tailwind-configureand invoke it in thecontentsfield in your Tailwind config to ensure PurgeCSS is configured correctly. It requires the CJSrequireobject as its only parameter. If it isn't available (in an ESM environment), you can use node'screateRequire().
Development
- Link this repo to wherever you're using this package. Unnecessary if you're using this package somewhere inside this monorepo.
- Run
yarn buildto re-build
Viewer
Run yarn viewer to open the Tailwind Config Viewer in the browser.
Note 1: The project must be built first for this to work! Note 2: All of the custom colors that rely on CSS variables will only show the light mode version irregardless of the "Dark Mode" toggle. This is because of a limitation of Tailwind Config Viewer.