-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
142 changed files
with
1,346 additions
and
1,231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule speckle-server
updated
9 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export type { Document, DocumentNode } from './types' | ||
export type { DataTree, DataTreePath, DataTreeStructure, DataTreeValue, DataTreeValueType } from './types/data' | ||
export type { SolutionData } from './types/solution' | ||
export type { NodeTemplate, PortTemplate } from './types/templates' | ||
export type { NodeTemplate, PortTemplate } from './types/templates' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export const library = { | ||
'grasshopper': { | ||
grasshopper: { | ||
'1': null, | ||
'2': null | ||
} | ||
} | ||
'2': null, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export type DataTreePath = `{${number}}` | `{${DataTreePathIndex}${number}}` | ||
|
||
type DataTreePathIndex = `${number};` | ||
type DataTreePathIndex = `${number};` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export type DataTreeStructure = 'empty' | 'single' | 'list' | 'tree' | ||
export type DataTreeStructure = 'empty' | 'single' | 'list' | 'tree' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
import type * as GH from './geometry' | ||
|
||
export type DataTreeValue = | ||
| { | ||
type: 'boolean' | ||
value: boolean | ||
} | ||
| { | ||
type: 'integer' | 'number' | ||
value: number | ||
} | ||
| { | ||
type: 'string' | ||
value: string | ||
} | ||
| { | ||
type: 'circle' | ||
value: { | ||
| { | ||
type: 'boolean' | ||
value: boolean | ||
} | ||
| { | ||
type: 'integer' | 'number' | ||
value: number | ||
} | ||
| { | ||
type: 'string' | ||
value: string | ||
} | ||
| { | ||
type: 'circle' | ||
value: { | ||
center: GH.Point | ||
circumference: number | ||
diameter: number | ||
plane: GH.Plane | ||
radius: number | ||
} | ||
} | ||
| { | ||
type: 'curve' | 'box' | 'surface' | ||
value: string | ||
} | ||
} | ||
| { | ||
type: 'curve' | 'box' | 'surface' | ||
value: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import type { DataTreeValue } from './DataTreeValue' | ||
|
||
export type DataTreeValueType = DataTreeValue['type'] | ||
export type DataTreeValueType = DataTreeValue['type'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import type { Point3d } from './Point3d' | ||
|
||
export type Plane = { | ||
origin: Point3d | ||
axis: { | ||
x: Point3d | ||
y: Point3d | ||
z: Point3d | ||
} | ||
} | ||
origin: Point3d | ||
axis: { | ||
x: Point3d | ||
y: Point3d | ||
z: Point3d | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export type Point3d = { | ||
x: number | ||
y: number | ||
z: number | ||
} | ||
x: number | ||
y: number | ||
z: number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export type { Plane } from './Plane' | ||
export type { Point3d as Point } from './Point3d' | ||
export type { Point3d as Point } from './Point3d' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export type { Document } from './Document' | ||
export type { DocumentNode } from './DocumentNode' | ||
export type { DocumentNode } from './DocumentNode' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import type { DataTree } from '../data' | ||
|
||
export type SolutionData = { | ||
id: string | ||
manifest: { | ||
runtimeMessages: { | ||
[portInstanceId: string]: string | ||
} | ||
streamObjectIds: string[] | ||
id: string | ||
manifest: { | ||
runtimeMessages: { | ||
[portInstanceId: string]: string | ||
} | ||
values: { | ||
[nodeInstanceId: string]: { | ||
[portInstanceId: string]: DataTree | ||
} | ||
streamObjectIds: string[] | ||
} | ||
values: { | ||
[nodeInstanceId: string]: { | ||
[portInstanceId: string]: DataTree | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export type { SolutionData } from './SolutionData' | ||
export type { SolutionData } from './SolutionData' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ export type NodeTemplate = { | |
isObsolete: boolean | ||
inputs: PortTemplate[] | ||
outputs: PortTemplate[] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export type { NodeTemplate } from './NodeTemplate' | ||
export type { PortTemplate } from './PortTemplate' | ||
export type { PortTemplate } from './PortTemplate' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import AnnotationsContainer from './AnnotationsContainer' | ||
|
||
export { AnnotationsContainer } | ||
export { AnnotationsContainer } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/nodes/src/components/annotations/wire/components/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { WirePortal } from './WirePortal' | ||
export { WirePortal } from './WirePortal' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Wire from './Wire' | ||
|
||
export { Wire } | ||
export { Wire } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 17 additions & 19 deletions
36
packages/nodes/src/components/controls/common/ControlPanelHeader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
import React from 'react' | ||
|
||
type ControlPanelHeaderProps = { | ||
icon: React.ReactNode | ||
label: string | ||
sublabel?: string | ||
onClickMenu: () => void | ||
icon: React.ReactNode | ||
label: string | ||
sublabel?: string | ||
onClickMenu: () => void | ||
} | ||
|
||
export const ControlPanelHeader = ({ icon, label, sublabel }: ControlPanelHeaderProps) => { | ||
return ( | ||
<div className={`np-w-full ${sublabel ? 'np-mb-3' : 'np-mb-4'} last:np-mb-0 np-flex np-flex-col np-justify-start`}> | ||
<div className='np-w-full np-h-6 np-flex np-justify-start np-items-center'> | ||
<div className='np-w-8 np-mr-1 np-flex np-items-center np-justify-center'> | ||
{icon} | ||
</div> | ||
<h3 className='np-font-sans np-text-md np-text-darkgreen np-select-none -np-translate-y-px'>{label}</h3> | ||
</div> | ||
{sublabel ? ( | ||
<div className='np-w-full np-pl-9 np-flex np-justify-start np-items-center'> | ||
<p className='np-font-sans np-text-sm np-text-darkgreen np-font-light np-select-none'>{sublabel}</p> | ||
</div> | ||
) : null} | ||
return ( | ||
<div className={`np-w-full ${sublabel ? 'np-mb-3' : 'np-mb-4'} last:np-mb-0 np-flex np-flex-col np-justify-start`}> | ||
<div className="np-w-full np-h-6 np-flex np-justify-start np-items-center"> | ||
<div className="np-w-8 np-mr-1 np-flex np-items-center np-justify-center">{icon}</div> | ||
<h3 className="np-font-sans np-text-md np-text-darkgreen np-select-none -np-translate-y-px">{label}</h3> | ||
</div> | ||
{sublabel ? ( | ||
<div className="np-w-full np-pl-9 np-flex np-justify-start np-items-center"> | ||
<p className="np-font-sans np-text-sm np-text-darkgreen np-font-light np-select-none">{sublabel}</p> | ||
</div> | ||
) | ||
} | ||
) : null} | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export { ControlPanel } from './ControlPanel' | ||
export { ControlPanelHeader } from './ControlPanelHeader' | ||
export { NavigationButton } from './NavigationButton' | ||
export { NavigationIcon } from './NavigationIcon' | ||
export { NavigationIcon } from './NavigationIcon' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import ControlsContainer from './ControlsContainer' | ||
|
||
export { ControlsContainer } | ||
export { ControlsContainer } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export { DownloadButton } from './DownloadButton' | ||
export { LikeButton } from './LikeButton' | ||
export { HelpButton } from './HelpButton' | ||
export { ShareButton } from './ShareButton' | ||
export { ShareButton } from './ShareButton' |
Oops, something went wrong.