forked from mirrors/misskey
fix(frontend): ウォーターマーク配置のエフェクトが壊れている問題を修正 (#16662)
* fix(frontend): ウォーターマーク配置のエフェクトが壊れている問題を修正 * enhance: add settings for noBoundingBoxExpansion * Update Changelog * fix * perf: ウォーターマークのrepeatをWRAP属性で制御するように * fix: ウォーターマークをrepeatした際に回転や拡大縮小の中心が「位置」設定を考慮しないのを修正 * fix: ウォーターマークをrepeatした際にマージンが各ウォーターマークごとのマージンとなっていない問題を修正 * fix: リピートモード時の拡大縮小の原点が、アライメントの設定にかかわらず左上になる問題を修正 * enhance: preserveBoundingRect の翻訳文字を変更 * fix: remove description * fix * fix: 回転の向きが逆になっているのを修正 * fix: マージンは元画像の大きさに対する割合で算出するように * Update watermarkPlacement.ts --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -27,6 +27,7 @@ export type WatermarkPreset = {
|
||||
type: 'text';
|
||||
text: string;
|
||||
repeat: boolean;
|
||||
noBoundingBoxExpansion: boolean;
|
||||
scale: number;
|
||||
angle: number;
|
||||
align: Align;
|
||||
@@ -38,6 +39,7 @@ export type WatermarkPreset = {
|
||||
imageId: string | null;
|
||||
cover: boolean;
|
||||
repeat: boolean;
|
||||
noBoundingBoxExpansion: boolean;
|
||||
scale: number;
|
||||
angle: number;
|
||||
align: Align;
|
||||
@@ -106,6 +108,7 @@ export class WatermarkRenderer {
|
||||
id: layer.id,
|
||||
params: {
|
||||
repeat: layer.repeat,
|
||||
noBoundingBoxExpansion: layer.noBoundingBoxExpansion,
|
||||
scale: layer.scale,
|
||||
align: layer.align,
|
||||
angle: layer.angle,
|
||||
@@ -123,6 +126,7 @@ export class WatermarkRenderer {
|
||||
id: layer.id,
|
||||
params: {
|
||||
repeat: layer.repeat,
|
||||
noBoundingBoxExpansion: layer.noBoundingBoxExpansion,
|
||||
scale: layer.scale,
|
||||
align: layer.align,
|
||||
angle: layer.angle,
|
||||
|
||||
Reference in New Issue
Block a user