{"id":11964,"date":"2022-01-24T19:32:56","date_gmt":"2022-01-24T10:32:56","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=11964"},"modified":"2022-03-10T09:29:53","modified_gmt":"2022-03-10T00:29:53","slug":"gwc-ui-library-resizablepanel","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=11964","title":{"rendered":"#GWC UI Library : ResizablePanel"},"content":{"rendered":"<p>\uc6f9 UI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 GWC\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 ResizablePanel \ucef4\ud3ec\ub10c\ud2b8\uc5d0 \ub300\ud55c \uc608\uc81c \ucf54\ub4dc\uc785\ub2c8\ub2e4.<\/p>\n<p>\uba3c\uc800 DOM \uad6c\uc131\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\">\r\n<\/gwc-resizable-panel>\r\n<gwc-resizable-panel id=\"panel\" resizable-left=\"true\">\r\n    <div class=\"content\">\r\n        <h1>GWC Library<\/h1>\r\n        <br>\r\n        <p>GWC \ub77c\uc774\ube0c\ub7ec\ub9ac\ub294 Geoservice Web Components\ub85c \uc6f9 GIS \uac1c\ubc1c\uc5d0 \ucd5c\uc801\ud654\ub41c Web UI\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\r\n        <br>\r\n        <div class=\"vcenter\">\r\n            \uc774\ubbf8\uc9c0 \ucef4\ud3ec\ub10c\ud2b8 \r\n            <gwc-image shape=\"rect\" src=\".\/images\/ps5_returnal.jpg\"><\/gwc-image>\r\n        <\/div>\r\n        <br>\r\n        <div class=\"vcenter\">\r\n            <gwc-button title=\"\ud074\ub9ad\"><\/gwc-button>\r\n            \ubc84\ud2bc \ucef4\ud3ec\ub10c\ud2b8\r\n        <\/div>\r\n        <br>\r\n        <div class=\"vcenter\">\r\n            <gwc-radiogroup selected-index=1>\r\n                <items>\r\n                    <item>\ub77c\ub514\uc624<\/item>\r\n                    <item>\uc635\uc158A<\/item>\r\n                    <item>\uc635\uc158B<\/item>\r\n                <\/items>\r\n            <\/gwc-radiogroup>\r\n        <\/div>\r\n        <br>\r\n        <div class=\"vcenter\">\r\n            <gwc-toolbutton icon=\"images\/icon1.png\"><\/gwc-toolbutton>\r\n            <gwc-toolbutton icon=\"images\/icon2.png\" pressed=\"true\"><\/gwc-toolbutton>\r\n            <gwc-toolbutton icon=\"images\/icon3.png\"><\/gwc-toolbutton>\r\n        <\/div>\r\n        <br>\r\n        <div class=\"vcenter\">\r\n            \uc2ac\ub77c\uc774\ub354\r\n            <gwc-slider label=\"\ubcfc\ub968\" unit=\"dB\" to-fixed=1 min=0 max=100 value=45><\/gwc-slider>\r\n        <\/div>\r\n        <br>\r\n        <p>\ub4f1\ub4f1..<\/p>\r\n        <br>\r\n        <p>\uc6f9 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0 \ud544\uc694\ud55c \ub9ce\uc740 \ucef4\ud3ec\ub10c\ud2b8\ub4e4\uc744 \uc81c\uacf5\ud558\uba70 \uc0ac\uc6a9\uc790 \uacbd\ud5d8 \ud5a5\uc0c1\uc744 \uc704\ud574 \uacc4\uc18d \uac1c\uc120\ub418\uace0 \ucd94\uac00\ub429\ub2c8\ub2e4.<\/p>\r\n    <\/div>\r\n<\/gwc-resizable-panel>\r\n\r\n<gwc-resizable-panel id=\"panel2\" \r\n    resizable-right=\"true\" resizable-left=\"true\" resizable-top=\"true\" resizable-bottom=\"true\">\r\n    <h1>GWC<\/h1>\r\n    <h3>GEOSERVICE WEB COMPONENTS<\/h2>\r\n<\/gwc-resizable-panel>\r\n<\/pre>\n<p>\uadf8\ub9ac\uace0 CSS \uad6c\uc131\uc740 \ub2e4\uc74c\uacfc \uac19\uad6c\uc694.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\">\r\n#panel {\r\n    box-shadow: 0 0 2px rgba(0,0,0,1), 0 0 8px rgba(0,0,0,1), \r\n        0 0 10px rgba(0,0,0,1), 0 0 24px rgba(0,0,0,1);\r\n    left: calc(100% - 30em);\r\n    right: 0;\r\n    top: 0;\r\n    width: 30em;\r\n    height: 100vh;\r\n    color: white;\r\n    background: rgba(0,0,0,0.3);\r\n}\r\n\r\n#panel2 {\r\n    left: 300px;\r\n    top: 300px;\r\n    width: 400px;\r\n    height: 300px;\r\n    border-radius: 8px;\r\n    box-shadow: 0 0 2px white, 0 0 8px rgba(0,0,0,1), \r\n        0 0 10px rgba(0,0,0,1), 0 0 24px rgba(0,0,0,1);\r\n    background: rgba(0,0,0,0.5);\r\n    backdrop-filter: blur(4px);\r\n    display: flex;\r\n    flex-direction: column;\r\n    font-size: 1em;\r\n    color: white;\r\n    justify-content: center;\r\n    align-items: center;\r\n}\r\n\r\n.content {\r\n    height: 100%;\r\n    overflow: hidden;\r\n    padding: 1em 2em;\r\n    width: 100%;\r\n    line-height: 1.5em;\r\n}\r\n\r\ngwc-image {\r\n    width: 15em;\r\n    height: 15em;\r\n}\r\n\r\n.vcenter {\r\n    color: rgb(160,160,160);\r\n    display: flex;\r\n    align-items: center;\r\n    justify-content: center;\r\n    gap: 1em;\r\n    padding: 0.5em 0;\r\n }\r\n\r\n gwc-slider {\r\n    width: 10em;\r\n }\r\n<\/pre>\n<p>js \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\">\r\nwindow.onload = () => {\r\n    document.querySelector(\"gwc-button\").onclick = () => {\r\n        gwcMessage(\"\uc548\ub155\ud558\uc138\uc694.\");\r\n    }\r\n\r\n    panel.addEventListener(\"change\", (event) => {\r\n        console.log(event.detail);\r\n        \/\/ event.cancel = true;\r\n    });\r\n\r\n    window.addEventListener(\"resize\", () => {\r\n        panel.style.right = 0;\r\n        const width = panel.offsetWidth;\r\n        panel.style.left = `calc(100% - ${width}px)`;\r\n    });\r\n\r\n    GeoServiceWebComponentManager.instance.update();\r\n};\r\n<\/pre>\n<p>\uc2e4\ud589 \uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p><center><video controls=\"controls\" ><source src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2022\/01\/gwc-resizablepannel.mp4\" \/>\ube44\ub514\uc624\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\ub294 \uc6f9\ube0c\ub77c\uc6b0\uc838\uc785\ub2c8\ub2e4.<\/video><\/center><\/p>\n<p>\uc774 \ucef4\ud3ec\ub10c\ud2b8\ub294 \ud06c\uae30 \uc81c\uc5b4\ub97c \uc81c\uc5b4\ud558\uae30 \uc704\ud574 \ub2e4\uc74c\uacfc \uac19\uc740 \ucf54\ub4dc\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\">\r\ndlg.resizablePanel.resizableLeft = false; \/\/ \uc67c\ucabd \ubaa8\uc11c\ub9ac\ub85c \ud06c\uae30 \uc870\uc815 \ubd88\uac00\ub2a5\r\ndlg.resizablePanel.resizableRight = false; \/\/ \uc624\ub978\ucabd \ubaa8\uc11c\ub9ac\ub85c \ud06c\uae30 \uc870\uc815 \ubd88\uac00\ub2a5\r\ndlg.resizablePanel.resizableTop = true; \/\/ \uc704 \ubaa8\uc11c\ub9ac\ub85c \ud06c\uae30 \uc870\uc815 \uac00\ub2a5\r\ndlg.resizablePanel.resizableBottom = true; \/\/ \uc544\ub798 \ubaa8\uc11c\ub9ac\ub85c \ud06c\uae30 \uc870\uc815 \uac00\ub2a5\r\n<\/pre>\n<p>\uc774 \ucef4\ud3ec\ub10c\ud2b8\ub294 resizing get \uc18d\uc131\uc744 \ud1b5\ud574 \ub9c8\uc6b0\uc2a4\ub97c \uc774\uc6a9\ud574 \ud604\uc7ac \ud06c\uae30 \uc870\uc808 \uc911 \uc778\uc9c0\ub97c \ud30c\uc545\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc6f9 UI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 GWC\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 ResizablePanel \ucef4\ud3ec\ub10c\ud2b8\uc5d0 \ub300\ud55c \uc608\uc81c \ucf54\ub4dc\uc785\ub2c8\ub2e4. \uba3c\uc800 DOM \uad6c\uc131\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. GWC Library GWC \ub77c\uc774\ube0c\ub7ec\ub9ac\ub294 Geoservice Web Components\ub85c \uc6f9 GIS \uac1c\ubc1c\uc5d0 \ucd5c\uc801\ud654\ub41c Web UI\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\ubbf8\uc9c0 \ucef4\ud3ec\ub10c\ud2b8 \ubc84\ud2bc \ucef4\ud3ec\ub10c\ud2b8 \ub77c\ub514\uc624 \uc635\uc158A \uc635\uc158B \uc2ac\ub77c\uc774\ub354 \ub4f1\ub4f1.. \uc6f9 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0 \ud544\uc694\ud55c \ub9ce\uc740 \ucef4\ud3ec\ub10c\ud2b8\ub4e4\uc744 \uc81c\uacf5\ud558\uba70 \uc0ac\uc6a9\uc790 \uacbd\ud5d8 \ud5a5\uc0c1\uc744 \uc704\ud574 \uacc4\uc18d \uac1c\uc120\ub418\uace0 \ucd94\uac00\ub429\ub2c8\ub2e4. GWC GEOSERVICE WEB &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=11964\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;#GWC UI Library : ResizablePanel&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[],"class_list":["post-11964","post","type-post","status-publish","format-standard","hentry","category-gwc"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/11964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11964"}],"version-history":[{"count":3,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/11964\/revisions"}],"predecessor-version":[{"id":12123,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/11964\/revisions\/12123"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11964"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}