Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome rendering issues #117

Open
lucklyt opened this issue Nov 18, 2024 · 2 comments
Open

Chrome rendering issues #117

lucklyt opened this issue Nov 18, 2024 · 2 comments

Comments

@lucklyt
Copy link

lucklyt commented Nov 18, 2024

image

@stefan-gorules
Copy link
Contributor

Hi, would you be able to provide details on what version you use and which URL you're previewing here? Is it from storybook? https://gorules.github.io/jdm-editor/?path=/story/decision-graph--controlled

You might be missing import for styles (styles.css) in case you are embedding.

@lucklyt
Copy link
Author

lucklyt commented Nov 21, 2024

Hi, would you be able to provide details on what version you use and which URL you're previewing here? Is it from storybook? https://gorules.github.io/jdm-editor/?path=/story/decision-graph--controlled

You might be missing import for styles (styles.css) in case you are embedding.

import * as React from 'react';
import {useState, useEffect} from 'react';
import {DecisionGraph, JdmConfigProvider, createJdmNode} from '@gorules/jdm-editor';
import {MdOutlineLightMode, MdOutlineDarkMode} from 'react-icons/md';
import {FaCopy, FaPaste} from "react-icons/fa";
import {BulbOutlined, ExceptionOutlined, ArrowRightOutlined} from '@ant-design/icons';
import '@gorules/jdm-editor/dist/style.css';
import {ToastContainer, toast} from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import 'react-tooltip/dist/react-tooltip.css'
import {Tooltip as ReactTooltip} from 'react-tooltip';
import {useLocation} from 'react-router-dom';


function ZenPage() {
    return (<div style={{height: '90vh'}}>

        <JdmConfigProvider theme={{mode: theme}}>
            <DecisionGraph
                value={content}
                onChange={setContent}
                customNodes={customNodes}
                disabled={isDisabled}
            />
        </JdmConfigProvider>
    </div>);
}

export default ZenPage;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants