-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from kalenkevich/line-styles
Line styles part 1
- Loading branch information
Showing
50 changed files
with
1,468 additions
and
13,664 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export function createRootEl( | ||
width: number = window.innerWidth, | ||
height: number = window.innerHeight, | ||
margin: number = 0 | ||
) { | ||
width -= margin; | ||
height -= margin; | ||
|
||
const div = document.createElement('div'); | ||
|
||
div.id = 'glide-gl'; | ||
div.style.margin = `${margin / 2}px`; | ||
div.style.width = `${width}px`; | ||
div.style.height = `${height}px`; | ||
div.style.position = `relative`; | ||
div.style.overflow = 'hidden'; | ||
document.body.appendChild(div); | ||
|
||
return 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { MapFeatureFlags } from '../map/flags'; | ||
import { FontFormatType } from '../map/font/font_config'; | ||
|
||
export const ENABLED_FEATURE_FLAGS: MapFeatureFlags = { | ||
debugLayer: false, | ||
webglRendererDebug: false, | ||
webglRendererUseShaderLines: true, | ||
webglRendererFontFormatType: FontFormatType.texture, | ||
enableObjectSelection: false, | ||
}; |
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
Oops, something went wrong.