mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 03:18:48 +01:00
This commit is contained in:
parent
d54d861a9a
commit
16cd7e2c0d
4 changed files with 37 additions and 3 deletions
|
|
@ -222,6 +222,8 @@
|
|||
text-align: center;
|
||||
height: 1.2em;
|
||||
line-height: 1.2em;
|
||||
padding: 4px;
|
||||
border-radius: var(--b3-border-radius);
|
||||
}
|
||||
|
||||
&-img {
|
||||
|
|
|
|||
|
|
@ -785,8 +785,6 @@
|
|||
|
||||
.callout-icon {
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
border-radius: var(--b3-border-radius);
|
||||
transition: var(--b3-background-transition);
|
||||
|
||||
&:hover {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ import {Constants} from "../constants";
|
|||
import {Setting} from "./Setting";
|
||||
import {Menu} from "./Menu";
|
||||
import {Protyle} from "../protyle";
|
||||
import ProtyleMethod from "../protyle/method";
|
||||
import {openMobileFileById} from "../mobile/editor";
|
||||
import {lockScreen, exitSiYuan} from "../dialog/processSystem";
|
||||
import {Model} from "../layout/Model";
|
||||
|
|
@ -32,6 +31,7 @@ import {exportLayout} from "../layout/util";
|
|||
import {saveScroll} from "../protyle/scroll/saveScroll";
|
||||
import {hasClosestByClassName} from "../protyle/util/hasClosest";
|
||||
import {Files} from "../layout/dock/Files";
|
||||
import {ProtyleMethod} from "./ProtyleMethod";
|
||||
|
||||
let openTab;
|
||||
let openWindow;
|
||||
|
|
|
|||
34
app/src/plugin/ProtyleMethod.ts
Normal file
34
app/src/plugin/ProtyleMethod.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import { graphvizRender } from "../protyle/render/graphvizRender";
|
||||
import { highlightRender } from "../protyle/render/highlightRender";
|
||||
import { mathRender } from "../protyle/render/mathRender";
|
||||
import { mermaidRender } from "../protyle/render/mermaidRender";
|
||||
import { flowchartRender } from "../protyle/render/flowchartRender";
|
||||
import { chartRender } from "../protyle/render/chartRender";
|
||||
import { abcRender } from "../protyle/render/abcRender";
|
||||
import { htmlRender } from "../protyle/render/htmlRender";
|
||||
import { mindmapRender } from "../protyle/render/mindmapRender";
|
||||
import { plantumlRender } from "../protyle/render/plantumlRender";
|
||||
import { avRender } from "../protyle/render/av/render";
|
||||
|
||||
export class ProtyleMethod {
|
||||
/** 对 graphviz 进行渲染 */
|
||||
public static graphvizRender = graphvizRender;
|
||||
/** 为 element 中的代码块进行高亮渲染 */
|
||||
public static highlightRender = highlightRender;
|
||||
/** 对数学公式进行渲染 */
|
||||
public static mathRender = mathRender;
|
||||
/** 流程图/时序图/甘特图渲染 */
|
||||
public static mermaidRender = mermaidRender;
|
||||
/** flowchart.js 渲染 */
|
||||
public static flowchartRender = flowchartRender;
|
||||
/** 图表渲染 */
|
||||
public static chartRender = chartRender;
|
||||
/** 五线谱渲染 */
|
||||
public static abcRender = abcRender;
|
||||
/** 脑图渲染 */
|
||||
public static mindmapRender = mindmapRender;
|
||||
/** UML 渲染 */
|
||||
public static plantumlRender = plantumlRender;
|
||||
public static avRender = avRender;
|
||||
public static htmlRender = htmlRender;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue