Skip to content

Commit 0a01654

Browse files
committed
add src prop
1 parent 6bcde3b commit 0a01654

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@node-projects/svghmi.webcomponent",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "a svghmi webcomponent.",
55
"type": "module",
66
"main": "./dist/index.js",

src/designer/SvgHmiPropertiesService.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ export default class SvgHmiPropertiesService extends AbstractPolymerLikeProperti
1111
}
1212

1313
public override async getProperties(designItem: IDesignItem): Promise<IProperty[] | IPropertyGroup[]> {
14-
return Array.from((<SvgHmi>designItem.element)._svgHmiProperties.entries().map(x => ({
14+
return [{
15+
name: 'src',
16+
type: 'string',
17+
service: this,
18+
propertyType: PropertyType.propertyAndAttribute
19+
}, ...(<SvgHmi>designItem.element)._svgHmiProperties.entries().map(x => ({
1520
name: x[1].name,
1621
type: x[1].type,
1722
service: this,
1823
propertyType: PropertyType.propertyAndAttribute
19-
})));
24+
}))];
2025
}
2126
}

0 commit comments

Comments
 (0)