This file contains hidden or 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
///////////////////////////////////////////////////////// | |
// Re-Flex advanced multi-nested resizable layout | |
// with event listeners | |
// | |
///////////////////////////////////////////////////////// | |
class ReflexAdvancedDemo | |
extends React.Component { | |
constructor () { |
This file contains hidden or 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
///////////////////////////////////////////////////////// | |
// Re-Flex basic vertical layout with resizable splitter | |
// | |
///////////////////////////////////////////////////////// | |
class ReflexBasicSplitterDemo | |
extends React.Component { | |
render () { | |
return ( |
This file contains hidden or 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
class ReflexBasicSplitterDemo extends React.Component { | |
///////////////////////////////////////////////////////// | |
// Basic vertical re-flex layout with resizable splitter | |
// | |
///////////////////////////////////////////////////////// | |
render () { | |
return ( | |
<ReflexContainer orientation="vertical"> |
This file contains hidden or 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
import ReactDOM from 'react-dom' | |
import React from 'react' | |
import { | |
ReflexContainer, | |
ReflexSplitter, | |
ReflexElement | |
} from 'react-reflex' | |
///////////////////////////////////////////////////////// |
This file contains hidden or 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.load = function () { | |
var excludedFragIds = [ | |
6, 14, 18, 22, 24, 33, 35, 49, 53, | |
63, 65, 67, 68, 69, 74, 79, 80, 81, 82 | |
] | |
selectiveExplode ( | |
viewer, 0.5, excludedFragIds, viewer.model) |
This file contains hidden or 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
function selectiveExplode (viewer, scale, excludedFragIds, model) { | |
model = model || viewer.model | |
var svf = model.getData(); | |
var mc = model.getVisibleBounds(true).center(); | |
var fragList = model.getFragmentList(); |
This file contains hidden or 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
///////////////////////////////////////////////////////////////// | |
// Get Version relationship references | |
// | |
///////////////////////////////////////////////////////////////// | |
getVersionRelationshipsRefs ( | |
token, projectId, versionId, opts = {}) { | |
this._APIAuth.accessToken = token | |
return this._versionsAPI.getVersionRelationshipsRefs( |
This file contains hidden or 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
///////////////////////////////////////////////////////////////// | |
// Upload file to create new item or new version | |
// | |
///////////////////////////////////////////////////////////////// | |
upload (token, projectId, folderId, file) { | |
return new Promise(async(resolve, reject) => { | |
try { |
This file contains hidden or 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
ddd |
This file contains hidden or 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
var config3d = { | |
extensions: ["Autodesk.InViewerSearch"], | |
inViewerSearchConfig = { | |
uiEnabled: true, | |
clientId: "adsk.forge.default", | |
sessionId: "Session-ID-example-F969EB70-242F-11E6-BDF4-0800200C9A66", | |
loadedModelTab: { | |
enabled: true, //if false we hide the tab | |
displayName: 'This View', | |
pageSize: 50 |