stand2026_10_06
This commit is contained in:
1 parent
73015386e9
commit
30292794ae
25 files changed
+664
-164
No files matched your search
@@ -56,13 +56,14 @@ export class DrawGroup extends DrawContainer {
|
||||
let translate_x = this.attributes.get('translate_x') as number;
|
||||
let translate_y = this.attributes.get('translate_y') as number;
|
||||
let transformStr = ""
|
||||
let rotateString = "";
|
||||
if (translate_x || translate_y) {
|
||||
let x = translate_x ? translate_x : 0;
|
||||
let y = translate_y ? translate_y : 0;
|
||||
transformStr = `translate(${x} ${y}) `
|
||||
rotateString = `transform="${transformStr}"`
|
||||
}
|
||||
|
||||
let rotateString = "";
|
||||
if (rotate) {
|
||||
rotateString = `transform="${transformStr}rotate(${rotate.winkel} ${rotate.posX} ${rotate.posY})"`
|
||||
}
|
||||
|
||||
@@ -22,13 +22,13 @@ export interface LineToCommand extends PathBaseCommand {
|
||||
|
||||
/** Horizontal Line-To */
|
||||
export interface HorizontalLineToCommand extends PathBaseCommand {
|
||||
type: "H";
|
||||
type: "H" | "h";
|
||||
x: number;
|
||||
}
|
||||
|
||||
/** Vertical Line-To */
|
||||
export interface VerticalLineToCommand extends PathBaseCommand {
|
||||
type: "V";
|
||||
type: "V" | "v";
|
||||
y: number;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user