Commit Graph
274 Commits
Author SHA1 Message Date
Oleg Isonen c402a67e36 unselect instance by click on workspace 2022-06-14 15:44:34 +02:00
Oleg Isonen 11c868e430 move instance specific hooks to instance.ts hooks collection (probably needs to be split) 2022-06-14 15:33:55 +02:00
Oleg Isonen 94f230a5dd ensure automatic selected/hovered instance settter by reacting to selected/hovered element 2022-06-14 15:30:35 +02:00
Oleg Isonen a4ae1e7e97 remove outline on contenteditable elements 2022-06-14 12:56:19 +02:00
Oleg Isonen cc15654f2e ensure min height directly on the empty element, which automatically goes away once there is a node inside 2022-06-14 12:51:45 +02:00
Oleg Isonen 2b343113d7 outline hovered instance during drag&drop 2022-06-13 22:54:34 +02:00
Oleg Isonen cefded59ba fix infinite loop 2022-06-13 22:54:13 +02:00
Oleg Isonen 08871ddd83 Merge branch 'main' into 56-better-instance-outline--outside-iframe 2022-06-13 22:42:00 +02:00
Oleg Isonen 5a1d644bc1 add prettier as dev deps 2022-06-13 22:41:38 +02:00
Oleg Isonen d5a1df6adf return empty element outline 2022-06-13 20:23:00 +02:00
Oleg Isonen 858cc6dd8d reset hovered instance outline when mouse is out 2022-06-13 15:50:44 +02:00
Oleg Isonen b0d5a95b16 Merge branch 'main' into 56-better-instance-outline--outside-iframe 2022-06-13 15:24:28 +02:00
Oleg Isonen 69140cb323 move the cached getComputedStyle and getBoundingClientRect back into where its used
seems dangerous to expose them and unexpectedly cleanup cache
2022-06-13 15:19:47 +02:00
Oleg Isonen 0890e6f8a7 delete old outline implementation 2022-06-13 15:05:06 +02:00
Oleg Isonen 673c94e3ce handle hover outline 2022-06-13 15:01:39 +02:00
Oleg Isonen 2cdf649cc9 cleanup outlines 2022-06-13 13:40:40 +02:00
Oleg Isonen 4b4157493e finally a working label positioning with 3 states: top, bottom, inside 2022-06-13 13:19:23 +02:00
Oleg Isonen 479a57d509 shared/component > shared/canvas-components 2022-06-12 15:46:00 +02:00
Oleg Isonen fe0814fa97 wip label position 2022-06-12 15:42:36 +02:00
Oleg Isonen 5d9990c371 Merge branch 'main' into 56-better-instance-outline--outside-iframe 2022-06-09 21:22:07 +02:00
Oleg Isonen eea856dc2a fix types 2022-06-09 20:56:27 +02:00
Oleg Isonen 1bd9626912 correct outline position 2022-06-09 19:41:47 +02:00
Oleg Isonen 946f3ccce3 position on detection during window resize 2022-06-09 16:02:54 +02:00
Oleg Isonen 061c6373a6 Merge branch 'main' into 56-better-instance-outline--outside-iframe 2022-06-09 12:50:31 +02:00
Sara Vieira d45a8268b7 Merge pull request #60 from webstudio-is/fix-clone 2022-06-07 14:55:42 +03:00
Sara Vieira 24e1a070ed fix clone project 2022-06-07 14:52:21 +03:00
Sara Vieira 8a044d2dce update sdk version 2022-06-07 14:41:29 +03:00
Sara Vieira 350025d360 Merge pull request #49 from webstudio-is/sqllite 2022-06-07 14:26:02 +03:00
Sara Vieira 64085a5977 overide some types 2022-06-07 14:22:51 +03:00
Sara Vieira a33cbf3a33 import types correctly 2022-06-07 14:17:41 +03:00
Oleg Isonen 082750ec54 wip outline from parent window 2022-06-07 11:31:45 +02:00
Sara Vieira 620fc6edb9 remove ts-node 2022-06-07 10:14:46 +03:00
Sara Vieira 659ae22262 rename ParsedProject 2022-06-07 10:10:28 +03:00
Sara Vieira 77afb9b65f Merge branch 'main' of github.com:webstudio-is/webstudio-designer into sqllite 2022-06-07 10:04:12 +03:00
Oleg Isonen 6c7983d841 Merge branch 'main' into 56-better-instance-outline--outside-iframe 2022-06-06 14:40:19 +02:00
Oleg Isonen 735082bcf7 introduce shared nano states, rename nano values to nano states 2022-06-06 14:36:14 +02:00
Oleg Isonen 7f6128f0db nitpicks 2022-06-06 12:00:07 +02:00
Oleg Isonen f3c384d8cf simplify on any update using asterix for event name 2022-06-06 01:11:11 +02:00
Oleg Isonen f313c70d87 rationale for useWindowResize 2022-06-06 01:05:32 +02:00
Oleg Isonen 6f2a09855f make sure we subscribe to resize event only once and the rest happens over a js emitter 2022-06-06 01:02:09 +02:00
Oleg Isonen da49086eb2 update on resize 2022-06-06 00:50:56 +02:00
Oleg Isonen bf22ad4711 available space detection for the label 2022-06-06 00:28:51 +02:00
Oleg Isonen d49b205b15 render component icon 2022-06-06 00:07:44 +02:00
Oleg Isonen 7b16dd018e render label as standalone element 2022-06-06 00:00:02 +02:00
Oleg Isonen 15f831b297 hovered/selected states 2022-06-05 23:47:43 +02:00
Oleg Isonen b4bfc983f8 recalculate outline position on any pubsub event that may change elements on the canvas 2022-06-05 22:46:34 +02:00
Oleg Isonen 5c12364082 move logic into hooks 2022-06-05 21:56:14 +02:00
Oleg Isonen 862750bce4 only render max 2 outlines at a time (selected, hovered) 2022-06-05 21:51:16 +02:00
Oleg Isonen 3b7c3c4a73 render absolutely positioned outline 2022-06-05 16:38:12 +02:00
Oleg Isonen e8fa7a48da lint file names to be lower case 2022-06-02 14:09:01 +02:00