mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-29 03:30:56 +02:00
* TJSBlob moved to WebOrWorker
This commit is contained in:
parent
86cf9f57c3
commit
d03f94beaf
@ -38,7 +38,6 @@ Type
|
|||||||
TJSPointerEvent = Class;
|
TJSPointerEvent = Class;
|
||||||
TJSUIEvent = class;
|
TJSUIEvent = class;
|
||||||
TJSTouchEvent = Class;
|
TJSTouchEvent = Class;
|
||||||
TJSBlob = class;
|
|
||||||
TJSPermissions = class;
|
TJSPermissions = class;
|
||||||
TJSFileSystemFileHandle = class;
|
TJSFileSystemFileHandle = class;
|
||||||
TJSFileSystemFileHandleArray = array of TJSFileSystemFileHandle;
|
TJSFileSystemFileHandleArray = array of TJSFileSystemFileHandle;
|
||||||
@ -62,6 +61,7 @@ TEventListenerEvent = class external name 'EventListener_Event' (TJSObject)
|
|||||||
*)
|
*)
|
||||||
TJSEvent = weborworker.TJSEvent;
|
TJSEvent = weborworker.TJSEvent;
|
||||||
TEventListenerEvent = TJSEvent;
|
TEventListenerEvent = TJSEvent;
|
||||||
|
TJSBlob = weborworker.TJSBlob;
|
||||||
|
|
||||||
TJSEventHandler = reference to function(Event: TEventListenerEvent): boolean; safecall;
|
TJSEventHandler = reference to function(Event: TEventListenerEvent): boolean; safecall;
|
||||||
TJSRawEventHandler = reference to Procedure(Event: TJSEvent); safecall;
|
TJSRawEventHandler = reference to Procedure(Event: TJSEvent); safecall;
|
||||||
@ -1595,9 +1595,18 @@ TEventListenerEvent = class external name 'EventListener_Event' (TJSObject)
|
|||||||
|
|
||||||
{ TJSHTMLElement }
|
{ TJSHTMLElement }
|
||||||
|
|
||||||
|
TJSDatasetMap = class external name 'Object' (TJSObject)
|
||||||
|
Private
|
||||||
|
function GetProps(Name: String): String; external name '[]';
|
||||||
|
procedure SetProps(Name: String; const AValue: String); external name '[]';
|
||||||
|
Public
|
||||||
|
property Map[Name: String]: string read GetProps write SetProps; default;
|
||||||
|
end;
|
||||||
|
|
||||||
TJSHTMLElement = class external name 'HTMLElement' (TJSElement)
|
TJSHTMLElement = class external name 'HTMLElement' (TJSElement)
|
||||||
private
|
private
|
||||||
FDataset: TJSObject ; external name 'dataset';
|
FDataset: TJSDatasetMap ; external name 'dataset';
|
||||||
|
FDatasetObj: TJSObject ; external name 'dataset';
|
||||||
FIsContentEditable: Boolean ; external name 'isContentEditable';
|
FIsContentEditable: Boolean ; external name 'isContentEditable';
|
||||||
FOffsetHeight: Double; external name 'offsetHeight';
|
FOffsetHeight: Double; external name 'offsetHeight';
|
||||||
FOffsetLeft: Double; external name 'offsetLeft';
|
FOffsetLeft: Double; external name 'offsetLeft';
|
||||||
@ -1700,8 +1709,9 @@ TEventListenerEvent = class external name 'EventListener_Event' (TJSObject)
|
|||||||
procedure scrollIntoView(alignToTop : Boolean);
|
procedure scrollIntoView(alignToTop : Boolean);
|
||||||
procedure scrollIntoView(aObj : TJSObject);
|
procedure scrollIntoView(aObj : TJSObject);
|
||||||
procedure scrollIntoView(Opts: TJSScrollIntoViewOptions);
|
procedure scrollIntoView(Opts: TJSScrollIntoViewOptions);
|
||||||
property dataset : TJSObject read FDataset;
|
property dataset : TJSDatasetMap read FDataset;
|
||||||
property isContentEditable : Boolean read FIsContentEditable Write FIsContentEditable;
|
property datasetObj : TJSObject read FDatasetObj;
|
||||||
|
property isContentEditable : Boolean read FIsContentEditable;
|
||||||
property offsetHeight : Double Read FOffsetHeight;
|
property offsetHeight : Double Read FOffsetHeight;
|
||||||
property offsetLeft : Double Read FOffsetLeft;
|
property offsetLeft : Double Read FOffsetLeft;
|
||||||
property offsetTop : Double Read FOffsetTop;
|
property offsetTop : Double Read FOffsetTop;
|
||||||
@ -1771,23 +1781,6 @@ TEventListenerEvent = class external name 'EventListener_Event' (TJSObject)
|
|||||||
property valueMissing : Boolean read FValueMissing;
|
property valueMissing : Boolean read FValueMissing;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TJSBlob }
|
|
||||||
|
|
||||||
TJSBlob = class external name 'Blob' (TJSEventTarget)
|
|
||||||
private
|
|
||||||
FSize: NativeInt; external name 'size';
|
|
||||||
FType: string; external name 'type';
|
|
||||||
Public
|
|
||||||
procedure close;
|
|
||||||
function slice : TJSBlob; overload;
|
|
||||||
function slice(aStart : NativeInt) : TJSBlob; overload;
|
|
||||||
function slice(aStart,aEnd : NativeInt) : TJSBlob; overload;
|
|
||||||
function slice(aStart,aEnd : NativeInt; AContentType : String) : TJSBlob; overload;
|
|
||||||
function arrayBuffer : TJSPromise;
|
|
||||||
property size : NativeInt read FSize;
|
|
||||||
property _type : string read FType; deprecated;
|
|
||||||
property type_ : string read FType;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ TJSHTMLFile }
|
{ TJSHTMLFile }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user