Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spaceman

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spaceman

react based workspace - layout - manager

  • 0.0.11
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

It's a React and Flux based workspace manager aiming to implement all the feature that you got use to in modern graphics editors. (like Adobe or Autodesk products) Work is in progress but the API will look something like this:

import {Spaceman, SpacemanStore} from 'spaceman'
import defaultWorkspace from './defaultWorkspace'

var workspace = localStoreage.lastWorkspace || defaultWorkspace
Workspace = new SpacemanStore(workspace)

Workspace.setTabContent('view', <Viewport/>)
Workspace.setTabContent('tree', <TreeView/>)
Workspace.setTabContent('style', <StyleView/>)
...
Workspace.selectTab('tree')

Workspace.on('change', () => {//on change tabs, resize, etc.
  localStoreage.lastWorkspace = Workspace.model.getSource()
})

React.render(<Spaceman store={Workspace}/>, mountNode)

defaultWorkspace.js

export default
{type: 'divider', direction: 'row', children: [
  {type: 'divider', direction: 'column', size: 7, children: [
    //Status bar
    {type: 'block', size: 34, sizeMode: 'fix', resizeable: false, children: [
      {type: 'tab', id: 'statusBar', hideableHead: true},
    ]},
    {type: 'divider', children: [
      {type: 'divider', direction: 'row', children: [
        //left Toolbar
        {type: 'divider', size: 1, direction: 'column', collapsed: true, children: [
          {type: 'block', children: [
            {type: 'tab', id: 'assets', icon: 'cloud-upload', label: 'Assets'},
            {type: 'tab', id: 'catalogue', icon: 'cubes', label: 'Catalogue'},
            {type: 'tab', id: 'config', icon: 'cog', label: 'Config'},
          ]},
        ]},
        //Viewport
        {type: 'block', size: 4, children: [
          {type: 'tab', id: 'view', label: 'View', hideableHead: true},
        ]},
      ]}
    ]},
  ]},
  {type: 'divider', size: 1.89, direction: 'column', children: [
    {type: 'block', currTabIdx: 1, children: [
      {type: 'tab', id: 'props', label: 'Props'},
      {type: 'tab', id: 'style', label: 'Style'},
    ]},
    {type: 'block', children: [
      {type: 'tab', id: 'tree', label: 'Navigator'},
    ]},
  ]}
]}

Keywords

FAQs

Package last updated on 11 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc