Skip to content

Commit 98ac662

Browse files
committed
first workin version
1 parent 267cf0e commit 98ac662

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.9",
3+
"version": "1.0.0",
44
"description": "a svghmi webcomponent.",
55
"type": "module",
66
"main": "./dist/index.js",

src/SvgHmi.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export class SvgHmi extends BaseCustomWebComponentConstructorAppend {
88
display: block;
99
height: 100%;
1010
width: 100%;
11+
}
12+
svg {
13+
width: 100%;
14+
height: 100%;
1115
}`;
1216

1317
public static override readonly template = html``;

src/designer/SvgHmiPropertiesService.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export default class SvgHmiPropertiesService extends AbstractPolymerLikeProperti
1818
propertyType: PropertyType.propertyAndAttribute
1919
}, ...(<SvgHmi>designItem.element)._svgHmiProperties.entries().map(x => ({
2020
name: x[1].name,
21+
propertyName: x[1].name,
22+
attributeName: x[0],
2123
type: x[1].type,
2224
service: this,
2325
propertyType: PropertyType.propertyAndAttribute

0 commit comments

Comments
 (0)