mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-31 20:54:19 +02:00
wip
This commit is contained in:
@@ -61,6 +61,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<MkButton :primary="engine.isEditMode.value" @click="toggleEditMode">Edit mode: {{ engine.isEditMode.value ? 'on' : 'off' }}</MkButton>
|
||||
<MkButton @click="addObject">addObject</MkButton>
|
||||
<MkButton primary @click="save">save</MkButton>
|
||||
<MkButton @click="showBoundingBox">showBoundingBox</MkButton>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
@@ -578,6 +579,11 @@ function removeSelectedObject() {
|
||||
canvas.value!.focus();
|
||||
}
|
||||
|
||||
function showBoundingBox() {
|
||||
engine.value?.showBoundingBox();
|
||||
canvas.value!.focus();
|
||||
}
|
||||
|
||||
function getHex(c: [number, number, number]) {
|
||||
return `#${c.map(x => Math.round(x * 255).toString(16).padStart(2, '0')).join('')}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user