Commit Graph

21 Commits

Author SHA1 Message Date
jjspace fddd0f1757
fix contributors guide link 2024-11-26 14:32:19 -05:00
jjspace 09a719b8fb
run prettier v3 2024-09-20 11:24:24 -04:00
Gabby Getz 8143df4436 var -> const/let 2022-01-21 11:26:25 -05:00
Matthew Amato 2fd0e8f7e4 Format all code with prettier 2020-04-16 20:31:36 -04:00
Matthew Amato 06a7763933 AnalyticalGraphicsInc -> CesiumGS
1. Update relevant AnalyticalGraphicsInc organization links to CesiumGS.

2. Remove Webstorm guide since it's unmaintained and reference an
unmaintained plugin

3. Update outdated email address in CODE_OF_CONDUCT.
2020-02-18 13:19:12 -05:00
hpinkos 09e5df0ace Change checkbox when clicking button 2016-11-04 13:30:53 -04:00
Frederic Junod 4578a3f7f3 Add Sandcastle.addToggleButton function 2016-11-04 17:04:34 +01:00
Sanuj 04216d0204 Replace "use strict" by 'use strict' 2016-02-09 11:07:51 +05:30
Matthew Amato 69c7b6127b Tweaks to terrain example. 2015-02-27 10:59:40 -05:00
Ed Mackey 224b9f99df The default HTML button type is 'submit' not 'button'. 2014-07-30 12:18:07 -04:00
Ed Mackey 7a41e712ba Merge remote-tracking branch 'origin/master' into sandcastle-buttons
Conflicts:
	Apps/Sandcastle/templates/bucket.css
2014-07-30 10:36:59 -04:00
Matthew Amato 87ba1816d5 Fix Sandcastle regression
`Sandcastle.addToolbarMenu` will make the first option a default if it has an `onselect` function and a default action is not already set.

This fixes a problem with the billboards and label examples where they were manually calling the first command and then it would get reset at the end of loading.
2014-07-28 18:11:18 -04:00
Matthew Amato 4bcb9c30f6 Make Sandcastle demos prettier
I didn't like the jarring unstyled look of Sandcastle demo buttons and drop downs.
This is my attempt to make them look more like the rest of Cesium.
2014-07-28 16:34:48 -04:00
Matthew Amato bad094a5ee Better `onselect` behavior in Sandcastle. 2014-07-25 14:27:39 -04:00
Matthew Amato e04f02740e Update GeoJSON example to use new helper functions
Also changed logic to defer execution of the default action until loading is finsihed; this way we can run the reset function before the default action.
2014-07-25 10:19:41 -04:00
Matthew Amato c7445f0c3b Add Sandcastle.reset
When defined by a demo, Sandcastle.reset is called whenever a button or menu selection is main.  This allows for the bookeeping/cleanup code to be cleanly abstracted away from the example-specific code that the user is interested in.
2014-07-24 14:33:12 -04:00
Matthew Amato 762f9a7320 Add Sandcastle.addDefaultToolbarButton
Sandcastle.addDefaultToolbarButton excutes and highlights the toolbar immediately, eliminating the need for breaking out an extra function to call (muddying the code in the process).
2014-07-24 12:05:31 -04:00
Ed Mackey f82bd45ebb Make Sandcastle.addToolbarButton hide the highlight logic. 2014-06-10 11:43:02 -04:00
Scott Hunter a9d66aa98f Refactor Sandcastle examples to use two new helper functions: addToolbarButton and addToolbarMenu. 2013-12-06 19:02:05 -05:00
Scott Hunter 099e30ad49 Sandcastle cleanup.
* General cleanup, reformatting, refactoring, code standards, etc.
* Fixed package configuration for both Dojo and RequireJS
   * By using the right baseUrl, we don't need to list all the packages
   * Dojo config is supposed to be defined as var dojoConfig, RequireJS config is supposed to be done with require.config
* Centralize CSS that all examples use in a shared bucket.css
* Fix the loading display
   * Separate it from the toolbar
   * Implement it as a more visible overlay which is shown/hidden via CSS
   * All examples have a sandcastle-loading class on their body which can be used to hide other UI while loading
   * Instead of having to set the toolbar's innerHTML to '' randomly before putting buttons there, examples now call Sandcastle.finishedLoading(); at the end of the function, which more clearly describes the intent
* Disable the keyboard input for the Dojo TabContainer that holds the JS/HTML editors so that ctrl-home and ctrl-end work like they're supposed to
* When switching tabs between JS/HTML, focus the editors automatically
* Copy all attributes from the example's body onto the bucket's body, instead of just class/title, and use regexes instead of fragile indexOfs
* Clean up and simplify examples themselves, and only use the Dojo modules we need.
* Fix Skybox in a number of examples.
2013-01-31 20:32:22 -05:00
Ed Mackey 3ac6450001 Migrate the bucket.html code into includable files. 2012-09-25 14:29:23 -04:00