Skip to content

Commit 6907e7e

Browse files
1 parent 99a0f1e commit 6907e7e

24 files changed

+29
-29
lines changed

storybook/assets/Billboard-BLkHa9w_.js renamed to storybook/assets/Billboard-DcivNmpc.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook/assets/Billboard.stories-Bl-v4vGA.js renamed to storybook/assets/Billboard.stories-D4WdJMIZ.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{R as t}from"./index-D4lIrffr.js";import{a as m,G as d}from"./Globe-CuTqturo.js";import{B as p}from"./Billboard-BLkHa9w_.js";import{V as u,E as b}from"./Entity-CajmSGvE.js";const V={component:p,title:"Components/Entity/Billboard",parameters:{docs:{description:{component:"This story about Billboard component. Billboard is a component that represents a 2d object which always faced to camera."}}}},e={argTypes:{src:{description:"URL of the image",required:!0,control:{type:"text"}},size:{description:"Size of the billboard in pixels",defaultValue:[30,30]},color:{description:"Color of the billboard",table:{defaultValue:{summary:"white"}}},rotation:{description:"Rotation of the billboard in radians",table:{defaultValue:{summary:"0"}},control:{type:"range",min:0,max:360}},offset:{description:"Offset of the billboard in pixels",defaultValue:[0,0,0],table:{type:{summary:"[number, number, number]"},defaultValue:{summary:"[0, 0, 0]"}}},visibility:{description:"Visibility of the billboard",defaultValue:!0,control:{type:"boolean"}}},args:{size:[96,96],color:"#ff5959",src:"https://sandbox.openglobus.org/examples/billboards/carrot.png",rotation:0,offset:[0,0,0],visibility:!0},render:c=>t.createElement(m,null,t.createElement(d,null,t.createElement(u,{name:"test",scaleByDistance:[6e6,24e6,1e10]},t.createElement(b,{name:"Custom Entity",lon:0,lat:0,alt:0},t.createElement(p,{...c})))))},r={args:{...e.args,src:"https://png.pngtree.com/png-clipart/20230414/ourmid/pngtree-star-clipart-png-image_6705223.png"},argTypes:{...e.argTypes},render:e.render};var a,o,i;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
1+
import{R as t}from"./index-D4lIrffr.js";import{a as m,G as d}from"./Globe-DBTYtmKW.js";import{B as p}from"./Billboard-DcivNmpc.js";import{V as u,E as b}from"./Entity-DrPHpvTl.js";const V={component:p,title:"Components/Entity/Billboard",parameters:{docs:{description:{component:"This story about Billboard component. Billboard is a component that represents a 2d object which always faced to camera."}}}},e={argTypes:{src:{description:"URL of the image",required:!0,control:{type:"text"}},size:{description:"Size of the billboard in pixels",defaultValue:[30,30]},color:{description:"Color of the billboard",table:{defaultValue:{summary:"white"}}},rotation:{description:"Rotation of the billboard in radians",table:{defaultValue:{summary:"0"}},control:{type:"range",min:0,max:360}},offset:{description:"Offset of the billboard in pixels",defaultValue:[0,0,0],table:{type:{summary:"[number, number, number]"},defaultValue:{summary:"[0, 0, 0]"}}},visibility:{description:"Visibility of the billboard",defaultValue:!0,control:{type:"boolean"}}},args:{size:[96,96],color:"#ff5959",src:"https://sandbox.openglobus.org/examples/billboards/carrot.png",rotation:0,offset:[0,0,0],visibility:!0},render:c=>t.createElement(m,null,t.createElement(d,null,t.createElement(u,{name:"test",scaleByDistance:[6e6,24e6,1e10]},t.createElement(b,{name:"Custom Entity",lon:0,lat:0,alt:0},t.createElement(p,{...c})))))},r={args:{...e.args,src:"https://png.pngtree.com/png-clipart/20230414/ourmid/pngtree-star-clipart-png-image_6705223.png"},argTypes:{...e.argTypes},render:e.render};var a,o,i;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
22
argTypes: {
33
src: {
44
description: 'URL of the image',

storybook/assets/Color-YHDXOIA2-qG7AoYU7.js renamed to storybook/assets/Color-YHDXOIA2-efQycNx8.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook/assets/DocsRenderer-CFRXHY34-BWIWDRfs.js renamed to storybook/assets/DocsRenderer-CFRXHY34-8LhbP-eU.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook/assets/Entity-CajmSGvE.js renamed to storybook/assets/Entity-DrPHpvTl.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook/assets/Entity.stories-Bez60CRv.js renamed to storybook/assets/Entity.stories-Bp5MH4mG.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{B as l}from"./Billboard-BLkHa9w_.js";import{R as e}from"./index-D4lIrffr.js";import{a as m,G as c}from"./Globe-CuTqturo.js";import{E as s,V as i}from"./Entity-CajmSGvE.js";const u={component:s,title:"Components/Entity/Entity"},t={args:{lon:10,lat:10,alt:1e5},render:n=>e.createElement(m,null,e.createElement(c,null,e.createElement(i,{name:"test",scaleByDistance:[6e6,24e6,1e10]},e.createElement(s,{name:"Custom Entity",...n},e.createElement(l,{size:[96,96],color:"#ff5959",src:"https://sandbox.openglobus.org/examples/billboards/carrot.png"})))))};var o,r,a;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{
1+
import{B as l}from"./Billboard-DcivNmpc.js";import{R as e}from"./index-D4lIrffr.js";import{a as m,G as c}from"./Globe-DBTYtmKW.js";import{E as s,V as i}from"./Entity-DrPHpvTl.js";const u={component:s,title:"Components/Entity/Entity"},t={args:{lon:10,lat:10,alt:1e5},render:n=>e.createElement(m,null,e.createElement(c,null,e.createElement(i,{name:"test",scaleByDistance:[6e6,24e6,1e10]},e.createElement(s,{name:"Custom Entity",...n},e.createElement(l,{size:[96,96],color:"#ff5959",src:"https://sandbox.openglobus.org/examples/billboards/carrot.png"})))))};var o,r,a;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{
22
args: {
33
lon: 10,
44
lat: 10,

storybook/assets/GeoImage.stories-TWjBknUL.js renamed to storybook/assets/GeoImage.stories-D37YWC_-.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{u as I,w as f,a as x,G}from"./Globe-CuTqturo.js";import{r as l,R as r}from"./index-D4lIrffr.js";const m=({name:a,...n})=>{const{globe:o}=I(),e=l.useRef(null);return l.useEffect(()=>{var c;typeof n.src=="string"&&e.current&&((c=e.current)==null||c.setSrc(n.src))},[n.src]),l.useEffect(()=>{if(o)return e.current=new f(a,n),o.planet.addLayer(e.current),()=>{e.current&&o.planet.removeLayer(e.current)}},[o]),null},E={title:"Components/Layer/GeoImage",component:m},t={parameters:{actions:{depth:1,maxDepth:1}},args:{name:"Kilimanjaro",src:"https://sandbox.openglobus.org/examples/geoImage/SPOT%207%20Satellite%20Image%20Kilimanjaro.jpg",corners:[[37.286664453664194,-3.0473247187887442],[37.38444113753977,-3.0468478037959073],[37.384014813048736,-3.0904441121085506],[37.29373990291454,-3.09380219219323]]},render:a=>r.createElement(x,null,r.createElement(G,null,r.createElement(m,{...a})))},s={args:{name:"Italy",src:"https://sandbox.openglobus.org/examples/geoImageDragging/001m--l32.jpg",corners:[[5.635392096391909,48.12285230763866],[12.40298532820745,48.11462482358326],[12.214647470795295,43.81172338809331],[5.805669171925254,43.97030327540555]]},render:a=>r.createElement(x,null,r.createElement(G,null,r.createElement(m,{...a})))};var g,p,i;t.parameters={...t.parameters,docs:{...(g=t.parameters)==null?void 0:g.docs,source:{originalSource:`{
1+
import{u as I,w as f,a as x,G}from"./Globe-DBTYtmKW.js";import{r as l,R as r}from"./index-D4lIrffr.js";const m=({name:a,...n})=>{const{globe:o}=I(),e=l.useRef(null);return l.useEffect(()=>{var c;typeof n.src=="string"&&e.current&&((c=e.current)==null||c.setSrc(n.src))},[n.src]),l.useEffect(()=>{if(o)return e.current=new f(a,n),o.planet.addLayer(e.current),()=>{e.current&&o.planet.removeLayer(e.current)}},[o]),null},E={title:"Components/Layer/GeoImage",component:m},t={parameters:{actions:{depth:1,maxDepth:1}},args:{name:"Kilimanjaro",src:"https://sandbox.openglobus.org/examples/geoImage/SPOT%207%20Satellite%20Image%20Kilimanjaro.jpg",corners:[[37.286664453664194,-3.0473247187887442],[37.38444113753977,-3.0468478037959073],[37.384014813048736,-3.0904441121085506],[37.29373990291454,-3.09380219219323]]},render:a=>r.createElement(x,null,r.createElement(G,null,r.createElement(m,{...a})))},s={args:{name:"Italy",src:"https://sandbox.openglobus.org/examples/geoImageDragging/001m--l32.jpg",corners:[[5.635392096391909,48.12285230763866],[12.40298532820745,48.11462482358326],[12.214647470795295,43.81172338809331],[5.805669171925254,43.97030327540555]]},render:a=>r.createElement(x,null,r.createElement(G,null,r.createElement(m,{...a})))};var g,p,i;t.parameters={...t.parameters,docs:{...(g=t.parameters)==null?void 0:g.docs,source:{originalSource:`{
22
parameters: {
33
actions: {
44
depth: 1,

storybook/assets/GeoObject.stories-qEf6whqu.js renamed to storybook/assets/GeoObject.stories-Dr0CShLy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{r as n,R as t}from"./index-D4lIrffr.js";import{J as S,p as w,a as g,G as f}from"./Globe-CuTqturo.js";import{V as p,E as d}from"./Entity-CajmSGvE.js";const i=({color:r,objSrc:o,scale:c,visibility:l,_addGeoObject:b,_removeGeoObject:E,...O})=>{const e=n.useRef(null);return n.useEffect(()=>{var a;c&&e.current&&((a=e.current)==null||a.setScale(c))},[c]),n.useEffect(()=>{var a,y,G;e.current&&(typeof r=="string"?(a=e.current)==null||a.setColorHTML(r):r instanceof S?(y=e.current)==null||y.setColor4v(r):Array.isArray(r)&&((G=e.current)==null||G.setColor(...r)))},[r]),n.useEffect(()=>{var a;o&&e.current&&((a=e.current)==null||a.setObjectSrc(o))},[o]),n.useEffect(()=>{var a;typeof l=="boolean"&&e.current&&((a=e.current)==null||a.setVisibility(l))},[l]),n.useEffect(()=>(e.current=new w({color:r,objSrc:o,scale:c,visibility:l,...O}),e.current&&b&&b(e.current),()=>{e.current&&E&&E(e.current)}),[b,E]),null},U={component:i,title:"Components/Entity/GeoObject"},s={args:{visibility:!0,scale:10,tag:"none",color:"red",objSrc:"https://raw.githubusercontent.com/pavletto/og_resources/main/geo_object/penguin.obj"},render:r=>t.createElement(g,null,t.createElement(f,null,t.createElement(p,{name:"test",scaleByDistance:[100,4e6,1]},t.createElement(d,{name:"Custom Entity",lon:0,lat:0,alt:0},t.createElement(i,{...r})))))},u={args:{...s.args},render:r=>t.createElement(g,null,t.createElement(f,null,t.createElement(p,{name:"test",scaleByDistance:[100,4e6,1]},t.createElement(d,{name:"Custom Entity",lon:0,lat:0,alt:0},t.createElement(i,{...r})))))},m={args:{...s.args,objSrc:"https://raw.githubusercontent.com/PrincessGod/objTo3d-tiles/master/bin/barrel/barrel.obj"},render:r=>t.createElement(g,null,t.createElement(f,null,t.createElement(p,{name:"test",scaleByDistance:[100,4e6,1]},t.createElement(d,{name:"Custom Entity",lon:0,lat:0,alt:0},t.createElement(i,{...r})))))};var C,j,x;s.parameters={...s.parameters,docs:{...(C=s.parameters)==null?void 0:C.docs,source:{originalSource:`{
1+
import{r as n,R as t}from"./index-D4lIrffr.js";import{J as S,p as w,a as g,G as f}from"./Globe-DBTYtmKW.js";import{V as p,E as d}from"./Entity-DrPHpvTl.js";const i=({color:r,objSrc:o,scale:c,visibility:l,_addGeoObject:b,_removeGeoObject:E,...O})=>{const e=n.useRef(null);return n.useEffect(()=>{var a;c&&e.current&&((a=e.current)==null||a.setScale(c))},[c]),n.useEffect(()=>{var a,y,G;e.current&&(typeof r=="string"?(a=e.current)==null||a.setColorHTML(r):r instanceof S?(y=e.current)==null||y.setColor4v(r):Array.isArray(r)&&((G=e.current)==null||G.setColor(...r)))},[r]),n.useEffect(()=>{var a;o&&e.current&&((a=e.current)==null||a.setObjectSrc(o))},[o]),n.useEffect(()=>{var a;typeof l=="boolean"&&e.current&&((a=e.current)==null||a.setVisibility(l))},[l]),n.useEffect(()=>(e.current=new w({color:r,objSrc:o,scale:c,visibility:l,...O}),e.current&&b&&b(e.current),()=>{e.current&&E&&E(e.current)}),[b,E]),null},U={component:i,title:"Components/Entity/GeoObject"},s={args:{visibility:!0,scale:10,tag:"none",color:"red",objSrc:"https://raw.githubusercontent.com/pavletto/og_resources/main/geo_object/penguin.obj"},render:r=>t.createElement(g,null,t.createElement(f,null,t.createElement(p,{name:"test",scaleByDistance:[100,4e6,1]},t.createElement(d,{name:"Custom Entity",lon:0,lat:0,alt:0},t.createElement(i,{...r})))))},u={args:{...s.args},render:r=>t.createElement(g,null,t.createElement(f,null,t.createElement(p,{name:"test",scaleByDistance:[100,4e6,1]},t.createElement(d,{name:"Custom Entity",lon:0,lat:0,alt:0},t.createElement(i,{...r})))))},m={args:{...s.args,objSrc:"https://raw.githubusercontent.com/PrincessGod/objTo3d-tiles/master/bin/barrel/barrel.obj"},render:r=>t.createElement(g,null,t.createElement(f,null,t.createElement(p,{name:"test",scaleByDistance:[100,4e6,1]},t.createElement(d,{name:"Custom Entity",lon:0,lat:0,alt:0},t.createElement(i,{...r})))))};var C,j,x;s.parameters={...s.parameters,docs:{...(C=s.parameters)==null?void 0:C.docs,source:{originalSource:`{
22
args: {
33
visibility: true,
44
scale: 10,

storybook/assets/GeoVideo.stories-BlubiS6D.js renamed to storybook/assets/GeoVideo.stories-C1Flyq8i.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{u as h,h as V,a as b,G}from"./Globe-CuTqturo.js";import{r as c,R as r}from"./index-D4lIrffr.js";const p=({name:o,...n})=>{const{globe:t}=h(),e=c.useRef(null);return c.useEffect(()=>{var l;typeof n.src=="string"&&e.current&&((l=e.current)==null||l.setSrc(n.src))},[n.src]),c.useEffect(()=>{if(t)return e.current=new V(o,n),t.planet.addLayer(e.current),()=>{e.current&&t.planet.removeLayer(e.current)}},[t]),null},S={title:"Components/Layer/GeoVideo",component:p},a={parameters:{actions:{depth:1,maxDepth:1}},args:{name:"test",src:"https://sandbox.openglobus.org/examples/geoVideo/imergac_20160508_NASA.mp4",corners:[[-134.7904382939764,55.07955352950936],[-54.984314759410594,54.98843914299802],[-55.041854075913825,19.820153025849297],[-134.89882012831265,19.631495126944017]]},render:o=>r.createElement(b,null,r.createElement(G,null,r.createElement(p,{...o})))},s={args:{name:"vegas",src:"https://sandbox.openglobus.org/examples/geoVideo/SkyBox-LasVegas.mp4",corners:[[-115.18254616355969,36.110055739189924],[-115.16604079376724,36.10771264333345],[-115.16801916927308,36.10038576099672],[-115.18457379699841,36.102812078782755]]},render:o=>r.createElement(b,null,r.createElement(G,null,r.createElement(p,{...o})))};var m,d,g;a.parameters={...a.parameters,docs:{...(m=a.parameters)==null?void 0:m.docs,source:{originalSource:`{
1+
import{u as h,h as V,a as b,G}from"./Globe-DBTYtmKW.js";import{r as c,R as r}from"./index-D4lIrffr.js";const p=({name:o,...n})=>{const{globe:t}=h(),e=c.useRef(null);return c.useEffect(()=>{var l;typeof n.src=="string"&&e.current&&((l=e.current)==null||l.setSrc(n.src))},[n.src]),c.useEffect(()=>{if(t)return e.current=new V(o,n),t.planet.addLayer(e.current),()=>{e.current&&t.planet.removeLayer(e.current)}},[t]),null},S={title:"Components/Layer/GeoVideo",component:p},a={parameters:{actions:{depth:1,maxDepth:1}},args:{name:"test",src:"https://sandbox.openglobus.org/examples/geoVideo/imergac_20160508_NASA.mp4",corners:[[-134.7904382939764,55.07955352950936],[-54.984314759410594,54.98843914299802],[-55.041854075913825,19.820153025849297],[-134.89882012831265,19.631495126944017]]},render:o=>r.createElement(b,null,r.createElement(G,null,r.createElement(p,{...o})))},s={args:{name:"vegas",src:"https://sandbox.openglobus.org/examples/geoVideo/SkyBox-LasVegas.mp4",corners:[[-115.18254616355969,36.110055739189924],[-115.16604079376724,36.10771264333345],[-115.16801916927308,36.10038576099672],[-115.18457379699841,36.102812078782755]]},render:o=>r.createElement(b,null,r.createElement(G,null,r.createElement(p,{...o})))};var m,d,g;a.parameters={...a.parameters,docs:{...(m=a.parameters)==null?void 0:m.docs,source:{originalSource:`{
22
parameters: {
33
actions: {
44
depth: 1,

0 commit comments

Comments
 (0)