Skip to content

Commit

Permalink
added point editor for pivot and anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-swf committed Aug 31, 2021
1 parent 3b43ef7 commit cc4ff88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ui/properties-editors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ class PropertiesEditorsClass {

public readonly inspectableProperties: PropertyInspectionData[] = [
{ name: 'name', typeHint: 'string' },
{ name: 'alpha', typeHint: 'number', data: { min: 0, max: 1, step: 0.1 } },
{ name: 'visible', typeHint: 'boolean' },
{ name: 'position', typeHint: 'point' },
{ name: 'scale', typeHint: 'point' },
{ name: 'pivot', typeHint: 'point' },
{ name: 'anchor', typeHint: 'point' },
{ name: 'alpha', typeHint: 'number', data: { min: 0, max: 1, step: 0.1 } },
{ name: 'visible', typeHint: 'boolean' },
];

public findEditorFor(value: any, data: PropertyInspectionData) {
Expand Down

0 comments on commit cc4ff88

Please sign in to comment.