Capsium TypeScript API
    Preparing search index...

    Function visibleLayers

    • Layers visible from a given viewpoint: the package itself sees all layers; dependent packages (§4a composite view) see only exported layers.

      Parameters

      • storage:
            | {
                storage: {
                    dataSets: Record<
                        string,
                        | { schemaFile?: string; schemaType?: string; source: string }
                        | { databaseFile: string; table: string },
                    >;
                    layers?: {
                        path: string;
                        visibility?: "exported" | "private";
                        writable?: boolean;
                    }[];
                };
            }
            | undefined
      • viewpoint: "self" | "dependent"

      Returns readonly {
          path: string;
          visibility?: "exported" | "private";
          writable?: boolean;
      }[]