增加获取网络照片
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user