307 Commits

Author SHA1 Message Date
Andrey Antukh
5d4511fc6a Make workspace and features system aware of render.wasm loading 2024-11-14 11:20:39 +01:00
Belén Albeza
345d97792f Create a separate viewport for wasm/canvas 2024-10-29 18:05:17 +01:00
Alejandro Alonso
96bb282674 Fix many corner issues related to shape data structure change 2024-10-29 11:30:31 +01:00
Belén Albeza
4623f36042 Write shapes directly to wasm memory 2024-10-29 11:30:31 +01:00
Andrey Antukh
043c23899a 🎉 Add first impl of wasm-friendly for Shape data structure 2024-10-29 11:30:31 +01:00
Andrey Antukh
fc7fe41c98 Rename to render-wasm and make it load using dynamic import 2024-10-23 17:18:04 +02:00
Belén Albeza
e4eb80f643 🎉 Switch new renderer to Emscripten (from wasm-bindgen) 2024-10-23 13:14:17 +02:00
Andrey Antukh
d6da8afdce Add improved abstraction for team permissions
Relevant changes:
- replace user-viewer? with can-edit removing many double
  negations on the code
- always use team permissions making the permissions access uniform
  around all the code
- expose team permissions to ui tree through ctx/team-permissions
  context
2024-10-21 12:36:01 +02:00
Pablo Alba
226ab7233b Add viewer role to workspace 2024-10-15 13:38:46 +02:00
alonso.torres
3a9119cf29 🐛 Add visual feedback when moving an element into a board 2024-10-14 15:25:37 +02:00
AzazelN28
7398f7ce0d ♻️ Replace Draft.js with custom editor 2024-10-01 22:31:16 +02:00
Andrey Antukh
4f04dbc294 🐛 Fix frame flows issues related to the refactor 2024-09-18 12:15:12 +02:00
Andrey Antukh
4ad4057878 ♻️ Refactor page options data structure 2024-09-18 12:15:12 +02:00
Belén Albeza
c9258b5526 Remove workspace partial scss stylesheet 2024-06-27 15:35:57 +02:00
Eva Marco
232cfea709 🐛 Fix move scrollbar create a selection rectangle 2024-06-13 06:28:26 +02:00
Belén Albeza
00430d63eb Add test for drawing a shape in the workspace 2024-05-09 13:45:06 +02:00
AzazelN28
ccce550cda 🐛 Fix comments and history toggle 2024-04-08 10:07:16 +02:00
alonso.torres
4ef7af104d 🐛 Fix problem with show guides config 2024-03-27 08:41:43 +01:00
Eva Marco
cdab615cbb 🐛 Fix copies of snap to grid and show hide grid 2024-03-18 08:53:48 +01:00
Andrey Antukh
32ae1bcdc8 🐛 Add missing key prop on grid editor element 2024-02-22 15:53:15 +01:00
alonso.torres
564843b297 Add border to rulers 2024-02-06 10:07:22 +01:00
alonso.torres
497b581576 Change drag component to instantiate on enter the viewport 2024-02-01 10:23:34 +01:00
alonso.torres
7ddfdb1e15 🐛 Fix grid layout controls being clipped by scroll 2024-01-26 09:26:32 +01:00
Aitor
1991b44c00 🐛 Fix toolbar not centered in workspace 2024-01-22 18:34:16 +01:00
alonso.torres
e193261d7f Reduce handlers for the flex layout gaps and paddings 2024-01-19 09:53:07 +01:00
alonso.torres
5ea414aed6 🐛 Fix problem with alt-duplicate on root frames 2024-01-08 15:20:26 +01:00
alonso.torres
48e283812e 🐛 Fix some styles 2024-01-02 18:09:55 +01:00
Andrey Antukh
96f5a33f5f ⬆️ Upgrade to beicon2 (part1) 2023-12-26 14:14:20 +01:00
alonso.torres
9834195f0e 🐛 Fix scroll so it's not hidden against palette 2023-12-13 16:12:41 +01:00
Aitor
4e87341c1e Add imposter placeholders 2023-12-07 12:57:27 +01:00
Aitor
8f356b679d Don't use data-uris for resources 2023-11-28 17:33:04 +01:00
alonso.torres
e2b28b3b3c Set grid editor shortcuts 2023-11-21 12:35:27 +01:00
Andrey Antukh
52fbc678f3 ♻️ Move app.common.pages to app.common.files 2023-11-16 11:07:36 +01:00
alonso.torres
aa36d162f2 💄 Show rounded corners when rulers hiden 2023-11-07 11:25:03 +01:00
alonso.torres
b47c0dd0b7 Add read-only pill to the workspace 2023-10-25 13:25:28 +02:00
Andrey Antukh
ae08a330fa Add internal improvements to debug related namespaces 2023-09-22 09:48:41 +02:00
alonso.torres
6f2a459cce Instance component to grid layout 2023-09-18 14:08:34 +02:00
Andrey Antukh
ac4343dafd Don't render not visible shapes on workspace 2023-09-13 16:36:49 +02:00
Andrey Antukh
db5621f4ae Revert " Don't render not visible shapes on workspace"
This reverts commit a01c64ea576a3ea76033317f43b2ab83c86bfeae.
2023-09-13 13:54:40 +02:00
Andrey Antukh
a01c64ea57 Don't render not visible shapes on workspace 2023-09-04 17:37:08 +02:00
Andrey Antukh
c6e248b52f Add correct impl for is-direct-child-of-root? helper
And we restore the previously removed helper and incorrectly replaced by
the `is-direct-child-of-root?`.

In penpot exists two concepts: root and root-frame; root is the
artificially created shape that represents the ROOT, and root-frame
means a frame that is shape of frame type which is a direct children
of ROOT.
2023-09-01 12:47:18 +02:00
Aitor
4b8ee8ef84 Update to React 18 2023-08-21 14:34:54 +02:00
Pablo Alba
577c2b39dc ♻️ Rename helper root-frame? to is-direct-child-of-root? 2023-07-25 13:59:12 +02:00
alonso.torres
a70d909a25 Show grid layout on component thumbnails and empty grids 2023-07-10 14:49:25 +02:00
alonso.torres
e86939b8ee Improved flex tracks behavior and auto sizing 2023-07-10 14:49:24 +02:00
alonso.torres
06ab577e41 More improvements to layout grid UI 2023-07-10 14:49:24 +02:00
alonso.torres
b13db69cf9 Grid layout polishing 2023-07-10 14:49:24 +02:00
alonso.torres
7b410d46ec Editing on double click 2023-07-10 14:49:24 +02:00
alonso.torres
0358eb51e8 Change behavior on empty grid creation 2023-07-10 14:49:24 +02:00
alonso.torres
cf4e2f91d1 Grid layout polishing 2023-07-10 14:49:24 +02:00