update
This commit is contained in:
parent
f3285cf4e6
commit
0ec20b8fa0
@ -226,7 +226,7 @@ export const defaultOpt = {
|
|||||||
// 移动节点到画布中心、回到根节点等操作时是否将缩放层级复位为100%
|
// 移动节点到画布中心、回到根节点等操作时是否将缩放层级复位为100%
|
||||||
// 该选项实际影响的是render.moveNodeToCenter方法,moveNodeToCenter方法本身也存在第二个参数resetScale来设置是否复位,如果resetScale参数没有传递,那么使用resetScaleOnMoveNodeToCenter配置,否则使用resetScale配置
|
// 该选项实际影响的是render.moveNodeToCenter方法,moveNodeToCenter方法本身也存在第二个参数resetScale来设置是否复位,如果resetScale参数没有传递,那么使用resetScaleOnMoveNodeToCenter配置,否则使用resetScale配置
|
||||||
resetScaleOnMoveNodeToCenter: false,
|
resetScaleOnMoveNodeToCenter: false,
|
||||||
// 添加附加的节点前置内容,前置内容指和文本同一行的区域中的前置内容,不包括节点图片部分
|
// 添加附加的节点前置内容,前置内容指和文本同一行的区域中的前置内容,不包括节点图片部分。如果存在编号、任务勾选框内容,这里添加的前置内容会在这两者之后
|
||||||
createNodePrefixContent: null,
|
createNodePrefixContent: null,
|
||||||
// 添加附加的节点后置内容,后置内容指和文本同一行的区域中的后置内容,不包括节点图片部分
|
// 添加附加的节点后置内容,后置内容指和文本同一行的区域中的后置内容,不包括节点图片部分
|
||||||
createNodePostfixContent: null,
|
createNodePostfixContent: null,
|
||||||
|
|||||||
@ -301,8 +301,8 @@ class RichText {
|
|||||||
// 更新文本编辑框的大小和位置
|
// 更新文本编辑框的大小和位置
|
||||||
updateTextEditNode() {
|
updateTextEditNode() {
|
||||||
if (!this.node) return
|
if (!this.node) return
|
||||||
const rect = this.node._textData.node.node.getBoundingClientRect()
|
|
||||||
const g = this.node._textData.node
|
const g = this.node._textData.node
|
||||||
|
const rect = g.node.getBoundingClientRect()
|
||||||
const originWidth = g.attr('data-width')
|
const originWidth = g.attr('data-width')
|
||||||
const originHeight = g.attr('data-height')
|
const originHeight = g.attr('data-height')
|
||||||
this.textEditNode.style.minWidth =
|
this.textEditNode.style.minWidth =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user