Made field decimal, forgot to use const, new migration
This commit is contained in:
@ -19,11 +19,11 @@ export class BaseSpriteAction extends BaseEntity {
|
||||
@Property({ type: 'json', nullable: true })
|
||||
sprites?: string[]
|
||||
|
||||
@Property()
|
||||
originX = 0
|
||||
@Property({ type: 'decimal', precision: 5, scale: 2 })
|
||||
originX = 0.00
|
||||
|
||||
@Property()
|
||||
originY = 0
|
||||
@Property({ type: 'decimal', precision: 5, scale: 2 })
|
||||
originY = 0.00
|
||||
|
||||
@Property()
|
||||
frameWidth = 0
|
||||
|
@ -135,7 +135,7 @@ export default class SpriteUpdateEvent extends BaseEvent {
|
||||
|
||||
return await sharp(buffer)
|
||||
.extend({
|
||||
top: 0,
|
||||
top: topPadding,
|
||||
bottom: bottomPadding,
|
||||
left: leftPadding,
|
||||
right: rightPadding,
|
||||
|
Reference in New Issue
Block a user