1.2.3 • Published 11 months ago

@clikvn/react-gallery-viewer v1.2.3

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
11 months ago

To develop

Available Scripts

In the project directory, you run: Start storybook

yarn storybook

Try to build js

yarn rollup

Public to npmjs

yarn deploy

Runs the app in the development mode.\ Open http://localhost:6006 to view it in the browser.

To use

Installation

  npm i @clikvn/react-gallery-viewer

or

  yarn add @clikvn/react-gallery-viewer

Usage/Examples

Add tag script on document file (to use AR)

import { GalleryViewer } from "@clikvn/react-gallery-viewer";
import "@clikvn/react-gallery-viewer/dist/cjs/style.css";

function App() {
  const items = [
    {
      code: "1",
      type: "virtualTour",
      url: "https://ci-virtualtour.clik.vn/vi/tour/copy-tour-gevexlwnpt74-133512?scenario=SCENE",
    },
    {
      code: "2",
      type: "webRotate",
      webRotateCode: "WRT_HJM27D22ZZ76",
      url: "https://ci-webrotate360-client.clik.vn",
      title:
        "Grande dinning table 4. Grande dinning table 4. Grande dinning table 4",
      description:
        "The Japandi moodboard is presented, featuring a serene blend of Japanese minimalism, featuring a serene blend of Japanese minimalism",
    },
    {
      code: "3",
      type: "ar",
      url: "https://clikpublic.s3.ap-southeast-1.amazonaws.com/test/Hay-Can-2-Seater.glb",
      iosUrl:
        "https://clikpublic.s3.ap-southeast-1.amazonaws.com/test/Hay-Can-2-Seater.usdz",
      autoRotate: true,
      cameraControls: true,
      ar: true,
      title:
        "Grande dinning table 4. Grande dinning table 4. Grande dinning table 4",
      description:
        "The Japandi moodboard is presented, featuring a serene blend of Japanese minimalism, featuring a serene blend of Japanese minimalism",
    },
    {
      code: "4",
      type: "image",
      url: "https://cdn3.clik.vn/clikvirtualtour/prod/item/1118/collections/627/Int_Sofa_D27DUXR2PM26.jpg",
      title: "Image 1",
    },
    {
      code: "5",
      type: "video",
      url: "https://www.w3schools.com/tags/movie.mp4",
    },
    {
      code: "6",
      type: "image",
      url: "https://cdn3.clik.vn/clikvirtualtour/prod/item/1118/collections/627/White_Sofa_4F9HVXR2PM26.jpg",
      title: "Image 2",
    },
    {
      code: "7",
      type: "video",
      url: "https://www.w3schools.com/tags/movie.mp4",
    },
    {
      code: "8",
      type: "image",
      url: "https://cdn3.clik.vn/clikvirtualtour/prod/item/1118/collections/627/Int_Sofa_D27DUXR2PM26.jpg",
      title: "Image 3",
    },
  ]

  const [selected, setSelected] = useState(items[5]);

  return <GalleryViewer
            selection={selected}
            onSelect={setSelected}
            items={items}
          />
}

Features

1.2.0

1 year ago

1.0.2

1 year ago

1.2.3

11 months ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.2-dev-0

11 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.2.1-dev.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.16

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago