@operato/scene-visualizer 1.2.36 → 1.2.37

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"three-space.js","sourceRoot":"","sources":["../src/three-space.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAmB,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAc,MAAM,wBAAwB,CAAA;AAC9G,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAA;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AAE5E,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAC5C,OAAO,gBAAgB,CAAA;AAGvB,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAA;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAGlD,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE;gBACR,OAAO,EAAE;oBACP;wBACE,OAAO,EAAE,MAAM;wBACf,KAAK,EAAE,OAAO;qBACf;oBACD;wBACE,OAAO,EAAE,QAAQ;wBACjB,KAAK,EAAE,SAAS;qBACjB;oBACD;wBACE,OAAO,EAAE,KAAK;wBACd,KAAK,EAAE,MAAM;qBACd;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,WAAW;SACtB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,YAAY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,CAAC,KAAK,CAAC,MAAM,CAAA;QACrB,IAAI,IAAI,KAAK,GAAG,GAAG,CAAA;QACnB,IAAI,IAAI,GAAG,GAAG;YAAE,IAAI,GAAG,GAAG,CAAA;QAE1B,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAC7B,CAAC;IAED,QAAQ;QACN,IAAI,CAAC,cAAc,EAAE,CAAA;IACvB,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { Component, ComponentNature, Container, error, FPS, Layout, Properties } from '@hatiolab/things-scene'\nimport * as THREE from 'three'\nimport { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js'\nimport { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js'\n\nimport ThreeControls from './three-controls'\nimport './three-layout'\nimport { RealObject } from './threed/real-object'\nimport { ThreeDimensionalContainer } from './threed/three-dimensional-container'\nimport { CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer'\nimport { createFloor } from './threed/floor/floor'\nimport { RealObjectDomElement } from './threed'\n\nconst NATURE = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'select',\n label: 'precision',\n name: 'precision',\n property: {\n options: [\n {\n display: 'High',\n value: 'highp'\n },\n {\n display: 'Medium',\n value: 'mediump'\n },\n {\n display: 'Low',\n value: 'lowp'\n }\n ]\n }\n },\n {\n type: 'checkbox',\n label: 'anti-alias',\n name: 'antialias',\n property: 'antialias'\n },\n {\n type: 'checkbox',\n label: 'controller',\n name: 'controller',\n property: 'controller'\n }\n ],\n help: 'scene/component/three-space'\n}\n\nconst WEBGL_NO_SUPPORT_TEXT = 'WebGL no support'\n\nexport class ThreeSpace extends Container implements ThreeDimensionalContainer {\n _scene3d?: THREE.Scene\n _initalizeComplete?: Promise<void>\n\n _mixer?: THREE.AnimationMixer\n\n _camera?: THREE.PerspectiveCamera\n _renderer3d?: THREE.WebGLRenderer\n\n _mouse?: THREE.Vector2\n\n _clock?: THREE.Clock\n\n _controls?: any\n _onFocus?: (e: FocusEvent) => void\n _onResize?: (e: Event) => void\n _noSupportWebgl: boolean = false\n\n _raycaster = new THREE.Raycaster()\n\n _lastFocused?: RealObject\n _lastHovered?: RealObject\n\n private _css3DScene?: THREE.Scene\n private _css3DRenderer?: CSS3DRenderer\n\n composer?: EffectComposer\n\n containable(component: Component) {\n return component.is3dish()\n }\n\n is3dContainer() {\n return true\n }\n\n /* THREE Object related .. */\n\n createObjects(components: Component[]) {\n for (let component of components) {\n try {\n var item = component.realObject\n\n if (item) {\n if (component.isHTMLElement()) {\n this.css3DScene.add((item as RealObjectDomElement).object3d)\n } else {\n this._scene3d!.add(item.object3d)\n }\n }\n } catch (err) {\n error(err)\n }\n }\n }\n\n destroy_scene3d() {\n this.stop()\n\n window.removeEventListener('focus', this._onFocus!)\n window.removeEventListener('resize', this._onResize!)\n\n if (this._renderer3d) this._renderer3d.clear()\n\n if (this._controls?.autoRotate) {\n this._controls.doAutoRotate(false)\n }\n\n delete this._renderer3d\n delete this._camera\n delete this._controls\n\n if (this._scene3d) {\n let children = this._scene3d.children.slice()\n for (let i in children) {\n let child = children[i] as any\n if (child.dispose) child.dispose()\n if (child.geometry && child.geometry.dispose) child.geometry.dispose()\n if (child.material && child.material.dispose) child.material.dispose()\n if (child.texture && child.texture.dispose) child.texture.dispose()\n this._scene3d.remove(child)\n }\n }\n\n delete this._scene3d\n }\n\n update() {\n var { width, height } = this.bounds\n\n var {\n fov = 45,\n near = 0.1,\n far = 20000,\n antialias = true,\n precision = 'highp',\n cameraX,\n cameraY,\n cameraZ,\n exposure = 2.5\n } = this.state\n\n var components = this.components || []\n\n // SCENE\n this._scene3d = new THREE.Scene()\n\n // CAMERA\n var aspect = width / height\n\n this._camera = new THREE.PerspectiveCamera(fov, aspect, near, far)\n\n var cameraXPos = height * 0.8,\n cameraYPos = width * 0.8,\n cameraZPos = Math.min(500, Math.floor(Math.min(width, height)))\n // cameraZPos = Math.floor(Math.min(width, height))\n\n if (cameraX != undefined) cameraXPos = cameraX * width\n if (cameraY != undefined) cameraYPos = cameraY * height\n if (cameraZ != undefined) cameraZPos = cameraZ * Math.floor(Math.min(width, height))\n\n this._camera.position.set(cameraXPos, cameraZPos, cameraYPos)\n\n this._scene3d.add(this._camera)\n this._camera.lookAt(this._scene3d.position)\n this._camera.zoom = this.getState('zoom') * 0.01\n\n try {\n const canvas = document.createElement('canvas')\n let context = canvas!.getContext('webgl2')!\n\n var renderer3d = new THREE.WebGLRenderer({\n canvas,\n context,\n precision,\n alpha: true,\n antialias\n })\n } catch (e) {\n this._noSupportWebgl = true\n return\n }\n\n this._renderer3d = renderer3d\n\n renderer3d!.autoClear = true\n // @ts-ignore for three@0.150.1\n renderer3d!.outputColorSpace = THREE.SRGBColorSpace\n renderer3d!.useLegacyLights = false\n renderer3d!.toneMappingExposure = Math.pow(exposure, 5.0)\n renderer3d!.toneMapping = THREE.LinearToneMapping\n renderer3d!.shadowMap.enabled = true\n renderer3d!.setClearColor(0xffffff, 0) // transparent\n renderer3d!.setSize(width, height)\n\n // CONTROLS\n this._controls = new (ThreeControls as any)(this._camera, this)\n this._controls.cameraChanged = true\n\n // Lights\n var _hemiLight = new THREE.HemisphereLight(0xdddddd, 0x333333, 0.035)\n var _directionalLight = new THREE.DirectionalLight(0xd6e1ff, 0.01)\n var _pointLight1 = new THREE.PointLight(0xd6e1ff, 1, undefined, 2)\n\n _pointLight1.power = cameraZPos * 50\n _pointLight1.castShadow = true\n _pointLight1.position.set(0, cameraZPos, 0)\n _pointLight1.shadow.camera.near = 0.1\n _pointLight1.shadow.camera.far = cameraZPos * 2\n\n // const helper = new THREE.CameraHelper(_pointLight1.shadow.camera)\n // this._scene3d?.add(helper)\n\n this.scene3d!.add(_hemiLight)\n this.scene3d!.add(_pointLight1)\n this._camera.add(_directionalLight)\n\n this._mouse = new THREE.Vector2()\n\n this._clock = new THREE.Clock(true)\n this._mixer = new THREE.AnimationMixer(this.scene3d!)\n\n this.createObjects(components)\n\n this._camera.updateProjectionMatrix()\n\n const floor = createFloor(this)\n // if (this._floor) {\n // this.object3d.remove(this._floor)\n // this._floor.clear()\n // delete this._floor\n // }\n\n if (floor) {\n // this._floor = floor\n this._scene3d.add(floor)\n }\n\n // this.invalidate()\n\n // postprocessing\n\n var composer = (this.composer = new EffectComposer(renderer3d!))\n composer.setSize(width, height)\n\n const renderPass = new RenderPass(this._scene3d, this._camera)\n composer.addPass(renderPass)\n\n this._onFocus = (e: FocusEvent) => {\n this.render_threed()\n }\n\n this._onResize = (e: Event) => {\n this.resize()\n }\n\n window.addEventListener('resize', this._onResize)\n window.addEventListener('focus', this._onFocus)\n\n this.buildOverlays()\n this.resize()\n }\n\n resize() {\n const { width, height } = this.bounds\n\n this._camera!.aspect = width / height\n\n this.renderer3d!.setSize(width, height)\n this.css3DRenderer.setSize(width, height)\n\n this.composer?.setSize(width, height)\n this._camera!.updateProjectionMatrix()\n }\n\n init_scene3d() {\n this.root.on('redraw', this.onredraw, this)\n\n if (this._scene3d) {\n this.destroy_scene3d()\n }\n\n this.update()\n\n this.onchangeData && this.onchangeData(this.data, this.data)\n }\n\n threed_animate() {\n if (!this._controls) {\n return\n }\n\n if (this._mixer) {\n this._mixer.update(this._clock!.getDelta())\n }\n\n this._controls.update()\n\n if (this.state.autoRotate) {\n this.invalidate()\n }\n\n this.render_threed()\n }\n\n stop() {}\n\n get scene3d() {\n if (!this._scene3d) {\n this.init_scene3d()\n }\n\n return this._scene3d\n }\n\n get renderer3d() {\n return this._renderer3d\n }\n\n get mixer() {\n return this._mixer\n }\n\n get zoom() {\n return this._camera?.zoom\n }\n\n /**\n * CSS3DRenderer용 THREE.Scene을 제공\n */\n get css3DScene() {\n if (!this._css3DScene) {\n this._css3DScene = this.buildCSS3DScene()\n }\n return this._css3DScene\n }\n\n protected buildCSS3DScene() {\n return new THREE.Scene()\n }\n\n protected disposeCSS3DScene() {\n var children = [...this.css3DScene.children]\n children.forEach(child => this.css3DScene.remove(child))\n }\n\n /* css3d-renderer */\n\n /**\n * css3d-renderer getter\n */\n get css3DRenderer() {\n if (!this._css3DRenderer) {\n this._css3DRenderer = this.createCSS3DRenderer()\n }\n\n return this._css3DRenderer\n }\n\n protected createCSS3DRenderer() {\n var renderer = new CSS3DRenderer()\n var div = renderer.domElement\n div.style.position = 'absolute'\n div.style.top = '0'\n div.style.pointerEvents = 'none'\n\n if (this.app.isViewMode) {\n // disableAllUserEvents(div)\n } else {\n div.style.pointerEvents = 'none'\n }\n\n return renderer\n }\n\n protected disposeCSS3DRenderer() {\n // Nothing to do\n }\n\n /**\n * element내부에 필요한 overlay들을 생성\n * ViewRenderer에서는 CSS3DRenderer와 GLRendering을 위한 canvas를 오버레이로 만든다.\n * Warn: this.element는 아직 만들어지지 않은 상태에 buildOverlays가 호출됨.\n * @param into\n */\n buildOverlays() {\n this.element.appendChild(this.css3DRenderer.domElement)\n }\n\n render_threed() {\n if (this.composer) {\n this.composer.render()\n }\n }\n\n /* Container Overides .. */\n render(ctx: CanvasRenderingContext2D) {\n if (this.app.isViewMode) {\n this.setState('threed', true)\n }\n\n if (this.state.threed && !this._noSupportWebgl && this._camera) {\n this.css3DRenderer.render(this.css3DScene, this._camera!)\n return\n }\n\n super.render(ctx)\n }\n\n postrender(ctx: CanvasRenderingContext2D) {\n var { left, top, debug, threed } = this.state\n\n var { width, height } = this.bounds\n\n // ios에서 width, height에 소수점이 있으면 3d를 표현하지 못하는 문제가 있어 정수화\n width = Math.floor(width)\n height = Math.floor(height)\n\n if (threed) {\n if (!this._scene3d) {\n this.init_scene3d()\n this.render_threed()\n }\n\n if (this._noSupportWebgl) {\n this._showWebglNoSupportText(ctx)\n return\n }\n\n if (!this._renderer3d) {\n return\n }\n\n var { width: rendererWidth, height: rendererHeight } = this._renderer3d.getSize(new THREE.Vector2())\n\n ctx.drawImage(this._renderer3d.domElement, 0, 0, rendererWidth, rendererHeight, left, top, width, height)\n\n if (debug) {\n ctx.font = 100 + 'px Arial'\n ctx.textAlign = 'center'\n ctx.fillStyle = 'black'\n ctx.globalAlpha = 0.5\n ctx.fillText(String(FPS()), 100, 100)\n }\n } else {\n super.postrender(ctx)\n }\n }\n\n dispose() {\n this.root.off('redraw', this.onredraw, this)\n\n this.disposeCSS3DScene()\n\n this.composer?.dispose()\n this.destroy_scene3d()\n\n super.dispose()\n }\n\n get layout() {\n return Layout.get('three')\n }\n\n get nature(): ComponentNature {\n return NATURE\n }\n\n getObjectByRaycast(): THREE.Object3D | undefined {\n var intersects = this.getObjectsByRaycast()\n\n if (intersects && intersects.length > 0) {\n var object: THREE.Object3D | null = intersects[0].object\n while (object) {\n if (object.userData.context) {\n return object\n }\n\n object = object.parent\n }\n }\n }\n\n getObjectsByRaycast() {\n var vector = this._mouse\n if (!this._camera) {\n return\n }\n\n this._raycaster.setFromCamera(vector!, this._camera)\n\n var intersects = this._raycaster.intersectObjects(this._scene3d!.children, true)\n\n return intersects\n }\n\n _showWebglNoSupportText(context: CanvasRenderingContext2D) {\n context.save()\n\n var { width, height } = this.state\n\n context.font = width / 20 + 'px Arial'\n context.textAlign = 'center'\n context.fillText(WEBGL_NO_SUPPORT_TEXT, width / 2 - width / 40, height / 2)\n\n context.restore()\n }\n\n /* Event Handlers */\n\n onchange(after: Properties, before: Properties) {\n if (after.hasOwnProperty('width') || after.hasOwnProperty('height') || after.hasOwnProperty('threed'))\n this.destroy_scene3d()\n\n if (after.hasOwnProperty('autoRotate')) {\n if (this._controls) {\n this._controls.doAutoRotate(after.autoRotate)\n }\n }\n\n if (\n after.hasOwnProperty('fov') ||\n after.hasOwnProperty('near') ||\n after.hasOwnProperty('far') ||\n after.hasOwnProperty('zoom')\n ) {\n if (this._camera) {\n const { near, far, zoom, fov } = this.state\n\n this._camera.near = near\n this._camera.far = far\n this._camera.zoom = zoom * 0.01\n this._camera.fov = fov\n this._camera.updateProjectionMatrix()\n\n this._controls.cameraChanged = true\n }\n }\n }\n\n onmousedown(e: MouseEvent) {\n if (this._controls) {\n this._controls.onMouseDown(e)\n }\n }\n\n onmouseup(e: MouseEvent) {\n if (this._controls) {\n if (this._lastFocused) {\n ;(this._lastFocused as any)._focused = false\n }\n\n const { left, top, width, height } = this.state\n\n var pointer = this.transcoordC2S(e.offsetX, e.offsetY)\n\n this._mouse!.x = ((pointer.x - left) / width) * 2 - 1\n this._mouse!.y = -((pointer.y - top) / height) * 2 + 1\n\n var object = this.getObjectByRaycast()\n var realObject = object?.userData.context as RealObject\n\n if (realObject) {\n ;(realObject as any)._focused = true\n ;(realObject as any)._focusedAt = performance.now()\n this._lastFocused = realObject\n realObject.component?.trigger('click', e)\n }\n\n e.stopPropagation()\n }\n }\n\n onmousemove(e: MouseEvent) {\n if (this._controls) {\n const { left, top, width, height } = this.state\n\n var pointer = this.transcoordC2S(e.offsetX, e.offsetY)\n\n this._mouse!.x = ((pointer.x - left) / width) * 2 - 1\n this._mouse!.y = -((pointer.y - top) / height) * 2 + 1\n\n var object = this.getObjectByRaycast()\n var realObject = object?.userData.context as RealObject\n\n if (realObject !== this._lastHovered) {\n if (this._lastHovered) {\n this._lastHovered.component?.trigger('mouseleave', e)\n delete this._lastHovered\n }\n\n if (realObject) {\n this._lastHovered = realObject\n this._lastHovered.component?.trigger('mouseenter', e)\n }\n }\n\n this._controls.onMouseMove(e)\n\n e.stopPropagation()\n }\n }\n\n onmouseleave(e: MouseEvent) {}\n\n onwheel(e: WheelEvent) {\n if (this._controls) {\n this.handleMouseWheel(e)\n e.stopPropagation()\n }\n }\n\n ondblclick(e: MouseEvent) {\n if (this._controls) {\n this.setState('zoom', this.get('zoom'))\n this._controls.reset()\n e.stopPropagation()\n }\n }\n\n ondragstart(e: DragEvent) {\n if (this._controls) {\n var pointer = this.transcoordC2S(e.offsetX, e.offsetY)\n var { left, top, width, height } = this.bounds\n\n this._mouse!.x = ((pointer.x - left) / width) * 2 - 1\n this._mouse!.y = -((pointer.y - top) / height) * 2 + 1\n\n this._controls.onDragStart(e)\n e.stopPropagation()\n }\n }\n\n ondragmove(e: DragEvent) {\n if (this._controls) {\n this._controls.cameraChanged = true\n this._controls.onDragMove(e)\n e.stopPropagation()\n }\n }\n\n ondragend(e: DragEvent) {\n if (this._controls) {\n this._controls.cameraChanged = true\n this._controls.onDragEnd(e)\n e.stopPropagation()\n }\n }\n\n ontouchstart(e: TouchEvent) {\n if (this._controls) {\n this._controls.onTouchStart(e)\n e.stopPropagation()\n }\n }\n\n onpan(e: TouchEvent) {\n if (this._controls) {\n this._controls.cameraChanged = true\n this._controls.onTouchMove(e)\n e.stopPropagation()\n }\n }\n ontouchend(e: TouchEvent) {\n if (this._controls) {\n this._controls.onTouchEnd(e)\n e.stopPropagation()\n }\n }\n\n onkeydown(e: KeyboardEvent) {\n if (this._controls) {\n this._controls.onKeyDown(e)\n e.stopPropagation()\n }\n }\n\n onpinch(e: TouchEvent) {\n if (this._controls) {\n var zoom = this.getState('zoom')\n //@ts-ignore\n zoom *= e.scale\n\n if (zoom < 100) zoom = 100\n\n this.setState('zoom', zoom)\n e.stopPropagation()\n }\n }\n\n ondoubletap() {\n this._controls.reset()\n }\n\n handleMouseWheel(event: WheelEvent) {\n var delta = 0\n var zoom = this.getState('zoom')\n\n delta = -event.deltaY\n zoom += delta * 0.1\n if (zoom < 100) zoom = 100\n\n this.setState('zoom', zoom)\n }\n\n onredraw() {\n this.threed_animate()\n }\n}\n\nComponent.register('3d-space', ThreeSpace)\n"]}
@@ -6,34 +6,9 @@
6
6
  "auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
7
7
  "files": [
8
8
  {
9
- "date": 1682816519035,
10
- "name": "logs/application-2023-04-30-10.log",
11
- "hash": "2f114875a93c5cab185b59cd7740ad5c9b6446f738ebf54b0060925a64672f59"
12
- },
13
- {
14
- "date": 1682827172535,
15
- "name": "logs/application-2023-04-30-12.log",
16
- "hash": "f2c26e8a9deb8d7ec515df9bf888ea27980d805c97632d33bb92700f3987f55e"
17
- },
18
- {
19
- "date": 1682834307425,
20
- "name": "logs/application-2023-04-30-14.log",
21
- "hash": "fc322b4a238f87ea34a0d714a800f8e8b8d748a080a79a003344f241e8d5e49b"
22
- },
23
- {
24
- "date": 1682838718120,
25
- "name": "logs/application-2023-04-30-16.log",
26
- "hash": "3d929e6c96aec962192f8c544456b83928b2db628fa7bb643e477bb4a4a25125"
27
- },
28
- {
29
- "date": 1682853322474,
30
- "name": "logs/application-2023-04-30-20.log",
31
- "hash": "29893a6a42402ae4dab627a57cee76e2e888bd36c50850a45ceeb782086f752a"
32
- },
33
- {
34
- "date": 1682860370889,
35
- "name": "logs/application-2023-04-30-22.log",
36
- "hash": "9e069a9e5f3e6e496c9a8b485d90713425d550dab183a96ff40319e196b45ac6"
9
+ "date": 1684535240610,
10
+ "name": "logs/application-2023-05-20-07.log",
11
+ "hash": "850cff221029e752047e1f337f81c6562a5a4e81636f25959a5a9fba54a7b7ae"
37
12
  }
38
13
  ],
39
14
  "hashType": "sha256"
@@ -6,54 +6,9 @@
6
6
  "auditLog": "logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json",
7
7
  "files": [
8
8
  {
9
- "date": 1682127513098,
10
- "name": "logs/connections-2023-04-22-10.log",
11
- "hash": "f03c5ef33dab51f66f16d8cd7cf1efb393c3be199d62203bb157c11e6d1bfa62"
12
- },
13
- {
14
- "date": 1682129146590,
15
- "name": "logs/connections-2023-04-22-11.log",
16
- "hash": "fd01098e1b598d688d8d29ba58084707e2f622a8039b4ff658d11ee33bb9d519"
17
- },
18
- {
19
- "date": 1682311773130,
20
- "name": "logs/connections-2023-04-24-13.log",
21
- "hash": "ae8f1370da7eb86d08afccf82959daaa55caafaf040e2085274f28f90753b5bc"
22
- },
23
- {
24
- "date": 1682312801993,
25
- "name": "logs/connections-2023-04-24-14.log",
26
- "hash": "ee927e633d4502a0e55fa670e495a10639855b6f7b4621726e3825cb7abe1247"
27
- },
28
- {
29
- "date": 1682816520632,
30
- "name": "logs/connections-2023-04-30-10.log",
31
- "hash": "5acf31bd3e96d9dd99c7f5a89be0c710fafec03371e7644d28159cab90860891"
32
- },
33
- {
34
- "date": 1682827173462,
35
- "name": "logs/connections-2023-04-30-12.log",
36
- "hash": "7c246b474aef6eef6893e7d9702b81263dae542e5265a084b0adabc98f424896"
37
- },
38
- {
39
- "date": 1682834308891,
40
- "name": "logs/connections-2023-04-30-14.log",
41
- "hash": "e763c34931877cff029426f8ddd5d047422aff579305509b06c9249ef3edb231"
42
- },
43
- {
44
- "date": 1682839218629,
45
- "name": "logs/connections-2023-04-30-16.log",
46
- "hash": "354a53afaeafe6c4a664932467af897c63f9dfdadc4724ceb6a78e422b4ff2c6"
47
- },
48
- {
49
- "date": 1682853323446,
50
- "name": "logs/connections-2023-04-30-20.log",
51
- "hash": "84a1e1185eb171b44eb65033eaccdb69ce52a9c5f31a81dca6ebb9015079e93e"
52
- },
53
- {
54
- "date": 1682860371980,
55
- "name": "logs/connections-2023-04-30-22.log",
56
- "hash": "3253bd050d577c6431875d9c4a24aace5eb620d19ca7f244c41468088dcf8edf"
9
+ "date": 1684535242131,
10
+ "name": "logs/connections-2023-05-20-07.log",
11
+ "hash": "34c07ac641034f7b49bbf2d9e909cf8cb8f3cd1e40921d8cb55085290a7319a4"
57
12
  }
58
13
  ],
59
14
  "hashType": "sha256"
@@ -0,0 +1,6 @@
1
+ 2023-05-20T07:27:21+09:00 info: File Storage is Ready.
2
+ 2023-05-20T07:27:22+09:00 error: oracledb module loading failed
3
+ 2023-05-20T07:27:23+09:00 info: Default DataSource established
4
+ 2023-05-20T07:27:23+09:00 info: Transaction DataSource established
5
+ 2023-05-20T07:27:23+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
6
+ 2023-05-20T07:27:23+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
@@ -0,0 +1,41 @@
1
+ 2023-05-20T07:27:23+09:00 info: Initializing ConnectionManager...
2
+ 2023-05-20T07:27:23+09:00 info: Connector 'echo-back-server' started to ready
3
+ 2023-05-20T07:27:23+09:00 info: Connector 'echo-back' started to ready
4
+ 2023-05-20T07:27:23+09:00 info: Connector 'http-connector' started to ready
5
+ 2023-05-20T07:27:23+09:00 info: Connector 'graphql-connector' started to ready
6
+ 2023-05-20T07:27:23+09:00 info: Connector 'sqlite-connector' started to ready
7
+ 2023-05-20T07:27:23+09:00 info: Connector 'postgresql-connector' started to ready
8
+ 2023-05-20T07:27:23+09:00 info: Connector 'mqtt-connector' started to ready
9
+ 2023-05-20T07:27:23+09:00 info: Connector 'mssql-connector' started to ready
10
+ 2023-05-20T07:27:23+09:00 info: Connector 'oracle-connector' started to ready
11
+ 2023-05-20T07:27:23+09:00 info: Connector 'mysql-connector' started to ready
12
+ 2023-05-20T07:27:23+09:00 info: Connector 'socket-server' started to ready
13
+ 2023-05-20T07:27:23+09:00 info: Connector 'msgraph-connector' started to ready
14
+ 2023-05-20T07:27:23+09:00 info: Connector 'openai-connector' started to ready
15
+ 2023-05-20T07:27:23+09:00 info: echo-back-servers are ready
16
+ 2023-05-20T07:27:23+09:00 info: echo-back connections are ready
17
+ 2023-05-20T07:27:23+09:00 info: http-connector connections are ready
18
+ 2023-05-20T07:27:23+09:00 info: graphql-connector connections are ready
19
+ 2023-05-20T07:27:23+09:00 info: sqlite-connector connections are ready
20
+ 2023-05-20T07:27:23+09:00 info: postgresql-connector connections are ready
21
+ 2023-05-20T07:27:23+09:00 info: mqtt-connector connections are ready
22
+ 2023-05-20T07:27:23+09:00 info: mssql-connector connections are ready
23
+ 2023-05-20T07:27:23+09:00 info: oracle-connector connections are ready
24
+ 2023-05-20T07:27:23+09:00 info: mysql-connector connections are ready
25
+ 2023-05-20T07:27:23+09:00 info: socket servers are ready
26
+ 2023-05-20T07:27:23+09:00 info: msgraph-connector connections are ready
27
+ 2023-05-20T07:27:23+09:00 info: openai-connector connections are ready
28
+ 2023-05-20T07:27:23+09:00 info: All connector for 'echo-back-server' ready
29
+ 2023-05-20T07:27:23+09:00 info: All connector for 'echo-back' ready
30
+ 2023-05-20T07:27:23+09:00 info: All connector for 'http-connector' ready
31
+ 2023-05-20T07:27:23+09:00 info: All connector for 'graphql-connector' ready
32
+ 2023-05-20T07:27:23+09:00 info: All connector for 'sqlite-connector' ready
33
+ 2023-05-20T07:27:23+09:00 info: All connector for 'postgresql-connector' ready
34
+ 2023-05-20T07:27:23+09:00 info: All connector for 'mqtt-connector' ready
35
+ 2023-05-20T07:27:23+09:00 info: All connector for 'mssql-connector' ready
36
+ 2023-05-20T07:27:23+09:00 info: All connector for 'oracle-connector' ready
37
+ 2023-05-20T07:27:23+09:00 info: All connector for 'mysql-connector' ready
38
+ 2023-05-20T07:27:23+09:00 info: All connector for 'socket-server' ready
39
+ 2023-05-20T07:27:23+09:00 info: All connector for 'msgraph-connector' ready
40
+ 2023-05-20T07:27:23+09:00 info: All connector for 'openai-connector' ready
41
+ 2023-05-20T07:27:23+09:00 info: ConnectionManager initialization done:
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/scene-visualizer",
3
3
  "description": "visualizer component for operato-scene",
4
4
  "author": "heartyoh",
5
- "version": "1.2.36",
5
+ "version": "1.2.37",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
8
8
  "license": "MIT",
@@ -62,5 +62,5 @@
62
62
  "prettier --write"
63
63
  ]
64
64
  },
65
- "gitHead": "65a40a190365b3b6256409b6491af360e36d1a98"
65
+ "gitHead": "a98649c72912eb41db840d6a5442ad8ef6b855e1"
66
66
  }
package/schema.gql CHANGED
@@ -1360,9 +1360,15 @@ type Mutation {
1360
1360
  """To start new scenario instance"""
1361
1361
  startScenario(instanceName: String, scenarioName: String!, variables: Object): ScenarioInstance!
1362
1362
 
1363
+ """To start posting scenario based on the schedule of the given scenario"""
1364
+ startScenarioSchedule(scenarioId: String!): Scenario!
1365
+
1363
1366
  """To start new scenario instance"""
1364
1367
  stopScenario(instanceName: String): ScenarioInstance
1365
1368
 
1369
+ """To stop posting scenario based on the schedule of the given scenario"""
1370
+ stopScenarioSchedule(scenarioId: String!): Scenario
1371
+
1366
1372
  """
1367
1373
  To synchronize privilege master from graphql directives. Only superuser is permitted.
1368
1374
  """
@@ -2193,6 +2199,9 @@ type Query {
2193
2199
 
2194
2200
  """To fetch multiple Fonts"""
2195
2201
  fonts(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): FontList!
2202
+
2203
+ """To fetch a Global Board Model"""
2204
+ globalBoardByName(name: String!): Board
2196
2205
  grantedRoles: [GrantedRole!]!
2197
2206
  grantingRoles(customerId: String!): [GrantedRole!]!
2198
2207
 
@@ -2398,6 +2407,7 @@ type Scenario {
2398
2407
  instances: [ScenarioInstance!]
2399
2408
  name: String!
2400
2409
  schedule: String
2410
+ scheduleId: String
2401
2411
  state: String
2402
2412
  steps: [Step!]
2403
2413
  timezone: String