@operato/scene-ar 1.2.87 → 2.0.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +17 -0
- package/dist/arview.js.map +1 -1
- package/package.json +4 -4
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,23 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.0.0-alpha.0](https://github.com/things-scene/operato-scene/compare/v1.3.9...v2.0.0-alpha.0) (2024-01-14)
|
7
|
+
|
8
|
+
|
9
|
+
### :bug: Bug Fix
|
10
|
+
|
11
|
+
* 2.0.0-alpha.0 ([93274e3](https://github.com/things-scene/operato-scene/commit/93274e36c5d184f339f83899654dd48b4786ac2b))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
## [1.2.90](https://github.com/things-scene/operato-scene/compare/v1.2.89...v1.2.90) (2023-11-22)
|
16
|
+
|
17
|
+
**Note:** Version bump only for package @operato/scene-ar
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
6
23
|
## [1.2.87](https://github.com/things-scene/operato-scene/compare/v1.2.86...v1.2.87) (2023-11-10)
|
7
24
|
|
8
25
|
**Note:** Version bump only for package @operato/scene-ar
|
package/dist/arview.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"arview.js","sourceRoot":"","sources":["../src/arview.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,sBAAsB,CAAA;AAE7B,OAAO,EAAE,SAAS,EAAmB,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAEzF,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,KAAK;SACZ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;QACvB,IAAI,cAAc,EAAE,CAAC;YACnB,OAAO,CAAC,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAA;QACzD,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAA;QAC5C,CAAC;QAED,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;QAC9B,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,+BAA+B,CAAC,CAAA;QACjE,OAAO,CAAC,YAAY,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAA;QACpD,OAAO,CAAC,YAAY,CAAC,aAAa,EAAE,EAAE,CAAC,CAAA;IACzC,CAAC;IAED;;;OAGG;IACH,UAAU;QACR,KAAK,CAAC,UAAU,EAAE,CAAA;IACpB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,cAAc,CAAA;IACvB,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport '@google/model-viewer'\n\nimport { Component, ComponentNature, HTMLOverlayContainer } from '@hatiolab/things-scene'\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'attachment-selector',\n label: 'src',\n name: 'src'\n },\n {\n type: 'checkbox',\n label: 'camera-controls',\n name: 'cameraControls'\n }\n ],\n 'value-property': 'src'\n}\n\nexport default class Arview extends HTMLOverlayContainer {\n get nature() {\n return NATURE\n }\n\n /*\n * 컴포넌트의 생성 또는 속성 변화 시에 호출되며,\n * 그에 따른 html element의 반영이 필요한 부분을 구현한다.\n *\n * ThingsComponent state => HTML element properties\n */\n setElementProperties(element: HTMLElement & { src: string }) {\n var { src, cameraControls } = this.state\n\n // element.style.pointerEvents = 'auto' //'inherit'\n\n element.src = src || ''\n if (cameraControls) {\n element.setAttribute('camera-controls', cameraControls)\n } else {\n element.removeAttribute('camera-controls')\n }\n\n element.setAttribute('ar', '')\n element.setAttribute('ar-modes', 'webxr scene-viewer quick-look')\n element.setAttribute('environment-image', 'neutral')\n element.setAttribute('auto-rotate', '')\n }\n\n /*\n * 컴포넌트가 ready 상태가 되거나, 컴포넌트의 속성이 변화될 시 setElementProperties 뒤에 호출된다.\n * 변화에 따른 기본적인 html 속성이 super.reposition()에서 진행되고, 그 밖의 작업이 필요할 때, 오버라이드 한다.\n */\n reposition() {\n super.reposition()\n }\n\n get tagName() {\n return 'model-viewer'\n }\n}\n\nComponent.register('arview', Arview)\n"]}
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@operato/scene-ar",
|
3
3
|
"description": "AR Modelviewer component for things-scene",
|
4
4
|
"author": "heartyoh",
|
5
|
-
"version": "
|
5
|
+
"version": "2.0.0-alpha.0",
|
6
6
|
"main": "dist/index.js",
|
7
7
|
"module": "dist/index.js",
|
8
8
|
"license": "MIT",
|
@@ -31,8 +31,8 @@
|
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
33
|
"@hatiolab/prettier-config": "^1.0.0",
|
34
|
-
"@things-factory/builder": "^
|
35
|
-
"@things-factory/operato-board": "^
|
34
|
+
"@things-factory/builder": "^7.0.0-alpha.0",
|
35
|
+
"@things-factory/operato-board": "^7.0.0-alpha.0",
|
36
36
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
37
37
|
"@typescript-eslint/parser": "^4.33.0",
|
38
38
|
"@web/dev-server": "^0.1.28",
|
@@ -57,5 +57,5 @@
|
|
57
57
|
"prettier --write"
|
58
58
|
]
|
59
59
|
},
|
60
|
-
"gitHead": "
|
60
|
+
"gitHead": "2268fc7a750dda9a342677a6acf4ef99afe1b90c"
|
61
61
|
}
|