@flighthq/selection 0.5.1-edge.1692.64cda40 → 0.5.1-edge.1892.cbd15bd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/contract.d.ts +4 -4
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +4 -4
- package/dist/contract.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pointerSelectionPolicy.d.ts.map +1 -1
- package/dist/pointerSelectionPolicy.js +1 -1
- package/dist/pointerSelectionPolicy.js.map +1 -1
- package/package.json +6 -6
- package/src/lassoSelection.test.ts +2 -2
- package/src/marqueeSelection.test.ts +1 -1
- package/src/pointerSelectionPolicy.test.ts +1 -1
- package/src/selectionState.test.ts +1 -1
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/selection`. The `@fl
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/selection@0.5.1-edge.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/selection@0.5.1-edge.1892.cbd15bd](https://github.com/flighthq/flight/tree/cbd15bd13373265e8f6dcf0cb057a16aee812919/packages/selection)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/cbd15bd13373265e8f6dcf0cb057a16aee812919/LICENSE.md)
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './lassoSelection';
|
|
2
|
-
export * from './marqueeSelection';
|
|
3
|
-
export * from './pointerSelectionPolicy';
|
|
4
|
-
export * from './selectionState';
|
|
1
|
+
export * from './lassoSelection.ts';
|
|
2
|
+
export * from './marqueeSelection.ts';
|
|
3
|
+
export * from './pointerSelectionPolicy.ts';
|
|
4
|
+
export * from './selectionState.ts';
|
|
5
5
|
//# sourceMappingURL=contract.d.ts.map
|
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC"}
|
package/dist/contract.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from "./lassoSelection.js";
|
|
2
|
+
export * from "./marqueeSelection.js";
|
|
3
|
+
export * from "./pointerSelectionPolicy.js";
|
|
4
|
+
export * from "./selectionState.js";
|
|
5
5
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { addLassoSelectionPoint, addNodeToSelection, applyPointerSelectionPolicy, applyPointerUpSelectionPolicy, beginLassoSelection, beginMarqueeSelection, clearSelection, createLassoSelection, createMarqueeSelection, createSelectionState, endLassoSelection, endMarqueeSelection, findNodesInLassoSelection, findNodesInMarqueeSelection, getActiveNode, getLassoSelectionPath, getMarqueeRectangle, getSelectedNodes, getSelectionCount, getSelectionSignals, hasSelection, isNodeSelected, removeNodeFromSelection, selectAllNodes, selectNode, toggleNodeSelection, updateMarqueeSelection, } from './contract';
|
|
1
|
+
export { addLassoSelectionPoint, addNodeToSelection, applyPointerSelectionPolicy, applyPointerUpSelectionPolicy, beginLassoSelection, beginMarqueeSelection, clearSelection, createLassoSelection, createMarqueeSelection, createSelectionState, endLassoSelection, endMarqueeSelection, findNodesInLassoSelection, findNodesInMarqueeSelection, getActiveNode, getLassoSelectionPath, getMarqueeRectangle, getSelectedNodes, getSelectionCount, getSelectionSignals, hasSelection, isNodeSelected, removeNodeFromSelection, selectAllNodes, selectNode, toggleNodeSelection, updateMarqueeSelection, } from './contract.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { addLassoSelectionPoint, addNodeToSelection, applyPointerSelectionPolicy, applyPointerUpSelectionPolicy, beginLassoSelection, beginMarqueeSelection, clearSelection, createLassoSelection, createMarqueeSelection, createSelectionState, endLassoSelection, endMarqueeSelection, findNodesInLassoSelection, findNodesInMarqueeSelection, getActiveNode, getLassoSelectionPath, getMarqueeRectangle, getSelectedNodes, getSelectionCount, getSelectionSignals, hasSelection, isNodeSelected, removeNodeFromSelection, selectAllNodes, selectNode, toggleNodeSelection, updateMarqueeSelection, } from
|
|
1
|
+
export { addLassoSelectionPoint, addNodeToSelection, applyPointerSelectionPolicy, applyPointerUpSelectionPolicy, beginLassoSelection, beginMarqueeSelection, clearSelection, createLassoSelection, createMarqueeSelection, createSelectionState, endLassoSelection, endMarqueeSelection, findNodesInLassoSelection, findNodesInMarqueeSelection, getActiveNode, getLassoSelectionPath, getMarqueeRectangle, getSelectedNodes, getSelectionCount, getSelectionSignals, hasSelection, isNodeSelected, removeNodeFromSelection, selectAllNodes, selectNode, toggleNodeSelection, updateMarqueeSelection, } from "./contract.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pointerSelectionPolicy.d.ts","sourceRoot":"","sources":["../src/pointerSelectionPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"pointerSelectionPolicy.d.ts","sourceRoot":"","sources":["../src/pointerSelectionPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAUzG,wBAAgB,2BAA2B,CAAC,QAAQ,SAAS,gBAAgB,EAC3E,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,EAC/B,GAAG,EAAE,QAAQ,GAAG,IAAI,EACpB,SAAS,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAC1C,IAAI,CAoBN;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,SAAS,gBAAgB,EAC7E,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,EAC/B,GAAG,EAAE,QAAQ,GAAG,IAAI,EACpB,SAAS,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAC3C,OAAO,EAAE,OAAO,GACf,IAAI,CAGN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addNodeToSelection, clearSelection, isNodeSelected, selectNode, toggleNodeSelection } from
|
|
1
|
+
import { addNodeToSelection, clearSelection, isNodeSelected, selectNode, toggleNodeSelection, } from "./selectionState.js";
|
|
2
2
|
export function applyPointerSelectionPolicy(state, hit, modifiers) {
|
|
3
3
|
// Alt is carried so callers can layer an alternate-pick policy on top. The base selection policy
|
|
4
4
|
// does not give it an implicit mutation that the caller cannot distinguish from an ordinary click.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pointerSelectionPolicy.js","sourceRoot":"","sources":["../src/pointerSelectionPolicy.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"pointerSelectionPolicy.js","sourceRoot":"","sources":["../src/pointerSelectionPolicy.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,UAAU,EACV,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,UAAU,2BAA2B,CACzC,KAA+B,EAC/B,GAAoB,EACpB,SAA2C;IAE3C,iGAAiG;IACjG,mGAAmG;IACnG,IAAI,SAAS,CAAC,MAAM;QAAE,OAAO;IAE7B,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QACjB,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC;YAAE,cAAc,CAAC,KAAK,CAAC,CAAC;QACzD,OAAO;IACT,CAAC;IAED,IAAI,iBAAiB,CAAC,SAAS,CAAC,EAAE,CAAC;QACjC,IAAI,SAAS,CAAC,QAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC;YACtD,kBAAkB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACjC,CAAC;aAAM,CAAC;YACN,mBAAmB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAClC,CAAC;QACD,OAAO;IACT,CAAC;IAED,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC;QAAE,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,KAA+B,EAC/B,GAAoB,EACpB,SAA2C,EAC3C,OAAgB;IAEhB,IAAI,OAAO,IAAI,GAAG,KAAK,IAAI,IAAI,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC;QAAE,OAAO;IAChG,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,cAAc,CAAC,SAA2C;IACjE,OAAO,SAAS,CAAC,MAAM,IAAI,iBAAiB,CAAC,SAAS,CAAC,CAAC;AAC1D,CAAC;AAED,SAAS,iBAAiB,CAAC,SAA2C;IACpE,OAAO,SAAS,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,IAAI,SAAS,CAAC,QAAQ,CAAC;AACtE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/selection",
|
|
3
|
-
"version": "0.5.1-edge.
|
|
3
|
+
"version": "0.5.1-edge.1892.cbd15bd",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/entity": "0.5.1-edge.
|
|
42
|
-
"@flighthq/geometry": "0.5.1-edge.
|
|
43
|
-
"@flighthq/node": "0.5.1-edge.
|
|
44
|
-
"@flighthq/signals": "0.5.1-edge.
|
|
45
|
-
"@flighthq/types": "0.5.1-edge.
|
|
41
|
+
"@flighthq/entity": "0.5.1-edge.1892.cbd15bd",
|
|
42
|
+
"@flighthq/geometry": "0.5.1-edge.1892.cbd15bd",
|
|
43
|
+
"@flighthq/node": "0.5.1-edge.1892.cbd15bd",
|
|
44
|
+
"@flighthq/signals": "0.5.1-edge.1892.cbd15bd",
|
|
45
|
+
"@flighthq/types": "0.5.1-edge.1892.cbd15bd"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"typescript": "^5.3.0"
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
endLassoSelection,
|
|
10
10
|
findNodesInLassoSelection,
|
|
11
11
|
getLassoSelectionPath,
|
|
12
|
-
} from './index';
|
|
13
|
-
import { initializeLassoSelection } from './lassoSelection';
|
|
12
|
+
} from './index.ts';
|
|
13
|
+
import { initializeLassoSelection } from './lassoSelection.ts';
|
|
14
14
|
|
|
15
15
|
describe('addLassoSelectionPoint', () => {
|
|
16
16
|
it('appends line points only during an active gesture', () => {
|