mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 03:58:12 +08:00
Enforce minimum number of n-gon sides
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<h3>{{ option.title }}</h3>
|
<h3>{{ option.title }}</h3>
|
||||||
<p>{{ option.placeholder_text }}</p>
|
<p>{{ option.placeholder_text }}</p>
|
||||||
</PopoverButton>
|
</PopoverButton>
|
||||||
<NumberInput v-if="option.kind === 'number'" :callback="option.callback" :initialValue="option.initial" :step="option.step" :updateOnCallback="true" />
|
<NumberInput v-if="option.kind === 'number'" :callback="option.callback" :initialValue="option.initial" :step="option.step" :min="option.min" :updateOnCallback="true" />
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -115,7 +115,7 @@ export default defineComponent({
|
|||||||
{ kind: "popover", title: "Boolean", placeholder_text: "More boolean-related buttons will be here" },
|
{ kind: "popover", title: "Boolean", placeholder_text: "More boolean-related buttons will be here" },
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
["Shape", [{ kind: "number", initial: 6, step: 1, callback: this.setToolSettings }]],
|
["Shape", [{ kind: "number", initial: 6, step: 1, min: 3, callback: this.setToolSettings }]],
|
||||||
]),
|
]),
|
||||||
SeparatorType,
|
SeparatorType,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user