mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-23 08:44:05 +02:00
wip
This commit is contained in:
@@ -8,7 +8,7 @@ import { defineObject } from '../engine.js';
|
||||
|
||||
export const pictureFrame = defineObject({
|
||||
id: 'pictureFrame',
|
||||
name: 'Rectangular picture frame',
|
||||
name: 'Simple picture frame',
|
||||
options: {
|
||||
schema: {
|
||||
frameColor: {
|
||||
@@ -103,11 +103,10 @@ export const pictureFrame = defineObject({
|
||||
|
||||
const srcWidth = tex.getSize().width;
|
||||
const srcHeight = tex.getSize().height;
|
||||
const srcAspect = srcWidth / srcHeight;
|
||||
const targetWidth = options.width * (1 - (options.matHThickness * MAT_THICKNESS_FACTOR));
|
||||
const targetHeight = options.height * (1 - (options.matVThickness * MAT_THICKNESS_FACTOR));
|
||||
|
||||
const targetAspect = targetWidth / targetHeight;
|
||||
const srcAspect = srcWidth / srcHeight;
|
||||
|
||||
let newAx = ax;
|
||||
let newAy = ay;
|
||||
|
||||
Reference in New Issue
Block a user