Skip to content

Added some properties and method (WheelDelta, CrossOrigin, GetBoundingCl... #397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: cc
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Libraries/Web/Html/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ public ElementAttribute GetAttributeNode(ElementAttributeName name) {
return null;
}

public ClientRect GetBoundingClientRect() {
return null;
}

public ClientRectList GetClientRects() {
return null;
}
Expand Down
50 changes: 50 additions & 0 deletions src/Libraries/Web/Html/ElementEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ public bool CancelBubble {
}
}

[ScriptField]
public int ClientX {
get {
return 0;
}
}

[ScriptField]
public int ClientY {
get {
return 0;
}
}

[ScriptField]
public bool CtrlKey {
get {
Expand Down Expand Up @@ -101,6 +115,20 @@ public int OffsetY {
}
}

[ScriptField]
public int PageX {
get {
return 0;
}
}

[ScriptField]
public int PageY {
get {
return 0;
}
}

[ScriptField]
public bool ReturnValue {
get {
Expand All @@ -110,6 +138,20 @@ public bool ReturnValue {
}
}

[ScriptField]
public int ScreenX {
get {
return 0;
}
}

[ScriptField]
public int ScreenY {
get {
return 0;
}
}

[ScriptField]
public bool ShiftKey {
get {
Expand Down Expand Up @@ -152,6 +194,14 @@ public string Type {
}
}

[ScriptField]
public int WheelDelta
{
get {
return 0;
}
}

public void PreventDefault() {
}

Expand Down
10 changes: 10 additions & 0 deletions src/Libraries/Web/Html/ImageElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ public bool Complete {
}
}

[ScriptField]
public string CrossOrigin
{
get {
return null;
}
set {
}
}

[ScriptField]
public string Src {
get {
Expand Down