@operato/scene-marker 10.0.0-beta.14 → 10.0.0-beta.65
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 +28 -10
- package/dist/marker.d.ts +9 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,15 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @operato/scene-marker
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Marker UI component for things-scene
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<!-- AUTOGEN_BEGIN: do not edit between markers (run scripts/regenerate-readmes.mjs to update) -->
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
| ---- | ------------------------- | -------------- | ------ |
|
|
9
|
-
| UMD | things-scene-marker.js | modern browser | O |
|
|
10
|
-
| UMD | things-scene-marker-ie.js | ie 11 | O |
|
|
11
|
-
| ESM | things-scene-marker.mjs | modern browser | O |
|
|
7
|
+
## Components
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
- `Marker`
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
yarn add @operato/scene-marker
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { Marker } from '@operato/scene-marker'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Build
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
yarn build
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Output: ESM module at `dist/index.js` (single bundle, no UMD/IE legacy).
|
|
30
|
+
|
|
31
|
+
_Version: 10.0.0-beta.14_
|
|
32
|
+
|
|
33
|
+
<!-- AUTOGEN_END -->
|
package/dist/marker.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare const Marker_base: (new (...args: any[]) => {
|
|
|
49
49
|
get disposed(): boolean;
|
|
50
50
|
isLayer(): boolean;
|
|
51
51
|
isGroup(): boolean;
|
|
52
|
-
isContainer(): this is import("@hatiolab/things-scene
|
|
52
|
+
isContainer(): this is import("@hatiolab/things-scene").Container;
|
|
53
53
|
isLine(): boolean;
|
|
54
54
|
isRoot(): boolean;
|
|
55
55
|
isRootModel(): boolean;
|
|
@@ -65,9 +65,10 @@ declare const Marker_base: (new (...args: any[]) => {
|
|
|
65
65
|
get(property: any): any;
|
|
66
66
|
set(props: any, propval?: any): any;
|
|
67
67
|
getState(property: any): any;
|
|
68
|
-
setState(props:
|
|
68
|
+
setState(props: Partial<import("@hatiolab/things-scene").State> | string, propval?: any): any;
|
|
69
69
|
get model(): any;
|
|
70
|
-
get state():
|
|
70
|
+
get state(): import("@hatiolab/things-scene").State;
|
|
71
|
+
get refid(): any;
|
|
71
72
|
get hierarchy(): any;
|
|
72
73
|
get volatile(): never[];
|
|
73
74
|
_applyProps(target: any, props: any, options: any): any;
|
|
@@ -158,7 +159,7 @@ declare const Marker_base: (new (...args: any[]) => {
|
|
|
158
159
|
findAll(s: string | ((c: import("@hatiolab/things-scene").Component) => boolean), ...others: any[]): any[] | undefined;
|
|
159
160
|
capture(x: number, y: number, except?: (c: import("@hatiolab/things-scene").Component) => boolean): any;
|
|
160
161
|
findAnchor(name: string): any;
|
|
161
|
-
isDescendible(container: import("@hatiolab/things-scene").Component): boolean;
|
|
162
|
+
isDescendible(container: import("@hatiolab/things-scene").Component | any): boolean;
|
|
162
163
|
getContext(component?: unknown): any;
|
|
163
164
|
get root(): import("@hatiolab/things-scene").Component;
|
|
164
165
|
get rootModel(): import("@hatiolab/things-scene").Component;
|
|
@@ -202,9 +203,13 @@ declare const Marker_base: (new (...args: any[]) => {
|
|
|
202
203
|
toLocal(x: number, y: number, top?: import("@hatiolab/things-scene").Component): import("@hatiolab/things-scene").POINT;
|
|
203
204
|
toGlobal(x: number, y: number, top?: import("@hatiolab/things-scene").Component): import("@hatiolab/things-scene").POINT;
|
|
204
205
|
toOther(x: number, y: number, target: import("@hatiolab/things-scene").Component): import("@hatiolab/things-scene").POINT;
|
|
206
|
+
on<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
|
|
205
207
|
on(name: string | object, callback: Function, context?: any): any;
|
|
208
|
+
off<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback?: ((...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void) | undefined, context?: any): any;
|
|
206
209
|
off(name?: string | object, callback?: Function, context?: any): any;
|
|
210
|
+
once<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
|
|
207
211
|
once(name: string | object, callback: Function, context?: any): any;
|
|
212
|
+
trigger<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, ...args: import("@hatiolab/things-scene").ComponentEventMap[K]): any;
|
|
208
213
|
trigger(name: string, ...args: any[]): any;
|
|
209
214
|
delegate_on(delegator: any): any;
|
|
210
215
|
delegate_off(delegator: any): any;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/scene-marker",
|
|
3
3
|
"description": "Marker UI component for things-scene",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "10.0.0-beta.
|
|
5
|
+
"version": "10.0.0-beta.65",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@hatiolab/prettier-config": "^1.0.0",
|
|
35
|
-
"@things-factory/builder": "^10.0.0-
|
|
36
|
-
"@things-factory/operato-board": "^10.0.0-
|
|
35
|
+
"@things-factory/builder": "^10.0.0-zeta.1",
|
|
36
|
+
"@things-factory/operato-board": "^10.0.0-zeta.1",
|
|
37
37
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
38
38
|
"@typescript-eslint/parser": "^8.0.0",
|
|
39
39
|
"@web/dev-server": "^0.1.28",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"prettier --write"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "99733bf39e2d279630d68844f19d9687272a4992"
|
|
62
62
|
}
|