我正在通过浏览器通过csv上传创建Google幻灯片。当我插入文字时,如何将其居中?它们仅出于某种原因出现在右侧。
const requests = [
{
createShape: {
objectId: `shape${csv.ID}`,
shapeType: "TEXT_BOX",
elementProperties: {
pageObjectId: `slide${index}`,
size: {
height: height,
width: width
},
transform: {
scaleX: 1,
scaleY: 1,
translateX: 350,
translateY: 100,
unit: "PT"
}
}
}
},
{
insertText: {
objectId: `shape${csv.ID}`,
insertionIndex: 0,
text: csv.text
}
}
];
```
答案 0 :(得分:1)
@echo off
rem saved in C:\Users\<username>\OneDrive\Desktop\Test\Test.bat
echo Enter a number
set /p num="Number: "
echo %num%>> Data.txt
的值放在fib:
li $t4,1 # to compare 1 with other registers
sub $sp , $sp , 12
sw $ra , 0($sp)
sw $t0 , 4($sp)
sw $t1 , 8($sp)
move $t1, $a0 #load n from a0 to t1
beq $t1 , $zero , Returnzero
move $t0, $v0
beq $t1, $t4, Returnone
addi $a0, $t1 , −1
jal fib # compute fib(n-1)
move $t3 , $v0 # store return value of fib(n-1)
lw $a0 , 4 ($sp)
addi $a0, $t1, −2 # n-2
jal fib # compute fib(n-2)
add $v0, $v0, $t3 # sum of fib(n-1) + fib(n-2)
# restore stack here
lw $t1, 8($sp)
lw $t3, 4($sp)
lw $ra, 0($sp)
addi $sp, $sp, 12
jr $ra
lw $s0, 8($sp)
lw $ra, 0($sp)
Returnzero:
move $v0, $zero #if 0 go return 0
jr $ra
Returnone:
move $v0, $s0 #if 1 go return 1
jr $ra
对象的中心。如果我的理解是正确的,那么该修改如何?在此修改中,UpdateParagraphStyleRequest被添加到csv.text
的请求正文中。
shape${csv.ID}
如果我误解了你的问题,而这不是你想要的结果,我深表歉意。