|
@@ -94,8 +94,6 @@ export class PTopoScene extends SBaseEditScene {
|
|
|
*/
|
|
|
addLine(event: SMouseEvent): void {
|
|
|
const data = {
|
|
|
- /** ID */
|
|
|
- // ID: uuid(),
|
|
|
/** 名称 */
|
|
|
Name: '基础直线',
|
|
|
/** 图标(Image),线类型(Line) */
|
|
@@ -134,8 +132,6 @@ export class PTopoScene extends SBaseEditScene {
|
|
|
*/
|
|
|
addTextItem(event: SMouseEvent): void {
|
|
|
const data = {
|
|
|
- /** ID */
|
|
|
- ID: uuid(),
|
|
|
/** 名称 */
|
|
|
Name: '基础文本',
|
|
|
/** 图标 */
|
|
@@ -144,14 +140,14 @@ export class PTopoScene extends SBaseEditScene {
|
|
|
Pos: { X: event.x, Y: event.y },
|
|
|
/** 由应用自己定义 */
|
|
|
Properties: {
|
|
|
- // IconUrl: require(`../../assets/images/t-text-hover.png`),
|
|
|
+ },
|
|
|
+ Style: {
|
|
|
Text: '请在右侧属性栏输入文字!',
|
|
|
Color: "#646c73",
|
|
|
Font: 14,
|
|
|
BackgroundColor: "#f7f9facc",
|
|
|
Type: "BaseText" // 自定义类型用于区分mark与node
|
|
|
- },
|
|
|
- Style: {}
|
|
|
+ }
|
|
|
}
|
|
|
const item = new SBaseExpainEdit(null, data);
|
|
|
item.moveTo(event.x, event.y);
|