bump version and update docs & deps
This commit is contained in:
parent
5c62cdcc8a
commit
738590b631
46
package-lock.json
generated
46
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nodegui/nodegui",
|
||||
"version": "0.23.1",
|
||||
"version": "0.24.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -1505,9 +1505,9 @@
|
||||
}
|
||||
},
|
||||
"@types/jest": {
|
||||
"version": "26.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.0.tgz",
|
||||
"integrity": "sha512-/yeMsH9HQ1RLORlXAwoLXe8S98xxvhNtUz3yrgrwbaxYjT+6SFPZZRksmRKRA6L5vsUtSHeN71viDOTTyYAD+g==",
|
||||
"version": "26.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.3.tgz",
|
||||
"integrity": "sha512-v89ga1clpVL/Y1+YI0eIu1VMW+KU7Xl8PhylVtDKVWaSUHBHYPLXMQGBdrpHewaKoTvlXkksbYqPgz8b4cmRZg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"jest-diff": "^25.2.1",
|
||||
@ -1521,9 +1521,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "14.0.13",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.13.tgz",
|
||||
"integrity": "sha512-rouEWBImiRaSJsVA+ITTFM6ZxibuAlTuNOCyxVbwreu6k6+ujs7DfnU9o+PShFhET78pMBl3eH+AGSI5eOTkPA==",
|
||||
"version": "14.0.14",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.14.tgz",
|
||||
"integrity": "sha512-syUgf67ZQpaJj01/tRTknkMNoBBLWJOBODF0Zm4NrXmiSuxjymFrxnTu1QVYRubhVkRcZLYZG8STTwJRdVm/WQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/normalize-package-data": {
|
||||
@ -3775,9 +3775,9 @@
|
||||
}
|
||||
},
|
||||
"highlight.js": {
|
||||
"version": "10.0.3",
|
||||
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.0.3.tgz",
|
||||
"integrity": "sha512-9FG7SSzv9yOY5CGGxfI6NDm7xLYtMOjKtPBxw7Zff3t5UcRcUNTGEeS8lNjhceL34KeetLMoGMFTGoaa83HwyQ==",
|
||||
"version": "10.1.1",
|
||||
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.1.1.tgz",
|
||||
"integrity": "sha512-b4L09127uVa+9vkMgPpdUQP78ickGbHEQTWeBrQFTJZ4/n2aihWOGS0ZoUqAwjVmfjhq/C76HRzkqwZhK4sBbg==",
|
||||
"dev": true
|
||||
},
|
||||
"hosted-git-info": {
|
||||
@ -7889,9 +7889,9 @@
|
||||
}
|
||||
},
|
||||
"prebuild-install": {
|
||||
"version": "5.3.4",
|
||||
"resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-5.3.4.tgz",
|
||||
"integrity": "sha512-AkKN+pf4fSEihjapLEEj8n85YIw/tN6BQqkhzbDc0RvEZGdkpJBGMUYx66AAMcPG2KzmPQS7Cm16an4HVBRRMA==",
|
||||
"version": "5.3.5",
|
||||
"resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-5.3.5.tgz",
|
||||
"integrity": "sha512-YmMO7dph9CYKi5IR/BzjOJlRzpxGGVo1EsLSUZ0mt/Mq0HWZIHOKHHcHdT69yG54C9m6i45GpItwRHpk0Py7Uw==",
|
||||
"requires": {
|
||||
"detect-libc": "^1.0.3",
|
||||
"expand-template": "^2.0.3",
|
||||
@ -9438,9 +9438,9 @@
|
||||
}
|
||||
},
|
||||
"typedoc": {
|
||||
"version": "0.17.7",
|
||||
"resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.17.7.tgz",
|
||||
"integrity": "sha512-PEnzjwQAGjb0O8a6VDE0lxyLAadqNujN5LltsTUhZETolRMiIJv6Ox+Toa8h0XhKHqAOh8MOmB0eBVcWz6nuAw==",
|
||||
"version": "0.17.8",
|
||||
"resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.17.8.tgz",
|
||||
"integrity": "sha512-/OyrHCJ8jtzu+QZ+771YaxQ9s4g5Z3XsQE3Ma7q+BL392xxBn4UMvvCdVnqKC2T/dz03/VXSLVKOP3lHmDdc/w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"fs-extra": "^8.1.0",
|
||||
@ -9452,13 +9452,13 @@
|
||||
"minimatch": "^3.0.0",
|
||||
"progress": "^2.0.3",
|
||||
"shelljs": "^0.8.4",
|
||||
"typedoc-default-themes": "^0.10.1"
|
||||
"typedoc-default-themes": "^0.10.2"
|
||||
}
|
||||
},
|
||||
"typedoc-default-themes": {
|
||||
"version": "0.10.1",
|
||||
"resolved": "https://registry.npmjs.org/typedoc-default-themes/-/typedoc-default-themes-0.10.1.tgz",
|
||||
"integrity": "sha512-SuqAQI0CkwhqSJ2kaVTgl37cWs733uy9UGUqwtcds8pkFK8oRF4rZmCq+FXTGIb9hIUOu40rf5Kojg0Ha6akeg==",
|
||||
"version": "0.10.2",
|
||||
"resolved": "https://registry.npmjs.org/typedoc-default-themes/-/typedoc-default-themes-0.10.2.tgz",
|
||||
"integrity": "sha512-zo09yRj+xwLFE3hyhJeVHWRSPuKEIAsFK5r2u47KL/HBKqpwdUSanoaz5L34IKiSATFrjG5ywmIu98hPVMfxZg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"lunr": "^2.3.8"
|
||||
@ -9505,9 +9505,9 @@
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "3.9.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.5.tgz",
|
||||
"integrity": "sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ==",
|
||||
"version": "3.9.6",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.6.tgz",
|
||||
"integrity": "sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw==",
|
||||
"dev": true
|
||||
},
|
||||
"uglify-js": {
|
||||
|
||||
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nodegui/nodegui",
|
||||
"version": "0.23.1",
|
||||
"version": "0.24.0",
|
||||
"description": "A cross platform library to build native desktop apps.",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
@ -36,12 +36,12 @@
|
||||
"memoize-one": "^5.1.1",
|
||||
"node-addon-api": "^3.0.0",
|
||||
"postcss-nodegui-autoprefixer": "0.0.7",
|
||||
"prebuild-install": "^5.3.4"
|
||||
"prebuild-install": "^5.3.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bindings": "^1.3.0",
|
||||
"@types/jest": "^26.0.0",
|
||||
"@types/node": "^14.0.12",
|
||||
"@types/jest": "^26.0.3",
|
||||
"@types/node": "^14.0.14",
|
||||
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
||||
"@typescript-eslint/parser": "^2.34.0",
|
||||
"clang-format": "^1.3.0",
|
||||
@ -53,9 +53,9 @@
|
||||
"prebuild": "^10.0.0",
|
||||
"prettier": "^2.0.5",
|
||||
"ts-jest": "^25.5.1",
|
||||
"typedoc": "^0.17.7",
|
||||
"typedoc": "^0.17.8",
|
||||
"typedoc-plugin-markdown": "^2.3.1",
|
||||
"typescript": "^3.9.5"
|
||||
"typescript": "^3.9.6"
|
||||
},
|
||||
"binary": {
|
||||
"napi_versions": [
|
||||
|
||||
@ -51,11 +51,13 @@ Its the root base class in NodeGui world.
|
||||
|
||||
↳ [QFontDatabase](qfontdatabase.md)
|
||||
|
||||
↳ [QPoint](qpoint.md)
|
||||
|
||||
↳ [QUrl](qurl.md)
|
||||
|
||||
↳ [QMimeData](qmimedata.md)
|
||||
|
||||
↳ [QPoint](qpoint.md)
|
||||
↳ [QDrag](qdrag.md)
|
||||
|
||||
↳ [QModelIndex](qmodelindex.md)
|
||||
|
||||
|
||||
@ -52,6 +52,8 @@ layout.addWidget(label2);
|
||||
* [activate](flexlayout.md#activate)
|
||||
* [addEventListener](flexlayout.md#addeventlistener)
|
||||
* [addWidget](flexlayout.md#addwidget)
|
||||
* [getChildIndex](flexlayout.md#getchildindex)
|
||||
* [getNextSibling](flexlayout.md#getnextsibling)
|
||||
* [inherits](flexlayout.md#inherits)
|
||||
* [insertChildBefore](flexlayout.md#insertchildbefore)
|
||||
* [invalidate](flexlayout.md#invalidate)
|
||||
@ -211,6 +213,34 @@ Name | Type |
|
||||
|
||||
___
|
||||
|
||||
### getChildIndex
|
||||
|
||||
▸ **getChildIndex**(`childWidget`: [NodeWidget](nodewidget.md)‹any›): *number*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
Name | Type |
|
||||
------ | ------ |
|
||||
`childWidget` | [NodeWidget](nodewidget.md)‹any› |
|
||||
|
||||
**Returns:** *number*
|
||||
|
||||
___
|
||||
|
||||
### getNextSibling
|
||||
|
||||
▸ **getNextSibling**(`childWidget`: [NodeWidget](nodewidget.md)‹any›): *[NodeWidget](nodewidget.md)‹any› | null*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
Name | Type |
|
||||
------ | ------ |
|
||||
`childWidget` | [NodeWidget](nodewidget.md)‹any› |
|
||||
|
||||
**Returns:** *[NodeWidget](nodewidget.md)‹any› | null*
|
||||
|
||||
___
|
||||
|
||||
### inherits
|
||||
|
||||
▸ **inherits**(`className`: string): *boolean*
|
||||
|
||||
256
website/docs/api/generated/classes/qdrag.md
Normal file
256
website/docs/api/generated/classes/qdrag.md
Normal file
@ -0,0 +1,256 @@
|
||||
---
|
||||
id: "qdrag"
|
||||
title: "QDrag"
|
||||
sidebar_label: "QDrag"
|
||||
---
|
||||
|
||||
description
|
||||
|
||||
## Hierarchy
|
||||
|
||||
* [Component](component.md)
|
||||
|
||||
↳ **QDrag**
|
||||
|
||||
## Index
|
||||
|
||||
### Constructors
|
||||
|
||||
* [constructor](qdrag.md#constructor)
|
||||
|
||||
### Properties
|
||||
|
||||
* [native](qdrag.md#native)
|
||||
* [nodeChildren](qdrag.md#nodechildren)
|
||||
* [nodeParent](qdrag.md#optional-nodeparent)
|
||||
|
||||
### Methods
|
||||
|
||||
* [defaultAction](qdrag.md#defaultaction)
|
||||
* [dragCursor](qdrag.md#dragcursor)
|
||||
* [exec](qdrag.md#exec)
|
||||
* [hotSpot](qdrag.md#hotspot)
|
||||
* [mimeData](qdrag.md#mimedata)
|
||||
* [pixmap](qdrag.md#pixmap)
|
||||
* [setDragCursor](qdrag.md#setdragcursor)
|
||||
* [setHotSpot](qdrag.md#sethotspot)
|
||||
* [setMimeData](qdrag.md#setmimedata)
|
||||
* [setNodeParent](qdrag.md#setnodeparent)
|
||||
* [setPixmap](qdrag.md#setpixmap)
|
||||
* [supportedActions](qdrag.md#supportedactions)
|
||||
* [cancel](qdrag.md#static-cancel)
|
||||
|
||||
## Constructors
|
||||
|
||||
### constructor
|
||||
|
||||
\+ **new QDrag**(`arg?`: [NativeElement](../globals.md#nativeelement) | [QObject](qobject.md)): *[QDrag](qdrag.md)*
|
||||
|
||||
*Overrides [Component](component.md).[constructor](component.md#constructor)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
Name | Type |
|
||||
------ | ------ |
|
||||
`arg?` | [NativeElement](../globals.md#nativeelement) | [QObject](qobject.md) |
|
||||
|
||||
**Returns:** *[QDrag](qdrag.md)*
|
||||
|
||||
## Properties
|
||||
|
||||
### native
|
||||
|
||||
• **native**: *[NativeElement](../globals.md#nativeelement)*
|
||||
|
||||
*Overrides [Component](component.md).[native](component.md#abstract-native)*
|
||||
|
||||
___
|
||||
|
||||
### nodeChildren
|
||||
|
||||
• **nodeChildren**: *Set‹[Component](component.md)›*
|
||||
|
||||
*Inherited from [Component](component.md).[nodeChildren](component.md#nodechildren)*
|
||||
|
||||
___
|
||||
|
||||
### `Optional` nodeParent
|
||||
|
||||
• **nodeParent**? : *[Component](component.md)*
|
||||
|
||||
*Inherited from [Component](component.md).[nodeParent](component.md#optional-nodeparent)*
|
||||
|
||||
## Methods
|
||||
|
||||
### defaultAction
|
||||
|
||||
▸ **defaultAction**(): *[DropAction](../enums/dropaction.md)*
|
||||
|
||||
Returns the default proposed drop action for this drag operation.
|
||||
|
||||
**Returns:** *[DropAction](../enums/dropaction.md)*
|
||||
|
||||
___
|
||||
|
||||
### dragCursor
|
||||
|
||||
▸ **dragCursor**(`action`: [DropAction](../enums/dropaction.md)): *[QPixmap](qpixmap.md)*
|
||||
|
||||
Returns the drag cursor for the action.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
Name | Type |
|
||||
------ | ------ |
|
||||
`action` | [DropAction](../enums/dropaction.md) |
|
||||
|
||||
**Returns:** *[QPixmap](qpixmap.md)*
|
||||
|
||||
___
|
||||
|
||||
### exec
|
||||
|
||||
▸ **exec**(`supportedActions`: number, `defaultDropAction?`: [DropAction](../enums/dropaction.md)): *[DropAction](../enums/dropaction.md)*
|
||||
|
||||
Starts the drag and drop operation and returns a value indicating the requested drop action when it is completed. The drop actions that the user can choose from are specified in supportedActions. The default proposed action will be selected among the allowed actions in the following order: Move, Copy and Link.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
Name | Type | Default |
|
||||
------ | ------ | ------ |
|
||||
`supportedActions` | number | DropAction.MoveAction |
|
||||
`defaultDropAction?` | [DropAction](../enums/dropaction.md) | - |
|
||||
|
||||
**Returns:** *[DropAction](../enums/dropaction.md)*
|
||||
|
||||
___
|
||||
|
||||
### hotSpot
|
||||
|
||||
▸ **hotSpot**(): *[QPoint](qpoint.md)*
|
||||
|
||||
Returns the position of the hot spot relative to the top-left corner of the cursor.
|
||||
|
||||
**Returns:** *[QPoint](qpoint.md)*
|
||||
|
||||
___
|
||||
|
||||
### mimeData
|
||||
|
||||
▸ **mimeData**(): *[QMimeData](qmimedata.md)*
|
||||
|
||||
Returns the MIME data that is encapsulated by the drag object.
|
||||
|
||||
**Returns:** *[QMimeData](qmimedata.md)*
|
||||
|
||||
___
|
||||
|
||||
### pixmap
|
||||
|
||||
▸ **pixmap**(): *[QPixmap](qpixmap.md)*
|
||||
|
||||
Returns the pixmap used to represent the data in a drag and drop operation.
|
||||
|
||||
**Returns:** *[QPixmap](qpixmap.md)*
|
||||
|
||||
___
|
||||
|
||||
### setDragCursor
|
||||
|
||||
▸ **setDragCursor**(`cursor`: [QPixmap](qpixmap.md), `action`: [DropAction](../enums/dropaction.md)): *void*
|
||||
|
||||
Sets the drag cursor for the action. This allows you to override the default native cursors. To revert to using the native cursor for action pass in a null QPixmap as cursor.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
Name | Type |
|
||||
------ | ------ |
|
||||
`cursor` | [QPixmap](qpixmap.md) |
|
||||
`action` | [DropAction](../enums/dropaction.md) |
|
||||
|
||||
**Returns:** *void*
|
||||
|
||||
___
|
||||
|
||||
### setHotSpot
|
||||
|
||||
▸ **setHotSpot**(`hotspot`: [QPoint](qpoint.md)): *void*
|
||||
|
||||
Sets the position of the hot spot relative to the top-left corner of the pixmap used to the point specified by hotspot.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
Name | Type |
|
||||
------ | ------ |
|
||||
`hotspot` | [QPoint](qpoint.md) |
|
||||
|
||||
**Returns:** *void*
|
||||
|
||||
___
|
||||
|
||||
### setMimeData
|
||||
|
||||
▸ **setMimeData**(`data`: [QMimeData](qmimedata.md)): *void*
|
||||
|
||||
Sets the data to be sent to the given MIME data.
|
||||
Ownership of the data is transferred to the QDrag object.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
Name | Type |
|
||||
------ | ------ |
|
||||
`data` | [QMimeData](qmimedata.md) |
|
||||
|
||||
**Returns:** *void*
|
||||
|
||||
___
|
||||
|
||||
### setNodeParent
|
||||
|
||||
▸ **setNodeParent**(`parent?`: [Component](component.md)): *void*
|
||||
|
||||
*Inherited from [Component](component.md).[setNodeParent](component.md#setnodeparent)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
Name | Type |
|
||||
------ | ------ |
|
||||
`parent?` | [Component](component.md) |
|
||||
|
||||
**Returns:** *void*
|
||||
|
||||
___
|
||||
|
||||
### setPixmap
|
||||
|
||||
▸ **setPixmap**(`pixmap`: [QPixmap](qpixmap.md)): *void*
|
||||
|
||||
Sets pixmap as the pixmap used to represent the data in a drag and drop operation. You can only set a pixmap before the drag is started.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
Name | Type |
|
||||
------ | ------ |
|
||||
`pixmap` | [QPixmap](qpixmap.md) |
|
||||
|
||||
**Returns:** *void*
|
||||
|
||||
___
|
||||
|
||||
### supportedActions
|
||||
|
||||
▸ **supportedActions**(): *number*
|
||||
|
||||
Returns the set of possible drop actions for this drag operation.
|
||||
|
||||
**Returns:** *number*
|
||||
|
||||
___
|
||||
|
||||
### `Static` cancel
|
||||
|
||||
▸ **cancel**(): *void*
|
||||
|
||||
Cancels a drag operation initiated by Qt.
|
||||
|
||||
**Returns:** *void*
|
||||
@ -204,6 +204,7 @@ sidebar_label: "Globals"
|
||||
* [QDial](classes/qdial.md)
|
||||
* [QDialog](classes/qdialog.md)
|
||||
* [QDoubleSpinBox](classes/qdoublespinbox.md)
|
||||
* [QDrag](classes/qdrag.md)
|
||||
* [QDragLeaveEvent](classes/qdragleaveevent.md)
|
||||
* [QDragMoveEvent](classes/qdragmoveevent.md)
|
||||
* [QDropEvent](classes/qdropevent.md)
|
||||
|
||||
@ -40,6 +40,7 @@ module.exports = {
|
||||
"api/generated/classes/qdial",
|
||||
"api/generated/classes/qdialog",
|
||||
"api/generated/classes/qdoublespinbox",
|
||||
"api/generated/classes/qdrag",
|
||||
"api/generated/classes/qdragleaveevent",
|
||||
"api/generated/classes/qdragmoveevent",
|
||||
"api/generated/classes/qdropevent",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user