OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
themes
/
mobile
/
main
/
ts
/
touch
/
view
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:36:46 AM
rwxr-xr-x
📄
MetaViewport.ts
1.55 KB
02/20/2020 06:36:49 AM
rw-r--r--
📄
Orientation.ts
2.52 KB
02/20/2020 06:36:49 AM
rw-r--r--
📄
TapToEditMask.ts
1.7 KB
02/20/2020 06:36:50 AM
rw-r--r--
Editing: TapToEditMask.ts
Close
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { Behaviour, Button, Container, Memento, Toggling, SketchSpec } from '@ephox/alloy'; import { Throttler } from '@ephox/katamari'; import Styles from '../../style/Styles'; import * as UiDomFactory from '../../util/UiDomFactory'; const sketch = function (onView, translate): SketchSpec { const memIcon = Memento.record( Container.sketch({ dom: UiDomFactory.dom('<div aria-hidden="true" class="${prefix}-mask-tap-icon"></div>'), containerBehaviours: Behaviour.derive([ Toggling.config({ toggleClass: Styles.resolve('mask-tap-icon-selected'), toggleOnExecute: false }) ]) }) ); const onViewThrottle = Throttler.first(onView, 200); return Container.sketch({ dom: UiDomFactory.dom('<div class="${prefix}-disabled-mask"></div>'), components: [ Container.sketch({ dom: UiDomFactory.dom('<div class="${prefix}-content-container"></div>'), components: [ Button.sketch({ dom: UiDomFactory.dom('<div class="${prefix}-content-tap-section"></div>'), components: [ memIcon.asSpec() ], action (button) { onViewThrottle.throttle(); }, buttonBehaviours: Behaviour.derive([ Toggling.config({ toggleClass: Styles.resolve('mask-tap-icon-selected') }) ]) }) ] }) ] }); }; export default { sketch };