增加获取网络照片

This commit is contained in:
whm1216
2025-12-02 23:21:51 +08:00
parent 69484c9c6b
commit a467e68100
7 changed files with 58 additions and 1 deletions

View File

@@ -359,6 +359,28 @@ export const OPEN_IMAGE = {
}
};
export const GET_IMAGE_FROM_NET = {
init: function () {
this.setColour(AI_LOCAL_GRAPH_HUE);
this.appendValueInput('direct')
.appendField(Blockly.Msg.MIXLY_GET_IMAGE_FROM_NET);
this.appendDummyInput('')
.appendField(Blockly.Msg.MIXLY_ROTATION_ANGLE)
.appendField(new Blockly.FieldDropdown([
['0','0'],
['90','90'],
['180','180'],
['270','270']
]),'angle');
this.appendValueInput("w")
.appendField(Blockly.Msg.MIXLY_Enlarge_and_scale_to)
this.appendValueInput("h")
.appendField(Blockly.Msg.MIXLY_High_zoom_level_to)
this.setOutput(true);
this.setInputsInline(true);
this.setTooltip(Blockly.Msg.MIXLY_OPEN_IMAGE_TOOLTIP);
}
};
export const CAMERA_LOOGOUT = {
init: function () {
this.setColour(AI_LOCAL_GRAPH_HUE);