mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 22:19:19 +00:00
Merge remote-tracking branch 'origin/staging' into staging-render
This commit is contained in:
commit
c63de58b7f
2
.github/workflows/plugins-deploy-package.yml
vendored
2
.github/workflows/plugins-deploy-package.yml
vendored
@ -80,7 +80,7 @@ jobs:
|
|||||||
- name: "Build package for ${{ inputs.plugin_name }}-plugin"
|
- name: "Build package for ${{ inputs.plugin_name }}-plugin"
|
||||||
working-directory: plugins
|
working-directory: plugins
|
||||||
shell: bash
|
shell: bash
|
||||||
run: npx nx build ${{ inputs.plugin_name }}-plugin
|
run: pnpm --filter ${{ inputs.plugin_name }}-plugin build
|
||||||
|
|
||||||
- name: Select Worker name
|
- name: Select Worker name
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -78,7 +78,7 @@ jobs:
|
|||||||
- name: Build styles
|
- name: Build styles
|
||||||
working-directory: plugins
|
working-directory: plugins
|
||||||
shell: bash
|
shell: bash
|
||||||
run: npx nx run example-styles:build
|
run: pnpm run build:styles-example
|
||||||
|
|
||||||
- name: Select Worker name
|
- name: Select Worker name
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
|
- Fix modifying shapes by apply negative tokens to border radius [Taiga #13317](https://tree.taiga.io/project/penpot/issue/13317)
|
||||||
- Fix security issue (Path Traversal Vulnerability) on fonts related RPC method
|
- Fix security issue (Path Traversal Vulnerability) on fonts related RPC method
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -51,26 +51,27 @@
|
|||||||
([value shape-ids attributes] (update-shape-radius-all value shape-ids attributes nil))
|
([value shape-ids attributes] (update-shape-radius-all value shape-ids attributes nil))
|
||||||
([value shape-ids _attributes page-id] ; The attributes param is needed to have the same arity that other update functions
|
([value shape-ids _attributes page-id] ; The attributes param is needed to have the same arity that other update functions
|
||||||
(when (number? value)
|
(when (number? value)
|
||||||
(dwsh/update-shapes shape-ids
|
(let [value (max 0 value)]
|
||||||
(fn [shape]
|
(dwsh/update-shapes shape-ids
|
||||||
(ctsr/set-radius-to-all-corners shape value))
|
(fn [shape]
|
||||||
{:reg-objects? true
|
(ctsr/set-radius-to-all-corners shape value))
|
||||||
:ignore-touched true
|
{:reg-objects? true
|
||||||
:page-id page-id
|
:ignore-touched true
|
||||||
:attrs ctt/border-radius-keys}))))
|
:page-id page-id
|
||||||
|
:attrs ctt/border-radius-keys})))))
|
||||||
|
|
||||||
(defn update-shape-radius-for-corners
|
(defn update-shape-radius-for-corners
|
||||||
([value shape-ids attributes] (update-shape-radius-for-corners value shape-ids attributes nil))
|
([value shape-ids attributes] (update-shape-radius-for-corners value shape-ids attributes nil))
|
||||||
([value shape-ids attributes page-id]
|
([value shape-ids attributes page-id]
|
||||||
(when (number? value)
|
(when (number? value)
|
||||||
(dwsh/update-shapes shape-ids
|
(let [value (max 0 value)]
|
||||||
(fn [shape]
|
(dwsh/update-shapes shape-ids
|
||||||
(ctsr/set-radius-for-corners shape attributes value))
|
(fn [shape]
|
||||||
{:reg-objects? true
|
(ctsr/set-radius-for-corners shape attributes value))
|
||||||
:ignore-touched true
|
{:reg-objects? true
|
||||||
:page-id page-id
|
:ignore-touched true
|
||||||
:attrs ctt/border-radius-keys}))))
|
:page-id page-id
|
||||||
|
:attrs ctt/border-radius-keys})))))
|
||||||
(defn update-opacity
|
(defn update-opacity
|
||||||
([value shape-ids attributes] (update-opacity value shape-ids attributes nil))
|
([value shape-ids attributes] (update-opacity value shape-ids attributes nil))
|
||||||
([value shape-ids _attributes page-id] ; The attributes param is needed to have the same arity that other update functions
|
([value shape-ids _attributes page-id] ; The attributes param is needed to have the same arity that other update functions
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user